/* TrueSecurix design system.
   Subject: examining the evidence a borrower submits. The page reads like an examiner's
   working sheet: cool paper, ink, one accent in the violet-blue of an Indian attestation
   stamp, and three state colours used only for outcomes (pass, review, flag), each also
   carried by a shape so state survives monochrome print and colour blindness.
   Type: Archivo (wide, for headings), IBM Plex Sans (text), IBM Plex Mono (data).
   Every colour is a token; dark theme redefines tokens only. */

@import url("/assets/fonts/type.css");

:root {
  /* Neutrals are cool navy greys taken from the logo's ink (#0B0F19); the accent is the logo's
     indigo, and its cyan track is the second signal colour. */
  --paper: #f5f6fa;
  --sheet: #ffffff;
  --sheet-2: #eef0f6;
  --sheet-3: #e2e5ef;
  --ink: #0b0f19;
  --ink-2: #353c51;
  --muted: #5d6479;
  --rule: #d9dde8;
  --rule-strong: #0b0f19;
  --stamp: #4f46e5;
  --stamp-hover: #4338ca;
  --stamp-ink: #ffffff;
  --stamp-wash: #ebeafd;
  --signal: #0891b2;
  --pass: #17784a;
  --pass-wash: #dcf2e6;
  --review: #9a5b06;
  --review-wash: #fcefd9;
  --flag: #c0281a;
  --flag-wash: #fde4e0;
  --code-bg: #0b0f19;
  --code-ink: #e3e6f0;
  --code-muted: #8b92a8;
  --code-key: #a5a1fa;
  --code-str: #67e8f9;
  --shadow: 0 1px 0 rgba(11, 15, 25, .05), 0 18px 40px -22px rgba(11, 15, 25, .28);
  --focus: #4f46e5;

  /* The logo itself, for the few places that carry the brand: two tracks, never recoloured. */
  --track-a: linear-gradient(135deg, #4f46e5, #7c3aed);
  --track-b: linear-gradient(135deg, #06b6d4, #00f2fe);
  /* Night: the brand's dark ground, the same in both themes (hero and closing band). */
  --night: #0b0f19;
  --night-2: #121a2e;
  --night-rule: #232c45;
  --night-ink: #eef0f7;
  --night-muted: #9ca3b8;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Type scale: major third (1.25) on a 16px base. */
  --t-xs: .8rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --t-4xl: 3.052rem;
  --t-5xl: 3.815rem;
  --t-6xl: 4.768rem;

  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --gutter: 16px;
  --max: 1600px;
  color-scheme: light;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: clamp(40px, 4.5vw, 80px); } }

:root[data-theme="dark"] {
  --paper: #0b0f19;
  --sheet: #121829;
  --sheet-2: #1a2238;
  --sheet-3: #242d47;
  --ink: #e9ebf3;
  --ink-2: #bcc1d1;
  --muted: #8b92a8;
  --rule: #262f4a;
  --rule-strong: #e9ebf3;
  --stamp: #8f8af8;
  --stamp-hover: #aaa6fb;
  --stamp-ink: #0b0f19;
  --stamp-wash: #221f4d;
  --signal: #22d3ee;
  --pass: #4ad08a;
  --pass-wash: #10291d;
  --review: #f0b04f;
  --review-wash: #33260d;
  --flag: #ff7d6e;
  --flag-wash: #3a1814;
  --code-bg: #070a12;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .8);
  --focus: #8f8af8;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0f19;
    --sheet: #121829;
    --sheet-2: #1a2238;
    --sheet-3: #242d47;
    --ink: #e9ebf3;
    --ink-2: #bcc1d1;
    --muted: #8b92a8;
    --rule: #262f4a;
    --rule-strong: #e9ebf3;
    --stamp: #8f8af8;
    --stamp-hover: #aaa6fb;
    --stamp-ink: #0b0f19;
    --stamp-wash: #221f4d;
    --signal: #22d3ee;
    --pass: #4ad08a;
    --pass-wash: #10291d;
    --review: #f0b04f;
    --review-wash: #33260d;
    --flag: #ff7d6e;
    --flag-wash: #3a1814;
    --code-bg: #070a12;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .8);
    --focus: #8f8af8;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--stamp); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--stamp-wash); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .3em; }
code, kbd, samp, pre { font-family: var(--f-mono); font-size: .92em; }
:not(pre) > code { background: var(--sheet-2); padding: .1em .35em; border-radius: var(--r-s); }
.num, td.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { top: 8px; color: var(--paper); }

/* Headings: wide Archivo, tight, the type is the decoration. */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.2rem, 5.4vw, var(--t-5xl)); font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.7rem, 3.4vw, var(--t-3xl)); }
h3, .h3 { font-size: var(--t-xl); font-stretch: 108%; }
h4, .h4 { font-size: var(--t-lg); font-stretch: 104%; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.6vw, var(--t-lg)); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 68ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; font-size: var(--t-2xl); }
.prose h3 { margin-top: 1.8rem; }
.prose li { padding-left: .1em; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tight { padding: clamp(32px, 5vw, 64px) 0; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.cols { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col, 260px)), 1fr)); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* A margin note column on wide screens, as in a working sheet. */
.annotated { display: grid; gap: 12px; }
@media (min-width: 1000px) { .annotated { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } }
.annotated > .note { font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--rule-strong); padding-top: 10px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head { transition: background .2s, border-color .2s; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
/* The logo: the brand mark (two tracks carrying T and S) and the wordmark, True regular and
   Securix extra bold, as the brand guide sets it. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 400; font-stretch: 108%; font-size: 1.22rem; letter-spacing: -.015em; line-height: 1; white-space: nowrap; }
.brand .wordmark b { font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: auto; flex: none; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-s); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sheet-2); }
.head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.head-actions .btn-quiet { display: none; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .head-actions .btn-quiet { display: inline-flex; }
  .menu { display: none; }
}
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-s); font-size: var(--t-sm); font-weight: 500; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 8px; gap: 2px; }
.menu-panel a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-s); }
.menu-panel a:hover { background: var(--sheet-2); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--rule-strong); margin-top: 0; padding: 48px 0 32px; background: var(--paper); font-size: var(--t-sm); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot-grid h2 { font-size: var(--t-sm); font-family: var(--f-text); font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-bottom: .6em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); }
.theme-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-s); overflow: hidden; }
.theme-switch button { background: none; border: 0; color: var(--ink-2); padding: 6px 10px; font: inherit; font-size: var(--t-xs); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- buttons */
.btn, .btn-quiet, .btn-ghost, .btn-danger {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 16px; border-radius: var(--r-s);
  font: 600 var(--t-sm)/1 var(--f-text); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn { background: var(--stamp); color: var(--stamp-ink); }
.btn:hover { background: var(--stamp-hover); color: var(--stamp-ink); }
.btn-quiet { background: var(--sheet); color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sheet-2); color: var(--ink); }
.btn-danger { background: var(--sheet); color: var(--flag); border-color: color-mix(in srgb, var(--flag) 40%, var(--rule)); }
.btn-danger:hover { background: var(--flag-wash); color: var(--flag); }
.btn.big, .btn-quiet.big { --h: 50px; padding: 0 22px; font-size: var(--t-md); }
.btn.sm, .btn-quiet.sm, .btn-ghost.sm, .btn-danger.sm { --h: 32px; padding: 0 10px; font-size: var(--t-xs); }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.hint { font-size: var(--t-xs); color: var(--muted); }
.err { font-size: var(--t-sm); color: var(--flag); }
input:not([type]), input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], input[type="tel"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--r-s);
  background: var(--sheet); color: var(--ink); font: 400 var(--t-md)/1.4 var(--f-text);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--stamp); }
