/* Granted — artsy edition.
   Built on the "artistic" design skill: high contrast, Limelight display type,
   JetBrains Mono text, bold primary/danger color. Paintings are the plates. */
:root {
  /* skill tokens */
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --surface: #ffffff;
  --text: #111827;

  /* night palette, sampled from the plates */
  --ink: #070a12;
  --ink-2: #0e1424;
  --ink-3: #161e33;
  --line: rgba(233, 246, 255, 0.14);
  --ice: #e9f6ff;
  --ice-2: #a9bdd4;          /* 9:1 on --ink */
  --glow: #8fe3ff;
  --danger-text: #ff6b5e;    /* danger tuned for small text on dark (AA) */

  --display: "Limelight", "Didot", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* 4/8/12/16/24/32, then section multiples */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r-sm: 4px; --r-md: 8px;

  --wrap: 1200px;
  --gutter: 16px;
  --offset: 12px;            /* hard poster shadow */
  --edge: calc((100vw - min(var(--wrap), 100vw - 2 * var(--gutter))) / 2); /* viewport edge to .wrap */
  --bleed-w: 66vw;           /* bleed plates: half on screen, half off */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body {
  background: var(--ink);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: var(--s2); background: var(--ice); color: var(--ink); padding: var(--s2) var(--s3); z-index: 100; }
.skip:focus { left: var(--s2); }

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--glow); margin-bottom: var(--s5);
}
.label::before { content: ""; width: 10px; height: 10px; background: var(--danger); flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 em, h2 em { font-style: normal; color: var(--danger-text); }
h1 {
  font-size: clamp(52px, 9.2vw, 136px);
  line-height: 0.92; letter-spacing: -0.01em;
  max-width: 9ch; margin-bottom: var(--s6);
  text-shadow: 0 2px 30px rgba(7, 10, 18, 0.6);
}
h1 em { display: inline-block; color: var(--danger); text-shadow: 0 0 40px rgba(220, 38, 38, 0.45); }
h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; max-width: 18ch; margin-bottom: 48px; }
.h2--sm { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; margin-bottom: var(--s3); }
.fine { font-size: 12px; color: var(--ice-2); max-width: 70ch; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: var(--s3) var(--s5); border: 2px solid var(--ice); border-radius: var(--r-sm);
  background: var(--danger); color: #fff; text-decoration: none; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--ice);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ice); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ice); }
.btn--sm { min-height: 44px; padding: var(--s2) var(--s4); font-size: 12px; box-shadow: 4px 4px 0 var(--ice); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--primary);
}
.link:hover { text-decoration-color: var(--danger); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 18, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 68px; }
.mark { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--display); font-size: 30px; text-decoration: none; }
.mark__tag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: var(--glow); border-radius: var(--r-sm); padding: 2px 6px; }
.nav { display: flex; gap: var(--s2); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-2); text-decoration: none; }
.nav a:hover { color: var(--ice); }

.frame { position: relative; }
.frame img, .bleed img { border: 2px solid var(--ice); box-shadow: var(--offset) var(--offset) 0 var(--primary); width: 100%; }
/* bleed: plate oversized past the page edge, clipped by its section */
.bleed { position: relative; max-width: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; padding: 120px 0 72px; isolation: isolate; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,18,0.96) 0%, rgba(7,10,18,0.82) 34%, rgba(7,10,18,0.25) 64%, rgba(7,10,18,0) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7,10,18,0) 40%);
}
.beam {
  position: absolute; z-index: -1; left: -10%; bottom: 18%; width: 80%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--danger) 30%, var(--secondary) 70%, transparent);
  transform: rotate(-14deg); transform-origin: left center; opacity: 0.8;
  box-shadow: 0 0 24px 2px rgba(220, 38, 38, 0.5);
}
.hero__in { position: relative; }
.lede { font-size: 18px; color: var(--ice); max-width: 44ch; margin-bottom: var(--s6); }
.actions { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; }

