/* Knight AI — site styles
   Palette sampled from the Knight shield logo: navy #19304c / #0f2038, gold #d6af50, circuit blue #5aa0d8 */
:root {
  --navy-950: #0b1728;
  --navy-900: #0f2038;
  --navy-800: #19304c;
  --navy-700: #224767;
  --navy-600: #2c5079;
  --gold: #d6af50;
  --gold-light: #e9ca6a;
  --gold-dark: #b8912f;
  --blue: #5aa0d8;
  --ink: #10203a;
  --ink-soft: #3b4a60;
  --muted: #62718a;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --line: #e2e7ef;
  --on-dark-soft: #c8d3e3;
  --on-dark-muted: #93a4bd;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 23, 40, 0.08);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px);
  /* Phones: no sideways panning, no rubber-band past the page, and navy (not white) if anything shows behind it */
  background: var(--navy-950); overflow-x: clip; overscroll-behavior: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; overscroll-behavior: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 100; transform: translateY(-200%);
  background: var(--gold); color: var(--navy-950); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.1;
  padding: 0.95rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 8px 24px rgba(214, 175, 80, 0.28); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { background: rgba(11, 23, 40, 0.94); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand-logo { display: block; height: 44px; }
.brand-logo img { height: 44px; width: auto; }
.brand-mark { width: 40px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { color: var(--on-dark-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: var(--navy-950); }
.site-nav .btn:hover { color: var(--navy-950); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  padding: 5.5rem 0 6rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .circuit { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(90, 160, 216, 0.5); }
.hero-bg::after {
  content: ""; position: absolute; right: -12%; top: -25%;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(214, 175, 80, 0.16), transparent 62%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .accent { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--on-dark-soft); max-width: 56ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-checks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: var(--on-dark-soft); font-size: 0.95rem;
}
.hero-checks li { display: flex; align-items: center; gap: 0.55rem; }
.hero-checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background-color: var(--gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2038' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.shield-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 80, 0.30), rgba(90, 160, 216, 0.14) 45%, transparent 70%);
  filter: blur(12px);
}
.hero-shield {
  display: block; position: relative; width: min(340px, 72%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}
.hero-shield img { width: 100%; height: auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chips { display: contents; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  background: rgba(15, 32, 56, 0.86); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  font-size: 0.82rem; font-weight: 500; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(214, 175, 80, 0.2); }
.chip-1 { top: 6%; left: -2%; }
.chip-2 { bottom: 12%; left: -6%; }
.chip-3 { top: 42%; right: -4%; }

/* ---------- Industry strip ---------- */
.strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 2rem; padding: 1.1rem 0; }
.strip-label { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.strip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-weight: 600; color: var(--navy-800); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head .sub { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head .sub { color: var(--on-dark-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 23, 40, 0.12); }
.icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.15rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--gold);
}
.icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); margin: 0; }
/* Services use flex instead of grid so a short last row sits centered */
.cards { display: flex; flex-wrap: wrap; justify-content: center; }
.cards > .card { flex: 0 1 calc((100% - 3rem) / 3); }

/* ---------- Work ---------- */
.case {
  display: flex; flex-direction: column; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.85rem;
}
.tag {
  display: inline-block; width: max-content; font-family: var(--font-head);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--gold);
  background: rgba(214, 175, 80, 0.12); border: 1px solid rgba(214, 175, 80, 0.3); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.case h3 { margin: 0.25rem 0 0; font-size: 1.25rem; }
.case p { color: var(--on-dark-soft); margin: 0; }
.outcome {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-dark);
  display: flex; gap: 0.6rem; align-items: flex-start; color: #fff; font-weight: 500;
}
.outcome svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 0.15rem; }
.note { color: var(--on-dark-soft); margin-top: 2.25rem; }
.note a { color: var(--gold); font-weight: 600; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { padding: 1.85rem 1.6rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 0.85rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Statement band ---------- */
.statement { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.5rem 0; }
.statement-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.statement-text {
  margin: 0; max-width: 34ch; border-left: 4px solid var(--gold); padding-left: 1.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; color: var(--navy-800);
}
.statement .btn { flex: none; }

/* ---------- Testimonials (section stays hidden until real quotes exist) ---------- */
[hidden] { display: none !important; }
.testimonial {
  display: flex; flex-direction: column; gap: 1rem; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem; box-shadow: var(--shadow);
}
.testimonial blockquote { position: relative; margin: 0; padding-top: 2.4rem; color: var(--ink-soft); font-size: 1.02rem; }
.testimonial blockquote::before {
  content: "\201C"; position: absolute; top: -0.35rem; left: 0; line-height: 1;
  font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; color: var(--gold);
}
.testimonial figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.t-name { font-weight: 700; color: var(--navy-800); }
.t-role { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-copy .sub { color: var(--on-dark-soft); font-size: 1.1rem; }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-lines a { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; font-weight: 600; }
.contact-lines a:hover { color: var(--gold); }
.contact-lines svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.8rem 0.95rem;
  border: 1px solid #cfd7e3; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hidden-field { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.opt { color: var(--muted); font-weight: 400; }
.form .btn { margin-top: 0.25rem; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 0.9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 3.5rem 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Thank-you page ---------- */
.thanks-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; background: var(--navy-900); color: #fff; padding: 4rem 0; }
.thanks-card { text-align: center; max-width: 560px; }
.thanks-card .brand-mark { width: 96px; margin: 0 auto 1.5rem; }
.thanks-card p { color: var(--on-dark-soft); font-size: 1.1rem; }
.thanks-card .btn { margin-top: 1rem; }

/* ---------- Book-a-call pop-up (dialog + slide-in card; behavior lives in main.js) ---------- */
html.book-open { overflow: hidden; }
.book-dialog {
  width: min(460px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); overflow: auto; overscroll-behavior: contain;
  background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(3, 10, 20, 0.5);
}
.book-dialog::backdrop { background: rgba(8, 17, 30, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.book-dialog[open] { animation: book-pop 0.28s ease-out; }
@keyframes book-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes book-sheet { from { opacity: 0.6; transform: translateY(48px); } to { opacity: 1; transform: none; } }
.book-head { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: 1.75rem 3.75rem 1.5rem 1.75rem; }
.book-head::after {
  content: ""; position: absolute; z-index: 0; right: -34px; bottom: -46px; width: 170px; height: 170px;
  background: url("/assets/knight-shield-512.webp") center / contain no-repeat; opacity: 0.1; pointer-events: none;
}
.book-head .eyebrow, .book-head h2, .book-lede { position: relative; z-index: 1; }
.book-head .eyebrow { color: var(--gold); margin-bottom: 0.6rem; }
.book-head h2 { font-size: 1.6rem; margin: 0 0 0.55rem; }
.book-lede { color: var(--on-dark-soft); font-size: 0.98rem; margin: 0; }
.book-close, .book-nudge-close { display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: transparent; }
.book-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; color: #fff; background: rgba(255, 255, 255, 0.08); }
.book-close:hover { background: rgba(255, 255, 255, 0.18); }
.book-close svg, .book-nudge-close svg { width: 18px; height: 18px; }
.book-close:focus-visible, .book-nudge-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.book-body { padding: 1.5rem 1.75rem; }
.book-form label { margin-bottom: 0.9rem; }
.book-error { margin: 0 0 0.9rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); background: #fdecea; color: #8a1c12; font-size: 0.9rem; }
.book-error a { color: inherit; font-weight: 600; }
.book-alt { margin: 1rem 0 0; text-align: center; font-size: 0.88rem; color: var(--muted); }
.book-alt a { color: var(--navy-700); font-weight: 600; }
.book-success { padding: 2.5rem 1.75rem 2rem; text-align: center; }
.book-success img { width: 64px; margin: 0 auto 1rem; }
.book-success h2 { font-size: 1.5rem; color: var(--navy-800); }
.book-success h2:focus { outline: none; }
.book-success p { color: var(--ink-soft); }
.book-success a { color: var(--navy-700); font-weight: 600; }
.book-success .btn { margin-top: 1.25rem; }

.book-nudge {
  position: fixed; z-index: 60; left: 24px; bottom: 24px; width: min(380px, calc(100% - 48px));
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
  padding: 1.15rem 2.9rem 1.2rem 1.15rem;
  background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.book-nudge.show { opacity: 1; transform: none; }
.book-nudge-mark { width: 38px; margin-top: 2px; }
.book-nudge-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.3; margin: 0 0 0.3rem; }
.book-nudge-text { color: var(--on-dark-soft); font-size: 0.92rem; line-height: 1.45; margin: 0 0 0.85rem; }
.book-nudge-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; color: var(--on-dark-muted); }
.book-nudge-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 640px) {
  .book-dialog { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh; }
  .book-dialog[open] { animation: book-sheet 0.3s ease-out; }
  .book-head { padding: 1.5rem 3.5rem 1.3rem 1.25rem; }
  .book-head h2 { font-size: 1.4rem; }
  .book-body { padding: 1.25rem 1.25rem 1.5rem; }
  .book-nudge { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 1rem 2.75rem 1rem 1rem; gap: 0.75rem; }
  .book-nudge-mark { width: 30px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shield { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  .book-dialog[open] { animation: none; }
  .book-nudge { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards > .card { flex-basis: calc((100% - 1.5rem) / 2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .statement-inner { flex-direction: column; align-items: flex-start; }
  .hero-visual { min-height: 0; margin-top: 0.5rem; grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-shield { width: min(260px, 60%); }
  .shield-glow { width: 60%; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .chip { position: static; white-space: normal; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin-inline: auto; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem 24px 1.25rem;
    background: var(--navy-950); border-bottom: 1px solid var(--line-dark); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), 100% - 32px); }
  .section { padding: 4rem 0; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .cards > .card { flex-basis: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .form-card { padding: 1.5rem; }
  .site-footer { padding-bottom: 5.5rem; } /* room for Netlify's corner badge */
  .brand-logo, .brand-logo img { height: 38px; }
}