.code-input { font-family: var(--f-mono); font-size: 1.4rem; letter-spacing: .3em; text-align: center; }

/* ---------------------------------------------------------------- surfaces */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); }
.sheet.pad { padding: clamp(18px, 2.4vw, 28px); }
.sheet-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.sheet-head h2, .sheet-head h3 { margin: 0; font-size: var(--t-lg); }
.sheet-body { padding: 20px; }
.sheet-foot { padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--sheet-2); border-radius: 0 0 var(--r-m) var(--r-m); }
.well { background: var(--sheet-2); border-radius: var(--r-m); padding: 16px 18px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--rule); background: var(--sheet); font-size: var(--t-sm); }
.notice.warn { background: var(--review-wash); border-color: color-mix(in srgb, var(--review) 35%, transparent); }
.notice.bad { background: var(--flag-wash); border-color: color-mix(in srgb, var(--flag) 35%, transparent); }
.notice.good { background: var(--pass-wash); border-color: color-mix(in srgb, var(--pass) 35%, transparent); }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* ---------------------------------------------------------------- outcome badges
   State is carried three ways: word, colour and shape (circle pass, diamond review,
   square flag), so it reads in greyscale and for colour-blind readers. */
.verdict { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.verdict::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; }
.verdict.pass { color: var(--pass); background: var(--pass-wash); }
.verdict.pass::before { border-radius: 50%; }
.verdict.review { color: var(--review); background: var(--review-wash); }
.verdict.review::before { transform: rotate(45deg) scale(.86); }
.verdict.flag { color: var(--flag); background: var(--flag-wash); }
.verdict.flag::before { border-radius: 1px; }
.verdict.big { font-size: var(--t-sm); padding: 6px 14px 6px 12px; }
.verdict.big::before { width: 11px; height: 11px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-s); background: var(--sheet-2); color: var(--ink-2); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; }
.tag.stamp { background: var(--stamp-wash); color: var(--stamp); }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: var(--t-xs); padding: 10px 12px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--sheet-2); }
.table tr.clickable:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.table .truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: var(--t-md); margin-bottom: 4px; }

