/* =========================================================================
   Day One design system — "Thuisbasis"
   The single source of truth. Every page and every component uses only
   the tokens and classes in this file. Documentation: styleguide.html
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --navy: #1B1B38;        /* ink, dark surfaces */
  --orange: #FF8339;      /* primary action, one highlight per screen */
  --blue: #4188EE;        /* data and platforms, used sparingly */
  --white: #FFFFFF;       /* page background */
  --mist: #F3F3F6;        /* second surface, alternating sections */
  --line: #E2E2E8;        /* hairlines, input borders */
  --ink: #1B1B38;         /* body text */
  --ink-2: #5B5B72;       /* secondary text */
  --ink-3: #6E6E84;       /* placeholders, 5.0:1 on white */
  --field: #8A8A9C;       /* input borders, 3.4:1 on white (non-text 3:1) */
  --error: #C2361F;       /* error text, 5.5:1 on white */

  /* type */
  --f-display: "Gabarito", "Figtree", system-ui, sans-serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(44px, 6.6vw, 96px);
  --t-h1: clamp(40px, 5vw, 72px);
  --t-h2: clamp(32px, 3.8vw, 52px);
  --t-h3: clamp(22px, 2vw, 28px);
  --t-h4: 20px;
  --t-lead: clamp(19px, 1.5vw, 22px);
  --t-body: 18px;
  --t-small: 15px;
  --t-caption: 13px;
  --t-number: clamp(56px, 7vw, 112px);

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(72px, 9vw, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --wrap: 1320px;
  --nav-h: 76px;

  /* shape */
  --r-lg: 20px;   /* photos, blocks */
  --r-sm: 12px;   /* inputs, screenshots, small thumbnails */
  --r-xl: 32px;   /* full-width panels (hero, platforms, CTA) */
  --r-pill: 999px; /* buttons only */

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 150ms;
  --slow: 400ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.bg-navy :focus-visible, .on-dark :focus-visible, .panel.bg-navy :focus-visible, .footer :focus-visible, .dark-card:focus-visible { outline-color: var(--orange); }
.bg-orange :focus-visible { outline-color: var(--navy); }
::selection { background: var(--orange); color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type ---------- */
.t-display, .t-h1, .t-h2, .t-h3, .t-h4, .t-number { font-family: var(--f-display); color: inherit; }
.t-display { font-size: var(--t-display); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.t-h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }
.t-h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.t-h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.t-h4 { font-size: var(--t-h4); font-weight: 700; line-height: 1.3; }
.t-number { font-size: var(--t-number); font-weight: 800; line-height: .9; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.t-lead { font-size: var(--t-lead); line-height: 1.5; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.t-caption { font-size: var(--t-caption); line-height: 1.4; font-weight: 600; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.measure { max-width: 34em; }
.on-dark { color: var(--white); }
.on-dark .muted, .on-dark .t-caption { color: rgba(255,255,255,.72); }

/* ---------- 4. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section.bg-white, .section.bg-white + .section.bg-white { padding-top: 0; }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-orange { background: var(--orange); color: var(--navy); }
.stack > * + * { margin-top: var(--s-5); }
.stack-s > * + * { margin-top: var(--s-3); }
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); margin-bottom: var(--s-7); flex-wrap: wrap; }

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  font-family: var(--f-text); font-weight: 700; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-primary:hover, .bg-navy .btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--orange); }
.on-dark .btn-secondary, .bg-navy .btn-secondary { color: var(--white); border-color: var(--white); }
.on-dark .btn-secondary:hover, .bg-navy .btn-secondary:hover { background: var(--white); color: var(--navy); }
.bg-orange .btn-primary { background: var(--navy); color: var(--white); }
.bg-orange .btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-s { height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link {
  color: inherit; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color var(--fast);
}
.link:hover { text-decoration-color: currentColor; }
.link-ext::after { content: "\2009\2197"; }

/* ---------- 6. Icons (Lucide, 24px grid, 2px stroke) ---------- */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 18px; height: 18px; }

/* ---------- 7. Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--white); border-bottom: 1px solid transparent; transition: border-color var(--fast); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.nav-logo img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: var(--s-1); }
.nav-menu a:not(.btn) { display: block; padding: 10px 12px; font-weight: 600; font-size: 16px; white-space: nowrap; text-decoration: none; border-radius: var(--r-pill); }
.nav-menu a:not(.btn):hover { background: var(--mist); }
.nav-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-menu .menu-cta { display: none; }
.nav-inner > nav { margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.nav-actions .lang a { padding: 8px 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; background: none; border: 0; cursor: pointer; color: var(--navy); }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 1140px) {
  .nav-toggle { display: grid; }
  .nav-contact { display: none; }
  .nav-inner > nav { position: absolute; width: 0; height: 0; margin: 0; }
  .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--nav-h)); flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: var(--s-4) var(--gutter) var(--s-8); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 16px 0; font-size: 22px; font-family: var(--f-display); font-weight: 700; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu a:not(.btn):hover { background: none; }
  .nav-menu .menu-cta { display: block; margin-top: var(--s-6); }
  .nav-menu .menu-cta .btn { width: 100%; justify-content: center; }
  .nav-actions { margin-left: auto; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 380px) { .nav-actions .lang a { padding: 6px 9px; } .nav-logo img { height: 26px; } }

/* ---------- 8. Panels and hero ----------
   A panel is a full-width rounded block, inset 12px from the screen edge.
   Dark panels carry the big moments: hero, platforms, the final call. */
.panel { margin: 0 12px; border-radius: var(--r-xl); overflow: hidden; }
.panel + .panel { margin-top: 12px; }
.panel.bg-navy { background: var(--navy); color: var(--white); }
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(16px, 2vw, 24px); }
.hero-top { display: block; }
.hero-side { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5) var(--s-7); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-side p { max-width: 30em; }
.hero-side p { color: rgba(255,255,255,.82); }
.hero-side .btns { margin-top: 0; align-items: center; }
.hero-photo { margin: clamp(40px, 5vw, 64px) calc(var(--gutter) * -1 + 12px) 0; height: min(52vh, 520px); min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* hero slideshow: crossfade + slow zoom, focal point per photo (--p desktop, --pm mobile) */
.hero-slides { position: relative; }
.hero-slides .slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.hero-slides .slide.on { opacity: 1; z-index: 2; transition: opacity 900ms ease-in-out; }
.hero-slides .slide.out { opacity: 1; z-index: 1; }
.hero-slides .slide.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--navy); }
.hero-slides .slide img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: var(--p); transform-origin: var(--p); }
.hero-slides .slide.on img, .hero-slides .slide.out img { animation: hero-zoom 3400ms linear forwards; }
.is-paused .hero-slides .slide img { animation-play-state: paused; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.035); } }
@media (max-width: 860px) {
  .hero-slides .slide img { object-position: var(--pm); transform-origin: var(--pm); }
  .hero-slides .slide.pair { gap: 8px; }
  .hero-slides .slide.no-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide img { animation: none !important; }
  .hero-slides .slide.on { transition: none; }
}
.swap { display: grid; }
.swap { color: var(--orange); overflow: hidden; padding-bottom: .08em; }
.swap > span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.swap > span.on { opacity: 1; transform: none; }
.swap > span.off { opacity: 0; transform: translateY(-70%); }
.t-display .line { display: block; }
.t-display .line.swap { display: grid; }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-photo { height: 50vh; margin-top: var(--s-6); }
  .panel { margin: 0 8px; border-radius: 24px; }
}

