@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand: #D6142D;
  --brand-strong: #A30F22;
  --header: #4F0A24;
  --ink: #1C1B1A;
  --ink-muted: #55565A;
  --line: #E4E1DA;
  --paper: #FAF8F1;
  --surface: #FFFFFF;

  --sev-critical: #8C1127;
  --sev-high: #B45309;
  --sev-medium: #8A6A00;
  --sev-low: #2F5D8A;
  --sev-clean: #1F7A4D;
  --sev-info: #55565A;
  --brand-tint: #F8E5E8;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;

  --radius: 2px;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-xxl: 32px;

  --content-max: 1280px;
  --gutter: var(--space-5);
  /* Side padding that lines bars up with the centered content column. */
  --edge: max(var(--gutter), calc((100% - var(--content-max)) / 2 + var(--gutter)));
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-md)/1.5 var(--font-ui);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, p, ol, dl, dd { margin: 0; }
h1 { font-size: var(--text-xl); font-weight: 600; line-height: 1.25; }
h2 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Top bar */

.topbar {
  height: 48px;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--header);
  color: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark { width: 26px; height: 26px; }
.brand-ring { fill: none; stroke: var(--paper); stroke-width: 3; }
.brand-handle { fill: none; stroke: var(--paper); stroke-width: 3.5; stroke-linecap: round; }
/* Lighter than --brand so it reads on the dark header. */
.brand-dot { fill: #FF5C70; }
.brand-name { font-size: 16px; }
.brand-parent {
  padding-left: var(--space-2);
  margin-left: var(--space-1);
  border-left: 1px solid rgba(250, 248, 241, 0.35);
  font-size: var(--text-sm);
  font-weight: 400;
  opacity: 0.8;
}
.topbar-session {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  font-size: var(--text-sm);
}
.topbar-session > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar :focus-visible { outline-color: var(--surface); }

.page {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
}

/* Controls */

.button {
  min-height: 40px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 var(--text-md)/1 var(--font-ui);
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.button-primary { background: var(--brand); color: var(--surface); }
.button:disabled {
  cursor: not-allowed;
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-muted);
}
.button-primary:not(:disabled):hover { background: var(--brand-strong); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--ink-muted); }
.button-block { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.button:not(:disabled):active { transform: scale(0.98); }
.button-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 8.5px 8.5px;
  transition: transform 200ms;
}
.button-scan { position: relative; overflow: hidden; }
.button-scan:not(:disabled):hover .button-icon { transform: rotate(-14deg) scale(1.1); }
.button-scan.is-busy:disabled {
  cursor: progress;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--surface);
}
.button-scan.is-busy .button-icon { animation: lens-sweep 1.4s ease-in-out infinite; }
.button-scan.is-busy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35%;
  height: 3px;
  background: var(--surface);
  opacity: 0.7;
  animation: busy-bar 1.4s ease-in-out infinite;
}
.button-scan.is-busy .button-label::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes lens-sweep {
  0%, 100% { transform: translateX(-3px) rotate(-10deg); }
  50% { transform: translateX(3px) rotate(10deg); }
}
@keyframes busy-bar {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
.button.is-done-flash { animation: done-flash 700ms ease-out; }
@keyframes done-flash {
  0% { box-shadow: 0 0 0 0 var(--brand-tint); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.link-button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.message { font-size: var(--text-sm); }
.message-error { color: var(--sev-critical); }
.message-warn {
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--sev-medium);
  background: var(--surface);
}

/* Login */

.login {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 960px) {
  .login { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-7); }
}
.login-copy {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  max-width: 520px;
}
.login h1 { font-size: var(--text-xxl); line-height: 1.15; letter-spacing: -0.01em; }
.eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-strong);
}
.lead { color: var(--ink-muted); font-size: var(--text-lg); line-height: 1.55; }
.checks {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--space-3);
  align-items: baseline;
}
.checks li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  transform: translateY(1px);
}
.login-art {
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Workspace */

.workspace {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 960px) {
  .workspace {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }
}

.intake {
  display: grid;
  gap: var(--space-3);
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: var(--space-5);
  border: 1px dashed var(--ink-muted);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms, background-color 120ms;
}
.drop { flex-direction: column; gap: var(--space-3); }
.drop-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: transform 160ms;
}
.drop:hover, .drop.is-over { border-color: var(--ink); color: var(--ink); }
.drop:hover .drop-icon { transform: translateY(-2px); }
/* Marching ants while a file is dragged over: a nod to the anteater. */
.drop.is-over {
  border-color: transparent;
  background:
    linear-gradient(90deg, var(--brand) 50%, transparent 0) repeat-x 0 0 / 12px 2px,
    linear-gradient(90deg, var(--brand) 50%, transparent 0) repeat-x 0 100% / 12px 2px,
    linear-gradient(0deg, var(--brand) 50%, transparent 0) repeat-y 0 0 / 2px 12px,
    linear-gradient(0deg, var(--brand) 50%, transparent 0) repeat-y 100% 0 / 2px 12px,
    var(--brand-tint);
  animation: ants 600ms linear infinite;
}
.drop.is-over .drop-icon { transform: translateY(-4px) scale(1.08); color: var(--brand-strong); }
@keyframes ants {
  to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px, 0 0; }
}
.drop:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-sm);
}
.file-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.file-size { color: var(--ink-muted); white-space: nowrap; }
.hint { font-size: var(--text-sm); color: var(--ink-muted); }

