/* ==========================================================================
   Madison Investigative Services — site stylesheet
   Dark, sleek "field investigator" theme.
   ========================================================================== */

:root {
  --bg:          #0a1120;   /* deepest page background */
  --navy-deep:   #0d1b33;   /* accent navy bands: hero, CTA, header, footer */
  --navy:        #142a4d;   /* mid navy — gradient tiles / badge fill */
  --navy-mid:    #1f4171;   /* lighter navy — gradient endpoint / hover fill */
  --off-white:   #132644;   /* elevated panel surface (cards, accordions, chips) */
  --surface-hover:#1b3358;  /* lighter surface for hover states */
  --blue-accent: #5b93d6;   /* links, icons, eyebrows — bright enough for dark bg */
  --blue-solid:  #2f5d9c;   /* solid CTA button fills */
  --silver:      #9fb0c6;
  --silver-light:#eef2f6;
  --white:       #ffffff;
  --ink:         #e7ecf2;   /* primary body text (light, on dark bg) */
  --ink-soft:    #a7b3c5;   /* secondary/muted text */
  --border:      rgba(255,255,255,0.14);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.5);
  --glow: 0 0 0 1px rgba(91,147,214,0.28), 0 10px 28px rgba(91,147,214,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--silver-light);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
  position: relative;
}
.section--tight { padding: 48px 0; }
.section--navy {
  background: var(--navy-deep);
  color: var(--silver-light);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--silver); }
.section--off { background: var(--off-white); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; stroke: currentColor; }
.btn--primary {
  background: var(--blue-solid);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-mid); box-shadow: var(--glow); }
.btn--outline {
  background: transparent;
  border-color: var(--silver);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn--outline-dark {
  background: transparent;
  border-color: var(--silver);
  color: var(--silver-light);
}
.btn--outline-dark:hover { background: var(--blue-solid); color: var(--white); border-color: var(--blue-solid); box-shadow: var(--glow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}
.brand:hover { text-decoration: none; }

/* Clean "MIS" wordmark mark (replaces the earlier shield/crest + company
   name lockup), used at header size (.brand-wordmark) and a larger footer
   size (.brand-wordmark--lg). Pure hardcoded hex — this is a fixed brand
   asset, not a theme-following element. */
.brand-wordmark { width: 132px; height: 66px; flex-shrink: 0; display: block; }
.brand-wordmark--lg { width: 190px; height: 95px; }
.brand-wordmark-m, .brand-wordmark-s {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 140px;
  fill: #0a1120;
  stroke: #eef2f6;
  stroke-width: 3.4;
  paint-order: stroke fill;
}
.brand-wordmark-i {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 140px;
  fill: #eef2f6;
  stroke: #5b93d6;
  stroke-width: 3.4;
  paint-order: stroke fill;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--silver-light);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--blue-accent);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
  }
  .main-nav .container { padding: 0 24px; }
  .main-nav li { border-top: 1px solid rgba(255,255,255,0.06); }
  .main-nav a { display: block; padding: 14px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  opacity: 0.62;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,17,32,0.92) 20%, rgba(10,17,32,0.62) 55%, rgba(10,17,32,0.38) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143,168,204,0.05) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(143,168,204,0.05) 1px, transparent 1px) 0 0 / 40px 100%;
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 88px;
  max-width: 720px;
}
.hero-inner.hero-inner--wide { max-width: 900px; }
.hero h1 { color: var(--white); }
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--silver-light);
  margin-bottom: 1.2em;
}
.hero p.lead { color: var(--silver-light); font-size: 1.08rem; max-width: 60ch; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

/* Corner brackets — a restrained "targeting reticle" accent on the hero,
   reinforcing the tactical/PI tone without being cartoonish. */
.hero-brackets span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(143,168,204,0.4);
  opacity: 0;
  animation: bracket-fade-in 1.2s ease forwards 0.3s;
}
.hero-brackets .tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.hero-brackets .br { bottom: 24px; right: 24px; border-left: none; border-top: none; }
@keyframes bracket-fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-brackets span { animation: none; opacity: 1; }
}

.page-hero {
  padding: 56px 0 44px;
}
.page-hero .eyebrow { color: var(--silver); }

