/* ==========================================================================
   Trusted AI Systems — design system
   Deep navy #0A1628 · Electric blue #1E90FF · White · Near-black #060D1A
   ========================================================================== */

/* --- Self-hosted fonts (drop woff2 files into assets/fonts/ — see README).
       Stacks fall back to high-quality system fonts if files are absent. --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #0A1628;
  --navy-deep: #060D1A;
  --navy-soft: #102036;
  --navy-line: #1B2F4A;
  --blue: #1E90FF;
  --blue-soft: rgba(30, 144, 255, 0.12);
  --blue-line: rgba(30, 144, 255, 0.35);
  --white: #FFFFFF;
  --grey-light: #B8C4D4;
  --grey-mid: #7C8BA1;
  --bg-light: #F5F7FA;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Barlow', 'Arial Narrow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(6, 13, 26, 0.25);
  --transition: 180ms ease;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul { padding-left: 1.2em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.7em;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
}
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover, .btn--primary:focus { background: #3A9FFF; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--blue-line); }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--blue); color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy-line); }
.btn--ghost-dark:hover, .btn--ghost-dark:focus { border-color: var(--blue); color: var(--blue); }
.btn--nav { padding: 0.55em 1.2em; font-size: 0.95rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.site-brand:hover, .site-brand:focus { text-decoration: none; }
.site-brand__logo { width: 40px; height: 47px; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.site-brand__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a:not(.btn) {
  color: var(--grey-light);
  font-size: 0.97rem;
  font-weight: 500;
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a:not(.btn):focus { color: var(--white); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Sections -------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--deep { background: var(--navy-deep); color: var(--white); }
.section--light { background: var(--bg-light); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--white); }
.section--dark p, .section--deep p { color: var(--grey-light); }
.section__kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.section__lead { font-size: 1.15rem; max-width: 46em; }
.section__center { text-align: center; }
.section__center .section__lead { margin-left: auto; margin-right: auto; }

/* --- Hero -------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(30, 144, 255, 0.12), transparent),
    var(--navy-deep);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.hero__logo { width: 96px; height: 112px; margin-bottom: 1.6rem; }
.hero h1 { color: var(--white); max-width: 14em; }
.hero__sub { font-size: 1.2rem; color: var(--grey-light); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* --- Reallocation diagram ------------------------------------------------------ */
.realloc {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}
.realloc__col {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.realloc__col--gain { border-color: var(--blue-line); }
.realloc__col h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.realloc__col--cost h3 { color: var(--grey-light); }
.realloc__col--gain h3 { color: var(--blue); }
.realloc__list { list-style: none; padding: 0; margin: 0; }
.realloc__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-line);
  color: var(--grey-light);
  font-size: 0.97rem;
}
.realloc__list li:last-child { border-bottom: 0; }
.realloc__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
}
.realloc__shield { width: 64px; height: 75px; filter: drop-shadow(0 0 18px rgba(30, 144, 255, 0.5)); }
.realloc__arrow {
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
}
.realloc__bridge-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  color: var(--white);
  max-width: 11em;
}

/* --- Card grids -------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.card--dark {
  background: var(--navy-soft);
  border-color: var(--navy-line);
  color: var(--grey-light);
}
.card--dark h3 { color: var(--white); }
.card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue);
  margin: 0.3rem 0 0.8rem;
}
.card__price small { font-size: 0.7em; font-weight: 600; color: var(--grey-mid); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__industry { font-size: 0.97rem; }

/* --- Panels (callouts) ------------------------------------------------------- */
.panel-dark {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--blue-line);
  padding: 2.2rem;
}
.panel-dark p { color: var(--grey-light); }
.panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-blue {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}

/* --- Service detail blocks ----------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid #E2E8F0;
}
.service:last-of-type { border-bottom: 0; }
.service__pricing {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  align-self: start;
}
.service__pricing h4 {
  color: var(--blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.service__price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.97rem;
}
.service__price-row:last-child { border-bottom: 0; }
.service__price-row strong { color: var(--white); white-space: nowrap; }
.service__price-row span { color: var(--grey-light); }
.service__when { margin-top: 1.4rem; }
.service__when h4 { font-size: 1rem; margin-bottom: 0.4rem; }

/* --- Checklist / feature lists ------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* --- Numbered differentiators ----------------------------------------------------- */
.numbered { counter-reset: diff; list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.2rem; }
.numbered li {
  counter-increment: diff;
  position: relative;
  padding: 1.4rem 1.6rem 1.4rem 4.2rem;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
}
.numbered li::before {
  content: counter(diff, decimal-leading-zero);
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
}
.numbered h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.numbered p { margin: 0; font-size: 0.99rem; }

