:root {
  --ink: #0c2931;
  --midnight: #081c22;
  --paper: #edf0ef;
  --white: #ffffff;
  --fog: #d7dcdb;
  --slate: #52676d;
  --orange: #ff810a;
  --pass: #13766f;
  --warn: #b96500;
  --fail: #bd3d48;
  --unknown: #7b878a;
  --line: rgba(12, 41, 49, 0.17);
  --soft-line: rgba(12, 41, 49, 0.09);
  --frame: 1520px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --display: "Arial Narrow", "Aptos Display", "Helvetica Neue", sans-serif;
  --body: "Aptos", "Segoe UI", system-ui, sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--soft-line) 50%, transparent calc(50% + .5px)),
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.masthead,
main,
footer {
  width: min(100%, var(--frame));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-family: var(--utility);
  font-size: .7rem;
  letter-spacing: 0;
}

.method-link,
.public-nav a {
  padding-block: 8px;
  color: var(--slate);
  font-size: .83rem;
  text-underline-offset: 5px;
}

.public-nav { display: flex; align-items: center; gap: 24px; }
.public-nav a { color: var(--slate); }
.public-nav a:last-child { padding: 9px 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.public-nav a:last-child:hover { border-color: var(--ink); background: var(--white); }

.intake {
  min-height: min(760px, calc(100svh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  border-bottom: 1px solid var(--line);
}

.intake__thesis,
.intake__action {
  padding-block: clamp(70px, 10vw, 150px);
}

.intake__thesis {
  padding-right: clamp(30px, 7vw, 110px);
  border-right: 1px solid var(--line);
}

.intake__action {
  display: flex;
  padding-left: clamp(30px, 7vw, 110px);
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--slate);
  font-family: var(--utility);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { overflow-wrap: anywhere; }

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .9;
}

h1 { font-size: clamp(4rem, 9.4vw, 9rem); }
h2 { font-size: clamp(3.1rem, 7vw, 6.7rem); }

.lede {
  max-width: 610px;
  margin: clamp(34px, 5vw, 72px) 0 0;
  color: var(--slate);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.url-form label {
  display: block;
  margin-bottom: 13px;
  font-size: .86rem;
  font-weight: 750;
}

.url-form__row {
  position: relative;
  border-bottom: 2px solid var(--ink);
}

.url-form input {
  width: 100%;
  min-height: 72px;
  padding: 12px 180px 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -.035em;
}

.url-form input::placeholder { color: #92a09f; }
.url-form__row:focus-within { border-color: var(--orange); }

.url-form button {
  position: absolute;
  right: 0;
  bottom: 10px;
  min-height: 50px;
  display: inline-flex;
  padding: 0 18px;
  border: 0;
  align-items: center;
  gap: 12px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 760;
}

.url-form button:hover { background: var(--orange); color: var(--midnight); }
.url-form button:disabled { cursor: wait; opacity: .55; }
.url-form button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.form-message {
  margin: 13px 0 0;
  color: var(--fail);
  font-size: .86rem;
  font-weight: 680;
}

.scope-list {
  margin: clamp(52px, 9vw, 120px) 0 0;
  border-top: 1px solid var(--line);
}

.scope-list div,
.report-facts div {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
}

.scope-list dt,
.report-facts dt { color: var(--slate); font-size: .78rem; }
.scope-list dd,
.report-facts dd { margin: 0; font-family: var(--utility); font-size: .74rem; font-weight: 700; text-align: right; text-transform: uppercase; }

.scan {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(45px, 9vw, 150px);
}

.scan__instrument {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.scan__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px);
  background-size: 10% 10%;
}

.scan__grid::after {
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  inset: 32%;
  opacity: .3;
}

.scan__beam {
  position: absolute;
  z-index: 2;
  top: -16%;
  right: 0;
  left: 0;
  height: 16%;
  border-bottom: 2px solid var(--orange);
  background: linear-gradient(180deg, transparent, rgba(255, 129, 10, .18));
  animation: scan-beam 2.3s cubic-bezier(.65, 0, .35, 1) infinite;
}

.scan__status {
  max-width: 620px;
  margin: 38px 0 0;
  color: var(--slate);
  font-size: 1.1rem;
}

.report { padding-top: clamp(70px, 9vw, 130px); }

.report__head {
  display: flex;
  padding-bottom: clamp(45px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.report__head h2 { max-width: 850px; }

.report__url {
  display: inline-block;
  max-width: min(680px, 85vw);
  margin-top: 26px;
  overflow: hidden;
  color: var(--slate);
  font-family: var(--utility);
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report__actions { display: flex; gap: 10px; flex-shrink: 0; }
.quiet-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 740;
}
.quiet-button:hover { border-color: var(--ink); background: var(--white); }

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, .42fr);
  border-bottom: 1px solid var(--line);
}

.score {
  min-width: 0;
  padding: clamp(35px, 5vw, 70px) clamp(28px, 5vw, 70px) clamp(35px, 5vw, 64px) 0;
  border-right: 1px solid var(--line);
}
.score + .score { padding-left: clamp(28px, 5vw, 70px); }
.score__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.score h3 { margin: 0; font-size: .96rem; }
.score output { font-family: var(--utility); font-size: clamp(1.5rem, 2.7vw, 2.7rem); font-weight: 760; }
.score p { max-width: 440px; margin: 25px 0 0; color: var(--slate); font-size: .88rem; }

.score__ruler {
  --position: calc(var(--score, 0) * 1%);
  position: relative;
  height: 34px;
  margin-top: 24px;
  border-block: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%);
}
.score__ruler::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: var(--position);
  background: var(--ink);
  content: "";
}
.score__ruler i {
  position: absolute;
  z-index: 2;
  top: -5px;
  bottom: -5px;
  left: clamp(0px, var(--position), calc(100% - 2px));
  width: 2px;
  background: var(--orange);
}
.report-facts { margin: 0; padding: clamp(35px, 5vw, 70px) 0 clamp(35px, 5vw, 64px) clamp(28px, 4vw, 54px); }

.report__body {
  display: grid;
  grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.priorities {
  padding: clamp(55px, 7vw, 100px) clamp(30px, 5vw, 75px) clamp(55px, 7vw, 100px) 0;
  border-right: 1px solid var(--line);
}

.priorities h3,
.ledger h3,
.limits h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.priorities ol { margin: 45px 0 0; padding: 0; list-style: none; }
.priorities li { display: grid; grid-template-columns: 30px 1fr; padding: 24px 0; border-top: 1px solid var(--line); gap: 16px; }
.priorities li > span { color: var(--orange); font-family: var(--utility); font-size: .7rem; font-weight: 800; }
.priorities strong { display: block; font-size: .91rem; }
.priorities li p { margin: 8px 0 0; color: var(--slate); font-size: .82rem; line-height: 1.55; }

.ledger { padding: clamp(55px, 7vw, 100px) 0 clamp(55px, 7vw, 100px) clamp(30px, 6vw, 90px); }
.ledger__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; color: var(--slate); font-size: .67rem; }
.legend span { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--unknown); }
.status-dot--pass { background: var(--pass); }
.status-dot--warn { background: var(--warn); }
.status-dot--fail { background: var(--fail); }

