:root {
  --ink: #10202e;
  --ink-soft: #445260;
  --navy: #081420;
  --navy-2: #0d2231;
  --navy-footer: #050c12;
  --blue: #1172a5;
  --blue-bright: #1b8fc8;
  --teal: #49c4be;
  --red: #e35d52;
  --sand: #ebe7dc;
  --paper: #f7f6f2;
  --white: #fff;
  --line: rgba(16, 32, 46, 0.14);
  --radius: 18px;
  --shadow: 0 22px 70px rgba(4, 20, 31, 0.13);
  --container: 1180px;
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
html.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--navy);
  background: var(--teal);
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--navy);
  background: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-accent {
  color: var(--white);
  background: var(--blue);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-height);
  color: #fff;
  background: rgba(5, 16, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    height 0.22s ease;
}

.site-header.is-scrolled {
  position: fixed;
  height: 74px;
  background: rgba(8, 20, 31, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  fill: currentColor;
}

.brand-mark-accent {
  fill: var(--teal);
  opacity: 0.92;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.primary-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
}

.primary-nav .nav-cta {
  padding: 14px 21px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.primary-nav .nav-cta-review {
  min-width: max-content;
  padding-inline: 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 866px;
  padding: 148px 0 86px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(27, 143, 200, 0.34), transparent 34%),
    linear-gradient(125deg, #06111a 0%, #0a2030 52%, #0d3145 100%);
}

.hero::before {
  position: absolute;
  right: -85px;
  bottom: -175px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(73, 196, 190, 0.20);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(73, 196, 190, 0.035),
    0 0 0 130px rgba(73, 196, 190, 0.025);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to right, black, transparent 75%);
  mask-image: linear-gradient(to right, black, transparent 75%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.17fr 0.83fr;
  gap: 85px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.section-accent .eyebrow,
.hero .eyebrow {
  color: var(--teal);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 4.15vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: #b8dbe8;
}

.hero-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.15rem;
  line-height: 1.75;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 18px;
}

.hero-proof li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.hero-actions {
  display: flex;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 7px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06151f;
  background: var(--teal);
}

.button-primary:hover {
  background: #65d6d0;
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-full {
  width: 100%;
}

.hero-panel {
  position: relative;
  padding: 36px;
  background: rgba(7, 23, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.29);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-panel::before {
  position: absolute;
  top: -39px;
  right: 20px;
  color: rgba(255, 255, 255, 0.21);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  content: "FORENSIC REVIEW";
}

.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signal span,
.panel-score span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal strong {
  position: relative;
  color: #ffb3ac;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signal strong::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  content: "";
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(227, 93, 82, 0.11);
}

.diagnostic-list {
  padding: 10px 0;
}

.diagnostic-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diagnostic-list span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.diagnostic-list p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.panel-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 27px;
}

.panel-score div {
  display: grid;
  gap: 5px;
}

.panel-score strong {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.panel-score svg {
  width: 82px;
  height: 82px;
  transform: rotate(-90deg);
}

.panel-score circle {
  fill: none;
  stroke-width: 5;
}

.score-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.score-progress {
  stroke: var(--teal);
  stroke-dasharray: 195;
  stroke-dashoffset: 32;
  stroke-linecap: round;
}

.panel-score path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
  transform-origin: center;
}

/* Shared typography */
.split-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.assessment-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 1.55rem + 1.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.63);
}

.prose {
  padding-top: 7px;
}

.prose p {
  margin: 0 0 29px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.definition {
  padding-top: 105px;
  padding-bottom: 105px;
}

.definition .section-heading h2 {
  max-width: 480px;
  font-size: clamp(2.5rem, 3.4vw, 3.45rem);
}

/* Triage */
.triage {
  padding-top: 76px;
  padding-bottom: 70px;
}

.triage .section-heading {
  margin-bottom: 45px;
}

.triage .section-heading h2 {
  font-size: clamp(2.3rem, 3.1vw, 3.4rem);
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.indicator-card {
  min-height: 282px;
  padding: 30px;
  background: var(--navy);
}

.indicator-card:nth-child(1) {
  grid-column: span 2;
  background: var(--navy-2);
}

.indicator-card span {
  display: inline-flex;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.indicator-card h3 {
  margin: 55px 0 12px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.indicator-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.52;
}

/* Capabilities */
.capabilities-section {
  padding-top: 70px;
  padding-bottom: 72px;
}

.capabilities-section .section-heading {
  margin-bottom: 42px;
}

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

.capability {
  min-height: 275px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.capability:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(17, 114, 165, 0.1);
  border-radius: 50%;
}

.capability h3 {
  margin: 54px 0 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.capability p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Assessment */
.assessment {
  padding-top: 58px;
  padding-bottom: 52px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  gap: 90px;
  align-items: start;
}

.assessment-copy h2 {
  max-width: 470px;
  font-size: clamp(2.55rem, 3.15vw, 3.5rem);
}

.assessment-copy p:not(.eyebrow) {
  max-width: 480px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.assessment-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: assessment;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.assessment-list li {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
  padding: 25px 0 25px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.assessment-list li::before {
  position: absolute;
  top: 27px;
  left: 0;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  content: counter(assessment);
  counter-increment: assessment;
}

.assessment-list span {
  font-weight: 900;
}

.assessment-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.71);
  line-height: 1.55;
}

/* Engagements */
.engagements-section {
  padding-top: 72px;
  padding-bottom: 44px;
}

.engagements-section .section-heading {
  margin-bottom: 38px;
}

.engagements-section .section-heading h2 {
  max-width: none;
  font-size: clamp(2.7rem, 4vw, 4rem);
  white-space: nowrap;
}

.engagement-list {
  border-top: 1px solid var(--line);
}

.engagement {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.engagement-number {
  color: rgba(16, 32, 46, 0.17);
  font-family: Georgia, serif;
  font-size: 3.7rem;
  line-height: 1;
}

.engagement-type {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.engagement h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.engagement div:last-child > p:last-child {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

/* Roadmap */
.roadmap-section {
  padding-top: 30px;
  padding-bottom: 36px;
  background: var(--sand);
}

.roadmap-heading {
  margin-bottom: 28px;
}

.roadmap-heading .eyebrow {
  margin-bottom: 20px;
}

.roadmap-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.fpm-roadmap-graphic {
  margin: 0;
  text-align: center;
}

.fpm-roadmap-image-link {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(28, 39, 52, 0.12);
  cursor: zoom-in;
}

.fpm-roadmap-image {
  width: 100%;
  height: auto;
}

.fpm-roadmap-caption {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.fpm-roadmap-enlarge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  color: #126d98;
  background: #fff;
  border: 1px solid #157da8;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Credentials */
.credentials {
  padding: 0 0 36px;
  background: var(--paper);
}

.credentials-layout {
  padding: 68px 70px 72px;
  color: #fff;
  background: #0d2738;
  border-radius: 29px;
}

.credentials-heading {
  max-width: none;
  margin-bottom: 36px;
}

.credentials-heading .eyebrow {
  color: var(--blue-bright);
}

.credentials-heading h2 {
  font-size: clamp(2.15rem, 3vw, 3rem);
}

.credentials-heading > p:last-child {
  max-width: 1050px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 1rem;
  line-height: 1.55;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid transparent;
}

.credential-grid > div {
  min-height: 138px;
  padding: 49px 20px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.credential-grid > div:nth-child(3n) {
  border-right: 0;
}

.credential-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.credential-grid strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.credential-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

/* Contact */
.contact-section {
  padding-top: 30px;
  padding-bottom: 76px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 90px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 560px;
  font-size: clamp(2.65rem, 3.5vw, 3.75rem);
  line-height: 1.14;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 48px;
}

.contact-details a,
.contact-details > div {
  min-height: 108px;
  padding: 16px 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.contact-details span {
  display: block;
  color: #b8dbe8;
  font-family: Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-details strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-form {
  padding: 42px 36px 30px;
  color: var(--ink);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.form-eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form h3 {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid #cbd0d4;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 400;
}

.contact-form input,
.contact-form select {
  min-height: 47px;
}

.contact-form textarea {
  min-height: 124px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(17, 114, 165, 0.18);
  outline-offset: 0;
}

.contact-form .button-primary {
  min-height: 50px;
  margin-top: 1px;
  border: 0;
}

.form-note {
  margin: 12px 0 0;
  color: #7b8085;
  font-size: 0.72rem;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 20px 0 26px;
  color: rgba(255, 255, 255, 0.55);
  background: var(--navy-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.65fr;
  gap: 70px;
  align-items: start;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-brand .brand-copy strong {
  color: #fff;
  font-size: 0.92rem;
}

.footer-brand .brand-copy small {
  font-size: 0.58rem;
}

.footer-intro > p {
  max-width: 430px;
  margin: 16px 0 0;
  font-size: 0.8rem;
}

.footer-links {
  display: grid;
  gap: 11px;
  padding-top: 6px;
}

.footer-links a {
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  padding-top: 4px;
  text-align: right;
}

.footer-meta p {
  margin: 0;
  font-size: 0.78rem;
}

/* Roadmap dialog */
.roadmap-dialog {
  width: min(96vw, 1450px);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.roadmap-dialog::backdrop {
  background: rgba(2, 12, 25, 0.88);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.roadmap-dialog-panel {
  position: relative;
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.roadmap-dialog-panel img {
  width: 100%;
  height: auto;
}

.roadmap-dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 45px;
  height: 45px;
  margin: 12px 12px -57px 0;
  color: #fff;
  background: rgba(4, 38, 77, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 841px) and (max-width: 1100px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav a {
    font-size: 0.84rem;
  }

  .primary-nav .nav-cta-review {
    padding-inline: 15px;
  }
}

@media (max-width: 1100px) {
  :root {
    --container: 940px;
  }

  .primary-nav {
    gap: 22px;
  }

  .hero-layout,
  .assessment-layout,
  .contact-layout {
    gap: 55px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.2vw, 4.2rem);
  }

  .hero-panel {
    padding: 28px;
  }

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

  .capability {
    min-height: 245px;
  }

  .credential-grid > div {
    padding-left: 28px;
  }

  .credentials-layout {
    padding-inline: 48px;
  }

  .engagements-section .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    position: absolute;
    height: var(--header-height);
  }

  .site-header.is-scrolled {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 24px;
    opacity: 0;
    visibility: hidden;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    transform: translateY(-12px);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    padding: 12px 14px;
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 500;
  }

  .primary-nav .nav-cta {
    margin-top: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-layout,
  .split-intro,
  .assessment-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 70px;
  }

  .hero-panel {
    max-width: 590px;
  }

  .split-intro,
  .assessment-layout,
  .contact-layout {
    gap: 42px;
  }

  .assessment-copy {
    position: static;
  }

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

  .indicator-card:nth-child(1) {
    grid-column: span 2;
  }

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

  .credential-grid > div:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.13);
  }

  .credential-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .credential-grid > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .credential-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .footer-meta {
    grid-column: span 2;
    text-align: left;
  }

  .desktop-break {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .hero {
    padding: 112px 0 68px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11.5vw, 3.15rem);
    line-height: 1.07;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-proof {
    display: grid;
    gap: 9px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-panel {
    padding: 21px;
    border-radius: 20px;
  }

  .hero-panel::before {
    display: none;
  }

  .diagnostic-list div {
    grid-template-columns: 36px 1fr;
    min-height: 68px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .assessment-copy h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .definition .section-heading h2 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }

  .indicator-grid,
  .capability-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .indicator-card,
  .indicator-card:nth-child(1) {
    grid-column: auto;
    min-height: 230px;
  }

  .indicator-card h3 {
    margin-top: 42px;
  }

  .capability {
    min-height: 245px;
  }

  .assessment-list li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 42px;
  }

  .engagement {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .engagement-number {
    font-size: 2.5rem;
  }

  .engagement h3 {
    font-size: 2rem;
  }

  .roadmap-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .fpm-roadmap-image-link {
    border-radius: 6px;
  }

  .fpm-roadmap-enlarge {
    width: 100%;
    max-width: 220px;
  }

  .credentials {
    padding-bottom: 30px;
  }

  .credentials-layout {
    padding: 34px 24px;
    border-radius: 20px;
  }

  .credential-grid > div,
  .credential-grid > div:nth-child(3n),
  .credential-grid > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .credential-grid > div:last-child {
    border-bottom: 0;
  }

  .contact-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contact-details,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-details a,
  .contact-details > div {
    min-height: 0;
    padding: 14px;
  }

  .contact-form {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .contact-form h3 {
    font-size: 1.65rem;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-meta {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Precision desktop alignment */
@media (min-width: 1101px) {
  .site-header .container,
  .hero .container {
    width: min(calc(100% - 40px), 1530px);
    margin-left: max(20px, calc((100vw - 1630px) / 2));
    margin-right: auto;
  }

  .definition .container {
    width: min(calc(100% - 40px), 1625px);
  }

  .definition .split-intro {
    grid-template-columns: 0.88fr 1.12fr;
  }
}

@media (min-width: 841px) {
  .hero {
    min-height: 100vh;
    padding-bottom: 43px;
  }

  .hero-copy {
    margin-top: -22px;
  }

  .hero-panel {
    margin-top: 15px;
  }

  .hero h1 {
    max-width: 850px;
    font-size: clamp(4.7rem, 5.1vw, 6rem);
    line-height: 0.94;
  }

  .hero-lead {
    max-width: 790px;
    margin-top: 50px;
    font-size: 1.38rem;
    line-height: 1.9;
  }

  .hero-proof {
    margin-top: 45px;
    font-size: 0.9rem;
  }

  .hero-actions {
    margin-top: 54px;
  }

  .hero .button {
    font-size: 0.93rem;
  }

  .diagnostic-list div {
    min-height: 98px;
  }

  .diagnostic-list p {
    font-size: 1.08rem;
  }
}

@media (min-width: 1101px) {
  .definition {
    padding-top: 110px;
    padding-bottom: 140px;
  }

  .definition .section-heading h2 {
    max-width: 640px;
    font-size: 3.55rem;
  }

  .definition .prose p {
    font-size: 1.32rem;
    line-height: 1.78;
  }

  .triage {
    padding-top: 17px;
    padding-bottom: 8px;
  }

  .capabilities-section {
    padding-top: 28px;
    padding-bottom: 16px;
  }
}

/* Compact triage safeguards */
#triage .indicator-grid {
  padding-bottom: 0;
  margin-bottom: 14px;
}

#triage .indicator-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number title"
    ". description";
  column-gap: 0.65em;
  row-gap: 6px;
  align-content: start;
  min-height: 0;
  padding: 18px 22px;
}

#triage .indicator-card > span {
  grid-area: number;
  margin: 0;
  line-height: 1.18;
}

#triage .indicator-card > h3 {
  grid-area: title;
  margin: 0;
  line-height: 1.18;
}

#triage .indicator-card > p {
  grid-area: description;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 620px) {
  #triage .indicator-card {
    min-height: 0;
    padding: 16px 18px;
  }
}

/* =========================================================
   PROJECT SCIENCES HERO ALIGNMENT — FINAL DEPLOYMENT
   =========================================================
   Desktop result:
   - The tagline spans the complete hero row.
   - The tagline sits clearly below the navigation while remaining above the headline.
   - The headline and supporting content move downward together.
   - The headline aligns with the “FORENSIC REVIEW” label.
   - No element width is allowed to enlarge or distort the grid.
*/

@media (min-width: 1101px) {
  .hero-layout {
    position: relative !important;
  }

  .hero .hero-copy > .eyebrow {
    position: absolute !important;
    top: -34px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 4 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero .hero-copy > h1,
  .hero .hero-copy > .hero-lead,
  .hero .hero-copy > .hero-proof,
  .hero .hero-copy > .hero-actions {
    transform: translateY(79px) !important;
  }
}

/* Keep the existing tablet and mobile composition unchanged. */
@media (max-width: 1100px) {
  .hero .hero-copy > .eyebrow,
  .hero .hero-copy > h1,
  .hero .hero-copy > .hero-lead,
  .hero .hero-copy > .hero-proof,
  .hero .hero-copy > .hero-actions {
    transform: none !important;
  }
}
