/* Open Exit · stylesheet
   Fonts are self-hosted: place the IBM Plex woff2 files in /fonts (see fonts/README.md).
   Without them the site falls back to system fonts. */

@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Serif'; src: url('/fonts/IBMPlexSerif-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Brand: teal shared with the analytix house style (#0d7377). */
  --brand: #0D7377;
  --brand-strong: #0A5D61;  /* hover and pressed states */
  --brand-tint: #E6F1F0;    /* card fills on the light ground */
  --brand-on-dark: #7FCFCB; /* teal for text and lines on the dark bands */
  --on-brand: #E6F2F1;      /* secondary text on teal (4.8:1) */
  --ink: #0B2E30;
  --ink-2: #123E41;
  --ink-3: #072123;
  --ground: #F4F7F6;
  --ground-2: #E3EEED;
  --white: #FFFFFF;
  --line: #D2DFDD;
  --line-2: #BFD1CF;
  --text-2: #34494B;
  --muted: #546A6C;
  --on-dark: #F1F7F6;
  --on-dark-2: #B6CDCC;
  --on-dark-3: #88A5A5;
  --accent: #D4520B;        /* small warm accent: sources layer, featured service */
  --accent-strong: #B5440A; /* accent for text on light backgrounds */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 30; }
.skip:focus { left: 16px; top: 16px; color: var(--on-dark); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 88px; padding-bottom: 88px; }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark a { color: var(--on-dark); }
.band--soft { background: var(--ground-2); }
.band--dark .text-link { color: var(--brand-on-dark) !important; }
/* Teal page headers carry the logo mark as a large, faint background motif, aligned with the
   right edge of the content and cropped at the bottom, so the departing square stays fully visible. */
.band--brand { color: var(--white); background: url('/brand/mark-bg.svg') no-repeat right calc(max(0px, (100% - 1200px) / 2)) bottom -40px / 440px 440px, var(--brand); }
@media (max-width: 1279px) { .band--brand { background-size: 340px 340px; background-position: right 24px bottom -40px; } }
@media (max-width: 760px) { .band--brand { background: var(--brand); } }
.band--brand a { color: var(--white); }
.band--brand .eyebrow, .band--brand .lead { color: var(--on-brand); }
.band--brand .btn--primary { background: var(--white); color: var(--brand-strong); }
.band--brand .btn--primary:hover { background: var(--on-brand); color: var(--ink); }
.band--brand .btn--ghost { border-color: var(--white); color: var(--white); }
.band--brand .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.band--brand :focus-visible { outline-color: var(--white); }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-18 { gap: 18px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; }
.measure { max-width: 1000px; }
.measure > p { max-width: 760px; }
.grid { display: grid; gap: 24px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.grid--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.grid--top { align-items: start; }

/* Typography */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.eyebrow--muted { color: var(--muted); }
.band--dark .eyebrow { color: var(--brand-on-dark); }
h1, h2, h3 { margin: 0; }
.h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 1100px; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; text-wrap: balance; }
.h3 { font-size: 22px; font-weight: 600; }
.h3--sm { font-size: 20px; }
.lead { margin: 0; font-size: 20px; color: var(--text-2); max-width: 560px; }
.lead--wide { font-size: 19px; max-width: 760px; }
p { margin: 0; }
.text-2 { color: var(--text-2); }
.band--dark .text-2 { color: var(--on-dark-2); }
.note { font-size: 17px; color: var(--muted); max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 22px; font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-strong); color: var(--white); }
.btn--ghost { border: 1.5px solid var(--ink); font-weight: 500; }
.btn--dark { background: var(--ink); color: var(--on-dark); font-weight: 500; min-height: 44px; padding: 12px 18px; }
.btn--dark:hover { background: var(--ink-2); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { color: var(--brand) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }

/* Header */
/* One menu of pages on every page; it stays in reach while scrolling (see public/nav.js). */
html { scroll-padding-top: 88px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 20; }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; } }
.js-nav .site-header { position: sticky; top: 0; }
.nav-links a[aria-current] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-toggle { display: none; }
@media (max-width: 959px) {
  .js-nav .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
  .js-nav .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0 16px; }
  .js-nav .site-header.is-open .nav-links { display: flex; }
  .js-nav .nav-links a:not(.btn) { min-height: 44px; display: flex; align-items: center; font-size: 17px; }
  .js-nav .nav-links .lang { margin: 8px 0 12px; }
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
@media (max-width: 480px) { .brand img { height: 28px; } }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.lang { display: flex; border: 1px solid var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.lang a, .lang span { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; text-decoration: none; }
.lang [aria-current="true"] { background: var(--ink); color: var(--on-dark); }

/* Cards and blocks */
.card { background: var(--brand-tint); border: 0; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card--outline { background: transparent; border: 1px solid var(--line-2); padding: 28px; gap: 12px; }
.card--dark { background: var(--brand); color: var(--white); border: 0; padding: 28px; gap: 12px; }
.card--dark p { color: var(--on-brand); }
.num { font-family: var(--mono); font-size: 15px; color: var(--brand); }
.rule-item { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brand); padding-top: 20px; }
.rule-item--muted { border-top-color: var(--line-2); }
.rule-item p { color: var(--text-2); }
.band--dark .rule-item { border-top-color: var(--brand-on-dark); }
.band--dark .rule-item p { color: var(--on-dark-2); }

.service { background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; border-top: 4px solid var(--ink); }
.service--featured { border-top-color: var(--accent); }
.service__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.service__head .h3 { font-size: 24px; }
.meta { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.service ul { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

.stack-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; }
.layer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); }
.layer span:first-child { font-weight: 500; }
.layer span:last-child { color: var(--muted); text-align: right; }
.layer--owned { background: var(--brand); color: var(--white); border-color: var(--brand); }
.layer--owned span:last-child { color: var(--on-brand); }
.layer--source { background: transparent; border: 1.5px dashed var(--accent); color: var(--accent-strong); padding: 14px 18px; }
.layer--source span:last-child { color: var(--accent-strong); }
.stack-fig figcaption { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 1px solid var(--line-2); background: var(--line-2); gap: 1px; }
.option { padding: 32px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.tag { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }

.list-rows > div { padding: 20px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.list-rows > div:last-child { border-bottom: 0; }
.list-rows h3 { font-size: 19px; font-weight: 600; }

.portrait { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; background: var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; }
.badge { border: 1px solid var(--ink); padding: 8px 12px; }
.badge--placeholder { border-style: dashed; border-color: var(--muted); color: var(--muted); }

.levels { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.levels li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--white); padding: 22px 24px; }
.levels li > span:first-child { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.levels strong { font-weight: 600; }
.levels .text-2 { color: var(--text-2); }
.levels li.levels__top { background: var(--brand); color: var(--white); }
.levels li.levels__top > span:first-child { color: var(--on-brand); }
.levels li.levels__top .text-2 { color: var(--on-brand); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.form input, .form textarea { font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--muted); background: var(--ink-2); color: var(--on-dark); }
.form textarea { min-height: 112px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--on-dark-2); }
.form .check input { min-height: auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-on-dark); }
.form .check a { color: var(--on-dark) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }

