/* ============================================================
   EOLABS — main.css
   Design system, components, layout — production ready
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* Backgrounds */
  --color-bg: #141312;
  --color-surface: #1a1917;
  --color-surface-2: #201f1c;
  --color-surface-offset: #111010;
  --color-surface-dynamic: #272522;

  /* Borders */
  --color-divider: #2a2826;
  --color-border: #333130;

  /* Text */
  --color-text: #e8e6e2;
  --color-text-muted: #7a7872;
  --color-text-faint: #4f4d4a;
  --color-text-inverse: #141312;

  /* Primary */
  --color-primary: #2d9fa6;
  --color-primary-hover: #3db5bd;
  --color-primary-active: #1a8a91;
  --color-primary-subtle: #1a2f30;
  --color-primary-text: #ffffff;

  /* Semantic */
  --color-success: #5aad35;
  --color-error: #e05244;
  --color-warning: #e8920a;

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.45);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.75rem, 1.2rem + 4.5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Section layout */
  --section-padding-y: clamp(4rem, 8vw, 7rem);
  --section-padding-x: clamp(1.5rem, 5vw, 4rem);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1440px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 350ms;
  --transition-ui: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. RESET
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
  text-size-adjust: 100%;
}

/* Thin overlay scrollbar — no layout shift */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: oklch(from var(--color-text) l c h / 0.15) transparent;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: oklch(from var(--color-text) l c h / 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: oklch(from var(--color-text) l c h / 0.3);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  transition:
    background-color var(--duration-slow) var(--ease-out),
    color var(--duration-slow) var(--ease-out);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  text-wrap: pretty;
  max-width: 68ch;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background-color: oklch(from var(--color-primary) l c h / 0.2);
  color: var(--color-text);
}

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

/* ============================================================
   3. LAYOUT — CONTAINERS
   ============================================================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
  width: 100%;
}

.container--narrow {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
  width: 100%;
}

.container--wide {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
  width: 100%;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  height: 64px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: oklch(from var(--color-bg) l c h / 0.9);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-slow) var(--ease-out);
}

header.site-nav.scrolled {
  border-bottom-color: var(--color-divider);
}

.nav-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 34px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo svg,
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-base) var(--ease-out);
  padding-block: var(--space-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link.has-dropdown {
  gap: var(--space-1);
}

.nav-link.has-dropdown .dropdown-arrow {
  transition: transform var(--duration-base) var(--ease-out);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.nav-link.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
  z-index: 50;
}

/* Transparent bridge — fills the 8px gap so mouse movement
   from button → dropdown never leaves the hover zone */
.nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}



/* Mobile menu logo (injected by JS) */
.nav-mobile-logo {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile-logo {
    display: flex;
    align-items: center;
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
  }

  .nav-mobile-logo img {
    height: 48px;
    width: auto;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out),
    width var(--duration-base) var(--ease-out);
  transform-origin: center;
}

/* Hamburger → X when mobile-open */
header.site-nav.mobile-open .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

header.site-nav.mobile-open .hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

header.site-nav.mobile-open .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   5. MOBILE NAV — ≤768px
   ============================================================ */

@media (max-width: 768px) {
  header.site-nav {
    height: 56px;
  }

  /* When open, the header itself becomes the full-screen overlay —
     avoids stacking context issues caused by backdrop-filter */
  header.site-nav.mobile-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 9999;
    background: var(--color-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
  }

  header.site-nav.mobile-open .nav-inner {
    height: 56px;
    align-items: center;
  }

  header.site-nav.mobile-open .nav-inner > .nav-logo {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: var(--space-8);
    gap: var(--space-4);
    overflow-y: auto;
  }

  header.site-nav.mobile-open .nav-links {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-3) 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-wrapper {
    width: 100%;
  }

  /* Mobile dropdown: static, no float */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-left: var(--space-4);
    min-width: 0;
    display: none;
    transition: none;
  }

  /* Override hover trigger on mobile */
  .nav-dropdown-wrapper:hover .nav-dropdown,
  .nav-dropdown-wrapper:focus-within .nav-dropdown {
    display: none;
    opacity: 1;
    visibility: hidden;
    transform: none;
  }

  /* Mobile accordion: open state */
  .nav-link.has-dropdown.open ~ .nav-dropdown {
    display: block;
    visibility: visible;
  }

  .nav-dropdown-item {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-3);
    display: block;
    border-radius: var(--radius-md);
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

/* ============================================================
   6. FOOTER
   ============================================================ */

