/* ===========================================================
   EpiKern — styles.css
   Palette: deep teal #085041 / #0F6E56 + neutral greys
   Typography: Inter (sans) + Fraunces (display accent)
   =========================================================== */

:root {
  --teal-900: #06392d;
  --teal-800: #085041;
  --teal-700: #0f6e56;
  --teal-600: #1a8a6e;
  --teal-50:  #e9f2ee;

  --ink-900: #0b1916;
  --ink-700: #2a3a36;
  --ink-500: #5b6b67;
  --ink-300: #98a4a0;
  --ink-200: #d6dcd9;
  --ink-100: #eef1ef;
  --ink-50:  #f7f8f7;

  --bg: #ffffff;
  --bg-alt: #f5f7f6;

  --radius: 10px;
  --radius-lg: 18px;

  --maxw: 1180px;

  --ff-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-serif: 'Fraunces', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(11, 25, 22, 0.04), 0 1px 1px rgba(11, 25, 22, 0.03);
  --shadow-md: 0 6px 24px -8px rgba(11, 25, 22, 0.08), 0 2px 6px rgba(11, 25, 22, 0.04);

  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-med:  320ms cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--teal-800); }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-800);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.scrolled {
  border-bottom-color: var(--ink-200);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { height: 22px; width: auto; }
.brand-name { font-size: 18px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav > a,
.primary-nav .nav-dd-trigger {
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.primary-nav > a:hover,
.primary-nav .nav-dd-trigger:hover { color: var(--teal-800); }

/* --- Dropdown menu (Solutions) --- */
.nav-dd { position: relative; }
.nav-dd-trigger .caret { transition: transform var(--t-fast); }
.nav-dd[aria-open="true"] .caret { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 360px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(11, 25, 22, 0.25), 0 4px 12px rgba(11, 25, 22, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 60;
}
.nav-dd[aria-open="true"] .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink-900);
  text-decoration: none;
  transition: background var(--t-fast);
}
.nav-dd-panel a:hover { background: var(--teal-50); color: var(--teal-800); }
.dd-title { font-size: 14.5px; font-weight: 600; }
.dd-sub   { font-size: 13px; color: var(--ink-500); }
.nav-dd-panel a:hover .dd-sub { color: var(--teal-700); }

.mobile-group {
  display: block;
  padding: 14px 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--ink-200);
  background: #fff;
}
.mobile-nav a {
  padding: 14px 0;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav.open { display: flex; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--teal-800);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-700);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  border-color: var(--teal-800);
  color: var(--teal-800);
}
.btn-link {
  background: transparent;
  padding: 14px 8px;
  color: var(--teal-800);
}
.btn-link:hover { color: var(--teal-700); }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vw, 160px) 0 clamp(80px, 14vw, 140px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(15, 110, 86, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfcfb 0%, #ffffff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding: 6px 14px;
  border: 1px solid rgba(15, 110, 86, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
}
.hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink-900);
}
.hero-title .accent {
  color: var(--teal-800);
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 40px;
}
.hero-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 12px 0 36px;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: 22px 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hm {
  flex: 1;
  min-width: 160px;
  padding: 0 18px;
  text-align: center;
  border-right: 1px solid var(--ink-200);
}
.hm:last-child { border-right: 0; }
.hm-num {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1;
  color: var(--teal-800);
  letter-spacing: -0.02em;
}
.hm-num span {
  font-size: 0.45em;
  vertical-align: top;
  margin-left: 2px;
  color: var(--teal-600);
}
.hm-label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}

.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 620px;
  margin: 36px auto 0;
}
.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast),
              background var(--t-fast);
  text-align: left;
}
.path-card:hover {
  border-color: var(--teal-700);
  transform: translateY(-2px);
  background: #fbfdfc;
  color: inherit;
}
.path-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.path-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}
.path-card:hover .path-title { color: var(--teal-800); }

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.hero-meta .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--teal-600);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(26, 138, 110, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 138, 110, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(26, 138, 110, 0); }
}
.hero-meta .sep { color: var(--ink-300); }

