/* Clairvynt website redesign (static site)
   Design goals: modern B2B, high trust, fast, accessible.

   Breakpoints (standardized): 480, 520, 768, 860, 920, 1280, 1536 */

:root {
  /* --- Brand palette (source of truth from guidelines) --- */
  --clv-color-navy: #2F3E54;
  --clv-color-blue: #2C83C0;
  --clv-color-teal: #57BBB6;
  --clv-color-service: #737A8A;
  --clv-color-white: #FFFFFF;

  /* --- Semantic background (DS dark-mode) --- */
  --clv-color-bg: #1E2D3D;
  --clv-color-bg-deep: #162331;
  --clv-color-bg-surface: #263347;
  --clv-color-bg-elevated: #344459;

  /* --- Semantic text --- */
  --clv-color-text-primary: #E8F1F4;
  --clv-color-text-secondary: #A8BCC4;
  --clv-color-text-muted: #737A8A;

  /* --- Accent (interactive) --- */
  --clv-color-accent: #57BBB6;
  --clv-color-accent-hover: #6ECBD4;
  --clv-color-accent-blue: #2C83C0;
  --clv-color-accent-glow: rgba(87, 187, 182, 0.3);

  /* --- Accessible colour variants (WCAG 2.1 compliant) --- */
  --clv-color-teal-ui: #4AA09C;       /* 3.09:1 on white - interactive elements */
  --clv-color-teal-text: #3B7F7C;     /* 4.65:1 on white - body text */
  --clv-color-service-light: #9FA9BF; /* 4.59:1 on navy - text on dark bg */

  /* --- Borders / lines --- */
  --clv-color-line: var(--clv-teal-18);

  /* --- Teal opacity variants (57BBB6) --- */
  --clv-teal-06: rgba(87, 187, 182, 0.06);
  --clv-teal-08: rgba(87, 187, 182, 0.08);
  --clv-teal-10: rgba(87, 187, 182, 0.10);
  --clv-teal-12: rgba(87, 187, 182, 0.12);
  --clv-teal-14: rgba(87, 187, 182, 0.14);
  --clv-teal-15: rgba(87, 187, 182, 0.15);
  --clv-teal-18: rgba(87, 187, 182, 0.18);
  --clv-teal-20: rgba(87, 187, 182, 0.20);
  --clv-teal-24: rgba(87, 187, 182, 0.24);

  /* --- Background opacity variants (navy/dark) --- */
  --clv-bg-14: rgba(30, 45, 61, 0.14);
  --clv-bg-22: rgba(47, 62, 84, 0.22);
  --clv-bg-25: rgba(47, 62, 84, 0.25);

  /* --- Brand gradient (icon "A" glyph) --- */
  --clv-gradient-brand: linear-gradient(135deg, #57BBB6, #2C83C0);

  /* --- Status --- */
  --clv-color-warn: #f59e0b;
  --clv-color-success: #34D399;
  --clv-color-error: #F87171;
  --clv-color-info: #60A5FA;

  /* --- Borders --- */
  --clv-color-border-subtle: rgba(87, 187, 182, 0.10);
  --clv-color-border-default: rgba(87, 187, 182, 0.18);

  /* --- Overlay --- */
  --clv-color-overlay: rgba(30, 45, 61, 0.62);

  /* --- Typography --- */
  --clv-font-body: "Euclid Square", "Outfit", Verdana, ui-sans-serif, system-ui, sans-serif;
  --clv-font-heading: "Euclid Square", "Outfit", Verdana, ui-sans-serif, system-ui, sans-serif;
  --clv-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --clv-weight-light: 300;
  --clv-weight-regular: 400;
  --clv-weight-medium: 500;

  /* --- Type scale (13-step HIG-aligned, mobile-first) --- */
  --text-display:   2.25rem;   /* 36px */
  --text-largeTitle: 2rem;     /* 32px */
  --text-title1:    1.75rem;   /* 28px */
  --text-title2:    1.375rem;  /* 22px */
  --text-title3:    1.25rem;   /* 20px */
  --text-headline:  1.0625rem; /* 17px, semibold */
  --text-body:      1.0625rem; /* 17px */
  --text-callout:   1rem;      /* 16px */
  --text-subhead:   0.9375rem; /* 15px */
  --text-footnote:  0.8125rem; /* 13px */
  --text-caption1:  0.75rem;   /* 12px */
  --text-caption2:  0.6875rem; /* 11px */

  /* Remap legacy 6-step scale to new tokens */
  --clv-size-xs: var(--text-footnote);
  --clv-size-sm: var(--text-body);
  --clv-size-md: var(--text-title3);
  --clv-size-lg: var(--text-title2);
  --clv-size-xl: var(--text-title1);
  --clv-size-2xl: var(--text-display);

  /* --- Spacing (8px base, DS full scale) --- */
  --clv-space-0:  0.25rem;  /*  4px */
  --clv-space-1:  0.5rem;   /*  8px */
  --clv-space-2:  0.75rem;  /* 12px */
  --clv-space-3:  1rem;     /* 16px */
  --clv-space-4:  1.5rem;   /* 24px */
  --clv-space-5:  2rem;     /* 32px */
  --clv-space-6:  2.5rem;   /* 40px */
  --clv-space-7:  3.25rem;  /* 52px */
  --clv-space-8:  4rem;     /* 64px */
  --clv-space-10: 5rem;     /* 80px */
  --clv-space-12: 6rem;     /* 96px */
  --clv-space-16: 8rem;     /* 128px */
  --clv-space-20: 10rem;    /* 160px */
  --clv-space-24: 12rem;    /* 192px */
  --clv-space-32: 16rem;    /* 256px */

  /* Contextual gap tokens */
  --section-gap: var(--clv-space-8);
  --content-gap: var(--clv-space-5);
  --element-gap: var(--clv-space-3);
  --inline-gap:  var(--clv-space-1);

  /* --- Shape (DS radius scale) --- */
  --clv-radius-xs: 4px;
  --clv-radius-sm: 8px;
  --clv-radius: 12px;
  --clv-radius-lg: 16px;
  --clv-radius-pill: 9999px;

  /* --- Shadow (DS 5-level scale) --- */
  --clv-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --clv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --clv-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --clv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --clv-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --clv-shadow-glow: 0 0 32px var(--clv-color-accent-glow);
  --clv-focus-ring: 0 0 0 3px rgba(87, 187, 182, 0.4);
  --clv-error-ring: 0 0 0 3px rgba(248, 113, 113, 0.4);

  /* --- Motion --- */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 400ms;
  --duration-enter: 500ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --clv-layout-container: 1200px;
  --clv-layout-gutter: clamp(16px, 2vw, 40px);
  --header-height: 90px;

  /* Container width tokens */
  --clv-container-xs: 480px;
  --clv-container-sm: 640px;
  --clv-container-md: 768px;
  --clv-container-lg: 1024px;
  --clv-container-xl: 1280px;

  /* Legacy aliases (actively used, migrate incrementally) */
  --bg: var(--clv-color-bg);
  --surface-solid: var(--clv-color-bg-surface);
  --ink: var(--clv-color-text-primary);
  --line: var(--clv-color-line);
  --color-text-primary: var(--clv-color-text-primary);
  --color-text-secondary: var(--clv-color-text-secondary);
  --color-text-muted: var(--clv-color-text-muted);
  --shadow-glow: var(--clv-shadow-glow);
  --font-mono: var(--clv-font-mono);
  --step--1: var(--clv-size-xs);
  --step-1: var(--clv-size-md);
  --step-2: var(--clv-size-lg);
  --step-3: var(--clv-size-xl);
  --space-1: var(--clv-space-1);
  --space-2: var(--clv-space-2);
  --space-3: var(--clv-space-3);
  --space-4: var(--clv-space-4);
  --space-5: var(--clv-space-5);
  --space-6: var(--clv-space-6);
  --space-7: var(--clv-space-7);
  --radius-sm: var(--clv-radius-sm);
  --radius: var(--clv-radius);
  --shadow-sm: var(--clv-shadow-sm);
  --shadow: var(--clv-shadow);
  --container: var(--clv-layout-container);
  --gutter: var(--clv-layout-gutter);

  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--clv-font-body);
  font-weight: var(--clv-weight-light);
  font-size: var(--clv-size-sm);
  line-height: 1.6;
  color: var(--clv-color-text-primary);
  background: var(--clv-color-bg);
}

