/* =========================================================
   AA PUBLIC SAFETY, LLC — styles.css
   Design tokens, reset, layout, components, responsive
   ========================================================= */

:root {
  /* Brand colors */
  --color-navy-950: #06162f;
  --color-navy-900: #071d3d;
  --color-navy-850: #08244b;
  --color-navy-800: #0a2a55;
  --color-navy-700: #123768;

  --color-red-600: #e91522;
  --color-red-700: #c90f1a;
  --color-red-500: #ff2633;

  /* Green — logo-pulled secondary micro-accent only */
  --color-green-600: #079648;
  --color-green-700: #057a3a;
  --color-green-500: #0bb85a;

  --color-white: #ffffff;
  --color-off-white: #f7f8fa;
  --color-soft-gray: #eef1f5;
  --color-slate: #5b6577;
  --color-border: #d9dee7;
  --color-border-dark: rgba(255, 255, 255, 0.18);

  --color-text-main: #07162f;
  --color-text-secondary: #33415c;
  --color-text-muted: #667085;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.82);

  /* Gradients */
  --gradient-hero: linear-gradient(90deg, rgba(6, 22, 47, 0.98) 0%, rgba(6, 22, 47, 0.92) 35%, rgba(6, 22, 47, 0.62) 63%, rgba(6, 22, 47, 0.22) 100%);
  --gradient-dark-card: linear-gradient(135deg, #06162f 0%, #092857 100%);
  --gradient-footer: linear-gradient(180deg, #071d3d 0%, #06162f 100%);
  --gradient-placeholder: linear-gradient(120deg, #1b2b45 0%, #33455f 55%, #48566b 100%);
  --gradient-page-hero: linear-gradient(120deg, #06162f 0%, #0a2a55 60%, #123768 100%);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-4xl: 3.45rem;

  --line-tight: 1.05;
  --line-heading: 1.14;
  --line-body: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 650;
  --weight-bold: 750;
  --weight-black: 850;

  /* Layout */
  --container-max: 1210px;
  --container-wide: 1320px;
  --container-narrow: 1120px;
  --header-h: 88px;
  --gutter: 24px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(7, 22, 47, 0.08);
  --shadow-card-soft: 0 6px 18px rgba(7, 22, 47, 0.05);
  --shadow-card-hover: 0 14px 34px rgba(7, 22, 47, 0.14);
  --shadow-dark: 0 16px 36px rgba(0, 0, 0, 0.22);
  --shadow-button: 0 8px 18px rgba(233, 21, 34, 0.22);
  --shadow-menu: 0 20px 44px rgba(7, 22, 47, 0.18);

  /* Borders */
  --border-light: 1px solid var(--color-border);
  --border-dark: 1px solid var(--color-border-dark);

  /* Transitions */
  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 320ms ease;

  /* Animation tokens */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-base: 240ms;
  --duration-medium: 420ms;
  --duration-slow: 650ms;
  --reveal-distance-sm: 10px;
  --reveal-distance-md: 18px;
  --reveal-distance-lg: 28px;

  /* Breakpoints (reference) */
  --bp-small: 480px;
  --bp-mobile: 640px;
  --bp-tablet: 768px;
  --bp-laptop: 1024px;
  --bp-desktop: 1200px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-body);
  color: var(--color-text-main);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

/* ============ LAYOUT HELPERS ============ */
.container { width: min(100% - 48px, var(--container-max)); margin-inline: auto; }
.container-wide { width: min(100% - 48px, var(--container-wide)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, var(--container-narrow)); margin-inline: auto; }

.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading);
  text-align: center;
  color: var(--color-text-main);
  margin: 0;
}
/* Red primary accent with a subtle green tail = logo tie-in */
.section-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-red-600) 0 70%, var(--color-green-600) 70% 100%);
}
.section-title--sm { font-size: 1.125rem; }
.section-title--left { text-align: left; }
.section-title--left::after { margin-inline: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-red-600);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-green-600);
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--color-navy-900); color: var(--color-white);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: var(--weight-bold); transition: top var(--transition-fast);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(233, 21, 34, 0.35); outline-offset: 3px; }

.accent-line {
  display: block; width: 42px; height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-red-600) 0 72%, var(--color-green-600) 72% 100%);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: var(--weight-bold); line-height: 1;
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.btn svg { flex-shrink: 0; transition: transform var(--duration-fast) var(--ease-standard); }
/* arrow icons nudge right on hover (line+polyline = arrow) */
.btn:hover svg:has(polyline):has(line) { transform: translateX(4px); }