/* pause control for moving content (WCAG 2.2.2) */
.pause { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.pause svg { width: 18px; height: 18px; }
.pause .i-play { display: none; }
.is-paused .pause .i-play { display: block; }
.is-paused .pause .i-pause { display: none; }

/* ---------- 9. Media ---------- */
.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.photo-grid .photo { aspect-ratio: 4 / 5; }
.photo-grid .photo.wide { grid-column: span 2; aspect-ratio: auto; }

/* ---------- 10. Race card ---------- */
.race-card { display: block; text-decoration: none; }
.race-card .photo { aspect-ratio: 4 / 5; position: relative; }
.race-card .photo .race-logo { position: absolute; left: 12px; bottom: 12px; margin: 0; height: auto; max-width: calc(100% - 24px); background: var(--white); border-radius: var(--r-sm); padding: 10px 14px; }
.race-card .photo .race-logo img { max-height: 44px; max-width: 160px; }
.race-card h3 { margin-top: var(--s-4); }
.race-card .race-logo { height: 56px; margin-top: var(--s-4); display: flex; align-items: center; }
.race-card .race-logo img { max-height: 56px; max-width: 70%; width: auto; }
.race-card .race-logo + p { margin-top: var(--s-2); }
.race-card h3 { margin-top: var(--s-4); }
.race-card p { color: var(--ink-2); font-size: var(--t-small); }
.race-card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- 10b. Dark card: photo on top, words on solid navy below ---------- */
.dark-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: var(--white); text-decoration: none; }
.dark-card .photo { border-radius: 0; aspect-ratio: 3 / 2; }
.dark-card .body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.dark-card p { color: rgba(255,255,255,.8); }
.dark-card .btns { margin-top: auto; padding-top: var(--s-4); }

/* ---------- 11. Counter sentence ---------- */
.count-line { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.02em; max-width: 22em; }
.count-line b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .12em; text-underline-offset: .12em; }
.on-dark .count-line b, .bg-navy .count-line b { color: var(--orange); }

/* ---------- 12. Review ---------- */
.review { border-top: 2px solid var(--navy); padding-top: var(--s-5); }
.review blockquote { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; }
.review figcaption { margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-2); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.score { display: inline-block; min-width: 2.6em; padding: 2px 8px; border-radius: 6px; background: var(--navy); color: var(--white); font-weight: 700; font-size: var(--t-small); text-align: center; }

/* ---------- 13. Blocks ---------- */
.block { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.block.bg-mist, .block.bg-navy, .block.bg-orange { }
.block-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); align-items: end; }

