:root {
  --tex: url('/images/bg-texture.png');
  color-scheme: dark;
}
/* DroneForensics.com | A DroneTrace Resource
   Brand tokens from dronetrace.com: headings Michroma (uppercase), body/nav Oxanium,
   red #d91f1f, black #161616, off-white #f2f2f2 */

:root {
  --black: #161616;
  --ink: #0e0e0e;
  --panel: #1e1e20;
  --panel-2: #272729;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --red: #d91f1f;
  --red-dark: #ae0000;
  --red-text: #ff5a5a; /* red for small text on dark: passes AA */
  --white: #fff;
  --off: #f2f2f2;
  --muted: #a8a8ac;
  --f-head: 'Michroma', 'Oxanium', system-ui, sans-serif;
  --f-body: 'Oxanium', 'Nunito Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
:is(p, td, .prose li) a:not(.card, .textlink, .btn) {
  color: var(--red-text);
  border-bottom: 1px solid rgba(255, 90, 90, 0.4);
}
:is(p, td, .prose li) a:not(.card, .textlink, .btn):hover {
  color: #fff;
  border-bottom-color: #fff;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.skip:focus {
  left: 8px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(1.4rem, 5.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
}
h3 {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.35;
}
h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.hero .eyebrow::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--red);
  flex: none;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--off);
  max-width: 46rem;
}
.muted {
  color: var(--muted);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 22, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img.mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand .name {
  font-family: var(--f-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .name b {
  color: var(--red-text);
  font-weight: 400;
}
.brand .sub {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
}
.nav a.link {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a.link:hover {
  color: var(--red);
}
.nav a.link[aria-current='page'] {
  color: var(--muted);
  border-bottom-color: var(--red);
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: #fff;
  font: 600 0.78rem var(--f-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
@media (max-width: 1180px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px var(--gutter) 22px;
    gap: 4px;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a.link {
    padding: 12px 0;
    width: 100%;
    font-size: 0.95rem;
  }
  .nav .btn {
    margin-top: 10px;
  }
}
@media (max-width: 460px) {
  .brand .sub {
    display: none;
  }
  .brand .name {
    font-size: 0.72rem;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--red);
  color: #fff;
  font: 600 0.82rem var(--f-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--red);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: #fff;
  color: #000;
}
.textlink {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.textlink:hover {
  color: var(--red-text);
  border-color: var(--red-text);
}
.ext::after {
  content: ' ↗';
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 90% at 85% 0%, #2a1010 0%, var(--black) 55%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tex) 0 0 / 420px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-top: clamp(44px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero h1 {
  max-width: 16em;
  margin-bottom: 0.55em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-text);
}
.hero:not(.hero--home) h1 {
  font-size: clamp(1.6rem, 5.8vw, 3.8rem);
  line-height: 1.02;
}
.crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs span[aria-current] {
  color: #fff;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.byline b {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-right: 0.5em;
}

.audience {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}
.audience a {
  background: rgba(22, 22, 22, 0.92);
  padding: 16px 16px 18px;
  display: block;
  transition: background 0.3s;
}
.audience a:hover {
  background: var(--red-dark);
}
.audience small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.audience a:hover small {
  color: #fff;
}
.audience strong {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  display: block;
}
@media (max-width: 980px) {
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience a:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- article layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: 56px;
  padding-bottom: 40px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  font-size: 0.86rem;
}
.toc .toc-title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
  margin: 0 0 14px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  counter-reset: t;
}
.toc li {
  counter-increment: t;
}
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
}
.toc a:hover {
  color: #fff;
}
.toc a.on {
  color: #fff;
  border-left-color: var(--red);
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .toc {
    position: static;
    border: 1px solid var(--line);
    padding: 16px 18px;
    background: var(--panel);
  }
  .toc ol {
    display: none;
    border: 0;
    margin-top: 4px;
  }
  .toc.open ol {
    display: block;
  }
  .toc .toc-title {
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }
  .toc .toc-title::after {
    content: '＋';
    letter-spacing: 0;
  }
  .toc.open .toc-title::after {
    content: '－';
  }
}

.prose {
  max-width: none;
}
.prose > section > :is(p, ul, ol, h2, h3, .callout, .faq, details, figcaption) {
  max-width: 46rem;
}
.prose > section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.prose > section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.prose h2 {
  margin-bottom: 1.1em;
  padding-top: 4px;
}
.prose h2 .n {
  color: var(--red-text);
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 0.8em;
}
.prose h3 {
  margin-top: 2em;
}
.prose p {
  margin: 0 0 1.2em;
}
.prose ul,
.prose ol {
  padding: 0;
  margin: 0 0 1.4em;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: 0.6em;
}
.prose ul li::before {
  content: '➤';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 300;
}
.prose ol {
  counter-reset: o;
}
.prose ol li {
  counter-increment: o;
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 0.8em;
}
.prose ol li::before {
  content: counter(o, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--red-text);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.prose strong {
  color: #fff;
  font-weight: 600;
}

.callout {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 20px 24px;
  margin: 1.8em 0;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout h3,
.callout h4 {
  margin-top: 0;
  margin-bottom: 0.6em;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.6em 0;
}
.card {
  background: var(--panel);
  padding: 22px 22px 24px;
  position: relative;
}
.card h3 {
  margin: 0 0 0.7em;
  font-size: 0.82rem;
}
.card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #d8d8da;
}
a.card {
  transition: background 0.3s;
  display: block;
}
a.card:hover {
  background: var(--panel-2);
}
a.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red-text);
}
.card.planned {
  opacity: 0.62;
}
.tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  color: var(--muted);
  font-family: var(--f-body);
}
.fine {
  font-size: 0.88rem;
  color: var(--muted);
}

/* tables */
.tablewrap {
  overflow-x: auto;
  margin: 1.6em 0;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--ink);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-family: var(--f-head);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  min-width: 9em;
}
td .fine {
  display: block;
  margin-top: 4px;
}
@media (max-width: 720px) {
  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td {
    display: block;
  }
  table.stack thead {
    display: none;
  }
  table.stack tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  table.stack td {
    border: 0;
    padding: 4px 18px;
  }
  table.stack td[data-l]::before {
    content: attr(data-l);
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
  }
}

/* diagram: HTML/CSS so it reflows and stays legible; container queries follow the column, not the viewport */
figure {
  margin: 2em 0;
}
figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}
.diagram {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: clamp(14px, 2.4vw, 26px);
  container-type: inline-size;
}
.dg-l {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 12px;
}
.dg-src {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dg-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.dg-box {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 14px 14px 16px;
}
.dg-box.hl {
  background: #2a1212;
  border-color: var(--red);
}
.dg-box h3 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  line-height: 1.3;
}
.dg-box p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c4c4c8;
}
.dg-box .k {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red-text);
  margin-bottom: 6px;
}
.dg-flow .dg-box:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -19px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: translateY(-50%) rotate(45deg) scale(0.7);
}
.dg-flow .dg-box:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.dg-join {
  height: 40px;
  position: relative;
  margin: 0 0 14px;
}
.dg-join::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 4px;
  width: 2px;
  background: var(--red);
  transform: translateX(-1px);
}
.dg-join::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateX(-50%) rotate(45deg) scale(0.75);
}
.dg-groups {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.dg-groups span {
  border-top: 1px solid var(--line-strong);
  padding-top: 8px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.dg-groups span:nth-child(1) {
  grid-column: 1 / 3;
}
.dg-groups span:nth-child(2) {
  grid-column: 3 / 5;
}
.dg-groups span:nth-child(3) {
  grid-column: 5 / 6;
}
@container (max-width: 620px) {
  .dg-src {
    grid-template-columns: repeat(2, 1fr);
  }
  .dg-flow {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .dg-flow .dg-box:not(:last-child)::before {
    top: 100%;
    right: auto;
    left: 22px;
    width: 2px;
    height: 26px;
  }
  .dg-flow .dg-box:not(:last-child)::after {
    top: auto;
    bottom: -22px;
    right: auto;
    left: 16px;
    transform: rotate(135deg) scale(0.7);
  }
  .dg-groups {
    display: none;
  }
}
@container (max-width: 380px) {
  .dg-src {
    grid-template-columns: 1fr;
  }
}

/* tool directory rows */
table.tools td:first-child {
  min-width: 11em;
}
table.tools td:first-child a {
  font-family: var(--f-head);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}
table.tools .repo {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  word-break: break-all;
}
table.tools td:nth-child(3),
table.tools td:nth-child(4) {
  white-space: nowrap;
  font-size: 0.88rem;
}

/* video placeholder */
.video-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink) var(--tex) 0 0 / 300px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.video-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 14, 14, 0.55), rgba(14, 14, 14, 0.94));
}
.video-ph > div {
  position: relative;
  padding: 20px;
  max-width: 30rem;
}
.play {
  width: 64px;
  height: 64px;
  border: 1px solid var(--red);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.play::after {
  content: '';
  border-left: 16px solid var(--red);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.video-ph p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.video-ph strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: #fff;
}
details {
  border-bottom: 1px solid var(--line);
}
details summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: '＋';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--red-text);
  font-weight: 300;
}
details[open] summary::after {
  content: '－';
}
details summary:hover {
  color: var(--red-text);
}
details > div {
  padding: 0 0 20px;
  color: #d8d8da;
}
details > div > :last-child {
  margin-bottom: 0;
}
.faq {
  border-top: 1px solid var(--line);
  margin-top: 1.4em;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #240d0d, var(--ink) 70%);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tex) 0 0 / 360px;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 65%);
  mask-image: linear-gradient(270deg, #000, transparent 65%);
  pointer-events: none;
}
.cta-band .wrap {
  position: relative;
  padding-top: clamp(40px, 6vw, 68px);
  padding-bottom: clamp(40px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: center;
}
.cta-band h2 {
  margin-bottom: 0.5em;
}
.cta-band p {
  margin: 0;
  color: #d8d8da;
  max-width: 40rem;
}
.cta-band .actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 820px) {
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.side {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 24px;
  align-self: start;
  font-size: 0.94rem;
}
.side h3 {
  margin-top: 0;
}

/* footer */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 0;
  font-size: 0.92rem;
  color: #cfcfd2;
}
.footer .wrap {
  padding-top: 56px;
  padding-bottom: 28px;
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer .cols > :first-child {
    grid-column: 1 / -1;
  }
}
.footer img.word {
  width: 190px;
  margin-bottom: 18px;
}
.footer .foot-h {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li {
  margin-bottom: 9px;
}
.footer a:hover {
  color: var(--red-text);
}
.footer .own {
  max-width: 26rem;
  line-height: 1.6;
}
.footer .legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- photo heroes ---------- */
.hero--photo {
  background: var(--black);
}
.hero--photo::before {
  display: none;
}
.hero--photo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--black), transparent);
  pointer-events: none;
}
.hero--photo .wrap {
  z-index: 1;
}
.hero--home .wrap {
  padding-top: clamp(88px, 13vw, 168px);
  padding-bottom: clamp(80px, 11vw, 140px);
}
/* "FORENSICS" is ~8.3em wide in Michroma, so the size tracks viewport width to stay inside the gutters on phones */
.hero--home h1 {
  font-size: clamp(2rem, 10vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: 0.4em;
}
.hero--home .lede {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
}
.hero-sub {
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- homepage bands ---------- */
.band {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.band--alt {
  background: var(--ink);
}
.band-title {
  margin: 0 0 1.1em;
}
.band-lede {
  color: var(--muted);
  max-width: 40rem;
  margin: -0.5em 0 1.8em;
}
.band-more {
  margin: 1.8em 0 0;
}
.band .prose {
  max-width: 46rem;
}
.pathways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .pathways {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pathways {
    grid-template-columns: 1fr;
  }
}
.pathcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s;
}
.pathcard:hover {
  border-color: var(--red);
}
.pathcard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pc-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pc-body h3 {
  margin: 0;
  font-size: 0.82rem;
}
.pc-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d8d8da;
}
.pc-body .more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red-text);
}
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}
.feature--reverse img {
  order: 2;
}
.feature-text h2 {
  margin-bottom: 0.7em;
}
.feature-text p {
  max-width: 34rem;
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature--reverse img {
    order: 0;
  }
}
.hero--home h1 {
  max-width: none;
}
.hero--home .lede,
.hero--home .hero-sub {
  max-width: 34rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  animation: hero-zoom 14s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(22, 22, 22, 0.92) 0%,
    rgba(22, 22, 22, 0.68) 52%,
    rgba(22, 22, 22, 0.3) 100%
  );
}
/* the homepage photo already carries its own dark left edge, so keep the extra overlay light */
.hero--home .hero-media::after {
  background: linear-gradient(
    90deg,
    rgba(22, 22, 22, 0.5) 0%,
    rgba(22, 22, 22, 0.2) 50%,
    rgba(22, 22, 22, 0) 100%
  );
}
@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

