:root {
  --kalk: #F3EEE6; --zand: #D9CBB5; --salie: #9DAE8F; --duin: #5E7356; --hout: #A0724E; --inkt: #2B2A27;
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--kalk); color: var(--inkt); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.laden { overflow: hidden; }

/* canvas */
#stage { position: fixed; inset: 0; z-index: 0; background: #ece8dc; }
#drie { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#waas { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(243,238,230,0) 55%, rgba(243,238,230,.28) 100%); }

/* laadscherm */
#laadscherm { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--kalk); transition: opacity 1.1s ease, visibility 1.1s; }
#laadscherm.weg { opacity: 0; visibility: hidden; pointer-events: none; }
.laadinhoud { padding: 24px; }
.merkgroot { font-family: var(--serif); font-size: clamp(34px, 6vw, 56px); letter-spacing: -.5px; font-weight: 400; }
.merkgroot b, .logo b { font-weight: 500; color: var(--duin); }
.laadinhoud p { margin: 14px 0 26px; color: #6e6a5f; font-size: 15px; letter-spacing: .3px; }
.balkje { width: 170px; height: 2px; background: rgba(94, 115, 86, .18); margin: 0 auto; border-radius: 2px; overflow: hidden; }
.balkje i { display: block; height: 100%; width: 0; background: var(--duin); transition: width .45s ease; }
.laadfout { margin-top: 22px; color: #8a4b3a; font-size: 14px; max-width: 360px; line-height: 1.5; }

/* kop en navigatie */
#kop { position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding: calc(22px + env(safe-area-inset-top)) clamp(18px, 4vw, 44px) 0; pointer-events: none; }
.logo { pointer-events: auto; position: relative; display: block; width: 62px; height: 62px; text-decoration: none; opacity: 0; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(243, 238, 230, .8)); }
.logo img.wit { opacity: 0; filter: drop-shadow(0 0 8px rgba(20, 24, 40, .55)); }
.laadlogo { width: clamp(120px, 20vw, 170px); height: auto; display: block; margin: 0 auto; }

/* het grote logo bij de aankomst */
#logoGroot { position: fixed; z-index: 12; left: 50%; top: 31%; transform: translate(-50%, -50%); width: clamp(150px, 19vw, 250px); pointer-events: none; opacity: 0; visibility: hidden; }
#logoGroot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 22px rgba(243, 238, 230, .95)) drop-shadow(0 0 6px rgba(243, 238, 230, .9)); }
#hoofdstukken { position: fixed; z-index: 20; right: clamp(14px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
#hoofdstukken button { position: relative; width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(43, 42, 39, .55); background: transparent; cursor: pointer;
  transition: background .35s, transform .35s, border-color .35s; }
#hoofdstukken button.aan { background: var(--duin); border-color: var(--duin); transform: scale(1.35); }
#hoofdstukken button span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; color: var(--inkt);
  background: rgba(243, 238, 230, .92); padding: 4px 10px; border-radius: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
#hoofdstukken button:hover span { opacity: 1; }

/* geluidsknopje rechtsboven */
#geluid { position: fixed; z-index: 21; top: calc(18px + env(safe-area-inset-top)); right: clamp(14px, 3vw, 40px); display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 30px; border: 1px solid rgba(43, 42, 39, .22); background: rgba(243, 238, 230, .82); color: var(--inkt);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 13px var(--sans); letter-spacing: .2px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, opacity .8s; }
#geluid[hidden] { display: none; }
#geluid i { font-style: normal; font-size: 15px; line-height: 1; }
#geluid:hover { background: #fff; }
#geluid.aan { background: var(--duin); border-color: var(--duin); color: var(--kalk); }
body.laden #geluid { opacity: 0; pointer-events: none; }

