/* =========================================================================
   TERRY FIRE INVESTIGATIONS — Home page
   Brand-accurate system extracted from logo + business card.
   Surface: near-black navy · Single accent: brand fire red · Type: slab + condensed
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --navy: #000814;        /* primary surface: nav, hero, dark sections */
  --ink: #05080F;         /* deepest surface: trust bar, footer */
  --navy-elev: #0B1422;   /* elevated card on dark */
  --offwhite: #F6F6F4;    /* light section bg */
  --white: #FAFAFA;       /* text on dark */
  --ink-text: #14171C;    /* body text on light */

  /* Accent — red is the ONLY accent */
  --red: #C2231F;
  --red-deep: #A90100;
  --red-bright: #E03A2E;
  --orange: #FDB002;      /* logo gradient only */
  --gold: #FEB501;        /* logo gradient only */

  /* Lines / muted */
  --line-dark: rgba(250, 250, 250, 0.10);
  --line-light: rgba(20, 23, 28, 0.10);
  --muted-light: rgba(250, 250, 250, 0.62);
  --muted-ink: rgba(20, 23, 28, 0.66);

  /* Type */
  --display: "Roboto Slab", Georgia, serif;
  --cond: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows — layered, tinted (never flat) */
  --shadow-card: 0 1px 2px rgba(20, 23, 28, 0.06), 0 18px 40px -18px rgba(20, 23, 28, 0.22);
  --shadow-card-hover: 0 2px 4px rgba(169, 1, 0, 0.10), 0 26px 50px -20px rgba(169, 1, 0, 0.28);
  --shadow-red: 0 10px 30px -10px rgba(194, 35, 31, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }

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

/* ---------- Icons (CSS mask via --ico custom property) ----------
   Each .ico-* sets --ico to its SVG. Leaf icon spans paint themselves.
   Container boxes (trust badge, service icon) set their own mask to none
   and render the glyph through ::before { mask: var(--ico) } so the box,
   border, and background survive. Custom properties inherit to ::before. */