/* Atmosphere: subtle grid + gradients for dark depth. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(87, 187, 182, 0.22), transparent 60%),
    radial-gradient(900px 640px at 16% 22%, rgba(47, 62, 84, 0.42), transparent 62%),
    radial-gradient(700px 700px at 70% 86%, var(--clv-teal-12), transparent 55%),
    linear-gradient(180deg, rgba(30, 45, 61, 0.0), rgba(30, 45, 61, 1));
  filter: saturate(110%);
}

/* Subtle grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(87, 187, 182, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 187, 182, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 62%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Tablet type scale overrides */
@media (min-width: 768px) {
  :root {
    --text-display:   2.75rem;   /* 44px */
    --text-largeTitle: 2.375rem; /* 38px */
    --text-title1:    2rem;      /* 32px */
    --text-title2:    1.5rem;    /* 24px */
    --text-title3:    1.375rem;  /* 22px */
    --text-headline:  1.125rem;  /* 18px */
    --text-body:      1.125rem;  /* 18px */
    --text-callout:   1.0625rem; /* 17px */
    --text-subhead:   1rem;      /* 16px */
    --text-footnote:  0.875rem;  /* 14px */
    --text-caption1:  0.8125rem; /* 13px */
    --text-caption2:  0.75rem;   /* 12px */
  }
}

@media (min-width: 1280px) {
  :root {
    --clv-layout-container: 1320px;
  }
}

/* Desktop type scale overrides */
@media (min-width: 1440px) {
  :root {
    --text-display:   3.25rem;   /* 52px */
    --text-largeTitle: 2.625rem; /* 42px */
    --text-title1:    2.25rem;   /* 36px */
    --text-title2:    1.625rem;  /* 26px */
    --text-title3:    1.5rem;    /* 24px */
    --text-headline:  1.1875rem; /* 19px */
    --text-body:      1.1875rem; /* 19px */
    --text-callout:   1.125rem;  /* 18px */
    --text-subhead:   1.0625rem; /* 17px */
    --text-footnote:  0.9375rem; /* 15px */
    --text-caption1:  0.875rem;  /* 14px */
    --text-caption2:  0.8125rem; /* 13px */
  }
}