#scrollhint { position: fixed; z-index: 15; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 6px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--inkt); opacity: 0; pointer-events: none; transition: opacity .8s; }
#scrollhint.zichtbaar { opacity: .7; }
#scrollhint svg { width: 14px; height: 22px; animation: zak 2s ease-in-out infinite; }
@keyframes zak { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* teksten */
#teksten { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.paneel { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(22px, 7vw, 110px); opacity: 0; visibility: hidden; }
.paneel.links { justify-content: flex-start; }
.paneel.rechts { justify-content: flex-end; padding-right: clamp(46px, 8vw, 120px); }
.paneel.midden { justify-content: center; text-align: center; }
.paneel.onder { justify-content: center; align-items: flex-end; text-align: center; padding-bottom: clamp(48px, 12vh, 130px); }
.paneel.links.boven { align-items: flex-start; padding-top: clamp(84px, 17vh, 170px); }   /* bovenin links: het onderwerp staat in het midden en wordt nooit bedekt */
.kaart { max-width: 390px; padding: 22px 26px 24px; border-radius: 20px; background: rgba(243, 238, 230, .6);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 18px 60px rgba(60, 50, 30, .12); will-change: transform; }
.kaart.groot { max-width: 460px; }
.kaart.eind { max-width: 640px; padding: 40px 44px 42px; }
.kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--duin); font-weight: 600; margin-bottom: 14px; }
.kaart h1, .kaart h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: -.5px; }
.kaart h1 { font-size: clamp(32px, 4.2vw, 54px); }
.kaart h2 { font-size: clamp(23px, 2.6vw, 33px); }
.kaart h2.reuze { font-size: clamp(36px, 5.6vw, 72px); }
.kaart p { margin: 12px 0 0; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.6; color: #55524a; }
.prijskaart { margin: 28px auto 0; display: inline-block; text-align: left; padding: 16px 22px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(94, 115, 86, .25); }
.prijs { display: flex; align-items: baseline; gap: 14px; }
.prijs span { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--duin); font-weight: 600; }
.prijs b { font-family: var(--serif); font-weight: 500; font-size: 38px; }
.prijskaart p { margin: 6px 0 0; font-size: 14px; }
.knop { display: inline-block; margin-top: 26px; padding: 15px 30px; border-radius: 40px; background: var(--inkt); color: var(--kalk); text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: .2px; pointer-events: auto; transition: background .3s, transform .3s; }
.paneel.midden .knop { display: block; width: max-content; margin: 26px auto 0; }
.knop:hover { background: var(--duin); transform: translateY(-2px); }

/* hoofdstuk 5 en 7: namen van de lagen van het zwembad (#lagenBad) en van de uiteenvallende buitenkeuken (#lagen) */
#lagen, #lagenBad { position: fixed; inset: 0; z-index: 11; pointer-events: none; visibility: hidden; }
.laag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; letter-spacing: .4px; color: var(--inkt); opacity: 0;
  background: rgba(243, 238, 230, .9); padding: 5px 13px 5px 8px; border-radius: 20px; border: 1px solid rgba(94, 115, 86, .4); will-change: transform, opacity; }
.laag::before { content: ''; position: absolute; right: 100%; top: 50%; width: 34px; height: 1px; background: var(--duin); }
.laag b { display: inline-block; width: 18px; height: 18px; line-height: 18px; margin-right: 7px; text-align: center; border-radius: 50%;
  background: var(--duin); color: var(--kalk); font-weight: 500; font-size: 10.5px; letter-spacing: 0; }

/* hoofdstuk 1: handgeschreven notities bij de schets (Caveat, zelfde inktkleur als de potloodschets) */
#noten { position: fixed; inset: 0; z-index: 11; pointer-events: none; }
.noot { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-end; opacity: 0; visibility: hidden; will-change: transform, opacity;
  font: 600 clamp(26px, 3.4vw, 42px)/1 Caveat, 'Bradley Hand', 'Segoe Script', cursive; color: #3a3f3a; white-space: nowrap;
  text-shadow: 0 0 10px rgba(243, 238, 230, .95), 0 0 3px rgba(243, 238, 230, .95); }