/* one-time staggered entrance for the homepage hero copy */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes hero-track {
  from {
    opacity: 0;
    letter-spacing: 0.07em;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.005em;
    transform: none;
    filter: none;
  }
}
.hero--home .hero-line {
  display: block;
  animation: hero-track 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero--home .hero-line:first-child {
  animation-delay: 0.3s;
}
.hero--home .hero-line:last-child {
  animation-delay: 0.48s;
}
.hero--home .eyebrow,
.hero--home .lede,
.hero--home .hero-sub,
.hero--home .hero-actions {
  animation: hero-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero--home .eyebrow {
  animation-delay: 0.15s;
}
.hero--home .lede {
  animation-delay: 0.75s;
}
.hero--home .hero-sub {
  animation-delay: 0.9s;
}
.hero--home .hero-actions {
  animation-delay: 1.05s;
}
.hero:not(.hero--home) :is(.crumbs, .eyebrow, h1, .lede, .byline) {
  animation: hero-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero:not(.hero--home) .eyebrow {
  animation-delay: 0.12s;
}
.hero:not(.hero--home) h1 {
  animation-delay: 0.24s;
}
.hero:not(.hero--home) .lede {
  animation-delay: 0.45s;
}
.hero:not(.hero--home) .byline {
  animation-delay: 0.6s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero--home .hero-line,
  .hero--home .eyebrow,
  .hero--home .lede,
  .hero--home .hero-sub,
  .hero--home .hero-actions,
  .hero:not(.hero--home) :is(.crumbs, .eyebrow, h1, .lede, .byline) {
    animation: none;
  }
}

.masthead {
  top: env(safe-area-inset-top, 0px);
}

/* Content fades up as it scrolls into view. html.js is set in <head>, so nothing flashes before
   main.js runs; without JS (or if main.js never loads) content stays visible. Keep the selector
   list in sync with REVEAL in main.js. */
@media (prefers-reduced-motion: no-preference) {
  .js
    :is(
      .band-title,
      .band-lede,
      .band-more,
      .pathways > *,
      .band .dg-flow > *,
      .feature > *,
      .band .faq,
      .cta-band .wrap > *,
      .prose > section,
      .side
    ) {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.3s;
  }
  .js
    :is(
      .band-title,
      .band-lede,
      .band-more,
      .pathways > *,
      .band .dg-flow > *,
      .feature > *,
      .band .faq,
      .cta-band .wrap > *,
      .prose > section,
      .side
    ).is-in {
    opacity: 1;
    transform: none;
  }
}