/* ---------- ticker ---------- */
.ticker { background: var(--danger); color: #fff; border-block: 2px solid var(--ice); overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; animation: ticker 48s linear infinite; }
.ticker span { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: var(--s3) 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: 120px 0; }
.sec--board { padding-bottom: 96px; }
.sec--board .fine { margin-left: 0; }
.pipe { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: center; margin-bottom: var(--s6); }
.pipe__copy p:not(.label) { color: var(--ice-2); max-width: 36ch; }

/* why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; }
.why__head { grid-column: 1; }
.why__head h2 { max-width: 22ch; }
.why__head h2 em { color: var(--ice-2); }
#why, #product { overflow-x: clip; }
.why__art { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; width: var(--bleed-w); margin-right: calc(-1 * var(--edge) - var(--bleed-w) / 2); }
.three { grid-column: 1; grid-row: 2; display: grid; gap: 0; border-top: 2px solid var(--ice); }
.three li { display: grid; grid-template-columns: 96px 1fr; column-gap: var(--s5); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.three .num {
  grid-row: span 2; font-family: var(--display); font-size: 72px; line-height: 0.9;
  color: var(--glow);
}
.three h3 { margin-bottom: var(--s2); }
.three p { color: var(--ice-2); font-size: 15px; }

/* statement band */
.statement { background: var(--primary); color: var(--ink); padding: 96px 0; border-block: 2px solid var(--ice); }
.statement__q { font-family: var(--display); font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; max-width: 24ch; margin-bottom: var(--s5); }
.statement__a { font-size: 18px; font-weight: 700; max-width: 46ch; margin-bottom: 64px; }
.now { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); border-top: 2px solid var(--ink); padding-top: var(--s5); }
.now li { font-size: 14px; font-weight: 500; }
.now b { display: block; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; margin-bottom: var(--s2); }

/* product */
.feature { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; padding: 72px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.feature--flip .feature__copy { order: 2; }
.feature__copy p:not(.step) { color: var(--ice-2); max-width: 40ch; }
.step { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); margin-bottom: var(--s3); }
.step b { display: block; font-family: var(--display); font-weight: 400; font-size: 120px; line-height: 0.85; letter-spacing: 0; color: var(--danger); margin-top: var(--s2); }
.feature__stage { position: relative; }
.feature__stage .frame { width: 86%; margin-top: 28px; }
.feature__stage .panel { position: relative; width: min(440px, 78%); margin: -140px 0 0 auto; z-index: 1; }
.feature--flip .feature__stage .frame { margin-left: auto; }
.feature--flip .feature__stage .panel { margin-left: 0; }
#product .fine { margin-top: var(--s6); }

/* step 2: rail plate bleeds off the left edge, panel rides over it */
/* a third off screen, dropped so the next full-screen step overlaps it */
.feature--bleed .feature__stage .bleed { width: var(--bleed-w); margin: 28px 0 0 calc(-1 * var(--edge) - var(--bleed-w) / 3); top: 240px; }
.feature--bleed .feature__stage .panel { margin: -160px 0 0 auto; }

/* steps 1 and 3: full-screen plates behind the step */
.full { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: 160px 0 96px; margin: 72px 0; }
.full__art { position: absolute; inset: 0; z-index: -1; }
.full__art img { width: 100%; height: 100%; object-fit: cover; }
.full--drone .full__art img { object-position: 50% 45%; }
.full--space .full__art img { object-position: 45% 35%; }
.full__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(7,10,18,0.95) 0%, rgba(7,10,18,0.55) 38%, rgba(7,10,18,0) 66%),
    linear-gradient(90deg, rgba(7,10,18,0.7) 0%, rgba(7,10,18,0) 48%),
    linear-gradient(180deg, var(--ink) 0%, rgba(7,10,18,0) 16%);
}
.full .feature { padding: 0; align-items: end; }
.full .feature__copy p:not(.step) { color: var(--ice); text-shadow: 0 1px 12px rgba(7,10,18,0.9); }
.full .feature__copy h3 { font-size: clamp(32px, 3.6vw, 48px); text-shadow: 0 2px 24px rgba(7,10,18,0.8); }
.full .feature__stage .panel { margin: 0 0 0 auto; }