footer.site-footer {
  /* Always dark — override with dark tokens regardless of page theme */
  --color-bg: #141312;
  --color-surface: #1a1917;
  --color-surface-2: #201f1c;
  --color-surface-offset: #111010;
  --color-surface-dynamic: #272522;
  --color-divider: #2a2826;
  --color-border: #333130;
  --color-text: #e8e6e2;
  --color-text-muted: #7a7872;
  --color-text-faint: #4f4d4a;
  --color-primary: #2d9fa6;
  --color-primary-subtle: #1a2f30;

  background: #1a1917;
  color: #e8e6e2;
  padding-block: var(--space-16);
}

.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.footer-top {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid #2a2826;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand .nav-logo {
  height: auto;
}

.footer-brand .nav-logo svg,
.footer-brand .nav-logo img {
  height: 57px;
  width: 135px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: #7a7872;
  max-width: 26ch;
  line-height: 1.4;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-heading {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #2d9fa6;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.footer-nav-link {
  font-size: var(--text-sm);
  color: #7a7872;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
  display: inline-block;
  line-height: 1.5;
}

.footer-nav-link:hover {
  color: #e8e6e2;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #4f4d4a;
  font-family: var(--font-body);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-legal-link {
  font-size: var(--text-xs);
  color: #4f4d4a;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.footer-legal-link:hover {
  color: #7a7872;
}

.footer-legal-sep {
  color: #2a2826;
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 16px oklch(from var(--color-primary) l c h / 0.25);
}

.btn-primary:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-text-muted);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
  padding-inline: var(--space-2);
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================================
   8. PAGE SECTIONS
   ============================================================ */

.page-content {
  animation: pageFadeIn 0.3s ease-out;
}

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

section,
.section {
  padding-block: var(--section-padding-y);
}

/* Background variants */
.bg-default {
  background: var(--color-bg);
}

.bg-surface {
  background: var(--color-surface);
}

.bg-offset {
  background: var(--color-surface-offset);
}

/* Always dark sections */
.bg-dark {
  background: #141312;
  color: #e8e6e2;
  --color-bg: #141312;
  --color-surface: #1a1917;
  --color-surface-2: #201f1c;
  --color-surface-offset: #111010;
  --color-surface-dynamic: #272522;
  --color-divider: #2a2826;
  --color-border: #333130;
  --color-text: #e8e6e2;
  --color-text-muted: #7a7872;
  --color-text-faint: #4f4d4a;
  --color-primary: #2d9fa6;
  --color-primary-hover: #3db5bd;
  --color-primary-active: #1a8a91;
  --color-primary-subtle: #1a2f30;
}

.bg-dark .section-label {
  color: #2d9fa6;
}

.bg-dark .text-muted {
  color: #7a7872;
}

.bg-dark .btn-secondary {
  color: #e8e6e2;
  border-color: #333130;
}

.bg-dark .btn-secondary:hover {
  background: #272522;
  border-color: #7a7872;
}

/* ============================================================
   9. HERO
   ============================================================ */

.hero {
  padding-block: var(--space-32) var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero .bg-grid {
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-dark .bg-grid {
  opacity: 0.3;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "top   image"
    "bottom image";
  column-gap: var(--space-12);
  row-gap: 0;
  align-items: start;
}

.hero-content-top {
  grid-area: top;
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4);
}

.hero-content-bottom {
  grid-area: bottom;
  position: relative;
  z-index: 1;
}

/* legacy single-div hero-content still works without an image */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image {
  grid-area: image;
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  border-radius: var(--radius-xl);
  display: block;
  object-fit: cover;
  object-position: center center;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}

.hero-pretag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero-headline em {
  font-style: italic;
}

.bg-dark .hero-headline {
  color: #e8e6e2;
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* Hero service variants (for future customization) */
.hero--training {}
.hero--consulting {}
.hero--engineering {}
.hero--ai-ml {}

@media (max-width: 768px) {
  .hero {
    padding-block: var(--space-16) var(--space-12);
  }

  .hero-split {
    display: flex;
    flex-direction: column;
  }

  .hero-content-top { order: 1; }
  .hero-image        { order: 2; justify-content: center; }
  .hero-content-bottom { order: 3; }

  .hero-image img {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  }

  .hero-headline {
    letter-spacing: -0.015em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   10. SECTION LABELS & HEADERS
   ============================================================ */

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-4);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
  line-height: 1.15;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-top: var(--space-4);
  line-height: 1.65;
}

/* ============================================================
   11. VALUE PROPOSITION (Template B)
   ============================================================ */


/* ── Bento grid ── */
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: var(--space-4);
}

.value-prop-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.value-prop-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px oklch(from var(--color-primary) l c h / 0.09);
}

/* Bento layout — card 1 is featured (2 cols × 2 rows) */
.value-prop-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.value-prop-card:nth-child(2) { grid-column: 3;     grid-row: 1; }
.value-prop-card:nth-child(3) { grid-column: 3;     grid-row: 2; }
.value-prop-card:nth-child(4) { grid-column: 1;     grid-row: 3; }
.value-prop-card:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }

.value-prop-card-num {
  position: absolute;
  top: -0.1em;
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 6rem;
  color: oklch(from var(--color-text) l c h / 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.value-prop-card:nth-child(1) .value-prop-card-num {
  font-size: 9rem;
}

.value-prop-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.12);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.value-prop-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.value-prop-card:nth-child(1) .value-prop-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}

.value-prop-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.value-prop-card:nth-child(1) .value-prop-card-desc {
  font-size: var(--text-base);
}

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

  .value-prop-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .value-prop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-prop-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .value-prop-card:nth-child(2) { grid-column: 1;     grid-row: 2; }
  .value-prop-card:nth-child(3) { grid-column: 2;     grid-row: 2; }
  .value-prop-card:nth-child(4) { grid-column: 1;     grid-row: 3; }
  .value-prop-card:nth-child(5) { grid-column: 2;     grid-row: 3; }
}

.value-prop-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-prop-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  align-items: flex-start;
}

.value-prop-item:last-child {
  border-bottom: none;
}

.value-prop-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-text-faint);
  line-height: 1;
  font-family: var(--font-body);
}

.value-prop-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  line-height: 1.3;
}

.value-prop-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .value-prop-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .value-prop-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ============================================================
   12. SERVICE ROWS (Template C)
   ============================================================ */

.service-list {
  display: flex;
  flex-direction: column;
  counter-reset: service-counter;
}

.service-row {
  counter-increment: service-counter;
}

.service-row::before {
  content: counter(service-counter, decimal-leading-zero);
  position: absolute;
  right: calc(var(--space-6) + 28px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  color: oklch(from var(--color-text) l c h / 0.04);
  line-height: 1;
  pointer-events: none;
  transition: color var(--duration-base) var(--ease-out);
}

.service-row:hover::before {
  color: oklch(from var(--color-primary) l c h / 0.08);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--space-8);
  padding-block: var(--space-8);
  padding-inline: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-inline: calc(var(--space-6) * -1);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--color-divider);
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  position: relative;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:hover {
  background: oklch(from var(--color-text) l c h / 0.04);
}

.service-row:hover .service-row-name {
  color: var(--color-primary);
}

.service-row:hover .service-row-link {
  color: var(--color-primary);
  transform: translate(3px, -3px);
}

.service-row-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  position: relative;
  font-weight: 400;
  line-height: 1.2;
  transition: color var(--duration-base) var(--ease-out);
}

.service-row-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-3);
  text-decoration: none;
  transition: gap var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}


.service-row-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.service-row-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-right: 5rem;
}

.service-row-desc ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-row-desc li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-3);
    padding-inline: var(--space-4);
    margin-inline: calc(var(--space-4) * -1);
  }

  .service-row-name {
    grid-column: 1;
    grid-row: 1;
  }

  .service-row-desc {
    grid-column: 1;
    grid-row: 2;
    padding-right: 0;
  }

  .service-row-link {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
}

/* ============================================================
   13. METRICS STRIP (Template D)
   ============================================================ */

.metrics-strip {
  padding-block: var(--space-16);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.metric-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  line-height: 1.5;
  max-width: 20ch;
}