@media (min-width: 1536px) {
  :root {
    --clv-layout-container: 1440px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  height: auto;
  padding: 0.65rem 0.9rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--clv-radius-pill);
  z-index: 1000;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: -9999px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid var(--clv-teal-12);
  background: rgba(30, 45, 61, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.875rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 52px;
}

.brand__icon {
  display: none;
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 241, 244, 0.15);
  border-radius: 14px;
  background: rgba(232, 241, 244, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(87, 187, 182, 0.5);
  background: rgba(87, 187, 182, 0.14);
}

.nav-toggle__icon {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(232, 241, 244, 0.75);
  font-size: 1.0625rem;
  font-weight: var(--clv-weight-regular);
  padding: 0.45rem 0.4rem;
  border-radius: 12px;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Products flyout */
.nav-item.has-dropdown {
  position: relative;
}

.nav-products__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-products__trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  margin-top: -0.12rem;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 320px;
  max-width: 420px;
  width: max-content;
  padding: 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--clv-teal-18);
  background: rgba(22, 35, 49, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.has-dropdown:hover .nav-products__trigger::after,
.has-dropdown:focus-within .nav-products__trigger::after {
  transform: rotate(-135deg);
}

.nav-products__trigger:focus-visible {
  outline: none;
  box-shadow: var(--clv-focus-ring);
}

/* Company dropdown */
.nav-details {
  position: relative;
}

.nav-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 241, 244, 0.75);
  font-size: 1.0625rem;
  font-weight: var(--clv-weight-regular);
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-details summary::marker {
  content: "";
}

.nav-details summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  margin-left: 0.1rem;
}

.nav-details[open] summary::after {
  transform: rotate(-135deg);
}

.nav-details__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--clv-teal-18);
  background: rgba(22, 35, 49, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.nav-details__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  color: rgba(232, 241, 244, 0.82);
}

.nav-details__panel a:hover {
  background: var(--clv-teal-12);
  color: var(--ink);
}

.nav-products__panel {
  min-width: 220px;
  width: auto;
  max-width: none;
}

.nav-products__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

body.has-mobile-drawer-open {
  overflow: hidden;
}

.mobile-drawer {
  position: fixed;
  /* Avoid relying on `inset` for older mobile browsers */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(30, 45, 61, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.mobile-drawer__panel {
  /* Fixed panel ensures it anchors to the viewport */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 90vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(87, 187, 182, 0.22);
  background: rgba(22, 35, 49, 0.98);
  box-shadow: -18px 0 32px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: calc(var(--space-3) + env(safe-area-inset-top)) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--clv-teal-18);
}

.mobile-drawer__title {
  font-family: var(--clv-font-heading);
  font-size: var(--clv-size-md);
  font-weight: var(--clv-weight-medium);
  color: var(--clv-color-text-primary);
}

.mobile-drawer__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(87, 187, 182, 0.3);
  background: rgba(47, 62, 84, 0.2);
  color: var(--color-text-primary);
  cursor: pointer;
}

.mobile-drawer__nav {
  flex: 1;
  min-height: 0; /* allow scrolling inside flex container */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-drawer__list a {
  display: block;
  text-decoration: none;
  color: rgba(232, 241, 244, 0.9);
  font-weight: 500;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(87, 187, 182, 0.14);
  background: rgba(47, 62, 84, 0.12);
}

.mobile-drawer__list a:hover {
  color: var(--ink);
  border-color: rgba(87, 187, 182, 0.3);
}

.mobile-drawer__details {
  margin: 0;
  position: relative;
}

.mobile-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: rgba(232, 241, 244, 0.9);
  font-weight: 500;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(87, 187, 182, 0.14);
  background: rgba(47, 62, 84, 0.12);
}

.mobile-drawer__summary::-webkit-details-marker {
  display: none;
}

.mobile-drawer__summary::marker {
  content: "";
}

.mobile-drawer__summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  flex-shrink: 0;
}

.mobile-drawer__details[open] .mobile-drawer__summary::after {
  transform: rotate(-135deg);
}

.mobile-drawer__summary:hover {
  color: var(--ink);
  border-color: rgba(87, 187, 182, 0.3);
}

.mobile-drawer__sublist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  padding-left: var(--space-2);
  border-left: 2px solid rgba(87, 187, 182, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer__sublist a {
  padding: 0.5rem 0.75rem;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    border-color: rgba(232, 241, 244, 0.15);
    background: rgba(232, 241, 244, 0.06);
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none;
  }
}

/* Sections / Typography */
main {
  padding-bottom: var(--space-7);
}

.section {
  padding: var(--space-7) 0;
}

.section--tight {
  padding: var(--space-6) 0;
}

.section--alt {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(87, 187, 182, 0.10), transparent 60%),
    radial-gradient(900px 520px at 90% 100%, rgba(47, 62, 84, 0.16), transparent 65%),
    rgba(30, 45, 61, 0.92);
}