/* ---------- 14. Platform ---------- */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.platform-logo { height: clamp(40px, 4.4vw, 64px); width: auto; }
.screen { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.phone { width: min(300px, 70%); margin: 0 auto; aspect-ratio: 9 / 19.5; border-radius: 40px; background: var(--navy); padding: 10px; }
.phone .screen { height: 100%; border: 0; border-radius: 30px; position: relative; }
.phone .screen img { position: absolute; inset: 0 0 auto; width: 100%; }
.phone .screen img.scroll { animation: phone-scroll 24s var(--ease) infinite; }
.phone:hover .screen img.scroll, .phone:focus-within .screen img.scroll, .is-paused .phone .screen img.scroll { animation-play-state: paused; }
@keyframes phone-scroll { 0%, 10% { transform: translateY(0); } 45%, 55% { transform: translateY(calc(-100% + 520px)); } 90%, 100% { transform: translateY(0); } }

/* ---------- 14b. Device pair: real screenshots, straight on, no tilt or glow ---------- */
.devices { position: relative; min-height: clamp(360px, 38vw, 540px); }
.devices .laptop { position: absolute; top: 4%; left: 0; width: 86%; border-radius: var(--r-sm); overflow: hidden; border: 8px solid #0E0E22; border-top-width: 22px; background: #0E0E22; }
.devices .laptop img { width: 100%; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: clamp(170px, 16vw, 240px); margin: 0; }
.devices.flip .laptop { left: auto; right: 0; }
.devices.flip .phone { right: auto; left: 0; }
.bg-navy .phone, .panel.bg-navy .phone { background: #0E0E22; box-shadow: inset 0 0 0 2px #2C2C55; }
.platform + .platform { margin-top: var(--s-9); }
@media (max-width: 960px) { .devices { min-height: 0; aspect-ratio: 1 / .9; } .platform .devices { order: 2; } }

/* ---------- 15. People ---------- */
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-lg); }
.person h3 { margin-top: var(--s-4); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }

/* ---------- 16. Forms ---------- */
.field label { display: block; font-weight: 600; font-size: var(--t-small); margin-bottom: 6px; }
.input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--r-sm); background: var(--white); font-size: 17px; }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.input.is-error { border-color: var(--error); border-width: 2px; }
.field .hint { margin-top: 6px; font-size: var(--t-caption); color: var(--ink-2); }
.field .error { margin-top: 6px; font-size: var(--t-small); color: var(--error); font-weight: 600; }
.field .error::before { content: "! "; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--navy); color: var(--white); padding: var(--s-9) 0 var(--s-6); }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); }
.footer h4, .footer .f-h { font-family: var(--f-display); font-size: 17px; font-weight: 700; margin-bottom: var(--s-4); }
.footer li + li { margin-top: var(--s-2); }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.footer-end { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); font-size: var(--t-small); color: rgba(255,255,255,.6); }
.footer-end b { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; color: var(--white); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .cols-4, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .split, .platform, .block-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .btns .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 19. Track lines ("Baanlijnen") ----------
   The Day One pattern: lines from an athletics track. Never behind a
   headline or any text. On a photo, or on an empty part of a panel. */
.has-track { position: relative; isolation: isolate; }
.has-track::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background-repeat: no-repeat; }
.track-bocht::before { inset: 0 0 auto auto; width: min(70%, 900px); aspect-ratio: 16 / 9; background-image: url("../img/patterns/bocht-on-navy.svg"); background-size: cover; background-position: left center; }
.track-bocht.is-light::before { background-image: url("../img/patterns/bocht-on-light.svg"); }
.track-boog::before { left: 0; bottom: 0; width: min(60%, 720px); aspect-ratio: 3 / 2; background-image: url("../img/patterns/boog-on-navy.svg"); background-size: contain; background-position: left bottom; }
.track-boog.is-light::before { background-image: url("../img/patterns/boog-on-light.svg"); }
.track-rechte::before { inset: 0; background-image: url("../img/patterns/rechte-on-navy.svg"); background-size: 800px auto; background-repeat: repeat-x; background-position: left center; }
.track-rechte.is-light::before { background-image: url("../img/patterns/rechte-on-light.svg"); }
.finish-line { height: 60px; background: url("../img/patterns/finish-on-light.svg") center / auto 100% repeat-x; }
.bg-navy .finish-line { background-image: url("../img/patterns/finish-on-navy.svg"); }

/* ---------- 20. Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); align-items: end; }
.newsletter form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.newsletter .field { flex: 1 1 240px; }
.newsletter .consent { flex-basis: 100%; font-size: var(--t-small); color: var(--ink-2); }
.bg-navy .newsletter .consent, .newsletter.on-dark .consent { color: rgba(255,255,255,.75); }
.bg-navy .newsletter label { color: var(--white); }
.bg-navy .input { border-color: var(--white); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- 21. Photo fade ("Verloop") ----------
   Photo on top, fading into solid navy. Words only on the solid part,
   never in front of heads or the key moment. Optional bright label. */