/* --- Blog ------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.post-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow); }
.post-card__meta {
  font-size: 0.85rem;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.post-card__cat { color: var(--blue); font-weight: 600; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--navy); }
.post-card__more { margin-top: auto; font-weight: 600; font-size: 0.95rem; }

.single-post-article { max-width: 760px; margin: 0 auto; }
.single-post-article .entry-content h2 { margin-top: 2em; }
.single-post-article .entry-content a { text-decoration: underline; }
.entry-header { margin-bottom: 2rem; }
.entry-header .post-card__meta { font-size: 0.95rem; }
.post-cta { margin-top: 3.5rem; text-align: center; }
.post-cta__text { font-size: 1.12rem; max-width: 40em; margin: 0 auto 1.4rem; }

.pagination { margin-top: 3rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 0.5em 0.95em;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: var(--navy);
}
.pagination .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* --- Video placeholders ----------------------------------------------------------------- */
.video-placeholder {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(30, 144, 255, 0.14), transparent),
    var(--navy-deep);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2rem 0;
}
.video-placeholder__inner { max-width: 34em; padding: 1.5rem; }
.video-placeholder__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: 99px;
  padding: 0.3em 1em;
  margin-bottom: 0.9rem;
}
.video-placeholder__title { color: var(--white); font-size: 1.15rem; margin-bottom: 0.4rem; }
.video-placeholder__desc { color: var(--grey-light); font-size: 0.94rem; margin: 0; }

/* --- Intake page -------------------------------------------------------------------------- */
.intake-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.intake-option {
  text-align: left;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  color: var(--grey-light);
  cursor: pointer;
  font: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.intake-option:hover, .intake-option:focus { border-color: var(--blue); transform: translateY(-2px); }
.intake-option h3 { color: var(--white); font-size: 1.15rem; }
.intake-option__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: 99px;
  padding: 0.25em 0.9em;
  margin-bottom: 0.8rem;
}
.intake-option p { font-size: 0.96rem; margin: 0; }

.intake-email { max-width: 480px; margin: 0 auto 1rem; }

