:root {
  color-scheme: light;
  --obsidian: #08090b;
  --porcelain: #f5f7fa;
  --frost: #ffffffcc;
  --signal: #0a84ff;
  --atlas: #2f6bff;
  --graphite: #4b5563;
  --muted: #717784;
  --line: #dfe3e8;
  --success: #087b4b;
  --danger: #c52a2a;
  --warning: #946200;
  --shadow-soft: 0 24px 70px rgb(22 33 50 / 10%);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--porcelain);
  color: var(--obsidian);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--obsidian);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal), white 18%);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  right: 0;
  left: 0;
  padding: 0 20px;
  pointer-events: none;
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 18px;
  background: var(--frost);
  box-shadow: 0 12px 40px rgb(19 26 37 / 8%);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.wordmark img {
  border-radius: 9px;
}

.wordmark small {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a,
.nav-links button {
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #333843;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgb(10 132 255 / 8%);
  color: var(--atlas);
}

.nav-login {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
}

.button-primary {
  background: var(--obsidian);
  box-shadow: 0 10px 22px rgb(8 9 11 / 16%);
  color: #fff;
}

.button-primary:hover {
  background: #20232a;
  box-shadow: 0 13px 28px rgb(8 9 11 / 22%);
}

.button-secondary {
  border-color: #ccd2da;
  background: #fff;
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: #b9c2cd;
  background: #f0f3f7;
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 850px;
  margin: 0 auto;
  padding: 146px 0 86px;
}

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

.eyebrow,
.utility-label {
  margin: 0;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(10 132 255 / 12%);
}

.hero h1 {
  max-width: 760px;
  margin: 25px 0 28px;
  font-family: var(--display);
  font-size: clamp(50px, 6.2vw, 82px);
  font-weight: 640;
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meridian-card {
  position: relative;
  align-self: stretch;
  max-height: 650px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--obsidian);
  box-shadow: var(--shadow-soft);
  color: #fff;
  isolation: isolate;
}

.meridian-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.72) contrast(1.08);
}

.meridian-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 9 11 / 3%) 30%, rgb(8 9 11 / 89%) 100%);
  content: "";
}

.meridian-orbit {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
}

.orbit {
  position: absolute;
  top: 20%;
  left: 50%;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  transform: translateX(-50%);
}

.orbit-one {
  width: 72%;
  aspect-ratio: 1;
}

.orbit-two {
  top: 30%;
  width: 46%;
  aspect-ratio: 1;
}

.meridian-line {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, #75baff 20%, #75baff 80%, transparent);
}

.meridian-fix {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 10px rgb(10 132 255 / 18%);
  transform: translate(-50%, -50%);
}

.coordinate {
  position: absolute;
  padding: 5px 7px;
  background: rgb(8 9 11 / 48%);
  color: rgb(255 255 255 / 76%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.coordinate-n {
  top: 15%;
  left: calc(50% + 8px);
}

.coordinate-e {
  top: 44%;
  right: 8%;
}

.meridian-card figcaption {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 30px;
  left: 30px;
  display: grid;
  gap: 7px;
}

.meridian-card figcaption .utility-label {
  color: #8fc8ff;
}

.meridian-card figcaption strong {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.meridian-card figcaption > span:last-child {
  color: rgb(255 255 255 / 66%);
  font-family: var(--mono);
  font-size: 11px;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 20px 80px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.case-copy h2,
.responsibility h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--graphite);
  font-size: 18px;
}

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

.method-sequence {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid #bfc7d1;
  list-style: none;
}

.method-sequence li {
  position: relative;
  min-height: 230px;
  padding: 28px 24px 20px 0;
  border-right: 1px solid var(--line);
}

.method-sequence li + li {
  padding-left: 24px;
}

.method-sequence li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--porcelain);
  content: "";
}

.method-sequence li + li::before {
  left: 24px;
}

.method-sequence span {
  display: block;
  margin-bottom: 24px;
  color: var(--atlas);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.method-sequence strong {
  display: block;
  font-size: 18px;
}

.method-sequence p {
  margin: 10px 0 0;
  color: var(--graphite);
  font-size: 14px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.case-visual {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #d3dce7;
}

.case-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.case-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  min-width: 112px;
  padding: 11px 14px;
  border: 1px solid rgb(255 255 255 / 60%);
  background: rgb(8 9 11 / 76%);
  color: #fff;
  font-family: var(--mono);
}

.case-stamp span {
  color: #99cfff;
  font-size: 9px;
}

.case-copy > .eyebrow {
  margin-bottom: 24px;
}

.case-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0;
  color: var(--graphite);
  font-size: 18px;
}