/* --- Sections --- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section-light { background: var(--bg-alt); }
.section-dark {
  background: var(--teal-900);
  color: #d8e4df;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-tag { color: rgba(255, 255, 255, 0.55); }

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0 0 24px;
  max-width: 720px;
}
.lead-light { color: rgba(255, 255, 255, 0.85); }

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.prose-grid p { margin: 0; max-width: 540px; }

.transition {
  margin: 56px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-700);
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
}
.transition strong { font-style: normal; font-weight: 500; color: var(--teal-800); }
.section-dark .transition { color: rgba(255, 255, 255, 0.78); }
.section-dark .transition strong { color: #fff; }

/* --- Tile grids (Industries / Solutions on homepage) --- */
.tiles {
  display: grid;
  gap: 20px;
}
.tiles.tiles-6 { grid-template-columns: repeat(3, 1fr); }
.tiles.tiles-5 { grid-template-columns: repeat(3, 1fr); }
.tiles.tiles-5 .tile:nth-child(4),
.tiles.tiles-5 .tile:nth-child(5) { grid-column: span 1; }
/* Solution-tile accent: subtle different border + icon ring */
.tile-sol .tile-icon {
  background: rgba(15, 110, 86, 0.08);
}
.tile-sol:hover .tile-icon {
  background: var(--teal-700);
}
.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-med), box-shadow var(--t-med),
              border-color var(--t-med);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-700);
  color: inherit;
}
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--t-med), color var(--t-med);
}
.tile:hover .tile-icon {
  background: var(--teal-800);
  color: #fff;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.tile p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-500);
  flex-grow: 1;
}
.tile-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--teal-800);
  letter-spacing: 0.01em;
  transition: gap var(--t-fast);
}
.tile:hover .tile-link { color: var(--teal-700); }

/* --- Cards grid --- */
.cards {
  display: grid;
  gap: 24px;
}
.cards.two   { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four  { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}
.card h3 {
  font-family: var(--ff-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
  color: var(--ink-900);
}
.card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-500);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card .num {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.card-dark h3 { color: #fff; }
.card-dark p  { color: rgba(255, 255, 255, 0.7); }
.card-dark:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Steps (Science section) --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-num {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.steps h3 {
  font-family: var(--ff-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.science-figure {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0 0 32px;
  text-align: center;
}
.science-figure img {
  filter: invert(1) contrast(1.05);
  margin: 0 auto;
  max-width: 600px;
  height: auto;
}
.science-caption {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}
.science-foot { text-align: center; margin: 0; }

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.30);
}

/* --- Credibility bar --- */
.credibility { padding-top: 0; }
.cred-eyebrow {
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin: 0 0 28px;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: 36px 0;
}
.cred-block {
  padding: 0 28px;
  border-right: 1px solid var(--ink-200);
  text-align: center;
}
.cred-block:last-child { border-right: 0; }
.cred-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin: 0 0 10px;
}
.cred-list {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
  font-weight: 500;
}
.cred-statement {
  margin: 36px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-700);
}

/* --- Solution sub-page --- */
.solution-page .sol-hero {
  padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 60px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(15, 110, 86, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfb 0%, #ffffff 100%);
}
.crumbs {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--ink-500);
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--teal-800); }
.crumbs span { color: var(--ink-300); margin: 0 8px; }
.crumbs span:last-child { color: var(--ink-700); margin-left: 8px; }
.sol-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 18px;
  max-width: 820px;
}
.sol-lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 680px;
  margin: 0 0 28px;
}

.container.narrow { max-width: 820px; }
.container.center { text-align: center; }

.section-cta {
  background: var(--bg-alt);
  padding: clamp(60px, 10vw, 100px) 0;
}
.section-cta .section-title { margin-bottom: 14px; }
.section-cta .lead { margin: 0 auto 32px; }

/* Light variant — used inside section-cta on solution sub-pages.
   Selectors are deliberately scoped tighter than the dark base so they
   always win regardless of file order. */