.fade { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; text-decoration: none; }
.fade > img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 75%; object-fit: cover; object-position: 50% 25%; }
.fade::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 30.5%; background: linear-gradient(to bottom, rgba(27,27,56,0) 0%, rgba(27,27,56,.65) 55%, #1B1B38 100%); }
.fade .body { position: relative; z-index: 1; padding: var(--s-6); text-align: center; }
.fade .t-h2 .line-2, .fade .t-h3 .line-2 { display: block; color: var(--orange); }
.label { display: inline-block; background: var(--orange); color: var(--navy); font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1; padding: 10px 16px; border-radius: 6px; transform: rotate(-3deg); margin-bottom: var(--s-4); }
.fade.is-wide { aspect-ratio: 16 / 9; }
.fade.is-wide > img { height: 100%; }
.fade.is-wide::after { top: 30%; height: 70%; background: linear-gradient(to bottom, rgba(27,27,56,0), rgba(27,27,56,.7) 55%, #1B1B38 100%); }
.fade.is-wide .body { text-align: left; max-width: 34em; }

/* track lines on top of a photo (white), e.g. hero photo */
.photo-track { position: relative; }
.photo-track::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../img/patterns/bocht-on-photo.svg") right center / auto 110% no-repeat; }
/* language switch */
.lang { display: inline-flex; border: 1.5px solid var(--field); border-radius: var(--r-pill); overflow: hidden; font-weight: 700; font-size: 14px; }
.lang a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
/* track lines in one corner of a photo with a runner: the lines stop before the person */
.photo-track.is-corner::after { background-image: url("../img/patterns/bocht-kort-on-photo.svg"); background-size: auto 62%; background-position: right 3% top 4%; }
.photo-track.is-corner-bl::after { background-image: url("../img/patterns/bocht-kort-on-photo.svg"); background-size: auto 62%; background-position: right 3% bottom 4%; transform: scaleX(-1); }
/* haak in a photo corner: straight comes in from the edge, bends, stops before the runner */
.photo-haak { position: relative; overflow: hidden; }
.photo-haak .haak { position: absolute; top: 4%; right: 0; width: 26%; height: auto; max-width: none; transform: scale(-1, -1); pointer-events: none; }
.photo-haak.is-bottom .haak { top: auto; bottom: 4%; transform: scaleX(-1); }

/* ---------- 22. Page parts (v2 pages) ---------- */
.card { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6); }
.bg-white .card, .card.is-line { border: 1px solid var(--line); }
.card p { margin-top: var(--s-3); color: var(--ink-2); }
.bg-navy .card { background: rgba(255,255,255,.06); }
.bg-navy .card p { color: rgba(255,255,255,.8); }
.quote { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; max-width: 30em; }
.quote + .t-small { margin-top: var(--s-4); }
.avatars { display: flex; }
.avatars img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid currentColor; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.bg-orange .avatars img { border-color: var(--orange); }
.bg-navy .avatars img { border-color: var(--navy); }
.faq details { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: .8; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: var(--s-3); color: var(--ink-2); max-width: 46em; }
.todo { background: #FFF1A8; color: #4A3D00; padding: 0 6px; border-radius: 4px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.steps li { border-top: 2px solid var(--navy); padding-top: var(--s-4); }
.steps li::before { counter-increment: step; content: counter(step); display: block; font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: var(--s-3); }
.steps p { color: var(--ink-2); margin-top: var(--s-2); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: var(--s-5); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.form-status.ok { color: #1C6B3B; font-weight: 600; }
.form-status.err { color: var(--error); font-weight: 600; }
.page-hero .t-h1 { max-width: 14ch; }
.page-hero .hero-side { margin-top: var(--s-5); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 12px; }
.panel.has-track.track-haak::before { left: 0; right: auto; bottom: 28px; top: auto; width: min(44%, 520px); aspect-ratio: 1600 / 740; background-image: url("../img/patterns/haak-jouwbaan-on-navy.svg"); background-size: contain; background-position: left bottom; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .form .two { grid-template-columns: 1fr; } }

/* icons inside running text */
p .icon, .link .icon, li .icon { display: inline-block; vertical-align: -0.15em; }
/* fixes: device pair and race logos on small screens */
.race-card .photo .race-logo img { max-width: 100%; }
@media (max-width: 960px) {
  .devices { aspect-ratio: auto; height: clamp(320px, 80vw, 460px); }
  .devices .phone { width: clamp(130px, 34vw, 200px); }
  .platform { row-gap: var(--s-6); }
}
@media (max-width: 600px) {
  .race-card .photo .race-logo { left: 8px; bottom: 8px; padding: 6px 8px; max-width: calc(100% - 16px); }
  .race-card .photo .race-logo img { max-height: 30px; }
}

/* ---------- 23. Newsletter card with photo ---------- */
.nl-card { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); color: var(--white); }
.nl-card .photo { border-radius: 0; min-height: 360px; height: 100%; }
.nl-card .photo img { object-position: 50% 20%; }
.nl-card .body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.nl-card .body p { color: rgba(255,255,255,.82); }
.nl-card form { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: end; margin-top: var(--s-3); }
.nl-card .field { flex: 1 1 240px; }
.nl-card label { color: var(--white); }
.nl-card .input { border-color: var(--white); }
.nl-card .consent { flex-basis: 100%; font-size: var(--t-small); color: rgba(255,255,255,.75); }
.nl-card .label { align-self: flex-start; margin-bottom: 0; }
@media (max-width: 860px) { .nl-card { grid-template-columns: 1fr; } .nl-card .photo { min-height: 240px; height: 240px; } }
/* footer social */
.socials { display: flex; gap: var(--s-2); }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.4); color: var(--white); }
.socials a:hover { background: var(--white); color: var(--navy); text-decoration: none; }
/* contact page */
.route-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); text-decoration: none; }
.route-list a:last-child { border-bottom: 1px solid var(--line); }
.route-list b { font-family: var(--f-display); font-size: var(--t-h4); }
.route-list span { color: var(--ink-2); font-size: var(--t-small); display: block; }
.route-list a:hover b { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-big { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); }
.contact-big a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-big a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.legend { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.legend li { display: flex; align-items: center; gap: var(--s-3); }
.legend i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
/* newsletter card: bigger */
.nl-card { grid-template-columns: 1.1fr 1fr; min-height: clamp(520px, 62vh, 680px); }
.nl-card .photo { min-height: 100%; }
.nl-card .body { padding: clamp(32px, 5vw, 88px); gap: var(--s-5); }
.nl-card .t-h2 { font-size: var(--t-h1); }
.nl-card .input { height: 60px; font-size: 18px; }
.nl-card .btn { height: 60px; padding: 0 32px; }
@media (max-width: 860px) { .nl-card { min-height: 0; } .nl-card .photo { min-height: 300px; height: 300px; } }
/* light newsletter card (e.g. directly under a navy hero) */
.nl-card.is-light { background: var(--mist); color: var(--ink); }
.nl-card.is-light .body p { color: var(--ink-2); }
.nl-card.is-light label { color: var(--ink); }
.nl-card.is-light .input { border-color: var(--field); }
.nl-card.is-light .consent { color: var(--ink-2); }
/* newsletter card: mobile stacks (must come after the size override) */
@media (max-width: 860px) {
  .nl-card { grid-template-columns: 1fr; min-height: 0; }
  .nl-card .photo { min-height: 260px; height: 260px; }
  .nl-card .t-h2 { font-size: var(--t-h2); }
}
/* race type + event facts (partners) */
.race-card .meta { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }
.type { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 13px; line-height: 1.4; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.event { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.event .ev-logo { height: 56px; display: flex; align-items: center; }
.event .ev-logo img { max-height: 56px; max-width: 70%; width: auto; }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); font-size: var(--t-small); }
.event dt { color: var(--ink-2); }
.event dd { font-weight: 700; text-align: right; }
.race-card .photo.is-empty { background: var(--navy); display: grid; place-items: center; color: var(--white); }
.race-card .photo.is-empty span { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h4); text-align: center; padding: var(--s-5); }
.race-card .note { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.event .ev-logo b { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.photo-grid { grid-auto-flow: dense; }
/* hero: short curve with orange lane in the empty top-right of the panel, never behind text */
.hero-track { position: relative; }
.hero-track::before { content: ""; position: absolute; top: clamp(24px, 4vw, 56px); right: 0; width: clamp(160px, 22vw, 300px); aspect-ratio: 630 / 900; background: url("../img/patterns/bocht-kort-jouwbaan-on-navy.svg") right top / contain no-repeat; pointer-events: none; }
@media (max-width: 1100px) { .hero-track::before { display: none; } }
/* hero with track: buttons go under the text so the right side stays empty for the lines */
.hero-track .hero-side { flex-direction: column; align-items: flex-start; }
.hero-track .hero-side .btns { margin-top: var(--s-2); }
.hero-track::before { top: clamp(40px, 5vw, 72px); right: 12px; width: clamp(140px, 16vw, 230px); }
/* review cards + feedback loop */
.rev-card { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.rev-card blockquote { font-size: 19px; line-height: 1.5; flex: 1; }
.rev-card figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }
.rev-card figcaption b { color: var(--ink); font-weight: 600; }
.loop { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-5); align-items: stretch; margin-top: var(--gap); }
.loop .arrow { display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 40px; color: var(--orange); }
.loop .rev-card .t-caption { text-transform: none; }
.loop .is-navy { background: var(--navy); color: var(--white); }
.loop .is-navy p { color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } .loop .arrow { transform: rotate(90deg); } }
/* Finishlijn score on race cards: stars filled to the score (out of 10) */
.stars { position: relative; display: inline-block; font-size: 15px; letter-spacing: 2px; line-height: 1; color: var(--line); }
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--orange); }
.stars span::before { content: "\2605\2605\2605\2605\2605"; }
.race-card .rating { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }
.race-card .rating b { color: var(--ink); }
.race-card .rating + .meta { margin-top: 4px; }
/* news archive */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--gap); }
.news-card { display: block; text-decoration: none; }
.news-card .photo { aspect-ratio: 3 / 2; }
.news-card .t-caption { margin-top: var(--s-4); }
.news-card h3 { margin-top: var(--s-2); }
.news-card p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-small); }
.news-card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-year { margin: var(--s-9) 0 var(--s-6); padding-top: var(--s-4); border-top: 2px solid var(--navy); }
.news-year:first-of-type { margin-top: 0; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
/* hero: buttons under the text (no track lines in the panel any more) */
.hero .hero-side { flex-direction: column; align-items: flex-start; }
.hero .hero-side .btns { margin-top: var(--s-2); }
.hero-photo.photo-haak .haak { top: 0; right: auto; left: 0; width: clamp(140px, 18%, 240px); height: auto; transform: scaleX(-1) scaleY(-1); transform-origin: center; }
.loops { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.loops .loop { margin-top: 0; }
.steps.is-cycle li { position: relative; }
/* article page */
.article { max-width: 760px; margin: 0 auto; }
.article .photo { aspect-ratio: 16 / 9; margin-top: var(--s-6); }
.article-body { margin-top: var(--s-7); font-size: 19px; line-height: 1.7; }
.article-body > * + * { margin-top: 1em; }
.article-body h2 { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); line-height: 1.2; margin-top: 1.8em; }
.article-body h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); line-height: 1.3; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .4em; }
.article-body a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--orange); padding-left: var(--s-5); font-family: var(--f-display); font-weight: 600; font-size: var(--t-h4); }
.article-back { display: inline-flex; gap: var(--s-2); font-weight: 600; text-decoration: none; }
.article-back:hover { text-decoration: underline; text-decoration-color: var(--orange); }
/* hero: big track from the bottom, to the right, then up, in the empty right side of the panel */
.hero-top { position: relative; }
.hero-art { position: absolute; right: calc(var(--gutter) * -1 + 12px); bottom: calc(clamp(40px, 5vw, 64px) * -1); height: calc(100% + clamp(40px, 6vw, 88px) + clamp(40px, 5vw, 64px)); width: auto; max-width: none; pointer-events: none; }
@media (max-width: 1100px) { .hero-art { display: none; } }
/* team members without a photo yet */
.person .initial { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 6vw, 80px); }
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .grid.cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid.cols-6 { grid-template-columns: repeat(2, 1fr); } }
/* hero art alignment: right edge = photo right edge, clear gap above the photo, straights fade in from the left */
.hero-art {
  right: calc(var(--gutter) * -1 + 12px);
  bottom: calc(clamp(40px, 5vw, 64px) * -1 + 28px);
  height: calc(100% + clamp(40px, 6vw, 88px) + clamp(40px, 5vw, 64px) - 28px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
  mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
/* review with photo */
.rev-photo { border-radius: var(--r-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.rev-photo .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.rev-photo .body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.rev-photo blockquote, .rev-photo .quote { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); line-height: 1.3; flex: 1; }
.rev-photo figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }
.rev-photo figcaption b { color: var(--ink); font-weight: 600; }
.said { display: grid; gap: var(--s-3); }
.said .rev-card { padding: var(--s-5) var(--s-6); }
.said blockquote, .said p.big { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); line-height: 1.3; }
.page-hero .t-h1 { max-width: 24ch; }
/* platforms: two equal columns inside one navy panel */
.plats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--s-7); }
.plat-card { background: rgba(255,255,255,.05); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.plat-card .shot { position: relative; height: clamp(300px, 30vw, 420px); background: linear-gradient(transparent, transparent); overflow: hidden; }
.plat-card .shot .laptop { position: absolute; left: 8%; top: 12%; width: 74%; border-radius: var(--r-sm); overflow: hidden; border: 6px solid #0E0E22; border-top-width: 18px; background: #0E0E22; }
.plat-card .shot .laptop img { width: 100%; }
.plat-card .shot .phone { position: absolute; right: 7%; top: 18%; width: 30%; margin: 0; aspect-ratio: 9 / 19.5; border-radius: 28px; padding: 7px; background: #0E0E22; box-shadow: inset 0 0 0 2px #2C2C55; }
.plat-card .shot .phone .screen { border-radius: 22px; }
.plat-card .body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.plat-card .body p { color: rgba(255,255,255,.82); }
.plat-card .body .btns { margin-top: auto; padding-top: var(--s-4); }
.plat-card .logo { height: 34px; width: auto; align-self: flex-start; }
.plat-card .t-h3 { color: var(--orange); }
@media (max-width: 960px) { .plats { grid-template-columns: 1fr; } }
.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: rgba(255,255,255,.88); }
.checklist .icon { margin-top: 4px; flex: none; }
.bg-white .checklist li, .section .checklist li { color: inherit; }
.panel.bg-navy .checklist li { color: rgba(255,255,255,.88); }
.grid.cols-7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 960px) { .grid.cols-7 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .grid.cols-7 { grid-template-columns: repeat(3, 1fr); } }
/* width/height on <img> only set the aspect ratio; every CSS rule wins (zero specificity) */
:where(img[width][height]) { width: auto; height: auto; }
.legal .article-body { font-size: 17px; }
.legal .article-body h2 { font-size: var(--t-h4, 22px); }
.legal .article-body ul { padding-left: 1.2em; list-style: disc; }
.legal .article-body li + li { margin-top: .3em; }
.legal-note { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-sm); background: var(--mist); color: var(--ink-2); font-size: var(--t-small); }