/* ---------- Credentials strip ---------- */
.cred-strip {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.cred-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}
.cred-strip img {
  max-height: 52px;
  width: auto;
  filter: grayscale(15%);
  opacity: 0.92;
}
.cred-strip .cred-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Icons ---------- */
.icon {
  width: 26px;
  height: 26px;
  stroke: var(--blue-accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--light { stroke: var(--silver-light); }

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cred-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--silver-light);
  letter-spacing: 0.02em;
}

.icon-row {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.icon-row-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.icon-row-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.icon-row-item:hover .icon-wrap { box-shadow: var(--glow); transform: translateY(-2px); }
.icon-row-item h3 { margin-bottom: 0.25em; font-size: 1.15rem; }
.icon-row-item p { margin-bottom: 0; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--glow), var(--shadow-md); transform: translateY(-3px); }
.card img { height: 180px; width: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { flex: 1; }
.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: auto;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.align-left { margin: 0 0 44px; text-align: left; }

/* ---------- Animated stat counters ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 0.3em;
}
.stat-item .stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver);
}

/* ---------- Team ---------- */
.team-member {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.team-member:last-child { border-bottom: none; }
.team-member img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.team-member .role {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6em;
}
.team-member ul { color: var(--ink-soft); padding-left: 1.2em; }
.team-member ul li { margin-bottom: 0.35em; }
@media (max-width: 700px) {
  .team-member { grid-template-columns: 1fr; }
  .team-member img { max-width: 220px; }
}

/* ---------- Media / projects ---------- */
.media-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.media-item:last-child { border-bottom: none; }
.logo-box {
  display: flex; align-items: center; justify-content: center;
}
.media-item .logo-box {
  height: 140px;
}
.logo-box img { max-height: 92px; width: auto; max-width: 100%; }
.logo-box--chip {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 100%;
}
.project-inline-img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 1em;
  box-shadow: 0 8px 24px rgba(11,26,51,0.18);
}
.logo-box--icon {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.logo-box--icon .icon { width: 44px; height: 44px; stroke: var(--silver-light); }
.media-item .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.3em;
}
.project-more {
  margin-top: 1.1em;
  margin-bottom: 0 !important;
  max-width: 680px;
}
@media (max-width: 640px) {
  .media-item { grid-template-columns: 1fr; }
  .media-item .logo-box, .logo-box--icon { width: 200px; margin: 0 auto; }
}

/* Fuller magazine-style project detail (photo + full write-up, with an
   optional side panel showing poster art / trailer info) used for the
   "movie & show" project entries. */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  max-width: 760px;
}
.project-detail-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1em;
}
.project-detail-side {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.project-detail-poster {
  display: block;
  width: 100%;
  height: auto;
}
.project-detail-side-body { padding: 16px; }
@media (max-width: 640px) {
  .project-detail { grid-template-columns: 1fr; }
  .project-detail-side { max-width: 260px; }
}

/* Floated version of the project photo, used when there's no side poster
   panel &mdash; lets the write-up text wrap around the image instead of
   sitting stacked underneath it. */
.project-detail-photo--float {
  float: left;
  width: 240px;
  max-width: 42%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 24px 14px 0;
  box-shadow: 0 8px 24px rgba(11,26,51,0.18);
}
@media (max-width: 520px) {
  .project-detail-photo--float { float: none; width: 100%; max-width: 260px; margin: 0 0 1em; }
}

/* Same floated-photo, text-wraps-around treatment, sized up for a page
   like Find My Hero where the photo anchors the whole intro section
   rather than a smaller in-article write-up. */
.article-photo--float {
  float: left;
  width: 360px;
  max-width: 46%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 32px 18px 0;
  box-shadow: 0 8px 24px rgba(11,26,51,0.18);
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .article-photo--float { float: none; width: 100%; max-width: 320px; margin: 0 0 1.2em; }
}

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.5em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-list .icon { margin-top: 2px; }
.info-list .label {
  display: block;
  font-weight: 700;
  color: var(--silver-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--off-white);
  color: var(--ink);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-soft); opacity: 0.85; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(91,147,214,0.22);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.form-hint { font-size: 0.82rem; color: var(--ink-soft); margin: -2px 0 8px; }

/* Checkbox / radio "pill" groups, and the fieldset/legend they sit in —
   used by the long Find My Hero request form (and reusable anywhere else
   a group of checkboxes/radios is needed). */
fieldset.form-field { border: none; padding: 0; margin: 0 0 22px; min-width: 0; }
fieldset.form-field legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--silver-light);
  margin-bottom: 8px;
  padding: 0;
  width: 100%;
}
.option-group { display: flex; flex-wrap: wrap; gap: 10px; }
.option-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--off-white);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.option-group input[type="checkbox"],
.option-group input[type="radio"] {
  accent-color: var(--blue-accent);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Acknowledgment / authorization checkboxes — full-width, label text wraps
   beside the box rather than in a pill. */
.form-field--ack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-field--ack input {
  margin-top: 3px;
  accent-color: var(--blue-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Numbered section headers inside a long multi-part form. */
.form-section-title {
  margin: 2.2em 0 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  font-size: 1.2rem;
}
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.form-callout {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: -6px 0 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-callout a { font-weight: 600; }

/* Prominent contact-page callouts (payment / media inquiry) — styled as
   cards rather than plain muted text so they don't get overlooked. */
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.contact-cta {
  flex: 1 1 240px;
  display: block;
  padding: 16px 20px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}
.contact-cta:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-cta strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.contact-cta span {
  display: inline-block;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--silver);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a { color: var(--silver); }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--silver);
}

/* ---------- Article ---------- */
.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--silver);
  margin-top: 0.6em;
}
.article-body {
  max-width: 700px;
  margin: 0 auto;
}
.article-body > img { border: 1px solid var(--border); }
.article-hero-icon {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.article-hero-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 24px 100%;
  opacity: 0.5;
}
.article-hero-icon svg { position: relative; width: 72px; height: 72px; stroke: var(--silver-light); stroke-width: 1.2; }
.article-hero-badge {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}
.article-hero-badge img { height: 150px; width: 150px; object-fit: contain; }
.article-body h2 {
  margin-top: 1.8em;
  font-size: 1.5rem;
}
.article-body h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
  color: var(--blue-accent);
}
.article-body p { color: var(--ink-soft); }
.article-body ul, .article-body ol {
  color: var(--ink-soft);
  padding-left: 1.3em;
  margin-bottom: 1em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body li strong { color: var(--silver-light); }

.article-figure {
  margin: 1.4em 0;
}
.article-inline-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(11,26,51,0.18);
}
.article-figure figcaption {
  margin-top: 0.6em;
  font-size: 0.82rem;
  color: var(--silver);
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.author-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 2.5em;
}
.author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.3em;
}
.author-box p { margin-bottom: 0; font-size: 0.95rem; }
@media (max-width: 500px) {
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box img { margin: 0 auto; }
}

