/* Knight Technology Services — site.css
   Vanilla, no framework. Styled to match the existing knighttechs.com brand:
   white backgrounds, Varela Round headings, Source Sans Pro body, red accent. */

:root {
  --ink: #101820;          /* dark navy — matches existing nav bar */
  --ink-soft: #3e3e3e;     /* body text */
  --ink-mute: #6b6b6b;     /* tertiary */
  --paper: #ffffff;
  --bg-alt: #f3f3f3;       /* section alt bg */
  --brand: #89cfed;        /* cyan — the actual Knight brand color */
  --brand-deep: #1d6fa4;   /* accessible darker cyan for links/text on white (AA) */
  --brand-darker: #154d74; /* hover */
  --brand-soft: #e8f4fb;   /* very light cyan for highlight blocks */
  --accent: var(--brand-deep);       /* default link/text accent */
  --accent-hover: var(--brand-darker);
  --rule: #e4e4e4;
  --rule-dark: #1f2a33;

  --max: 1160px;
  /* Section padding reduced ~20% from the original (56/8vw/96 → 44/6.5vw/76) */
  --pad-y: clamp(44px, 6.5vw, 76px);
  --pad-x: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* sticky header is ~70-80px tall; pad anchor scroll so headings aren't hidden */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Varela Round", "Trebuchet MS", Helvetica, Arial, sans-serif;
  font-weight: 400; /* Varela Round only ships a 400 weight */
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

.tabular { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { padding: var(--pad-y) 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 1000;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(137, 207, 237, 0.08), 0 2px 12px rgba(0, 0, 0, 0.3);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 16px;
}
.brand {
  color: var(--brand);
  text-decoration: none;
  /* shield sits closer to the wordmark — tighter gap */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.brand-icon {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  /* Montserrat Medium — slightly thinner than Bold, closer to the official
     KNIGHT lockup wordmark's stroke weight. */
  font-family: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
  transition: color 150ms ease;
}
.brand:hover .brand-name { color: var(--brand); }

.brand-tag {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 540px) {
  .brand-tag { display: none; }
  .brand-icon { height: 36px; }
  .brand-name { font-size: 1.25rem; }
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Varela Round", sans-serif;
}
.nav a:hover { color: #fff; }

.nav .nav-call {
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 8px 14px;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: none;
}
.nav .nav-call:hover {
  background: var(--brand);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--pad-x);
    left: var(--pad-x);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border: 1px solid var(--rule-dark);
    padding: 8px 0;
    z-index: 20;
  }
  .nav a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule-dark);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #e9eef2;
  position: relative;
  overflow: hidden;
  /* tighter top so the headline sits closer to the nav; generous bottom remains */
  padding: clamp(26px, 4vw, 58px) 0 clamp(58px, 10vw, 128px);
}
.hero::before {
  /* subtle cyan glow top-right — nod to the cyan/navy vibe without busy imagery */
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 140%;
  background: radial-gradient(closest-side, rgba(137,207,237,0.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 22ch;
  font-family: "Varela Round", sans-serif;
}
.hero h1 .line-1 { display: block; color: #ffffff; }
.hero h1 .line-2 { display: block; color: var(--brand); }

.hero .lede {
  max-width: 56ch;
  font-size: clamp(1.1rem, 1.45vw, 1.25rem);
  color: #c9d2db;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero-cta-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  font-size: 1rem;
  font-family: "Varela Round", "Trebuchet MS", Helvetica, Arial, sans-serif;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover { background: #b7e3f5; border-color: #b7e3f5; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-ghost:hover { background: #ffffff; color: var(--ink); }

/* Ghost button variant on light backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

.hero-microcopy {
  margin: 0;
  color: #9aa2ab;
  font-size: 0.88rem;
  font-family: "Source Sans Pro", sans-serif;
  font-style: italic;
  letter-spacing: 0.01em;
  max-width: 36ch;
}
.hero-microcopy em {
  font-style: italic;
  color: var(--brand);
}

.scroll-cue {
  display: inline-block;
  margin-top: 40px;
  color: #9aa2ab;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue:hover { color: var(--brand); }

/* ---------- Team preview ---------- */
#team-preview { background: var(--paper); }
#team-preview .lede {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--paper);
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
  border-radius: 2px;
}
.team-card h3 {
  margin: 18px 0 4px;
  font-size: 1.35rem;
}
.team-card .role {
  margin: 0 0 12px;
  color: var(--ink-mute);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-card .bio {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 14px;
}
.team-card .reach {
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  margin: 0;
}

.footnote {
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Services ---------- */
#services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service {
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.service:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 2px 16px rgba(137,207,237,0.15);
}
.service .icon {
  width: 36px;
  height: 36px;
  color: var(--brand-deep);
  margin-bottom: 18px;
}
.service h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.service p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- AI contrast callout ---------- */
#callout {
  background: var(--ink);
  color: #f1f1f1;
  position: relative;
}
#callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
}
#callout .wrap { max-width: 880px; }
#callout h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: #fff;
  margin-bottom: 28px;
}
#callout h2 em {
  color: var(--brand);
  font-style: normal;
}
#callout p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: #e9ecef;
}
#callout p.callout-aside {
  font-size: 0.92rem;
  color: #9aa2ab;
  font-style: italic;
  margin-top: 28px;
  line-height: 1.5;
}
#callout p.callout-aside a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#callout p.callout-aside a:hover { color: #b7e3f5; }