/* Contact layout (form + details + map) */
.contact-layout {
  padding-top: var(--space-6);
}

.contact-layout__intro {
  max-width: 640px;
  margin: 0 0 var(--space-5);
  text-align: left;
}

.contact-layout__eyebrow {
  margin-bottom: var(--space-2);
}

.contact-layout__title {
  margin: 0 0 var(--space-2);
}

.contact-layout__subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

.contact-layout__grid {
  align-items: flex-start;
  gap: var(--space-5);
}

.contact-layout__form-card {
  align-self: stretch;
}

.contact-layout__form-card .form {
  gap: var(--space-4);
}

.contact-layout__form-card .form__row {
  gap: var(--space-4);
}

.contact-layout__privacy {
  margin-top: var(--space-3);
}

.contact-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-layout__info-card {
  align-self: stretch;
}

.contact-layout__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.contact-layout__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(47, 62, 84, 0.28);
  color: var(--clv-color-accent);
  flex-shrink: 0;
}

.contact-layout__item-label {
  margin: 0 0 0.1rem;
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.contact-layout__item-link {
  display: inline-flex;
  color: var(--color-text-primary);
  text-decoration: none;
}

.contact-layout__item-link:hover {
  color: var(--clv-color-accent);
}

.contact-layout__address {
  margin-top: var(--space-3);
}

.contact-layout__address-name {
  margin: 0 0 0.3rem;
  font-weight: 600;
}

.contact-layout__address-line {
  margin: 0;
  color: var(--color-text-secondary);
}

.contact-layout__map-wrapper {
  margin-top: var(--space-3);
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-layout__map {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

@media (min-width: 920px) {
  .contact-layout__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  }

  .contact-layout__form-card {
    padding: calc(var(--space-5) + 0.4rem);
  }

  .contact-layout__map-wrapper {
    max-width: 440px;
  }

  .contact-layout__map {
    height: 300px;
  }
}

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

  .contact-layout__map-wrapper {
    max-width: none;
  }
}

/* Product pages: breathing room, cleaner hierarchy */
.product-page .section {
  padding: var(--space-7) 0;
}
.product-page .section--tight {
  padding: var(--space-7) 0;
}
.product-page h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}
.product-page h2:first-of-type {
  margin-top: 0;
}
.product-page .grid + h2,
.product-page .card + h2 {
  margin-top: var(--space-6);
}
.product-page .list li {
  margin: var(--space-2) 0;
}
.product-page .card {
  padding: var(--space-5);
}
.product-page .grid {
  gap: var(--space-5);
}
.product-page .eyebrow + h1 {
  margin-top: var(--space-2);
}
.product-page .lead {
  margin-bottom: var(--space-5);
}

.product-page .step-card {
  border-top: 2px solid rgba(87, 187, 182, 0.35);
}

.product-page .step-card__num {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: var(--clv-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clv-color-accent);
}

.product-page .step-card__title {
  margin: 0 0 0.65rem;
  font-size: var(--clv-size-md);
  font-weight: var(--clv-weight-regular);
}

.product-page .step-card p {
  margin: 0 0 0.5rem;
}

.product-page .step-card p:last-of-type {
  margin-bottom: 0;
}

/* Product template: icon + heading blocks for What / Who / Inputs / Outputs */
.product-blocks {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .product-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-block {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: auto 1fr;
  align-items: start;
}
.product-block__body {
  min-width: 0;
}
.product-block__title {
  margin: 0 0 var(--space-1);
  font-size: var(--clv-size-sm);
  font-weight: var(--clv-weight-medium);
  color: var(--clv-color-text-primary);
}
.product-block__content {
  margin: 0;
  color: var(--clv-color-text-secondary);
}
.product-block__content.list,
.product-block__content ul {
  list-style: none;
  padding-left: 0;
}
.product-block__content li {
  margin: var(--space-2) 0;
  padding-left: var(--space-3);
  position: relative;
}
.product-block__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(87, 187, 182, 0.6);
}

/* Product sections: aligned What/Who/Inputs/Outputs + Why block */
.product-sections {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-5);
}

.product-sections__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 920px) {
  .product-sections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-section-card {
  --product-icon-glow: var(--clv-teal-18);
  --product-icon-ink: rgba(110, 203, 212, 0.96);

  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--clv-teal-20);
  background:
    radial-gradient(500px 200px at 10% 0%, var(--clv-teal-10), transparent 70%),
    rgba(30, 45, 61, 0.36);
  box-shadow: var(--shadow-sm);
}

.product-section-card--what {
  --product-icon-glow: rgba(110, 203, 212, 0.2);
  --product-icon-ink: rgba(143, 219, 220, 0.96);
}

.product-section-card--who {
  --product-icon-glow: var(--clv-teal-20);
  --product-icon-ink: rgba(110, 203, 212, 0.96);
}

.product-section-card--inputs {
  --product-icon-glow: rgba(103, 186, 199, 0.18);
  --product-icon-ink: rgba(130, 214, 224, 0.96);
}

.product-section-card--outputs {
  --product-icon-glow: rgba(92, 176, 191, 0.2);
  --product-icon-ink: rgba(122, 208, 219, 0.96);
}