.btn--red { background: var(--color-red-600); color: var(--color-white); box-shadow: var(--shadow-button); }
.btn--red:hover { background: var(--color-red-700); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(233, 21, 34, 0.3); }
.btn--red:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(233, 21, 34, 0.2); }

.btn--outline-light { background: transparent; color: var(--color-white); border: 1px solid rgba(255, 255, 255, 0.65); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); border-color: rgba(255,255,255,0.85); }
.btn--outline-light:active { transform: translateY(0); }

.btn--outline-navy { background: transparent; color: var(--color-navy-900); border: 1px solid var(--color-border); }
.btn--outline-navy:hover { background: var(--color-off-white); border-color: var(--color-navy-700); transform: translateY(-1px); }

.btn--sm { height: 35px; padding: 0 16px; font-size: 12.5px; }
.btn--md { height: 44px; padding: 0 24px; }
.btn--lg { height: 48px; padding: 0 22px; border-radius: 5px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #e6e9ef;
}

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.header__logo img {
  width: 268px; height: auto; object-fit: contain;
}

.header__nav { margin-left: auto; }

.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: var(--header-h); white-space: nowrap;
  font-size: 14px; font-weight: 700; color: var(--color-text-main);
  transition: color var(--transition-fast);
}
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; top: calc(50% + 12px);
  height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-red-600) 0 72%, var(--color-green-600) 72% 100%);
  transition: width 180ms var(--ease-standard);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] { color: var(--color-red-600); }
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--color-text-main); }
.nav-link .chevron { margin-top: 1px; transition: transform var(--duration-base) var(--ease-standard); }
.nav-item--dropdown:hover .nav-link .chevron,
.nav-item--dropdown:focus-within .nav-link .chevron { transform: rotate(180deg); }

.header__cta { margin-left: 6px; }

.header__toggle {
  display: none; width: 46px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-xs);
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 20px; height: 2px; background: var(--color-text-main);
  border-radius: 2px; transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.header__toggle[aria-expanded="true"] .hamburger { background: transparent; }
.header__toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
.header__toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Desktop dropdown / mega menu ---- */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px) scale(0.98);
  z-index: 120; min-width: 260px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-menu);
  padding: 16px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-standard), transform var(--duration-base) var(--ease-smooth), visibility 0ms linear var(--duration-base);
}
.dropdown::before { /* hover bridge so cursor can cross the gap */
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown::after { /* pointer notch */
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: var(--color-white);
  border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
}
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown,
.nav-item--dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 180ms var(--ease-standard), transform var(--duration-base) var(--ease-smooth), visibility 0ms linear;
}
.dropdown-link { transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.dropdown-link:hover { transform: translateX(3px); }

.dropdown--mega { min-width: 720px; padding: 22px 24px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 26px; }

.dropdown-group__title {
  font-size: 12px; font-weight: var(--weight-bold);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-navy-900); padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, var(--color-red-600) 0 55%, var(--color-green-600) 55% 100%) left bottom / 26px 2px no-repeat;
}
.dropdown-list { display: grid; gap: 3px; }
.dropdown-link {
  display: block; padding: 6px 8px; margin-left: -8px;
  font-size: 13.5px; font-weight: var(--weight-medium);
  color: var(--color-text-secondary); border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.dropdown-link:hover { color: var(--color-red-600); background: var(--color-off-white); }

.dropdown--simple { min-width: 250px; }
.dropdown--simple .dropdown-list { gap: 1px; }
.dropdown--simple .dropdown-link { font-size: 14px; padding: 8px; }

/* ---- Mobile menu ---- */
.mobile-menu {
  border-bottom: 1px solid #e6e9ef; background: var(--color-white);
  box-shadow: var(--shadow-card); max-height: calc(100vh - var(--header-h));
  overflow-y: auto; animation: menu-in var(--transition-base) ease;
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu__list { display: flex; flex-direction: column; padding: 6px 24px 4px; }
.mobile-menu__link, .m-acc__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 0; font-size: 15px; font-weight: 700; color: var(--color-text-main);
  background: none; border: none; border-bottom: 1px solid var(--color-soft-gray); text-align: left;
}
.mobile-menu__link:hover, .m-acc__toggle:hover { color: var(--color-red-600); }
.m-acc__toggle .chevron { transition: transform var(--duration-base) var(--ease-standard); flex-shrink: 0; }
.m-acc__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.m-acc__panel {
  overflow: hidden; max-height: 0; opacity: 0; padding: 0 0 0 12px;
  transition: max-height var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard), padding var(--duration-base) var(--ease-standard);
}
.m-acc__panel.is-open { opacity: 1; padding: 4px 0 10px 12px; } /* max-height set inline by JS from scrollHeight */
/* No-JS fallback: show panels when JS is unavailable */
html:not(.js) .m-acc__panel { max-height: none; opacity: 1; padding: 4px 0 10px 12px; }
.m-acc__group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-navy-700); margin: 10px 0 4px;
}
.m-acc__link {
  display: block; padding: 8px 0; font-size: 14px; font-weight: 500;
  color: var(--color-text-secondary);
}
.m-acc__link:hover { color: var(--color-red-600); }
.mobile-menu__cta { margin: 14px 24px 20px; width: calc(100% - 48px); }