.finding-group { margin-top: 65px; }
.finding-group__title {
  margin: 0;
  padding: 0 0 13px 24px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--utility);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finding {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.finding__marker { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--unknown); }
.finding--pass .finding__marker { background: var(--pass); }
.finding--warn .finding__marker { background: var(--warn); }
.finding--fail .finding__marker { background: var(--fail); }
.finding > div > div { display: flex; justify-content: space-between; gap: 20px; }
.finding h4 { margin: 0; font-size: .93rem; }
.finding__status { color: var(--slate); font-family: var(--utility); font-size: .65rem; text-transform: uppercase; }
.finding__evidence { margin: 9px 0 0; font-size: .84rem; }
.finding__recommendation { margin: 5px 0 0; color: var(--slate); font-size: .79rem; }
.finding small { display: block; margin-top: 10px; color: var(--unknown); font-family: var(--utility); font-size: .61rem; text-transform: uppercase; }

.limits {
  display: grid;
  grid-template-columns: minmax(250px, .55fr) 1fr;
  padding-block: clamp(70px, 10vw, 145px);
  gap: clamp(45px, 10vw, 150px);
}
.limits .eyebrow { grid-column: 1 / -1; margin-bottom: -15px; }
.limits ul { margin: 0; padding: 0; list-style: none; }
.limits li { position: relative; padding: 18px 0 18px 25px; border-top: 1px solid var(--line); color: var(--slate); font-size: .9rem; }
.limits li::before { position: absolute; left: 0; color: var(--orange); content: "×"; font-family: var(--utility); font-weight: 800; }

.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(80px, 12vw, 180px);
  border-top: 1px solid var(--line);
  gap: clamp(50px, 10vw, 150px);
}
.method h2 { font-size: clamp(3rem, 6.5vw, 6.4rem); }
.method__copy { align-self: end; }
.method__copy p { max-width: 650px; margin: 0; color: var(--slate); font-size: clamp(1rem, 1.45vw, 1.23rem); }
.method__copy p + p { margin-top: 28px; }

footer {
  min-height: 90px;
  display: flex;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: var(--slate);
  font-family: var(--utility);
  font-size: .65rem;
  text-transform: uppercase;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@keyframes scan-beam {
  0% { transform: translateY(0); }
  50%, 100% { transform: translateY(725%); }
}

@media (max-width: 980px) {
  body { background: var(--paper); }
  .intake { grid-template-columns: 1fr; }
  .intake__thesis { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .intake__action { padding-left: 0; }
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .report-facts { grid-column: 1 / -1; padding-left: 0; }
  .score:nth-child(2) { border-right: 0; }
  .report__body { grid-template-columns: 1fr; }
  .priorities { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ledger { padding-left: 0; }
}

@media (max-width: 700px) {
  .masthead { min-height: 68px; }
  .brand { font-size: .69rem; }
  .method-link, .public-nav a:not(:last-child) { display: none; }
  .intake { min-height: 0; }
  .intake__thesis, .intake__action { padding-block: 58px; }
  h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  h2 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .url-form input { min-height: 66px; padding-right: 0; }
  .url-form button { position: static; width: 100%; min-height: 54px; margin-top: 12px; justify-content: space-between; }
  .scope-list { margin-top: 58px; }
  .scan { min-height: calc(100svh - 68px); grid-template-columns: 1fr; padding-block: 50px; gap: 40px; }
  .scan__instrument { width: min(72vw, 330px); }
  .report__head { align-items: flex-start; flex-direction: column; }
  .report__actions { width: 100%; }
  .quiet-button { flex: 1; }
  .scoreboard { grid-template-columns: 1fr; }
  .score, .score + .score { padding: 38px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-facts { grid-column: auto; }
  .ledger__head { align-items: flex-start; flex-direction: column; }
  .legend { grid-template-columns: 1fr 1fr; }
  .finding > div > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .limits, .method { grid-template-columns: 1fr; gap: 45px; }
  .limits .eyebrow { grid-column: auto; margin-bottom: -15px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan__beam { animation-duration: 7s; }
}
