/* ==========================================================================
   DRAHOLA Technologies / yey'maps — Design System
   Signature device: a "survey mark" (small tick + circle, borrowed from
   civil-engineering benchmark symbols) labels every section and connects
   the lifecycle/process diagrams. It stands in for a point on a map —
   literal, not decorative — echoing the site's coordination thesis.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; }
a { color: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Client-specified palette. Two dark navies are used deliberately:
     --navy (Deep navy #062B42) for nav/footer/button text and the darkest
     backgrounds; --navy-700 (Dark navy #0A3A55) for headings and secondary
     dark sections — matching the palette's own role descriptions. */
  --logo-blue: #199AD7;   /* Main background — hero, banners */
  --navy-700: #0A3A55;    /* Dark navy — headings, secondary dark sections */
  --navy: #062B42;        /* Deep navy — text on blue, navigation, footer */
  --charcoal: #062B42;
  --blue: #199AD7;        /* card hover accent border */
  /* Slightly darker than the spec's #007E9E (which dips to ~4:1 against
     our light backgrounds) so eyebrows/links clear AA everywhere they sit. */
  --blue-700: #00728F;    /* links, icons, nav/focus states */
  --blue-100: #DDF3FC;    /* Light blue — alternating sections, icon backdrops */
  --teal: #00BFA6;        /* Teal accent — icons, checkmarks */
  --teal-100: #F1F9F8;
  --success-text: #168B72; /* readable pairing for teal on light tints */
  --amber: #D88700;       /* Warning — risk/attention indicators */
  --amber-100: #FAF0E1;
  --amber-text: #8A5C0F;
  --gray-900: #243746;    /* Body text */
  /* Muted text: darkened slightly from the spec's #647985 (which falls to
     ~4.0:1 against our light backgrounds) so secondary paragraph text
     clears WCAG AA's 4.5:1 sitewide — same hue, barely perceptible. */
  --gray-700: #576974;
  --gray-500: #576974;
  --gray-300: #B9DDEA;    /* Border */
  --gray-200: #DDF3FC;
  --gray-100: #DDF3FC;
  --bg: #F3FAFD;          /* Ice blue — main page background */
  --bg-alt: #DDF3FC;      /* Light blue — alternating sections */
  --paper: #FFFFFF;
  --line: #B9DDEA;        /* Border */
  --focus: #00728F;
  --accent: #FFC857;      /* Warm accent — CTAs, highlights */
  --accent-hover: #FFB41A;
  --error: #C63F4A;

  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(20, 41, 58, 0.06), 0 1px 1px rgba(20, 41, 58, 0.04);
  --shadow-lift: 0 10px 30px rgba(20, 41, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 41, 58, 0.20);
  --shadow-hero: 0 30px 80px rgba(2, 6, 23, 0.28);
}

/* ---------- Fonts (Inter, self-hosted — https://github.com/rsms/inter) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.55;
  font-size: 16px;
}

a { text-decoration: none; }
a.text-link {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--gray-300);
}
a.text-link:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-700);
  letter-spacing: -0.03em;
}

h1, .h1 { font-size: clamp(2.4rem, 1.9rem + 2.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.04em; }
h2, .h2 { font-size: clamp(1.7rem, 1.45rem + 1.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; }
h3, .h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
h4, .h4 { font-size: 1.1rem; line-height: 1.3; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--gray-700);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* Survey-mark: small circle-on-tick used before every eyebrow label */
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--blue-700);
  background: var(--bg);
}

.mono-data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Pill badge — used sparingly (e.g. one hero intro badge), unlike the
   plain .eyebrow label used throughout the rest of the site */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.section { padding: clamp(3rem, 2.4rem + 3vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 1.7rem + 1.5vw, 3rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-700); color: #EAF1F4; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #9FCBDD; }
.section-navy .eyebrow::before { border-color: #9FCBDD; background: var(--navy-700); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.7rem + 1vw, 3rem);
}
.section-head + .section-head { margin-top: -1rem; }
.section-head h2 { margin-top: 0.6rem; }
.section-head p { margin-top: 0.9rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-700); }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { background: var(--blue-100); }
.btn-outline-on-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-on-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
/* yey'maps wordmark logo, used in every page header */
.brand-logo { height: 34px; width: auto; flex: none; }

