@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Transition speed */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Nucliv8 permanent theme: Slate Blue / Deep Cobalt */
body {
  --bg-main: #080d1a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(59, 130, 246, 0.12);
  --border-color-hover: rgba(59, 130, 246, 0.3);

  --primary-color: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --accent-color: #60a5fa;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #080d1a;

  --track-bg-glow: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #080d1a 60%);
  --badge-bg: rgba(59, 130, 246, 0.1);
  --badge-text: #60a5fa;

  --hero-tag-bg: rgba(59, 130, 246, 0.08);
  --hero-tag-border: rgba(59, 130, 246, 0.25);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: var(--track-bg-glow);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Page Wrapper / Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Top Navigation Bar */
header.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 13, 26, 0.3);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-mark {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Ribbon tab bar — persistent horizontal navigation, one tab active per page */
.ribbon-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
}

.ribbon-tab {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.ribbon-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.ribbon-tab.active {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px var(--primary-glow);
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .ribbon-tabs { justify-content: flex-start; }
}

/* Hero & About Me Section */
.hero-section {
  padding: 5rem 0 3rem 0;
  position: relative;
}

.hero-layout {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--hero-tag-bg);
  border: 1px solid var(--hero-tag-border);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 1rem;
}

.hero-summary {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections General */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

/* Services Grid & Core Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem; /* separation before the metrics */
}

.services-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid.cols-4 .service-card {
  padding: 1.75rem;
}

@media (max-width: 1200px) {
  .services-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.symptom-picker-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: -2.5rem 0 2rem;
}

.symptom-picker-hint i {
  color: var(--primary-color);
  margin-right: 0.4rem;
}

.service-card-clickable {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.service-card-clickable:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* Symptom recognition modal (Home page) */
.symptom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.symptom-modal-overlay.active {
  display: flex;
}

.symptom-modal {
  background: var(--bg-main);
  border: 1px solid var(--border-color-hover);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: fadeIn 0.25s ease;
}

.symptom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.symptom-modal-close:hover {
  color: var(--text-main);
}

.symptom-modal-title {
  font-size: 1.4rem;
  margin: 0.4rem 0 0.6rem;
}

.symptom-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.symptom-modal-question {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.symptom-modal-rootcause {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--badge-bg);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0 1.25rem;
}

.symptom-modal-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.symptom-modal-actions .btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--text-inverse);
  box-shadow: 0 0 15px var(--primary-glow);
}