/* ---------- Process ---------- */
#process { background: var(--paper); }
#process .process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
#process .process-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}
.step {
  position: relative;
  padding: 0 16px;
  text-align: left;
}
.step .num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--brand);
  color: var(--ink);
  font-family: "Varela Round", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 780px) {
  #process .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #process .process-steps::before { display: none; }
}

/* ---------- Testimonials ---------- */
#testimonials { background: var(--bg-alt); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.quote {
  background: var(--paper);
  padding: 28px;
  margin: 0;
  border-left: 4px solid var(--brand);
  border-radius: 0 3px 3px 0;
}
.quote p {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
  font-style: italic;
}
.quote cite {
  color: var(--ink-mute);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Service area ---------- */
#area { background: var(--paper); }
.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
  font-size: 1.1rem;
  font-family: "Varela Round", sans-serif;
  color: var(--ink);
}
.locations span { display: inline-flex; align-items: center; gap: 10px; }
.locations span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand);
  display: inline-block;
  border-radius: 50%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd3d9;
  padding: 56px 0 40px;
  font-size: 0.98rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: "Varela Round", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.site-footer a { color: #e9ecef; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .big-phone {
  font-family: "Varela Round", sans-serif;
  font-size: 1.75rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 8px;
}

.footer-brand .footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
}
.footer-brand .footer-shield {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-brand .footer-words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.footer-brand .footer-name {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.footer-brand .footer-tag {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin-top: 6px;
}
.footer-brand .footer-lockup:hover .footer-name { color: var(--brand); }

.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.legal {
  border-top: 1px solid var(--rule-dark);
  margin-top: 40px;
  padding-top: 20px;
  color: #8a929c;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-hero {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(52px, 8vw, 96px) 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.contact-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.contact-hero .big-tel {
  display: inline-block;
  font-family: "Varela Round", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--brand-deep);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 12px 0 20px;
}
.contact-hero .big-tel:hover { color: var(--brand-darker); }
.contact-hero .eyebrow {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin: 0;
}
.contact-hero .sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.6;
}
.contact-hero .sub em {
  font-style: normal;
  color: var(--brand-deep);
  border-bottom: 1px dashed rgba(29, 111, 164, 0.4);
}