.contact-form.contact-form-light {
  background: #fff;
  border: 1px solid var(--ink-200);
  text-align: left;
  margin: 0 auto;
  max-width: 640px;
  box-shadow: var(--shadow-md);
}
.contact-form.contact-form-light label {
  color: var(--ink-700);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 13.5px;
}
.contact-form.contact-form-light label > span {
  color: var(--ink-700);
}
.contact-form.contact-form-light label small { color: var(--ink-500); font-weight: 400; }
.contact-form.contact-form-light input,
.contact-form.contact-form-light textarea,
.contact-form.contact-form-light select {
  background: var(--bg-alt);
  border: 1px solid var(--ink-200);
  color: var(--ink-900);
}
.contact-form.contact-form-light input::placeholder,
.contact-form.contact-form-light textarea::placeholder {
  color: var(--ink-300);
}
.contact-form.contact-form-light input:focus,
.contact-form.contact-form-light textarea:focus,
.contact-form.contact-form-light select:focus {
  background: #fff;
  border-color: var(--teal-700);
}
.contact-form.contact-form-light select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%232a3a36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.contact-form.contact-form-light select option {
  background: #fff;
  color: var(--ink-900);
}
.contact-form.contact-form-light .form-note { color: var(--ink-500); }
.contact-form.contact-form-light .form-note a { color: var(--teal-800); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Select styling */
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form-light select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%232a3a36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.contact-form select option {
  background: #0a382e;
  color: #fff;
}
.contact-form-light select option {
  background: #fff;
  color: var(--ink-900);
}

/* Related solutions block */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.related-card:hover {
  border-color: var(--teal-700);
  color: inherit;
  transform: translateX(2px);
}
.r-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  flex-shrink: 0;
  width: 200px;
}
.r-desc {
  font-size: 14px;
  color: var(--ink-500);
  flex-grow: 1;
}
.r-arrow {
  color: var(--teal-700);
  font-size: 20px;
  flex-shrink: 0;
}

/* --- How section --- */
.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-figure {
  margin: 0;
  background: linear-gradient(180deg, #fbfcfb 0%, #eef3f1 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.how-figure img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: contrast(1.05);
}
.how-figure figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-500);
  font-style: italic;
}
.how-text p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0 0 24px;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  padding: 14px 0;
  border-top: 1px solid var(--ink-200);
  color: var(--ink-500);
  font-size: 15.5px;
}
.bullets li:last-child { border-bottom: 1px solid var(--ink-200); }
.bullets li span {
  display: inline-block;
  color: var(--ink-900);
  font-weight: 500;
  margin-right: 6px;
}

