:root{--pine:#173b32;--deep:#0c2720;--clay:#a83f23;--shell:#f9f5eb;--line:#d9d2c4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--shell);color:var(--deep);font:1rem/1.55 system-ui,sans-serif}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d17950;outline-offset:4px}.skip{position:absolute;left:1rem;top:-5rem;z-index:5;background:var(--shell);padding:.6rem}.skip:focus{top:1rem}.wrap{width:min(92%,1240px);margin-inline:auto}.hero{min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;color:var(--shell);background:radial-gradient(ellipse at 50% 50%,#0c2720db,#0c272088 60%,#0c272050),url('haven.jpg') center/cover,var(--pine)}.nav,.links,.actions,.brand,.section-top,.dialog-top,footer{display:flex;align-items:center;gap:1rem}.nav,.section-top,.dialog-top,footer{justify-content:space-between}.nav{padding-block:1.4rem}.nav a,.brand,.button{text-decoration:none}.links{flex-wrap:wrap}.brand{gap:.65rem;font-size:1.12rem;font-weight:800}.brand small{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.12em}.hero-copy{align-self:center;text-align:center;padding-block:3rem}.hero-copy p{font-size:clamp(1.05rem,2vw,1.35rem);margin:1.1rem 0 1.6rem}.actions{justify-content:center;flex-wrap:wrap}h1,h2,h3{line-height:1.06;margin:0;font-weight:900;letter-spacing:-.045em}h1{font-size:clamp(2.45rem,7.4vw,7.1rem);overflow-wrap:anywhere}h2{font-size:clamp(1.85rem,4vw,3.5rem)}h3{font-size:1.42rem}button,.button{display:inline-block;background:var(--clay);color:white;border:1px solid transparent;border-radius:.5rem;padding:.72rem 1.05rem;font:inherit;font-weight:700;cursor:pointer}.outline{background:#0c272077;border-color:var(--shell)}.quiet{background:var(--pine)}.scroll{justify-self:center;padding:0 0 1.6rem}.section{padding-block:3.4rem}.section-top{align-items:end;gap:2rem}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.35rem 0}.cards article,#inbox article{padding:1.25rem;border:1px solid var(--line);border-radius:.65rem;background:#fffdf7}.tinted{background:#e5eadf}#inbox article+article{margin-top:.6rem}footer{padding-block:1.4rem;border-top:1px solid var(--line)}dialog{width:min(620px,90vw);max-height:85vh;border:0;border-radius:.85rem;padding:1.35rem;background:var(--shell);color:var(--deep)}dialog::backdrop{background:#071e17ba}dialog h2{font-size:1.85rem}label{display:block;font-weight:650}input:not([type=checkbox]),textarea{display:block;width:100%;margin:.3rem 0 .8rem;border:1px solid #98958a;background:white;border-radius:.35rem;padding:.6rem;color:inherit;font:inherit}textarea{min-height:6rem}form button{margin-top:1rem}#status{position:fixed;right:1rem;bottom:1rem;margin:0;padding:.8rem;background:var(--pine);color:white;border-radius:.5rem}#status:empty{display:none}@media(max-width:680px){.nav,.section-top{align-items:flex-start;flex-direction:column}.links{gap:.65rem;font-size:.91rem}.cards{grid-template-columns:1fr}.hero{background-position:center,62% center}.hero-copy{padding-block:2rem}footer{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Horizontale proefsite */
:root { --route-header: 5.5rem; --route-footer: 4.5rem; }
body { margin: 0; overflow: hidden; background: #173b32; }
.bar { position: fixed; z-index: 2; inset: 0 0 auto; height: var(--route-header); padding: .75rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #173b32; color: #f9f5eb; }
.bar .brand, .bar-jobs { color: inherit; }
.bar .brand svg { width: 2.8rem; flex: none; }
.bar button, .route-controls button { background: #f9f5eb; color: #173b32; }
#route { display: flex; width: 100%; height: 100svh; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; }
#route > section { flex: 0 0 82%; width: auto; max-width: none; height: 100%; margin: 0; overflow-y: auto; padding: calc(var(--route-header) + 2rem) clamp(1.25rem, 6vw, 7rem) calc(var(--route-footer) + 2rem); }
#route > .hero { flex-basis: 88%; display: grid; align-items: center; min-height: 0; position: relative; }
#route .hero-copy { margin: 0; padding: 0; position: relative; }
#route .hero-copy h1 { font-size: clamp(2.15rem, 6.2vw, 6rem); overflow-wrap: anywhere; }
#route .scroll { position: static; justify-self: start; align-self: end; }
#vacatures { background: #f9f5eb; }
#talentpool { background: #dce9df; }
#beheer { background: #f9f5eb; }
.route-controls { position: fixed; z-index: 2; inset: auto 0 0; height: var(--route-footer); display: flex; align-items: center; justify-content: center; gap: clamp(.7rem, 3vw, 2rem); background: #173b32; color: #f9f5eb; }
.route-controls span { min-width: 6rem; text-align: center; }
.route-controls button:disabled { opacity: .45; cursor: default; }
#site-menu { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(26rem, 94vw); max-width: none; height: 100%; max-height: none; border-radius: 0; padding: clamp(1.25rem, 4vw, 3rem); background: #f9f5eb; color: #173b32; }
#site-menu[open] { animation: menu-in .22s ease-out; }
#site-menu::backdrop { background: #10251cb3; }
#site-menu nav { display: grid; gap: .75rem; margin-top: 2rem; }
#site-menu nav a { color: inherit; font-size: 1.35rem; padding: .75rem 0; border-bottom: 1px solid #173b3240; text-decoration: none; }
#site-menu nav button { justify-self: start; margin-top: .75rem; }
@keyframes menu-in { from { transform: translateX(-100%); } }
@media (max-width: 680px) {
  #route > section { flex-basis: 94%; }
  #route > .hero { flex-basis: 95%; }
  .bar .brand svg, .bar .brand small { display: none; }
  #route .section-top { display: block; }
}
@media (prefers-reduced-motion: reduce) { #site-menu[open] { animation: none; } }
#route { position: relative; }
#route > .hero { grid-template-rows: 1fr auto; }
#status { bottom: calc(var(--route-footer) + .75rem); z-index: 3; }

/* Header and controls float over the chapters. */
:root {
  --route-header: 6.5rem;
  --shell: #f8f7ef;
  --pine: #153b32;
  --deep: #102a24;
  --clay: #a64029;
}

.bar {
  height: var(--route-header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-inline: clamp(1rem, 4vw, 4.5rem);
  background: linear-gradient(180deg, #0b2420b8, transparent);
  pointer-events: none;
}

.bar > * { pointer-events: auto; }
.bar .brand { justify-self: center; text-shadow: 0 2px 20px #102a2499; }
.bar .brand small { font-size: .68rem; letter-spacing: .15em; }
.bar #menu-toggle, .bar-jobs {
  padding: .65rem 1rem;
  border: 1px solid #ffffff62;
  border-radius: 2rem;
  background: #102a2452;
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
}
.bar #menu-toggle { display: flex; gap: .7rem; align-items: center; justify-self: start; }
.bar-jobs { justify-self: end; font-weight: 700; }
.menu-icon { display: inline-block; width: 1rem; height: .52rem; border-block: 2px solid currentColor; }
.bar #menu-toggle:hover, .bar-jobs:hover { background: #102a24ce; }

body:not([data-chapter="start"]) .bar { background: transparent; }
body:not([data-chapter="start"]) .bar .brand {
  color: #fff;
  background: var(--deep);
  padding: .45rem .9rem;
  border-radius: 2rem;
  text-shadow: none;
}
body:not([data-chapter="start"]) .bar #menu-toggle,
body:not([data-chapter="start"]) .bar-jobs { background: var(--deep); }

#route { background: var(--deep); }
#route > .hero {
  flex-basis: 90%;
  background: linear-gradient(90deg, #0b2420c9 0%, #102a2463 53%, #0b24200d 100%),
    linear-gradient(0deg, #102a24bd, transparent 35%), url('haven.jpg') center 48% / cover;
}
#route .hero-copy { width: 100%; text-align: left; }
#route .hero-copy h1 { font-size: clamp(2.35rem, 6.7vw, 6.6rem); letter-spacing: -.065em; line-height: .98; }
#route .hero-copy p { max-width: 32rem; }
.hero .actions { justify-content: flex-start; }
.hero .button { color: var(--deep); background: #d9edac; }
.hero .outline { background: #102a2452; }
.hero .button:hover { background: #edf8d5; }
.hero .outline:hover { background: var(--deep); }
#route .scroll { padding: 0; text-underline-offset: .3em; }
.button, button { border-radius: 2rem; }

#route > #vacatures { background: linear-gradient(145deg, #fffdf6, #f0efe5); }
#route > #talentpool { background: linear-gradient(150deg, #dbe9d5, #eff4e6); }
#route > #beheer { background: #f5eee6; }
#route > .section h2 { font-size: clamp(2.3rem, 5.3vw, 5rem); }
.section-top p { margin-block: .65rem 0; }
.section-top label { flex: 0 1 19rem; }
.cards article, #inbox article {
  padding: clamp(1rem, 2.3vw, 2rem);
  border: 1px solid #173b3224;
  background: #ffffffcf;
  border-radius: 1.1rem;
  box-shadow: 0 12px 26px #173b320a;
}
.cards article h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
.cards article p { color: #34554a; }
.cards article button { color: var(--deep); background: #e7efe0; }
.cards article button:hover { background: #d7e7cc; }

.route-controls {
  inset: auto auto 1rem 50%;
  transform: translateX(-50%);
  height: auto;
  padding: .42rem;
  gap: .65rem;
  border: 1px solid #ffffff47;
  border-radius: 3rem;
  background: #102a24ec;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px #102a2433;
}
.route-controls button { padding: .48rem .8rem; }
.route-position { display: grid; justify-items: center; gap: .25rem; font-size: .875rem; }
.route-controls .route-progress { min-width: 0; width: 3.2rem; height: 2px; background: #ffffff4a; }
.route-progress i { display: block; height: 100%; background: #d9edac; transform: scaleX(var(--chapter-progress, .25)); transform-origin: left; }

#site-menu { background: #e8efd9; box-shadow: 18px 0 70px #102a2450; }
#site-menu nav a { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.1; font-weight: 800; }
#site-menu nav a[aria-current="location"] { color: var(--clay); }

@media (max-width: 680px) {
  :root { --route-header: 4.75rem; }
  .bar { gap: .35rem; padding-inline: .65rem; }
  .bar .brand { font-size: .93rem; text-align: center; line-height: 1.05; }
  .bar #menu-toggle, .bar-jobs { font-size: .875rem; padding: .45rem .62rem; }
  #route > .hero { flex-basis: 94%; background-position: center, center, 61% center; }
  #route .hero-copy h1 { font-size: clamp(1.9rem, 8.3vw, 3.6rem); }
  #route > section { padding-top: calc(var(--route-header) + 1.35rem); }
}

#route > .discovery { background: #edf1e6; }
#route > .discovery:nth-child(even) { background: #f6efe6; }
#route > #regio {
  color: var(--shell);
  background: linear-gradient(90deg, #102a24e8, #102a2466), url('haven.jpg') center / cover;
}
.chapter-intro { max-width: 36rem; margin: 1rem 0 2rem; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.chapter-link { display: inline-block; font-weight: 750; text-underline-offset: .25em; }
#site-menu { overflow-y: auto; overscroll-behavior: contain; }
#site-menu nav { gap: .2rem; }
#site-menu nav a { font-size: clamp(1.3rem, 3.1vw, 2rem); }
.hero .button.outline { color: var(--shell); background: #102a2475; }
.hero .button.outline:hover { background: var(--deep); }
.route-controls { width: max-content; max-width: calc(100% - 1rem); }
.route-controls #route-label { min-width: 0; }

#route > section[hidden], .route-controls[hidden] { display: none; }
#route.standalone { overflow: hidden; }
#route.standalone > section:not([hidden]), #route > #verhalen { flex-basis: 100%; }
#route.standalone > section:not([hidden]) { padding-bottom: 2rem; }