/* who */
.who { position: relative; isolation: isolate; padding: 0 0 120px; }
.who__art { position: relative; }
.who__art img { width: 100%; height: clamp(320px, 56vw, 640px); object-fit: cover; object-position: 50% 45%; border-block: 2px solid var(--ice); }
.who__in { position: relative; margin-top: -160px; }
.who__head { position: relative; background: var(--ink); padding: var(--s6) var(--s6) var(--s2) 0; max-width: 980px; margin-bottom: var(--s6); }
.who__head::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--ink); }
.who__head h2 { margin-bottom: var(--s5); }
.who__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.who__list li { background: var(--ink-2); border: 2px solid var(--ice); border-top: 8px solid var(--primary); padding: var(--s5); }
.who__list li:nth-child(2) { border-top-color: var(--danger); }
.who__list li:nth-child(3) { border-top-color: var(--secondary); }
.who__list li:nth-child(4) { border-top-color: var(--glow); }
.who__list h3 { font-size: 22px; }
.who__list p { color: var(--ice-2); font-size: 14px; }

/* faq on paper */
.paper { background: var(--surface); color: var(--text); }
.paper .label { color: var(--text); }
.paper h2 em { color: var(--danger); }
.faqwrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.faq { border-top: 3px solid var(--text); }
.faq details { border-bottom: 1px solid #d1d5db; }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 56px var(--s5) 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--mono); font-size: 22px; background: var(--danger); color: #fff; border-radius: var(--r-sm); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #1d4ed8; }
.faq p { color: #374151; padding-bottom: var(--s5); max-width: 60ch; font-size: 15px; }
.paper :focus-visible { outline-color: var(--primary); }

/* cta */
.cta { position: relative; isolation: isolate; padding: 140px 0; overflow: hidden; }
.cta__art { position: absolute; inset: 0; z-index: -2; }
.cta__art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.cta__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,0.35), rgba(7,10,18,0.55) 50%, rgba(7,10,18,0.9)); }
.cta__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.cta__copy h2 { margin-bottom: var(--s4); text-shadow: 0 2px 24px rgba(7,10,18,0.8); }
.cta__copy p:not(.label) { font-size: 18px; max-width: 30ch; text-shadow: 0 1px 12px rgba(7,10,18,0.9); }
.cta__box { background: var(--ink); border: 2px solid var(--ice); box-shadow: var(--offset) var(--offset) 0 var(--danger); padding: var(--s6); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); }
.field .opt { color: var(--ice-2); margin-left: var(--s1); }
.field input, .field select, .field textarea {
  background: var(--ink-2); border: 2px solid var(--line); border-radius: var(--r-sm);
  min-height: 48px; padding: var(--s3); font-size: 16px; width: 100%; outline: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--glow); outline: none; box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.25); }
.field.is-bad input, .field.is-bad select { border-color: var(--danger-text); }
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(135deg, var(--ice) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--ink-2); }
.form__foot { flex-direction: row; align-items: center; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s2); }
.form__hint { font-size: 12px; color: var(--ice-2); max-width: 34ch; line-height: 1.6; }
.form__err { grid-column: 1 / -1; font-size: 14px; font-weight: 500; color: var(--danger-text); }
.form__err[hidden] { display: none; }
.receipt { animation: fadein 400ms ease both; }
.receipt[hidden] { display: none; }
.receipt__id { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--danger); margin-bottom: var(--s4); }
.receipt .fine { margin-top: var(--s5); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* footer */
.foot { border-top: 2px solid var(--ice); padding: 72px 0 56px; }
.foot__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; font-size: 13px; color: var(--ice-2); }
.foot__in p + p { margin-top: var(--s3); }
.foot__mark { font-family: var(--display); font-size: clamp(64px, 10vw, 140px); line-height: 0.9; color: var(--ice); margin-bottom: var(--s5); }
.foot strong { color: var(--ice); font-weight: 700; }
.plates { margin-bottom: var(--s5); }
.plates li { display: grid; grid-template-columns: 48px 1fr; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.plates b { font-family: var(--display); font-weight: 400; color: var(--danger-text); font-size: 16px; }

/* ---------- product UI (demo panels, driven by /app.js) ---------- */
.board, .panel {
  background: var(--ink-2); color: var(--ice);
  border: 2px solid var(--ice); border-radius: var(--r-md); overflow: hidden;
  font-family: var(--mono); font-size: 12.5px;
  box-shadow: var(--offset) var(--offset) 0 var(--danger);
}
.panel { box-shadow: 10px 10px 0 var(--ink), 10px 10px 0 2px var(--ice); }
.board__head, .panel__head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--ink-3);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.board__meta { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ice-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,0.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.25); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0.08); } }