/* --- Forms -------------------------------------------------------------------------------- */
.field { margin-bottom: 1.2rem; text-align: left; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border-radius: 6px;
  border: 1px solid var(--navy-line);
  background: var(--navy-deep);
  color: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { min-height: 110px; resize: vertical; }
.field__error { color: #FF8A8A; font-size: 0.88rem; margin-top: 0.3rem; display: none; }
.field--invalid .field__error { display: block; }
.field--invalid input, .field--invalid textarea { border-color: #FF8A8A; }

/* --- Chat interface --------------------------------------------------------------------------- */
.chat {
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.chat__header img { width: 28px; height: 33px; }
.chat__header-title { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 0.98rem; }
.chat__header-sub { font-size: 0.8rem; color: var(--grey-mid); }
.chat__log {
  padding: 1.4rem;
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.chat__msg {
  max-width: 85%;
  padding: 0.85em 1.1em;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.chat__msg--agent {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  color: var(--grey-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat__msg--user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat__msg--agent a { color: var(--blue); text-decoration: underline; }
.chat__msg--agent strong { color: var(--white); }
.chat__typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.4em 0.2em; }
.chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grey-mid);
  animation: chat-pulse 1.2s infinite ease-in-out;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-pulse {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.chat__quote {
  background: var(--navy);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  align-self: stretch;
  max-width: 100%;
}
.chat__quote h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 0.7rem; }
.chat__quote-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.95rem;
  color: var(--grey-light);
}
.chat__quote-row:last-of-type { border-bottom: 0; }
.chat__quote-row strong { color: var(--white); }
.chat__quote-total strong { color: var(--blue); font-size: 1.1rem; }
.chat__quote p { font-size: 0.93rem; color: var(--grey-light); margin: 0.9rem 0 0; }
.chat__quote .btn { margin-top: 1rem; }

.chat__input-bar {
  display: flex;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
}
.chat__input-bar input {
  flex: 1;
  font: inherit;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border-radius: 6px;
  border: 1px solid var(--navy-line);
  background: var(--navy-deep);
  color: var(--white);
}
.chat__input-bar input:focus { outline: none; border-color: var(--blue); }
.chat__choices { display: flex; flex-wrap: wrap; gap: 0.6rem; align-self: flex-start; }
.chat__choice {
  font: inherit;
  font-size: 0.94rem;
  padding: 0.55em 1.1em;
  border-radius: 99px;
  border: 1px solid var(--blue-line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.chat__choice:hover, .chat__choice:focus { background: var(--blue-soft); border-color: var(--blue); }

.chat__escape {
  margin-left: auto;
  font-size: 0.85rem;
  padding: 0.45em 1em;
  white-space: nowrap;
}

.hidden { display: none !important; }

/* --- Floating intake widget ------------------------------------------------------------------- */
.tas-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 950;
  pointer-events: none;
}
.tas-widget > * { pointer-events: auto; }

.tas-widget__fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(6, 13, 26, 0.45), 0 0 0 1px rgba(30, 144, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tas-widget__fab:hover,
.tas-widget__fab:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(30, 144, 255, 0.35), 0 0 0 1px rgba(30, 144, 255, 0.45);
  outline: none;
}
.tas-widget__fab img { filter: brightness(0) invert(1); }

.tas-widget__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 26, 0.5);
  z-index: -1;
}

.tas-widget__panel {
  position: fixed;
  bottom: calc(1.25rem + 56px + 0.75rem);
  right: 1.25rem;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: min(640px, calc(100vh - 8rem));
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tas-widget__panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--navy-line);
  background: var(--navy);
  flex-shrink: 0;
}
.tas-widget__panel-title { flex: 1; min-width: 0; }
.tas-widget__panel-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}
.tas-widget__panel-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--grey-mid);
}
.tas-widget__close {
  background: transparent;
  border: 0;
  color: var(--grey-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.tas-widget__close:hover,
.tas-widget__close:focus { color: var(--white); outline: none; }

.tas-widget__voice {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  background: var(--navy-soft);
  color: var(--blue);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.tas-widget__voice:hover,
.tas-widget__voice:focus {
  color: var(--white);
  border-color: var(--blue-line);
  outline: none;
}
.tas-widget__voice--muted {
  color: var(--grey-mid);
}
.tas-widget__voice-icon { display: block; }

.tas-widget__welcome {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--grey-light);
  border-bottom: 1px solid var(--navy-line);
  background: var(--navy-soft);
}

.tas-widget__body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.tas-widget__step { padding: 1rem 1rem 1.25rem; }
.tas-widget__heading {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.45rem;
}
.tas-widget__lead {
  font-size: 0.9rem;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}
.tas-widget__body .intake-email { max-width: none; margin: 0; }
.tas-widget__body .intake-options { grid-template-columns: 1fr; margin-top: 0.75rem; }
.tas-widget__body .intake-option { padding: 1rem; }
.tas-widget__body .intake-option h3 { font-size: 1rem; }
.tas-widget__body .chat {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tas-widget__human-form { padding: 0 0 1rem; }
.tas-widget__human-success { padding: 0 0 1rem; }

.tas-widget__prompt {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: min(280px, calc(100vw - 3rem));
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 0.85rem 2rem 0.85rem 0.85rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: tas-widget-fade-in 450ms ease;
}
.tas-widget__prompt-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--grey-light);
}
.tas-widget__prompt-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: transparent;
  border: 0;
  color: var(--grey-mid);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.tas-widget__prompt-dismiss:hover,
.tas-widget__prompt-dismiss:focus { color: var(--white); outline: none; }

@keyframes tas-widget-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tas-widget[data-open="true"] .tas-widget__fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

body.tas-widget-open { overflow: hidden; }

/* --- Footer ----------------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--grey-light);
  border-top: 1px solid var(--navy-line);
  margin-top: 0;
}
.site-footer a { color: var(--grey-light); }
.site-footer a:hover, .site-footer a:focus { color: var(--blue); text-decoration: none; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}
.site-footer__logo { width: 40px; height: 47px; margin-bottom: 0.9rem; }
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 0.2rem;
}
.site-footer__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--blue);
  margin: 0 0 0.8rem;
}
.site-footer__tag { font-size: 0.94rem; margin: 0; }
.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin: 0 0 0.9rem;
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { padding: 0.28rem 0; font-size: 0.96rem; }
.site-footer__contact p { font-size: 0.96rem; margin: 0 0 1rem; }
.site-footer__contact .btn { margin-bottom: 1rem; }
.site-footer__email { word-break: break-all; }
.site-footer__email a { color: var(--blue); }
.site-footer__note { color: var(--grey-mid); font-size: 0.88rem !important; }
.site-footer__bottom {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  padding: 1.1rem 0;
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.88rem;
  color: var(--grey-mid);
}
.site-footer__bottom-inner p { margin: 0; }

/* --- Utility -------------------------------------------------------------------------------------- */
.mt-2 { margin-top: 2rem; }
.note { font-size: 0.9rem; color: var(--grey-mid); }

/* --- Responsive -------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .post-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 1.5rem; }
  .realloc { grid-template-columns: 1fr; }
  .realloc__bridge { flex-direction: row; padding: 0.5rem 0; }
  .realloc__arrow { transform: rotate(90deg); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid--3, .grid--2, .post-grid, .intake-options { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--navy-line);
    padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .chat__msg { max-width: 95%; }
  .hero__actions .btn { width: 100%; }
  .site-brand__tagline { font-size: 0.68rem; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom-inner { flex-direction: column; }

  .tas-widget__panel {
    inset: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: none;
    height: calc(100dvh - 1.5rem);
  }

  .tas-widget {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }

  .tas-widget__prompt {
    width: min(280px, calc(100vw - 5rem));
  }

  .tas-widget__body .chat__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tas-widget__body .chat__escape {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .tas-widget__panel-header {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }

  .tas-widget__voice {
    width: 34px;
    height: 34px;
  }
}