/* ---------------------------------------------------------------- code */
.code { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r-m); padding: 16px 18px; overflow-x: auto; font: 400 .86rem/1.65 var(--f-mono); }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-muted); }
.code-tabs { display: flex; gap: 2px; margin-bottom: -1px; }
.code-tabs button { background: none; border: 0; padding: 8px 12px; color: var(--muted); font: 500 var(--t-xs) var(--f-text); cursor: pointer; border-radius: var(--r-s) var(--r-s) 0 0; }
.code-tabs button[aria-selected="true"] { background: var(--code-bg); color: var(--code-ink); }
.copy { float: right; margin: -6px -8px 0 8px; background: transparent; color: var(--code-muted); border: 1px solid #ffffff22; border-radius: var(--r-s); font: 500 var(--t-xs) var(--f-text); padding: 4px 8px; cursor: pointer; }
.copy:hover { color: var(--code-ink); border-color: #ffffff55; }

/* ---------------------------------------------------------------- figures (ledger rows, not cards) */
.ledger { display: grid; border-top: 1px solid var(--rule-strong); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger-row .fig { font: 700 var(--t-2xl)/1 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.ledger-row .what { color: var(--ink-2); }
.ledger-row .what small { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 2px; }
.figures { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.figures > div { padding: 16px 16px 16px 0; }
.figures > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.figures .fig { display: block; font: 700 var(--t-2xl)/1.05 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.figures .what { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }

/* ---------------------------------------------------------------- the examination slip (signature) */
.slip { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--r-m); position: relative; box-shadow: var(--shadow); }
.slip-photo { position: relative; border-bottom: 1px solid var(--rule-strong); background: var(--sheet-2); overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; }
.slip-photo img { width: 100%; height: auto; }
.slip-photo .box { position: absolute; border: 2px solid var(--flag); box-shadow: 0 0 0 1px #fff8; border-radius: 1px; }
.slip-photo .box.faint { border-style: dashed; border-width: 1.5px; opacity: .75; }
.slip-photo .box > span { position: absolute; left: -2px; bottom: calc(100% + 2px); background: var(--flag); color: #fff; font: 600 10px/1 var(--f-mono); padding: 3px 5px; white-space: nowrap; }
.slip-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.slip-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: var(--t-sm); }
.slip-line .k { color: var(--muted); }
.slip-line .v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.slip .credit { font-size: 11px; color: var(--muted); line-height: 1.4; }
.stamp-mark {
  position: absolute; left: 14px; top: 14px; transform: rotate(-4deg);
  font: 800 var(--t-sm)/1 var(--f-display); font-stretch: 125%; letter-spacing: .04em;
  padding: 7px 10px 6px; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px;
  background: color-mix(in srgb, var(--sheet) 88%, transparent); border-radius: 2px;
}
.stamp-mark.pass { color: var(--pass); }
.stamp-mark.review { color: var(--review); }
.stamp-mark.flag { color: var(--flag); }

/* Score bars for the four classes. */
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: var(--t-xs); }
.bar .track { height: 8px; background: var(--sheet-3); border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--ink-2); }
.bar.top .fill { background: var(--stamp); }
.bar .pct { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tabs, dialog, toast */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: 500 var(--t-sm) var(--f-text); color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
dialog { border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--sheet); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 16, 14, .45); }
dialog .dlg-head { padding: 18px 20px 0; }
dialog .dlg-body { padding: 14px 20px 20px; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--sheet-2); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(620px, 100vw); background: var(--sheet); border-left: 1px solid var(--rule); z-index: 60; overflow-y: auto; box-shadow: var(--shadow); transform: translateX(100%); transition: transform .22s ease; }
.drawer.open { transform: none; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(10, 16, 14, .4); z-index: 55; display: none; }
.drawer-scrim.open { display: block; }
.toast-zone { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 14px; border-radius: var(--r-m); font-size: var(--t-sm); box-shadow: var(--shadow); }
.toast.bad { background: var(--flag); color: #fff; }

/* ---------------------------------------------------------------- misc */
.kbd { font-family: var(--f-mono); font-size: var(--t-xs); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-s); padding: 1px 5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ok-text { color: var(--pass); }
.warn-text { color: var(--review); }
.bad-text { color: var(--flag); }
.skeleton { background: linear-gradient(90deg, var(--sheet-2), var(--sheet-3), var(--sheet-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-s); min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sheet-3); font-size: 11px; font-weight: 600; }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--t-xs); }
.divider-label::before, .divider-label::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

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

@media print {
  .site-head, .site-foot, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- landing */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.2rem; }
.hero .cluster { margin-top: 1.8rem; }
.proof-line { margin-top: 1.6rem; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); max-width: 52ch; }
.proof-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.exhibits { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) {
  .exhibits { grid-template-columns: 1fr 1fr; }
  .exhibits > .slip:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
.exhibits .slip:nth-child(2) .slip-line .v { font-size: var(--t-md); font-weight: 500; }
.class-table td:first-child { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: var(--t-md); white-space: nowrap; }
.outcomes { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 820px) { .outcomes { grid-template-columns: repeat(3, 1fr); } .outcomes > div + div { border-left: 1px solid var(--rule); } }
.outcomes > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .outcomes > div + div { padding-left: 22px; } }
.outcomes h3 { margin: 12px 0 8px; }
.cluster > select, .cluster > input[type="search"] { width: auto; }