/* ---------- Mobile fixes ---------- */
.t-display .line { text-wrap: balance; }
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.race-card .meta { display: block; }
.race-card .meta .icon { display: inline-block; vertical-align: -3px; margin-left: 4px; }
@media (max-width: 960px) {
  .steps.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --section: 64px; }
  .personas, .steps.cols-3 { grid-template-columns: 1fr; }
  .footer-cols { gap: var(--s-6) var(--s-5); }
  .footer-brand { grid-column: 1 / -1; }
}
.t-display .line.l2 { display: flex; align-items: flex-start; }
.t-display .line.l2 .swap { flex: 1; min-width: 0; }
.of-m { display: none; }
@media (max-width: 600px) { .of-d { display: none; } .of-m { display: inline; } }
@media (max-width: 360px) { :root { --t-display: 38px; } }
.swap > span { white-space: nowrap; }
.swap > span.skip { display: none; }
.t-display .line.l2 .swap > span { min-width: 0; }
@media (max-width: 600px) {
  .personas .rev-photo .photo { aspect-ratio: 3 / 2; }
  .personas .rev-photo .body { padding: var(--s-4) var(--s-4) var(--s-5); gap: var(--s-2); }
  .personas { gap: var(--s-4); }
}

/* ---------- Style guide audit: accessibility ---------- */
.nl-card:not(.is-light) :focus-visible { outline-color: var(--orange); }
.lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.nav-logo { display: inline-block; padding: 7px 0; }
.footer li a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.faq summary { min-height: 44px; align-items: center; }
.article-back { padding: 8px 0; }

