/* ==========================================================================
   Vasundhara Gore — Digital Marketing & Growth Strategist Portfolio
   Design System: Warm Editorial Alabaster + Deep Obsidian Growth Console
   ========================================================================== */

:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --surface-alt: #F1EFEA;
  --dark-bg: #0B1120;
  --dark-surface: #111A2E;
  --dark-surface-2: #17223B;
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  --border: #E2E0D8;
  --dark-border: #24324E;
  --accent: #059669;
  --accent-bright: #10B981;
  --accent-soft: rgba(5, 150, 105, 0.10);
  --coral: #FF5A36;
  --cobalt: #2563EB;
  --amber: #D97706;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
  --font-serif: "Outfit", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 54px rgba(15, 23, 42, 0.12);
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #111A2E;
  --surface-alt: #162238;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #23304C;
  --accent: #10B981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-bright), var(--cobalt), var(--coral));
  z-index: 200;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}
.brand-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.primary-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}
.mobile-menu-btn span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}
.btn-xs {
  padding: 6px 11px;
  font-size: 0.78rem;
  border-radius: 7px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.22);
}
.btn-primary:hover {
  background: #047857;
}
.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding-inline: 10px;
}
.btn-ghost:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 24px 0 34px;
  overflow: hidden;
  background:
    radial-gradient(620px 360px at 14% 8%, rgba(16, 185, 129, 0.09), transparent 70%),
    radial-gradient(560px 340px at 88% 12%, rgba(37, 99, 235, 0.07), transparent 70%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.perspective-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.perspective-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 8px;
}
.perspective-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.perspective-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.6vw, 3.05rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 14px 0 14px;
  font-weight: 700;
}
.serif-accent,
.title-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: 0;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 22px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.metric-card.metric-accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(155deg, var(--surface) 60%, var(--accent-soft));
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.metric-accent .metric-pill {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.metric-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.metric-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-label {
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: 8px;
}
.metric-source {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Executive Telemetry Panel */
.hero-telemetry {
  background: linear-gradient(165deg, #0F172A 0%, #091020 100%);
  color: var(--text-light);
  border: 1px solid var(--dark-border);
  border-top-color: rgba(52, 211, 153, 0.32);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}
.telemetry-body {
  flex: 1;
}
.profile-spotlight {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dark-border);
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar-online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid #0F172A;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(16, 185, 129, 0.55);
  background: #1E293B;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.avatar-initials {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #34D399;
  letter-spacing: -0.02em;
}
.profile-meta {
  min-width: 0;
  flex: 1;
}
.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-name-row strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #F8FAFC;
}
.profile-role {
  margin: 4px 0 2px;
  font-size: 0.9rem;
  color: #CBD5E1;
  font-weight: 500;
}
.profile-loc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-light-muted);
}
.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.telemetry-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
}
.telemetry-title {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.telemetry-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.telemetry-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.telemetry-tab {
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  color: var(--text-light-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.telemetry-tab.active,
.telemetry-tab:hover {
  background: var(--dark-surface-2);
  color: #fff;
  border-color: var(--accent-bright);
}

.telemetry-body {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.tel-headline {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}
.tel-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-light-muted);
  margin: 0 0 14px;
}
.tel-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.tel-bar-row {
  display: grid;
  gap: 4px;
}
.tel-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #CBD5E1;
}
.tel-bar-track {
  height: 7px;
  border-radius: 99px;
  background: #1E293B;
  overflow: hidden;
}
.tel-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-bright), #38BDF8);
}
.tel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tel-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  background: #0F172A;
  border: 1px solid var(--dark-border);
  color: #E2E8F0;
}
.telemetry-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-align: center;
}