/* 4-column variant for team page */
.metrics-grid.founding-facts {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .metrics-grid.founding-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid,
  .metrics-grid.founding-facts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   14. CTA BLOCK (Template F)
   ============================================================ */

.cta-block {
  padding-block: var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block .dot-grid {
  opacity: 0.4;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  line-height: 1.15;
  font-weight: 400;
}

.cta-block p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   15. CARDS
   ============================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ── Team cards ─────────────────────────────────────────────── */
.team-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.team-card-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid oklch(from var(--color-primary) l c h / 0.3);
  flex-shrink: 0;
}

.team-card-photo-mystery {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px dashed oklch(from var(--color-text) l c h / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-card-photo-mystery svg {
  opacity: 0.25;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.team-card-meta {
  flex: 1;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.team-card-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.team-card-bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.team-card-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  background: oklch(from var(--color-text) l c h / 0.05);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.team-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-top: var(--space-3);
  transition: color var(--duration-fast) var(--ease-out);
}

.team-card-linkedin:hover {
  color: var(--color-primary);
}

.team-card-mystery-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-card-mystery-sub {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  line-height: 1.6;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   16. INDUSTRY GRID
   ============================================================ */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.industry-item {
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  border-top: 2px solid transparent;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  transition:
    border-color var(--duration-base) var(--ease-out),
    border-top-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.industry-item:hover {
  border-color: var(--color-divider);
  border-top-color: var(--color-primary);
  box-shadow: 0 8px 24px oklch(from var(--color-primary) l c h / 0.08);
  transform: translateY(-2px);
}

.industry-item:hover .industry-icon {
  color: var(--color-primary-hover);
}

.industry-icon {
  width: 36px;
  height: 36px;
  color: oklch(from var(--color-primary) l c h / 0.7);
  margin-bottom: var(--space-5);
  transition: color var(--duration-base) var(--ease-out);
}

.industry-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  line-height: 1.3;
}

.industry-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.industry-outcome {
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-top: var(--space-4);
  font-weight: 500;
  font-family: var(--font-body);
}

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   17. PROCESS DIAGRAM
   ============================================================ */

.process-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-block: var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.process-flow::-webkit-scrollbar {
  display: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-width: 110px;
  text-align: center;
  flex-shrink: 0;
  transition:
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

.process-step:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-dynamic);
}

.process-number {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-body);
}

.process-name {
  font-size: var(--text-xs);
  color: var(--color-text);
  margin-top: var(--space-2);
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.3;
}

.process-connector {
  width: var(--space-8);
  height: 1px;
  background: var(--color-divider);
  flex-shrink: 0;
}

/* ============================================================
   18. PULL QUOTE
   ============================================================ */

.pull-quote {
  max-width: 760px;
  margin: var(--space-12) auto 0;
  text-align: center;
}

.pull-quote-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--color-primary);
  line-height: 0.6;
  opacity: 0.7;
  display: block;
  margin-bottom: var(--space-8);
}

.pull-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.pull-quote-cite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-style: normal;
}

.pull-quote-cite::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-primary);
  margin-bottom: var(--space-4);
}

.pull-quote-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.pull-quote-company {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   19. FORM
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-body);
}

.form-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  width: 100%;
  line-height: 1.5;
}

