/* Chapter 01 hero — the cinematic floating world (loaded after main.css; the header lives in nav.css, untouched).
   Paint order: sky < chapter-03 world < hero layer (artwork, motion, scrim) < hero content < cream chapters < header.
   Layout: copy on the left over the dark sky, the island and portal on the right; nothing crosses the header band. */

/* ---------- the hero layer: fixed like the world, 100lvh so a phone's address bar never resizes it ---------- */
.vh-layer { --fx: 60%; --fit: 100%; position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 2; pointer-events: none; background: linear-gradient(180deg, #0b0c1b 0%, #15152b 60%, #1c1a33 100%); }
.vh-layer > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.vh-poster img { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--fit, 100%); object-fit: cover; object-position: var(--fx) 50%; transform: scale(1.06); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%); }
#vh-canvas { opacity: 0; transition: opacity .8s ease; }
html.vh-live #vh-canvas { opacity: 1; }
/* readability: the sky behind the copy is darkened a touch more, and the bottom settles into the page */
.vh-scrim { background:
  linear-gradient(90deg, rgba(8, 9, 20, .84) 0%, rgba(8, 9, 20, .64) 28%, rgba(8, 9, 20, .22) 46%, rgba(8, 9, 20, 0) 60%),
  linear-gradient(0deg, rgba(8, 9, 20, .5) 0%, rgba(8, 9, 20, 0) 22%); }
html.vh-off .vh-layer { visibility: hidden; }

/* ---------- the hero section: transparent, carries the copy ---------- */
.vh { position: relative; z-index: 3; min-height: max(600px, 100vh); min-height: max(600px, 100svh); overflow: clip; display: grid; grid-template-rows: 1fr auto 1fr;
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter)); padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter)); padding-block: 120px 96px; }
.vh-copy { grid-row: 2; display: grid; gap: 24px; max-width: 640px; }
.vh-eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.vh-eyebrow span { color: var(--bone); }
.vh h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5.2vw, 88px); line-height: 1.01; letter-spacing: -.035em; color: #F6F3EE; text-wrap: balance; }
.vh h1 em { font-style: normal; color: var(--orange); }
.vh-lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: #DCD7E6; max-width: 31em; }
.vh-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
/* buttons speak the header's language: mono caps, 12px corners, the orange of the CTA */
.vh-btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 24px; border-radius: 12px; text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .25s, border-color .25s, color .25s; }
.vh-btn:hover { transform: translateY(-2px); }
.vh-btn:active { transform: translateY(0) scale(.98); }
.vh-btn.primary { background: var(--orange); color: #140A02; }
.vh-btn.primary:hover { background: #ff7d22; }
.vh-btn.ghost { color: var(--bone); border: 1px solid rgba(242, 236, 227, .7); background: rgba(8, 9, 20, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vh-btn.ghost:hover { border-color: var(--bone); background: rgba(242, 236, 227, .08); }
.vh-btn .arrow { transition: transform .35s var(--ease-out); }
.vh-btn:hover .arrow { transform: translateX(3px); }

/* scroll cue: a small mouse, the word, and a line that draws itself */
/* desktop: in the hero's grid, in the row below the copy. With room to spare it sits 40px above the hero's foot as before and the
   copy stays centred; on a low laptop window the row keeps at least 40px between the buttons and the cue (the copy moves up,
   or the hero grows a little), so the cue never covers the buttons */
.vh-cue { grid-row: 3; align-self: end; justify-self: start; margin: 40px 0 -56px; display: grid; gap: 12px; justify-items: start;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #DCD7E6; text-decoration: none; }
.vh-cue .mouse { width: 20px; height: 30px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; opacity: .9; }
.vh-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: vh-wheel 2.2s ease-in-out infinite; }
.vh-cue .line { width: 1px; height: 26px; background: linear-gradient(currentColor, transparent); transform-origin: top; animation: vh-line 2.2s ease-in-out infinite; }
.vh-cue:hover { color: var(--bone); }
@keyframes vh-wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(7px); opacity: 0; } }
@keyframes vh-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* entrance: quick and optional — the copy is readable from the first frame */
.vh-copy > * { animation: vh-in .9s cubic-bezier(.16, 1, .3, 1) both; }
.vh-copy > :nth-child(2) { animation-delay: .06s; } .vh-copy > :nth-child(3) { animation-delay: .14s; } .vh-copy > :nth-child(4) { animation-delay: .2s; }
/* the label above the title is part of the H1 (search engines read 'Website laten maken' as the page subject); it looks and enters exactly as before */
.vh h1 { display: grid; gap: 24px; }
.vh h1 > .vh-eyebrow { display: block; line-height: 1.5; text-wrap: balance; }
.vh h1 > .vh-h1 { display: block; }
.vh-copy > h1 { animation: none; }
.vh-copy > h1 > span { animation: vh-in .9s cubic-bezier(.16, 1, .3, 1) both; }
.vh-copy > h1 > .vh-h1 { animation-delay: .06s; }
.vh-copy > .vh-lede { animation-delay: .14s; } .vh-copy > .vh-btns { animation-delay: .2s; }
@keyframes vh-in { from { opacity: .001; transform: translateY(14px); } }
#dbg { position: fixed; left: 8px; bottom: 8px; z-index: 60; font: 11px/1.4 ui-monospace, monospace; background: rgba(0, 0, 0, .6); color: #cfe; padding: 4px 8px; border-radius: 6px; pointer-events: none; }

@media (max-width: 899px) {
  .vh { align-content: start; padding-block: 128px 120px; }
  .vh-scrim { background:
    linear-gradient(180deg, rgba(8, 9, 20, .84) 0%, rgba(8, 9, 20, .62) 38%, rgba(8, 9, 20, .08) 62%, rgba(8, 9, 20, 0) 72%),
    linear-gradient(0deg, rgba(8, 9, 20, .5) 0%, rgba(8, 9, 20, 0) 22%); }
}
@media (max-width: 640px) {
  .vh { padding-block: 112px 110px; }
  .vh-copy { gap: 18px; }
  .vh h1 { gap: 18px; }
  .vh h1 { font-size: clamp(38px, 10.6vw, 52px); }
  .vh-lede { font-size: 16px; }
  .vh-btn { padding: 15px 18px; font-size: 12px; }
}
/* low desktop and laptop windows (browser bars included): below the buttons there is no room left on screen, so the cue
   moves to the hero's bottom right, over the artwork, clear of the copy; the hero keeps its original centred layout */
@media (min-width: 900px) and (max-height: 799px) {
  .vh { height: 100vh; height: 100svh; min-height: 600px; grid-template-rows: none; align-content: center; }
  .vh-copy { grid-row: auto; }
  .vh-cue { position: absolute; left: auto; right: max(16px, env(safe-area-inset-right, 0px), var(--gutter)); bottom: 32px; margin: 0; justify-items: center; }
}
/* phones and tablets: the scroll cue sits in the flow BELOW the buttons (never over them). On a tall screen it stays at the
   bottom of the hero; on a short one (Safari's bars visible) the hero grows a little rather than letting the cue overlap. */
@media (max-width: 899px) {
  .vh { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .vh-cue { position: relative; left: auto; bottom: auto; align-self: flex-start; margin: auto 0 0; padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .vh-copy > *, .vh-copy > h1 > span, .vh-cue .mouse::after, .vh-cue .line { animation: none !important; } }
