/* Mirrored Maple — the rightrice.dev console look, in maple colours:
   bronze on forest black, square edges, self-hosted fonts, no images for chrome. */
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d1613;
  --pane: #08100d;
  --panel: #121f1a;
  --line: #22372e;
  --line-strong: #33503f;
  --text: #ece5d8;
  --muted: #a2b4a9;
  --accent: #e3a45f;
  --accent-hover: #edb87d;
  --accent-ink: #0d1613;
  --dir: #74c79c;
  --status: #e2bf6e;
  --ok: #a3d7b9;
  --ok-line: #2f5040;
  --warn-line: #5a4b25;
  --error: #f0907e;
  --error-line: #5f3329;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* The home page's cream bands */
  --paper: #f2ede3;
  --paper-2: #e8e2d5;
  --ink: #0d1613;
  --ink-muted: #4a5a51;
  --bronze-deep: #9a5a1c;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
p, h1, h2, h3, h4, figure { margin: 0; }
a { color: var(--dir); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--dir); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 18px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(13, 22, 19, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 12px 0; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; width: auto; height: 38px; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; font-size: 14px; }
.topnav a { padding: 10px 0; color: var(--text); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current] { color: var(--accent); }
.topnav .signin { margin-left: 4px; padding: 7px 14px; border: 1px solid var(--line-strong); font: 13px var(--mono); }
.topnav .signin:hover { border-color: var(--accent); }

/* Hero (home) and page heads */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding: 40px 0 28px; }
h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h1 span, h2 span { color: var(--accent); }
.hero p { max-width: 380px; color: var(--muted); font-size: 15px; }
.page-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 12px 48px; padding: 48px 0 56px; }
.page-head .cmdline { grid-column: 1 / -1; }
.page-head p:not(.cmdline) { justify-self: end; max-width: 420px; color: var(--muted); }
.page-head .actions { grid-column: 1 / -1; }