.service-eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-text {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.service-details {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.service-bullet-list {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-bullet-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
}

.service-bullet-list li::before {
  content: "→";
  color: var(--primary-color);
  font-weight: bold;
}

.service-outcome {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-left: 3px solid var(--primary-color);
}

.service-outcome strong {
  color: var(--primary-color);
}

/* Metrics Showcase directly inside Services to validate services */
.metrics-section-divider {
  border-top: 1px dashed var(--border-color);
  padding-top: 3.5rem;
  margin-top: 2rem;
}

.metrics-section-divider-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.metric-desc {
  font-size: 0.8rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.skills-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.skills-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.skills-category-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

.skills-cat-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.skills-cat-title i {
  color: var(--primary-color);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.skill-name {
  color: var(--text-main);
  font-weight: 500;
}

.skill-evidence {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  text-align: right;
  max-width: 60%;
}

.skill-bar-bg {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Contact Section & Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info-desc {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.contact-method-item:hover {
  color: var(--primary-color);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--badge-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.contact-method-item:hover .contact-method-icon {
  background: var(--primary-color);
  color: var(--text-inverse);
  box-shadow: 0 0 10px var(--primary-glow);
}

.contact-method-text h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-method-text p {
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
}

.cta-socials {
  display: flex;
  gap: 1rem;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-circle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px var(--primary-glow);
}

.form-select option {
  background-color: var(--bg-main);
  color: var(--text-main);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

/* Structured intake flow (Contact page) */
.intake-symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.intake-symptom-option {
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.intake-symptom-option:hover {
  border-color: var(--border-color-hover);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 600px) {
  .intake-symptom-grid { grid-template-columns: 1fr; }
}

.intake-entry-title {
  font-size: 1.3rem;
  margin: 0.4rem 0 0.6rem;
}

.intake-urgency-badge {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-color);
  background: var(--badge-bg);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.intake-friction-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 1rem 0 1.5rem;
}

.intake-root-cause {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--badge-bg);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.intake-root-cause:empty {
  display: none;
}

.intake-choice-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.intake-choice-actions .btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.wizard-progress {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.wizard-symptom-quote {
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form success animation overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  z-index: 5;
  animation: fadeIn 0.4s ease forwards;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--badge-bg);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.success-title {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.success-msg {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Footer Section */
footer.main-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  background: rgba(0,0,0,0.2);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-logo .logo-mark {
  height: 26px;
  width: 26px;
}

.footer-logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Case Study details overlay / Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  border-color: transparent;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-bullets li {
  display: flex;
  gap: 8px;
}

.modal-bullets li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-layout {
    text-align: center;
    margin: 0 auto;
  }
  .hero-subtitle {
    border-left: none;
    border-top: 2px solid var(--primary-color);
    padding-left: 0;
    padding-top: 1rem;
    display: inline-block;
  }
  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Interactive Diagnostic Funnel Styles */
.funnel-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.funnel-step.active {
  display: block;
}

.funnel-header {
  margin-bottom: 2rem;
  text-align: center;
}

.funnel-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.step-indicator-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.step-dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

.step-dot.completed {
  background: var(--primary-color);
  opacity: 0.5;
}

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.choice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.choice-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.choice-card.selected {
  border-color: var(--primary-color);
  background: var(--badge-bg);
  box-shadow: 0 0 15px var(--primary-glow);
}

.choice-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.choice-card.selected .choice-card-icon {
  background: var(--primary-gradient);
  color: var(--text-inverse);
}

.choice-card-text {
  text-align: left;
}

.choice-card-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.choice-card-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.funnel-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* Diagnostic Report Styles */
.diagnostic-report-wrapper {
  animation: fadeIn 0.6s ease forwards;
  display: none;
  position: relative;
}

.report-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.report-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.report-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.report-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.report-section h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-bullets {
  list-style: none;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.report-bullets li {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
}

.report-bullets li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
}

/* Conversational Story Pills */
.story-pills-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.story-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.story-pill:hover {
  background: var(--badge-bg);
  color: var(--badge-text);
  border-color: var(--primary-color);
}

/* Sector Scope Banner */
.sector-scope-banner {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  letter-spacing: 0.05em;
}

.sector-scope-banner span {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.sector-scope-banner span:hover {
  text-shadow: 0 0 8px var(--primary-glow);
}

.sector-scope-banner .scope-banner-label {
  color: var(--text-muted);
  font-weight: 500;
}

.sector-scope-banner .scope-banner-label:hover {
  text-shadow: none;
}

/* Section 3: Engagement Approach & Commercials Styles */
.methodology-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.methodology-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.methodology-tab-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.methodology-tab-btn.active {
  background: var(--badge-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

.stage-gate-card {
  grid-column: span 2;
  background: rgba(234, 179, 8, 0.03);
  border: 1px dashed rgba(234, 179, 8, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0;
  animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
  .stage-gate-card {
    grid-column: span 1;
  }
}

.stage-gate-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.stage-gate-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stage-gate-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.approach-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .approach-wrapper {
    grid-template-columns: 1fr;
  }
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.roadmap-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.roadmap-step:hover .step-num {
  color: var(--primary-color);
  opacity: 0.15;
}

.roadmap-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding-right: 2.5rem;
}

.roadmap-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-free {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
}

.approach-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.sidebar-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-color);
}

.sidebar-card-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pricing-bullets {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-bullets li {
  position: relative;
  padding-left: 15px;
  color: var(--text-muted);
}

.pricing-bullets li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Page hero (used on interior pages instead of the full home hero) */
.page-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0.6rem 0 1rem;
}

.page-hero-sub {
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.combined-years-banner {
  margin: 2.5rem auto 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-align: left;
}

.combined-years-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
}

.combined-years-value span {
  font-size: 1.6rem;
}

.combined-years-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skills-showcase {
  max-width: 980px;
  margin: 0 auto;
}

.skills-showcase .skills-list-vertical {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skills-showcase .skills-category-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 720px) {
  .skills-showcase .skills-list-vertical {
    grid-template-columns: 1fr;
  }
}

.founder-timeline-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.founder-timeline-header h2 {
  font-size: 1.6rem;
}

.founder-timeline-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Founder blocks */
.founder-block {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.founder-block.reverse {
  grid-template-columns: 2fr 0.85fr;
}

.founder-block.reverse .founder-media { order: 2; }
.founder-block.reverse .founder-copy { order: 1; }

.founder-media {
  display: flex;
  justify-content: center;
}

.founder-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.founder-photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: var(--primary-gradient);
}

.founder-years {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  background: var(--badge-bg);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.founder-name {
  font-size: 1.9rem;
  margin-bottom: 0.2rem;
}

.founder-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.founder-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
  max-width: 68ch;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.3rem;
}

.founder-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.founder-contact a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.founder-contact a i { color: var(--primary-color); }
.founder-contact a:hover { color: var(--primary-color); }

@media (max-width: 900px) {
  .founder-block, .founder-block.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-block.reverse .founder-media,
  .founder-block.reverse .founder-copy { order: initial; }
  .founder-tags, .founder-contact { justify-content: center; }
  .combined-years-banner { flex-direction: column; text-align: center; }
}

/* CTA band, used to close out interior pages */
.cta-band {
  text-align: center;
  padding: 3.5rem 2rem;
  margin-top: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.cta-band h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin-bottom: 1.75rem;
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* PRINT CSS OPTIMIZATIONS */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt !important;
  }
  
  body {
    --bg-main: #fff;
    --text-main: #111;
    --text-muted: #444;
    --border-color: #ddd;
    --primary-color: #111;
  }

  header.nav-header, .hero-actions, .contact-form-card, footer.main-footer {
    display: none !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .hero-section {
    padding: 1rem 0 !important;
    page-break-after: avoid;
  }
  
  .section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }

  .services-grid, .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .service-card, .metric-card, .skills-category-card {
    background: none !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #111 !important;
    page-break-inside: avoid;
  }
}