.form-input::placeholder {
  color: var(--color-text-faint);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

select.form-input {
  cursor: pointer;
  appearance: auto;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.form-required {
  color: var(--color-error);
}

.char-count {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
  font-family: var(--font-body);
  transition: color var(--duration-base) var(--ease-out);
}

.char-count.near-limit {
  color: var(--color-warning);
}

.char-count.at-limit {
  color: var(--color-error);
}

.form-success {
  background: oklch(from var(--color-success) l c h / 0.12);
  border: 1px solid oklch(from var(--color-success) l c h / 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  color: var(--color-success);
  text-align: center;
  font-size: var(--text-base);
  font-weight: 500;
  display: none;
}

.form-success.visible {
  display: block;
}

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

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

/* ============================================================
   20. TAGS
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-family: var(--font-body);
  line-height: 1.5;
}

.tag--muted {
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
}

.tag--success {
  background: oklch(from var(--color-success) l c h / 0.15);
  color: var(--color-success);
}

/* ============================================================
   21. STAT BLOCK
   ============================================================ */

.stat-block {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-2);
  max-width: 24ch;
  line-height: 1.45;
}

/* ============================================================
   22. TWO-COLUMN LAYOUT
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}

.two-col--equal {
  grid-template-columns: 1fr 1fr;
}

.col-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .two-col,
  .two-col--equal {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   23. DIVIDER
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin-block: var(--space-8);
}

/* ============================================================
   24. UTILITY CLASSES
   ============================================================ */

.text-muted {
  color: var(--color-text-muted);
}

.text-faint {
  color: var(--color-text-faint);
}

.text-primary {
  color: var(--color-primary);
}

.text-success {
  color: var(--color-success);
}

.text-error {
  color: var(--color-error);
}

.text-warning {
  color: var(--color-warning);
}

/* Margin top utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

/* Margin bottom utilities */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Display utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.italic { font-style: italic; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }

/* ============================================================
   SERVICES MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease-out),
    visibility 0.25s var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.services-modal {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 820px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .services-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: oklch(from var(--color-text) l c h / 0.07);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: oklch(from var(--color-text) l c h / 0.14);
  color: var(--color-text);
}

.modal-header {
  margin-bottom: var(--space-8);
  padding-right: var(--space-10);
}

.modal-pretag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.modal-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.services-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.service-modal-card {
  display: block;
  text-decoration: none;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: 15px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(from var(--color-primary) l c h / 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.service-modal-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px oklch(from var(--color-primary) l c h / 0.12);
}

.service-modal-card:hover::after {
  opacity: 1;
}

.service-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-primary) l c h / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.service-modal-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.service-modal-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.service-modal-arrow {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: var(--color-text-faint);
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-modal-card:hover .service-modal-arrow {
  color: var(--color-primary);
  transform: translate(3px, -3px);
}

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

  .services-modal {
    padding: var(--space-7);
  }
}

/* ============================================================
   CONTACT PAGE LAYOUT
============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-col {
  position: sticky;
  top: calc(var(--nav-height, 72px) + var(--space-8));
}

.contact-info-block {
  margin-bottom: var(--space-8);
}

.contact-info-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.contact-info-value {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  text-decoration: none;
}

a.contact-info-value:hover {
  color: var(--color-primary);
}

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

  .contact-info-col {
    position: static;
    padding-top: var(--space-12);
    border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
    margin-top: var(--space-4);
  }
}

/* ============================================================
   DIRECTION C + D — CONTRAST VISUAL SYSTEM
   Amber accent + teal statement blocks + contrast cards
   ============================================================ */

:root {
  --color-amber: #e8a020;
  --color-amber-subtle: #281c06;
  --color-teal-subtle: #0d3530;
}

/* ── Contrast Statement Block (Direction D) ──────────────── */
.contrast-statement {
  border-left: 5px solid var(--color-primary);
  padding: var(--space-8) var(--space-10);
  margin-block: var(--space-12);
  background: oklch(from var(--color-primary) l c h / 0.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.contrast-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.45;
  max-width: 58ch;
  margin: 0;
}

/* ── Service Contrast Grid (Direction D — 2×2) ───────────── */
.service-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.service-contrast-card {
  text-decoration: none;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.service-contrast-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-contrast-card--teal {
  background: var(--color-teal-subtle);
  border-color: #1a5a52;
}

.service-contrast-card--teal:hover {
  border-color: var(--color-primary);
  box-shadow: 0 16px 48px oklch(from var(--color-primary) l c h / 0.22);
}

.service-contrast-card--dark {
  background: var(--color-surface);
  border-color: var(--color-divider);
}

.service-contrast-card--dark:hover {
  border-color: oklch(from var(--color-text) l c h / 0.2);
}

.service-contrast-card--amber {
  background: var(--color-amber-subtle);
  border-color: #4a3008;
}

.service-contrast-card--amber:hover {
  border-color: var(--color-amber);
  box-shadow: 0 16px 48px oklch(from var(--color-amber) l c h / 0.15);
}

.service-contrast-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  display: block;
}

.service-contrast-card--teal .service-contrast-label { color: var(--color-primary); }
.service-contrast-card--dark .service-contrast-label { color: var(--color-text-muted); }
.service-contrast-card--amber .service-contrast-label { color: var(--color-amber); }

.service-contrast-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.service-contrast-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  max-width: 40ch;
}

.service-contrast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-2);
}

.service-contrast-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: gap var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}

.service-contrast-card--teal .service-contrast-link { color: var(--color-primary); }
.service-contrast-card--dark .service-contrast-link { color: var(--color-primary); }
.service-contrast-card--amber .service-contrast-link { color: var(--color-amber); }

.service-contrast-card:hover .service-contrast-link {
  gap: var(--space-3);
}

.service-contrast-ghost {
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1;
  position: absolute;
  right: var(--space-6);
  bottom: -0.15em;
  pointer-events: none;
  user-select: none;
}

.service-contrast-card--teal .service-contrast-ghost { color: oklch(from var(--color-primary) l c h / 0.1); }
.service-contrast-card--dark .service-contrast-ghost { color: oklch(from var(--color-text) l c h / 0.04); }
.service-contrast-card--amber .service-contrast-ghost { color: oklch(from var(--color-amber) l c h / 0.1); }

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

  .service-contrast-card {
    min-height: 200px;
  }
}