.nav-desktop {
  display: none;
}
.nav-desktop ul { display: flex; list-style: none; gap: 1.6rem; align-items: center; }
.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--blue-700);
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  color: var(--navy);
  font-weight: 600;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1180px) {
  .nav-desktop { display: block; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
@media (max-width: 1179px) {
  .mobile-menu.is-open { display: block; }
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.mobile-menu .container { padding-top: 0.5rem; padding-bottom: 1.25rem; }
.mobile-menu .btn { margin-top: 1rem; }

/* persistent mobile contact bar */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  padding: 0.65rem 1rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(20,41,58,0.18);
}
.mobile-cta-bar .btn { width: 100%; max-width: 420px; }
@media (min-width: 1180px) { .mobile-cta-bar { display: none; } }
body.has-mobile-cta { padding-bottom: 72px; }
@media (min-width: 1180px) { body.has-mobile-cta { padding-bottom: 0; } }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) 0 clamp(3.5rem, 2rem + 3vw, 6rem);
}
.hero.hero-gradient {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(160deg, var(--logo-blue) 0%, #1580B2 100%);
}
.hero.hero-gradient .blob:nth-child(1) { width: 420px; height: 420px; left: -160px; top: -170px; }
.hero.hero-gradient .blob:nth-child(2) { width: 340px; height: 340px; right: -100px; top: 20px; }
.hero.hero-gradient .container { position: relative; }
/* Palette guidance: white text on the primary blue is hard to read at
   normal sizes, so headings and body copy in the hero use deep navy. */
.hero.hero-gradient h1 { color: var(--navy); }
.hero.hero-gradient .lede { color: var(--navy); opacity: 0.88; }
.hero.hero-gradient .hero-trust { color: var(--navy); opacity: 0.75; border-top-color: rgba(6,43,66,0.25); }
.hero .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}
.hero-copy .pill { margin-bottom: 1.25rem; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-trust {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--gray-700);
}

.hero-graphic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  position: relative;
}
.hero-graphic > svg {
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
}

/* Decorative blurred circles for gradient sections (hero, CTA) */
.blob {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.12;
  filter: blur(2px);
  pointer-events: none;
}

/* Small floating card that overlaps the hero visual's bottom-left corner,
   echoing the layered-card depth of the reference design */
.value-card {
  position: absolute;
  left: -1.25rem;
  bottom: -1.5rem;
  max-width: 15rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem;
  z-index: 2;
}
.value-card .check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.value-card .check + .check { margin-top: 0.6rem; }
.value-card .check-dot {
  width: 20px; height: 20px; border-radius: 7px; flex: none;
  background: var(--success-text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
@media (max-width: 640px) {
  .value-card { position: static; margin-top: -1.5rem; margin-left: 1.25rem; margin-right: 1.25rem; max-width: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  flex: none;
}
.card-icon svg { width: 24px; height: 24px; color: var(--blue-700); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-700); font-size: 0.97rem; }
.card.card-compact { padding: 1.25rem; }
a.card, .card.lift { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow-lift); }
a.card h3 { color: var(--navy-700); }

.role-card { border-left: 3px solid var(--blue-700); }
.role-card .role-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue-700); margin-bottom: 0.5rem; display: block;
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge-verified { background: var(--teal-100); color: var(--success-text); }
.badge-verified::before { background: var(--teal); }
.badge-estimated { background: var(--amber-100); color: var(--amber-text); }
.badge-estimated::before { background: var(--amber); }
.badge-assumed { background: var(--gray-100); color: var(--gray-700); }
.badge-assumed::before { background: var(--gray-500); }
.badge-unknown { background: var(--gray-100); color: var(--gray-500); border: 1px dashed var(--gray-300); }
.badge-unknown::before { background: transparent; border: 1px dashed var(--gray-500); }

/* ---------- Diagram: convergence (problem section) ---------- */
.convergence { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .convergence { grid-template-columns: 1fr 1fr; } }
.source-list { list-style: none; display: grid; gap: 0.7rem; }
.source-list li {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.7rem 0.9rem;
  font-size: 0.92rem; font-weight: 600; color: var(--gray-700);
}
.source-list li svg { width: 18px; height: 18px; color: var(--blue-700); flex: none; }

/* ---------- Lifecycle loop ---------- */
.lifecycle-wrap { text-align: center; }
.lifecycle-diagram { max-width: 640px; margin: 0 auto; }
.lifecycle-legend {
  margin-top: 1.5rem;
  display: grid; gap: 0.6rem;
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 700px) { .lifecycle-legend { grid-template-columns: repeat(2, 1fr); } }
.lifecycle-legend li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--gray-700); }
.lifecycle-legend .num {
  font-family: var(--font-mono); font-weight: 700; color: var(--blue-700);
  flex: none; width: 1.4rem;
}

/* ---------- Process steps (QuickStart) ---------- */
.process-steps {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 800px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) { .process-steps.six { grid-template-columns: repeat(3, 1fr); } }
.process-step { position: relative; padding-top: 2.6rem; }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  top: 0; left: 0;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 0.35rem; left: 1.9rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--blue-700);
  background: var(--bg);
}
.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { color: var(--gray-700); font-size: 0.95rem; }
@media (min-width: 800px) {
  .process-step:not(:last-child) .process-step-connector {
    position: absolute; top: 0.4rem; left: calc(1.9rem + 12px + 6px); right: -1.75rem;
    height: 2px; background: var(--gray-300);
  }
}