/* Grid and flex children may shrink below their widest content (code, long URLs); without this
   one long line pushes the whole page sideways on a phone. */
.split > *, .cols > *, .annotated > *, .exhibits > *, .outcomes > *, .foot-grid > * { min-width: 0; }
pre, .code { max-width: 100%; }

/* ---------------------------------------------------------------- home
   The home page opens on the brand's night ground with the logo's two tracks behind the
   headline, and one orchestrated moment: the inspection window scans the photo once, marks the
   pasted area and gives its answer. Further down, the outcome shape changes as you scroll. */
.home .site-head { position: fixed; top: 0; left: 0; right: 0; }
.site-head.over-hero { background: rgba(11, 15, 25, .82); border-bottom-color: rgba(255, 255, 255, .08); }
.site-head.over-hero.at-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-head.over-hero .brand, .site-head.over-hero .nav a { color: var(--night-ink); }
.site-head.over-hero .nav a:hover, .site-head.over-hero .nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.site-head.over-hero .btn-quiet, .site-head.over-hero .menu > summary { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, .3); }
.site-head.over-hero .btn-quiet:hover { border-color: #fff; color: #fff; }
.site-head.over-hero .btn { background: #4f46e5; color: #fff; }

/* Areas on the night ground take the dark values whatever the page theme is. */
.hero-night, .night-band, .closing {
  --ink: var(--night-ink); --ink-2: #c3c8d8; --muted: var(--night-muted); --rule: var(--night-rule);
  --sheet: var(--night-2); --sheet-2: #1a2238; --sheet-3: #2a3452; --stamp: #8f8af8; --stamp-ink: #0b0f19;
  --pass: #4ad08a; --pass-wash: #10291d; --review: #f0b04f; --review-wash: #33260d; --flag: #ff7d6e; --flag-wash: #3a1814;
  background: var(--night); color: var(--night-ink);
}
.btn.on-night { background: #4f46e5; color: #fff; }
.btn.on-night:hover { background: #6366f1; color: #fff; }
.btn-quiet.on-night { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, .3); }
.btn-quiet.on-night:hover { border-color: #fff; color: #fff; }

.tracks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tracks span { position: absolute; top: -25%; height: 150%; width: clamp(260px, 30vw, 560px); transform: skewX(-16deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent 82%); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent 82%); }
.tracks .track-a { right: 26%; background: var(--track-a); opacity: .2; }
.tracks .track-b { right: 4%; background: var(--track-b); opacity: .13; }

.hero-night { border-bottom: 1px solid var(--night-rule); position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 128px 0 80px; }
.hero-night::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(48px, 5vw, 96px); } }
.hero-night h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: 1.02; max-width: 14ch; margin-bottom: 0; }
.hero-lede { margin: 28px 0 0; font-size: clamp(1.06rem, 1.25vw, 1.3rem); line-height: 1.6; color: var(--night-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The checks panel: the files one customer sends, each answered with its outcome. The rows arrive
   one after another and each gets its stamp: the page's one orchestrated moment. */
.feed { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: var(--r-l); overflow: hidden; color: var(--night-ink);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--night-rule); font: 500 var(--t-xs)/1.3 var(--f-mono); color: var(--night-muted); }
.console-title { display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); font-family: var(--f-text); font-weight: 600; }
.console-title::before { content: ""; width: 12px; height: 9px; background: var(--track-b); transform: skewX(-16deg); }
.console-file { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-row { position: relative; margin: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ico what verdict" "ico why verdict"; gap: 3px 14px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--night-rule); animation: row-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .3s + .15s); }
@media (min-width: 640px) { .feed-row { grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.15fr) auto; grid-template-areas: "ico what why verdict"; padding: 18px 22px; } }
.feed-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #22d3ee 40%, #22d3ee 60%, transparent);
  transform-origin: left; animation: sweep .7s ease-out both; animation-delay: calc(var(--i) * .3s + .2s); }