/* ---------- Accordion (collapsible article sections) ---------- */
.accordion { margin: 1.6em 0; }
.accordion-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--silver-light);
  font-size: 1.08rem;
  position: relative;
  transition: background 0.15s ease;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { background: var(--surface-hover); }
.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue-accent);
  line-height: 1;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item[open] summary { border-bottom: 1px solid var(--border); }
.accordion-body { padding: 22px 24px 6px; display: flow-root; }
.accordion-body h3:first-child { margin-top: 0; }

/* ---------- Misc ---------- */
.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.2em;
}
.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 1.4em;
}
.footer-badges img {
  height: 62px;
  width: 62px;
  object-fit: contain;
}
.credential-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.credential-row img { height: 74px; width: 74px; object-fit: contain; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--silver-light);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ---------- Services: unified icon + write-up cards ---------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 30px;
  align-items: start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--glow), var(--shadow-md); transform: translateY(-3px); }
.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.service-card-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 100% 18px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 18px 100%;
  opacity: 0.5;
}
.service-card-icon svg {
  position: relative;
  width: 40%;
  height: 40%;
  stroke: var(--silver-light);
  stroke-width: 1.3;
}
.service-card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.service-card-content h2 { margin-top: 0; font-size: 1.4rem; }
.service-card-extra p { margin-bottom: 1em; }
.service-card-extra p:last-of-type { margin-bottom: 1.4em; }
@media (max-width: 700px) {
  .service-card { grid-template-columns: 1fr; padding: 26px; }
  .service-card-icon, .service-card-photo { max-width: 110px; margin-bottom: 6px; }
}

