/* ============================================================
   A. D. Stokes, LLC — Forensic Consulting & Accident Reconstruction
   Design system: black / safety-yellow / blue / grey,
   corporate forensic-firm layout, Oswald display + Lato body.
   ============================================================ */

:root {
  --yellow: #ffcc00;
  --yellow-dark: #d9ad00;
  --black: #08090b;
  --bg: #0d0e10;
  --charcoal: #16181c;
  --surface: #1c1e23;
  --surface-2: #24272d;
  --blue: #14679c;
  --blue-dark: #0d4d77;
  --accent: #57a8e6;
  --ink: #e9ebee;
  --gray: #9ba2ad;
  --light: #15171b;
  --border: #2c2f35;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.55);
  --container: 1180px;
  --font: 'Lato', Arial, Helvetica, sans-serif;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; color-scheme: dark; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: 2.7rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul { padding-left: 1.3em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--gold {
  background: var(--yellow);
  color: var(--black);
}
.btn--gold:hover {
  background: var(--yellow-dark);
  color: var(--black);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--navy {
  background: var(--blue);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* ---------- Top utility bar ---------- */

.topbar {
  background: var(--black);
  color: #b9bec7;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar__creds {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow);
}

.topbar__contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar a { color: var(--white); font-weight: 700; }
.topbar a:hover { color: var(--yellow); }

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled { box-shadow: var(--shadow-lg); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand img { width: 210px; height: auto; background: #fff; padding: 6px 9px; border-radius: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 10px 13px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); border-bottom-color: var(--yellow); }

.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--yellow);
}

.nav .btn { margin-left: 12px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--black) center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 11, 13, 0.94) 0%, rgba(13, 14, 16, 0.78) 45%, rgba(13, 14, 16, 0.38) 100%);
}

.hero .container {
  position: relative;
  padding-top: 116px;
  padding-bottom: 116px;
}

.hero__kicker {
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: 18px;
}

.hero p {
  max-width: 580px;
  font-size: 1.12rem;
  color: #d5d9e0;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sub-hero action bar (safety-yellow strip) ---------- */

.subhero {
  background: var(--yellow);
}

.subhero .container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.subhero a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
}

.subhero a:hover { background: var(--yellow-dark); color: var(--black); }

.subhero a + a { border-left: 2px solid rgba(13, 14, 16, 0.18); }

.subhero svg { width: 20px; height: 20px; flex: none; }

/* ---------- Interior page banner ---------- */

.page-banner {
  position: relative;
  background: var(--black) center / cover no-repeat;
  color: var(--white);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 11, 13, 0.94) 0%, rgba(13, 14, 16, 0.68) 100%);
}

.page-banner .container {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-banner h1 { color: var(--white); margin-bottom: 6px; font-size: 2.2rem; }

.page-banner p {
  color: #cfd4dc;
  margin: 0;
  max-width: 660px;
  font-size: 1.05rem;
}

/* ---------- Stats strip ---------- */

.stats { background: var(--black); color: var(--white); }

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 46px;
  padding-bottom: 46px;
  text-align: center;
}

.stat__value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1.1;
  text-transform: uppercase;
}

.stat__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b9bec7;
  margin-top: 6px;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section--alt { background: var(--light); }
