/* "Freight manifest" system. Tokens documented in DESIGN.md; light/dark follow
   the system setting. Contrast pairs are enforced by tests/site.test.mjs. */
:root {
  color-scheme: light dark;
  --bg: #f2f0ea;
  --surface: #fbfaf6;
  --ink: #121212;
  --text: #2e2d2a;
  --muted: #5d5a53;
  --rule: #d4d0c6;
  --accent: #16703c;
  --accent-ink: #ffffff;
  --live: #23683a;
  /* The yard: full-bleed dark bands that hold product screenshots. */
  --band-bg: #121315;
  --band-surface: #1c1e22;
  --band-ink: #f4f2ec;
  --band-text: #c9c6be;
  --band-muted: #a19d94;
  --band-rule: #2e3136;
  --band-accent: #4fd486;
  --band-live: #74d391;
  /* Hi-vis signal green, used as a surface with dark text. */
  --signal: #22c55e;
  --signal-ink: #121212;
  --grid: color-mix(in srgb, var(--rule) 55%, transparent);
  --band-grid: color-mix(in srgb, var(--band-rule) 70%, transparent);
  --display: "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1240px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --shadow: 8px 8px 0 var(--ink);
  --btn-shadow: var(--signal-ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17191c;
    --ink: #f4f2ec;
    --text: #cbc8c0;
    --muted: #9e9a91;
    --rule: #2c2e33;
    --accent: #4fd486;
    --accent-ink: #121212;
    --live: #6fd08c;
    --band-bg: #17191c;
    --band-surface: #202328;
    --band-rule: #33363c;
    --shadow: 8px 8px 0 #000000;
    --btn-shadow: #f4f2ec;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
main:focus { outline: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.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: 12px; top: -80px; z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.small { font-size: 14px; color: var(--muted); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.arr { display: inline-block; transition: transform 0.18s ease; }
a:hover .arr { transform: translateX(3px); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 7.2vw + 0.4rem, 6.2rem); letter-spacing: -0.05em; line-height: 0.94; }
h2 { font-size: clamp(2rem, 3.6vw + 0.7rem, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
.label, .kicker { font: 600 0.74rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.label::before { content: ""; width: 10px; height: 10px; background: var(--signal); flex: none; }
.label-num { color: var(--ink); }
.label:has(.label-num)::before { display: none; }
.label-num::after { content: "—"; margin-left: 10px; color: var(--muted); }
.kicker { display: block; margin-bottom: 10px; }
.lead { font-size: clamp(1.08rem, 0.9vw + 0.9rem, 1.32rem); line-height: 1.55; color: var(--text); max-width: 40rem; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--signal); color: var(--signal-ink); border: 2px solid var(--signal-ink); font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 var(--btn-shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.button.ghost:hover { background: var(--ink); color: var(--bg); transform: none; }
.button.dark { background: var(--signal-ink); color: #ffffff; border-color: var(--signal-ink); box-shadow: 4px 4px 0 #ffffff; }
.text-link { font-weight: 700; color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 64px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 800 1.05rem var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--bg); font: 700 0.74rem var(--mono); letter-spacing: 0.04em; }
nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
nav a { display: inline-block; padding: 8px 10px; color: var(--text); font-size: 0.94rem; font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
nav .nav-cta { border: 1.5px solid var(--ink); color: var(--ink); margin-left: 6px; padding: 6px 14px; }
nav .nav-cta:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* Hero */
.hero { position: relative; padding-block: clamp(32px, 5.5vw, 72px) clamp(40px, 5vw, 64px); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
/* The hero stays short so the primary action sits in the first desktop screen
   and Selected work follows directly on mobile. */
.hero h1 { margin-bottom: 26px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .lead { margin-bottom: 0; max-width: 46rem; }
.hero .actions { margin-top: 28px; }

.manifest { margin-top: 32px; max-width: 26rem; background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow); font-size: 0.95rem; }
.manifest-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); color: var(--bg); font: 700 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.manifest dl { margin: 0; }
.manifest dl > div { padding: 12px 16px; border-bottom: 1px dashed var(--rule); }
.manifest dt { font: 600 0.7rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.manifest dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
.manifest dl > div:first-child dd { font: 800 1.7rem/1.1 var(--display); letter-spacing: -0.03em; }
.manifest-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; font-weight: 700; }
.barcode { flex: 1; max-width: 120px; height: 30px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }

.strengths { margin-top: clamp(56px, 8vw, 96px); }
.strengths-title { margin-bottom: 18px; color: var(--ink); }
.strength-list { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.strength-list li { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 18px; }
.strength-num { font: 700 0.8rem var(--mono); color: var(--accent); margin-bottom: 14px; }
.strength-list h4 { margin: 0 0 10px; font: 800 1.35rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.strength-list p { margin-bottom: 18px; }
.strength-list .text-link { margin-top: auto; font-size: 0.94rem; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.ruled { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 52rem; }
.section-head h2 { margin-bottom: 18px; }
.section-head > p:not(.label) { font-size: 1.08rem; max-width: 42rem; }

/* The yard: dark band that shows the real product screenshots */
.yard { background-color: var(--band-bg); color: var(--band-text); padding-block: clamp(64px, 9vw, 120px); background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px); background-size: 56px 56px; }
.yard h2, .yard h3, .yard .label-num { color: var(--band-ink); }
.yard .label, .yard .kicker { color: var(--band-muted); }
.yard a { color: var(--band-accent); }
.yard :focus-visible { outline-color: var(--band-accent); }
.yard .button { color: var(--signal-ink); box-shadow: 4px 4px 0 var(--band-ink); }
.yard .button:hover { box-shadow: 6px 6px 0 var(--band-ink); }
.yard .button.ghost { color: var(--band-ink); border-color: var(--band-ink); box-shadow: none; }
.yard .text-link { color: var(--band-ink); }
.yard .text-link:hover { color: var(--band-accent); }

.shows { display: grid; gap: clamp(64px, 9vw, 120px); }
.show { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 940px) {
  .show { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .show:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .show:nth-child(even) .shot { order: 2; }
}
.show-num { font: 800 clamp(3rem, 5vw, 4.5rem)/1 var(--display); letter-spacing: -0.05em; color: var(--band-ink); margin-bottom: 18px; }
.show-num span { font: 600 0.9rem var(--mono); letter-spacing: 0.04em; color: var(--band-muted); margin-left: 4px; }
.show h3 { font-size: clamp(2.2rem, 2.8vw + 1rem, 3.2rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.show h3 a { color: var(--band-ink); text-decoration: none; }
.show h3 a:hover { text-decoration: underline; text-decoration-color: var(--band-accent); text-decoration-thickness: 3px; }
.show-body > p { max-width: 32rem; }
.show-role { padding-left: 14px; border-left: 3px solid var(--signal); color: var(--band-text); font-size: 0.95rem; }
.show-role .kicker { margin-bottom: 4px; }
.show-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

.shot { margin: 0; min-width: 0; }
.frame { overflow: hidden; border-radius: 10px; border: 1px solid var(--band-rule); background: var(--band-surface); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.65), 0 0 0 6px rgb(255 255 255 / 0.03); transition: transform 0.25s ease; }
.show:hover .frame { transform: translateY(-4px); }
.frame-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: 34px; padding-inline: 12px; border-bottom: 1px solid var(--band-rule); }
.frame-bar::after { content: ""; width: 34px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--band-rule); }
.url { justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 14px; border-radius: 6px; background: var(--band-bg); color: var(--band-muted); font: 0.72rem/1.4 var(--mono); }
.frame img { width: 100%; height: auto; background: #ffffff; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-top: 14px; font-size: 0.84rem; line-height: 1.5; color: var(--band-muted); }
.shot figcaption > span { flex: 1 1 240px; }
.shot figcaption a { font-weight: 700; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1.5px solid currentColor; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--live); white-space: nowrap; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.yard .badge { color: var(--band-live); }
.status { margin: 6px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--text); font: 0.76rem/1.2 var(--mono); }
.yard .chips li { border-color: var(--band-rule); background: var(--band-surface); color: var(--band-text); }

/* Experience route */
.split { display: grid; gap: 40px 72px; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sticky { position: sticky; top: 104px; align-self: start; }
}
.edu { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink); font-weight: 600; }
.route { position: relative; padding-left: 40px; }
.route::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; border-left: 2px dashed var(--muted); }
.route li { position: relative; padding-bottom: 44px; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: -40px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.route .now::before { background: var(--signal); border-color: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 30%, transparent); }
.dates { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font: 600 0.8rem/1.5 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.now-tag { padding: 2px 8px; background: var(--ink); color: var(--bg); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.route h3 { font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem); margin-bottom: 10px; }
.route p:last-child { margin: 0; max-width: 38rem; }

/* Approach steps */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 2px solid var(--ink); background: var(--surface); }
.steps li { padding: 26px 24px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.step-num { display: block; margin-bottom: 36px; font: 700 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { margin: 0; }

/* Contact signal band */
.signal { background: var(--signal); color: var(--signal-ink); padding-block: clamp(64px, 9vw, 112px); }
.signal h2, .signal h3, .signal .label, .signal .label-num, .signal a:not(.button) { color: var(--signal-ink); }
.signal .label-num::after { color: var(--signal-ink); }
.signal h2 { font-size: clamp(2.6rem, 6vw + 0.5rem, 5.6rem); letter-spacing: -0.05em; margin-bottom: 20px; }
.signal :focus-visible { outline-color: var(--signal-ink); }
.contact-lead { font-size: 1.2rem; max-width: 30rem; margin-bottom: 30px; }
.contact-grid { display: grid; gap: 48px 72px; align-items: end; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact-links h3 { font: 700 0.74rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.contact-links ul { border-top: 2px solid var(--signal-ink); }
.contact-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--signal-ink) 35%, transparent); }
.contact-links li > span { font-weight: 700; }
.contact-links li > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
.contact-links a { font-weight: 600; }

/* Case study */
.case-head { padding-block: clamp(24px, 4vw, 40px) clamp(44px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(36px, 6vw, 72px); font: 600 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.case-head h1 { font-size: clamp(3rem, 9vw + 0.5rem, 7.6rem); margin-bottom: 24px; }
.case-head .lead { max-width: 46rem; }
.case-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.stage { padding-block: clamp(32px, 5vw, 64px); }

.case-body { display: grid; gap: 48px 72px; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 980px) {
  .case-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .spec { grid-column: 2; grid-row: 1; position: sticky; top: 96px; align-self: start; }
  .case-main { grid-column: 1; grid-row: 1; }
}
.spec { border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.spec-title { padding: 10px 16px; background: var(--ink); color: var(--bg); font: 700 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.spec dl { margin: 0; }
.spec dl > div { padding: 14px 16px; border-bottom: 1px dashed var(--rule); }
.spec dl > div:last-child { border-bottom: 0; }
.spec dt { margin-bottom: 8px; font: 600 0.7rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: 0.94rem; color: var(--ink); }
.spec-note { display: block; margin-top: 10px; color: var(--text); }
.spec-links { display: grid; gap: 6px; font-weight: 700; }

.case-intro { padding-bottom: clamp(36px, 5vw, 56px); }
.case-intro .kicker { color: var(--accent); font-weight: 700; }
.case-intro p { margin: 0; max-width: 44rem; color: var(--ink); font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem); line-height: 1.5; }
.case-sub { color: var(--muted); }
/* My role: a manifest-style log of what Anthony spotted, decided, built and learned. */
.role-log { margin: 0; border: 2px solid var(--ink); background: var(--surface); }
.role-log > div { display: grid; gap: 4px 24px; padding: 16px 18px; border-bottom: 1px dashed var(--rule); }
.role-log > div:last-child { border-bottom: 0; }
.role-log dt { font: 700 0.74rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.role-log dd { margin: 0; color: var(--ink); }
@media (min-width: 640px) { .role-log > div { grid-template-columns: 7.5rem minmax(0, 1fr); } }
/* What changed: documented before/now capability pairs. */
.changes { display: grid; gap: 14px; }
.changes dl { display: grid; margin: 0; border: 1px solid var(--rule); background: var(--surface); }
@media (min-width: 640px) { .changes dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.changes dl > div { padding: 14px 18px; }
.changes dt { margin-bottom: 4px; font: 700 0.7rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.changes dd { margin: 0; }
.changes .now { border-top: 2px solid var(--ink); }
.changes .now dt { color: var(--live); }
.changes .now dd { color: var(--ink); font-weight: 600; }
@media (min-width: 640px) { .changes .now { border-top: 0; border-left: 2px solid var(--ink); } }
.case-block { padding-block: clamp(32px, 4vw, 44px); border-top: 2px solid var(--ink); }
.case-block h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem); margin-bottom: 22px; }
.case-block > p { max-width: 42rem; }
.case-block .chips { margin-bottom: 20px; }
.checks, .numbered, .dashes { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; background: var(--live); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(0.28em + 4px); width: 6px; height: 10px; border: solid var(--bg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 14px 52px; border-bottom: 1px solid var(--rule); }
.numbered li:last-child { border-bottom: 0; padding-bottom: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font: 700 0.8rem var(--mono); color: var(--accent); }
.dashes li { position: relative; padding-left: 26px; }
.dashes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: var(--muted); }
.limits { border-top-style: dashed; }

.next { background: var(--band-bg); color: var(--band-text); }
.next a { display: grid; gap: 6px; padding-block: clamp(48px, 7vw, 88px); text-decoration: none; }
.next .label { color: var(--band-muted); margin: 0; }
.next-title { font: 800 clamp(2.6rem, 6vw + 0.5rem, 5.4rem)/1 var(--display); letter-spacing: -0.05em; color: var(--band-ink); }
.next-kind { color: var(--band-text); }
.next a:hover .next-title { color: var(--band-accent); }
.next a:focus-visible { outline-color: var(--band-accent); outline-offset: -6px; }

/* 404 */
.lost h1 { max-width: 12em; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--band-bg); color: var(--band-text); border-top: 1px solid var(--band-rule); padding-block: 48px 56px; }
.site-footer a { color: var(--band-accent); }
.site-footer :focus-visible { outline-color: var(--band-accent); }
.site-footer .small { color: var(--band-muted); margin: 0; }
.foot-name { font: 800 1.6rem var(--display); letter-spacing: -0.03em; color: var(--band-ink); margin-bottom: 6px; }

@media (max-width: 640px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
}
@media (max-width: 520px) {
  .bar { padding-block: 10px; }
  nav ul { gap: 0; margin-inline: -6px; }
  nav a { padding: 8px 6px; font-size: 0.86rem; }
  nav .nav-cta { margin-left: 4px; padding: 4px 8px; }
  .frame-bar { height: 28px; }
  .frame-bar::after, .lights { display: none; }
  .frame-bar { grid-template-columns: 1fr; }
  .manifest-head span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .show:hover .frame, .button:hover, a:hover .arr { transform: none; }
}
@media (forced-colors: active) {
  .badge, .chips li, .manifest, .spec, .steps, .button, .role-log, .changes dl, .changes .now { border-color: CanvasText; }
  .label::before, .route li::before, .checks li::before { forced-color-adjust: none; background: CanvasText; }
  .barcode { display: none; }
}
@media print {
  .site-header, .skip, .barcode { display: none; }
  .yard, .signal, .next, .site-footer { background: none; color: #000; }
  .yard h2, .yard h3, .signal h2, .next-title { color: #000; }
  .show, .case-block, .changes li { break-inside: avoid; }
}