/* Race cards on phones: one per row, with a wider photo */
@media (max-width: 600px) {
  .grid.races { grid-template-columns: 1fr; gap: var(--s-6); }
  .races .race-card .photo { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Feedback round 12 Nov 2026
   ========================================================================== */

/* ---------- Race card v2: bigger, with place, short description, score link ---------- */
.grid.races { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.races .race-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.section:not(.bg-mist) .races .race-card { border: 1px solid var(--line); }
.races .race-card .photo { display: block; position: relative; border-radius: 0; aspect-ratio: auto; min-height: 320px; height: 100%; }
.races .race-card .photo > img { position: absolute; inset: 0; }
.races .race-card .photo .race-logo { display: block; z-index: 1; }
.races .race-card .photo .race-logo img { display: block; max-height: 44px; max-width: 150px; width: auto; height: auto; }
.race-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); }
.race-name { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
.race-card .race-place { margin-top: calc(var(--s-3) * -1 + 4px); font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink-2); }
.race-card .race-desc { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.race-card .note { margin-top: 0; }
.race-foot { margin-top: auto; padding-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); }
.race-card .rating { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; min-height: 44px; font-size: var(--t-small); color: var(--ink-2); text-decoration: none; }
.race-card .rating b { color: var(--ink); font-weight: 700; }
.race-card a.rating .rev-count { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color var(--fast); }
.race-card a.rating:hover .rev-count { text-decoration-color: currentColor; }
.race-card a.rating .icon { width: 14px; height: 14px; }
.race-card .rating + .meta { margin-top: 0; }
@media (max-width: 1100px) {
  .races .race-card { grid-template-columns: 1fr; }
  .races .race-card .photo { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 680px) {
  .grid.races { grid-template-columns: 1fr; gap: var(--s-5); }
  .race-body { padding: var(--s-5); }
}

/* ---------- Key figures with the map (home, under the hero) ---------- */
.figures .split { grid-template-columns: 1.15fr 1fr; }
.figures .count-line { font-size: clamp(26px, 2.7vw, 38px); }
.figures .count-line .link { text-decoration-thickness: .08em; text-underline-offset: .12em; }
.figures .map img { width: 100%; max-width: 540px; margin: 0 auto; }
.figures .map .legend { margin: var(--s-5) auto 0; max-width: 540px; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); color: var(--ink-2); }
.figures .map .legend i { width: 12px; height: 12px; }
@media (max-width: 960px) {
  .figures .split { grid-template-columns: 1fr; }
  .figures .map img { max-width: 360px; }
}

/* ---------- Illustrative icons ("what's in it for you"): 48px, navy line, one orange detail ---------- */
.perk-icon { width: 56px; height: 56px; flex: none; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.perk-icon .acc { stroke: var(--orange); }
.bg-navy .perk-icon { stroke: var(--white); }
.perks-title { margin-top: var(--s-8); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gap); margin-top: var(--s-6); }
.perks li { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.perks h4 { margin-top: var(--s-4); }
.perks p { margin-top: var(--s-2); color: var(--ink-2); }
@media (max-width: 960px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .perks { grid-template-columns: 1fr; gap: var(--s-5); }
  .perks li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-4); }
  .perks li .perk-icon { grid-row: span 2; }
  .perks h4 { margin-top: 0; }
}