/* Footer */
.site-footer { background: var(--ink-3); color: var(--on-dark-3); font-size: 14px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.simple-page { min-height: 50vh; }

/* Scroll reveal (see public/reveal.js). Only active when the script has added .reveal-on,
   so the page stays fully visible without JavaScript or with reduced motion. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease-out, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on .stack-fig [data-reveal] { transform: translateY(26px); }
.reveal-on .stack-fig [data-reveal].is-in { transform: none; }
@media print { .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* "Waarom nu" legislation timeline (on the dark band) */
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.timeline li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.timeline__date { font-family: var(--mono); font-size: 15px; color: var(--brand-on-dark); padding-top: 2px; }
.timeline strong { display: block; font-weight: 600; margin-bottom: 4px; }
.timeline p { color: var(--on-dark-2); max-width: 760px; }
.band--dark .note { color: var(--on-dark-3); font-size: 15px; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.rule-item .timeline__date { padding-top: 0; }
.sources { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--on-dark-2); }
.band--dark .sources a { color: var(--on-dark-2); text-underline-offset: 3px; }
.band--dark .sources a:hover { color: var(--on-dark); }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--white); border: 1px solid var(--line-2); padding: 12px 18px; font-weight: 500; font-size: 17px; }
.legal { max-width: 760px; }
.legal ul { margin: 0; padding-left: 22px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.footer-right { align-items: flex-end; text-align: right; }
.footer-right .footer-links { justify-content: flex-end; }
@media (max-width: 760px) { .footer-right { align-items: flex-start; text-align: left; } .footer-right .footer-links { justify-content: flex-start; } }
.portrait-wrap { display: block; max-width: 420px; width: 100%; justify-self: end; }
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .portrait-wrap { justify-self: start; order: -1; max-width: 320px; } }

/* Inline links in body copy */
.text-2 a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Five items: three on the first row, two wider ones on the second */
.grid--3-2 { grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) {
  .grid--3-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .grid--3-2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3-2 > * { grid-column: span 2; }
  .grid--3-2 > :nth-child(n+4) { grid-column: span 3; }
  .grid--3-2 > :last-child:nth-child(odd) { grid-column: span 3; }
}