.direct-dials { background: var(--bg-alt); }
.dial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.dial {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.dial h3 { margin: 0 0 4px; font-size: 1.15rem; }
.dial .role {
  color: var(--ink-mute);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.dial a { font-variant-numeric: tabular-nums; display: block; line-height: 1.7; }

/* Form */
.contact-form-wrap { background: var(--paper); }
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
  margin: 32px 0 0;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Varela Round", sans-serif;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; }

/* ---------- Team page ---------- */
.page-hero {
  background: var(--bg-alt);
  padding: clamp(44px, 6.5vw, 76px) 0 clamp(32px, 5vw, 52px);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand);
}
.page-hero h1 {
  font-family: "Varela Round", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 18px;
  max-width: 20ch;
}
.page-hero p {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0;
}

/* Partners group block at top of team page — side-by-side: photo left, copy right */
.partners-intro {
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.partners-intro .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.partners-photo {
  margin: 0;
}
.partners-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 36px rgba(16, 24, 32, 0.18);
}
.partners-photo figcaption {
  margin-top: 16px;
  font-family: "Varela Round", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: grid;
  /* three equal columns so each name sits under the matching face */
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}
/* legacy separator spans hidden if any survive */
.partners-photo figcaption .sep { display: none; }
.partners-photo figcaption span { padding: 0 4px; }

.partners-copy h2 {
  font-family: "Varela Round", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 18px;
  line-height: 1.2;
}
.partners-copy .lede {
  font-size: 1.15rem;
  color: var(--ink);
  font-family: "Varela Round", sans-serif;
  margin: 0 0 18px;
}
.partners-copy p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
}
.partners-copy p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .partners-intro .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .partners-photo { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .partners-photo figcaption {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
}

.person {
  display: grid;
  /* Smaller partner headshots — the group photo at the top is the visual
     anchor; these individual cards should support it, not compete. */
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 48px;
  align-items: start;
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--rule);
}
.person:last-child { border-bottom: 0; }
.person.reverse { direction: rtl; }
.person.reverse > * { direction: ltr; }
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
  border-radius: 3px;
}
.person h2 { margin: 0 0 6px; font-size: 2rem; }
.person .role {
  color: var(--ink-mute);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.person .certs {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0 0 20px;
}
.person .best-at {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.person .best-at li {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 3px;
  font-family: "Varela Round", sans-serif;
}
.person .reach {
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
  margin: 20px 0 0;
  font-size: 1rem;
}
.person .outside {
  margin-top: 20px;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 0.98rem;
}

@media (max-width: 780px) {
  .person { grid-template-columns: 1fr; gap: 32px; }
  .person.reverse { direction: ltr; }
  /* Cap the headshot width when stacked so it doesn't take over on mobile */
  .person > div:first-child { max-width: 260px; }
}

/* ---------- The rest of the team — compact column grid ---------- */
.team-members {
  background: var(--bg-alt);
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--rule);
}
.team-members h2 {
  font-family: "Varela Round", sans-serif;
  margin: 0 0 12px;
}
.team-members .lede {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0 0 40px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.member {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
/* Initials overlay on placeholder avatars only */
/* Subtle placeholder-note overlay — white text directly on the silhouette bg */
.member .initials {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Varela Round", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.member h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 1.05rem;
  margin: 14px 16px 4px;
  color: var(--ink);
}
.member .role {
  margin: 0 16px 12px;
  color: var(--ink-mute);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.member .reach {
  margin: 0 16px 16px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}
.member .reach a {
  display: block;
  color: var(--accent);
  text-decoration: none;
}
.member .reach a:hover { text-decoration: underline; }

/* Member tagline — for the "Sr. Fireman" / cheeky descriptor lines */
.member .member-tagline {
  margin: 0 16px 12px;
  color: var(--ink);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.4;
  font-family: "Source Sans Pro", sans-serif;
}

/* Cert-number serials on the team-page certs line */
.person .certs .cert-id {
  font-variant-numeric: tabular-nums;
  font-size: 0.82em;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* Homepage team-preview — text-only, centered narrow block */
#team-preview .team-preview-narrow {
  max-width: 720px;
  text-align: center;
}
#team-preview .team-preview-narrow .team-cta {
  margin: 8px 0 28px;
  font-family: "Varela Round", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}
#team-preview .team-preview-narrow .team-cta a {
  color: var(--brand-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 4px;
  transition: color 150ms ease, border-color 150ms ease;
}
#team-preview .team-preview-narrow .team-cta a:hover {
  color: var(--brand-darker);
  border-bottom-color: var(--brand-darker);
}
#team-preview .team-preview-narrow .lede {
  max-width: none;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Downloads page ---------- */
.dl-section { background: var(--paper); padding: clamp(32px, 5vw, 64px) 0; }
.dl-wrap { max-width: 560px; }

.dl-error {
  background: #fff3f3;
  color: #8a1a1a;
  border: 1px solid #f0c2c2;
  border-radius: 3px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 1rem;
}

.dl-form {
  display: grid;
  gap: 20px;
}
.dl-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Varela Round", sans-serif;
}
.dl-form input,
.dl-form select {
  font: inherit;
  font-family: "Source Sans Pro", sans-serif;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}
.dl-form input:focus,
.dl-form select:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.dl-form button { justify-self: start; margin-top: 4px; }

.dl-note {
  margin-top: 36px;
  color: var(--ink-mute);
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

/* Hero eyebrow — small line above the headline establishing the brand + tenure */
.hero .hero-eyebrow {
  color: var(--brand);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 22px;
  line-height: 1;
}

/* ---------- Security stack section ---------- */
#security-stack {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stack-grid {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.stack-grid li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  padding: 22px 24px;
  border-radius: 3px;
  transition: border-left-color 180ms ease, transform 180ms ease;
}
.stack-grid li:hover {
  border-left-color: var(--brand-deep);
  transform: translateY(-2px);
}
.stack-grid h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.stack-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Pricing section ---------- */
#pricing { background: var(--paper); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
}
.pricing-col {
  padding: 28px 28px 24px;
  border-radius: 4px;
}
.pricing-col h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 16px;
}
.pricing-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-col li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px solid var(--rule);
}
.pricing-col li:last-child { border-bottom: 0; }