.intake .button { margin-top: var(--space-2); }

/* Steps */

.steps {
  margin-top: var(--space-3);
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.step {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
}
.step-mark {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink-muted);
}
.step-state { font-size: var(--text-sm); }
.step[data-state="active"] { color: var(--ink); }
.step[data-state="active"] .step-mark { background: var(--brand); border-color: var(--brand); animation: step-pulse 1s ease-in-out infinite; }
@keyframes step-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}
.step[data-state="done"] { color: var(--ink); }
.step[data-state="done"] .step-mark { background: var(--sev-clean); border-color: var(--sev-clean); }
.step[data-state="failed"] { color: var(--sev-critical); }
.step[data-state="failed"] .step-mark { background: var(--sev-critical); border-color: var(--sev-critical); }

/* Report */

.report {
  min-width: 0;
  display: grid;
  gap: var(--space-5);
}
.report-empty, .inspect, .report-problem {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.art-slot { width: min(100%, 540px); margin-bottom: var(--space-2); }
.report-empty-title, .inspect-title, .report-problem-title { font-size: var(--text-lg); font-weight: 600; }
.report-empty-hint, .inspect-hint, .report-problem-hint { color: var(--ink-muted); max-width: 46ch; }
.inspect-title::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.2s steps(4) infinite;
}
.report > * { animation: rise 320ms ease-out both; }

.tone-CLEAN { --tone: var(--sev-clean); }
.tone-LOW { --tone: var(--sev-low); }
.tone-MEDIUM { --tone: var(--sev-medium); }
.tone-HIGH { --tone: var(--sev-high); }
.tone-CRITICAL { --tone: var(--sev-critical); }
.tone-INFO { --tone: var(--sev-info); }

.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-5);
  row-gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.verdict > * { grid-column: 1; }
.verdict > .verdict-art {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 210px;
  margin: calc(var(--space-3) * -1) 0;
}
@media (max-width: 640px) {
  .verdict > .verdict-art { width: 120px; grid-row: 1; margin: 0; }
}
.verdict-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-5);
}
.verdict-level {
  font-size: var(--text-xxl);
  font-weight: 600;
  line-height: 1.1;
  color: var(--tone);
}
.verdict-score { font-size: var(--text-lg); }

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.scale li {
  padding-top: var(--space-2);
  border-top: 4px solid var(--line);
}
.scale li { position: relative; }
.scale li.is-current { color: var(--ink); font-weight: 500; }
.scale li.is-current::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tone);
  transform-origin: left;
  animation: grow-x 600ms 150ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.findings tbody { animation: rise 320ms ease-out both; }
.findings tbody:nth-of-type(2) { animation-delay: 80ms; }
.findings tbody:nth-of-type(3) { animation-delay: 160ms; }
.findings tbody:nth-of-type(4) { animation-delay: 240ms; }
.findings tbody:nth-of-type(5) { animation-delay: 320ms; }
.finding-detail:not([hidden]) td { animation: rise 200ms ease-out both; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.meta span { overflow-wrap: anywhere; }

.warnings { display: grid; gap: var(--space-2); }

.report-clean { color: var(--sev-clean); font-weight: 500; }

.findings-count { font-size: var(--text-lg); font-weight: 600; }

.findings {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--text-sm);
}
.findings th, .findings td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.findings thead th {
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--paper);
}
.findings .group-row th {
  padding-top: var(--space-4);
  font-weight: 600;
  color: var(--tone);
  background: var(--surface);
}
.findings .col-severity { width: 128px; }
.findings .col-location { width: 30%; }

.sev {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--tone);
  font-weight: 500;
  white-space: nowrap;
}
.sev::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--tone);
}

.row-toggle {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 var(--text-sm)/1.45 var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.row-toggle::after {
  content: "+";
  margin-left: var(--space-2);
  color: var(--ink-muted);
}
.row-toggle[aria-expanded="true"]::after { content: "-"; }
.row-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }

.finding-location { color: var(--ink-muted); overflow-wrap: anywhere; }