.quote-block {
  border-left: 3px solid var(--blue-accent);
  padding-left: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--silver-light);
  margin: 1.6em 0;
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .quote-mark {
  width: 34px;
  height: 34px;
  stroke: none;
  fill: var(--blue-accent);
  opacity: 0.55;
  margin: 0 auto 0.6em;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--silver-light);
  margin: 0 0 1.2em;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.testimonial .testimonial-role {
  display: block;
  font-size: 0.85rem;
  color: var(--silver);
  margin-top: 0.2em;
}

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial-track {
  flex: 1;
  min-width: 0;
}
.testimonial-slide { animation: testimonialFadeIn 0.35s ease; }
@keyframes testimonialFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.carousel-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--silver-light);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.carousel-arrow .icon { width: 20px; height: 20px; stroke: currentColor; }
.carousel-arrow:hover {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: #fff;
  transform: translateY(-1px);
}
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 1.6em;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dot:hover { background: var(--silver); }
.carousel-dot.is-active {
  background: var(--blue-accent);
  transform: scale(1.25);
}
@media (max-width: 640px) {
  .testimonial-carousel { gap: 8px; }
  .carousel-arrow { width: 34px; height: 34px; }
  .carousel-arrow .icon { width: 16px; height: 16px; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Hero scan accent (subtle investigative "sweep") ---------- */
.hero-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  top: -160px;
  background: linear-gradient(180deg, rgba(91,147,214,0) 0%, rgba(91,147,214,0.22) 50%, rgba(91,147,214,0) 100%);
  animation: hero-scan-sweep 3s linear infinite;
}
@keyframes hero-scan-sweep {
  0% { top: -160px; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan-line { animation: none; display: none; }
}

/* Roaming radar blip — a small pulsing dot that drifts subtly, reinforcing
   the "actively investigating" feel without being distracting. */
.hero-blip {
  position: absolute;
  top: 30%;
  right: 14%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(91,147,214,0.8);
  box-shadow: 0 0 0 0 rgba(91,147,214,0.6);
  animation: blip-pulse 3.2s ease-out infinite;
}
@keyframes blip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,147,214,0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(91,147,214,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,147,214,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blip { animation: none; }
}

/* ---------- Scroll reveal (fade/slide up as content enters view) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal-fade.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
}
/* ---------- Social links (About page) ---------- */
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 0.2em;
}
.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-link:hover { box-shadow: var(--glow); transform: translateY(-2px); background: var(--surface-hover); }
.social-link .icon { width: 20px; height: 20px; stroke: var(--silver-light); }

/* ---------- Service Areas map ---------- */
.two-col--map { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
@media (max-width: 800px) { .two-col--map { grid-template-columns: 1fr; } }
.ct-map-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.ct-map { display: block; width: 100%; height: auto; }
.ct-outline-stroke { stroke: var(--blue-accent); stroke-width: 1.6; stroke-linejoin: round; }
.ct-pin-dot {
  fill: var(--blue-accent);
  animation: ct-pin-fade 3.4s ease-in-out infinite;
}
.ct-pin-ping {
  fill: none;
  stroke: rgba(91,147,214,0.55);
  stroke-width: 1.5;
  animation: ct-pin-ping 3.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ct-pin-fade {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
@keyframes ct-pin-ping {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(3.2); opacity: 0; }
}
.ct-pin-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--silver-light);
  letter-spacing: 0.02em;
}
.ct-pin--hq .ct-pin-star { fill: var(--white); stroke: var(--blue-solid); stroke-width: 1; }
.ct-pin--hq .ct-pin-ping { stroke: rgba(255,255,255,0.6); }
.ct-pin-label--hq { fill: var(--white); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .ct-pin-dot, .ct-pin-ping { animation: none; }
  .ct-pin-dot { opacity: 1; }
  .ct-pin-ping { display: none; }
}
.town-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 0.6em;
}
.town-list ul { list-style: none; padding: 0; margin: 0; }
.town-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 500px) {
  .town-list { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; color: #000; }
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; }
  .hero-scan, .hero-blip, .hero-brackets { display: none; }
}
