/* ==========================================================================
   SAVI marketing site
   Design tokens, base styles, layout primitives, and components.
   Class vocabulary (used by every page):
     Layout ....... .container .section .section--alt .section--dark .section--green .section-head .section-head--center
     Type ......... .eyebrow .section-title .lead .prose
     Hero ......... .hero .hero--page .hero__bg .hero__overlay .hero__content .hero__title .hero__sub .hero__actions
     Buttons ...... .btn .btn--primary .btn--secondary .btn--light .btn--ghost .btn--lg
     Grid/cards ... .grid .grid--2 .grid--3 .grid--4 .card .card__icon .card__title .card__text .card--dark
     Split ........ .split .split--reverse .split__media .split__body
     Lists ........ .checklist .checklist--2col .steps .step .logo-strip
     Services ..... .subnav .service .service__head .service__icon .capabilities
     Forms ........ .form .field .field--full .field__label .field__input .field__error .checkbox-grid .check .radio-group .form__actions .alert
     CTA band ..... .cta-band (see _CtaBand.cshtml)
     Motion ....... [data-reveal] .is-visible
   ========================================================================== */

:root {
  --ink: #0d1412;
  --text: #1b2421;
  --muted: #5a6864;
  --line: #dde5e0;
  --bg: #ffffff;
  --bg-alt: #f3f7f4;
  --bg-soft: #e7f1ea;

  --green-900: #0a3b23;
  --green-800: #0f5130;
  --green-700: #146b3f;
  --green-600: #1a8a50;
  --green-100: #dff3e7;
  --signal: #3ddc84;
  --signal-strong: #22c55e;
  --danger: #c0392b;
  --focus: var(--green-700);      /* 6.5:1 on white; dark surfaces switch to --signal-strong below */
  --line-control: #7d8a85;        /* 3.6:1 form-control boundary on white */

  --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 20, 18, 0.06), 0 1px 3px rgba(13, 20, 18, 0.05);
  --shadow: 0 10px 30px rgba(13, 20, 18, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 20, 18, 0.18);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* decorative offsets must never create a horizontal scrollbar */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

.hero, .cta-band, .section--dark, .section--green, .site-footer, .contact-card, .card--dark, .person, .landing__story { --focus: var(--signal-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Links inside running text (content sections only) must not rely on colour alone. */
.section p a:not(.btn), .section li a:not(.btn), .prose a { text-decoration: underline; text-underline-offset: 2px; }
.section .contact-card__list li a, .section .card__link { text-decoration: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section--green { background: var(--green-900); color: rgba(255, 255, 255, 0.86); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.section--dark .eyebrow, .section--green .eyebrow { color: var(--signal); }
.section--dark .lead, .section--green .lead { color: rgba(255, 255, 255, 0.78); }
.section--dark a:not(.btn), .section--green a:not(.btn) { color: var(--signal); }

.section__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0.22;
}
.section--dark::after, .section--green::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 20, 18, 0.85) 0%, rgba(13, 20, 18, 0.45) 55%, rgba(13, 20, 18, 0.2) 100%);
}
.section--dark:not(:has(.section__bg))::after, .section--green:not(:has(.section__bg))::after { display: none; }
.section--dark .container, .section--green .container { position: relative; z-index: 1; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700);
  margin: 0 0 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--signal-strong); }
.section-head--center .eyebrow::before { display: none; }

.section-title { margin-bottom: 0.5em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; /* fully opaque: the logo artwork has a white background, so any tint shows as a box */
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 20, 18, 0.08); }

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

.brand img { height: 58px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text);
  position: relative; transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav__list a:hover { color: var(--green-700); background: var(--bg-alt); text-decoration: none; }
