:root {
  --ink: #071b36;
  --ink-soft: #314967;
  --ivory: #edf4ff;
  --paper: #f7f9fe;
  --paper-strong: #ffffff;
  --coral: #145bff;
  --coral-dark: #0a3fc1;
  --sage: #5b6f8c;
  --sage-pale: #dce7ff;
  --line: rgba(7, 27, 54, 0.15);
  --line-strong: rgba(7, 27, 54, 0.28);
  --white-line: rgba(247, 249, 254, 0.2);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shell: min(1220px, calc(100vw - 56px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--paper-strong);
  background: var(--coral);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(237, 244, 255, 0.88);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 249, 254, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.brand > img {
  width: 39px;
  height: 39px;
}

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

.brand-copy strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-copy span {
  margin-top: 6px;
  color: var(--sage);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--coral);
  border-radius: 2px;
  color: var(--paper-strong);
  background: var(--coral);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.button:hover {
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-1px);
}

.button-small {
  justify-self: end;
  min-height: 40px;
  padding-inline: 17px;
  font-size: 11px;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.button-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 9vw, 126px) 0 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(20, 91, 255, 0.15), transparent 30%),
    linear-gradient(118deg, #edf4ff 0%, #f8faff 52%, #e7f0ff 100%);
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 30px);
  width: 1px;
  background: var(--line);
  content: "";
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 104px);
}

.eyebrow,
.section-label {
  margin: 0 0 28px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.method-heading h2,
.diagnostic-heading h2,
.closing-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(58px, 6.2vw, 88px);
}

.hero h1 em,
.method-heading h2 em,
.diagnostic-heading h2 em,
.closing-inner h2 em {
  color: var(--coral);
  font-weight: 400;
}