.observation-list {
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.observation-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.observation-list dt {
  color: var(--atlas);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.observation-list dd {
  margin: 0;
}

.boundary-note {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--signal);
  background: #edf5ff;
  color: #364154;
  font-size: 14px;
}

.boundary-note p {
  margin: 0;
}

.responsibility {
  width: min(960px, calc(100% - 48px));
  text-align: center;
}

.responsibility .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.responsibility > p:not(.eyebrow) {
  max-width: 770px;
  margin: 28px auto;
  color: var(--graphite);
  font-size: 17px;
}

.text-action {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--obsidian);
  background: transparent;
  font-weight: 650;
  cursor: pointer;
}

.responsibility-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.login-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 100px rgb(0 0 0 / 26%);
}

.login-dialog::backdrop {
  background: rgb(6 9 14 / 48%);
}

.dialog-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf0f4;
  font-size: 20px;
  cursor: pointer;
}

.login-mark {
  margin-bottom: 25px;
}

.login-dialog h2 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.login-dialog > p:not(.utility-label) {
  margin: 0 0 26px;
  color: var(--graphite);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form label {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd1da;
  border-radius: 11px;
  background: rgb(255 255 255 / 80%);
}

.login-form input:focus {
  border-color: var(--signal);
}

.login-form .button {
  margin-top: 15px;
}

.form-error {
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 220;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 48px));
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 12px;
  background: rgb(8 9 11 / 92%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 20%);
  color: #fff;
  font-size: 14px;
}

/* Authenticated workbench */
.workbench {
  min-height: 100vh;
  background: #eef1f5;
}

.workbench-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 10px 24px;
  border-bottom: 1px solid rgb(205 211 220 / 80%);
  background: var(--frost);
  backdrop-filter: blur(22px) saturate(140%);
}

.session-tools,
.session-state {
  display: flex;
  align-items: center;
  gap: 11px;
}

.session-state {
  color: var(--graphite);
  font-size: 13px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(460px, 1fr) minmax(250px, 330px);
  min-height: calc(100vh - 70px);
}

.task-column,
.evidence-column {
  min-width: 0;
  padding: 26px 18px;
  background: #f8f9fb;
}

.task-column {
  border-right: 1px solid var(--line);
}

.evidence-column {
  border-left: 1px solid var(--line);
}

.column-heading,
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.column-heading h2,
.panel-heading h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.task-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.task-card {
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.task-card:hover {
  background: #fff;
}

.task-card[aria-current="true"] {
  border-color: #b9d9ff;
  background: #fff;
  box-shadow: 0 8px 22px rgb(31 72 124 / 8%);
}

.task-card-top,
.task-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 9px;
}

.task-card strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-meta {
  margin-top: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.mini-state,
.state-pill {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8edf4;
  color: #4b5563;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-state="completed"] {
  background: #e0f5eb;
  color: var(--success);
}

[data-state="failed"] {
  background: #fce7e7;
  color: var(--danger);
}

[data-state="limited"] {
  background: #fff0ca;
  color: var(--warning);
}

[data-state="intake"],
[data-state="clues"],
[data-state="candidates"],
[data-state="verification"],
[data-state="report"] {
  background: #e5f1ff;
  color: #005bb8;
}

.empty-state {
  margin: 0;
  padding: 18px 4px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-column {
  min-width: 0;
  padding: 28px;
}

.upload-panel,
.result-panel {
  border: 1px solid #d9dee6;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 10px 35px rgb(40 54 75 / 5%);
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(300px, 1fr);
  gap: 28px;
  padding: 24px;
  background: var(--frost);
  backdrop-filter: blur(18px);
}

.upload-copy h1 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.upload-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.drop-zone,
.preview-shell {
  position: relative;
  grid-column: 1 / -1;
  min-height: 150px;
  overflow: hidden;
  border: 1px dashed #aab4c2;
  border-radius: 14px;
  background: #f8fafc;
}

.drop-zone {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.drop-zone.is-dragging {
  border-color: var(--signal);
  background: #edf6ff;
}

.drop-zone:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgb(10 132 255 / 18%);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: #e5effb;
  color: var(--atlas);
  font-size: 22px;
}

.drop-zone strong {
  font-size: 14px;
}

.drop-zone > span:last-of-type {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.preview-shell img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 260px;
  object-fit: contain;
  background: #eef1f5;
}

.preview-remove {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgb(255 255 255 / 88%);
}

.acknowledgement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--graphite);
  font-size: 12px;
  cursor: pointer;
}

.acknowledgement input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.upload-submit {
  align-self: start;
  white-space: nowrap;
}

.result-panel {
  margin-top: 22px;
  padding: 24px;
}

.state-pill {
  font-size: 10px;
}

.progress-track {
  height: 3px;
  margin: 17px 0 20px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9edf2;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--atlas));
  transition: width 300ms ease;
}

.source-stage {
  position: relative;
  display: grid;
  min-height: 350px;
  overflow: hidden;
  border-radius: 14px;
  background: #11151c;
}

.source-stage > img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.source-placeholder {
  place-self: center;
  padding: 20px;
  color: #8d98a9;
  text-align: center;
}