/* ============ HERO (homepage) ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 64vh, 620px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--color-navy-950);
  background-image: url("../assets/chicago-skyline.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: saturate(0.88) brightness(0.82) contrast(1.04);
}
.hero__placeholder-label { display: none; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* subtle brand hues — red lower-left, green upper-right */
    radial-gradient(circle at 14% 86%, rgba(233,21,34,0.14) 0%, rgba(233,21,34,0) 34%),
    radial-gradient(circle at 88% 14%, rgba(11,184,90,0.13) 0%, rgba(11,184,90,0) 40%),
    /* bottom depth fade */
    linear-gradient(0deg, rgba(6,22,47,0.50) 0%, rgba(6,22,47,0.12) 42%, rgba(6,22,47,0) 100%),
    /* main navy readability overlay */
    linear-gradient(90deg, rgba(6,22,47,0.96) 0%, rgba(6,22,47,0.90) 32%, rgba(6,22,47,0.68) 55%, rgba(6,22,47,0.34) 78%, rgba(6,22,47,0.18) 100%);
}
.hero__watermark {
  position: absolute; left: -110px; top: 50%; transform: translateY(-50%); z-index: -1;
  color: #ffffff; opacity: 0.05; pointer-events: none;
}
.hero__watermark svg { width: 300px; height: 300px; }
.hero__inner { padding-block: 64px; }
.hero__content { max-width: 700px; }
.hero__title {
  font-size: clamp(2.5rem, 3.7vw, 3.25rem);
  font-weight: 850; line-height: 1.05; letter-spacing: -0.035em;
  color: #ffffff; max-width: 700px; margin-bottom: 18px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.hero__subtitle {
  font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.45;
  max-width: 560px; color: rgba(255, 255, 255, 0.86); margin-bottom: 22px;
}
.hero__content .accent-line { margin-bottom: 28px; }
.hero .accent-line {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, #e91522 0%, #e91522 76%, #079648 76%, #079648 100%);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { height: 52px; padding: 0 28px; border-radius: 8px; font-size: 15px; }
.hero__actions .btn--red { box-shadow: 0 14px 30px rgba(233, 21, 34, 0.22); }
.hero__actions .btn--outline-light {
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.45);
}
.hero__actions .btn--outline-light:hover { background: rgba(255, 255, 255, 0.10); }
@supports (backdrop-filter: blur(6px)) { .hero__actions .btn--outline-light { backdrop-filter: blur(6px); } }

/* Hero credibility pills */
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__trust li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill); padding: 7px 14px;
  font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.82);
}
.hero__trust svg { color: var(--color-red-500); flex-shrink: 0; }

/* ============ INNER PAGE HERO ============ */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-page-hero); color: var(--color-white);
  padding-block: 52px;
}
.page-hero__watermark {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  color: #fff; opacity: 0.06; z-index: -1; pointer-events: none;
}
.page-hero__watermark svg { width: 300px; height: 300px; }
.page-hero__inner { max-width: 720px; }
.page-hero .eyebrow { color: #ff9ba1; margin-bottom: 12px; }
.page-hero .eyebrow::before { background: var(--color-green-500); }
.page-hero__title {
  font-size: 2.5rem; font-weight: var(--weight-black); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.page-hero__subtitle { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.9); max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.6; }

/* ============ HOW WE HELP ============ */
.how-we-help { background: var(--color-white); padding: 44px 0 48px; }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 26px; }