.product-section-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 44px;
}

.product-section-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clv-teal-15);
  background:
    radial-gradient(circle at 30% 25%, var(--product-icon-glow), transparent 62%),
    rgba(47, 62, 84, 0.22);
}

.product-section-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--product-icon-ink);
}

.product-section-card__title {
  margin: 0;
  font-size: var(--clv-size-md);
  color: var(--clv-color-text-primary);
}

.product-section-card__body p {
  margin: 0;
  color: var(--clv-color-text-secondary);
}

.product-section-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.product-section-card__list li {
  margin: 0;
  padding-left: var(--space-3);
  position: relative;
  color: var(--clv-color-text-secondary);
}

.product-section-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(87, 187, 182, 0.66);
}

.product-sections__why {
  padding: var(--space-5);
}

.product-sections__why h3 {
  margin: 0 0 var(--space-3);
}

.product-sections__why .list {
  margin: 0;
}

.product-sections__why .tiny {
  margin-top: var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--clv-font-body);
  font-size: var(--clv-size-sm);
  font-weight: var(--clv-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clv-color-accent);
}

.eyebrow::before {
  display: none;
}

h1,
h2,
h3 {
  font-family: var(--clv-font-heading);
  font-weight: var(--clv-weight-regular);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--clv-size-2xl);
}

h2 {
  font-size: var(--clv-size-xl);
}

h3 {
  font-size: var(--clv-size-md);
}

p {
  margin: 0 0 var(--space-3);
  color: var(--clv-color-text-secondary);
}

.lead {
  font-size: var(--clv-size-sm);
  color: var(--clv-color-text-secondary);
  max-width: 62ch;
}

.content-narrow {
  max-width: 62ch;
}

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

.tiny {
  font-size: var(--clv-size-xs);
  color: var(--clv-color-text-muted);
}

.kicker {
  font-weight: var(--clv-weight-medium);
  color: var(--clv-color-text-primary);
}

.hr {
  height: 1px;
  background: rgba(87, 187, 182, 0.14);
  margin: var(--space-6) 0;
}

/* === USE CASES SECTION === */

.home-after-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.home-after-hero > section {
  position: relative;
  z-index: 1;
}

.proofbar {
  position: relative;
  padding: 4.5rem 0;
  background: transparent;
}

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

.proofbar__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.75rem;
  border-left: 1px solid var(--clv-teal-15);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-enter) var(--ease-out),
    transform var(--duration-enter) var(--ease-out);
}

.proofbar__item:first-child {
  padding-left: 0;
  border-left: none;
}

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

.proofbar__item:nth-child(1) { transition-delay: 0ms; }
.proofbar__item:nth-child(2) { transition-delay: 120ms; }
.proofbar__item:nth-child(3) { transition-delay: 240ms; }
.proofbar__item:nth-child(4) { transition-delay: 360ms; }

.proofbar__stat {
  font-family: var(--clv-font-heading);
  font-weight: var(--clv-weight-regular);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--clv-color-text-primary);
  letter-spacing: -0.01em;
}

.proofbar__label {
  margin-top: 0.65rem;
  font-size: var(--step--1);
  color: rgba(232, 241, 244, 0.55);
  max-width: 36ch;
  line-height: 1.45;
}

.proofbar__details {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(232, 241, 244, 0.5);
  line-height: 1.5;
}

.proofbar__details li {
  position: relative;
  padding-left: 1rem;
  margin-top: 0.35rem;
}

.proofbar__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(87, 187, 182, 0.4);
}

.proofbar__details li:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .proofbar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }
  .proofbar__item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .proofbar__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .proofbar__item {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--clv-teal-10);
    padding-bottom: 2rem;
  }
  .proofbar__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.home-after-hero .section.section--tight {
  background: transparent;
  padding-top: calc(var(--space-6) - 0.25rem);
  padding-bottom: calc(var(--space-6) - 0.25rem);
}

.home-after-hero .card {
  background:
    linear-gradient(180deg, rgba(47, 62, 84, 0.06), rgba(30, 45, 61, 0.16)),
    rgba(30, 45, 61, 0.44);
  border-color: rgba(87, 187, 182, 0.10);
}

.home-after-hero .card--soft {
  background: rgba(30, 45, 61, 0.36);
}

.home-after-hero a.card:hover {
  border-color: var(--clv-teal-24);
  box-shadow: var(--shadow-sm);
}

.home-after-hero .cta-band {
  background: transparent;
  border-top: none;
}

.home-after-hero .cta-band__inner {
  padding: var(--space-5);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--clv-teal-12);
  background:
    radial-gradient(760px 320px at 20% 0%, rgba(87, 187, 182, 0.08), transparent 66%),
    rgba(30, 45, 61, 0.48);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-after-hero .reveal,
.home-after-hero .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Responsive */
@media (max-width: 1199px) {
  .home-after-hero .section.section--tight {
    padding-top: calc(var(--space-6) - 0.45rem);
    padding-bottom: calc(var(--space-6) - 0.45rem);
  }
}