[class*="ico-"] {
  display: inline-block;
  width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--ico); mask-image: var(--ico);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.14em;
  flex: none;
}
.ico-phone   { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z"/%3E%3C/svg%3E'); }
.ico-doc     { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/%3E%3Cpath d="M14 2v6h6M16 13H8M16 17H8M10 9H8"/%3E%3C/svg%3E'); }
.ico-shield  { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"/%3E%3Cpath d="m9 12 2 2 4-4"/%3E%3C/svg%3E'); }
.ico-paw     { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"%3E%3Ccircle cx="5.5" cy="11" r="2.2"/%3E%3Ccircle cx="9.5" cy="6.5" r="2.2"/%3E%3Ccircle cx="14.5" cy="6.5" r="2.2"/%3E%3Ccircle cx="18.5" cy="11" r="2.2"/%3E%3Cpath d="M12 12.5c-2.6 0-5 2.2-5 4.6 0 1.7 1.4 2.9 3.1 2.9.8 0 1.3-.3 1.9-.3s1.1.3 1.9.3c1.7 0 3.1-1.2 3.1-2.9 0-2.4-2.4-4.6-5-4.6Z"/%3E%3C/svg%3E'); }
.ico-badge   { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="8" r="6"/%3E%3Cpath d="M8.5 13.5 7 22l5-3 5 3-1.5-8.5"/%3E%3C/svg%3E'); }
.ico-bolt    { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"%3E%3Cpath d="M13 2 4.5 13.5H11l-1 8.5 8.5-11.5H12z"/%3E%3C/svg%3E'); }
.ico-home    { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 10 9-7 9 7v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/%3E%3Cpath d="M9 21v-7h6v7"/%3E%3C/svg%3E'); }
.ico-building{ --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="4" y="2" width="16" height="20" rx="1"/%3E%3Cpath d="M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01"/%3E%3C/svg%3E'); }
.ico-vehicle { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 13 6.5 7.5A2 2 0 0 1 8.4 6h7.2a2 2 0 0 1 1.9 1.5L19 13M5 13h14M5 13a2 2 0 0 0-2 2v3h2m14-5a2 2 0 0 1 2 2v3h-2m-3 0H8m-1 0v1.5M17 18v1.5"/%3E%3C/svg%3E'); }
.ico-flame   { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5Z"/%3E%3C/svg%3E'); }
.ico-mail    { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="2" y="4" width="20" height="16" rx="2"/%3E%3Cpath d="m2 7 10 6 10-6"/%3E%3C/svg%3E'); }
.ico-globe   { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="10"/%3E%3Cpath d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z"/%3E%3C/svg%3E'); }
.ico-linkedin{ --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"%3E%3Cpath d="M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3zM9 9h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05C20.4 8.65 22 10.9 22 14.2V21h-4v-6c0-1.43-.03-3.27-2-3.27-2 0-2.3 1.56-2.3 3.17V21H9z"/%3E%3C/svg%3E'); }

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-family: var(--cond);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow--light { color: #ffb9b4; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.eyebrow--center { text-align: center; }
/* Hero eyebrow sits over bright light rays — force white, bolder, strong shadow for legibility */
.hero .eyebrow--light {
  color: #ffffff; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.92), 0 2px 16px rgba(0,0,0,0.85);
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  color: var(--ink-text);
  font-weight: 800;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted-ink);
  max-width: 56ch;
  margin-top: 18px;
}
.section-head--center .section-sub { margin-inline: auto; }

/* Split-bar divider with end caps — echoes the card's "CONSULTING" rule */
.rule { display: flex; width: fit-content; margin: 20px 0 4px; }
.rule > span {
  position: relative; display: block;
  width: 58px; height: 3px; background: var(--red);
}
.rule > span::before, .rule > span::after {
  content: ""; position: absolute; top: -3px;
  width: 3px; height: 9px; background: var(--red);
}
.rule > span::before { left: 0; }
.rule > span::after { right: 0; }
.section-head--center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--cond);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 3px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .ico-phone, .btn .ico-doc { font-size: 1.05em; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
/* Smaller header CTA button for better nav balance */
.nav__actions .btn--red { padding: 9px 16px; font-size: 13.5px; }
/* Hero headline: break after "Independent" on mobile so "Origin & Cause" sits on line 2 */
.hero__title .brk-a { display: none; }
@media (max-width: 540px) {
  .hero__title .brk-a { display: inline; }
  .hero__title .brk-b { display: none; }
}

/* FAQ — carded accordion (native <details>, no JS) — used on dark sections */
.faq { max-width: 860px; margin: 44px 0 0; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.faq__item:hover { border-color: rgba(255,255,255,0.22); }
.faq__item[open] {
  border-color: rgba(224,58,46,0.5);
  background: linear-gradient(180deg, rgba(224,58,46,0.07), rgba(255,255,255,0.015));
  box-shadow: 0 22px 48px -24px rgba(0,0,0,0.8), 0 0 0 1px rgba(224,58,46,0.12);
}
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--display); font-weight: 600; color: #fff;
  font-size: clamp(16px, 1.85vw, 19px); line-height: 1.35;
  padding: 20px 22px; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--red);
  background: rgba(224,58,46,0.13);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}
.faq__icon::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E') center/contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E') center/contain no-repeat;
}
.faq__item[open] .faq__icon { background: var(--red); color: #fff; transform: rotate(180deg); }
.faq__a { padding: 0 22px 22px; }
.faq__a::before { content: ""; display: block; height: 1px; background: rgba(255,255,255,0.09); margin-bottom: 16px; }
.faq__a p { color: var(--muted-light); font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.75; max-width: 66ch; }
.faq__item[open] .faq__a { animation: faqReveal 0.32s var(--ease); }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .faq__icon { transition: background-color 0.25s, color 0.25s; }
  .faq__item[open] .faq__a { animation: none; }
}
/* FAQ light-section variant (e.g. home page) */
.section--light .faq__item {
  background: linear-gradient(180deg, #ffffff, #fbfbf9);
  border-color: rgba(20,23,28,0.12);
  box-shadow: 0 1px 2px rgba(20,23,28,0.05);
}
.section--light .faq__item:hover { border-color: rgba(20,23,28,0.24); }
.section--light .faq__item[open] {
  border-color: rgba(194,35,31,0.45);
  background: linear-gradient(180deg, rgba(194,35,31,0.045), #ffffff);
  box-shadow: 0 22px 48px -26px rgba(20,23,28,0.35);
}
.section--light .faq__q { color: var(--ink-text); }
.section--light .faq__a::before { background: rgba(20,23,28,0.10); }
.section--light .faq__a p { color: var(--muted-ink); }

.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(224, 58, 46, 0.6); }
.btn--red:active { transform: translateY(0); }

.btn--outline { background: rgba(0,0,0,0.18); color: #fff; border-color: rgba(255,255,255,0.45); backdrop-filter: blur(2px); }
.btn--outline:hover { border-color: #fff; transform: translateY(-2px); background: rgba(0,0,0,0.30); }

.btn--ghost { background: transparent; color: var(--white); border-color: transparent; padding-inline: 12px; }
.btn--ghost:hover { color: #ffb9b4; }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red-bright); outline-offset: 3px;
}

/* Inline arrow link */
.link-arrow {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 600; font-size: 15px; color: var(--red);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
}
.link-arrow .arrow, .btn .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(0, 8, 20, 0.94);
  box-shadow: 0 1px 0 var(--line-dark);
  backdrop-filter: blur(8px);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  background: rgba(0, 8, 20, 0.94);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px -12px rgba(0,0,0,0.7);
  height: 70px;
  backdrop-filter: blur(8px);
}

/* Brand lockup (full logo image) */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: auto; height: 52px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55)); transition: height 0.35s var(--ease); }
.nav.scrolled .brand__logo { height: 44px; }
.brand--footer .brand__logo { height: 66px; }
.brand__mark { width: auto; height: 46px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); transition: height 0.35s var(--ease); }
.nav.scrolled .brand__mark { height: 40px; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 0.01em; color: var(--white); text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.brand__name-light { font-weight: 500; color: #d8dde6; }
.brand__tag {
  font-family: var(--cond); text-transform: uppercase; font-size: 9.5px;
  letter-spacing: 0.34em; color: var(--red); margin-top: 4px; font-weight: 600;
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--cond); text-transform: uppercase; font-weight: 500;
  font-size: 15px; letter-spacing: 0.06em; color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.28s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__call { text-shadow: 0 1px 8px rgba(0,0,0,0.7); font-size: 15px; }

/* Hamburger */
.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), 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); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(5, 8, 15, 0.98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  padding: 18px var(--gutter) 30px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--white);
}
.mobile-menu__cta { justify-content: center; margin-top: 16px; border-bottom: 0 !important; }
.mobile-menu__call { color: var(--red) !important; border-bottom: 0 !important; display: flex; align-items: center; gap: 10px; }

/* =========================================================================
   1 · HERO — full-bleed video, displayed RAW (no overlay/tint per brief)
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter); padding-block: 4vh 22vh;
}
.hero__title {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 800; color: #fff; letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.6);
  max-width: 16ch;
}
.hero__title .accent-word { color: #fff; position: relative; white-space: nowrap; }
.hero__title .accent-word::after {
  content: ""; position: absolute; left: 0; bottom: 0.05em; height: 0.10em; width: 100%;
  background: var(--red); box-shadow: 0 0 24px 2px rgba(194,35,31,0.7);
}
.hero__sub {
  margin-top: 26px; max-width: 56ch;
  font-size: clamp(16px, 1.55vw, 20px); color: #ffffff; font-weight: 600;
  text-shadow: 0 2px 18px rgba(0,0,0,0.92), 0 1px 4px rgba(0,0,0,0.85);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-line { width: 2px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* Hero load orchestration */
.hero__content.reveal { opacity: 1; transform: none; }
.hero__content > * { animation: heroIn 0.9s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.15s; }
.hero__title    { animation-delay: 0.30s; }
.hero__sub      { animation-delay: 0.48s; }
.hero__cta      { animation-delay: 0.64s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   2 · TRUST BAR — deepest surface, red icons
   ========================================================================= */
.trust { background: var(--ink); border-block: 1px solid var(--line-dark); }
.trust__list {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px;
}
.trust__item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 14px; font-weight: 500; color: #dfe3ea; white-space: nowrap;
}
.trust__item em { font-style: normal; color: #fff; font-weight: 600; }
.trust__badge {
  color: var(--red);
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1.5px solid rgba(194,35,31,0.55); border-radius: 50%;
  background-color: transparent;
  -webkit-mask-image: none; mask-image: none; /* box must not clip to glyph */
}
/* badge is a circle; the masked icon lives in ::before so the ring stays visible */
.trust__badge::before {
  content: ""; width: 20px; height: 20px; background: var(--red);
  -webkit-mask-image: var(--ico); mask-image: var(--ico);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* =========================================================================
   3 · WHAT TFI INVESTIGATES — light section, white cards
   ========================================================================= */
.services { background: var(--offwhite); color: var(--ink-text); padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: 6px;
  padding: 30px 26px 26px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(194,35,31,0.25); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  background-color: rgba(194,35,31,0.08); border: 1px solid rgba(194,35,31,0.18); border-radius: 8px;
  margin-bottom: 22px;
  -webkit-mask-image: none; mask-image: none; /* box must not clip to glyph */
}
.svc-card__icon::before {
  content: ""; width: 28px; height: 28px; background: var(--red);
  -webkit-mask-image: var(--ico); mask-image: var(--ico); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.svc-card__title { font-size: 21px; color: var(--ink-text); margin-bottom: 10px; letter-spacing: -0.01em; }
.svc-card__body { font-size: 15px; color: var(--muted-ink); flex: 1; }
.svc-card__more {
  margin-top: 20px; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 13.5px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 7px;
}

/* =========================================================================
   4 · FOR SIU & SUBROGATION — most important; near-black navy
   ========================================================================= */
.siu { position: relative; background: var(--navy); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
/* carbon-fiber / diagonal red accent motif from the card (subtle) */
.siu__texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 7px),
    radial-gradient(120% 80% at 100% 0%, rgba(194,35,31,0.16), transparent 55%);
}
.siu .container { position: relative; z-index: 1; }
.siu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.siu-card {
  position: relative; background: var(--navy-elev);
  border: 1px solid var(--line-dark); border-radius: 6px;
  padding: 30px 26px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.siu-card::after {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  background: var(--red); border-radius: 0 2px 2px 0;
  transform: scaleY(0.001); transform-origin: top; transition: transform 0.4s var(--ease);
}
.siu-card:hover { transform: translateY(-4px); border-color: rgba(194,35,31,0.4); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8); }
.siu-card:hover::after { transform: scaleY(1); }
.siu-card__no {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--red); opacity: 0.9; letter-spacing: 0.05em;
}
.siu-card__title { font-size: 22px; color: var(--red-bright); margin: 12px 0 12px; }
.siu-card__body { font-size: 15px; color: var(--muted-light); }
.siu__cta { margin-top: 48px; text-align: center; }

/* =========================================================================
   5 · K9 TEASER
   ========================================================================= */
.k9 { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line-dark); }
.k9__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.k9__media { position: relative; display: grid; place-items: center; min-height: 320px; }
.k9__glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,176,2,0.30), rgba(194,35,31,0.18) 42%, transparent 70%);
  filter: blur(8px); animation: emberPulse 5s var(--ease) infinite;
}
@keyframes emberPulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.07); opacity: 1; } }
.k9__mark { position: relative; height: auto; width: min(330px, 70%); filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6)); }
.k9__body { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted-light); margin-top: 6px; max-width: 52ch; }
.k9__hook {
  font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.7vw, 22px);
  color: #fff; margin-top: 22px; max-width: 40ch; line-height: 1.3;
  border-left: 3px solid var(--red); padding-left: 18px;
}
.k9__stats { display: flex; gap: 14px; margin: 32px 0 26px; flex-wrap: wrap; }
.k9__stats li {
  flex: 1; min-width: 120px; background: var(--navy-elev);
  border: 1px solid var(--line-dark); border-top: 2px solid var(--red);
  border-radius: 5px; padding: 18px 16px; text-align: center;
}
.k9__stat-num { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; color: #fff; letter-spacing: -0.01em; }
.k9__stat-label { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--muted-light); margin-top: 4px; }