.service-card {
  background: var(--color-white); border: 1px solid #dfe4ec; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-soft); padding: 24px 22px 22px; text-align: center;
  min-height: 156px; display: flex; flex-direction: column; align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: #cdd5e2; }
a.service-card { color: inherit; }

.icon-circle {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--color-navy-900); color: var(--color-white); border-radius: 50%;
  margin-bottom: 16px; position: relative;
}
.icon-circle::after { /* subtle green ring detail */
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid transparent; transition: border-color var(--transition-base);
}
.service-card:hover .icon-circle::after { border-color: rgba(7,150,72,0.45); }

.service-card__title { font-size: 16px; font-weight: var(--weight-bold); color: var(--color-navy-900); margin-bottom: 8px; }
.service-card__text { font-size: 13.5px; line-height: 1.45; color: var(--color-text-secondary); }

.card-accent { display: block; width: 28px; height: 2px; background: var(--color-red-600); border-radius: var(--radius-pill); margin-top: 13px; }
.service-card:hover .card-accent { width: 40px; transition: width var(--transition-base); }

/* ============ MAIN CONTENT ROW (homepage) ============ */
.content-row { background: var(--color-off-white); padding: 24px 0 28px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }

.dark-card__title { font-size: 18px; font-weight: var(--weight-bold); color: var(--color-white); margin-bottom: 14px; }
.dark-card__title::after {
  content: ""; display: block; width: 32px; height: 3px; border-radius: var(--radius-pill); margin-top: 8px;
  background: linear-gradient(90deg, var(--color-red-500) 0 68%, var(--color-green-500) 68% 100%);
}

/* Founder card */
.founder-card {
  background: var(--gradient-dark-card); border-radius: var(--radius-lg); padding: 24px;
  color: var(--color-white); box-shadow: var(--shadow-dark); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.founder-card__body { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }

.founder-portrait { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.founder-portrait img {
  display: block; width: 140px; height: 140px; border-radius: var(--radius-md);
  object-fit: cover; object-position: center top;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.founder-card__text p { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.founder-card__text p + p { margin-top: 8px; }
.founder-card__link { align-self: flex-start; margin-top: auto; }

/* Why choose card */
.why-card { background: var(--color-white); border: 1px solid #dfe4ec; border-radius: var(--radius-lg); padding: 24px 30px; box-shadow: var(--shadow-card-soft); color: var(--color-navy-900); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 24px; margin-top: 26px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon {
  flex-shrink: 0; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--color-soft-gray); color: var(--color-navy-900); border-radius: 50%;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.feature:hover .feature__icon { transform: scale(1.03); background: rgba(7,150,72,0.12); color: var(--color-green-700); }
.feature__title { font-size: 15px; font-weight: var(--weight-bold); color: var(--color-navy-900); }
.feature__desc { font-size: 12.5px; line-height: 1.35; color: var(--color-text-secondary); }

/* ============ CONSULTATION FORM ============ */
.consult-card { background: var(--gradient-dark-card); border-radius: var(--radius-lg); padding: 24px; color: var(--color-white); box-shadow: var(--shadow-dark); }
.consult-form { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; }
.consult-form input, .consult-form select, .consult-form textarea {
  width: 100%; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--color-white); color: var(--color-navy-900); padding: 0 10px; font-size: 12px;
}
.consult-form input { height: 32px; }
.consult-form select { height: 32px; }
.consult-form textarea { min-height: 54px; padding: 9px 10px; resize: vertical; line-height: 1.4; }
.consult-form input::placeholder, .consult-form textarea::placeholder { color: var(--color-text-muted); }
.consult-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.consult-select:invalid { color: var(--color-text-muted); }
.consult-form input:focus-visible, .consult-form select:focus-visible, .consult-form textarea:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4); outline-offset: 1px;
}
.field-error { color: #ffb3b8; font-size: 11px; font-weight: 600; margin-top: 3px; }
.field-error[hidden] { display: none; }
.consult-form input[aria-invalid="true"], .consult-form select[aria-invalid="true"], .consult-form textarea[aria-invalid="true"] {
  border-color: var(--color-red-500); box-shadow: 0 0 0 1px var(--color-red-500);
}
.consult-form__submit { height: 40px; width: 100%; margin-top: 8px; }
.form-success {
  margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #7ef0a8;
  background: rgba(7, 150, 72, 0.18); border: 1px solid rgba(126, 240, 168, 0.35);
  border-radius: var(--radius-xs); padding: 8px 10px;
}
.form-success[hidden] { display: none; }
.form-error {
  margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #ffb3b8;
  background: rgba(233, 21, 34, 0.14); border: 1px solid rgba(255, 179, 184, 0.4);
  border-radius: var(--radius-xs); padding: 8px 10px;
}
.form-error[hidden] { display: none; }
.form-error a { color: #fff; text-decoration: underline; }
.form-panel .form-error { color: var(--color-red-700); background: rgba(233, 21, 34, 0.08); border-color: rgba(233, 21, 34, 0.3); }
.form-panel .form-error a { color: var(--color-red-700); }

/* Light form variant (contact page) */
.form-panel { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; }
.form-panel .consult-form input, .form-panel .consult-form select, .form-panel .consult-form textarea {
  border: 1px solid var(--color-border); background: var(--color-off-white); font-size: 14px;
}
.form-panel .consult-form input { height: 44px; }
.form-panel .consult-form select { height: 44px; }
.form-panel .consult-form textarea { min-height: 120px; }
.form-panel label.field-label { font-size: 13px; font-weight: 650; color: var(--color-text-secondary); margin-bottom: 5px; }
.form-panel .field-error { color: var(--color-red-600); }
.form-panel .form-success { color: var(--color-green-700); background: rgba(7,150,72,0.1); border-color: rgba(7,150,72,0.3); }

/* ============ PRE-FOOTER CTA ============ */
.cta-section { background: var(--color-off-white); padding: 56px 0 64px; }
.cta-bar {
  background: var(--gradient-dark-card); border-radius: var(--radius-xl);
  padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--shadow-dark); position: relative; overflow: hidden;
}
.cta-bar::before { /* subtle green edge accent */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--color-red-500), var(--color-green-500));
}
.cta-bar__left { display: flex; align-items: center; gap: 20px; }
.cta-bar__icon {
  flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-md); color: var(--color-white);
  background: rgba(255,255,255,0.04);
}
.cta-bar__headline { font-size: 21px; font-weight: var(--weight-bold); line-height: 1.2; color: var(--color-white); }
.cta-bar__sub { font-size: 14px; color: rgba(255, 255, 255, 0.82); margin-top: 6px; }
.cta-bar__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ============ GENERIC PAGE SECTIONS ============ */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--color-off-white); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 12px; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; }
.lead { font-size: 17px; line-height: 1.65; color: var(--color-text-secondary); }

