@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/newsreader-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/newsreader-500.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/source-sans-3-700.woff2') format('woff2'); }

:root {
  --ink: #1F2328;
  --muted: #5A6068;
  --line: #E4E4E0;
  --ground: #F7F7F5;
  --paper: #FFFFFF;
  --source: #6DBC43;      /* green: the bronregel */
  --source-text: #2F6B12;
  --finding: #E86F12;     /* orange: what stands out */
  --finding-text: #A84A00;
  --evidence: #B60075;    /* magenta: evidence, report, the trace */
  --evidence-hover: #8F005C;
  --evidence-tint: #FBEAF4;
  --rail: 96px;
  --max: 1180px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--evidence); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: 0 2px 0 var(--evidence); }
.lang { font-size: 14px; color: var(--muted); }
.lang b { color: var(--ink); }

/* mobile menu: native details, shown under 900px */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ground); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 30px -18px rgba(31,35,40,.4); }
.menu-list a { padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--line); }
.menu-list a:first-child { border-top: 0; }
.btn { display: inline-block; font: 600 16px/1 var(--sans); padding: 13px 20px; border-radius: 4px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--evidence); color: #fff; }
.btn-primary:hover { background: var(--evidence-hover); }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: none; padding: 10px 16px; }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.top .btn-primary { padding: 11px 16px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--evidence); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* the trace: one line down the left of the page */
.traced { position: relative; }
.trace { position: absolute; left: calc(max(0px, (100% - var(--max)) / 2) + var(--rail) / 2); top: 0; bottom: 0; width: 2px; pointer-events: none; }
.trace svg { width: 2px; height: 100%; overflow: visible; }
.trace line { stroke: var(--evidence); stroke-width: 2; }
.stop { position: absolute; left: calc(var(--rail) / 2 - 7px); width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--evidence); transition: background .3s; }
.stop.reached { background: var(--evidence); }
.chapter { position: relative; padding: 104px 32px 104px calc(var(--rail) + 32px); max-width: var(--max); margin: 0 auto; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.band { background: var(--ground); }

/* hero */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 120px; }
.hero h1 { max-width: 11em; }
.hero .lead { margin: 26px 0 36px; }
.actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.figure { position: relative; }
.photo { aspect-ratio: 4 / 5; border-radius: 3px; background: linear-gradient(170deg, #d9cfc3 0%, #a69686 48%, #6f645a 100%); display: flex; align-items: flex-end; padding: 18px; color: #fff; font-size: 13px; }
.photo span { background: rgba(31,35,40,.55); padding: 4px 8px; border-radius: 2px; }
.photo.wide { aspect-ratio: 16 / 10; }

/* the ask card: TrusteeTrace answering a curator's question */
.ask { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(31,35,40,.35); padding: 20px 22px; font-size: 15px; }
.figure .ask { position: absolute; right: -28px; bottom: -40px; width: min(360px, 92%); }
.ask .q { font-family: var(--serif); font-size: 19px; line-height: 1.3; margin-bottom: 12px; }
.ask .a { color: var(--ink); }
.ask .src { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ask .src i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--source); margin-right: 7px; }
.mark { font-weight: 600; color: var(--evidence); white-space: nowrap; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* recognition */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.statement p + p { margin-top: 18px; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--line); }
.steps li { counter-increment: s; padding-right: 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font: 600 16px/1 var(--sans); margin-bottom: 20px; position: relative; }
.steps li.s-source::before { border-color: var(--source); color: var(--source-text); }
.steps li.s-finding::before { border-color: var(--finding); color: var(--finding-text); }
.steps li.s-evidence::before { border-color: var(--evidence); color: var(--evidence); }
.steps p { color: var(--muted); font-size: 16px; margin-top: 6px; }

.screen { margin-top: 64px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(31,35,40,.4); }
.screen .bar { height: 34px; background: var(--ground); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 12px; color: var(--muted); }
.screen .bar b { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.screen .bar span { margin-left: 12px; }
.screen .body { aspect-ratio: 16 / 7; background: repeating-linear-gradient(135deg, #f4f4f1 0 12px, #efefeb 12px 24px); display: grid; place-items: center; color: var(--muted); font-size: 15px; text-align: center; padding: 20px; }

/* what it finds: a list, not cards */
.finds { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; margin-top: 48px; }
.finds div { padding: 22px 0 22px 26px; border-top: 1px solid var(--line); position: relative; }
.finds div::before { content: ""; position: absolute; left: 0; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--finding); }
.finds p { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* ask the case spotlight */
.asklab { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.examples { list-style: none; padding: 0; margin: 28px 0 0; }
.examples li { font-family: var(--serif); font-size: 20px; line-height: 1.35; padding: 14px 0; border-top: 1px solid var(--line); }
.examples li:last-child { border-bottom: 1px solid var(--line); }
.asklab .ask { padding: 26px 28px; }
.input { border: 1.5px solid var(--ink); border-radius: 4px; padding: 14px 16px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.input span.btn { padding: 9px 14px; font-size: 15px; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 44px; }
.trust p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.trust h3 { padding-top: 18px; border-top: 2px solid var(--ink); }

/* maker */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.maker img { width: 190px; height: auto; }
.maker p { max-width: 36em; }
.aside { margin-top: 20px; font-size: 16px; color: var(--muted); }

/* close */
.close { text-align: left; padding-bottom: 140px; }
.close h2 { max-width: 14em; margin-bottom: 30px; }
.close .stop { background: var(--evidence); }

/* founders */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 40px; margin-top: 48px; }
.person { display: flex; gap: 20px; align-items: center; }
.initials { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 600 26px/1 var(--sans); color: #fff; }
.person b { display: block; font-size: 20px; }

/* contact form */
.formgrid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
form { display: grid; gap: 20px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 16px; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { font: 400 17px/1.4 var(--sans); padding: 13px 14px; border: 1.5px solid #C9C9C4; border-radius: 4px; background: var(--paper); color: var(--ink); }
input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--evidence-tint); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--evidence); }
.hp { position: absolute; left: -9999px; }
.next { list-style: none; padding: 0; margin: 28px 0 0; }
.next li { padding: 16px 0 16px 0; border-top: 1px solid var(--line); }
.next li b { display: block; }
.sent { display: none; border-left: 3px solid var(--source); background: var(--ground); padding: 18px 20px; }

/* footer */
.foot { background: var(--ink); color: #C5C9CE; font-size: 15px; }
.foot .wrap { display: flex; gap: 28px; align-items: center; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot .brand { color: #fff; font-size: 17px; margin-right: 0; }
.foot .right { margin-left: auto; }

/* page intro for sub pages */
.intro { padding-top: 96px; padding-bottom: 72px; }
.intro .lead { margin-top: 22px; }

@media (max-width: 900px) {
  :root { --rail: 40px; }
  .nav, .lang { display: none; }
  .menu { display: block; }
  .top .wrap { gap: 12px; }
  .top .btn-primary { display: none; }
  .top .btn-quiet { padding: 8px 12px; font-size: 15px; }
  .wrap { padding: 0 16px; }
  .intro { padding-top: 56px; padding-bottom: 48px; }
  .chapter { padding: 72px 16px 72px calc(var(--rail) + 16px); }
  .hero, .statement, .asklab, .formgrid, .finds, .maker { grid-template-columns: 1fr; gap: 40px; }
  .figure .ask { position: relative; right: auto; bottom: auto; margin: -60px 12px 0; width: auto; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { display: none; }
  .trust, .people { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stop { transition: none; }
}
.chapter > *, .formgrid > * { min-width: 0; }

/* hero flow: bronregel to bevinding to verslag replaces the big title */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.flow text { font-family: var(--serif); font-size: 34px; fill: var(--ink); }
.flowline { stroke: var(--evidence); stroke-width: 3; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .flowline { animation: none; stroke-dashoffset: 0; } }
img.photo { object-fit: cover; width: 100%; height: auto; padding: 0; }
.screen img { width: 100%; height: auto; display: block; }
.screen.narrow { max-width: 900px; }
.caption { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 760px; }

/* header logo: The Auditfile Factory (TrusteeTrace name stays out of the header) */
.top .brand .logo { width: 120px; height: auto; display: block; }
.form-error { margin: 0; border-left: 3px solid var(--finding); background: var(--ground); padding: 14px 16px; }
[hidden] { display: none !important; }