.source-placeholder span {
  display: block;
  color: #c9d1dc;
  font-size: 24px;
  font-weight: 600;
}

.source-placeholder p {
  margin: 7px 0 0;
  font-size: 13px;
}

.map-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  background: rgb(8 9 11 / 62%);
  color: #fff;
  backdrop-filter: blur(14px);
}

.map-overlay .utility-label {
  color: #8ec8ff;
}

.map-overlay strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clue-strip,
.map-stage,
.report-stage {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.clue-strip h3,
.map-stage h3,
.report-stage h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-list li {
  padding: 9px 7px;
  border-radius: 8px;
  background: #eef1f5;
  color: #707987;
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.stage-list li.is-complete {
  background: #e5f1ff;
  color: #005ebd;
}

.stage-list li.is-current {
  background: var(--obsidian);
  color: #fff;
}

.stage-list li.is-failed {
  background: #fce7e7;
  color: var(--danger);
  font-weight: 700;
}

.stage-list li.is-limited {
  background: #fff0ca;
  color: var(--warning);
  font-weight: 700;
}

.map-stage {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  align-items: center;
}

.map-grid {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%;
  background-image: linear-gradient(#d3e3f5 1px, transparent 1px), linear-gradient(90deg, #d3e3f5 1px, transparent 1px);
  background-size: 15px 15px;
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  border: 1px solid #85b9ed;
  border-radius: 50%;
  content: "";
}

.map-grid::before {
  inset: 18px;
}

.map-grid::after {
  inset: 35px;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgb(10 132 255 / 18%);
}

.map-stage p,
.report-stage p:last-child {
  margin: 4px 0 0;
  color: var(--graphite);
  font-size: 13px;
}

.evidence-column section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.candidate-list,
.evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.candidate-item,
.evidence-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.candidate-item strong,
.evidence-item strong {
  font-size: 13px;
}

.candidate-item p,
.evidence-item span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.evidence-item:hover {
  border-color: #a7cbf2;
}

.event-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.event-item {
  position: relative;
  padding: 0 0 18px 18px;
  border-left: 1px solid #cdd4dd;
}

.event-item::before {
  position: absolute;
  top: 3px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.event-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.event-item span,
.event-item time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 42px;
  }

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

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

  .workbench-grid {
    grid-template-columns: 220px minmax(450px, 1fr);
  }

  .evidence-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .evidence-column section + section {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    padding: 0 10px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding-left: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(100% - 32px, 620px);
    min-height: auto;
    padding: 118px 0 58px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .meridian-card {
    height: 520px;
  }

  .section-shell,
  .responsibility {
    width: min(100% - 32px, 620px);
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
  }

  .section-heading h2,
  .case-copy h2,
  .responsibility h2 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .method-sequence {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid #bfc7d1;
  }

  .method-sequence li,
  .method-sequence li + li {
    min-height: auto;
    padding: 4px 0 34px 26px;
    border-right: 0;
  }

  .method-sequence li::before,
  .method-sequence li + li::before {
    top: 5px;
    left: -4px;
  }

  .method-sequence span {
    margin-bottom: 8px;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .observation-list div {
    grid-template-columns: 82px 1fr;
    gap: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 32px);
  }

  .login-dialog {
    padding: 32px 24px;
  }

  .workbench-header {
    padding: 8px 12px;
  }

  .workbench-header .wordmark small,
  .session-state {
    display: none;
  }

  .workbench-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .workspace-column,
  .evidence-column,
  .result-panel {
    display: contents;
  }

  .upload-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  [data-mobile-order="upload"] {
    order: 1;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }

  .upload-submit,
  .acknowledgement {
    grid-column: 1;
  }

  .panel-heading {
    order: 2;
    padding: 18px 18px 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
  }

  .progress-track {
    order: 3;
    margin: 0;
    border-right: 18px solid #fff;
    border-left: 18px solid #fff;
    background: #e9edf2;
  }

  [data-mobile-order="original"] {
    order: 4;
  }

  .source-stage {
    min-height: 300px;
    border: 18px solid #fff;
    border-top: 14px solid #fff;
    border-radius: 0 0 14px 14px;
  }

  [data-mobile-order="clues"] {
    order: 5;
  }

  [data-mobile-order="candidates"] {
    order: 6;
  }

  [data-mobile-order="map"] {
    order: 7;
  }

  [data-mobile-order="report"] {
    order: 8;
  }

  .clue-strip,
  .map-stage,
  .report-stage,
  .evidence-column > section,
  .task-column {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

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

  .evidence-section {
    order: 9;
  }

  .event-section {
    order: 10;
  }

  .task-column {
    order: 11;
  }

  .evidence-column section + section {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
  }
}

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

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

@supports not (backdrop-filter: blur(1px)) {
  .nav-shell,
  .workbench-header,
  .login-dialog,
  .upload-panel {
    background: #fff;
  }
}