/* Service category cards */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-card-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.cat-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cat-card__icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--color-navy-900); color: #fff; border-radius: var(--radius-md); }
.cat-card__title { font-size: 18px; font-weight: var(--weight-bold); color: var(--color-navy-900); }
.cat-card__list { margin-top: 14px; display: grid; gap: 8px; }
.cat-card__list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--color-text-secondary); }
.cat-card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-green-600);
}
.cat-card__list a { color: var(--color-text-secondary); transition: color var(--transition-fast); }
.cat-card__list a:hover { color: var(--color-red-600); }

/* Service summary blocks */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc-item {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card-soft); display: flex; flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.svc-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: #cdd5e2; }
.svc-item__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--color-soft-gray); color: var(--color-navy-900); border-radius: var(--radius-md); margin-bottom: 14px; }
.svc-item__title { font-size: 17px; font-weight: var(--weight-bold); color: var(--color-navy-900); margin-bottom: 8px; }
.svc-item__title::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--color-red-600) 0 62%, var(--color-green-600) 62% 100%); }
.svc-item__text { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.svc-item__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--color-red-600); }
.svc-item__link:hover { gap: 9px; }
.svc-item__link svg { transition: transform var(--transition-fast); }

/* Feature/checklist rows (inner pages) */
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(7,150,72,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23079648' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center / 12px no-repeat;
}

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.info-panel { background: var(--gradient-dark-card); color: #fff; border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-dark); }
.info-panel h3 { font-size: 18px; margin-bottom: 14px; }
.info-panel .check-list li { color: rgba(255,255,255,0.9); }
.info-panel .check-list li::before { background-color: rgba(126,240,168,0.18); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card-soft); }
.stat__num { font-size: 28px; font-weight: var(--weight-black); color: var(--color-navy-900); letter-spacing: -0.02em; }
.stat__num span { color: var(--color-red-600); }
.stat__label { font-size: 13px; color: var(--color-text-secondary); margin-top: 4px; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bio-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card-soft); overflow: hidden; display: flex; flex-direction: column; }
.bio-card__top { display: flex; gap: 18px; align-items: center; padding: 24px 24px 18px; background: var(--gradient-dark-card); color: #fff; }
.bio-portrait { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.bio-portrait img { display: block; width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; object-position: center top; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
.bio-portrait--ph { width: 96px; height: 96px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); font-size: 10px; text-align: center; line-height: 1.2; padding: 6px; }
.bio-card__name { font-size: 19px; font-weight: var(--weight-bold); }
.bio-card__role { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 3px; }
.bio-card__body { padding: 20px 24px 24px; }
.bio-card__body p { font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); }
.bio-card__body p + p { margin-top: 12px; }
.bio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bio-tag { font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-soft-gray); color: var(--color-navy-800); }