/* ---------- Responsibility table ---------- */
.responsibility {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .responsibility { grid-template-columns: 1fr 1fr; } }
.responsibility-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.responsibility-col h3 {
  margin: 0; padding: 1.1rem 1.4rem;
  color: #fff; font-size: 1.05rem;
}
.responsibility-col.us h3 { background: var(--logo-blue); color: var(--navy); }
.responsibility-col.partner h3 { background: var(--navy); }
.responsibility-col ul { list-style: none; padding: 0.6rem 0; }
.responsibility-col li {
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
}
.responsibility-col li:first-child { border-top: none; }

/* ---------- Engagement models / pilot list ---------- */
.pilot-list { list-style: none; display: grid; gap: 0.75rem; }
.pilot-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
}
.pilot-list li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }

/* ---------- Tables (generic) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data-table th, table.data-table td {
  text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
}
table.data-table th { color: var(--navy); font-family: var(--font-body); background: var(--bg-alt); }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field .hint { font-size: 0.82rem; color: var(--gray-500); }
.field input, .field select, .field textarea {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: #fff;
  font-size: 0.97rem;
  color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); }
.field textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
fieldset legend { font-weight: 700; color: var(--navy); padding: 0 0.4rem; font-size: 0.92rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.4rem; }
.radio-row label { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; font-size: 0.93rem; }

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--success-text);
  font-weight: 600;
}
.form-status.is-visible { display: block; }
form.is-submitted .form-fields { display: none; }

.form-error {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(198, 63, 74, 0.08);
  border: 1px solid rgba(198, 63, 74, 0.25);
  color: var(--error);
  font-weight: 600;
}
.form-error.is-visible { display: block; }

/* Formspree honeypot field — visually hidden, kept out of tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contact path tabs ---------- */
.path-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }
.path-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
}
.path-tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.path-panel { display: none; }
.path-panel.is-active { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a { color: rgba(255,255,255,0.85); font-size: 0.93rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
}

/* ---------- Category filter chips (Resources) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.88rem; font-weight: 600;
  color: var(--gray-700);
}
.chip.is-active { background: var(--blue-100); border-color: var(--blue); color: var(--blue-700); }

/* ---------- Clip cards (See It in Action) ---------- */
.clip-card p { color: var(--gray-700); font-size: 0.95rem; }
.clip-media {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clip-media .play-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-700);
}
.clip-media .play-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.clip-media .play-icon svg { width: 20px; height: 20px; color: var(--blue-700); margin-left: 3px; }
.clip-media .play-caption { font-size: 0.82rem; font-weight: 700; color: var(--gray-700); text-align: center; padding: 0 1rem; }
.clip-detail { margin-top: 0.9rem; display: grid; gap: 0.7rem; }
.clip-detail dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700); }
.clip-detail dd { margin: 0.2rem 0 0; font-size: 0.93rem; color: var(--gray-700); }
.clip-related { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Article ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; color: var(--gray-500); font-size: 0.88rem; margin-top: 0.75rem; }
.category-tag {
  display: inline-flex; align-items: center;
  background: var(--blue-100); color: var(--blue-700);
  border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.8rem; font-weight: 700;
}
.article-body { max-width: 42rem; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { margin-top: 2rem; }
.coming-soon-note {
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--gray-700);
  background: var(--bg-alt);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Reveal-on-scroll (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- SVG token utilities (for inline diagrams) ---------- */
.fill-navy { fill: var(--navy); }
.fill-blue { fill: var(--blue-700); }
.fill-teal { fill: var(--teal); }
.fill-amber { fill: var(--amber); }
.fill-paper { fill: var(--paper); }
.fill-bg { fill: var(--bg); }
.fill-gray { fill: var(--gray-300); }
.fill-none { fill: none; }
.stroke-blue { stroke: var(--blue-700); }
.stroke-navy { stroke: var(--navy); }
.stroke-teal { stroke: var(--teal); }
.stroke-line { stroke: var(--line); }
.stroke-gray { stroke: var(--gray-300); }
.txt-navy { fill: var(--navy-700); font-family: var(--font-body); }
.txt-gray { fill: var(--gray-700); font-family: var(--font-body); }
.txt-mono { fill: var(--blue-700); font-family: var(--font-mono); }

/* ---------- Misc utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.color-gray { color: var(--gray-700); }
.max-prose { max-width: 42rem; }
.spacer-lg { height: clamp(2rem, 1.5vw + 1rem, 3.5rem); }