/* Credentials Strip */
.credentials-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 11px 0;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}
.strip-dot {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 48px 0;
}
.section-tinted {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: var(--dark-bg);
  color: var(--text-light);
}
.section-dark .section-desc {
  color: var(--text-light-muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow-accent {
  color: #34D399;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.24;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-desc {
  max-width: 64ch;
  font-size: 1.04rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.72;
}

.sandbox-note {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  color: #CBD5E1;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill,
.stack-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill.active,
.filter-pill:hover,
.stack-filter.active,
.stack-filter:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Case Studies Grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--cobalt));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.case-card:hover::before {
  opacity: 1;
}
.case-org-group {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.case-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.case-kpi.kpi-primary {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.case-kpi.kpi-primary strong {
  color: var(--accent);
}
.open-case-btn .btn-arrow {
  transition: transform 0.2s ease;
}
.open-case-btn:hover .btn-arrow {
  transform: translateX(3px);
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.case-org {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.case-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.case-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.008em;
  margin: 0;
}
.case-summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0;
}
.case-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.case-kpi {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.case-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.case-kpi span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.case-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.case-footer {
  margin-top: auto;
  padding-top: 10px;
}

/* Marketing Command Lab */
.lab-shell {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lab-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--dark-border);
  background: #0D1526;
}
.lab-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--dark-border);
  background: transparent;
  color: var(--text-light-muted);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lab-tab:last-child {
  border-right: 0;
}
.lab-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.lab-tab.active {
  background: var(--dark-surface);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--accent-bright);
}
.lab-tab-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--dark-surface-2);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lab-tab-text strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}
.lab-tab-text small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light-muted);
  margin-top: 3px;
}

.lab-panels {
  padding: 24px;
}
.lab-panel[hidden] {
  display: none;
}
.lab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.lab-panel-header h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.3;
}
.lab-panel-header p {
  margin: 0;
  color: var(--text-light-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.currency-toggle {
  display: inline-flex;
  background: #0B1120;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 3px;
}
.curr-btn {
  border: 0;
  background: transparent;
  color: var(--text-light-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.curr-btn.active {
  background: var(--accent);
  color: #fff;
}

.lab-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.lab-controls {
  display: grid;
  gap: 16px;
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.control-group {
  display: grid;
  gap: 8px;
}
.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 500;
}
.mono-val {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: #34D399;
  font-weight: 700;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-bright);
  cursor: pointer;
}

.kpi-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-box {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 14px;
}
.kpi-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light-muted);
  margin-bottom: 4px;
}
.kpi-box strong {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  font-weight: 700;
}
.kpi-box.highlight {
  border-color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.08);
}
.kpi-box.highlight strong {
  color: #34D399;
}

.funnel-visual-card {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 18px;
}
.funnel-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.health-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
}
.health-badge.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
}
.health-badge.risk {
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
}
.funnel-bars {
  display: grid;
  gap: 10px;
}
.f-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.f-bar-track {
  height: 10px;
  background: #1E293B;
  border-radius: 99px;
  overflow: hidden;
}
.f-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #38BDF8, #10B981);
}
.f-bar-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  font-size: 0.8rem;
  color: #CBD5E1;
}
.roas-summary-line {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

/* A/B Test Panel */
.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.section-dark .btn-outline {
  background: #0D1526;
  border-color: var(--dark-border);
  color: #E2E8F0;
}
.section-dark .btn-outline:hover {
  border-color: var(--accent-bright);
}

.ab-inputs-card {
  display: grid;
  gap: 14px;
}
.ab-variant-box {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.ab-variant-box h4 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}
.input-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ab-variant-box label,
.field {
  display: grid;
  gap: 6px;
}
.ab-variant-box label span,
.field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-muted);
}
.ab-variant-box input,
.utm-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  background: #0B1120;
  color: #F8FAFC;
  font-size: 0.92rem;
}
.contact-form select option {
  background: #0B1120;
  color: #F8FAFC;
}
.ab-variant-box input:focus,
.utm-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-bright);
  border-color: transparent;
}
.ab-rate-line {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}
.ab-rate-line strong {
  font-variant-numeric: tabular-nums;
  color: #38BDF8;
}

.ab-verdict-card {
  background: #0D1526;
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}
.verdict-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  margin-bottom: 8px;
}
.ab-verdict-card.pending {
  border-color: #F59E0B;
}
.ab-verdict-card.pending .verdict-pill {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
}
.ab-verdict-card h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.32;
}
.ab-verdict-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-light-muted);
}

.confidence-meter-box {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 16px;
}
.confidence-track {
  position: relative;
  height: 12px;
  background: #1E293B;
  border-radius: 99px;
  margin-top: 10px;
  overflow: visible;
}
.confidence-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #F59E0B, #10B981);
  transition: width 0.3s ease;
}
.confidence-threshold {
  position: absolute;
  left: 95%;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: #F8FAFC;
}
.confidence-threshold span {
  position: absolute;
  top: -18px;
  right: -12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #CBD5E1;
}