/* =========================================================================
   6 · FINAL CTA BAND
   ========================================================================= */
.finalcta { position: relative; background: var(--navy); padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.finalcta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 120%, rgba(194,35,31,0.22), transparent 60%);
  pointer-events: none;
}
.finalcta__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.finalcta__title { font-size: clamp(34px, 5vw, 60px); color: #fff; font-weight: 800; }
.finalcta__phone {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 64px);
  color: #fff; letter-spacing: -0.01em; margin: 22px 0 30px;
  display: inline-flex; align-items: center; gap: 16px; transition: color 0.25s var(--ease);
}
.finalcta__phone .ico-phone { color: var(--red); font-size: 0.7em; }
.finalcta__phone:hover { color: var(--red-bright); }
.finalcta__lead { margin: 18px 0 30px; max-width: 48ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted-light); }
.finalcta__reassure { margin-top: 26px; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--muted-light); }

/* ---- Brand mark placements ---- */
.hero__lockup { display: block; height: 156px; width: auto; margin: 0 auto 26px; filter: drop-shadow(0 0 16px rgba(0,0,0,0.95)) drop-shadow(0 0 6px rgba(0,0,0,0.95)) drop-shadow(0 3px 10px rgba(0,0,0,0.85)); }
.finalcta__mark { display: block; height: 64px; width: auto; margin: 0 auto 22px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5)); }
.siu__watermark {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  height: 78%; max-height: 480px; width: auto; opacity: 0.06; z-index: 0; pointer-events: none;
}
@media (max-width: 540px) {
  /* Shift the cover-crop toward the dog (right side of frame) so his head shows */
  .hero__video { object-position: 72% center; }
  .hero__lockup { height: 108px; margin: 0 auto 18px; }
  .finalcta__mark { height: 52px; }
  .siu__watermark { opacity: 0.05; right: -6%; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); padding-top: clamp(48px, 6vw, 76px); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand--footer .brand__mark { height: 54px; }
.footer__blurb { margin-top: 20px; font-size: 14.5px; color: var(--muted-light); max-width: 42ch; }
.footer__h {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; color: var(--red); margin-bottom: 18px; font-weight: 600;
}
.footer__col a, .footer__contact { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #cdd2da; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__contact .ico-phone, .footer__contact .ico-mail, .footer__contact .ico-globe, .footer__contact .ico-linkedin { color: var(--red); font-size: 16px; }
.footer__creds { font-size: 14px; color: var(--muted-light); line-height: 1.8; }
.footer__bar { border-top: 1px solid var(--line-dark); padding: 22px var(--gutter); text-align: center; }
.footer__bar p {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12.5px; color: rgba(250,250,250,0.45); max-width: var(--maxw); margin-inline: auto;
}

/* =========================================================================
   REVEAL (scroll) + REDUCED MOTION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* staggered cards */
.card-grid .reveal:nth-child(2), .siu__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3), .siu__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4), .siu__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__content > * { opacity: 1; transform: none; }
  .hero__scroll-line { display: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .siu__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions .btn--red, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .k9__inner { grid-template-columns: 1fr; gap: 36px; }
  .k9__media { order: -1; min-height: 240px; }
}
@media (max-width: 620px) {
  :root { --nav-h: 70px; }
  .brand__name { font-size: 16px; }
  .brand__logo { height: 44px; }
  .brand--footer .brand__logo { height: 56px; }
  .brand__mark { height: 38px; }
  .card-grid, .siu__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .trust__list { justify-content: flex-start; gap: 14px 20px; }
  .trust__item { font-size: 13px; }
  .trust__badge { width: 34px; height: 34px; }
}