.feed-ico { grid-area: ico; width: 42px; height: 42px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-rule);
  fill: none; stroke: #a5a1fa; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feed-what { grid-area: what; display: grid; gap: 2px; min-width: 0; }
.feed-what strong { color: #fff; font-weight: 600; }
.feed-what span { font-size: var(--t-xs); color: var(--night-muted); }
.feed-why { grid-area: why; font-size: var(--t-sm); color: #c3c8d8; min-width: 0; }
.feed-row .verdict { grid-area: verdict; justify-self: end; font-size: var(--t-sm); padding: 5px 12px 5px 10px; animation: stamp .3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .3s + .55s); }
.feed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 22px; font-size: var(--t-xs); color: var(--night-muted); }
.feed-foot a { color: #a5a1fa; font-weight: 600; }
.feed-foot a:hover { color: #fff; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.45); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: scaleX(0); opacity: 1; } 75% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .feed-row, .feed-row::after, .feed-row .verdict { animation: none !important; } .feed-row::after { display: none; } }

/* Bands. */
.band { padding: clamp(80px, 9vw, 144px) 0; }
.sheet-band { background: var(--sheet); border-block: 1px solid var(--rule); }
.band-head { display: grid; gap: 18px 72px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .band-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; } }
.band h2, .scrolly h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.04; max-width: 17ch; margin: 0; }
.band-head .lede { margin: 0; }
.ico { width: 40px; height: 40px; fill: none; stroke: var(--stamp); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.answers { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 640px) { .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .answers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.answer-col { background: var(--sheet); padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; }
.answer-col h3 { font-size: var(--t-xl); margin: 28px 0 10px; }
.answer-col p { margin: 0; color: var(--ink-2); }
.answer-col .eg { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: var(--t-sm); }
.answer-col .eg::before { content: ""; display: block; border-top: 1px dashed var(--rule); margin: 4px 0 14px; }

.scrolly { display: grid; gap: 40px; }
.scrolly .lede { margin-top: 20px; }
.step { padding: 32px 0; border-top: 1px solid var(--rule); }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 20px 0 12px; }
.step p { margin: 0; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.18rem); max-width: 44ch; }
@media (min-width: 1000px) {
  .scrolly { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 128px); }
  .scrolly-stage { position: sticky; top: 104px; align-self: start; }
  .step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .scrolly-on .step { opacity: .35; transition: opacity .35s; }
  .scrolly-on .step.active { opacity: 1; }
}