/* ============ FOOTER ============ */
.site-footer { background: var(--gradient-footer); color: var(--color-white); padding: 44px 0 18px; }
.footer__top { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.footer__brand { max-width: 260px; }
.footer__logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-white); padding: 14px 18px; border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); border-top: 3px solid var(--color-red-600);
}
.footer__logo-plate img { width: 190px; height: auto; max-height: 66px; object-fit: contain; display: block; }
.footer__tagline { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.7); margin-top: 14px; }

.footer__heading { font-size: 13px; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.footer__contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; margin-bottom: 10px; color: rgba(255, 255, 255, 0.88); }
.footer__contact-list svg { flex-shrink: 0; color: var(--color-red-500); }
.footer__contact-list a:hover { color: var(--color-white); text-decoration: underline; }
.footer__loc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-green-500); flex-shrink: 0; }

.footer__nav-list { display: grid; gap: 10px; }
.footer__nav-list a { font-size: 13.5px; color: rgba(255, 255, 255, 0.88); transition: color var(--transition-fast); }
.footer__nav-list a:hover { color: var(--color-red-500); }

.footer__social { display: flex; gap: 12px; }
.social-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--color-white); color: var(--color-navy-900); border-radius: 50%; transition: transform var(--transition-fast), color var(--transition-fast); }
.social-icon:hover { transform: translateY(-2px); color: var(--color-red-600); }