/* =========================================================================
   UI/UX PASS — additions (#5–#14)
   ========================================================================= */

/* #5 — distinct NAFI-CFEI icon (certified report, not a 2nd shield) */
.ico-cert { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/%3E%3Cpath d="M14 2v6h6"/%3E%3Cpath d="m9 15 2 2 4-4"/%3E%3C/svg%3E'); }

/* #14 — skip-to-content link */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* #8 — hero micro-reassurance line */
.hero__meta {
  margin-top: 20px; font-family: var(--cond); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 13px; color: #ece8e4; font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  animation: heroIn 0.9s var(--ease) both; animation-delay: 0.78s;
}

/* #10 — service card affordance: arrow-only circle (no repeated label) */
.svc-card__more {
  margin-top: 22px; width: 38px; height: 38px; border-radius: 50%; padding: 0; gap: 0;
  border: 1.5px solid rgba(194,35,31,0.35); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.svc-card__more .arrow { transition: transform 0.25s var(--ease); }
.svc-card:hover .svc-card__more { background: var(--red); color: #fff; border-color: var(--red); }
.svc-card:hover .svc-card__more .arrow { transform: translateX(2px); }

/* #6/#7 — diagonal carbon-fiber corner accent (business-card top-right stripe motif) */
.siu::after, .finalcta::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 0; pointer-events: none;
  width: clamp(190px, 26vw, 340px); height: clamp(96px, 13vw, 160px);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, transparent 41%, var(--red) 47%, var(--red-deep) 53%, transparent 59%);
  -webkit-mask: linear-gradient(225deg, #000, transparent 74%);
          mask: linear-gradient(225deg, #000, transparent 74%);
}
.finalcta { border-top: 1px solid var(--line-dark); }

/* #12 — current-page nav highlight */
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { width: 100%; }
.mobile-menu a.is-active { color: var(--red); }

/* #11 — mobile sticky contact bar */
.callbar { display: none; }
.callbar__btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
  font-size: 15px; padding: 13px 10px; border-radius: 4px; min-height: 48px;
  text-align: center; transition: transform 0.15s var(--ease);
}
/* Icon flows inline with the label — pinning it left made it collide with
   wrapped two-line labels in the narrow half-width columns */
.callbar__btn > span[aria-hidden="true"] { flex: none; }
.callbar__btn--call { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.callbar__btn--vendor { background: rgba(255,255,255,0.06); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.callbar__btn:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 8, 15, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line-dark);
    transition: transform 0.3s var(--ease), visibility 0s;
  }
  /* Slid out of view while the hero's own CTAs are on screen (js/main.js) —
     the bar duplicates them and was overlapping the in-content buttons.
     visibility flips after the slide-out so the off-screen links leave the
     tab order and accessibility tree; it flips back instantly on reveal. */
  .callbar--hidden {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  /* Page clearance only where a callbar exists — thank-you.html has none */
  body:has(.callbar) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* =========================================================================
   PREMIUM PASS — material, light, motion (no copy changes)
   ========================================================================= */

/* --- Global atmosphere: fine film grain so dark surfaces read as material, not flat digital black --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: soft-light;
}

/* --- Micro-details --- */
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: #2a3445 #05080F; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #05080F; }
::-webkit-scrollbar-thumb { background: #1b2433; border-radius: 8px; border: 3px solid #05080F; }
::-webkit-scrollbar-thumb:hover { background: #2c3a52; }

/* --- Label craft: leading red tick on left-aligned eyebrows --- */
.eyebrow:not(.eyebrow--center) { display: inline-flex; align-items: center; gap: 13px; }
.eyebrow:not(.eyebrow--center)::before {
  content: ""; width: 26px; height: 2px; background: var(--red); flex: none;
  box-shadow: 0 0 12px rgba(194,35,31,0.5);
}

/* --- More confident spacing --- */
.services, .siu, .k9, .finalcta { padding-block: clamp(76px, 10vw, 144px); }
.section-head { margin-bottom: 56px; }
.siu__grid { margin-top: 60px; }

/* --- Atmosphere / light direction on dark sections --- */
.k9 {
  background-image:
    radial-gradient(90% 70% at 18% 0%, rgba(255,255,255,0.035), transparent 55%),
    radial-gradient(70% 90% at 85% 30%, rgba(194,35,31,0.10), transparent 60%);
}
.finalcta {
  background-image:
    radial-gradient(60% 60% at 50% -10%, rgba(255,255,255,0.04), transparent 55%);
}
.footer { background-image: radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,0.022), transparent 55%); }

/* --- Surface materiality: lit-from-above cards --- */
/* light cards */
.svc-card {
  background: linear-gradient(180deg, #FFFFFF, #FCFBFA);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-card);
}
/* dark cards */
.siu-card {
  background: linear-gradient(180deg, #0E1A2B, #0A1320);
  border-color: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 44px -30px rgba(0,0,0,0.9);
}
.k9__stats li {
  background: linear-gradient(180deg, #0E1A2B, #0A1320);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 30px -24px rgba(0,0,0,0.85);
}

/* --- Button surface: subtle vertical sheen + crisper press --- */
.btn--red { background: linear-gradient(180deg, #D02A23, var(--red)); }
.btn--red:hover { background: linear-gradient(180deg, #E84438, var(--red-bright)); }

/* --- Motion: blur-in reveals with refined sequencing --- */
.reveal {
  opacity: 0; transform: translateY(30px); filter: blur(7px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* hero red underline draws in after the headline lands */
.hero__title .accent-word::after {
  transform-origin: left center; animation: drawline 0.7s var(--ease) both; animation-delay: 1.05s;
}
@keyframes drawline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .hero__title .accent-word::after { animation: none; }
}

/* =========================================================================
   SUB-PAGES — shared scaffolding (services, contact, credentials, k9, territory)
   ========================================================================= */

/* Page header band */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(46px, 7vw, 86px));
  padding-bottom: clamp(46px, 7vw, 86px);
  background: var(--navy);
  background-image:
    radial-gradient(80% 80% at 12% 0%, rgba(255,255,255,0.04), transparent 55%),
    radial-gradient(70% 90% at 92% 20%, rgba(194,35,31,0.12), transparent 60%);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 0; pointer-events: none;
  width: clamp(190px, 26vw, 340px); height: clamp(96px, 13vw, 160px);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, transparent 41%, var(--red) 47%, var(--red-deep) 53%, transparent 59%);
  -webkit-mask: linear-gradient(225deg, #000, transparent 74%);
          mask: linear-gradient(225deg, #000, transparent 74%);
}
.page-hero .container { position: relative; z-index: 1; }
/* Flame+dog watermark filling the empty right side of text-only page heroes */
.page-hero__watermark {
  position: absolute; top: 50%; left: 77%; transform: translate(-50%, -50%);
  height: clamp(240px, 34vw, 420px); width: auto; z-index: 0; opacity: 0.18; pointer-events: none;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
}
@media (max-width: 820px) { .page-hero__watermark { opacity: 0.1; left: 84%; } }
@media (max-width: 560px) { .page-hero__watermark { display: none; } }

/* Fee structure section — text left, framed image right */
.fee-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.fee-layout__media { display: flex; justify-content: flex-end; }
.fee-layout__media .photo-card { max-width: 400px; width: 100%; }
.fee-layout__media .photo-card::after { content: none; } /* no red corner accent on this image */
@media (max-width: 820px) {
  .fee-layout { grid-template-columns: 1fr; }
  .fee-layout__media { justify-content: flex-start; margin-top: 6px; }
  .fee-layout__media .photo-card { max-width: 340px; }
}

/* Coverage section — text left, California map centered in the right white space */
.geo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.geo-layout__map { display: flex; justify-content: center; }
.geo-map { position: relative; width: 100%; max-width: 600px; }
.geo-map img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 32px rgba(20,30,60,0.18)); }
/* Oakdale, CA marker — red star, east of the SF Bay inlet */
.geo-map__star {
  position: absolute; left: 34%; top: 46.5%; transform: translate(-50%, -50%);
  color: var(--red); font-size: clamp(22px, 3.6vw, 34px); line-height: 1;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45);
}
@media (max-width: 820px) {
  .geo-layout { grid-template-columns: 1fr; gap: 8px; }
  .geo-layout__map { justify-content: center; margin-top: 0; }
  .geo-map { max-width: 280px; }
  /* Tighten the gap between the paragraph and the map (default section-head is 56px) */
  .geo-layout .section-head { margin-bottom: 16px; }
  /* Drop the paragraph a line below the red rule */
  .geo-layout .rule { margin-bottom: 18px; }
  /* Give the text proper breathing room from the top; trim the bottom slack */
  .section--tight { padding-block: 44px 32px; }
}

/* Tank off-the-clock — text left, framed photo right */
.offduty-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.offduty-layout__media { display: flex; justify-content: flex-end; }
.offduty-layout__media .photo-card { max-width: 380px; width: 100%; }
@media (max-width: 820px) {
  .offduty-layout { grid-template-columns: 1fr; }
  .offduty-layout__media { justify-content: flex-start; margin-top: 8px; }
  .offduty-layout__media .photo-card { max-width: 340px; }
}
.page-hero__crumb {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; color: var(--muted-light); margin-bottom: 18px;
}
.page-hero__crumb a { color: var(--muted-light); }
.page-hero__crumb a:hover { color: #fff; }
.page-hero__crumb span { color: var(--red); }
.page-hero__title { font-size: clamp(38px, 5.4vw, 68px); color: #fff; font-weight: 800; letter-spacing: -0.025em; max-width: 18ch; }
.page-hero__intro { margin-top: 20px; max-width: 60ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted-light); }

/* Generic sections */
.section { position: relative; padding-block: clamp(64px, 9vw, 128px); overflow: hidden; }
.section--tight { padding-block: clamp(10px, 1.25vw, 20px); }
.section--light { background: var(--offwhite); color: var(--ink-text); }
.section--dark { background: var(--ink); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--light .section-sub { color: var(--muted-ink); }

.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 62ch; }
.section--light .lead { color: #34383e; }

/* ---- Service detail blocks ---- */
.svc-blocks { display: grid; gap: 22px; }
.svc-block {
  position: relative; background: linear-gradient(180deg, #FFFFFF, #FCFBFA);
  border: 1px solid var(--line-light); border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, var(--shadow-card);
  padding: clamp(26px, 3vw, 40px);
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 26px; align-items: start;
}
.svc-block__icon {
  grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center;
  background-color: rgba(194,35,31,0.08); border: 1px solid rgba(194,35,31,0.18); border-radius: 10px;
  -webkit-mask-image: none; mask-image: none;
}
.svc-block__icon::before {
  content: ""; width: 30px; height: 30px; background: var(--red);
  -webkit-mask-image: var(--ico); mask-image: var(--ico);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.svc-block__title { font-size: clamp(22px, 2.4vw, 28px); color: var(--ink-text); }
.svc-block__body { color: var(--muted-ink); font-size: 15.5px; grid-column: 2; max-width: 60ch; }
.svc-block__cols { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.svc-mini__label {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px;
  color: var(--red); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.svc-mini__label::before { content: ""; width: 16px; height: 2px; background: var(--red); }
.svc-mini ul { display: grid; gap: 6px; }
.svc-mini li { font-size: 14px; color: #41454b; padding-left: 16px; position: relative; }
.svc-mini li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

/* ---- Fee schedule ---- */
.fee-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.fee-tier {
  background: linear-gradient(180deg, #0E1A2B, #0A1320); border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--red); border-radius: 8px; padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 44px -30px rgba(0,0,0,0.9);
}
.fee-tier__tag { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--muted-light); }
.fee-tier__name { font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; margin-top: 2px; }
.fee-tier__price { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--red-bright); margin: 10px 0 18px; letter-spacing: -0.02em; }
.fee-tier__list { display: grid; gap: 8px; }
.fee-tier__list li { font-size: 14px; color: var(--muted-light); padding-left: 18px; position: relative; }
.fee-tier__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.fee-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fee-table caption {
  text-align: left; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; color: var(--red); font-weight: 600; padding: 22px 0 12px;
}
.fee-table th, .fee-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.fee-table th { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; color: #aeb4be; font-weight: 500; font-size: 13px; }
.fee-table td:first-child { color: #fff; font-weight: 500; }
.fee-table td.rate { color: var(--red-bright); font-family: var(--display); font-weight: 700; white-space: nowrap; }
.fee-table td.note { color: var(--muted-light); font-size: 13.5px; }
.fee-fine { margin-top: 22px; font-size: 13.5px; color: var(--muted-light); }
.billing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 12px; }
.billing-card { background: var(--navy-elev); border: 1px solid var(--line-dark); border-left: 2px solid var(--red); border-radius: 6px; padding: 22px 24px; }
.billing-card h4 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; color: var(--red-bright); margin-bottom: 8px; }
.billing-card p { font-size: 14px; color: var(--muted-light); }

/* ---- Credentials / About ---- */
.bio-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.bio p { color: #34383e; margin-bottom: 16px; max-width: 62ch; }
.bio p strong { color: var(--ink-text); }
.facts { background: linear-gradient(180deg, #FFFFFF, #FBFAF9); border: 1px solid var(--line-light); border-radius: 8px; box-shadow: var(--shadow-card); padding: 28px; position: sticky; top: calc(var(--nav-h) + 16px); }
.facts h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--red); margin-bottom: 16px; }
.facts li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-light); font-size: 14.5px; color: #34383e; }
.facts li:last-child { border-bottom: 0; }
.facts li .ico-check { color: var(--red); font-size: 18px; margin-top: 2px; }

.cred-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cred-group { background: linear-gradient(180deg, #0E1A2B, #0A1320); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 28px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.cred-group h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em; font-size: 14px; color: var(--red-bright); margin-bottom: 16px; }
.cred-list li { font-size: 14.5px; color: var(--muted-light); padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid var(--line-dark); }
.cred-list li:last-child { border-bottom: 0; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.cred-list b { color: #fff; font-weight: 600; }

.timeline { display: grid; gap: 0; }
.timeline__item { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line-dark); }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--ink); }
.timeline__role { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; }
.timeline__meta { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12.5px; color: var(--red-bright); margin: 3px 0 8px; }
.timeline__desc { font-size: 14.5px; color: var(--muted-light); max-width: 60ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; color: #dfe3ea; background: var(--navy-elev); border: 1px solid var(--line-dark); border-radius: 999px; padding: 9px 16px; }

/* ---- Territory ---- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.region { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; color: #dfe3ea; background: var(--navy-elev); border: 1px solid var(--line-dark); border-radius: 6px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.region .ico-pin { color: var(--red); font-size: 17px; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line-light); border-radius: 10px; box-shadow: inset 0 1px 0 #fff, var(--shadow-card); padding: clamp(26px, 3.5vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12.5px; color: #41454b; font-weight: 600; margin-bottom: 7px; }
.form-field .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink-text);
  background: #FBFAF9; border: 1.5px solid #e2e0dc; border-radius: 6px; padding: 12px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(194,35,31,0.14);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted-ink); text-align: center; }
/* Honeypot — visually hidden, kept in the layout so bots still fill it */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Submit error message */
.form-error { margin-top: 14px; font-size: 14px; color: var(--red-bright); text-align: center; }
.form-error a { color: var(--red-bright); text-decoration: underline; }
/* Inline success confirmation (replaces the form after a successful send) */
.form-success {
  margin-top: 4px; padding: clamp(26px, 3.5vw, 40px);
  background: #fff; border: 1px solid var(--line-light); border-left: 4px solid var(--red);
  border-radius: 10px; box-shadow: var(--shadow-card);
}
.form-success h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-text); margin-bottom: 8px; }
.form-success p { font-size: 16px; line-height: 1.6; color: var(--muted-ink); }
.form-success a { color: var(--red); font-weight: 600; white-space: nowrap; }
.contact-side { display: grid; gap: 14px; }
.contact-side__card { background: linear-gradient(180deg, #0E1A2B, #0A1320); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.contact-side__card h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.07em; font-size: 13px; color: var(--red); margin-bottom: 14px; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: #dfe3ea; }
.contact-line .ico-phone, .contact-line .ico-mail, .contact-line .ico-globe, .contact-line .ico-pin { color: var(--red); font-size: 17px; }
.contact-line a:hover { color: #fff; }
.reassure { font-size: 14px; color: var(--muted-light); }

/* check + pin icons */
.ico-check { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 6 9 17l-5-5"/%3E%3C/svg%3E'); }
.ico-pin { --ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/%3E%3Ccircle cx="12" cy="10" r="3"/%3E%3C/svg%3E'); }

/* ---- Sub-page responsive ---- */
@media (max-width: 1080px) {
  .svc-block__cols { grid-template-columns: 1fr; gap: 14px; }
  .cred-groups { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .fee-tiers { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-block__icon { grid-row: auto; }
  .svc-block__body, .svc-block__cols { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .fee-table { display: block; overflow-x: auto; }
}

/* =========================================================================
   PHOTO CARDS — framed portraits (Matt / Tank), used in page heroes + K9
   ========================================================================= */
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.page-hero--media::after { content: none; } /* avoid doubling the corner accent with the card's own */
.page-hero__media { display: flex; justify-content: center; }

.photo-card {
  position: relative; width: 100%; max-width: 380px; margin: 0;
  border-radius: 14px; overflow: hidden; background: var(--navy-elev);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 34px 70px -30px rgba(0,0,0,0.95);
}
.photo-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.photo-card::after { /* brand red diagonal corner accent, top-right */
  content: ""; position: absolute; top: 0; right: 0; z-index: 2; pointer-events: none;
  width: 104px; height: 60px;
  background: linear-gradient(135deg, transparent 45%, var(--red) 50%, var(--red-deep) 56%, transparent 61%);
  -webkit-mask: linear-gradient(225deg, #000, transparent 78%); mask: linear-gradient(225deg, #000, transparent 78%);
}
.photo-card__tag {
  position: absolute; inset: auto 0 0 0; z-index: 1; margin: 0;
  padding: 34px 18px 16px;
  background: linear-gradient(to top, rgba(3,5,10,0.94), rgba(3,5,10,0.55) 55%, transparent);
}
.photo-card__name { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; line-height: 1.05; }
.photo-card__role { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: #ffb9b4; margin-top: 6px; display: flex; align-items: center; gap: 9px; }
.photo-card__role::before { content: ""; width: 18px; height: 2px; background: var(--red); flex: none; }

/* K9 media now holds a framed photo over the ember glow */
.k9__media .photo-card { max-width: 360px; position: relative; z-index: 1; }

@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { justify-content: flex-start; margin-top: 8px; }
  .page-hero__media .photo-card { max-width: 320px; }
}

/* Face close-ups (Tank) center the crop so the muzzle isn't cut off */
.photo-card--face img { object-position: center 45%; }