@media (max-width: 768px) {
  .home-after-hero .section.section--tight {
    padding-top: calc(var(--space-5) + 0.15rem);
    padding-bottom: calc(var(--space-5) + 0.15rem);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.05rem;
  border-radius: var(--clv-radius);
  border: 1px solid transparent;
  font-weight: var(--clv-weight-medium);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
  will-change: transform;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--clv-focus-ring);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--clv-color-teal);
  color: var(--clv-color-navy);
  border-color: transparent;
  box-shadow: var(--clv-shadow-sm);
  font-weight: var(--clv-weight-medium);
}

.btn-primary:hover {
  background: var(--clv-color-blue);
  color: var(--clv-color-white);
  box-shadow: var(--clv-shadow), var(--clv-shadow-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--clv-color-border-default);
  color: var(--clv-color-text-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: rgba(87, 187, 182, 0.5);
  background: var(--clv-teal-08);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--clv-color-accent);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--clv-teal-08);
  color: var(--clv-color-accent-hover);
}

.btn-pill {
  font-size: var(--step--1);
  padding: 0.5rem 0.75rem;
  background: rgba(47, 62, 84, 0.10);
  border: 1px solid var(--clv-teal-18);
  border-radius: 999px;
  text-decoration: none;
}

/* Layout helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 12-column grid system */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--element-gap);
}

@media (min-width: 768px) {
  .grid-12 {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 920px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Column span helpers */
.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-6  { grid-column: span 6; }
.col-span-8  { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* Responsive col-span collapse */
@media (max-width: 919px) {
  .col-span-8,
  .col-span-12 { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .col-span-6 { grid-column: 1 / -1; }
}

.card {
  background:
    linear-gradient(180deg, rgba(47, 62, 84, 0.12), rgba(30, 45, 61, 0.25)),
    rgba(30, 45, 61, 0.35);
  border: 1px solid var(--clv-color-border-default);
  border-radius: var(--clv-radius);
  box-shadow: var(--clv-shadow-sm);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--duration-slow) var(--ease-default),
    box-shadow var(--duration-slow) var(--ease-default),
    border-color var(--duration-slow) var(--ease-default);
}

a.card {
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--clv-shadow-lg), var(--clv-shadow-glow);
  border-color: rgba(87, 187, 182, 0.46);
}

.card--soft {
  background: rgba(47, 62, 84, 0.08);
}

.card--coming-soon {
  cursor: default;
}

.card--coming-soon:hover {
  transform: none;
  box-shadow: var(--clv-shadow-sm);
  border-color: var(--clv-color-line);
}

.card__badge {
  display: inline-block;
  font-size: var(--clv-size-xs);
  font-weight: var(--clv-weight-medium);
  color: rgba(87, 187, 182, 0.9);
  margin-bottom: 0.35rem;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--clv-teal-15);
  pointer-events: none;
  user-select: none;
}

.chip--accent {
  color: var(--color-text-muted);
  border-color: var(--clv-teal-15);
}

.icon-dot {
  display: none;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--clv-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--clv-font-body);
  font-weight: var(--clv-weight-medium);
  letter-spacing: -0.02em;
  color: rgba(232, 241, 244, 0.96);
  background:
    radial-gradient(circle at 30% 30%, rgba(87, 187, 182, 0.30), transparent 55%),
    linear-gradient(135deg, rgba(47, 62, 84, 0.92), rgba(30, 45, 61, 0.64));
  border: 1px solid rgba(87, 187, 182, 0.22);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.3);
}

.avatar--green {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(87, 187, 182, 0.92), rgba(110, 203, 212, 0.86));
}

/* Team card: large image/avatar on top, name, role, Read more → bio */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
}