.industries { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 700px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.industry { background: var(--paper); padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: background .2s; }
.industry:hover { background: var(--sheet); color: var(--ink); }
.industry h3 { font-size: var(--t-xl); margin: 18px 0 0; }
.industry p { margin: 0; color: var(--muted); flex: 1; }
.industry .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); }
.industry .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.industry:hover .more { color: var(--stamp); }
.industry:hover .more svg { transform: translateX(4px); }

.night-band h2 { color: #fff; }
.night-band .lede { color: var(--night-muted); margin-top: 22px; }
.dev-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .dev-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(56px, 6vw, 112px); } }
.dev-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--night-rule); }
.dev-list li { display: grid; gap: 4px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--night-rule); }
.dev-list strong { color: #fff; font-weight: 600; }
.dev-list span { color: var(--night-muted); font-size: var(--t-sm); }
@media (min-width: 700px) { .dev-list li { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; } }
.codewin { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
.codewin .code { background: transparent; border-radius: 0; margin: 0; padding: 18px 20px 22px; font-size: .88rem; }
.codewin .code + .console-bar { border-top: 1px solid var(--night-rule); }
.codewin .copy { float: none; margin: 0 0 0 auto; }

.trust-grid { display: grid; gap: 44px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.trust-grid .ico { width: 34px; height: 34px; }
.trust-grid h3 { font-size: var(--t-lg); margin: 20px 0 8px; }
.trust-grid p { margin: 0; color: var(--muted); }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); font-weight: 600; }

.closing { position: relative; overflow: hidden; isolation: isolate; padding: clamp(88px, 10vw, 160px) 0; }
.closing .tracks .track-a { opacity: .32; right: 22%; }
.closing .tracks .track-b { opacity: .2; }
.closing h2 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 4.6rem); line-height: 1.02; max-width: 13ch; margin: 0; }
.closing-grid { display: grid; gap: 40px; align-items: end; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
@media (min-width: 1000px) { .closing-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .closing-actions { justify-content: flex-end; } }
.closing-link { color: var(--night-ink); font-weight: 600; padding: 0 8px; }
.closing-link:hover { color: #fff; }
.home .site-foot { border-top: 0; }
.hero-grid > *, .dev-grid > *, .closing-grid > *, .scrolly > *, .band-head > * { min-width: 0; }

/* The product suite: images take the wide tile; the four image answers sit inside it. */
.suite { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 760px) { .suite { grid-template-columns: repeat(2, minmax(0, 1fr)); } .suite-item.wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .suite { grid-template-columns: repeat(3, minmax(0, 1fr)); } .suite-item.wide { grid-column: span 2; } .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.suite-item { background: var(--sheet); padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: background .2s; }
.suite-item:hover { background: var(--paper); color: var(--ink); }
.suite-item h3 { font-size: var(--t-xl); margin: 18px 0 0; }
.suite-item.wide h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.suite-item p { margin: 0; color: var(--muted); }
.suite-item.wide p { color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 46ch; }
.suite-item .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); }
.suite-item .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.suite-item:hover .more { color: var(--stamp); }
.suite-item:hover .more svg { transform: translateX(4px); }
.classes { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.classes li { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--paper); font: 700 var(--t-md)/1.2 var(--f-display); font-stretch: 108%; }
.classes svg { width: 22px; height: 22px; fill: none; stroke: var(--stamp); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.suite-item:hover .classes li { background: var(--sheet); }
.suite > * { min-width: 0; }
@media (min-width: 1100px) { .suite .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Page heroes on every inner page share the home page's night ground and the logo's tracks. */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--night-rule);
  --ink: var(--night-ink); --ink-2: #c3c8d8; --muted: var(--night-muted); --rule: var(--night-rule); --rule-strong: #3a4566;
  --sheet: var(--night-2); --sheet-2: #1a2238; --sheet-3: #2a3452; --stamp: #8f8af8; --stamp-hover: #aaa6fb; --stamp-wash: #221f4d;
  --pass: #4ad08a; --pass-wash: #10291d; --review: #f0b04f; --review-wash: #33260d; --flag: #ff7d6e; --flag-wash: #3a1814;
  background: var(--night); color: var(--night-ink); padding: clamp(56px, 7vw, 112px) 0 clamp(64px, 8vw, 120px);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; top: -25%; height: 150%; width: clamp(220px, 26vw, 480px); transform: skewX(-16deg); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent 85%); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent 85%); }