/* ---------- Personas ("Elke race 1% beter"): name, wish, what we do ---------- */
.persona .body { gap: var(--s-3); }
.persona .want { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h4); line-height: 1.3; flex: 1; }
.persona .do { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.persona .do p:last-child { color: var(--ink-2); font-size: var(--t-small); margin-top: 2px; }

/* ---------- "Ooit loop ik een marathon": the orange lane runs the bend once ---------- */
.has-draw { position: relative; isolation: isolate; }
.track-draw { position: absolute; z-index: -1; left: 0; bottom: 28px; width: min(44%, 520px); height: auto; pointer-events: none; }
.track-draw.will-draw .lane { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.track-draw.is-drawn .lane { opacity: 1; animation: lane-draw 2600ms cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes lane-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 600px) { .track-draw { width: 78%; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .track-draw .lane { stroke-dashoffset: 0 !important; opacity: 1 !important; } }

/* ---------- Newsletter: tighter card, shine once in view, confirmation slides in ---------- */
.nl-card { min-height: 0; grid-template-columns: 1fr 1.1fr; }
.nl-card .photo { min-height: 420px; }
.nl-card .body { padding: clamp(28px, 4vw, 56px); gap: var(--s-4); }
.nl-card .t-h2 { font-size: var(--t-h2); }
.nl-card form { margin-top: var(--s-2); max-width: 560px; }
#nieuwsbrief.section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.nl-btn { position: relative; overflow: hidden; }
.nl-btn::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 28%; background: rgba(255,255,255,.6); transform: skewX(-20deg); opacity: 0; pointer-events: none; }
.nl-btn.shine::after { animation: btn-shine 900ms var(--ease) 1; }
@keyframes btn-shine { 0% { left: -45%; opacity: 1; } 100% { left: 125%; opacity: 1; } }
.btn-swap { display: grid; overflow: hidden; }
.btn-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); opacity: 0; transform: translateY(120%); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.btn-swap > span.on { opacity: 1; transform: none; }
.btn-swap > span.off { opacity: 0; transform: translateY(-120%); }
.nl-btn.is-done { pointer-events: none; }
@media (max-width: 860px) {
  .nl-card { grid-template-columns: 1fr; }
  .nl-card .photo { min-height: 240px; height: 240px; }
  #nieuwsbrief.section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
}

/* ---------- Phone mockup: the screen sets the shape (Safari added the padding to the height) ---------- */
.phone, .plat-card .shot .phone { aspect-ratio: auto; height: auto; }
.phone .screen { height: auto; aspect-ratio: 9 / 19.5; }
.race-card .rating .rev-count { white-space: nowrap; }
/* volunteer page: job cards (photo fade + label) with one line under each */
.roles { row-gap: var(--s-7); }
.role .fade { aspect-ratio: 4 / 5; }
.role > p { margin-top: var(--s-4); max-width: 30em; }
.page-hero .t-display { max-width: 12ch; }
.steps li h3 { margin-top: 0; }
/* "Dit is Day One": photo + title are one link */
.do-link { display: block; text-decoration: none; color: inherit; }
.do-link h3 { margin-top: var(--s-4); }
.do-link:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.do-link:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
/* organisers: three ways with a photo, and the logo wall */
.way .photo { aspect-ratio: 3 / 2; }
.way .body { padding: var(--s-5) var(--s-6) var(--s-6); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s-3); }
.logo-wall li { background: var(--white); border-radius: var(--r-sm); height: 96px; display: grid; place-items: center; padding: var(--s-3); }
.logo-wall img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 600px) { .logo-wall { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); } .logo-wall li { height: 80px; padding: var(--s-2); } .logo-wall img { max-height: 52px; } }
/* vacancy card on navy */
.job { display: flex; flex-direction: column; gap: var(--s-3); }
.job .t-caption { color: rgba(255,255,255,.72); }
.job-facts { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-5); margin-top: var(--s-2); font-size: var(--t-small); }
.job-facts dt { color: rgba(255,255,255,.65); }
.job-facts dd { font-weight: 600; }
.job .btns { margin-top: var(--s-3); }
/* job card (werken bij): photo left, details right, whole card is the link */
.job-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; }
.job-card .photo { border-radius: 0; min-height: 320px; }
.job-card .job { padding: var(--s-7); }
.job-card .job .t-caption { color: var(--ink-2); }
.job-card .job-facts dt { color: var(--ink-2); }
.job-card .job .btn { align-self: flex-start; margin-top: var(--s-4); }
.job-card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.job-card:hover .btn-primary { background: var(--navy); color: var(--white); }
@media (max-width: 860px) { .job-card { grid-template-columns: 1fr; } .job-card .photo { min-height: 0; aspect-ratio: 3 / 2; } .job-card .job { padding: var(--s-5); } }
/* vacancy page */
.vac-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(40px, 6vw, 88px); }
.vac-hero .job-facts dt { color: rgba(255,255,255,.65); }
.vac-video { aspect-ratio: 9 / 16; max-height: 640px; width: 100%; max-width: 360px; justify-self: center; border-radius: var(--r-lg); overflow: hidden; background: #0E0E22; }
.vac-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.phases .phase { border-top: 2px solid var(--navy); padding-top: var(--s-5); }
.phases ul { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.phases li { color: var(--ink-2); padding-left: 18px; position: relative; }
.phases li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--orange); }
.vac-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gap); }
.vac-list li { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.vac-list p { margin-top: var(--s-2); color: var(--ink-2); max-width: 36em; }
.vac-steps li { border-top-color: var(--navy); }
.vac-steps p { color: var(--navy); margin-top: 0; }
@media (max-width: 860px) { .vac-hero { grid-template-columns: 1fr; } .vac-list { grid-template-columns: 1fr; } }
/* vacancy without a video: two overlapping photos in the hero, and task cards with a photo */
.vac-photos { position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; justify-self: center; }
.vac-photos .photo { position: absolute; background: #0E0E22; }
.vac-photos .photo:first-child { top: 0; right: 0; width: 80%; height: 86%; }
.vac-photos .photo:last-child { left: 0; bottom: 0; width: 54%; aspect-ratio: 1 / 1; border: 6px solid var(--navy); }
.tasks .task h3 { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 2px solid var(--navy); }
.tasks .task p { margin-top: var(--s-3); color: var(--ink-2); }
.job-card + .job-card { margin-top: var(--gap); }
/* about: Instagram */
.insta-handle { margin-top: var(--s-3); font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; }
.insta-handle a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .08em; text-underline-offset: .14em; }
.insta-handle a:hover { text-decoration-color: currentColor; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.insta-grid .photo { display: block; }