.board__cols, .row { display: grid; grid-template-columns: 1.4fr 56px 1fr 120px; gap: var(--s4); align-items: center; padding: 0 var(--s4); }
.board__cols { height: 32px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-2); border-bottom: 1px solid var(--line); }
.board__rows { min-height: 318px; }
.row { height: 53px; border-bottom: 1px solid var(--line); transition: opacity 500ms ease, transform 500ms ease, background 300ms ease; }
.row:last-child { border-bottom: 0; }
.row.is-new { animation: rowin 500ms ease both; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.row.is-out { opacity: 0; transform: translateX(14px); }
.row.is-granted { background: rgba(22,163,74,0.12); }
.row__case { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row__id { color: var(--ice-2); font-size: 11px; letter-spacing: 0.04em; }
.row__name { display: flex; gap: 6px; align-items: center; }
.redact { display: inline-block; height: 10px; background: var(--ice); border-radius: 1px; opacity: 0.85; }
.lvl { display: inline-grid; place-items: center; width: 34px; height: 22px; border-radius: var(--r-sm); border: 1px solid var(--ice-2); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.lvl--ts { border-color: var(--warning); color: var(--ink); background: var(--warning); }
.steps5 { display: flex; align-items: center; max-width: 200px; width: 100%; }
.steps5 i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps5 i.on { background: var(--ice); border-color: var(--ice); }
.steps5 i.cur { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.3); }
.steps5 i.done { background: var(--success); border-color: var(--success); }
.steps5 s { display: block; height: 2px; flex: 1; background: var(--line); text-decoration: none; }
.steps5 s.on { background: var(--ice); }
.steps5 s.done { background: var(--success); }
.row__stage { color: var(--ice-2); font-size: 11.5px; text-align: right; white-space: nowrap; }
.row.is-granted .row__stage { color: #4ade80; font-family: var(--display); font-size: 16px; letter-spacing: 0.02em; }
.board__foot, .panel__foot { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--ink-3); color: var(--ice-2); font-size: 11.5px; line-height: 1.5; min-height: 42px; transition: color 300ms ease; }
.board__foot-k { color: var(--danger-text); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; margin-right: var(--s1); }
.panel__foot.is-ok { color: #4ade80; }
.panel__status { color: var(--ice-2); white-space: nowrap; flex: none; transition: color 300ms ease; }
.panel__status--ok { color: #4ade80; }
.panel__status--warn { color: #fbbf24; }

.bar { height: 4px; background: var(--line); }
.bar i { display: block; height: 100%; background: var(--danger); transition: width 600ms cubic-bezier(.2,.8,.2,1), background 300ms ease; }
.bar i.is-ok { background: var(--success); }
.check li { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-bottom: 1px solid var(--line); color: var(--ice-2); transition: color 300ms ease; }
.check li:last-child { border-bottom: 0; }
.check li::before { content: ""; width: 14px; height: 14px; flex: none; border: 2px solid var(--line); border-radius: 2px; background: transparent center / 10px no-repeat; transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.check li.done { color: var(--ice); }
.check li.done::before { background-color: var(--success); border-color: var(--success); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%23070a12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.check li.just::before { animation: pop 320ms cubic-bezier(.2,.9,.2,1.4); }
@keyframes pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }

.scan li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px var(--s4); border-bottom: 1px solid var(--line); color: var(--ice-2); position: relative; }
.scan li i { font-style: normal; color: var(--ice-2); letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; }
.scan li.on { color: var(--ice); }
.scan li.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(143,227,255,0.12), transparent); animation: sweep 900ms linear infinite; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.scan li.ok, .scan li.bad { color: var(--ice); }
.scan li.ok i { color: #4ade80; }
.scan li.bad i { color: var(--danger-text); }
.finding { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); background: var(--ink-3); font-size: 12px; line-height: 1.55; min-height: 62px; opacity: 0; transform: translateY(4px); transition: opacity 300ms ease, transform 300ms ease; }
.finding.is-on { opacity: 1; transform: none; }
.finding__k { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--danger); border-radius: 2px; padding: 3px 7px; margin-top: 1px; transition: background 300ms ease; }
.finding.is-ok .finding__k { background: var(--success); }

.cal li { display: grid; grid-template-columns: 58px 1fr auto; gap: var(--s3); align-items: center; padding: 10px var(--s4); border-bottom: 1px solid var(--line); transition: opacity 300ms ease; }
.cal li b { font-weight: 700; color: var(--glow); }
.cal li i { font-style: normal; color: var(--ice-2); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.cal li.done { opacity: 0.5; }
.cal li.done span { text-decoration: line-through; }
.cal li.done i { color: #4ade80; }
.log { padding: var(--s3) var(--s4) 14px; background: var(--ink-3); }
.log__k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-2); margin-bottom: var(--s2); }
.log ol { min-height: 96px; }
.log li { display: flex; gap: var(--s3); padding: var(--s1) 0; color: var(--ice-2); font-size: 11.5px; animation: rowin 400ms ease both; }
.log li b { font-weight: 500; color: var(--ice); flex: none; }
.log li .redact { height: 8px; vertical-align: middle; margin-left: var(--s1); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pipe, .feature, .faqwrap, .cta__in, .foot__in { grid-template-columns: 1fr; gap: 40px; }
  .why { grid-template-columns: 1fr; gap: 40px 32px; }
  .why__head, .why__art, .three { grid-column: 1; grid-row: auto; }
  /* train sits behind the list, half off the right edge, fading to black on the left */
  .why__art, .three { grid-row: 2; }
  .why__art { justify-self: start; align-self: stretch; width: 100vw; margin: 0 0 0 calc(-1 * var(--edge)); z-index: 0; pointer-events: none; }
  /* match the list height; centre the plate on the right viewport edge (overflow clipped by #why) */
  /* fade is a mask on the img itself, so it starts at the image's left edge, not the screen's */
  .why__art img { position: absolute; top: 0; left: 100%; translate: -50% 0; height: 100%; width: auto; max-width: none; border: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 25%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 25%); }
  .three { position: relative; z-index: 1; }
  :root { --bleed-w: 100vw; }
  .full { padding: 120px 0 72px; }
  .full .feature__stage .panel { margin: 0; }
  .feature { padding: 56px 0; }
  .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .step b { font-size: 88px; }
  .who__list { grid-template-columns: 1fr 1fr; }
  .now { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 640px) {
  :root { --offset: 8px; }
  .nav, .mark__tag { display: none; }
  .mark { font-size: 26px; }
  .hero { min-height: min(88vh, 760px); padding: 96px 0 72px; }
  .hero__art::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(7,10,18,0.88) 45%, rgba(7,10,18,0.35) 100%); }
  .hero__art img { object-position: 40% 30%; }
  .lede { font-size: 16px; }
  .actions { gap: var(--s5); }
  .sec { padding: 80px 0; }
  .statement { padding: 72px 0; }
  .three li { grid-template-columns: 64px 1fr; }
  .three .num { font-size: 52px; }
  .feature__stage .frame { width: 100%; }
  .feature__stage .panel { width: 100%; margin: var(--s6) 0 0; }
  .feature--bleed .feature__stage .panel { margin-top: -64px; }
  .feature--bleed .feature__stage .bleed { top: 96px; }
  .full .feature__stage .panel { width: 100%; }
  .full__art::after { background: linear-gradient(0deg, rgba(7,10,18,0.95) 0%, rgba(7,10,18,0.75) 55%, rgba(7,10,18,0.2) 100%), linear-gradient(180deg, var(--ink) 0%, rgba(7,10,18,0) 16%); }
  .who { padding-bottom: 80px; }
  .who__in { margin-top: -64px; }
  .who__head { padding: var(--s5) var(--s4) var(--s1) 0; }
  .who__list { grid-template-columns: 1fr; }
  .cta { padding: 96px 0 120px; }
  .cta__box { padding: var(--s5) var(--s4); }
  .form { grid-template-columns: 1fr; }
  .board__cols, .row { grid-template-columns: 1.2fr 40px 1fr 84px; gap: 10px; padding: 0 var(--s3); }
  .row { height: 50px; }
  .row.is-granted .row__stage { font-size: 13px; }
  .cal li { grid-template-columns: 52px 1fr; }
  .cal li i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .dot, .scan li.on::after, .check li.just::before, .log li, .row.is-new, .receipt { animation: none; }
  .row, .btn { transition: none; }
}