.hero::before { right: 24%; background: var(--track-a); opacity: .16; }
.hero::after { right: 2%; background: var(--track-b); opacity: .1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1.03; }
.hero .lede { color: var(--night-muted); }
.hero .btn { background: #4f46e5; color: #fff; }
.hero .btn:hover { background: #6366f1; color: #fff; }
.hero .btn-quiet { background: transparent; color: var(--night-ink); border-color: rgba(255, 255, 255, .3); }
.hero .btn-quiet:hover { border-color: #fff; color: #fff; }
.hero .proof-line { border-top-color: var(--night-rule); }
.hero .proof-line strong { color: #fff; }


/* Hero: the logo's two tracks stand as a scanning gate. Documents glide through it in depth; each
   one enters grey and unchecked and leaves stamped with its outcome. Drawn, never photographed. */
.gate-scene { position: relative; height: clamp(300px, 38vw, 540px); perspective: 1300px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.gate-floor { position: absolute; left: -20%; right: -20%; top: 58%; height: 70%; transform: rotateX(80deg); transform-origin: top;
  background-image: linear-gradient(rgba(165, 161, 250, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(165, 161, 250, .14) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.gate { position: absolute; left: 50%; top: 6%; bottom: 12%; width: clamp(90px, 8vw, 130px); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.gate-a, .gate-b { position: absolute; top: 0; bottom: 0; width: 42%; transform: skewX(-16deg); border-radius: 2px; }
.gate-a { left: 4%; background: var(--track-a); opacity: .5; }
.gate-b { left: 50%; background: var(--track-b); opacity: .42; mix-blend-mode: screen; }
.gate-beam { position: absolute; top: -4%; bottom: -4%; left: 50%; width: 2px; background: #67e8f9; box-shadow: 0 0 24px 6px rgba(34, 211, 238, .55); }
.lane { position: absolute; left: 0; top: 50%; width: 100%; animation: travel 20s linear infinite; animation-delay: calc(var(--n) * -4s); z-index: 2; }
.doc { position: relative; width: clamp(118px, 12vw, 176px); transform: translateY(-50%) rotateY(-24deg) rotateX(6deg); transform-style: preserve-3d;
  animation: inspect 20s linear infinite; animation-delay: calc(var(--n) * -4s); }
.doc svg { display: block; width: 100%; height: auto; border-radius: 10px; animation: ring 20s linear infinite; animation-delay: calc(var(--n) * -4s); }
.doc.pass { --c: #4ad08a; } .doc.review { --c: #f0b04f; } .doc.flag { --c: #ff7d6e; }
.doc-name { display: block; margin-top: 10px; font: 500 var(--t-xs)/1.2 var(--f-text); color: var(--night-muted); }
.doc-stamp { position: absolute; left: 50%; top: -16px; white-space: nowrap; font: 700 var(--t-xs)/1 var(--f-text); padding: 7px 11px; border-radius: 999px; color: var(--c);
  background: #0b0f19; border: 1.5px solid var(--c); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); animation: stamp-on 20s linear infinite; animation-delay: calc(var(--n) * -4s); }
@keyframes travel { from { transform: translateX(-24%); } to { transform: translateX(108%); } }
@keyframes inspect { 0%, 47% { filter: grayscale(1) brightness(.62); } 51%, 100% { filter: none; } }
@keyframes ring { 0%, 48% { box-shadow: 0 0 0 0 transparent, 0 24px 40px -14px rgba(0, 0, 0, .7); } 51%, 100% { box-shadow: 0 0 0 2px var(--c), 0 24px 40px -14px rgba(0, 0, 0, .7); } }
@keyframes stamp-on { 0%, 49% { opacity: 0; transform: translateX(-50%) scale(1.6); } 52%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .lane, .doc, .doc svg, .doc-stamp { animation-play-state: paused; } }

/* The checks panel in the outcomes section: rows light up for the outcome being read. */
.scrolly-stage .feed { margin-top: 32px; }
.scrolly-stage .feed-row { padding-top: 11px; padding-bottom: 11px; transition: filter .35s, background .35s; }
.feed[data-active="pass"] .feed-row:not([data-outcome="pass"]),
.feed[data-active="review"] .feed-row:not([data-outcome="review"]),
.feed[data-active="flag"] .feed-row:not([data-outcome="flag"]) { filter: saturate(0) brightness(.5); }
.feed[data-active] .feed-row[data-outcome] { background: transparent; }
.feed[data-active="pass"] .feed-row[data-outcome="pass"], .feed[data-active="review"] .feed-row[data-outcome="review"], .feed[data-active="flag"] .feed-row[data-outcome="flag"] { background: rgba(165, 161, 250, .07); }
.scrolly-on .feed:not(.in) .feed-row, .scrolly-on .feed:not(.in) .feed-row::after, .scrolly-on .feed:not(.in) .feed-row .verdict { animation-play-state: paused; }
@media (max-width: 760px) { .doc-stamp .why { display: none; } .gate-scene { margin-top: 8px; } }