/* ── Team card contrast variants ─────────────────────────── */
.team-card--teal {
  background: var(--color-teal-subtle);
  border-color: #1a5a52;
}

.team-card--teal .team-card-mystery-text {
  color: oklch(from var(--color-text) l c h / 0.85);
}

.team-card--teal .team-card-mystery-sub {
  color: oklch(from var(--color-text) l c h / 0.5);
}

.team-card--teal .team-card-tag {
  background: oklch(from var(--color-primary) l c h / 0.15);
  color: var(--color-primary);
}

.team-card--teal .team-card-tags {
  border-top-color: oklch(from var(--color-primary) l c h / 0.2);
}

.team-card--teal .team-card-photo-mystery {
  background: oklch(from var(--color-primary) l c h / 0.12);
  border-color: oklch(from var(--color-primary) l c h / 0.25);
}

.team-card--teal .team-card-photo-mystery svg {
  opacity: 0.45;
  color: var(--color-primary);
}

/* ── Industry featured card variants ─────────────────────── */
.industry-item--featured-teal {
  background: var(--color-teal-subtle);
  border-color: #1a5a52;
  border-top: 2px solid var(--color-primary);
}

.industry-item--featured-teal .industry-icon {
  color: var(--color-primary);
}

.industry-item--featured-teal:hover {
  border-top-color: var(--color-primary);
  box-shadow: 0 8px 28px oklch(from var(--color-primary) l c h / 0.15);
}

.industry-item--featured-amber {
  background: var(--color-amber-subtle);
  border-color: #4a3008;
  border-top: 2px solid var(--color-amber);
}

.industry-item--featured-amber .industry-icon {
  color: var(--color-amber);
}

.industry-item--featured-amber .industry-outcome {
  color: var(--color-amber);
}

.industry-item--featured-amber:hover {
  border-color: oklch(from var(--color-amber) l c h / 0.4);
  border-top-color: var(--color-amber);
  box-shadow: 0 8px 28px oklch(from var(--color-amber) l c h / 0.1);
}

/* ── Contact "What to expect" steps ─────────────────────── */
.expect-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--space-8);
}

.expect-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.expect-step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.expect-step-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-2);
}

.expect-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 28ch;
}

.expect-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-divider));
  flex-shrink: 0;
  margin-top: calc(clamp(2.5rem, 5vw, 4rem) / 2 + 0.1em);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .expect-steps {
    flex-direction: column;
    gap: var(--space-8);
  }

  .expect-connector {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-divider));
    margin-top: 0;
    margin-left: calc(clamp(2.5rem, 5vw, 4rem) / 2);
  }

  .expect-step-desc {
    max-width: 100%;
  }
}

/* ── Contact page teal sidebar accent ────────────────────── */
.contact-info-col {
  padding-left: var(--space-8);
  border-left: 1px solid oklch(from var(--color-primary) l c h / 0.2);
}

@media (max-width: 768px) {
  .contact-info-col {
    border-left: none;
    padding-left: 0;
  }
}

/* ── Bar Chart Section (Direction C) ────────────────────── */
.impact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.impact-intro h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.impact-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bar-row {
  display: grid;
  grid-template-columns: 170px 1fr 44px;
  align-items: center;
  gap: var(--space-4);
}

.bar-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.4;
}

.bar-track {
  height: 8px;
  background: var(--color-surface-dynamic);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #3dd4dc);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill--amber {
  background: linear-gradient(90deg, var(--color-amber), #f5c84a);
}

.bar-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
  font-family: var(--font-body);
}

.bar-row:nth-child(5) .bar-value {
  color: var(--color-amber);
}

@media (max-width: 1024px) {
  .impact-section {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 600px) {
  .bar-row {
    grid-template-columns: 110px 1fr 38px;
    gap: var(--space-3);
  }
}

/* ── About values — amber numbered cards ─────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.value-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.35);
  transform: translateY(-2px);
}

.value-card-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-amber);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-3);
  font-style: italic;
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-body);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

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

/* ============================================================
   INDUSTRIES — Option C: Featured 2 + Compact Grid 4
   ============================================================ */

/* ── Featured 2-col grid ──────────────────────────────────── */
.industry-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.industry-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  padding: var(--space-10);
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
  min-height: 340px;
}

.industry-featured-card:hover {
  transform: translateY(-3px);
}

.industry-featured-card--teal {
  background: var(--color-teal-subtle);
  border-color: #1a5a52;
}

.industry-featured-card--teal:hover {
  border-color: var(--color-primary);
}