/* Attribution Panel */
.attr-model-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.attr-btn {
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  background: #0D1526;
  color: var(--text-light-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.attr-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.attr-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.attr-bars-card,
.attr-insight-card {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.attr-channel-row {
  margin-bottom: 14px;
}
.attr-channel-row:last-child {
  margin-bottom: 0;
}
.attr-ch-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.attr-ch-head strong {
  font-variant-numeric: tabular-nums;
  color: #34D399;
}
.attr-ch-track {
  height: 12px;
  border-radius: 99px;
  background: #1E293B;
  overflow: hidden;
}
.attr-ch-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* UTM Builder */
.utm-form {
  display: grid;
  gap: 14px;
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.utm-output-card {
  background: #0D1526;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  gap: 14px;
}
.utm-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.qa-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.qa-badge.ok {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
}
.qa-badge.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
}
.utm-preview-box {
  background: #070C17;
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 14px;
  word-break: break-all;
}
.utm-preview-box code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7DD3FC;
}
.utm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.copy-feedback {
  font-size: 0.82rem;
  color: #34D399;
  font-weight: 600;
}
.utm-governance-tips h5 {
  margin: 0 0 8px;
  font-size: 0.86rem;
}
.utm-governance-tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light-muted);
  font-size: 0.82rem;
}

/* Playbooks Section */
.playbook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.playbook-tab {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.playbook-tab.active,
.playbook-tab:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.playbook-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.pb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pb-header h3 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.pb-header p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 68ch;
}
.pb-northstar {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 10px 16px;
  border-radius: 12px;
}
.pb-northstar span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.pb-northstar strong {
  font-size: 0.92rem;
}

.pb-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pb-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.pb-card-num {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}
.pb-card h4 {
  margin: 6px 0 10px;
  font-size: 1.08rem;
  line-height: 1.32;
}
.pb-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}
.pb-card li {
  margin-bottom: 6px;
}

/* MarTech Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stack-cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
}
.stack-cat-analytics .stack-cat-dot { background: #38BDF8; }
.stack-cat-crm .stack-cat-dot { background: #A78BFA; }
.stack-cat-strategy .stack-cat-dot { background: #F59E0B; }

/* Custom Range Sliders & Scroll Reveal */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #1E293B;
  border-radius: 99px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid #0B1120;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 3px solid #0B1120;
  cursor: pointer;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.stack-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.stack-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.stack-badge.extended {
  background: rgba(37, 99, 235, 0.12);
  color: var(--cobalt);
}
.stack-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.32;
}
.stack-card p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.64;
  color: var(--text-muted);
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-tags span {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 500;
}

/* Career & Timeline */
.career-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.col-heading {
  font-size: 1.12rem;
  margin: 0 0 14px;
}
.mt-lg {
  margin-top: 22px;
}

.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 14px;
}
.timeline-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.timeline-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.timeline-item h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  line-height: 1.32;
}
.timeline-org {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}
.timeline-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.timeline-bullets li {
  margin-bottom: 5px;
}
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.course-chips span {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.credential-cards {
  display: grid;
  gap: 14px;
}
.cred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.featured-cred {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}
.cred-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.cred-card h4 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.34;
}
.cred-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cert-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.cert-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cert-card h5 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.3;
}
.cert-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Contact Section */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-person-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.contact-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(16, 185, 129, 0.55);
  flex-shrink: 0;
}
.contact-person-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #F8FAFC;
}
.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-item {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.contact-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  margin-bottom: 4px;
}
.contact-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}
.copy-chip {
  border: 1px solid var(--dark-border);
  background: #0B1120;
  color: #34D399;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 14px;
}
.contact-form h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}
.form-sub {
  margin: -4px 0 4px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-light-muted);
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #070C17;
  color: var(--text-light-muted);
  border-top: 1px solid var(--dark-border);
  padding: 28px 0;
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner strong {
  color: #F8FAFC;
}
.footer-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: #34D399;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-dialog {
  width: min(100%, 760px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.modal-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.modal-box h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.modal-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-layout,
  .lab-grid-2,
  .attr-layout,
  .career-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .pb-columns,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none;
  }
  .primary-nav.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-actions .btn-outline,
  .header-actions .btn-primary {
    display: none;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-grid,
  .pb-columns,
  .stack-grid,
  .cert-grid,
  .modal-grid,
  .kpi-output-grid,
  .input-row-2 {
    grid-template-columns: 1fr;
  }
  .lab-nav {
    grid-template-columns: 1fr;
  }
}