.site-nav__list a.is-current { color: var(--green-700); }
.site-nav__list a.is-current::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--signal-strong);
}
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.site-nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 600; color: var(--green-800); white-space: nowrap; }
.site-nav__phone:hover { text-decoration: none; color: var(--green-700); background: var(--bg-alt); }
.site-nav__phone .icon { width: 22px; height: 22px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1100px) {
  .site-nav__phone span { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(13, 20, 18, 0.12);
    padding: 12px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; /* short viewports can still reach the CTA */
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list a { display: block; padding: 14px 12px; font-size: 1.05rem; }
  .site-nav__list a.is-current::after { display: none; }
  .site-nav__list a.is-current { background: var(--bg-alt); }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
  .site-nav__phone { justify-content: center; padding: 10px; }
  .site-nav__phone span { display: inline; }
  .site-nav__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(20, 107, 63, 0.28); }
.btn--primary:hover { background: var(--green-800); color: #fff; }

.btn--secondary { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn--secondary:hover { background: var(--green-100); }

.btn--light { background: #fff; color: var(--green-900); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn--light:hover { background: var(--green-100); color: var(--green-900); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-strong); color: var(--ink); }

.btn.is-busy { opacity: 0.7; pointer-events: none; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(82vh, 780px);
  background: var(--green-900); color: #fff;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 40, 25, 0.94) 0%, rgba(8, 40, 25, 0.82) 40%, rgba(8, 40, 25, 0.35) 75%, rgba(8, 40, 25, 0.15) 100%),
    linear-gradient(180deg, rgba(8, 40, 25, 0.25) 0%, rgba(8, 40, 25, 0.55) 100%);
}
.hero__content { padding-block: clamp(56px, 7vw, 96px); max-width: 760px; }
.hero .eyebrow { color: var(--signal); }
.hero__title { color: #fff; margin-bottom: 0.4em; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.hero__title em { font-style: normal; color: var(--signal); }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, 0.86); max-width: 680px; margin-bottom: 1.3em; }
.hero__note { font-family: var(--font-head); font-weight: 600; color: var(--signal); margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* "Your Own [OPI | VRI | ASL | CTI | AI Platforms]" cycling tagline (CSS only) */
.hero__tagline {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: #fff; margin: -4px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4em;
}
.rotator { display: inline-grid; text-align: left; color: var(--signal); }
.rotator__item { grid-area: 1 / 1; opacity: 0; white-space: nowrap; animation: rotate-word 12.5s linear infinite; }
.rotator__item:nth-child(2) { animation-delay: 2.5s; }
.rotator__item:nth-child(3) { animation-delay: 5s; }
.rotator__item:nth-child(4) { animation-delay: 7.5s; }
.rotator__item:nth-child(5) { animation-delay: 10s; }
.rotator__static { display: none; color: var(--signal); }
@keyframes rotate-word {
  0%   { opacity: 0; transform: translateY(10px); }
  3%   { opacity: 1; transform: translateY(0); }
  17%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator { display: none; }
  .rotator__static { display: inline; }
}

.hero--page { min-height: 0; }
.hero--page .hero__content { padding-block: clamp(48px, 7vw, 88px); max-width: 820px; }
.hero--page .hero__title { font-size: clamp(2rem, 4vw, 3.1rem); }

/* --------------------------------------------------------------------------
   Grid and cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { margin: 4px 0 0; font-size: 1.15rem; }
.card__text { color: var(--muted); margin: 0; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.card--dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.82); }
.card--dark:hover { border-color: rgba(61, 220, 132, 0.5); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.card--dark .card__icon { background: rgba(61, 220, 132, 0.14); color: var(--signal); }
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: rgba(255, 255, 255, 0.72); }

.card--accent { border-top: 4px solid var(--signal-strong); }
.card--inline { display: inline-flex; flex-direction: row; align-items: center; gap: 14px; text-align: left; max-width: 560px; }
.card--inline .card__title { margin: 0; }
.section-title--sm { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.feature-row__label { font-family: var(--font-head); font-weight: 700; color: #fff; }

/* --------------------------------------------------------------------------
   Split (image + copy)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); align-items: center; }
.split__media { position: relative; isolation: isolate; /* keeps the decorative ::after under the image but above any section background */ }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media--tall img { aspect-ratio: 5 / 4; }
.split__media::after {
  content: ''; position: absolute; z-index: -1; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-100), var(--signal)); opacity: 0.6;
}
.section--dark .split__media::after, .section--green .split__media::after { background: linear-gradient(135deg, rgba(61, 220, 132, 0.4), rgba(61, 220, 132, 0.05)); }
.split--reverse .split__media { order: 2; }
.split--reverse .split__media::after { inset: auto auto -18px -18px; }
.split__body .section-title { margin-bottom: 0.5em; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media::after { inset: auto -8px -8px auto; }
  .split--reverse .split__media::after { inset: auto auto -8px -8px; }
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist li::before {
  content: ''; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146b3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 13px no-repeat;
}
.section--dark .checklist li::before, .section--green .checklist li::before, .card--dark .checklist li::before {
  background-color: rgba(61, 220, 132, 0.16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .checklist--2col { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--signal-strong); margin-bottom: 14px; }
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step__text { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; list-style: none; margin: 0; padding: 0; }
.logo-strip li {
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; color: var(--green-900);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; box-shadow: var(--shadow-sm);
}

/* Trust / certification strip under the Home hero */
.trust { padding-block: clamp(36px, 5vw, 56px); background: #fff; border-bottom: 1px solid var(--line); }
.trust__title { text-align: center; font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); margin: 0 0 22px; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.trust__item {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 14px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); white-space: nowrap;
}
.trust__item .icon { width: 24px; height: 24px; color: var(--green-700); }
.trust__link { text-align: center; margin: 22px 0 0; font-weight: 600; }
.trust__link a { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.trust__link a:hover { color: var(--green-800); }
@media (max-width: 640px) { .trust__item { padding: 12px 18px; font-size: 0.95rem; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill-list li { background: var(--green-100); color: var(--green-900); font-weight: 600; font-size: 0.92rem; border-radius: 999px; padding: 8px 14px; }
.section--dark .pill-list li, .section--green .pill-list li { background: rgba(61, 220, 132, 0.14); color: #fff; }

.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 220, 132, 0.14); color: var(--signal); flex: 0 0 auto; }
.feature__title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 1rem; }
.feature__text { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 1024px) { .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-row { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 8px 0; }
.subnav__list a {
  display: inline-block; white-space: nowrap; padding: 7px 9px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; color: var(--muted);
}
.subnav__list a:hover { color: var(--green-700); background: var(--bg-alt); text-decoration: none; }
.subnav__list a.is-active { color: var(--green-800); background: var(--green-100); }
@media (max-width: 900px) {
  /* Single scrolling row that bleeds into the gutters, with an edge fade as the scroll cue. */
  .subnav__list {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-right: 48px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .subnav__list::-webkit-scrollbar { display: none; }
}

.service { scroll-margin-top: calc(var(--header-h) + 64px); }
.service__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.service__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--green-700); color: #fff; flex: 0 0 auto; box-shadow: 0 8px 20px rgba(20, 107, 63, 0.3); }
.service__icon .icon { width: 30px; height: 30px; }
.service__head .section-title { margin-bottom: 0.25em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.service__head .lead { margin-bottom: 0; }
.service__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.capabilities { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.capabilities__title { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.capabilities .checklist { margin-bottom: 0; }
.capabilities__note { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.section--alt .capabilities { background: #fff; }
@media (max-width: 900px) { .service__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .service__head { flex-direction: column; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.field__input {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  padding: 13px 14px; border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.field__input.input-validation-error, .field__input[aria-invalid="true"] { border-color: var(--danger); }
.check:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
textarea.field__input { min-height: 150px; resize: vertical; }
.field__error { font-size: 0.86rem; color: var(--danger); }
.field__error:empty { display: none; }
.field-validation-valid { display: none; }

.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
@media (max-width: 800px) { .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .checkbox-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.95rem; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.check:hover { background: var(--bg-alt); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green-700); flex: 0 0 auto; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group .check { border-color: var(--line-control); padding: 10px 16px; background: #fff; }
.radio-group .check input { margin-top: 2px; }

.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form__privacy { font-size: 0.85rem; color: var(--muted); margin: 0; }

.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.95rem; margin-bottom: 20px; }
.alert--error { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c6c2; }
.alert--notice { background: var(--green-100); color: var(--green-900); border: 1px solid #bfe3cd; font-size: 1rem; }
.alert--notice p { margin-top: 6px; }
.alert--notice a { color: var(--green-800); font-weight: 600; }
.alert--error ul { margin: 6px 0 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Contact page layout */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--ink); color: rgba(255, 255, 255, 0.82); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.contact-card__body { padding: 28px; }
.contact-card__title { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.contact-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-card__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.contact-card__list .icon { width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.contact-card__list a { color: #fff; font-weight: 600; }
.contact-card__list a:hover { color: var(--signal); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-panel__title { font-size: 1.6rem; }
.form-panel__lead { font-size: 1rem; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 8px; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .contact-card { position: static; } }

/* --------------------------------------------------------------------------
   Discover landing page (QR code from business cards)
   -------------------------------------------------------------------------- */
.person { position: relative; overflow: hidden; isolation: isolate; background: var(--green-900); color: #fff; }
.person .hero__bg { z-index: -2; }
.person .hero__overlay { z-index: -1; }
.person__card { display: flex; gap: 28px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.person__avatar {
  flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: var(--signal); color: var(--green-900); font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.person .eyebrow { color: var(--signal); margin-bottom: 8px; }
.person__name { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 4px; }
.person__name--sm { font-size: 1.35rem; margin-bottom: 2px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.person__title { color: rgba(255, 255, 255, 0.82); font-weight: 600; margin: 0 0 16px; }
.person__details { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.person__details li { display: flex; align-items: center; gap: 10px; }
.person__details .icon { color: var(--signal); width: 20px; height: 20px; }
.person__details a { color: #fff; font-weight: 600; text-decoration: none; }
.person__details a:hover { color: var(--signal); }
.person__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.person__card--compact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--shadow-sm); color: var(--text); text-align: left; }
.person__card--compact .person__avatar { width: 72px; height: 72px; font-size: 1.5rem; box-shadow: none; }
.person__card--compact .person__title { color: var(--muted); margin-bottom: 10px; }
.person__card--compact .person__details a { color: var(--green-800); }
.person__card--compact .person__details { margin-bottom: 16px; }
@media (max-width: 640px) {
  .person__card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .person__card--compact { align-items: flex-start; }
  .person__actions .btn { flex: 1 1 auto; }
}

/* Two equal halves; each half's content hugs the center seam so ultra-wide screens do not stretch or squeeze it. */
.landing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 60vh; }
.landing__story { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, rgba(4, 39, 23, 0.98), rgba(5, 58, 35, 0.9)), url("../images/photos/circuit-navy.jpg") center / cover; }
.landing__story::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -170px; bottom: -190px; border-radius: 50%;
  border: 1px solid rgba(61, 220, 132, 0.25); box-shadow: 0 0 0 55px rgba(61, 220, 132, 0.06), 0 0 0 110px rgba(61, 220, 132, 0.035);
}
.landing__story-inner { position: relative; z-index: 1; max-width: 720px; margin-left: auto; padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px); }
.landing__story .eyebrow { color: var(--signal); }
.landing__title { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4em; }
.landing__title em { font-style: normal; color: var(--signal); }
.landing__lede { color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; max-width: 640px; margin-bottom: 1.6em; }
.savings { display: flex; align-items: center; gap: 18px; margin: 0 0 30px; }
.savings__dollars { color: var(--signal); font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: 0.04em; }
.savings__copy { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.landing__proof { max-width: 640px; color: #fff; font-weight: 600; margin: 0; }
.landing__form { display: flex; align-items: center; justify-content: flex-start; padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 72px); background: #fff; }
.landing__card { width: min(470px, 100%); }
.landing__form-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.form--stack { grid-template-columns: minmax(0, 1fr); }
.consent { align-items: flex-start; font-size: 0.88rem; color: var(--muted); padding: 0; }
.consent:hover { background: none; }
.btn--block { width: 100%; }
@media (max-width: 900px) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .landing__story-inner { padding: 48px var(--gutter); max-width: none; margin-left: 0; }
  .landing__form { justify-content: center; padding: 40px var(--gutter); }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--green-900); color: #fff; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 40, 25, 0.86), rgba(8, 40, 25, 0.9)); }
.cta-band__inner { padding-block: clamp(64px, 9vw, 104px); max-width: 820px; }
.cta-band__title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 0.5em; }
.cta-band__text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, 0.84); margin: 0 auto 2em; max-width: 680px; }

/* --------------------------------------------------------------------------
   Long-form content (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.4em; margin-bottom: 0.5em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .legal-caps { font-size: 0.93rem; line-height: 1.7; }
.legal-meta { display: inline-block; font-size: 0.9rem; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 1.5em; }
.legal-contact { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 2em; }
.legal-contact p { margin: 0 0 0.4em; }
.legal-contact address { font-style: normal; }

/* Status pages */
.status-page { min-height: 60vh; display: flex; align-items: center; }
.status-page__inner { max-width: 680px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-top: clamp(56px, 7vw, 88px); font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.4fr; gap: 40px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { height: 52px; width: auto; }
.site-footer__tagline { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 6px; }
.site-footer__text { margin: 0; max-width: 320px; }
.site-footer__heading { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin: 8px 0 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.78); display: inline-flex; align-items: center; gap: 8px; }
.site-footer__links a:hover { color: var(--signal); text-decoration: none; }
.site-footer__links .icon { color: var(--signal); }
.site-footer__address { font-style: normal; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; line-height: 1.5; }
.site-footer__address .icon { color: var(--signal); margin-top: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: clamp(40px, 6vw, 64px); padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem;
}
.site-footer--compact { padding-top: 0; }
.site-footer--compact .site-footer__bottom { margin-top: 0; border-top: 0; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-footer__legal a { color: rgba(255, 255, 255, 0.72); }
.site-footer__legal a:hover { color: var(--signal); }
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } .site-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .site-header { transition: none; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .subnav, .nav-toggle, .hero__bg, .hero__overlay, .section__bg, .split__media::after { display: none !important; }
  .hero, .section--dark, .section--green, .contact-card { background: none !important; color: var(--ink) !important; min-height: 0; }
  .hero__title, .hero__sub, .hero__note, .section--dark h2, .section--green h2, .section--dark p, .section--green p,
  .feature__title, .feature__text, .contact-card__title, .contact-card__list a { color: var(--ink) !important; }
  .section--dark::after, .section--green::after { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card, .capabilities, .step { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
}
