/* ==========================================================================
   IMPACT: Internal Medicine Program for Advanced Clinical Talent
   Institutional, academic style: light surfaces, navy ink, burgundy accent.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-3: #eceff3;
  --ink: #0d1b2e;
  --ink-2: #33445c;
  --muted: #5b6b80;          /* 5.6:1 on white */
  --line: #e2e6ec;
  --line-2: #cfd6df;

  --navy: #0d1b2e;
  --navy-2: #16294a;
  --red: #c8102e;            /* 5.9:1 on white */
  --red-2: #a50d26;
  --red-soft: #fbeaed;
  --blue: #1f5f8b;
  --blue-soft: #e8f2f8;
  --sky: #7ec8ea;
  --ok: #15803d;
  --ok-soft: #e8f5ec;
  --warn: #b45309;

  --head: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06);
  --shadow: 0 10px 30px -12px rgba(13, 27, 46, 0.18);
  --shadow-lg: 0 30px 70px -20px rgba(13, 27, 46, 0.3);
  --logo-navy: #0b2c3f;       /* the stethoscope of the official logo */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: clip; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 500; padding: 10px 16px; border-radius: var(--r-sm); background: var(--navy); color: #fff; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.narrow-md { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
.display { font-family: var(--head); font-weight: 700; font-size: clamp(2.4rem, 4.8vw, 3.9rem); line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
.h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
.h3 { font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.display em, .h2 em, .h3 em { font-style: normal; }

.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero-lead, .lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.section-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; margin-bottom: 2.5rem; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink); }
.fine-print { font-size: .95rem; color: var(--muted); margin-top: 2rem; }
.section-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); box-shadow: 0 8px 20px -8px rgba(200, 16, 46, .55); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading > span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--red); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { background: var(--bg-2); }

/* ---------- Top bar & header ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 210; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--red); }

.topbar { background: var(--navy); color: #c9d3e0; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { display: inline-block; padding-block: 10px; margin-block: -10px; color: #fff; text-decoration: none; } /* a bigger target for a finger, same height */
.topbar a:hover { text-decoration: underline; }
@media (max-width: 760px) { .topbar-inner > span { display: none; } .topbar-inner { justify-content: flex-end; } }