.finding-detail td {
  padding: var(--space-3) var(--space-3) var(--space-4);
  background: var(--paper);
}
.finding-detail dl { display: grid; gap: var(--space-2); }
.finding-detail dt { font-weight: 500; color: var(--ink-muted); }
.finding-detail dd + dt { margin-top: var(--space-2); }
.evidence {
  font: 400 var(--text-sm)/1.55 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-4) var(--edge);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  :root { --gutter: var(--space-4); }
  .page { padding: var(--space-5) var(--gutter) var(--space-6); }
  .findings .col-location, .findings .finding-location { display: none; }
  .findings .col-severity { width: auto; }
}

@media print {
  body { background: var(--surface); }
  .topbar, .intake, .footer, .report-actions, #config-error, .verdict-art { display: none !important; }
  .report > *, .findings tbody { animation: none !important; }
  .page { padding: 0; max-width: none; }
  .workspace { display: block; }
  .finding-detail { display: table-row !important; }
  .row-toggle::after { content: none; }
  .findings thead th, .finding-detail td { background: var(--surface); }
  .findings tr { break-inside: avoid; }
}

/* The hound: a bloodhound on the trail, magnifier in its mouth */

.hound {
  --tan: #B9743F;
  --tan-shade: #985A2C;
  --tan-light: #D9A06A;
  --saddle: #2E211C;
  --ear: #6B3A1E;
  --ear-fold: #4A2412;
  --ear-light: #8A5230;
  --far: #7E4A24;
  --nose: #1F1512;
  --haw: #C25A5E;
  --hat-base: #4F0A24;
  --hat-band: #8C1127;
  --hat-line: #D6142D;
  --hat-brim: #3A0719;
  display: block;
  width: 100%;
  height: auto;
}
.hound .hound-tan { fill: var(--tan); }
.hound .hound-tan-shade { fill: var(--tan-shade); }
.hound .hound-tan-light { fill: var(--tan-light); }
.hound .hound-saddle { fill: var(--saddle); }
.hound .hound-far { fill: var(--far); }
.hound .hound-flew { fill: var(--tan-shade); }
.hound .hound-ground { fill: var(--line); }
.hound .hound-ear-light { fill: var(--ear-light); }
.hound .hound-hat-flap { fill: none; stroke: var(--hat-brim); stroke-width: 1.4; opacity: 0.7; }
.hound .hound-ear-fill { fill: var(--ear); }
.hound .hound-ear-fold { fill: none; stroke: var(--ear-fold); stroke-width: 2.6; stroke-linecap: round; opacity: 0.8; }
.hound .hound-wrinkle { fill: none; stroke: var(--tan-shade); stroke-width: 2.2; stroke-linecap: round; }
.hound .hound-haw { fill: none; stroke: var(--haw); stroke-width: 2.2; stroke-linecap: round; }
.hound .hound-iris { fill: var(--nose); }
.hound .hound-glint { fill: var(--surface); }
.hound .hound-lid { fill: var(--tan-shade); }
.hound .hound-happy { fill: none; stroke: var(--nose); stroke-width: 2.4; stroke-linecap: round; display: none; }
.hound .hound-nose-fill { fill: var(--nose); }
.hound .hound-nose-glint { fill: var(--surface); opacity: 0.5; }
.hound .hound-mouth { fill: none; stroke: var(--nose); stroke-width: 2; stroke-linecap: round; }
.hound .hound-toes { fill: none; stroke: var(--tan-shade); stroke-width: 1.6; stroke-linecap: round; }
.hound .hound-collar { fill: var(--hat-base); }
.hound .hound-tag { fill: var(--brand); }
.hound .hound-check-base { fill: var(--hat-base); }
.hound .hound-check-band { fill: var(--hat-band); opacity: 0.85; }
.hound .hound-check-line { fill: none; stroke: var(--hat-line); stroke-width: 0.9; opacity: 0.8; }
.hound .hound-hat-brim { fill: var(--hat-brim); }
.hound .hound-hat-shade { fill: var(--hat-brim); opacity: 0.5; }
.hound .hound-hat-bow { fill: var(--hat-line); }
.hound .hound-scent path { fill: none; stroke: var(--ink-muted); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }

.hound .hound-paper { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.hound .hound-text text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-muted); }
.hound .hound-text-zoom text { fill: var(--ink); }
.hound .hound-bad { fill: var(--brand); }
.hound .hound-glass { fill: var(--surface); }
.hound .hound-ring { fill: none; stroke: var(--hat-base); stroke-width: 4; }
.hound .hound-handle { fill: none; stroke: var(--hat-base); stroke-width: 6; stroke-linecap: round; }
.hound .hound-lens-glint { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; opacity: 0.9; }