.team-card__head {
  width: calc(100% + 2 * var(--space-4));
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  margin-top: 0;
  margin-bottom: var(--space-3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 62, 84, 0.2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.team-card__head--photo {
  padding: 0;
}

.team-card__head--placeholder {
  padding: var(--space-4);
  color: rgba(168, 188, 196, 0.5);
}

.team-card__head--placeholder .team-card__placeholder-icon {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}

.team-card__head--photo .team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
}

.team-card__name {
  margin: 0 0 var(--space-1);
  font-size: var(--step-1);
}

.team-card__name + .tiny.muted {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.team-card__details {
  margin: 0;
  text-align: left;
}

.team-card__read-more {
  font-size: var(--clv-size-xs);
  font-weight: var(--clv-weight-medium);
  color: var(--clv-color-accent);
  cursor: pointer;
  list-style: none;
  display: inline-block;
  margin-bottom: 0;
}

.team-card__read-more::-webkit-details-marker {
  display: none;
}

.team-card__read-more:hover {
  text-decoration: underline;
}

.team-card__details[open] .team-card__read-more {
  margin-bottom: var(--space-2);
}

.team-card__bio {
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: var(--step--1);
  line-height: 1.55;
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 18%, var(--clv-teal-18), transparent 60%),
    radial-gradient(820px 520px at 86% 22%, rgba(47, 62, 84, 0.42), transparent 62%);
  filter: saturate(110%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__visual {
  overflow: hidden;
  position: relative;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 45, 61, 0.00), rgba(30, 45, 61, 0.14));
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Full-width overlay hero (home page) */
.hero--overlay {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero--home {
  background-image: url("/assets/img/Hero-Main.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 35, 49, 0.72) 0%, rgba(30, 45, 61, 0.66) 40%, rgba(30, 45, 61, 0.48) 70%, rgba(30, 45, 61, 0.38) 100%),
    linear-gradient(180deg, rgba(30, 45, 61, 0.28) 0%, rgba(30, 45, 61, 0.58) 72%, rgba(30, 45, 61, 0.78) 100%),
    radial-gradient(ellipse at 16% 45%, rgba(30, 45, 61, 0.3), transparent 60%);
}

.hero--overlay .hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

@media (min-width: 1280px) {
  .header__inner {
    padding: 1.125rem 0;
  }

  .site-nav {
    gap: 1.6rem;
  }

  .hero--overlay {
    padding: clamp(4.5rem, 6.8vw, 7.5rem) 0 clamp(3.4rem, 5.3vw, 5.4rem);
  }

  .hero--overlay .hero__content {
    max-width: 800px;
  }

  .hero--overlay h1 {
    margin-bottom: calc(var(--space-3) + 0.35rem);
  }

  .hero--overlay .lead {
    max-width: 68ch;
    margin-bottom: calc(var(--space-3) + 0.3rem);
  }

  .hero--overlay .hero__actions {
    gap: var(--space-3);
    margin-top: calc(var(--space-4) + 0.35rem);
  }
}

@media (min-width: 1536px) {
  .header__inner {
    padding: 1.25rem 0;
  }

  .site-nav {
    gap: 1.75rem;
  }

  .hero--overlay .hero__content {
    max-width: 840px;
  }

  .hero--overlay .lead {
    max-width: 72ch;
  }

  .hero--overlay .hero__actions {
    margin-top: calc(var(--space-4) + 0.6rem);
  }

  .hero--home {
    background-position: center 24%;
  }
}

.hero--overlay .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.hero--overlay .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 45, 61, 0.4) 0%, rgba(30, 45, 61, 0.7) 60%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(30, 45, 61, 0.6), transparent 70%);
  z-index: 1;
}

.hero--overlay .network {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.55;
  position: absolute;
  inset: 0;
}

/* Animated SVG network */
.network .link {
  stroke: rgba(87, 187, 182, 0.35);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: linkFlow 8s linear infinite;
}

.network .link-strong {
  stroke: rgba(87, 187, 182, 0.5);
  stroke-dasharray: 24 14;
  animation-duration: 10s;
}

.network .node {
  fill: rgba(87, 187, 182, 0.9);
  filter: drop-shadow(0 0 10px rgba(87, 187, 182, 0.25));
  transform-origin: center;
  animation: pulse 3.2s ease infinite;
}

.network .node:nth-child(2n) {
  animation-duration: 4.2s;
}

.network .node:nth-child(3n) {
  animation-duration: 5s;
}

.network .halo {
  fill: var(--clv-teal-12);
  animation: halo 3.2s ease infinite;
}

@keyframes linkFlow {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes halo {
  0%, 100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.22;
  }
}

/* Hero stagger-in animations */
.stagger {
  opacity: 0;
  transform: translateY(14px);
}

body.is-loaded .stagger {
  animation: fadeUp 720ms ease both;
  animation-delay: var(--delay, 0ms);
}

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

/* Card header image (full width inside card padding) */
.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.insights-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 760px) {
  .insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.insight-card {
  list-style: none;
}

.insight-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(87, 187, 182, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 100%, rgba(47, 62, 84, 0.28), transparent 60%),
    rgba(30, 45, 61, 0.95);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.insight-card__image {
  flex-shrink: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.insight-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-4);
}

.insight-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card__title {
  margin: 0;
  font-size: var(--step-1);
}

.insight-card__excerpt {
  margin: 0;
  color: var(--color-text-secondary);
}

.insight-card__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

@media (prefers-reduced-motion: reduce) {
  .insight-card__link {
    transition: none !important;
    transform: none !important;
  }

  .insight-card__link:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm);
  }
}

.pagination {
  margin-top: var(--space-4);
}

.pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pagination__link {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 187, 182, 0.3);
  text-decoration: none;
  color: rgba(232, 241, 244, 0.9);
}

.pagination__link:hover {
  border-color: rgba(87, 187, 182, 0.6);
  color: var(--ink);
}

/* Blog post featured image */
.prose__featured-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

/* Form success state */
.form__success {
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

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

/* Proof block */
.proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 760px) {
  .proof {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--clv-teal-20);
  background: rgba(30, 45, 61, 0.35);
  box-shadow: var(--shadow-sm);
}

.stat__num {
  font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  font-family: var(--clv-font-mono);
  font-weight: var(--clv-weight-medium);
  letter-spacing: -0.03em;
  color: var(--clv-color-accent);
  text-shadow: 0 0 26px var(--clv-color-accent-glow);
  margin: 0 0 0.3rem;
}

.stat__label {
  margin: 0;
  color: var(--clv-color-text-secondary);
}

/* Lists */
.list {
  padding-left: 1.1rem;
  margin: 0;
}

