/* Vardad public site. The pitch's paper, ink and brass; serif headlines; quiet, wide margins. */
:root {
  --paper: #f8f5ee; --paper-2: #f0ebdf; --panel: #fffdf8;
  --ink: #1e1b16; --ink-2: #4a453a; --muted: #6c6556;
  --line: #ddd5c5; --line-2: #c9bfab;
  --brass: #a6731f; --brass-ink: #855a12; --brass-soft: #f0e3ca; --gold: #d9a441;
  --ok: #2f6b3a; --ok-soft: #e2efe0; --bad: #9b2c22;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter Variable', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; max-width: 24ch; }
h1 em, h2 em { color: var(--brass-ink); }
h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-2); margin-top: 1.5rem; max-width: 36rem; }
.section-lead { margin-top: 1rem; color: var(--ink-2); max-width: 40rem; }
.num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass-ink); display: block; margin-bottom: 0.3rem; }
.muted { color: var(--muted); }

.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 2px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--brass-ink); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e8b95c; }
.btn-line-light { border-color: #8a8170; color: #efe9db; }
.btn-line-light:hover { border-color: var(--gold); color: var(--gold); }
.text-link { color: var(--brass-ink); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding-block: 0.6rem; }
.text-link.inline { display: inline; padding: 0; }
.text-link.quiet { font-weight: 500; color: var(--muted); margin-top: 0.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem max(1.5rem, (100% - 72rem) / 2); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; text-decoration: none; }
/* The Vardad mark (shared/icons/vardad-mark.svg, traced from the Drive logo); the class name predates it. */
.diamond { width: 1.6rem; height: 1.6rem; flex: none; display: inline-block; background: var(--brass); -webkit-mask: url(../shared/icons/vardad-mark.svg) center / contain no-repeat; mask: url(../shared/icons/vardad-mark.svg) center / contain no-repeat; }
.foot .diamond { background: var(--gold); }
.nav nav { display: flex; align-items: center; gap: 1.6rem; }
.nav nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); }
.nav nav a:not(.btn):hover { color: var(--brass-ink); }
.nav nav a[aria-current] { color: var(--ink); box-shadow: 0 2px 0 var(--brass); }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
.nav .btn[aria-current] { background: var(--brass-ink); }
.nav-toggle { display: none; border: 1px solid var(--line-2); padding: 0.4rem 0.8rem; border-radius: 2px; font-size: 0.9rem; min-height: 44px; }

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #efe9db; border: 0; }
.dark h2 em { color: var(--gold); }
.dark .eyebrow { color: var(--gold); }
.dark .section-lead { color: #c9c1ae; }

/* Hero and the specimen record card */
.hero { padding-top: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.record { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(30, 27, 22, 0.35); padding: 1.4rem 1.5rem 1rem; font-size: 0.93rem; }
.record-flag { margin: -1.4rem -1.5rem 1.1rem; padding: 0.45rem 1.5rem; background: var(--brass-soft); color: var(--brass-ink); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.record-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.record-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.15; max-width: none; }
.record-title span { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.record-sub { color: var(--muted); font-size: 0.86rem; }
.badge { flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 2px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.record-grid dt, .record-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.record-grid dd { font-weight: 600; }
.record-grid dd small, .record-label small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
.record-label { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.record-label small { display: inline; }
.fails { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.fails li { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem 3.2rem; align-items: center; gap: 0.6rem; }
.fails b { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.fails small { color: var(--muted); font-size: 0.78rem; text-align: right; }
.bar { display: block; height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bar-in { display: block; height: 100%; background: var(--line-2); }
.bar-in.hit { background: var(--bad); }
.w13 { width: 13%; } .w12 { width: 12%; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.plain-card { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem; }
.plain-card p, .pillars p { color: var(--ink-2); margin-top: 0.6rem; font-size: 1rem; }
.pillars article { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.who .plain-card { display: flex; flex-direction: column; border-top: 3px solid var(--ink); transition: border-color 0.3s, box-shadow 0.3s; }
.who .plain-card.primary { border-top-color: var(--brass); }
.who .plain-card .text-link { margin-top: auto; padding-top: 1rem; }
.tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #5c5546; margin-bottom: 0.5rem; }

/* Flow diagram: who receives what (restyled 28 Nov 2026: icons, steps, curved connectors) */
.flow { margin-top: 3rem; padding: 2.2rem; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(40rem 16rem at 80% 0%, rgba(166, 115, 31, 0.08), transparent 70%), radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--panel); }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.8rem minmax(0, 1fr) 2.8rem minmax(0, 1fr); align-items: stretch; }
.flow-box, .flow-out li { transition: transform 0.3s; display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.15rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 14px 30px -22px rgba(30, 27, 22, 0.45); }
.flow-box > div, .flow-out li > div { display: grid; gap: 0.15rem; min-width: 0; }
.flow-ico { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 9px; background: var(--brass-soft); color: var(--brass-ink); }
.ico { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-step { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); }
.flow-box b, .flow-out b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.flow-box span:not(.flow-ico):not(.flow-dots), .flow-out li span:not(.flow-ico) { color: var(--muted); font-size: 0.9rem; }
.flow-box-ink { background: linear-gradient(155deg, #2e2920, var(--ink) 60%); border-color: var(--ink); color: #efe9db; box-shadow: 0 18px 36px -20px rgba(30, 27, 22, 0.7); }
.flow-box-ink .flow-ico { background: rgba(217, 164, 65, 0.16); color: var(--gold); }
.flow-box-ink .flow-step { color: var(--gold); }
.flow-box-ink span:not(.flow-ico):not(.flow-dots) { color: #c9c1ae !important; }
.flow-box-brass { background: linear-gradient(160deg, #f7ecd6, var(--brass-soft)); border-color: rgba(166, 115, 31, 0.55); }
.flow-box-brass .flow-ico { background: var(--brass); color: #fffdf8; }
.flow-dots { display: flex; gap: 5px; margin-top: 0.55rem; }
.flow-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3d372d; }
.flow-arrow { position: relative; align-self: center; height: 2px; margin-inline: 0.4rem; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 10px); }
.flow-arrow::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--brass); border-right: 0; }
.flow-fan { height: 4.2rem; margin-inline: 1rem; }
.flow-fan svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flow-fan path { fill: none; stroke: rgba(166, 115, 31, 0.35); stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow-fan .pulse { stroke: var(--brass); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 18 100; stroke-dashoffset: 18; opacity: 0; }
.flow-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.flow-out .flow-ico { border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.flow-out li.later { border-style: dashed; border-color: var(--line-2); background: rgba(255, 253, 248, 0.7); box-shadow: none; }
.flow-out li.later .flow-ico { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.flow-out em { font-style: normal; display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.5rem; border: 1px dashed var(--brass); border-radius: 99px; color: var(--brass-ink); font-size: 0.75rem; font-weight: 600; }

/* What you receive */
.receive { counter-reset: r; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.receive li { counter-increment: r; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.4rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line-2); }
.receive li::before { content: counter(r, upper-roman); font-family: var(--serif); font-style: italic; color: var(--brass-ink); font-size: 1.15rem; grid-row: span 2; }
.receive b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.receive span { color: var(--ink-2); font-size: 0.98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.facts > div { padding: 1rem 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
.facts dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.facts dd { color: var(--ink-2); font-size: 1rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.team article { background: var(--panel); border: 1px solid var(--line); padding: 1.8rem; }
.avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1rem; }
.role { color: var(--brass-ink); font-weight: 600; font-size: 0.93rem; margin-top: 0.2rem; }
.team .bio { margin-top: 0.8rem; color: var(--ink-2); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chips li { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); padding: 0.2rem 0.55rem; border-radius: 2px; }

/* Folds: team "more", FAQ, sub-pages */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.more { margin-top: 0.9rem; }
.more summary { color: var(--brass-ink); font-weight: 600; font-size: 0.93rem; display: inline-flex; min-height: 44px; align-items: center; }
.more summary::after, .faq summary::after, .fold > summary::after { content: '+'; font-family: var(--sans); font-weight: 400; margin-left: 0.5rem; color: var(--brass-ink); }
.more[open] summary::after, .faq details[open] summary::after, .fold[open] > summary::after { content: '−'; }
.more p { color: var(--ink-2); font-size: 0.98rem; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 44px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.faq summary:hover { color: var(--brass-ink); }
.faq details p { color: var(--ink-2); padding-bottom: 1.1rem; max-width: 40rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cal { margin-top: 1.6rem; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: #c9c1ae; }
.form small { font-weight: 400; }
.form input:not([type='radio']), .form textarea { background: #2a2620; border: 1px solid #8a8170; color: #efe9db; padding: 0.7rem 0.8rem; border-radius: 2px; font-weight: 400; font-size: 1rem; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form [aria-invalid] { border-color: #f0a79f; }
.form .btn { justify-self: start; }
.form-note { color: #a59d8a; font-size: 0.88rem; }
.form-note a, .sent a { color: #efe9db; }
.form-note.bad { color: #f0a79f; }
.roles { border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.roles legend { font-size: 0.9rem; font-weight: 600; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.roles label { display: block; }
.roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roles span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid #8a8170; border-radius: 2px; color: #efe9db; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.roles input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.roles input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.roles.bad span { border-color: #f0a79f; }
.sent { border: 1px solid #8a8170; padding: 1.6rem; }
.sent h3 { color: var(--gold); }
.sent p { color: #c9c1ae; margin-top: 0.5rem; }

/* Footer */
.foot { background: #15130f; color: #a59d8a; padding: 3rem 0 2rem; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.foot .brand { color: #efe9db; }
.foot a { color: #c9c1ae; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); column-gap: 2rem; }
.foot-links a { display: inline-block; padding-block: 0.4rem; }
.foot-legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #2e2a23; display: grid; gap: 0.3rem; font-size: 0.85rem; }

/* Sub-pages (specimen, carriers, mapping, imprint, privacy, 404) */
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumb a { color: var(--brass-ink); }
.page-body { padding-top: 1rem; }
.page-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.page-body section { padding: 2.5rem 0; }
.prose { max-width: 44rem; display: grid; gap: 0.9rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.4rem; margin-bottom: 0; }
.prose ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.note { color: var(--muted); font-size: 0.88rem; max-width: 44rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 1.3rem 1.4rem; }
.tile h3 { font-size: 1.35rem; }
.tile p { color: var(--ink-2); font-size: 0.98rem; margin-top: 0.4rem; }
.fold { border-bottom: 1px solid var(--line-2); }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 44px; }
.fold > summary h3 { font-size: 1.3rem; }
.fold > summary .sum-meta { margin-left: auto; color: var(--muted); font-size: 0.88rem; text-align: right; }
.fold-body { padding-bottom: 1.3rem; color: var(--ink-2); display: grid; gap: 0.8rem; }
.folds { border-top: 1px solid var(--line-2); max-width: 56rem; }

/* Specimen page */
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.spec .record { box-shadow: none; }
.spec-wide { grid-column: 1 / -1; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spec-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--line-2); }
.spec-table td { padding: 0.6rem 0.6rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td.n { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.45rem 1rem; }
.kv dt { color: var(--muted); font-size: 0.88rem; }
.kv dd { font-weight: 500; }
.kv code, .mono { font-family: var(--mono); font-size: 0.85rem; }

/* Mapping page */
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--ink-2); margin-top: 1rem; }
.lv { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 2px; white-space: nowrap; }
.lv-measured { background: var(--ok-soft); color: var(--ok); }
.lv-built { background: var(--brass-soft); color: var(--brass-ink); }
.lv-rule { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.lv-gap { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.reg-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; font-size: 0.93rem; }
.reg-meta dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prov { display: grid; gap: 0; border-top: 1px solid var(--line); }
.prov li { display: grid; grid-template-columns: minmax(0, 1fr) 10rem 8.5rem; gap: 0.3rem 1rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.prov .art { color: var(--muted); font-size: 0.85rem; }
.prov .from { color: var(--muted); font-size: 0.82rem; grid-column: 2; }
.prov .lv { justify-self: start; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 1.5rem 1.2rem; }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav nav .btn { margin-top: 1rem; }
  .hero-grid, .split, .contact-grid, .team, .foot-grid, .three, .spec, .tiles { grid-template-columns: minmax(0, 1fr); }
  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { width: 2px; height: 1.8rem; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 10px); }
  .flow-arrow::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid var(--brass); border-bottom: 0; }
  .flow-fan { height: 1.8rem; margin: 0 auto; width: 2px; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 10px); }
  .flow-fan svg { display: none; }
  .flow-out { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .flow { padding: 1.1rem; }
  .reg-meta { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { padding-inline: 1rem; }
  .record { padding: 1.2rem 1.1rem 0.8rem; }
  .record-flag { margin: -1.2rem -1.1rem 1rem; padding-inline: 1.1rem; }
  .fails li { grid-template-columns: minmax(0, 1fr) auto 2.8rem; }
  .fails .bar { display: none; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .kv dd { margin-bottom: 0.5rem; }
  .prov li { grid-template-columns: minmax(0, 1fr) auto; }
  .prov .art { grid-column: 1; grid-row: 2; }
  .prov .from { grid-column: 1; grid-row: 3; }
  .prov .lv { grid-column: 2; grid-row: 1; }
  .spec-table th:nth-child(3), .spec-table td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .nav, .foot, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .record { box-shadow: none; break-inside: avoid; }
  section { padding: 1rem 0; }
}
.note.spaced { margin-top: 2rem; }
.foot-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Careers */
.careers-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.role-facts { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: 0.4rem 1.4rem; }
.role-facts > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.role-facts > div:last-child { border-bottom: 0; }
.role-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.role-facts dd { font-weight: 500; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-area { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.job-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.job-meta { color: var(--muted); font-size: 0.88rem; text-align: right; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 0.9rem; display: grid; gap: 0.25rem; }
.steps li::before { content: counter(s, upper-roman); font-family: var(--serif); font-style: italic; color: var(--brass-ink); font-size: 1.15rem; }
.steps b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.steps span { color: var(--ink-2); font-size: 0.96rem; }
.team-more { margin-top: 1.5rem; }
@media (max-width: 960px) {
  .careers-head, .tiles-3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .job-area, .job-title, .job-meta { grid-column: 1; }
  .job-meta { text-align: left; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Careers hub: role cards */
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.job-card { display: grid; gap: 0.35rem; align-content: start; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 1.4rem 1.5rem; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.job-card:hover { border-top-color: var(--brass); box-shadow: 0 12px 30px -20px rgba(30, 27, 22, 0.4); }
.job-card .job-title { font-size: 1.5rem; }
.job-sum { color: var(--ink-2); font-size: 0.98rem; }
.job-card .job-meta { text-align: left; margin-top: 0.4rem; }
.job-go { color: var(--brass-ink); font-weight: 600; font-size: 0.93rem; margin-top: 0.4rem; }
.job-card:hover .job-go { text-decoration: underline; text-underline-offset: 3px; }

/* Role pages */
.job-chips { margin-top: 1.2rem; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 4rem; }
.job-main > section { padding: 0 0 2.2rem; }
.job-main h2 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin-bottom: 0.8rem; }
.job-main p { color: var(--ink-2); max-width: 44rem; }
.job-main p + p { margin-top: 0.8rem; }
.ticks { display: grid; gap: 0; max-width: 46rem; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0.1rem; top: 1.15rem; width: 0.42rem; height: 0.42rem; background: var(--brass); transform: rotate(45deg); }
.job-side { position: sticky; top: 5.5rem; display: grid; gap: 1.2rem; }
.job-apply { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: 1.3rem; display: grid; gap: 1rem; }
.job-apply .btn { text-align: center; }
.job-apply dl > div { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.job-apply dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.job-apply dd { font-weight: 500; }
.job-apply .muted { font-size: 0.88rem; }
.job-others ul { display: grid; margin-top: 0.4rem; }
.job-others a { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.job-others a:hover { color: var(--brass-ink); }
@media (max-width: 960px) {
  .tiles-4 { grid-template-columns: 1fr 1fr; }
  .job-cards { grid-template-columns: minmax(0, 1fr); }
  .job-layout { grid-template-columns: minmax(0, 1fr); }
  .job-side { position: static; order: -1; }
  .job-others { display: none; }
}
@media (max-width: 560px) { .tiles-4 { grid-template-columns: minmax(0, 1fr); } }
.job-main .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 46rem; }
@media (max-width: 560px) { .job-main .steps { grid-template-columns: minmax(0, 1fr); } }

/* Home page motion (motion.js, 28 Nov 2026). Illustrative graphics; .still = reduced motion, final state at once. */
.still, .still * { animation-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }

/* Hero: the test run */
.gate-grid { display: block; width: 100%; height: auto; margin: 1rem 0 0.2rem; overflow: visible; }
.g-label { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.g-dot { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 1; transition: fill 0.35s, stroke 0.35s; }
.g-dot.on { fill: var(--ok); stroke: var(--ok); }
.g-scan { fill: var(--brass); transition: x 0.19s linear, opacity 0.3s; }
.g-scan.gone { opacity: 0; }
.gate-state { background: var(--brass-soft); color: var(--brass-ink); font-variant-numeric: tabular-nums; transition: background 0.4s, color 0.4s; }
.signed .gate-state { background: var(--ok-soft); color: var(--ok); }
.gate-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
.seal { display: grid; justify-items: center; gap: 0.15rem; padding-bottom: 0.2rem; opacity: 0; transform: scale(1.6) rotate(-14deg); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
.seal svg { width: 3.4rem; height: 3.4rem; fill: none; stroke: var(--brass); stroke-width: 3; }
.seal svg circle + circle { stroke-width: 1.2; stroke-dasharray: 3 3; }
.seal svg path { stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.seal span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-ink); white-space: nowrap; }
.signed .seal { opacity: 1; transform: none; }

/* Team photos */
.person { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 0.2rem; }
.person .avatar { flex: none; width: 5.5rem; height: 5.5rem; margin: 0; font-size: 1.9rem; object-fit: cover; box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px var(--brass); }

.linkedin { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.linkedin:hover { color: #0a66c2; }
.linkedin svg { width: 0.95rem; height: 0.95rem; fill: #0a66c2; }

/* Charts: shared frame */
.chart { margin-top: 2.5rem; background: var(--panel); border: 1px solid var(--line); padding: 1.4rem 1.6rem 1.1rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart figcaption:not(.sr) { color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; max-width: 46rem; }
@keyframes v-grow { to { transform: scaleX(1); } }
@media (max-width: 560px) { @keyframes v-grow { to { transform: scaleX(1) scaleY(1.3); } } }
@keyframes v-fade { to { opacity: 1; } }
@keyframes v-out { to { opacity: 0; } }
@keyframes v-draw { to { stroke-dashoffset: 0; } }
@keyframes v-pop { 60% { transform: scale(1.35); } to { transform: scale(1); } }

/* The problem: reviews start over at every bank */
.rv-axis line { stroke: var(--line-2); }
.rv-axis text { fill: var(--muted); font-size: 11px; }
.rv-rows text { font-family: var(--serif); font-size: 17px; font-weight: 600; fill: var(--ink); }
.rv-rows .rv-us { fill: var(--brass-ink); }
.rv-rel { opacity: 0; }
.rv-rel line { stroke: var(--bad); stroke-dasharray: 4 4; opacity: 0.5; }
.rv-rel text { fill: var(--bad); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rv-bar { fill: var(--ink); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.rv-note { fill: var(--paper); font-size: 11.5px; font-weight: 500; opacity: 0; }
.rv-track { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 580; stroke-dashoffset: 580; }
.rv-ticks path { fill: var(--brass); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.play .rv-bar { animation: v-grow 1.3s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
.play .b1 { animation-delay: 0.2s; } .play .b2 { animation-delay: 1.5s; } .play .b3 { animation-delay: 2.8s; }
.play .rv-note { animation: v-fade 0.4s forwards; }
.play .n1 { animation-delay: 1.1s; } .play .n2 { animation-delay: 2.4s; } .play .n3 { animation-delay: 3.7s; }
.play .rv-rel { animation: v-fade 0.6s 0.9s forwards; }
.play .rv-track { animation: v-draw 1.8s 4.3s ease-out forwards; }
.play .rv-ticks path { animation: v-pop 0.45s forwards; }
.play .t0 { animation-delay: 4.3s; } .play .t1 { animation-delay: 4.5s; } .play .t2 { animation-delay: 5s; } .play .t3 { animation-delay: 5.6s; }

/* How it works: a signal runs through the flow, on a 6 s loop */
@keyframes v-lit { 0%, 30%, 100% { transform: none; } 6%, 20% { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--brass-soft), 0 18px 30px -16px var(--brass); } }
@keyframes v-run { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 12% { left: calc(100% - 6px); opacity: 1; } 14%, 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes v-runv { 0% { top: 0; opacity: 0; } 2% { opacity: 1; } 12% { top: calc(100% - 6px); opacity: 1; } 14%, 100% { top: calc(100% - 6px); opacity: 0; } }
.flow-arrow::before { content: ''; position: absolute; left: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 8px var(--gold); opacity: 0; }
.flow.play .flow-box, .flow.play .flow-out li { animation: v-lit 6s infinite; }
.flow.play .flow-arrow::before { animation: v-run 6s infinite; }
.flow.play .flow-box:nth-child(1) { animation-delay: 0s; }
.flow.play .flow-arrow:nth-child(2)::before { animation-delay: 0.6s; }
.flow.play .flow-box:nth-child(3) { animation-delay: 1.2s; }
.flow.play .flow-arrow:nth-child(4)::before { animation-delay: 1.8s; }
.flow.play .flow-box:nth-child(5) { animation-delay: 2.4s; }
.flow.play .flow-out li:nth-child(1) { animation-delay: 3.3s; }
.flow.play .flow-out li:nth-child(2) { animation-delay: 3.5s; }
.flow.play .flow-out li:nth-child(3) { animation-delay: 3.7s; }
@keyframes v-dot { 0%, 100% { background: #3d372d; } 4%, 40% { background: #6fbf7f; } }
@keyframes v-pulse { 0% { stroke-dashoffset: 18; opacity: 0; } 2% { opacity: 1; } 14% { stroke-dashoffset: -100; opacity: 1; } 15%, 100% { stroke-dashoffset: -100; opacity: 0; } }
.flow.play .flow-dots i { animation: v-dot 6s infinite; }
.flow.play .flow-dots i:nth-child(1) { animation-delay: 1.27s; }
.flow.play .flow-dots i:nth-child(2) { animation-delay: 1.34s; }
.flow.play .flow-dots i:nth-child(3) { animation-delay: 1.41s; }
.flow.play .flow-dots i:nth-child(4) { animation-delay: 1.48s; }
.flow.play .flow-dots i:nth-child(5) { animation-delay: 1.55s; }
.flow.play .flow-dots i:nth-child(6) { animation-delay: 1.62s; }
.flow.play .flow-dots i:nth-child(7) { animation-delay: 1.69s; }
.flow.play .flow-dots i:nth-child(8) { animation-delay: 1.76s; }
.flow.play .flow-dots i:nth-child(9) { animation-delay: 1.83s; }
.flow.play .flow-dots i:nth-child(10) { animation-delay: 1.90s; }
.flow.play .flow-dots i:nth-child(11) { animation-delay: 1.97s; }
.flow.play .flow-dots i:nth-child(12) { animation-delay: 2.04s; }
.flow.play .flow-fan .pulse { animation: v-pulse 6s 2.6s infinite; }
.flow.play .flow-fan .p3 { animation-delay: 2.75s; }

/* Independence: a record lapses when the model changes */
.releases { margin-top: 2rem; padding: 1.2rem 1.3rem 0.8rem; }
.rl-line { stroke: var(--line-2); stroke-width: 2; }
.rl-node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.rl-node circle { fill: var(--panel); stroke: var(--ok); stroke-width: 2.5; transition: stroke 0.4s; }
.rl-node path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rl-node text { text-anchor: middle; font-family: var(--mono); font-size: 12px; fill: var(--ink); }
.rl-node .rl-sub { font-family: var(--sans); font-size: 10.5px; fill: var(--ok); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rl-node .rl-lapse-t { fill: var(--bad); opacity: 0; }
.rl-model { opacity: 0; }
.rl-model line { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 4 3; }
.rl-model text { text-anchor: middle; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--bad); }
@keyframes v-lapse-c { to { stroke: var(--line-2); stroke-dasharray: 4 3; } }
@keyframes v-lapse-p { to { opacity: 0.15; } }
.play .rl-node { animation: v-pop 0.45s forwards, v-fade 0.3s forwards; }
.play .r1 { animation-delay: 0.2s; } .play .r2 { animation-delay: 0.8s; } .play .r3 { animation-delay: 1.4s; } .play .r4 { animation-delay: 3.4s; }
.play .rl-model { animation: v-fade 0.4s 2.2s forwards; }
.play .r3 circle { animation: v-lapse-c 0.4s 2.6s forwards; }
.play .r3 path, .play .r3 .rl-signed-t { animation: v-lapse-p 0.4s 2.6s forwards; }
.play .r3 .rl-signed-t { animation-name: v-out; }
.play .r3 .rl-lapse-t { animation: v-fade 0.4s 2.7s forwards; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.three > .reveal:nth-child(2), .team > .reveal:nth-child(2) { transition-delay: 0.1s; }
.three > .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 960px) {
  .flow.play .flow-arrow::before { left: -2px; animation-name: v-runv; }
}
@media (max-width: 560px) {
  .chart { padding: 1rem 0.9rem 0.8rem; }
  .rv-rows text { font-size: 24px; }
  .rv-axis text { font-size: 21px; }
  .rv-rel text { display: none; }
  .rv-note { font-size: 16px; }
  .rv-bar { transform: scaleX(0) scaleY(1.3); }
  .person .avatar { width: 4.4rem; height: 4.4rem; font-size: 1.5rem; }
}
@media print { .reveal { opacity: 1; transform: none; } }