.section--tight { padding: 60px 0; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .kicker {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-head h2 { margin-bottom: 14px; }

.section-head .rule {
  width: 64px;
  height: 4px;
  background: var(--yellow);
  border: 0;
  margin: 0;
}
.section-head--center .rule { margin: 0 auto; }

.section-head p { color: var(--gray); margin: 16px 0 0; }

/* ---------- Split (text + image) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__media img,
.split__media video {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  display: block;
}

.split__media figure { margin: 0; }

.split__media figcaption {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-top: 10px;
}

.split__media--tall img { max-height: 420px; object-position: bottom; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  font-weight: 700;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Featured work grid ---------- */

.featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.featured-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.featured-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.featured-card h3 {
  font-size: 1.02rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.featured-card p {
  color: var(--gray);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 14px;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg { width: 30px; height: 30px; }

.card h3 { margin-bottom: 10px; color: var(--accent); }

.card p { color: var(--gray); font-size: 0.97rem; flex: 1; }

.card__link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.card__link:hover { color: var(--yellow); }

/* ---------- Credential badges strip ---------- */

.badges { background: var(--light); padding: 48px 0; }

.badges .container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 26px;
  text-align: center;
  min-width: 170px;
}

.badge strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 1.05rem;
}

.badge span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ---------- Feature band (3D animations) ---------- */

.feature-band {
  background: linear-gradient(115deg, var(--black), var(--charcoal) 60%, #22242a);
  color: var(--white);
  padding: 84px 0;
}

.feature-band .kicker {
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.feature-band h2 { color: var(--white); }

.feature-band p { color: #c8cdd5; }

.feature-band .split { align-items: center; }

.feature-band .checklist li { color: var(--white); }
.feature-band .checklist li::before { background: var(--yellow); }

/* ---------- Gallery ---------- */

.gallery-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.gallery-featured a,
.doc-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-featured img,
.doc-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.gallery-featured a:hover img,
.doc-grid a:hover img { transform: scale(1.04); }

.gallery-featured img { aspect-ratio: 2 / 1; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.doc-grid img { aspect-ratio: 4 / 3; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 32px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(960px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #b9bec7;
  font-size: 0.9rem;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
}
.lightbox__close:hover { color: var(--yellow); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(115deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }

.cta-band p {
  color: #d8e4ee;
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}

.cta-band__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact band (dark, with map) ---------- */

.contact-band {
  background: var(--charcoal);
  color: #c8cdd5;
  padding: 76px 0;
}

.contact-band .split { align-items: start; gap: 48px; }

.contact-band h2 { color: var(--white); }

.contact-band .kicker {
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.contact-band a { color: var(--white); font-weight: 700; }
.contact-band a:hover { color: var(--yellow); }

.contact-band .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-band .contact-line:last-of-type { border-bottom: 0; margin-bottom: 20px; }

.contact-band .contact-line svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
  flex: none;
}

.contact-band .map-frame { height: 340px; }

/* ---------- Service detail sections ---------- */

.service-detail { padding: 64px 0; border-bottom: 1px solid var(--border); }
.service-detail:last-of-type { border-bottom: 0; }

.service-detail .split { gap: 48px; }

.service-detail h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
}

.service-detail h2 .card__icon {
  width: 48px;
  height: 48px;
  margin: 0;
  flex: none;
}

.service-detail h2 .card__icon svg { width: 24px; height: 24px; }

.service-detail ul { color: var(--gray); }
.service-detail ul li { margin-bottom: 6px; }

/* ---------- Qualifications (CV-style) ---------- */

.qual-section { margin-bottom: 48px; }

.qual-section h2 {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  position: relative;
}

.qual-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 88px;
  height: 4px;
  background: var(--yellow);
}

.qual-section ul { color: var(--gray); }
.qual-section ul li { margin-bottom: 7px; }

.qual-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.cred-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--yellow);
}

.cred-card h3 {
  color: var(--yellow);
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin-bottom: 16px;
}

.cred-card ul { list-style: none; padding: 0; margin: 0 0 22px; }

.cred-card li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.cred-card li:last-child { border-bottom: 0; }

.cred-card .btn { width: 100%; text-align: center; }

.timeline { list-style: none; padding: 0; margin: 0; }

.timeline li {
  position: relative;
  padding: 0 0 18px 26px;
  border-left: 2px solid var(--border);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--bg);
}

.timeline .role { font-weight: 700; color: var(--ink); }
.timeline .org { color: var(--gray); }
.timeline .years {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-card p { color: var(--gray); }

.contact-card .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.contact-card .contact-line:last-of-type { border-bottom: 0; }

.contact-card .contact-line svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #a7adb7;
  font-size: 0.95rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer h3 {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 0.09em;
  margin-bottom: 18px;
}

.site-footer a { color: #d0d4db; }
.site-footer a:hover { color: var(--yellow); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }

.footer-areas ul {
  columns: 2;
  column-gap: 24px;
}
.footer-areas li { margin-bottom: 7px; font-size: 0.9rem; }

.footer-brand {
  font-family: var(--display);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.footer-creds {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.82rem;
}

/* ---------- News / Insights ---------- */

.news-lead {
  background: var(--light);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 44px;
  color: var(--gray);
}
.news-lead strong { color: var(--ink); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 2px;
}

.tag--recon { background: var(--blue); color: var(--white); }
.tag--eng { background: var(--gray); color: var(--black); }
.tag--anim { background: var(--yellow); color: var(--black); }

.news-card__source {
  font-size: 0.76rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.25;
}

.news-card p { color: var(--gray); font-size: 0.93rem; flex: 1; margin-bottom: 16px; }

.news-card__link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  align-self: flex-start;
}
.news-card__link:hover { color: var(--yellow); }

/* ---------- Responsive ---------- */

/* Narrow desktop: tighten nav spacing */
@media (max-width: 1349px) {
  .nav a { padding: 10px 9px; font-size: 0.9rem; }

  .nav .btn { margin-left: 8px; padding: 11px 16px; font-size: 0.88rem; }
}

/* Below this the full menu can't fit — switch to the hamburger */
@media (max-width: 1199px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav a { border-bottom: 1px solid var(--border); padding: 14px 4px; font-size: 0.95rem; white-space: normal; }

  .nav .btn { margin: 16px 0 0; text-align: center; }

  .nav-toggle { display: block; }
}

@media (max-width: 992px) {
  .cards { grid-template-columns: repeat(2, 1fr); }

  .featured { grid-template-columns: repeat(2, 1fr); }

  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .split,
  .qual-intro,
  .contact-grid { grid-template-columns: 1fr; }

  .split__media { order: -1; }

  .doc-grid { grid-template-columns: repeat(4, 1fr); }

  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero .container { padding-top: 72px; padding-bottom: 72px; }

  .section { padding: 60px 0; }

  .subhero a { padding: 13px 16px; font-size: 0.88rem; }

  .stats .container { grid-template-columns: repeat(2, 1fr); }

  .cards { grid-template-columns: 1fr; }

  .featured { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }

  .checklist { grid-template-columns: 1fr; }

  .gallery-featured { grid-template-columns: 1fr; }

  .doc-grid { grid-template-columns: repeat(3, 1fr); }

  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }

  .topbar__creds { display: none; }
}