.industry-featured-card--amber {
  background: var(--color-amber-subtle);
  border-color: #4a3008;
}

.industry-featured-card--amber:hover {
  border-color: var(--color-amber);
}

/* Ghost number — decorative background */
.industry-featured-ghost {
  position: absolute;
  bottom: -0.3em;
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(6rem, 10vw, 9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: oklch(from var(--color-text) l c h / 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.industry-featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.industry-featured-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0;
}

.industry-featured-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-text) l c h / 0.06);
  flex-shrink: 0;
}

.industry-featured-card--teal .industry-featured-icon {
  color: var(--color-primary);
}

.industry-featured-card--amber .industry-featured-icon {
  color: var(--color-amber);
}

.industry-featured-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.industry-featured-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-8);
}

.industry-featured-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.industry-featured-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.industry-featured-card--teal .industry-featured-stat-num {
  color: var(--color-primary);
}

.industry-featured-card--amber .industry-featured-stat-num {
  color: var(--color-amber);
}

.industry-featured-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.industry-featured-card--teal .industry-featured-desc,
.industry-featured-card--amber .industry-featured-desc {
  color: var(--color-text);
  opacity: 0.75;
}

.industry-featured-card--teal .industry-featured-stat-label,
.industry-featured-card--amber .industry-featured-stat-label {
  color: var(--color-text);
  opacity: 0.7;
}

.industry-featured-card--teal .industry-featured-eyebrow,
.industry-featured-card--amber .industry-featured-eyebrow {
  color: var(--color-text-muted);
}

/* ── Compact 4-col grid ───────────────────────────────────── */
.industry-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.industry-compact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.industry-compact-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  transform: translateY(-2px);
}

.industry-compact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-bottom: var(--space-1);
}

.industry-compact-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.industry-compact-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.industry-compact-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  margin-top: auto;
}

.industry-compact-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.industry-compact-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .industry-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .industry-featured-card {
    min-height: auto;
    padding: var(--space-8);
  }

  .industry-featured-ghost {
    font-size: clamp(5rem, 18vw, 7rem);
  }

  .industry-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .industry-compact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TRAINING — Before / After Comparison Bars
   ============================================================ */

.before-after-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.before-after-legend {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-2);
}

.before-after-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.before-after-legend-swatch {
  width: 28px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.before-after-legend-swatch--base {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.before-after-legend-swatch--after {
  background: linear-gradient(90deg, var(--color-primary), #3dd4dc);
}

.before-after-legend-swatch--after-amber {
  background: linear-gradient(90deg, var(--color-amber), #f5c84a);
}

.before-after-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.before-after-row {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  align-items: center;
  gap: var(--space-4);
}

.before-after-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.4;
}

.before-after-track {
  position: relative;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-offset);
}

.before-after-base-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-surface-2);
  border-right: 2px solid var(--color-border);
  border-radius: 0;
  z-index: 1;
}

.before-after-fill-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-primary), #3dd4dc);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.before-after-fill-bar--amber {
  background: linear-gradient(90deg, var(--color-amber), #f5c84a);
}

.before-after-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
}

.before-after-value--amber {
  color: var(--color-amber);
}

@media (max-width: 768px) {
  .before-after-row {
    grid-template-columns: 110px 1fr 44px;
    gap: var(--space-3);
  }

  .before-after-label {
    font-size: var(--text-xs);
  }
}

/* ============================================================
   CONSULTING — Engagement Arc Timeline
   ============================================================ */

.arc-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.arc-phases-wrapper {
  position: relative;
}

.arc-track {
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: var(--color-divider);
  z-index: 0;
}

.arc-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.arc-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-2);
  cursor: default;
}

.arc-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  font-weight: 400;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text-faint);
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

.arc-phase:hover .arc-node {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.arc-node--active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-text) !important;
}

.arc-phase-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  transition: color var(--duration-base) var(--ease-out);
}

.arc-phase:hover .arc-phase-name {
  color: var(--color-text);
}

.arc-phase--active .arc-phase-name {
  color: var(--color-text);
}

.arc-phase-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  width: 100%;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.arc-phase:hover .arc-phase-detail {
  background: var(--color-primary-subtle);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
}

.arc-phase--active .arc-phase-detail {
  background: var(--color-teal-subtle);
  border-color: #1a5a52;
}

.arc-phase-detail p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.arc-phase--active .arc-phase-detail p {
  color: var(--color-text);
}

.arc-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.arc-outcome-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.arc-outcome-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  transform: translateY(-2px);
}