.footer__bottom { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom p { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.footer__bottom nav { display: flex; gap: 16px; }
.footer__bottom nav a { font-size: 12px; color: rgba(255,255,255,0.7); }
.footer__bottom nav a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .container, .container-narrow, .container-wide { width: calc(100% - 40px); }
  .nav-list { gap: 18px; }
  .nav-link { font-size: 13.5px; }
  .header__logo img { width: 236px; }
  .header__cta { font-size: 13px; padding: 0 16px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .consult-card { grid-column: 1 / -1; }
  .consult-card .consult-form { max-width: 640px; }
  .dropdown--mega { min-width: 620px; }
}

@media (max-width: 1024px) {
  .header__nav, .header__cta { display: none; }
  .header__toggle { display: inline-flex; }
  .header__logo { margin-right: auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .hero { min-height: 500px; }
  .hero__inner { padding-block: 52px; }
  .hero__content { max-width: 620px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .consult-card .consult-form { max-width: none; }
  .cat-grid, .svc-list, .team-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .page-hero__title { font-size: 2.125rem; }
}

@media (max-width: 900px) {
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .cta-bar__actions { width: 100%; }
  .cta-bar__actions .btn { flex: 1; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: calc(var(--header-h) + 10px); }
  .header__logo img { width: 172px; }
  .hero { min-height: 560px; }
  .hero__inner { padding-block: 48px; }
  .hero__bg { background-position: 62% center; }
  .hero__title { font-size: clamp(1.95rem, 8.5vw, 2.4rem); }
  .hero__subtitle { font-size: 16px; }
  .hero__watermark, .page-hero__watermark { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  /* Touch-friendly + iOS no-zoom form fields */
  .consult-form input, .consult-form select, .consult-form textarea { font-size: 16px; }
  .consult-form input, .consult-form select { height: 46px; }
  .consult-form textarea { min-height: 96px; }
  .cta-bar__actions { flex-direction: column; }
  .cta-section { padding: 40px 0 48px; }
  .cta-bar { padding: 26px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .page-hero { padding-block: 40px; }
  .page-hero__title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .container, .container-narrow, .container-wide { width: calc(100% - 32px); }
  .header__logo img { width: 156px; }
  .hero__subtitle { font-size: 15px; }
  .founder-card__body { grid-template-columns: auto 1fr; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; row-gap: 18px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer__nav-list { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .cta-bar__headline { font-size: 18px; }
  .bio-card__top { flex-direction: column; text-align: center; }
}

/* =========================================================
   ANIMATION LAYER (progressive enhancement — gated on .js)
   ========================================================= */

/* ---- Scroll reveal ---- */
.js .reveal {
  opacity: 0; transform: translateY(var(--reveal-distance-md));
  transition: opacity var(--duration-slow) var(--ease-smooth), transform var(--duration-slow) var(--ease-smooth);
  will-change: transform, opacity;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal-stagger > * {
  opacity: 0; transform: translateY(var(--reveal-distance-md));
  transition: opacity var(--duration-slow) var(--ease-smooth), transform var(--duration-slow) var(--ease-smooth);
  will-change: transform, opacity;
}
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.js .reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 420ms; }
/* Drop will-change once settled to free the compositor */
.js .reveal.is-visible, .js .reveal-stagger.is-visible > * { will-change: auto; }

/* ---- Page-load: header + hero (gated on .js, revealed by body.page-loaded) ---- */
.js .site-header { opacity: 0; transform: translateY(-8px); transition: opacity var(--duration-medium) var(--ease-standard), transform var(--duration-medium) var(--ease-standard); }
.js .hero__content { animation: none; }
.js .hero__title, .js .hero__subtitle, .js .hero__actions,
.js .page-hero__title, .js .page-hero__subtitle, .js .breadcrumb, .js .page-hero .eyebrow {
  opacity: 0; transform: translateY(var(--reveal-distance-md));
  transition: opacity var(--duration-slow) var(--ease-smooth), transform var(--duration-slow) var(--ease-smooth);
}
.js .hero .accent-line { transform: scaleX(0); transform-origin: left center; transition: transform var(--duration-medium) var(--ease-smooth); }

body.page-loaded .site-header { opacity: 1; transform: none; }
body.page-loaded .hero__title { opacity: 1; transform: none; transition-delay: 120ms; }
body.page-loaded .hero__subtitle { opacity: 1; transform: none; transition-delay: 220ms; }
body.page-loaded .hero .accent-line { transform: scaleX(1); transition-delay: 320ms; }
body.page-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 420ms; }
/* Inner page hero */
body.page-loaded .breadcrumb { opacity: 1; transform: none; transition-delay: 40ms; }
body.page-loaded .page-hero .eyebrow { opacity: 1; transform: none; transition-delay: 80ms; }
body.page-loaded .page-hero__title { opacity: 1; transform: none; transition-delay: 140ms; }
body.page-loaded .page-hero__subtitle { opacity: 1; transform: none; transition-delay: 240ms; }

/* Subtle hero background settle */
.js .hero__bg { animation: bg-settle 1200ms var(--ease-out) both; }
@keyframes bg-settle { from { transform: scale(1.025); } to { transform: scale(1); } }

/* ---- Header scrolled state ---- */
.site-header { transition: box-shadow var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard); }
.header__inner { transition: height var(--duration-base) var(--ease-standard); }
.header__logo img { transition: width var(--duration-base) var(--ease-standard); }
.header-scrolled { --header-h: 74px; box-shadow: 0 8px 24px rgba(7, 22, 47, 0.08); background: rgba(255, 255, 255, 0.94); }
@supports (backdrop-filter: blur(10px)) { .header-scrolled { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); } }
.header-scrolled .header__logo img { width: 232px; }

/* ---- Logo hover ---- */
.header__logo { transition: transform var(--duration-base) var(--ease-standard); }
.header__logo:hover { transform: translateY(-1px); }

/* ---- Founder portrait subtle lift on card hover ---- */
.founder-portrait img { transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.founder-card:hover .founder-portrait img { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34); }

/* ---- CTA bar reveal-safe hover ---- */
.cta-bar { transition: transform var(--duration-medium) var(--ease-smooth), box-shadow var(--duration-medium) var(--ease-smooth), background-color var(--duration-base) var(--ease-standard); }

/* ---- Form focus ring + error/success motion ---- */
.form-panel .consult-form input,
.form-panel .consult-form select,
.form-panel .consult-form textarea {
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.form-panel .consult-form input:focus,
.form-panel .consult-form select:focus,
.form-panel .consult-form textarea:focus {
  border-color: var(--color-red-600); box-shadow: 0 0 0 3px rgba(233, 21, 34, 0.12); outline: none; background: var(--color-white);
}
.form-panel .consult-form input[aria-invalid="true"] ~ .field-error,
.form-panel .consult-form select[aria-invalid="true"] ~ .field-error,
.form-panel .consult-form textarea[aria-invalid="true"] ~ .field-error { color: var(--color-red-600); }
.field-error:not([hidden]) { animation: err-in var(--duration-fast) var(--ease-standard) both; }
@keyframes err-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.form-success:not([hidden]) { animation: success-in var(--duration-base) var(--ease-smooth) both; }
@keyframes success-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Submit loading state */
.consult-form__submit.is-loading { opacity: 0.85; cursor: progress; }
.consult-form__submit.is-loading svg { display: none; }

/* ---- Mobile menu link stagger + hamburger ---- */
.mobile-menu:not([hidden]) .mobile-menu__list > a,
.mobile-menu:not([hidden]) .mobile-menu__list > button {
  animation: m-item var(--duration-base) var(--ease-standard) both;
}
@keyframes m-item { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-menu__list > *:nth-child(1) { animation-delay: 30ms; }
.mobile-menu__list > *:nth-child(2) { animation-delay: 70ms; }
.mobile-menu__list > *:nth-child(3) { animation-delay: 110ms; }
.mobile-menu__list > *:nth-child(4) { animation-delay: 150ms; }
.mobile-menu__list > *:nth-child(5) { animation-delay: 190ms; }
.mobile-menu__list > *:nth-child(6) { animation-delay: 230ms; }

/* ============ TEAM GRID — SINGLE MEMBER ============ */
.team-grid--single { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* ============ YOUTUBE VIDEO BAND (auto-scrolling row) ============ */
.video-band { padding: 56px 0; background: var(--gradient-dark-card); color: #fff; overflow: hidden; }
.video-band__head { max-width: 640px; margin-bottom: 28px; }
.video-band__head .eyebrow { color: #fff; }
.video-band__head .eyebrow::before { background: var(--color-red-500); }
.video-band__head .section-title { color: #fff; }
.video-band__head .section-title::after { background: linear-gradient(90deg, var(--color-red-600) 0 72%, var(--color-green-500) 72% 100%); }
.video-band__sub { margin-top: 14px; color: var(--color-text-on-dark-muted); font-size: var(--font-size-md); line-height: var(--line-body); }

.video-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.video-marquee__track { display: flex; width: max-content; animation: video-scroll 60s linear infinite; }
.video-marquee:hover .video-marquee__track { animation-play-state: paused; }
.video-marquee__group { display: flex; gap: 20px; padding-right: 20px; }
@keyframes video-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.vid-card {
  flex: 0 0 300px; width: 300px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.vid-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }
.vid-card__thumb { position: relative; aspect-ratio: 16 / 9; background: #06162f; overflow: hidden; }
.vid-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-card__play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(233, 21, 34, 0.92); border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform var(--transition-base), background var(--transition-base);
}
.vid-card:hover .vid-card__play { transform: scale(1.08); background: var(--color-red-600); }
.vid-card__title {
  padding: 14px 16px 16px; font-weight: var(--weight-semibold); font-size: var(--font-size-sm);
  line-height: 1.4; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-band__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: var(--weight-bold); color: #fff; font-size: var(--font-size-sm);
  letter-spacing: 0.01em; transition: gap var(--transition-fast), color var(--transition-fast);
}
.video-band__cta:hover { gap: 12px; color: var(--color-red-500); }

@media (max-width: 640px) {
  .vid-card { flex-basis: 260px; width: 260px; }
  .video-band { padding: 44px 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    scroll-behavior: auto !important; transition-duration: 0.01ms !important;
  }
  .js .reveal, .js .reveal-stagger > *,
  .js .hero__title, .js .hero__subtitle, .js .hero__actions, .js .hero .accent-line,
  .js .page-hero__title, .js .page-hero__subtitle, .js .breadcrumb, .js .page-hero .eyebrow {
    opacity: 1 !important; transform: none !important;
  }
}

/* ============ PRINT ============ */
@media print {
  .site-header, .mobile-menu, .cta-section, .hero__actions, .header__toggle { display: none; }
  body { color: #000; }
  .hero, .founder-card, .consult-card, .cta-bar, .page-hero, .bio-card__top, .info-panel { background: none !important; color: #000; }
}