.site-header { position: sticky; top: 0; z-index: 200; isolation: isolate; border-bottom: 1px solid var(--line); transition: box-shadow .3s; view-transition-name: site-header; }
/* The frosted background lives on a pseudo-element so the full-screen mobile menu is not clipped by it */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(13,27,46,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; color: var(--logo-navy); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; }
.brand-tag { font-size: .7rem; color: var(--muted); max-width: 22ch; }
@media (min-width: 1200px) { .brand-tag { max-width: none; } }

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-side { display: flex; align-items: center; gap: 8px; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.nav-account:hover { color: var(--ink); background: var(--bg-2); }
.nav-account svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-account.is-member { color: var(--ink); font-weight: 600; }
.nav-account.is-member svg { stroke: var(--red); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; transition: color .4s; }
  /* Full-screen menu that opens as a circular pulse from the menu button */
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: 32px;
    padding: 110px var(--gutter) 40px; background: var(--navy); color: #fff;
    clip-path: circle(0px at var(--cx, calc(100% - 40px)) var(--cy, 40px)); visibility: hidden;
    transition: clip-path .75s cubic-bezier(.76, 0, .24, 1), visibility 0s .75s;
  }
  .site-nav.is-open { clip-path: circle(150vmax at var(--cx, calc(100% - 40px)) var(--cy, 40px)); visibility: visible; transition: clip-path .9s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
  .site-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: 60px; opacity: .35; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 44 L69 44 L70.5 43.9 L72 43.8 L73.5 43.4 L75 42.8 L76.5 41.8 L78 40.7 L79.5 39.8 L81 39.4 L82.5 39.8 L84 40.7 L85.5 41.8 L87 42.8 L88.5 43.4 L90 43.8 L91.5 43.9 L93 44 L96 44 L97.5 44.6 L99 47.1 L100.5 40.6 L102 13.8 L103.5 14.5 L105 45.1 L106.5 52.3 L108 46.2 L109.5 44.1 L111 44 L112.5 43.9 L114 43.9 L115.5 43.8 L117 43.7 L118.5 43.5 L120 43.2 L121.5 42.9 L123 42.3 L124.5 41.7 L126 40.8 L127.5 39.9 L129 38.8 L130.5 37.7 L132 36.6 L133.5 35.6 L135 34.8 L136.5 34.3 L138 34.1 L139.5 34.5 L141 35.6 L142.5 37.1 L144 38.8 L145.5 40.4 L147 41.7 L148.5 42.6 L150 43.2 L151.5 43.6 L153 43.8 L154.5 43.8 L156 43.7 L157.5 43.5 L159 43.4 L160.5 43.3 L162 43.4 L163.5 43.6 L165 43.7 L166.5 43.9 L168 44 L169.5 44 L249 44 L250.5 43.9 L252 43.8 L253.5 43.4 L255 42.8 L256.5 41.8 L258 40.7 L259.5 39.8 L261 39.4 L262.5 39.8 L264 40.7 L265.5 41.8 L267 42.8 L268.5 43.4 L270 43.8 L271.5 43.9 L273 44 L276 44 L277.5 44.6 L279 47.1 L280.5 40.6 L282 13.8 L283.5 14.5 L285 45.1 L286.5 52.3 L288 46.2 L289.5 44.1 L291 44 L292.5 43.9 L294 43.9 L295.5 43.8 L297 43.7 L298.5 43.5 L300 43.2 L301.5 42.9 L303 42.3 L304.5 41.7 L306 40.8 L307.5 39.9 L309 38.8 L310.5 37.7 L312 36.6 L313.5 35.6 L315 34.8 L316.5 34.3 L318 34.1 L319.5 34.5 L321 35.6 L322.5 37.1 L324 38.8 L325.5 40.4 L327 41.7 L328.5 42.6 L330 43.2 L331.5 43.6 L333 43.8 L334.5 43.8 L336 43.7 L337.5 43.5 L339 43.4 L340.5 43.3 L342 43.4 L343.5 43.6 L345 43.7 L346.5 43.9 L348 44 L349.5 44 L399 44' fill='none' stroke='%23c8102e' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-links a { min-height: 0; padding: 4px 0; font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.02em; color: #fff; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s var(--ease), color .2s; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: #ff8a9a; }
  .site-nav.is-open .nav-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .06s); }
  .nav-side { justify-content: flex-start; gap: 12px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--ease); }
  .site-nav.is-open .nav-side { opacity: 1; transform: none; transition-delay: .55s; }
  .site-nav .nav-account { color: #fff; border: 1px solid rgba(255,255,255,.3); }
  .site-nav .nav-account:hover { background: rgba(255,255,255,.08); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { box-shadow: none; border-bottom-color: transparent; }
  body.nav-open .brand, body.nav-open .brand .brand-mark { color: #fff; }
  body.nav-open .brand-tag { color: #9fb0c5; }
  body.nav-open .nav-toggle { background: transparent; border-color: rgba(255,255,255,.3); }
  body.nav-open .nav-toggle span { background: #fff; }
  /* heartbeat rings from the button */
  .nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--red); opacity: 0; pointer-events: none; }
  .nav-toggle.pulse::before { animation: nav-pulse .9s var(--ease) both; }
  .nav-toggle.pulse::after { animation: nav-pulse .9s .18s var(--ease) both; }
}
@keyframes nav-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (max-width: 520px) { .brand-tag { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 9vw, 120px); background: linear-gradient(180deg, var(--bg-2), #fff 85%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(rgba(200,16,46,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.04) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.3fr .9fr; gap: 64px; } }
.hero .display { margin-bottom: 22px; max-width: 18ch; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 14px; width: 100%; height: 64px; pointer-events: none; }
.hero-ecg path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-opacity: .6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash 2.4s .3s var(--ease) forwards; }

.hero-panel { position: relative; display: grid; gap: 18px; justify-items: center; }
.hero-mark { width: min(250px, 60vw); aspect-ratio: 1; padding: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--logo-navy); }
.hero-mark .mark { width: 100%; height: 100%; overflow: visible; }
.next-card { width: 100%; max-width: 420px; padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* while the programme loads: grey bars in the shape of the card (label, title, details, button) */
.next-card:empty { min-height: 190px; background-color: #fff; background-image: linear-gradient(var(--bg-3) 0 0), linear-gradient(var(--bg-3) 0 0), linear-gradient(var(--bg-3) 0 0), linear-gradient(var(--bg-3) 0 0); background-repeat: no-repeat; background-size: 42% 10px, 72% 20px, 58% 10px, calc(100% - 48px) 48px; background-position: 24px 26px, 24px 52px, 24px 88px, 24px 118px; }
.next-card .section-label { color: var(--red); }
.next-title { display: block; font-family: var(--head); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }
.next-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.next-meta span { display: inline-flex; align-items: center; gap: 6px; }
.next-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Logo draw-on (hero) */
/* the parts of the logo come in one after the other: heart, stethoscope, then the hand that holds them */
.mark-draw .m-heart, .mark-draw .m-scope, .mark-draw .m-hand { opacity: 0; }
.mark-draw.is-drawn .m-heart { animation: mark-in .9s var(--ease) forwards; }
.mark-draw.is-drawn .m-scope { animation: mark-in .9s .35s var(--ease) forwards; }
.mark-draw.is-drawn .m-hand { animation: mark-in .9s .7s var(--ease) forwards; }
@keyframes mark-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.no-js .mark-draw * { stroke-dashoffset: 0 !important; opacity: 1 !important; }

/* Anchoring band */
.anchor-band { background: #fff; border-bottom: 1px solid var(--line); }
.anchor-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .anchor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .anchor-grid { grid-template-columns: repeat(4, 1fr); } }
.anchor-item { display: flex; align-items: center; gap: 14px; padding: 26px 20px 26px 0; }
@media (min-width: 1000px) { .anchor-item + .anchor-item { border-left: 1px solid var(--line); padding-left: 24px; } }
.anchor-item p { margin: 0; display: grid; line-height: 1.35; }
.anchor-item strong { font-size: 1rem; }
.anchor-item p > span { font-size: .88rem; color: var(--muted); }
.anchor-icon { width: 46px; height: 46px; flex: none; border-radius: var(--r); display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.anchor-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Page hero (sub pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 8vw, 110px); background: linear-gradient(180deg, var(--bg-2), #fff); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(rgba(200,16,46,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.04) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-hero .container { position: relative; }
.page-hero .display { margin-bottom: 18px; }
.member-hero { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .member-hero { grid-template-columns: 1fr auto; } }
.price-tag { justify-self: start; display: grid; grid-template-columns: auto auto; align-items: start; column-gap: 4px; line-height: 1; padding: 24px 34px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-cur { font-family: var(--head); font-size: 2.2rem; color: var(--red); margin-top: 10px; }
.price-num { font-family: var(--head); font-weight: 600; font-size: clamp(5rem, 10vw, 7rem); }
.price-per { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(70px, 9vw, 120px); }
.section-tight { padding-block: 0 clamp(40px, 6vw, 80px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .eyebrow { color: var(--sky); }
.section-navy .section-lead, .section-navy .fine-print { color: #c3cedb; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-aside { color: var(--muted); max-width: 36ch; margin: 0; }
.two-col { display: grid; gap: 28px 72px; }
@media (min-width: 900px) { .two-col { grid-template-columns: .85fr 1.15fr; } }

.pillars { display: grid; gap: 14px; margin: 28px 0 20px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.pillar-num { display: block; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.pillar h3 { font-family: var(--head); font-size: 1.2rem; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: .94rem; color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { position: relative; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.card h3 { font-family: var(--head); font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-num { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: 18px; }
.card-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.section-navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #fff; }
.section-navy .card p { color: #c3cedb; }
.section-navy .card:hover { box-shadow: none; border-color: rgba(255,255,255,.3); }

.feature-callout { position: relative; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.feature-callout .eyebrow { margin-bottom: 14px; }
.feature-callout-text { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; margin: 0; }
.feature-callout-text strong { font-weight: 700; }

.feature-rows { list-style: none; border-top: 1px solid rgba(255,255,255,.16); counter-reset: fr; }
.feature-rows li { counter-increment: fr; display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.feature-rows li::before { content: counter(fr, decimal-leading-zero); font-size: .85rem; font-weight: 700; color: var(--sky); grid-row: span 2; }
.feature-rows span { font-family: var(--head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; }
.feature-rows em { font-style: normal; color: #c3cedb; }
@media (min-width: 800px) { .feature-rows li { grid-template-columns: 60px 1fr 1fr; } .feature-rows li::before { grid-row: auto; } }

.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .94rem; font-weight: 500; color: var(--ink-2); }

.check-list { list-style: none; display: grid; gap: 10px; margin: 0; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.badge-open { background: var(--ok-soft); color: var(--ok); }
.badge-leden { background: var(--red-soft); color: var(--red-2); }
.badge-soft { background: var(--bg-3); color: var(--ink-2); }

/* ---------- Workshops: cards styled like the detail panel ---------- */
.ws-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .ws-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ws-grid { grid-template-columns: repeat(3, 1fr); } }
.ws-card { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ws-head { position: relative; display: grid; gap: 8px; padding: 22px 24px 26px; background: var(--navy); color: #fff; overflow: hidden; }
.ws-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ws-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ws-head .ws-icon { width: 44px; height: 44px; background: rgba(255,255,255,.1); color: #fff; transition: background .3s; }
.ws-when { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: #c3cedb; }
.ws-when svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.ws-head .ws-domain { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.ws-head .ws-title { position: relative; z-index: 1; font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.015em; }
.ws-trace { position: absolute; right: 0; bottom: 10px; width: 70%; height: 34px; pointer-events: none; }
.ws-trace path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 1s var(--ease); }
.ws-body { display: flex; flex-direction: column; gap: 18px; flex: 1; padding: 20px 24px 22px; }
.ws-summary { flex: 1; color: var(--ink-2); font-size: .98rem; }
.ws-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.ws-meta { display: grid; gap: 2px; }
.ws-access { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.ws-access.is-leden { color: var(--red); font-weight: 600; }
.ws-access svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ws-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.ws-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ws-card:hover, .ws-card:focus-visible, .js .ws-card.will-reveal.is-in:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .ws-card:hover .ws-head::after { transform: scaleX(1); }
  .ws-card:hover .ws-head .ws-icon { background: var(--red); }
  .ws-card:hover .ws-trace path { stroke-dashoffset: 0; }
  .ws-card:hover .ws-go { color: var(--red); }
  .ws-card:hover .ws-go svg { transform: translateX(4px); }
}
.ws-card:focus-visible .ws-trace path { stroke-dashoffset: 0; }
.ws-empty { padding: 40px; text-align: center; color: var(--muted); }

.ws-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r); background: var(--bg-3); isolation: isolate; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: transparent; font-weight: 600; font-size: .92rem; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.segmented button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 4px)); border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .35s var(--ease), width .35s var(--ease); }
/* Phones: the three workshop filters share the full width; a long label wraps instead of being cut off */
@media (max-width: 480px) {
  .ws-toolbar .segmented { display: flex; width: 100%; }
  .ws-toolbar .segmented button { flex: 1 1 auto; justify-content: center; padding: 6px 10px; font-size: .88rem; line-height: 1.2; text-align: center; white-space: normal; }
  .ws-toolbar .segmented button svg { display: none; }
}
.ws-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: .9rem; color: var(--muted); }
.ws-legend .badge:nth-of-type(2) { margin-left: 12px; }

/* Availability pills */
.status { display: inline-flex; width: fit-content; font-size: .85rem; font-weight: 600; }
.status-few { color: var(--warn); }
.status-full, .status-closed { color: var(--red-2); }
.status-past { color: var(--muted); }
.sheet-hero .status-few { color: #fbbf6a; }
.sheet-hero .status-full, .sheet-hero .status-closed { color: #ff8a9a; }
.sheet-hero .status-past { color: #c3cedb; }
.sheet-hero .status { margin-top: 14px; }
.ws-card:has(.status-past), .event-card:has(.status-past) { opacity: .6; }

/* ---------- Events ---------- */
.event-card { display: grid; gap: 0; width: 100%; padding: 0; text-align: left; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 800px) { .event-card { grid-template-columns: 200px 1fr auto; align-items: stretch; } }
.event-date { display: grid; align-content: center; gap: 4px; padding: 24px; background: var(--navy); color: #fff; }
.ed-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.ed-value { font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.ed-year { font-size: .88rem; color: #c3cedb; }
.event-main { display: grid; gap: 10px; align-content: center; padding: 26px 28px; }
.event-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.event-title { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.event-summary { display: block; color: var(--ink-2); max-width: 62ch; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.event-cta { display: flex; align-items: center; padding: 0 28px 26px; }
@media (min-width: 800px) { .event-cta { padding: 26px 28px 26px 0; } }

.timeline { list-style: none; position: relative; padding-left: 40px; display: grid; gap: 48px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--red); transform-origin: 0 0; transform: scaleY(var(--tp, 0)); }
.timeline-dot { position: absolute; left: -40px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); transition: border-color .3s, background .3s; }
.timeline-item { position: relative; }
.timeline-item.is-in .timeline-dot { border-color: var(--red); background: var(--red); }
.timeline-when { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.timeline-card { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.timeline-card h3 { font-family: var(--head); font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 8px; }
.timeline-card p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.timeline-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.timeline-link .link-arrow { min-height: 0; }
.ongoing-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .ongoing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Support block (home) ---------- */
.support-block { display: grid; gap: 40px 72px; align-items: center; }
@media (min-width: 900px) { .support-block { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding-left: 28px; border-left: 3px solid var(--red); }
.quote blockquote { margin: 0 0 14px; font-family: var(--head); font-weight: 600; letter-spacing: -0.015em; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.support-list ul { list-style: none; border-top: 1px solid var(--line); }
.support-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.support-list li span { font-size: .9rem; color: var(--muted); }

/* ---------- CTA ---------- */
.section-cta { padding-block: clamp(56px, 7vw, 96px); }
.cta-card { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.cta-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.04); pointer-events: none; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.4fr auto; } }
.cta-card .eyebrow { color: var(--sky); }
.cta-card .h2 { color: #fff; }
.cta-card p, .cta-card .check-list li { color: #d3dbe6; }
.cta-card .check-list { margin-top: 20px; }
.cta-card .check-list li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.cta-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-card .btn-outline:hover { border-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px 64px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-side .h2 { margin-bottom: 24px; }
.mail-card { display: grid; gap: 12px; justify-items: start; padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.mail-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin: 0; }
.mail-big { font-family: var(--head); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem); text-decoration: none; color: #fff; }
.mail-big:hover { text-decoration: underline; text-underline-offset: 5px; }
.team-link { margin-top: 18px; }
.mail-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

.team-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.team-grid > li { display: flex; }
.team-card { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px; text-align: left; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: box-shadow .3s, border-color .2s, transform .3s var(--ease); }
.team-card-top { display: flex; align-items: center; gap: 14px; }
.avatar { --h: 355; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: #fff; background: hsl(var(--h) 55% 34%); }
.team-name { display: block; font-family: var(--head); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.team-role { display: block; margin-top: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.team-bio { flex: 1; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.team-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.team-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .team-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
  .team-card:hover .team-more { color: var(--red); }
  .team-card:hover .team-more svg { transform: translateX(3px); }
}
.modal-bio { margin: 0; padding: 20px 26px 0; color: var(--ink-2); line-height: 1.6; }
.support { margin-top: clamp(40px, 6vw, 72px); padding-top: 36px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
@media (min-width: 900px) { .support { grid-template-columns: 1fr 2fr; } }
.support p { color: var(--ink-2); margin: 0; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font: inherit; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; min-height: 44px; border: 0; background: none; text-align: left; font-family: var(--head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.3; transition: color .2s; }
.faq-item button:hover { color: var(--red); }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s var(--ease), background .2s, border-color .2s, color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq-item button[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-panel > div { overflow: hidden; }
.faq-panel p, .faq-panel ul { margin: 0 0 24px; color: var(--ink-2); max-width: 66ch; }
.faq-panel a { color: var(--red); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.no-js .faq-panel { grid-template-rows: 1fr; }

/* ---------- Membership ---------- */
.benefits { display: grid; gap: 16px; }
@media (min-width: 860px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.benefit h3 { font-family: var(--head); font-size: 1.35rem; margin: 18px 0 8px; }
.benefit p { color: var(--ink-2); margin: 0; }
.benefit-icon { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; color: var(--red); background: var(--red-soft); }
.benefit-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.account-card { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.account-loading { color: var(--muted); }
/* account page: the form right at the top, nothing to scroll past */
.account-page { padding-block: clamp(28px, 5vw, 64px); min-height: 72vh; }
.account-more { margin: 20px 0 0; text-align: center; font-size: .95rem; color: var(--muted); }
.account-more a { color: var(--red); font-weight: 600; }
/* Account waiting for payment / expired: steps, explanation, payment instructions */
.member-notice { display: grid; gap: 12px; padding: clamp(18px, 3vw, 26px); margin-bottom: 8px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.member-notice h3 { font-family: var(--head); font-size: 1.35rem; }
.member-notice > p { margin: 0; color: var(--ink-2); }
.member-notice.is-expired { background: var(--red-soft); border-color: #f1c4cc; }
.member-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 4px; }
.member-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.member-steps li span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: .8rem; }
.member-steps li span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.member-steps li.done { color: var(--ok); }
.member-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.member-steps li.now { color: var(--ink); }
.member-steps li.now span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.pay-box { padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.pay-box .section-label { margin-bottom: 6px; }
.pay-text { margin: 0 0 8px; white-space: pre-line; font-weight: 500; color: var(--ink); }
.pay-box .muted { margin: 0; font-size: .92rem; }
.mcard-back-text b { color: var(--ink); }
.account-cta .h3 { margin-bottom: 10px; }
.account-cta p { color: var(--ink-2); margin: 0 0 22px; max-width: 56ch; }
.account-tabs { margin-bottom: 28px; }
.account-head { margin-bottom: 24px; }
.account-head .h3 { margin-bottom: 6px; }
.account-head p { color: var(--muted); margin: 0; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.chip-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip-status.warn i { background: var(--warn); }
.my-list { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.my-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.my-list small { color: var(--muted); }
.resend { margin: 18px 0 0; text-align: center; }
.resend .btn:disabled { opacity: .7; cursor: default; font-variant-numeric: tabular-nums; }
/* "Mijn gegevens": download and delete the account */
.my-data { display: grid; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.my-data .muted { margin: 0; }
.btn-danger { color: var(--red-2); border-color: color-mix(in srgb, var(--red) 45%, var(--line-2)); }
.btn-danger:hover { background: var(--red-soft); }
.btn-danger-solid { background: var(--red-2); border: 1px solid var(--red-2); color: #fff; }
.btn-danger-solid:hover { background: #8a0b20; }
.delete-form { padding: 16px; border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line)); border-radius: var(--r); background: #fff; }
.delete-form > p { margin: 0; }

/* Privacy statement */
.legal { color: var(--ink-2); }
.legal h2 { margin: 40px 0 12px; font-family: var(--head); font-size: clamp(1.25rem, 2.6vw, 1.5rem); color: var(--ink); }
.legal p, .legal li, .legal dd { line-height: 1.7; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--red-2); overflow-wrap: anywhere; }
.legal-date { color: var(--muted); font-size: .92rem; }
.legal-list { display: grid; gap: 4px; margin: 0; }
.legal-list dt { margin-top: 14px; font-weight: 700; color: var(--ink); }
.legal-list dd { margin: 0; }
.legal-list em { color: var(--muted); }

/* ---------- Digital member card ---------- */
.mcard-wrap { margin: 28px 0 8px; }
.mcard { --rx: 0deg; --ry: 0deg; width: min(100%, 440px); aspect-ratio: 1.586; perspective: 1200px; cursor: pointer; border-radius: 20px; }
.mcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.mcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s var(--ease); }
.mcard.is-flipped .mcard-inner { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.mcard-face { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px -20px rgba(13,27,46,.55); }
.mcard-front { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 20px; color: #fff; background: linear-gradient(135deg, #16294a, #0d1b2e 70%); }
.mcard-front::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.mcard-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.mcard-top, .mcard-bottom { position: relative; z-index: 1; }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcard-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.mcard-brand .brand-mark { width: 38px; height: 38px; color: #fff; }
.mcard-kind { text-align: right; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9fb0c5; line-height: 1.4; }
.mcard-ecg { position: absolute; left: 0; right: 0; top: 46%; width: 100%; height: 34px; opacity: .55; }
.mcard-ecg path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mcard-name { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.15; margin-bottom: 6px; }
.mcard-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mcard-code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .95rem; letter-spacing: .08em; color: #c3cedb; }
.mcard-status { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mcard-status.ok { color: #4ade9b; }
.mcard-status.warn { color: #fbbf6a; }
.mcard-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(126,200,234,.12) 45%, rgba(200,16,46,.1) 55%, transparent 70%); mix-blend-mode: screen; }
.mcard-back { transform: rotateY(180deg); display: flex; align-items: center; gap: 20px; padding: 20px 24px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.mcard-qr { flex: none; width: 46%; aspect-ratio: 1; }
.mcard-qr svg { width: 100%; height: 100%; }
.mcard-back-text { display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.mcard-back-text strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1rem; letter-spacing: .06em; color: var(--ink); }
.mcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (hover: hover) and (pointer: fine) {
  .mcard:hover .mcard-inner { transition: transform .25s ease-out; }
  .mcard:hover .mcard-sheen { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .mcard-inner { transition: none; } }
/* Safari (iOS) can draw parts of the turned-away face through the one in front, mirrored. So the hidden face
   is also set to visibility: hidden, switching when the card is edge-on (about 0.1 s into the flip). */
.mcard-face { transition: visibility 0s .1s; }
.mcard.is-flipped .mcard-front, .mcard:not(.is-flipped) .mcard-back { visibility: hidden; }
/* Narrow screens: the card scales as a whole, like a real card. One unit (--u) is 1px down to a 350px-wide
   card and shrinks with it below that, so the layout that fits at 350px fits at every width. */
@supports (width: 1cqw) {
  .mcard { container-type: inline-size; }
  .mcard-inner { --u: min(1px, 100cqw / 350); }
  .mcard-face { border-radius: calc(var(--u) * 20); }
  .mcard-front { padding: calc(var(--u) * 22) calc(var(--u) * 24) calc(var(--u) * 20); }
  .mcard-front::before { background-size: calc(var(--u) * 18) calc(var(--u) * 18); }
  .mcard-front::after { height: calc(var(--u) * 6); }
  .mcard-brand { gap: calc(var(--u) * 10); font-size: calc(var(--u) * 18.4); }
  .mcard-brand .brand-mark { width: calc(var(--u) * 38); height: calc(var(--u) * 38); }
  .mcard-kind { font-size: calc(var(--u) * 11.2); }
  .mcard-ecg { height: calc(var(--u) * 34); }
  .mcard-name { font-size: calc(var(--u) * 25.6); margin-bottom: calc(var(--u) * 6); }
  .mcard-row { gap: calc(var(--u) * 12); }
  .mcard-code { font-size: calc(var(--u) * 15.2); }
  .mcard-status { font-size: calc(var(--u) * 11.5); }
  .mcard-back { gap: calc(var(--u) * 20); padding: calc(var(--u) * 20) calc(var(--u) * 24); }
  .mcard-back-text { gap: calc(var(--u) * 8); font-size: calc(var(--u) * 14.1); }
  .mcard-back-text strong { font-size: calc(var(--u) * 16); }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form.card:hover { transform: none; box-shadow: none; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1b2e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,139,.18); }
.field input[readonly] { background: var(--bg-2); color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field-error { margin: 0; font-size: .86rem; color: var(--red); }
.field-error:empty { display: none; }
.field-hint { margin: 0; font-size: .86rem; color: var(--muted); }
.reveal-field { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease), opacity .25s, margin-top .35s var(--ease); }
.reveal-field > div { overflow: hidden; }
.reveal-field.is-open { grid-template-rows: 1fr; opacity: 1; }
.form > .reveal-field:not(.is-open) { margin-top: -18px; }
.reveal-field .field { padding: 2px 2px 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-switch { font-size: .92rem; color: var(--muted); margin: 0; }
.form-switch a { color: var(--red); }

/* ---------- Sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 250; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(13,27,46,.45); opacity: 0; transition: opacity .35s; }
.sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .45s var(--ease); }
.sheet-panel:focus { outline: none; }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
@media (max-width: 719px) {
  .sheet-panel { top: auto; width: 100%; max-height: 94svh; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .sheet-panel::before { content: ""; position: sticky; top: 8px; display: block; width: 40px; height: 4px; margin: 8px auto -12px; border-radius: 2px; background: rgba(255,255,255,.5); z-index: 3; }
}
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 4; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.sheet-close:hover { background: rgba(255,255,255,.2); }
.sheet-hero { --c: 200, 16, 46; padding: 56px 30px 28px; background: var(--navy); color: #fff; border-top: 4px solid rgb(var(--c)); }
.ws-icon { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; }
.ws-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-hero .ws-icon { margin-bottom: 18px; background: rgba(255,255,255,.1); color: #fff; }
.sheet-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sheet-hero .badge-soft { background: rgba(255,255,255,.12); color: #dfe6ef; }
.sheet-title { font-family: var(--head); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 2.5rem); line-height: 1.15; margin-bottom: 16px; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #c3cedb; }
.sheet-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sheet-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.sheet-content { padding: 28px 30px 36px; display: grid; gap: 22px; }
.sheet-summary { font-family: var(--head); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.sheet-desc p { color: var(--ink-2); }
.sheet-desc p:last-child { margin: 0; }
.sheet-action { padding-top: 22px; border-top: 1px solid var(--line); }
.sheet-content > * { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .5s var(--ease); transition-delay: calc(.15s + var(--i, 0) * .05s); }
.sheet.is-open .sheet-content > * { opacity: 1; transform: none; }
.reg-form-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.reg-form-wrap > div { overflow: hidden; }
.reg-form-wrap.is-open { grid-template-rows: 1fr; }
.reg-form-wrap .form { padding: 4px 2px 8px; }
.reg-form-head h3 { font-family: var(--head); font-size: 1.5rem; }
.reg-form-head p { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }

.lock-panel { padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.lock-panel h3 { font-family: var(--head); font-size: 1.4rem; }
.lock-panel p { color: var(--ink-2); margin: 0; }
.lock-icon { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: background .3s, color .3s; }
.lock-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lock-icon .shackle { transition: transform .5s var(--ease); transform-origin: 16px 11px; }
.lock-panel.is-unlocking .shackle { transform: translateY(-3px) rotate(28deg); }
.lock-panel.is-unlocking .lock-icon { background: var(--ok-soft); color: var(--ok); }
.lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lock-login { width: 100%; }

/* Confirmation: a flat line, the rhythm returns, then the message (registration, membership, contact) */
.success { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 20px 8px; }
.success-ecg { width: min(340px, 100%); aspect-ratio: 400 / 64; margin-bottom: 10px; border-radius: var(--r); border: 1px solid var(--line); background-color: #fff; background-image: linear-gradient(rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.09) 1px, transparent 1px), linear-gradient(rgba(200,16,46,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,.04) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; animation: st-ring 1s ease-out 1.1s both; }
.success-ecg svg { width: 100%; height: 100%; animation: st-reveal 2.3s linear .15s both; }
.success-ecg path { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.st-a { stop-color: var(--muted); }
.st-b { stop-color: var(--ok); }
.success h3 { font-family: var(--head); font-size: 1.6rem; opacity: 0; animation: rise-in .6s var(--ease) 1.5s forwards; }
.success p { color: var(--ink-2); margin: 0; max-width: 42ch; opacity: 0; animation: rise-in .6s var(--ease) 1.7s forwards; }
/* the line is drawn from left to right: it lingers on the flat part (30% of the width), then the beats follow */
@keyframes st-reveal { 0% { clip-path: inset(0 100% 0 0); } 36% { clip-path: inset(0 70% 0 0); } 100% { clip-path: inset(0); } }
@keyframes st-ring { from { box-shadow: 0 0 0 0 rgba(21,128,61,.35); } to { box-shadow: 0 0 0 14px rgba(21,128,61,0); } }

/* ---------- Modal ---------- */
.modal { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .35s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete; }
.modal[open].is-open { opacity: 1; transform: none; }
.modal::backdrop { background: rgba(13,27,46,.45); opacity: 0; transition: opacity .3s; }
.modal[open].is-open::backdrop { opacity: 1; }
.modal-inner { position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.modal-top { display: grid; justify-items: start; gap: 10px; padding: 36px 26px 24px; background: var(--navy); color: #fff; }
.modal-top .avatar { width: 72px; height: 72px; font-size: 1.5rem; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.modal-name { font-family: var(--head); font-weight: 600; font-size: 1.8rem; line-height: 1.15; }
.modal-role { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin: 0; }
.modal-rows { list-style: none; padding: 8px 26px 24px; }
.modal-rows li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.modal-rows li:last-child { border: 0; }
.modal-rows .ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-2); color: var(--red); }
.modal-rows .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal-rows small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.modal-rows a { font-weight: 600; color: var(--ink); word-break: break-all; }
.modal-rows a:hover { color: var(--red); }

/* ---------- Toast ---------- */
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; z-index: 350; padding: 12px 20px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); transform: translate(-50%, 160%); transition: transform .4s var(--ease), visibility 0s .4s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-visible { visibility: visible; transform: translate(-50%, 0); transition: transform .4s var(--ease); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3e0; padding-top: clamp(56px, 7vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.brand-light { color: #fff; margin-bottom: 16px; }
.brand-light .brand-mark { color: #fff; }
.brand-light .brand-tag { color: #9fb0c5; }
.footer-brand p { max-width: 42ch; margin: 0; }
.footer-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-col { display: grid; align-content: start; gap: 2px; }
.footer-col a { width: fit-content; padding: 5px 0; color: #c9d3e0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #9fb0c5; }
.footer-bottom a { display: inline-block; padding-block: 12px; margin-block: -12px; color: #c9d3e0; } /* a finger-sized target, same line height */
.footer-bottom a:hover { color: #fff; }


/* ---------- Splash (home) ---------- */
/* Covers the page until the particle organs are on screen (2.5 s at most), so the first thing seen is the organs
   taking shape. Its logo only appears after a moment: on a fast load it is gone before that. */
.splash { display: none; }
.js .splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff; transition: opacity .55s var(--ease), visibility 0s .55s; }
.splash.is-done { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; gap: 14px; opacity: 0; animation: fade-in .45s .2s forwards; }
.splash-mark { width: 104px; height: 104px; color: var(--logo-navy); transform-origin: 50% 60%; animation: splash-beat 1.15s ease-in-out infinite; }
.splash-ecg { width: 150px; height: 20px; }
.splash-ecg path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: splash-ecg 1.15s linear infinite; }
@keyframes splash-beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.07); } 20% { transform: scale(.99); } 30% { transform: scale(1.035); } 44% { transform: scale(1); } }
@keyframes splash-ecg { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ---------- Particle organs (home, organs3d.js) ---------- */
/* One canvas: the organs of the chest and abdomen in the hero, then an organ beside each section as you scroll
   (fixed over the page on wide screens; on narrow ones only the hero is used and the canvas sits in it) */
@media (min-width: 960px) { .js:not(.no-3d) .hero-mark { width: 340px; } }
.organs-3d { position: fixed; left: 0; top: 0; z-index: 1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.has-3d .organs-3d { opacity: 1; }
/* Narrow screens: in the hero, scrolling with it (organs3d.js moves it there) */
.hero > .organs-3d { position: absolute; height: 100%; }
/* Section backgrounds stay under the particles, the content above them */
.page-home main > section > .container, .page-home .ticker-track, .page-home .topbar, .page-home .site-footer { position: relative; z-index: 2; }
.page-home .hero-ecg { z-index: 2; }
/* The logo only keeps its place for the particle organs; it shows only when 3D can't run. */
.js:not(.no-3d) .hero-mark { visibility: hidden; }
.has-3d .hero-ecg path { opacity: calc(1 - var(--m, 0) * .85); }
/* Where the organs settle: invisible boxes that never change the layout */
.organ-slot { display: none; position: absolute; visibility: hidden; pointer-events: none; }
@media (min-width: 960px) {
  .js:not(.no-3d) .organ-slot { display: block; }
  .organ-slot-brain { width: min(100%, 420px); height: 330px; margin-top: 18px; } /* under the heading, in the left column */
  .page-home .section-head, .page-home .quote { position: relative; }
  .organ-slot-head { left: 62%; top: 50%; width: clamp(200px, 21vw, 300px); height: clamp(200px, 21vw, 290px); transform: translate(-50%, -80%); } /* between the heading and its link */
  .organ-slot-credo { left: 0; right: 0; bottom: calc(100% + 44px); height: 280px; } /* above the credo */
}

/* ---------- Motion details ---------- */
/* Headings: words rise in */
.js [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }

/* Eyebrow rule grows in */
.js .eyebrow[data-reveal]::before, .js [data-reveal] .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .8s .25s var(--ease); }
.js .eyebrow.is-in::before, .js .is-in .eyebrow::before { transform: scaleX(1); }

/* A pulse travels along the ECG line */
.hero-ecg .pulse { stroke-opacity: 1; stroke-width: 2.5; stroke-dasharray: .06 .94; animation: pulse-run 4.5s linear 2.6s infinite both; filter: drop-shadow(0 0 4px rgba(200,16,46,.55)); }
@keyframes pulse-run { 0% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 94% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Logo heartbeat + rings */
.hero-mark { position: relative; }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(200,16,46,.35); opacity: 0; pointer-events: none; animation: ring 3.2s var(--ease) 2.6s infinite; }
.hero-mark::after { animation-delay: 4.2s; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }
.mark-draw.is-drawn { transform-origin: 50% 55%; animation: beat 3.2s 2.6s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 7% { transform: scale(1.045); } 14% { transform: scale(1); } 21% { transform: scale(1.025); } 32% { transform: scale(1); } }

/* Live dot */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.next-card .section-label { display: flex; align-items: center; gap: 10px; }

/* Specialties ticker */
.ticker { overflow: hidden; padding-block: 18px; background: #fff; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker-track > div { display: flex; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 30px; padding-left: 30px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.ticker span::after { content: ""; width: 1px; height: 18px; background: var(--line-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header tightens on scroll */
.header-inner { transition: min-height .35s var(--ease); }
.brand-mark { transition: width .35s var(--ease), height .35s var(--ease); }
.site-header.is-scrolled .header-inner { min-height: 64px; }
.site-header.is-scrolled .brand-mark { width: 40px; height: 40px; }

/* Outline buttons fill on hover */
.btn-outline { position: relative; overflow: hidden; isolation: isolate; }
.btn-outline::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn-outline:hover { color: #fff; border-color: var(--navy); }
.btn-outline:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-card .btn-outline::before, .mail-card .btn-outline::before { background: #fff; }
.cta-card .btn-outline:hover, .mail-card .btn-outline:hover { color: var(--navy); border-color: #fff; }

/* Card micro-interactions */
.anchor-icon, .benefit-icon { transition: transform .45s var(--ease); }
.anchor-item:hover .anchor-icon, .benefit:hover .benefit-icon { transform: scale(1.08) rotate(-4deg); }
.hero-panel { will-change: transform; }

/* Credo: the words light up one by one as it scrolls into view (JS sets --qp, 0 to 1); "beat" pulses once */
.quote .qw { display: inline-block; }
.quote .qw-beat { transform-origin: 50% 70%; }
.quote.is-scrub .qw { opacity: calc(.18 + .82 * clamp(0, (var(--qp, 0) * (var(--n) + 2) - var(--i)) / 2, 1)); transition: opacity .3s ease-out, color .35s; }
.quote.is-beat .qw-beat { color: var(--red); animation: qbeat 1s var(--ease); }
@keyframes qbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 26% { transform: scale(1); } 40% { transform: scale(1.12); } 58% { transform: scale(1); } }

/* ---------- Workshop icons: every specialty moves in its own way (hover, keyboard focus) ---------- */
.ws-icon svg { overflow: visible; }
.ic-bub { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ic-snd { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  /* ECG: the line traces itself */
  .ws-card:is(:hover, :focus-visible) [data-ic="ecg"] path { stroke-dasharray: 1; animation: ic-trace 1.7s ease-in-out infinite; }
  /* Blood gas: the drop falls and a new one forms */
  .ws-card:is(:hover, :focus-visible) [data-ic="drop"] .ic-drop { transform-origin: 12px 13px; animation: ic-drop 1.9s infinite; }
  /* Electrolytes: bubbles rise in the flask, the liquid sloshes */
  .ws-card:is(:hover, :focus-visible) [data-ic="flask"] .ic-bub { animation: ic-bubble 1.5s ease-in infinite; }
  .ws-card:is(:hover, :focus-visible) [data-ic="flask"] .ic-b2 { animation-duration: 1.8s; animation-delay: .45s; }
  .ws-card:is(:hover, :focus-visible) [data-ic="flask"] .ic-b3 { animation-duration: 1.3s; animation-delay: .9s; }
  .ws-card:is(:hover, :focus-visible) [data-ic="flask"] .ic-liquid { transform-origin: 12px 15px; animation: ic-slosh 1.3s ease-in-out infinite; }
  /* Chest X-ray: the lungs breathe */
  .ws-card:is(:hover, :focus-visible) [data-ic="lungs"] .ic-lobe { transform-origin: 12px 12px; animation: ic-breathe 2.4s ease-in-out infinite; }
  /* Ultrasound: the echoes pulse down the beam */
  .ws-card:is(:hover, :focus-visible) [data-ic="wave"] .ic-arc { animation: ic-ping 1.4s ease-in-out infinite; }
  .ws-card:is(:hover, :focus-visible) [data-ic="wave"] .ic-arc2 { animation-delay: .3s; }
  /* Dermatology: the spots pop one after the other */
  .ws-card:is(:hover, :focus-visible) [data-ic="skin"] .ic-dot { transform-box: fill-box; transform-origin: center; vector-effect: non-scaling-stroke; animation: ic-pop 1.5s ease-in-out infinite; }
  .ws-card:is(:hover, :focus-visible) [data-ic="skin"] .ic-d2 { animation-delay: .25s; }
  .ws-card:is(:hover, :focus-visible) [data-ic="skin"] .ic-d3 { animation-delay: .5s; }
  /* ENT: sound waves reach the ear */
  .ws-card:is(:hover, :focus-visible) [data-ic="ear"] .ic-snd { animation: ic-hear 1.5s .25s ease-out infinite; }
  .ws-card:is(:hover, :focus-visible) [data-ic="ear"] .ic-snd2 { animation-delay: 0s; }
  /* Ophthalmology: the eye blinks and looks around */
  .ws-card:is(:hover, :focus-visible) [data-ic="eye"] .ic-blink { transform-origin: 12px 12px; animation: ic-blink 2.6s ease-in-out infinite; }
  .ws-card:is(:hover, :focus-visible) [data-ic="eye"] .ic-pupil { animation: ic-look 2.6s ease-in-out infinite; }
}
@keyframes ic-trace { 0% { stroke-dashoffset: 1; opacity: 1; } 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ic-drop {
  0% { transform: none; opacity: 1; animation-timing-function: ease-in; }
  38% { transform: translateY(9px) scale(.9, 1.15); opacity: 0; }
  39% { transform: translateY(-8px) scale(.55); opacity: 0; animation-timing-function: cubic-bezier(.2, .9, .3, 1.25); }
  72%, 100% { transform: none; opacity: 1; }
}
@keyframes ic-bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-4.6px) scale(1); opacity: 0; } }
@keyframes ic-slosh { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes ic-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1, 1.07); } }
@keyframes ic-ping { 0%, 100% { opacity: .25; transform: translateY(-1.5px); } 45% { opacity: 1; transform: none; } }
@keyframes ic-pop { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.4); } }
@keyframes ic-hear { 0% { opacity: 0; transform: translateX(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(3px); } }
@keyframes ic-blink { 0%, 8%, 20%, 100% { transform: none; } 14% { transform: scaleY(.08); } }
@keyframes ic-look { 0%, 28%, 100% { transform: none; } 36%, 46% { transform: translateX(-2.6px); } 58%, 68% { transform: translateX(2.6px); } 80% { transform: none; } }

/* ---------- 404: a patient monitor with no rhythm; "Terug naar home" shocks it back ---------- */
.notfound .display em { color: var(--red); }
.monitor { --mon-line: #4ade9b; --mon-alarm: #ff5d73; position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--r-lg); background: var(--navy); color: #c9d3e0; box-shadow: var(--shadow-lg); }
.monitor::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(126,200,234,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(126,200,234,.09) 1px, transparent 1px), linear-gradient(rgba(126,200,234,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(126,200,234,.04) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; }
.monitor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 22px 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.monitor-bar small { margin: 0 8px; font-size: inherit; color: #7f93ab; }
.monitor-lead { color: var(--mon-line); font-weight: 700; }
.monitor-alarm { padding: 4px 12px; border-radius: 4px; background: var(--mon-alarm); color: #fff; font-weight: 700; animation: alarm 1s steps(1, end) infinite; }
.monitor-hr small:first-child { margin-left: 0; }
.monitor-hr b { font-size: 1.7rem; font-weight: 600; color: var(--mon-alarm); }
.monitor-trace { position: relative; height: clamp(130px, 19vw, 190px); }
.monitor-trace svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.monitor-trace path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mt-flat path { stroke: var(--mon-alarm); }
.mt-live { clip-path: inset(0 100% 0 0); }
.mt-live path { stroke: var(--mon-line); }
/* a bright spot sweeps along the flat line, like the pen of a monitor with nothing to draw */
.mt-sweep { position: absolute; left: 0; top: calc(61.8% - 1.2px); width: 22%; height: 2.4px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffd1d8); opacity: 0; animation: mt-sweep 3.6s linear infinite; }
@keyframes mt-sweep { 0% { transform: translateX(-100%); opacity: 0; } 10%, 88% { opacity: 1; } 100% { transform: translateX(455%); opacity: 0; } }
@keyframes alarm { 50% { opacity: .35; } }
.monitor-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* the shock: a flash, the line turns green from left to right (a spike at the shock, then sinus rhythm) */
.monitor.is-restart .mt-live { animation: mt-reveal 1.6s linear .12s forwards; }
.monitor.is-restart .mt-flat { animation: mt-cover 1.6s linear .12s forwards; }
.monitor.is-restart .mt-sweep { animation: none; opacity: 0; }
.monitor.is-restart .monitor-flash { animation: mon-flash .55s ease-out; }
.monitor.is-sinus .monitor-alarm { background: var(--mon-line); color: #052e1a; animation: none; }
.monitor.is-sinus .monitor-hr b { color: var(--mon-line); animation: rise-in .4s var(--ease) both; }
@keyframes mt-reveal { 0% { clip-path: inset(0 100% 0 0); } 10% { clip-path: inset(0 88.3% 0 0); } 16% { clip-path: inset(0 85.3% 0 0); } 26% { clip-path: inset(0 78.3% 0 0); } 100% { clip-path: inset(0); } }
@keyframes mt-cover { 0% { clip-path: inset(0); } 10% { clip-path: inset(0 0 0 11.7%); } 16% { clip-path: inset(0 0 0 14.7%); } 26% { clip-path: inset(0 0 0 21.7%); } 100% { clip-path: inset(0 0 0 100%); } }
@keyframes mon-flash { 0% { opacity: .55; } 100% { opacity: 0; } }

/* ==========================================================================
   Motion: deliberately restrained
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 20ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js .ws-card.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease), box-shadow .45s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .ws-card.will-reveal.is-in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .35s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

.bank-payment { margin-block: 18px; }
.bank-qr { width: min(240px, 100%); padding: 12px; background: #fff; color: #111; border-radius: 12px; margin-block: 14px; }
.bank-qr svg { display: block; width: 100%; height: auto; }
.bank-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin-block: 16px; }
.bank-details dt { align-self: center; font-weight: 600; }
.bank-details dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bank-details dd > span { min-width: 0; overflow-wrap: break-word; user-select: text; }
.bank-hint { margin: 0; font-size: .92rem; color: var(--ink-2); }
.copy-btn { flex: none; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.copy-btn:hover { background: var(--bg-3); }
.copy-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.copy-btn.is-copied { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
/* Phones and tablets: paying on this device (copy and paste) comes before the QR code, which needs a second device */
.bank-payment { display: flex; flex-direction: column; }
.on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .bank-payment > .section-label { order: -2; }
  .bank-manual { order: -1; margin-top: 6px; }
  .on-touch { display: inline; }
  .on-desk { display: none; }
}
.registration-payment { margin-top: 24px; }
.activity-prices { font-weight: 600; }
@media (max-width: 440px) { .bank-details { grid-template-columns: 1fr; gap: 4px; } .bank-details dd { margin-bottom: 10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .ws-icon svg * { animation: none !important; }
  .mt-sweep { display: none; }
  .js [data-reveal], .js [data-stagger] > *, .sheet-content > * { opacity: 1 !important; transform: none !important; }
  .mark-draw * { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .splash-mark, .splash-ecg path { animation: none !important; stroke-dashoffset: 0; }
  .js [data-split] .w > span { transform: none !important; }
  .nav-toggle.pulse::before, .nav-toggle.pulse::after, .ticker-track, .hero-mark::before, .hero-mark::after, .mark-draw, .hero-ecg .pulse, .live-dot::after { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