.arc-outcome-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.arc-outcome-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .arc-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .arc-phases {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .arc-track {
    display: none;
  }

  .arc-phase {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: var(--space-4);
  }

  .arc-node {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .arc-phase-detail {
    text-align: left;
  }

  .arc-phases-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .arc-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .arc-outcomes {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ENGINEERING — Quality Scorecard Rings
   ============================================================ */

.quality-rings-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.quality-rings-intro {
  max-width: 52ch;
}

.quality-rings-intro h2 {
  margin-bottom: var(--space-4);
}

.quality-rings-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.quality-rings {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.quality-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.quality-ring-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.quality-ring-wrap svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.qr-track {
  fill: none;
  stroke: var(--color-surface-2);
  stroke-width: 8;
}

.qr-fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 238.76;
  stroke-dashoffset: 238.76;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-fill--amber {
  stroke: var(--color-amber);
}

.quality-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
}

.quality-ring-value--amber {
  color: var(--color-amber);
}

.quality-ring-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1024px) {
  .quality-rings {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .quality-rings {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   AI / ML — Maturity Stage Ladder
   ============================================================ */

.maturity-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.maturity-intro {
  max-width: 56ch;
}

.maturity-intro h2 {
  margin-bottom: var(--space-4);
}

.maturity-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.maturity-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-6);
  align-items: start;
}

.maturity-ladder {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
}

.maturity-stage {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  position: relative;
}

.maturity-stage:last-child {
  border-bottom: none;
}

/* Stage 5 — Aim (teal) */
.maturity-stage--aim {
  background: var(--color-teal-subtle);
  border-bottom-color: #1a5a52;
}

/* Stage 4 — Scale (slightly lighter teal) */
.maturity-stage--scale {
  background: #0a2e2b;
  border-bottom-color: #164d45;
}

/* Stage 3 — Deploy (neutral surface) */
.maturity-stage--deploy {
  background: var(--color-surface);
}

/* Stage 2 — Pilot (amber) */
.maturity-stage--pilot {
  background: var(--color-amber-subtle);
  border-bottom-color: #3a2608;
}

/* Stage 1 — Explore (darkest) */
.maturity-stage--explore {
  background: var(--color-surface-offset);
}

.maturity-stage-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.maturity-stage--aim .maturity-stage-num {
  background: var(--color-primary);
  color: #fff;
}

.maturity-stage--scale .maturity-stage-num {
  background: #1a5a52;
  color: var(--color-primary);
}

.maturity-stage--deploy .maturity-stage-num {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.maturity-stage--pilot .maturity-stage-num {
  background: #3a2608;
  color: var(--color-amber);
}

.maturity-stage--explore .maturity-stage-num {
  background: var(--color-surface-dynamic);
  color: var(--color-text-faint);
}

.maturity-stage-content {
  flex: 1;
}

.maturity-stage-title {
  font-size: var(--text-base);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

/* Title contrast on colored backgrounds */
.maturity-stage--aim .maturity-stage-title,
.maturity-stage--scale .maturity-stage-title {
  color: #e0f2f0;
}

.maturity-stage--deploy .maturity-stage-title {
  color: var(--color-text);
}

.maturity-stage--pilot .maturity-stage-title {
  color: #e8d0a0;
}

.maturity-stage--explore .maturity-stage-title {
  color: var(--color-text-muted);
}

.maturity-stage-desc {
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
}

/* Description contrast on colored backgrounds */
.maturity-stage--aim .maturity-stage-desc {
  color: #8bbfb9;
}

.maturity-stage--scale .maturity-stage-desc {
  color: #6aada7;
}

.maturity-stage--deploy .maturity-stage-desc {
  color: var(--color-text-muted);
}

.maturity-stage--pilot .maturity-stage-desc {
  color: #a08050;
}

.maturity-stage--explore .maturity-stage-desc {
  color: var(--color-text-faint);
}

.maturity-stage-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.maturity-badge--aim {
  background: var(--color-primary);
  color: #fff;
}

.maturity-badge--scale {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.maturity-badge--pilot {
  background: var(--color-amber);
  color: var(--color-bg);
}

.maturity-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.maturity-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.maturity-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

.maturity-stat-num--teal {
  color: var(--color-primary);
}

.maturity-stat-num--amber {
  color: var(--color-amber);
}

.maturity-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .maturity-layout {
    grid-template-columns: 1fr;
  }

  .maturity-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .maturity-stat-card {
    flex: 1;
    min-width: 160px;
  }
}