/* Console: terminal and side panels */
.console { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; padding-bottom: 72px; }
.term { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; background: var(--pane); border: 1px solid var(--line); }
.term-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.term-body { position: relative; flex: 1; max-height: 560px; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; font: 14px/1.75 var(--mono); }
.term-live { display: flex; flex-direction: column; gap: 18px; }
.term-live:empty { display: none; }
.term-prompt { display: flex; align-items: center; gap: 0; padding: 10px 20px; border-top: 1px solid var(--line); font: 14px var(--mono); }
.term-prompt:focus-within { box-shadow: inset 0 0 0 1px var(--dir); }
.term-prompt input { flex: 1; min-width: 0; margin-left: 1ch; padding: 4px 0; background: transparent; border: 0; color: var(--text); font: inherit; outline: none; caret-color: var(--accent); }
.term-prompt input::placeholder { color: var(--muted); opacity: 1; }
.term-prompt kbd { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line-strong); padding: 1px 6px; }
.line { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: var(--hang, 0ch); text-indent: calc(var(--hang, 0ch) * -1); }
.u { color: var(--accent); }
.p, .muted { color: var(--muted); }
.st { color: var(--status); }
.ok { color: var(--ok); }
.line.h { margin-top: 12px; color: var(--dir); font-weight: 700; }
.err { color: var(--error); }
.strong { font-weight: 700; }
.gap { margin-top: 8px; }
.ls { display: grid; grid-template-columns: max-content max-content max-content minmax(0, 1fr); column-gap: 16px; white-space: nowrap; }
.ls > :nth-child(4n) { white-space: normal; }
.dir { color: var(--dir); font-weight: 700; text-decoration: none; }
.dir:hover { color: var(--dir); text-decoration: underline; }
.readme { margin-top: 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.help { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--text); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.panel-title { margin-bottom: 12px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.session { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: baseline; gap: 8px 12px; margin: 0; font-size: 15px; }
.session dt { font: 13px var(--mono); color: var(--muted); }
.session dd { margin: 0; }
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.status-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.status-list a { color: var(--text); text-decoration: none; }
.status-list a:hover { color: var(--accent); }
.status-list small { display: block; color: var(--muted); font-size: 14px; }
.pill { white-space: nowrap; padding: 1px 6px; border: 1px solid var(--line-strong); font: 12px/1.5 var(--mono); color: var(--muted); }
.pill-ok { color: var(--ok); border-color: var(--ok-line); }
.pill-warn { color: var(--status); border-color: var(--warn-line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--pane); border: 1px solid var(--line-strong); color: var(--text); font: 13px var(--mono); text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--dir); }
.chip-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px 48px; margin-bottom: 36px; }
.cmdline { grid-column: 1 / -1; font: 13px var(--mono); overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.section-lead { justify-self: end; max-width: 400px; color: var(--muted); }
.subhead { margin-bottom: 16px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.more { display: inline-block; margin-top: 28px; padding: 10px 0; font: 14px var(--mono); text-decoration: none; white-space: pre; }
.more::before { content: 'cd '; color: var(--muted); }
.more::after { content: '  →'; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); border: 1px solid var(--accent); color: var(--accent-ink); font: 700 14px var(--mono); text-decoration: none; }
.cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.cta-quiet { background: transparent; border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.cta-quiet:hover { background: transparent; border-color: var(--dir); color: var(--text); }

/* Projects (featured cards) */
.projects { display: flex; flex-direction: column; gap: 20px; }
.project { background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.project-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font: 13px var(--mono); }
.path { color: var(--dir); }
.kicker { font: 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.project h3 { margin: 6px 0 8px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.project-lead { max-width: 64ch; margin-bottom: 10px; font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.project-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.project-story { flex: 1 1 420px; min-width: 0; }
.project-story > p:not([class]) { max-width: 64ch; color: var(--muted); }
.project-story > p:not([class]) + p:not([class]) { margin-top: 12px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; }
.tags li { padding: 2px 8px; border: 1px solid var(--line-strong); font: 12px/1.5 var(--mono); color: var(--muted); }
details { margin-top: 16px; border-top: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font: 14px var(--mono); color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; width: 12px; color: var(--accent); font-weight: 700; }
details[open] > summary::before { content: '−'; }
summary:hover { color: var(--accent); }
.detail-body { max-width: 68ch; padding-bottom: 6px; color: var(--muted); }
.detail-body h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 600; color: var(--text); }
.detail-body p + p { margin-top: 12px; }

/* Lists of specifics, with a › bullet */
.spec-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.spec-list li { break-inside: avoid; padding: 6px 0 6px 18px; border-bottom: 1px solid var(--line); position: relative; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before { content: '›'; position: absolute; left: 2px; color: var(--accent); font-family: var(--mono); }

/* Architecture figures */
.flow { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: var(--pane); border: 1px solid var(--line); font: 12px/1.5 var(--mono); }
.flow-row { display: flex; align-items: center; gap: 12px; }
.flow-row > span:not(.flow-arrow) { flex: 1; padding: 14px 8px; border: 1px solid var(--line-strong); text-align: center; }
.flow-row b { display: block; font: 600 15px var(--sans); color: var(--text); }
.flow-row small { color: var(--muted); font-size: 12px; }
.flow-link { display: block; width: 1px; height: 26px; margin: 0 auto; background: var(--line-strong); }
.flow-model { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--accent); background: rgba(227, 164, 95, 0.08); text-align: center; }
.flow-model strong { font: 600 17px var(--sans); }
.flow-model span { color: var(--muted); }
.flow-arrow { flex: none; color: var(--accent); font-size: 18px; }
.flow figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }

/* Sample findings */
.findings { flex: 1 1 360px; min-width: 0; align-self: start; background: var(--pane); border: 1px solid var(--line); font: 13px/1.6 var(--mono); }
.findings-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.findings-head strong { color: var(--accent); }
.findings ul { list-style: none; margin: 0; padding: 8px 16px; }
.findings li { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.findings li:last-child { border-bottom: 0; }
.findings li span:first-child { color: var(--text); font-family: var(--sans); font-size: 15px; }
.findings li .muted { grid-column: 1; }
.findings li .sev { grid-row: 1 / span 2; grid-column: 2; align-self: center; justify-self: end; }
.sev { padding: 1px 6px; border: 1px solid var(--line-strong); font: 12px/1.5 var(--mono); }
.sev-critical { color: var(--error); border-color: var(--error-line); }
.sev-high { color: var(--accent); border-color: var(--warn-line); }
.sev-medium { color: var(--status); border-color: var(--warn-line); }
.sev-resolved { color: var(--ok); border-color: var(--ok-line); }
.findings figcaption { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: 14px; }

/* Services and cards */
/* 300px keeps three across at full width: nine tests, no orphan. */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.service-tag { font: 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dir); }
.service h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.service p { color: var(--muted); }
.service .fit { margin-top: auto; padding-top: 8px; color: var(--text); font-size: 15px; }
.service-accent { border-color: var(--accent); }
.steps { list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.steps li { counter-increment: step; flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 2px solid var(--line-strong); }
.steps b { font-weight: 600; }
.steps b::before { content: counter(step, decimal-leading-zero) '  '; color: var(--accent); font-family: var(--mono); white-space: pre; }
.steps span { color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .steps-col { flex: 1 1 420px; min-width: 0; }
.split .steps { flex-direction: column; gap: 24px; }
.split .steps li { flex: none; }

/* Two-column definition rows */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { flex: 0 0 220px; font: 13px/1.7 var(--mono); color: var(--accent); }
.rows dd { flex: 1 1 320px; margin: 0; color: var(--text); }
.rows dd span { color: var(--muted); }

/* Principles */
.approach { display: flex; flex-wrap: wrap; gap: 20px; }
.approach article { flex: 1 1 240px; padding-top: 16px; border-top: 2px solid var(--line-strong); }
.approach-no { font: 12px/1.6 var(--mono); color: var(--accent); }
.approach h3, .approach h4 { margin: 10px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.approach p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.about-lead { font-size: 24px; line-height: 1.45; letter-spacing: -0.015em; }
.about-copy { display: flex; flex-direction: column; gap: 14px; max-width: 64ch; color: var(--muted); }

/* Platform catalogue */
.family + .family { margin-top: 56px; }
.family-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.family-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.family-head p { max-width: 520px; color: var(--muted); }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.product-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.product-tagline { font: 13px/1.6 var(--mono); color: var(--dir); }
.product > p:not([class]) { color: var(--muted); }
.product .spec-list { margin-top: 6px; font-size: 14px; }
.product:target { border-color: var(--accent); }

/* Work: screenshots */
.shots { display: flex; gap: 14px; margin-top: 22px; padding-bottom: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 auto; width: 176px; scroll-snap-align: start; }
.shots img { display: block; width: 176px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--line-strong); background: var(--pane); }
.shots figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ls-table { font: 14px/1.6 var(--mono); border-top: 1px solid var(--line); }
.ls-table > div { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr); align-items: baseline; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 20px; }
.contact .panel { flex: 1 1 340px; min-width: 0; }
.contact-email { display: inline-block; margin: 4px 0 14px; font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--mono); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent-hover); text-decoration: underline; }
.contact p { color: var(--muted); }
.contact p + p { margin-top: 10px; }
.contact .spec-list { color: var(--text); }

/* Plain prose (legal) */
.prose { max-width: 68ch; padding-bottom: 72px; color: var(--muted); }
.prose p + p { margin-top: 14px; }

/* Footer: accredited partners, then a tmux-style status bar with the visitor's local time */
.footer { border-top: 1px solid var(--line); background: var(--panel); font: 12px/1.5 var(--mono); color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.partners-label { letter-spacing: 0.08em; text-transform: uppercase; }
.partners ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; padding: 0; list-style: none; }
.partners img { display: block; width: auto; max-width: 100%; }
.partners .p-huntress { height: 44px; }
.partners .p-sonicwall { height: 44px; }
.partners .p-tenable { height: 26px; }
/* Tenable's mark is navy on transparency, made for light backgrounds. */
.partners .plate { padding: 8px 12px; background: #f4f1ea; }
.statusbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 12px 0; }
.status-left { display: flex; flex-direction: column; gap: 6px; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.session-tag { padding: 1px 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tabs a { padding: 4px 0; color: var(--muted); text-decoration: none; }
.tabs a:hover, .tabs a[aria-current] { color: var(--text); }
.tabs a[aria-current]::after { content: '*'; }
.footer p a { color: var(--muted); }
.footer p a:hover { color: var(--text); }
.eol { color: var(--accent); }

/* The footer's sample finding: about the visitor's own connection, read from
   Cloudflare's trace by footer.js. Redacted until the script fills it in. */
.tease { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: center; padding: 72px 0 56px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.tease-pitch h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--text); }
.tease-pitch p:not(.eyebrow) { max-width: 44ch; margin: 18px 0 28px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tease-card { background: var(--pane); border: 1px solid var(--line-strong); font: 13px/1.6 var(--mono); color: var(--text); box-shadow: 0 0 0 1px rgba(227, 164, 95, 0.06), 0 24px 60px rgba(0, 0, 0, 0.35); }
.tease-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); letter-spacing: 0.06em; }
.tease-title { padding: 18px 20px 6px; font: 600 19px/1.35 var(--sans); color: var(--text); }
.tease-fields { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 8px 12px; margin: 0; padding: 10px 20px 18px; }
.tease-fields dt { color: var(--muted); }
.tease-fields dd { margin: 0; overflow-wrap: anywhere; }
.tease-checks { display: grid; gap: 4px; margin: 0; padding: 12px 20px 16px; list-style: none; border-top: 1px solid var(--line); }
.tease-checks li::before { display: inline-block; width: 2ch; }
.tease-checks .pass { color: var(--ok); }
.tease-checks .pass::before { content: '✓'; }
.tease-checks .fail { color: var(--status); }
.tease-checks .fail::before { content: '✗'; }
.tease-checks .info { color: var(--muted); }
.tease-checks .info::before { content: '•'; }
.sev-low { color: var(--status); border-color: var(--warn-line); }
.sev-info { color: var(--dir); border-color: var(--ok-line); }
.sev-redacted { color: var(--muted); }
.redact { display: inline-block; max-width: 100%; height: 0.95em; vertical-align: -0.1em; background: var(--line-strong); }
.r-9 { width: 9ch; } .r-12 { width: 12ch; } .r-14 { width: 14ch; } .r-18 { width: 18ch; } .r-24 { width: 24ch; }
.clock { display: flex; align-items: center; gap: 14px; }
.clock-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.45; }
.clock-time { font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.clock-ip { max-width: 28ch; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.clock-face { display: block; flex: none; }
.clock-dial { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.hand { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }

@media (max-width: 860px) {
  .page-head { grid-template-columns: 1fr; }
  .page-head p:not(.cmdline) { justify-self: start; }
}
@media (max-width: 760px) {
  .section-head, .about { grid-template-columns: 1fr; }
  .section-lead { justify-self: start; }
  .rows dt { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .topbar { position: static; }
  html { scroll-padding-top: 16px; }
}
@media (max-width: 640px) {
  .ls { grid-template-columns: max-content max-content; }
  .ls > :nth-child(4n + 1), .ls > :nth-child(4n) { display: none; }
  .ls-table > div { grid-template-columns: max-content minmax(0, 1fr); }
  .ls-table > div > :nth-child(3) { grid-column: 1 / -1; }
  .catalogue { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .wrap { width: calc(100% - 32px); }
}
@media (max-width: 960px) { .tease { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tease { padding: 56px 0 40px; } .tease-fields { grid-template-columns: minmax(0, 1fr); gap: 0; } .tease-fields dd { margin-bottom: 8px; } }

/* The home page: full-width bands, dark and cream in turn, one job each, with
   large type and bronze kept for buttons, labels and the call-out. */
.topnav .topcta { margin-left: 4px; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.topnav .topcta:hover { background: var(--accent-hover); color: var(--accent-ink); }

.band { padding: 96px 0; }
.band-dark { background: var(--bg); }
.band-light { background: var(--paper); color: var(--ink); }
.band-paper { background: var(--paper-2); color: var(--ink); }
.band-bronze { background: var(--accent); color: var(--ink); }
.band-hero { padding: 112px 0 0; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top; }
.band-hero > .wrap:first-child { padding-bottom: 88px; }

.eyebrow { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.band-light .eyebrow, .band-paper .eyebrow { color: var(--bronze-deep); }
.band-bronze .eyebrow { color: var(--ink); }

.big { max-width: 15ch; font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; line-height: 1.0; letter-spacing: -0.04em; }
.mid { max-width: 18ch; font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.band-light .mid span, .band-paper .mid span { color: var(--bronze-deep); }
.lede { max-width: 56ch; margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.body { max-width: 52ch; margin: 20px 0 28px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.band-light .body, .band-paper .body { color: var(--ink-muted); }
.band-bronze .body { color: var(--ink); margin-top: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.band-bronze .btns { margin-top: 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 2px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.band-light .btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band-light .btn-solid:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--panel); border-color: var(--panel); color: var(--accent); }
.btn-ink-line { border-color: var(--ink); color: var(--ink); }
.btn-ink-line:hover { background: var(--ink); color: var(--paper); }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.door { display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 32px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); background: rgba(8, 16, 13, 0.85); color: var(--text); text-decoration: none; }
.door b { font-size: 19px; }
.door b::after { content: ' →'; color: var(--accent); }
.door span { color: var(--muted); font-size: 14px; }
.door:hover { background: var(--panel); color: var(--text); }
.door:hover b { color: var(--accent); }

.split2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.split2-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 48px; }
.band-bronze .split2-head { margin-bottom: 0; align-items: center; }

.tile-groups { display: flex; flex-direction: column; gap: 28px; }
.tile-head { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tiles > li { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 16px; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--accent); font-weight: 700; text-align: center; }
.tiles-wide > li { display: block; min-height: 0; padding: 0; text-align: left; border-bottom-width: 0; }
.tiles-wide a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; color: var(--paper); text-decoration: none; border-bottom: 3px solid transparent; }
.tiles-wide a:hover { border-bottom-color: var(--accent); color: var(--paper); }
.tiles-wide b { font-size: 20px; }
.tiles-wide span { color: #b9c6bd; font-weight: 400; font-size: 14px; }
.tiles-wide small { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--status); }
.tiles-wide small.ok { color: var(--ok); }

.callout { margin-top: 56px; padding: 22px 28px; background: var(--accent); color: var(--ink); font-size: 20px; font-weight: 700; text-align: center; }

.flow5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: flow; border-top: 2px solid var(--ink); }
.flow5 li { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 0 0; counter-increment: flow; }
.flow5 li::before { content: counter(flow, decimal-leading-zero); font-size: 14px; font-weight: 700; color: var(--bronze-deep); }
.flow5 b { font-size: 19px; }
.flow5 span { color: var(--ink-muted); font-size: 15px; }

.cards { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cards a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cards a:hover { border-color: var(--accent); color: var(--text); }
.cards b { font-size: 19px; }
.cards span { grid-column: 1; color: var(--muted); }
.cards small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .split2, .split2-head { grid-template-columns: minmax(0, 1fr); }
  .flow5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .band { padding: 64px 0; }
  .band-hero { padding-top: 64px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .flow5 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .cards a { grid-template-columns: minmax(0, 1fr); }
  .cards small { grid-column: 1; grid-row: auto; }
  .topnav .topcta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
.contact .panel-title.gap { margin-top: 28px; }