.noot span { display: inline-block; transform: rotate(-2deg); }
.noot.links { align-items: flex-start; }
.noot svg { width: clamp(58px, 7vw, 96px); height: auto; margin-top: 2px; fill: none; stroke: #3a3f3a; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(243, 238, 230, .9)); }
.noot.links svg { transform: scaleX(-1); }

/* verhaal en aanvragen */
#verhaal { position: relative; z-index: 2; }
.ruimte { width: 100%; }

/* de pagina na het verhaal: ondoorzichtig, schuift over het vaste canvas heen */
#pagina { position: relative; z-index: 30; background: var(--kalk); box-shadow: 0 -30px 70px rgba(60, 50, 30, .12); }
.sectie { position: relative; background: var(--kalk); padding: clamp(72px, 11vw, 150px) clamp(20px, 5vw, 64px); }
.sectie.zand { background: #ebe3d4; }
.binnen { max-width: 1180px; margin: 0 auto; }
.binnen.smal { max-width: 640px; text-align: center; }
.kop-blok { max-width: 640px; margin-bottom: clamp(30px, 5vw, 56px); }
.kop-blok.mid { margin-left: auto; margin-right: auto; text-align: center; }
.sectie h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.6px; margin: 0; }
.sectie h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; margin: 18px 0 0; }
.lead { margin: 16px 0 0; font-size: clamp(15.5px, 1.5vw, 18px); line-height: 1.65; color: #55524a; }
.sectie .kicker { margin-bottom: 14px; }

/* zacht in beeld: fade + 12 px omhoog */
.js .onthul { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.js .onthul.zichtbaar { opacity: 1; transform: none; }

/* wat je krijgt: live model */
.krijg-rooster { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.modelkader { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: #cfc8b6 var(--poster, none) center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(60, 50, 30, .22); isolation: isolate; }
.modelkader canvas.inkader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: auto; cursor: grab; opacity: 0; transition: opacity .7s ease; touch-action: pan-y; }
.modelkader canvas.inkader.klaar { opacity: 1; }
.modelkader canvas.inkader:active { cursor: grabbing; }
.modelknoppen { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: calc(100% - 24px);
  padding: 6px; border-radius: 34px; background: rgba(243, 238, 230, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .6); }
.mk { appearance: none; border: 0; background: transparent; color: var(--inkt); font: 500 13.5px var(--sans); padding: 10px 16px; border-radius: 26px; cursor: pointer; min-height: 40px; transition: background .25s, color .25s; }
.mk:hover { background: rgba(94, 115, 86, .14); }
.mk.aan { background: var(--duin); color: var(--kalk); }
.modelhulp { position: absolute; z-index: 3; left: 14px; top: 14px; padding: 7px 14px; border-radius: 20px; font-size: 12.5px; color: var(--inkt); background: rgba(243, 238, 230, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .6s; pointer-events: none; }
.modelhulp.weg { opacity: 0; }
.modeltitel { position: absolute; z-index: 3; left: 50%; top: 16px; transform: translate(-50%, -6px); padding: 9px 20px; border-radius: 26px; font: 400 20px var(--serif); color: var(--inkt);
  background: rgba(243, 238, 230, .86); opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s; white-space: nowrap; }
.modeltitel.toon { opacity: 1; transform: translate(-50%, 0); }
.draaislot { position: absolute; z-index: 3; right: 14px; top: 14px; appearance: none; border: 1px solid rgba(43, 42, 39, .2); border-radius: 22px; padding: 10px 16px; min-height: 42px; font: 500 13px var(--sans);
  color: var(--inkt); background: rgba(243, 238, 230, .9); cursor: pointer; }
.draaislot[hidden] { display: none; }
.draaislot.aan { background: var(--duin); border-color: var(--duin); color: var(--kalk); }
.krijglijst { list-style: none; margin: 0; padding: 0; }
.krijglijst li { padding: 16px 0 16px 34px; position: relative; border-bottom: 1px solid rgba(43, 42, 39, .1); }
.krijglijst li:first-child { border-top: 1px solid rgba(43, 42, 39, .1); }
.krijglijst li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--duin); border-bottom: 2px solid var(--duin); transform: rotate(-45deg); }
.krijglijst b { display: block; font-weight: 600; font-size: 16px; }
.krijglijst span { display: block; margin-top: 3px; color: #6b675c; font-size: 14.5px; line-height: 1.5; }

/* pakketten */
.pakketten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 34px); max-width: 900px; margin: 0 auto; }
.pakket { display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 40px); border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(43, 42, 39, .1); }
.pakket.uitgelicht { background: var(--kalk); border-color: var(--duin); box-shadow: 0 24px 70px rgba(94, 115, 86, .22); }
.pakket .label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--duin); font-weight: 600; }
.pakket .bedrag { margin-top: 12px; font-family: var(--serif); }
.pakket .bedrag b { font-weight: 500; font-size: clamp(46px, 5vw, 64px); line-height: 1; }
.pakket .bedrag b.volgt { font-size: clamp(26px, 3vw, 34px); font-style: italic; font-weight: 400; color: #7a766a; line-height: 1.6; }
.pakket .klein { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: #55524a; }
.pakket ul { list-style: none; margin: 20px 0 24px; padding: 0; flex: 1; }
.pakket li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; line-height: 1.45; }
.pakket li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--duin); border-bottom: 2px solid var(--duin); transform: rotate(-45deg); }
.pakket .knop { margin-top: 0; text-align: center; }
.knop.licht { background: transparent; color: var(--inkt); border: 1px solid rgba(43, 42, 39, .35); }
.knop.licht:hover { background: var(--inkt); color: var(--kalk); }