.hero-lede {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.text-link {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  color: var(--coral);
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-note {
  margin: 20px 0 0;
  color: var(--sage);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.route-field {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(10, 63, 193, 0.14);
}

.route-field-topline {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--sage);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-map {
  width: 100%;
  height: auto;
  color: rgba(20, 91, 255, 0.1);
}

.map-grid {
  opacity: 0.75;
}

.route,
.decision-route {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.route {
  stroke: rgba(7, 27, 54, 0.28);
  stroke-width: 1.2;
}

.route-b,
.route-c {
  stroke: rgba(20, 91, 255, 0.48);
}

.decision-route {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 196;
  animation: draw-route 2.8s ease-in-out infinite;
}

.moving-signal {
  fill: var(--sage);
  opacity: 0.65;
}

.signal-two,
.signal-three {
  opacity: 0.9;
}

.selected-signal,
.decision-point {
  fill: var(--coral);
  opacity: 1;
}

.decision-halo {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: decision-pulse 2.8s ease-out infinite;
}

.route-output {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  min-width: 205px;
  padding: 17px 18px;
  border-left: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(9px);
}

.route-output span {
  color: var(--sage);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-output strong {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.route-output small {
  margin-top: 2px;
  color: var(--coral);
  font-size: 10px;
}

.hero-proof {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.hero-proof span {
  padding: 22px 0;
  color: var(--sage);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-proof span + span {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.method-section {
  padding: clamp(96px, 11vw, 150px) 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 91, 255, 0.34), transparent 31%),
    linear-gradient(132deg, #06172f 0%, #092553 55%, #0b347b 100%);
}

.method-heading {
  display: grid;
  grid-template-columns: 0.32fr 0.78fr 0.52fr;
  align-items: end;
  gap: clamp(32px, 6vw, 90px);
}

.method-heading .section-label {
  margin: 0;
  color: rgba(247, 249, 254, 0.52);
}

.method-heading h2 {
  color: var(--paper-strong);
  font-size: clamp(54px, 5.6vw, 76px);
}

.method-heading h2 em {
  color: #84afff;
}

.method-heading > p:last-child {
  margin: 0;
  color: rgba(247, 249, 254, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 86px;
  padding: 0;
  border-top: 1px solid var(--white-line);
  list-style: none;
}

.method-grid li {
  min-height: 255px;
  padding: 26px 30px 30px 0;
  border-bottom: 1px solid var(--white-line);
}

.method-grid li + li {
  padding-left: 30px;
  border-left: 1px solid var(--white-line);
}

.method-grid li > span {
  color: #84afff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.method-grid h3 {
  margin: 70px 0 12px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.method-grid p {
  max-width: 290px;
  margin: 0;
  color: rgba(247, 249, 254, 0.62);
  font-size: 12px;
}

.method-coda {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.method-coda span {
  color: rgba(247, 249, 254, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.method-coda strong {
  color: #84afff;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
}

.diagnostic-section {
  padding: clamp(96px, 11vw, 154px) 0;
  background: var(--paper);
}

.diagnostic-heading {
  display: grid;
  grid-template-columns: 0.32fr 0.78fr 0.52fr;
  align-items: end;
  gap: clamp(32px, 6vw, 90px);
}

.diagnostic-heading .section-label {
  margin: 0;
}

.diagnostic-heading h2 {
  font-size: clamp(54px, 5.6vw, 76px);
}

.diagnostic-heading > p:last-child {
  margin: 0;
  color: var(--sage);
  font-size: 14px;
  line-height: 1.65;
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 590px;
  margin-top: 78px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 0 24px 70px rgba(22, 32, 29, 0.07);
}

.diagnostic-aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: var(--ivory);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--sage);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  margin-top: 15px;
  overflow: hidden;
  background: rgba(7, 27, 54, 0.14);
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--coral);
  transition: width 260ms ease;
}

.privacy-note {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 11px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.privacy-note svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.4;
}

.privacy-note p {
  margin: 0;
  color: var(--sage);
  font-size: 10px;
  line-height: 1.5;
}

.privacy-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.diagnostic-card {
  min-height: 0;
  padding: clamp(38px, 6vw, 76px);
}

.diagnostic-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.question-count,
.result-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.diagnostic-card legend,
.diagnostic-result h3 {
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.question-help {
  margin: 15px 0 28px;
  color: var(--sage);
  font-size: 12px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-label {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-content {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.option-label:hover .option-content {
  border-color: var(--line-strong);
}

.option-label input:checked + .option-content {
  color: var(--ink);
  border-color: var(--coral);
  background: rgba(20, 91, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--coral);
}

.option-label input:focus-visible + .option-content {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.diagnostic-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-error {
  margin: 16px 0 0;
  color: #a62f45;
  font-size: 11px;
}

.diagnostic-result[hidden],
.diagnostic-card form[hidden] {
  display: none;
}

.result-intro {
  max-width: 730px;
  margin: 18px 0 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-grid div {
  min-height: 126px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-grid dt {
  margin-bottom: 11px;
  color: var(--sage);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.result-note {
  margin-top: 18px;
  padding: 15px 17px;
  color: var(--ink-soft);
  border-left: 2px solid var(--coral);
  background: var(--ivory);
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}

.text-button {
  padding: 10px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-status {
  min-height: 19px;
  margin: 8px 0 0;
  color: var(--coral-dark);
  font-size: 10px;
}

.copy-status:empty {
  display: none;
}

.closing-section {
  padding: clamp(96px, 11vw, 150px) 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(132, 175, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #0a3fc1 0%, #145bff 54%, #07348f 100%);
}

.closing-section::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.65), transparent 56%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing-inner .section-label {
  color: var(--paper-strong);
}

.closing-inner h2 {
  max-width: 960px;
  color: var(--paper-strong);
  font-size: clamp(58px, 7vw, 92px);
}

.closing-inner h2 em {
  color: #dbe8ff;
}

.button-light {
  margin-top: 42px;
  color: var(--ink);
  border-color: var(--paper-strong);
  background: var(--paper-strong);
}

.button-light:hover {
  color: var(--paper-strong);
  border-color: var(--ink);
  background: var(--ink);
}

.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner > p {
  margin: 0;
  color: var(--sage);
  font-size: 9px;
}

.footer-meta {
  justify-self: end;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes draw-route {
  0%, 18% {
    stroke-dashoffset: 196;
  }
  58%, 100% {
    stroke-dashoffset: 0;
  }
}

@keyframes decision-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.4);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@media (max-width: 1040px) {
  :root {
    --shell: min(100% - 44px, 820px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero::before {
    display: none;
  }

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

  .hero-copy {
    max-width: 720px;
  }

  .route-field {
    max-width: 760px;
  }

  .method-heading,
  .diagnostic-heading {
    grid-template-columns: 0.3fr 0.7fr;
  }

  .method-heading > p:last-child,
  .diagnostic-heading > p:last-child {
    grid-column: 2;
    margin-top: -10px;
  }

  .diagnostic-shell {
    grid-template-columns: 1fr;
  }

  .diagnostic-aside {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 22px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-note {
    margin: 0;
    padding: 0 0 0 26px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 30px);
  }

  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand > img {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    display: none;
  }

  .button-small {
    min-height: 35px;
    padding-inline: 11px;
    font-size: 9px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-layout {
    gap: 56px;
  }

  .eyebrow,
  .section-label {
    margin-bottom: 21px;
  }

  .hero h1 {
    font-size: clamp(49px, 14.5vw, 66px);
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
  }

  .hero-note {
    max-width: 230px;
    line-height: 1.5;
  }

  .route-field-topline {
    padding: 15px;
    font-size: 7px;
  }

  .route-map {
    min-height: 330px;
    object-fit: cover;
  }

  .route-output {
    right: 14px;
    bottom: 14px;
    min-width: 185px;
    padding: 13px 14px;
  }

  .route-output strong {
    font-size: 19px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    margin-top: 70px;
  }

  .hero-proof span {
    padding: 14px 0;
  }

  .hero-proof span + span {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-heading,
  .diagnostic-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
  }

  .method-heading .section-label,
  .diagnostic-heading .section-label {
    margin-bottom: 26px;
  }

  .method-heading h2,
  .diagnostic-heading h2 {
    font-size: 50px;
  }

  .method-heading > p:last-child,
  .diagnostic-heading > p:last-child {
    grid-column: auto;
    margin-top: 25px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .method-grid li {
    min-height: auto;
    padding: 22px 0 26px;
  }

  .method-grid li + li {
    padding-left: 0;
    border-top: 0;
    border-left: 0;
  }

  .method-grid h3 {
    margin-top: 34px;
  }

  .method-coda {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
  }

  .diagnostic-shell {
    margin-top: 54px;
  }

  .diagnostic-aside {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .privacy-note {
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .diagnostic-card {
    padding: 30px 20px;
  }

  .diagnostic-card legend,
  .diagnostic-result h3 {
    font-size: 38px;
  }

  .option-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-controls {
    justify-content: stretch;
  }

  .diagnostic-controls .button {
    flex: 1;
    padding-inline: 13px;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-inner h2 {
    font-size: 54px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .footer-meta {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .moving-signal {
    display: none;
  }

  .decision-halo {
    animation: none;
    opacity: 0.35;
  }

  .decision-route {
    stroke-dashoffset: 0;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .option-content,
  .route-field,
  .diagnostic-shell,
  .result-grid div {
    border: 1px solid CanvasText;
  }
}

/* Viewport-fit compositions: each major section fits below the sticky header. */
:root {
  --header-height: 84px;
  --screen-height: calc(100svh - var(--header-height));
}

.hero,
.method-section,
.diagnostic-section,
.closing-section {
  height: var(--screen-height);
  min-height: 0;
}

.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(32px, 5.4vh, 52px) 0 0;
}

.hero-layout {
  align-self: center;
  gap: clamp(44px, 5vw, 76px);
}

.hero h1 {
  font-size: clamp(54px, 5.35vw, 74px);
}

.hero-lede {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

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

.hero-note {
  margin-top: 12px;
}

.hero-proof {
  margin-top: 0;
}

.hero-proof span {
  padding-block: 13px;
}

.method-section,
.diagnostic-section,
.closing-section {
  display: grid;
  align-content: center;
}

.method-section,
.diagnostic-section {
  padding: clamp(34px, 5vh, 52px) 0;
}

.method-heading h2,
.diagnostic-heading h2 {
  font-size: clamp(48px, 4.5vw, 62px);
}

.method-grid {
  margin-top: clamp(28px, 4vh, 42px);
}

.method-grid li {
  min-height: 164px;
  padding-top: 20px;
  padding-bottom: 22px;
}

.method-grid h3 {
  margin-top: 34px;
  font-size: 25px;
}

.method-coda {
  margin-top: 18px;
}

.method-coda strong {
  font-size: clamp(26px, 2.5vw, 34px);
}

.diagnostic-shell {
  height: clamp(420px, 58vh, 450px);
  min-height: 0;
  margin-top: clamp(22px, 3.5vh, 32px);
}

.diagnostic-aside {
  padding: 24px;
}

.diagnostic-card {
  padding: clamp(22px, 2.2vw, 32px);
}

.diagnostic-card legend,
.diagnostic-result h3 {
  font-size: clamp(34px, 3.3vw, 44px);
}

.diagnostic-result h3 {
  font-size: clamp(32px, 3vw, 38px);
}

.question-help {
  margin: 10px 0 16px;
}

.option-content {
  min-height: 54px;
}

.diagnostic-controls {
  margin-top: 20px;
  padding-top: 15px;
}

.diagnostic-controls .button,
.result-actions .button {
  min-height: 42px;
}

.result-intro {
  margin: 6px 0 10px;
  font-size: 11px;
  line-height: 1.45;
}

.result-grid div {
  min-height: 64px;
  padding: 9px 12px;
}

.result-grid dt {
  margin-bottom: 7px;
}

.result-grid dd {
  font-size: 10px;
  line-height: 1.4;
}

.result-note {
  margin-top: 6px;
  padding: 8px 11px;
  font-size: 9px;
}

.result-actions {
  margin-top: 8px;
}

.copy-status {
  min-height: 0;
  margin-top: 2px;
}

.result-kicker {
  margin-bottom: 6px;
}

.closing-section {
  padding-block: 0;
}

@media (max-width: 1040px) {
  .hero-layout {
    gap: 26px;
  }

  .route-field {
    justify-self: center;
    width: min(100%, 650px);
    max-height: 340px;
  }

  .route-map {
    max-height: 340px;
  }

  .method-heading,
  .diagnostic-heading {
    grid-template-columns: 0.28fr 0.72fr;
  }

  .method-heading > p:last-child,
  .diagnostic-heading > p:last-child {
    margin-top: -2px;
  }

  .diagnostic-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .diagnostic-aside {
    padding-block: 16px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 72px;
  }

  .hero,
  .method-section,
  .diagnostic-section,
  .closing-section {
    height: var(--screen-height);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-layout {
    align-content: center;
    gap: 14px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 7px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 46px);
    line-height: 0.94;
  }

  .hero-lede {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.4;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 10px;
  }

  .hero-note {
    margin-top: 8px;
    font-size: 8px;
  }

  .route-field {
    width: 100%;
    height: clamp(220px, 29svh, 248px);
    max-height: none;
  }

  .route-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .route-output {
    right: 11px;
    bottom: 10px;
    min-width: 154px;
    padding: 10px 11px;
  }

  .route-output span,
  .route-field-topline {
    font-size: 6px;
  }

  .route-output strong {
    margin-top: 3px;
    font-size: 16px;
  }

  .route-output small {
    font-size: 8px;
  }

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

  .hero-proof span {
    display: grid;
    align-items: center;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 6px;
    line-height: 1.35;
    text-align: center;
  }

  .hero-proof span + span {
    padding-left: 6px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .method-section,
  .diagnostic-section {
    padding: 22px 0;
  }

  .method-heading .section-label,
  .diagnostic-heading .section-label {
    margin-bottom: 10px;
  }

  .method-heading h2,
  .diagnostic-heading h2 {
    font-size: 41px;
    line-height: 0.94;
  }

  .method-heading > p:last-child,
  .diagnostic-heading > p:last-child {
    grid-column: 2;
    margin-top: 13px;
    font-size: 11px;
    line-height: 1.45;
  }

  .method-grid {
    margin-top: 18px;
  }

  .method-grid li,
  .method-grid li + li {
    display: grid;
    grid-template-columns: 28px 1fr;
    min-height: 0;
    column-gap: 8px;
    padding: 11px 0;
  }

  .method-grid li > span {
    grid-row: 1 / span 2;
  }

  .method-grid h3 {
    margin: 0 0 3px;
    font-size: 20px;
  }

  .method-grid p {
    font-size: 9px;
    line-height: 1.4;
  }

  .method-coda {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin-top: 14px;
  }

  .method-coda span {
    flex: 0 0 74px;
    font-size: 6px;
  }

  .method-coda strong {
    font-size: 22px;
    line-height: 1.05;
    text-align: right;
  }

  .diagnostic-shell {
    height: min(520px, calc(var(--screen-height) - 190px));
    margin-top: 16px;
  }

  .diagnostic-aside {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 14px;
  }

  .privacy-note {
    align-items: center;
    margin: 0;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .privacy-note svg {
    width: 16px;
    height: 16px;
  }

  .privacy-note p {
    font-size: 8px;
  }

  .privacy-note strong {
    margin-bottom: 1px;
  }

  .diagnostic-card {
    min-height: 0;
    overflow: hidden;
    padding: 17px 16px;
  }

  .diagnostic-card legend,
  .diagnostic-result h3 {
    font-size: 30px;
    line-height: 1;
  }

  .question-help {
    margin: 7px 0 10px;
    font-size: 9px;
    line-height: 1.4;
  }

  .option-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .option-content {
    min-height: 53px;
    padding: 8px 9px;
    font-size: 9px;
    line-height: 1.3;
  }

  .diagnostic-controls {
    margin-top: 10px;
    padding-top: 10px;
  }

  .diagnostic-controls .button {
    min-height: 38px;
    font-size: 9px;
  }

  .result-kicker {
    margin-bottom: 7px;
    font-size: 7px;
  }

  .result-intro {
    margin: 7px 0 9px;
    font-size: 9px;
    line-height: 1.35;
  }

  .result-grid {
    gap: 0;
  }

  .result-grid div {
    min-height: 65px;
    padding: 8px;
  }

  .result-grid dt {
    margin-bottom: 4px;
    font-size: 6px;
  }

  .result-grid dd {
    font-size: 8px;
    line-height: 1.3;
  }

  .result-note {
    margin-top: 7px;
    padding: 7px 9px;
    font-size: 8px;
    line-height: 1.35;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 7px;
  }

  .result-actions .button {
    min-height: 36px;
    padding-inline: 7px;
    font-size: 8px;
  }

  .result-actions .text-button {
    grid-column: 1 / -1;
    padding: 3px;
    font-size: 8px;
  }

  .copy-status {
    display: none;
  }

  .closing-inner h2 {
    font-size: 48px;
  }

  .button-light {
    margin-top: 28px;
  }
}

/* Diagnostic introduction: one calm, centered thought instead of a tight editorial grid. */
.diagnostic-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(100%, 900px);
  max-width: 900px;
  text-align: center;
}

.diagnostic-heading .section-label {
  margin: 0 0 12px;
}

.diagnostic-heading .section-label::after {
  display: block;
  width: 28px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--coral);
  content: "";
}

.diagnostic-heading h2 {
  font-size: clamp(46px, 4.4vw, 58px);
  line-height: 0.92;
}

.diagnostic-heading > p:last-child {
  grid-column: auto;
  max-width: 520px;
  margin: 13px auto 0;
  color: var(--sage);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .diagnostic-heading {
    width: 100%;
  }

  .diagnostic-heading .section-label {
    margin-bottom: 10px;
  }

  .diagnostic-heading .section-label::after {
    margin-top: 8px;
  }

  .diagnostic-heading h2 {
    font-size: 39px;
    line-height: 0.92;
  }

  .diagnostic-heading > p:last-child {
    max-width: 290px;
    margin-top: 11px;
    font-size: 10px;
    line-height: 1.45;
  }
}

/* Keep the diagnostic composition naturally sized inside its viewport panel. */
.diagnostic-section {
  grid-template-rows: auto auto;
  align-content: center;
  padding-block: 20px;
}

.diagnostic-heading {
  align-self: center;
  justify-self: center;
  height: auto;
  min-height: 0;
}

.diagnostic-shell {
  align-self: start;
  height: 430px;
  margin-top: 16px;
}

.diagnostic-card {
  display: grid;
  align-items: center;
}

@media (max-width: 680px) {
  .diagnostic-section {
    padding-block: 18px;
  }

  .diagnostic-shell {
    height: min(520px, calc(var(--screen-height) - 190px));
    margin-top: 14px;
  }
}

/* First read: one integrated decision brief, not a heading above a form box. */
.diagnostic-section {
  grid-template-rows: minmax(0, 1fr);
  align-content: center;
  padding-block: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 84%, rgba(20, 91, 255, 0.1), transparent 28%),
    var(--paper);
}

.diagnostic-stage {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.5fr);
  height: calc(var(--screen-height) - 32px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 0 30px 80px rgba(10, 63, 193, 0.13);
}

.diagnostic-heading {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  flex-direction: column;
  justify-self: stretch;
  justify-content: space-between;
  gap: 34px;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: clamp(32px, 3.4vw, 46px);
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 18% 86%, rgba(20, 91, 255, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
    linear-gradient(155deg, #06172f 0%, #0a2d65 100%);
  text-align: left;
}

.diagnostic-principle {
  padding-left: 16px;
  border-left: 2px solid var(--coral);
}

.diagnostic-principle span,
.diagnostic-principle strong {
  display: block;
}

.diagnostic-principle span {
  margin-bottom: 5px;
  color: rgba(247, 249, 254, 0.58);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.diagnostic-principle strong {
  color: var(--paper-strong);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.diagnostic-copy .section-label {
  margin: 0 0 17px;
  color: #84afff;
}

.diagnostic-copy .section-label::after {
  display: none;
}

.diagnostic-heading h2 {
  max-width: 410px;
  color: var(--paper-strong);
  font-size: clamp(46px, 4vw, 54px);
  line-height: 0.91;
}

.diagnostic-heading h2 em {
  color: #84afff;
}

.diagnostic-copy > p:last-child {
  max-width: 350px;
  margin: 22px 0 0;
  color: rgba(247, 249, 254, 0.66);
  font-size: 12px;
  line-height: 1.6;
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 76px minmax(0, 1fr);
  align-self: stretch;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  background: var(--paper-strong);
  box-shadow: none;
}

.diagnostic-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 0;
  padding: 18px 30px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.diagnostic-aside > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(110px, 170px);
  align-items: center;
  gap: 18px;
}

.progress-meta {
  gap: 11px;
  justify-content: flex-start;
  white-space: nowrap;
}

.progress-meta span:last-child {
  color: var(--coral);
}

.progress-track {
  margin-top: 0;
}

.privacy-note {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
}

.privacy-note p {
  font-size: 8px;
  line-height: 1.35;
}

.privacy-note strong {
  display: inline;
  margin: 0 4px 0 0;
}

.diagnostic-card {
  display: grid;
  align-items: center;
  min-height: 0;
  padding: clamp(30px, 3.2vw, 44px);
}

.diagnostic-card form,
.diagnostic-result {
  width: 100%;
}

.diagnostic-card legend {
  max-width: 620px;
  font-size: clamp(39px, 3.4vw, 48px);
  line-height: 0.98;
}

.question-help {
  margin: 12px 0 22px;
  font-size: 11px;
}

.option-grid {
  counter-reset: diagnostic-option;
  gap: 10px;
}

.option-label {
  counter-increment: diagnostic-option;
}

.option-content {
  position: relative;
  min-height: 64px;
  padding: 14px 16px 14px 48px;
  border-color: rgba(7, 27, 54, 0.14);
  background: var(--paper);
  font-size: 11px;
  line-height: 1.35;
}

.option-content::before {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  content: "0" counter(diagnostic-option);
  transform: translateY(-50%);
}

.option-label:hover .option-content {
  border-color: var(--coral);
  background: #f2f6ff;
}

.option-label input:checked + .option-content {
  color: var(--paper-strong);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}

.option-label input:checked + .option-content::before {
  color: #84afff;
}

.diagnostic-controls {
  margin-top: 24px;
  padding-top: 18px;
}

.diagnostic-result h3 {
  font-size: clamp(32px, 3vw, 40px);
}

@media (max-width: 900px) {
  .diagnostic-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .diagnostic-heading {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 34px;
    padding: 26px 30px;
  }

  .diagnostic-heading h2 {
    font-size: 43px;
  }

  .diagnostic-copy > p:last-child {
    margin-top: 13px;
  }
}

@media (max-width: 680px) {
  .diagnostic-section {
    padding-block: 10px;
  }

  .diagnostic-stage {
    grid-template-rows: 238px minmax(0, 1fr);
    height: calc(var(--screen-height) - 20px);
  }

  .diagnostic-heading {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    padding: 18px 18px 20px;
  }

  .diagnostic-principle {
    padding-left: 11px;
  }

  .diagnostic-principle span {
    margin-bottom: 2px;
    font-size: 6px;
  }

  .diagnostic-principle strong {
    font-size: 18px;
  }

  .diagnostic-copy .section-label {
    margin-bottom: 8px;
    font-size: 7px;
  }

  .diagnostic-heading h2 {
    font-size: 37px;
    line-height: 0.9;
  }

  .diagnostic-copy > p:last-child {
    max-width: 310px;
    margin-top: 11px;
    font-size: 9px;
    line-height: 1.4;
  }

  .diagnostic-shell {
    grid-template-rows: 58px minmax(0, 1fr);
    height: 100%;
    margin: 0;
  }

  .diagnostic-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 13px;
  }

  .diagnostic-aside > div:first-child {
    display: block;
  }

  .progress-meta {
    justify-content: space-between;
  }

  .progress-track {
    margin-top: 8px;
  }

  .privacy-note {
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 7px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .privacy-note svg {
    width: 14px;
    height: 14px;
  }

  .privacy-note p {
    font-size: 7px;
  }

  .privacy-note strong {
    display: block;
    margin: 0;
  }

  .diagnostic-card {
    overflow: hidden;
    padding: 16px 14px;
  }

  .diagnostic-card legend,
  .diagnostic-result h3 {
    font-size: 29px;
    line-height: 0.98;
  }

  .question-help {
    margin: 7px 0 11px;
    font-size: 8px;
    line-height: 1.35;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .option-content {
    min-height: 55px;
    padding: 8px 8px 8px 29px;
    font-size: 8px;
    line-height: 1.25;
  }

  .option-content::before {
    left: 9px;
    font-size: 6px;
  }

  .diagnostic-controls {
    margin-top: 11px;
    padding-top: 10px;
  }

  .diagnostic-controls .button {
    min-height: 37px;
    font-size: 8px;
  }

  .result-kicker {
    margin-bottom: 6px;
  }

  .result-intro {
    margin: 6px 0 8px;
  }

  .result-note {
    margin-top: 6px;
  }

  .result-actions {
    margin-top: 7px;
  }
}