.list li {
  margin: 0.45rem 0;
  color: var(--clv-color-text-secondary);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--clv-size-xs);
  font-weight: var(--clv-weight-medium);
  color: var(--clv-color-text-secondary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--clv-teal-18);
  background: rgba(30, 45, 61, 0.5);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-muted);
}

.field select option {
  background-color: var(--clv-color-bg-surface);
  color: var(--color-text-primary);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  box-shadow: var(--clv-focus-ring);
  border-color: rgba(87, 187, 182, 0.4);
}

.form__hint {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

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

@media (min-width: 860px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Homepage CTA band */
.cta-band {
  padding-top: calc(var(--space-7) + var(--space-2));
  padding-bottom: calc(var(--space-7) + var(--space-1));
  border-top: 1px solid rgba(87, 187, 182, 0.22);
  background:
    radial-gradient(880px 300px at 85% 15%, var(--clv-teal-12), transparent 72%),
    linear-gradient(180deg, rgba(30, 45, 61, 0.38), rgba(30, 45, 61, 0.94));
}

.cta-band__inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.cta-band__lead {
  margin: 0;
  max-width: 54ch;
  color: rgba(232, 241, 244, 0.86);
}

.cta-band__actions {
  display: grid;
  gap: var(--space-2);
  align-items: start;
}

.cta-band__actions .btn {
  width: 100%;
}

.cta-band__secondary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.cta-band__secondary a {
  color: rgba(232, 241, 244, 0.78);
}

.cta-band__secondary a:hover {
  color: var(--color-text-primary);
}

@media (min-width: 860px) {
  .cta-band__inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-5);
  }

  .cta-band__actions {
    width: min(100%, 320px);
    justify-self: end;
  }
}

/* Footer (dark, simple) */
.site-footer {
  border-top: 1px solid var(--clv-teal-18);
  padding: var(--space-6) 0;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(87, 187, 182, 0.14), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(47, 62, 84, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(30, 45, 61, 0.25), rgba(30, 45, 61, 0.98));
  color: rgba(232, 241, 244, 0.92);
}

.site-footer a {
  color: rgba(232, 241, 244, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.site-footer .tiny {
  color: rgba(244, 241, 234, 0.72);
}

.footer {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 920px) {
  .footer {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__brand img {
  width: 160px;
  height: auto;
}

.footer__cols {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 520px) {
  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 241, 244, 0.5);
}

.footer__col {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.footer__muted {
  color: rgba(244, 241, 234, 0.72);
}

.footer__desc {
  font-size: 0.82rem;
  color: rgba(244, 241, 234, 0.55);
  margin: 0;
  line-height: 1.5;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(244, 241, 234, 0.35);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__linkedin:hover {
  color: var(--clv-color-accent);
  text-decoration: none;
}

.footer__legal {
  font-size: 0.7rem;
  color: rgba(244, 241, 234, 0.32);
  margin: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(87, 187, 182, 0.10);
  grid-column: 1 / -1;
}

/* Motion: use prefers-reduced-motion, reveal class for meaningful sections. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-enter) var(--ease-out),
    transform var(--duration-enter) var(--ease-out);
}

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

/* Long-form content (blog) */
.prose {
  max-width: 74ch;
}

.prose h1 {
  font-size: var(--step-3);
  margin-top: 0;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-5);
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: var(--space-4);
}

.prose p,
.prose li {
  color: var(--color-text-primary);
}

.prose blockquote {
  margin: var(--space-4) 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(87, 187, 182, 0.6);
  background: rgba(47, 62, 84, 0.12);
  border-radius: 16px;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: rgba(87, 187, 182, 0.10);
  padding: 0.1rem 0.3rem;
  border-radius: 10px;
}

.prose hr {
  border: 0;
  height: 1px;
  background: rgba(87, 187, 182, 0.14);
  margin: var(--space-5) 0;
}

@media (max-width: 768px) {
  .hero--overlay {
    min-height: calc(100dvh - var(--header-height));
  }

  .hero--overlay .network {
    opacity: 0.35;
  }
}

/* ===================================================================
   LIGHT MODE PREP (commented out, activate when ready)
   =================================================================== */
/*
@media (prefers-color-scheme: light) {
  :root {
    --clv-color-bg: #F8FAFB;
    --clv-color-bg-deep: #EDF1F3;
    --clv-color-bg-surface: #FFFFFF;
    --clv-color-bg-elevated: #FFFFFF;
    --clv-color-text-primary: #1E2D3D;
    --clv-color-text-secondary: #4A5568;
    --clv-color-text-muted: #718096;
    --clv-color-accent: #3B7F7C;
    --clv-color-accent-hover: #2C6360;
    --clv-color-accent-glow: rgba(59, 127, 124, 0.2);
    --clv-color-border-subtle: rgba(30, 45, 61, 0.08);
    --clv-color-border-default: rgba(30, 45, 61, 0.15);
    --clv-color-overlay: rgba(255, 255, 255, 0.8);
    --clv-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --clv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --clv-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --clv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --clv-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    color-scheme: light;
  }
}
*/

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .reveal {
    transition: none !important;
  }

  .btn:hover,
  a.card:hover {
    transform: none !important;
  }

  .reveal,
  .stagger,
  .proofbar__item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