.pricing-in {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
}
.pricing-in h3 { color: var(--brand-deep); }
.pricing-in li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--brand-deep);
  font-weight: 700;
  font-family: "Varela Round", sans-serif;
}

.pricing-out {
  background: var(--bg-alt);
  border-left: 3px solid var(--ink-mute);
}
.pricing-out h3 { color: var(--ink-soft); }
.pricing-out li {
  color: var(--ink-soft);
}
.pricing-out li::before {
  content: "\2013"; /* en dash */
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--ink-mute);
  font-weight: 700;
  font-family: "Varela Round", sans-serif;
}

.pricing-note {
  margin-top: 32px;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- Who we help section ---------- */
#who-we-help {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}
.who-note {
  margin-top: 32px;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- Homepage tile bridge → /services anchors ---------- */
#tile-bridge {
  background: var(--paper);
}
#tile-bridge h2 {
  font-family: "Varela Round", sans-serif;
  margin: 0 0 8px;
}
#tile-bridge .lede {
  margin-bottom: 40px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.bridge-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  padding: 24px 56px 24px 24px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.bridge-tile:hover {
  border-color: var(--brand);
  border-left-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(137, 207, 237, 0.15);
}
.bridge-tile h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.bridge-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.bridge-tile .bridge-arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--brand-deep);
  font-size: 1.4rem;
  font-family: "Varela Round", sans-serif;
  transition: transform 180ms ease, color 180ms ease;
}
.bridge-tile:hover .bridge-arrow {
  transform: translateY(-50%) translateX(4px);
  color: var(--brand-darker);
}

/* ---------- Commitments section (lives on /services) ---------- */
#commitments {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

/* ---------- 404 page ---------- */
.not-found-wrap {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.not-found-code {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--brand);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}
.not-found-wrap h1 {
  margin: 16px auto 16px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.not-found-wrap p {
  max-width: 50ch;
  margin: 0 auto 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.not-found-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 24px auto !important;
}
.not-found-tel {
  margin-top: 32px !important;
  color: var(--ink-mute);
  font-size: 0.95rem;
}
.not-found-tel a {
  font-variant-numeric: tabular-nums;
  color: var(--brand-deep);
}

/* ---------- Contact form flash banner ---------- */
.form-flash {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.5;
}
.form-flash-ok {
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  color: var(--ink);
  border-left: 4px solid var(--brand-deep);
}
.form-flash-err {
  background: #fff3f3;
  border: 1px solid #f0c2c2;
  color: #8a1a1a;
  border-left: 4px solid #c44747;
}