.hound .hound-badge { display: none; }
.hound.is-portrait .hound-ground { display: inline; }
.hound.is-portrait .hound-strip, .hound.is-portrait .hound-scent, .hound.is-portrait .hound-text-zoom { display: none; }
.hound .hound-badge path { fill: none; stroke: var(--surface); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.hound .hound-badge-alert circle { fill: var(--brand); }
.hound .hound-badge-happy circle { fill: var(--sev-clean); }
.hound .hound-badge-puzzled circle { fill: var(--ink-muted); }

/* Pivots, in view box units */
.hound .hound-tail, .hound .hound-head, .hound .hound-ear, .hound .hound-eye,
.hound .hound-nose, .hound .hound-body, .hound .hound-scent path, .hound .hound-badge,
.hound .hound-text { transform-box: view-box; }
.hound .hound-tail { transform-origin: 142px 96px; }
.hound .hound-head { transform-origin: 264px 112px; }
.hound .hound-ear { transform-origin: 291px 128px; }
.hound .hound-eye { transform-origin: 314px 135px; }
.hound .hound-nose { transform-origin: 347px 181px; }
.hound .hound-body { transform-origin: 180px 190px; }
.hound .hound-badge { transform-origin: 300px 62px; }
.hound .hound-scent path { transform-origin: 346px 196px; }

/* Idle: tail sways, the nose keeps working */
.hound.is-idle .hound-tail { animation: hound-tail 2.8s ease-in-out infinite; }
.hound.is-idle .hound-nose { animation: hound-sniff 2.4s ease-in-out infinite; }
.hound.is-idle .hound-eye, .hound.is-inspecting .hound-eye { animation: hound-blink 5s infinite; }
.hound.is-idle .hound-ear { animation: hound-ear 4s ease-in-out infinite; }

/* Inspecting: the document runs under the lens, the hound sniffs it */
.hound.is-inspecting .hound-text { animation: hound-scroll 22s linear infinite; }
.hound.is-inspecting .hound-nose { animation: hound-sniff 0.7s ease-in-out infinite; }
.hound.is-inspecting .hound-head { animation: hound-nod 1.4s ease-in-out infinite; }
.hound.is-inspecting .hound-ear { animation: hound-ear 1.4s ease-in-out infinite; }
.hound.is-inspecting .hound-tail { animation: hound-tail 1.2s ease-in-out infinite; }
.hound.is-inspecting .hound-scent path { animation: hound-scent 1.6s ease-out infinite; }
.hound.is-inspecting .hound-scent path + path { animation-delay: 0.8s; }
.hound.is-inspecting .hound-ring { animation: hound-ring 22s linear infinite; }
.hound.is-inspecting .hound-badge-alert { display: inline; animation: hound-badge-sync 22s linear infinite; }

/* Results */
.hound.is-alert .hound-ring { stroke: var(--brand); }
.hound.is-alert .hound-tail { transform: rotate(-12deg); }
.hound.is-alert .hound-ear { transform: rotate(-10deg); }
.hound.is-alert .hound-badge-alert { display: inline; animation: hound-pop 420ms cubic-bezier(.3, 1.6, .5, 1) both; }
.hound.is-happy .hound-iris, .hound.is-happy .hound-glint, .hound.is-happy .hound-lid, .hound.is-happy .hound-haw { display: none; }
.hound.is-happy .hound-happy { display: inline; }
.hound.is-happy .hound-tail { animation: hound-wag 0.5s ease-in-out infinite; }
.hound.is-happy .hound-badge-happy { display: inline; animation: hound-pop 420ms cubic-bezier(.3, 1.6, .5, 1) both; }
.hound.is-puzzled .hound-head { transform: rotate(-5deg); }
.hound.is-puzzled .hound-tail { transform: rotate(14deg); }
.hound.is-puzzled .hound-badge-puzzled { display: inline; animation: hound-pop 420ms cubic-bezier(.3, 1.6, .5, 1) both; }

@keyframes hound-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-1238.4px); }
}
@keyframes hound-tail {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-8deg); }
}
@keyframes hound-wag {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(6deg); }
}
@keyframes hound-sniff {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2, 1.12); }
}
@keyframes hound-blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
@keyframes hound-ear {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(3deg); }
}
@keyframes hound-nod {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(1.6deg); }
}
@keyframes hound-scent {
  0% { opacity: 0; transform: translateY(4px); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-10px); }
}
/* The malicious fragment is under the lens from 17% to 45% of the loop. */
@keyframes hound-ring {
  0%, 16.9% { stroke: var(--hat-base); }
  17%, 45% { stroke: var(--brand); }
  45.1%, 100% { stroke: var(--hat-base); }
}
@keyframes hound-badge-sync {
  0%, 18% { transform: scale(0); }
  20% { transform: scale(1.15); }
  22%, 43% { transform: scale(1); }
  45%, 100% { transform: scale(0); }
}
@keyframes hound-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hound, .hound * { animation: none !important; }
  .hound.is-inspecting .hound-badge-alert { display: none; }
}

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

.footer > span { white-space: nowrap; }