/* --- Metrics --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: 48px 0;
}
.metric {
  text-align: left;
  padding: 0 12px;
  border-right: 1px solid var(--ink-200);
}
.metric:last-child { border-right: 0; }
.metric-num {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  color: var(--teal-800);
  letter-spacing: -0.03em;
}
.metric-suffix {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 4px;
  color: var(--teal-600);
}
.metric-label {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.metric-detail {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}

/* Dark variant: invert metric colors so they're readable on teal-900 */
.section-dark .metrics {
  border-top-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.section-dark .metric { border-right-color: rgba(255, 255, 255, 0.14); }
.section-dark .metric:last-child { border-right: 0; }
.section-dark .metric-num    { color: #fff; }
.section-dark .metric-suffix { color: rgba(255, 255, 255, 0.55); }
.section-dark .metric-label  { color: #fff; }
.section-dark .metric-detail { color: rgba(255, 255, 255, 0.65); }

/* --- Contact --- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text .lead { margin-bottom: 32px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-list span {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact-list a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  word-break: break-all;
}
.contact-list a:hover { color: var(--teal-50); }

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}
.contact-form label small {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-transform: none;
  letter-spacing: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal-600);
  background: rgba(255, 255, 255, 0.10);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.form-thanks {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  animation: thanksIn 500ms cubic-bezier(.16, .84, .44, 1);
}
.form-thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(26, 138, 110, 0.18);
  color: #6ad0a8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-thanks-icon svg { width: 28px; height: 28px; }
.form-thanks h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 12px;
}
.form-thanks p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.form-thanks p strong { color: #fff; font-weight: 500; }

/* Light variant of the thank-you card (used on solution sub-pages) */
.form-thanks-light {
  background: #fff;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}
.form-thanks-light .form-thanks-icon {
  background: var(--teal-50);
  color: var(--teal-800);
}
.form-thanks-light h3 { color: var(--ink-900); }
.form-thanks-light p { color: var(--ink-500); }
.form-thanks-light p strong { color: var(--ink-900); }

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

/* --- Footer --- */
.site-footer {
  background: #fff;
  color: var(--ink-500);
  padding: 56px 0 32px;
  border-top: 1px solid var(--ink-200);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 600;
}
.footer-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
  font-weight: 600;
}
.footer-orgs {
  margin: 0;
  font-size: 14px;
  color: var(--ink-700);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin: 0 0 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-500);
}
.footer-col a:hover { color: var(--teal-800); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-links a { color: var(--ink-500); }
.footer-links a:hover { color: var(--teal-800); }
.footer-legal {
  font-size: 13px;
  text-align: right;
}
.footer-legal p { margin: 0 0 4px; }
.footer-legal a { color: var(--ink-500); }
.footer-legal a:hover { color: var(--teal-800); }

/* --- Legal pages (legal mentions / privacy) --- */
.legal {
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 10vw, 100px);
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal .eyebrow {
  margin-bottom: 24px;
}
.legal h1 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink-900);
}
.legal .updated {
  margin: 0 0 48px;
  font-size: 14px;
  color: var(--ink-500);
}
.legal h2 {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 48px 0 12px;
}
.legal h3 {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  margin: 28px 0 8px;
}
.legal p,
.legal li {
  color: var(--ink-700);
  line-height: 1.7;
  font-size: 16px;
}
.legal ul {
  padding-left: 22px;
  margin: 12px 0 20px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--teal-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--ink-200);
  margin: 56px 0;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 14.5px;
  color: var(--ink-500);
}
.legal .back:hover { color: var(--teal-800); }

/* --- Cookie / privacy notice banner --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -12px rgba(11, 25, 22, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.cookie-banner--in { opacity: 1; transform: none; }
.cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}
.cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text a:hover { color: var(--teal-50); }
.cookie-ok {
  flex-shrink: 0;
  padding: 8px 18px;
  background: #fff;
  color: var(--ink-900);
  border: 0;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast);
}
.cookie-ok:hover { background: var(--teal-50); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
  .cookie-ok { width: 100%; }
}

/* --- Reveal-on-scroll animations --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,.84,.44,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .prose-grid { grid-template-columns: 1fr; gap: 18px; }
  .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .tiles, .tiles.tiles-5, .tiles.tiles-6 { grid-template-columns: repeat(2, 1fr); }
  .hero-paths { grid-template-columns: 1fr; max-width: 360px; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .metrics { grid-template-columns: 1fr; padding: 24px 0; gap: 0; }
  .metric { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--ink-200); }
  .metric:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; padding: 24px 0; }
  .cred-block { padding: 22px 12px; border-right: 0; border-bottom: 1px solid var(--ink-200); }
  .cred-block:last-child { border-bottom: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-legal { text-align: left; grid-column: 1 / -1; }
  .row-2 { grid-template-columns: 1fr; gap: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .r-label { width: 160px; }
  .hero-metrics { padding: 18px 0; }
  .hm { padding: 12px 8px; min-width: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; }
  .tiles, .tiles.tiles-5, .tiles.tiles-6 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-metrics { flex-direction: column; padding: 0; border: 0; }
  .hm { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--ink-200); }
  .hm:last-child { border-bottom: 0; }
  .nav-dd-panel { width: 92vw; }
}