/* zo werkt het */
.stappen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 54px); counter-reset: s; }
.stappen li { position: relative; padding-top: 20px; border-top: 1px solid rgba(43, 42, 39, .18); }
.stappen .nr { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--duin); color: var(--kalk); font: 500 18px var(--serif); }
.stappen p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; color: #55524a; }

/* aanvragen en voettekst */
#aanvragen { scroll-margin-top: 0; }
#aanvragen .lead { margin-top: 14px; }
#voet { background: var(--inkt); color: #cfc8b8; padding: 54px clamp(20px, 5vw, 64px) calc(46px + env(safe-area-inset-bottom)); text-align: center; }
.voetinhoud { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; line-height: 1.7; }
.voetinhoud .logo { opacity: 1; width: 96px; height: 96px; }
.voetinhoud .logo img { position: static; filter: none; }

/* de eindkaart staat op de verlichte avondtuin: donker glas, wit logo */
.kaart.eind { background: rgba(22, 26, 38, .62); border-color: rgba(255, 255, 255, .16); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); color: #f3eee6; }
.kaart.eind .kicker { color: var(--salie); }
.kaart.eind p { color: #d9d3c6; }
.kaart.eind .prijskaart { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.kaart.eind .prijs span { color: var(--salie); }
.kaart.eind .knop { background: var(--kalk); color: var(--inkt); }
.kaart.eind .knop:hover { background: var(--salie); }
.eindlogo { width: 104px; height: 104px; display: block; margin: 0 auto 12px; opacity: 0; }
.voetinhoud em { color: #9d9788; }

@media (max-width: 900px) {
  .krijg-rooster { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .onthul { transition: none; transform: none; }
  #scrollhint svg { animation: none; }
}
body.na #hoofdstukken, body.na #scrollhint { opacity: 0; pointer-events: none; }
#hoofdstukken { transition: opacity .4s; }
#hoofdstukken button::after { content: ''; position: absolute; inset: -9px; }
@supports (height: 100lvh) { #stage { bottom: auto; height: 100lvh; } }   /* het canvas past niet steeds opnieuw aan als de adresbalk verschijnt of verdwijnt */

/* telefoon: teksten onderaan in een zachte balk */
@media (max-width: 760px) {
  .paneel, .paneel.rechts, .paneel.links.boven { align-items: flex-end; justify-content: stretch; padding: 0 12px calc(18px + env(safe-area-inset-bottom)); }
  .paneel.midden { justify-content: stretch; }
  .kaart, .kaart.groot, .kaart.eind { max-width: none; width: 100%; padding: 18px 20px 20px; border-radius: 18px; }
  .kaart.eind { padding: 22px 20px 24px; }
  .kaart h1 { font-size: 30px; }
  .kaart h2 { font-size: 23px; }
  .kaart h2.reuze { font-size: 31px; }
  .kicker { margin-bottom: 8px; }
  .prijskaart { margin-top: 16px; padding: 12px 16px; }
  .prijs b { font-size: 30px; }
  .knop { margin-top: 16px; padding: 13px 26px; }
  #hoofdstukken { right: 8px; gap: 11px; }
  #hoofdstukken button span { display: none; }
  #scrollhint { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .logo { width: 50px; height: 50px; }
  #logoGroot { top: 27%; width: 150px; }
  .eindlogo { width: 76px; height: 76px; }
  #geluid { right: 12px; padding: 10px 12px; }
  #geluid span { display: none; }
  .laag { font-size: 11px; padding: 4px 10px 4px 6px; }
  .laag::before { width: 18px; }
  .sectie { padding: 64px 18px 68px; }
  .modelkader { aspect-ratio: 4 / 5; border-radius: 20px; }
  .modelknoppen { bottom: 10px; gap: 4px; padding: 5px; }
  .mk { padding: 10px 12px; font-size: 13px; }
  .modelhulp { display: none; }
  .modeltitel { font-size: 17px; top: 60px; }
  .draaislot { left: 10px; right: 10px; top: 10px; text-align: center; }
  .pakketten { grid-template-columns: 1fr; }
  .stappen li { padding-top: 16px; }
  .knop { display: block; text-align: center; }
}
