/* =========================================================
   BART WORTEL: STARTPAGINA
   Titels: Schibsted Grotesk · Leestekst: Geist · Labels: Paper Mono
   Blauw #0003D1 · Limoen #E3E78D
   Alle bestanden staan in de map home-assets/
   ========================================================= */
@font-face { font-family: "Schibsted Grotesk"; src: url("schibsted-grotesk.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("geist.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Paper Mono"; src: url("paper-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --blue: #0003D1;
  --blue-mist: #E4E4FB;
  --lime: #E3E78D;
  --lime-light: #F3F5D0;
  --lime-deep: #C5CC3F;
  --ink: #0A0A14;
  --white: #FFFFFF;
  --line: rgba(10,10,20,.16);

  --title: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Paper Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1360px;
  --gutter: clamp(22px, 4.2vw, 64px);
  --section-y: clamp(84px, 11vw, 176px);

  /* Beweging: één set curves en tijden voor de hele pagina */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-small: 250ms; --t-medium: 400ms; --t-large: 700ms;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: clamp(40px, 6vw, 96px); line-height: .96; margin-bottom: .45em; text-wrap: balance; }
h3 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: .35em; }
p { max-width: 58ch; }
.mono { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-blue :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kop ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.05rem/1 var(--title); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  font: 600 .9rem/1 var(--text); text-decoration: none;
  background: var(--blue); color: var(--white); border-radius: 999px;
  transition: background var(--t-small) var(--ease), transform var(--t-small) var(--ease-spring);
}
@media (hover: hover) { .btn:hover { background: var(--ink); transform: scale(1.04); } }

/* ---------- Opening: de B bouwt zich uit foto's ---------- */
.hero { height: 300vh; position: relative; }
.hero-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 80px var(--gutter) 40px;
  background-color: var(--white);
  background-image:
    linear-gradient(var(--blue-mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-mist) 1px, transparent 1px);
  background-size: 34px 34px; background-position: -1px -1px;
}
.hero-text { position: relative; z-index: 3; }
.hero h1 {
  font-size: clamp(60px, 11.5vw, 204px); line-height: .86; letter-spacing: -.06em;
  margin-bottom: .28em;
}
.hero h1 span { display: block; color: #C9CAF3; transition: color var(--t-large) var(--ease); }
.hero h1 span.is-on { color: var(--ink); }
.hero h1 span.is-on:last-child { color: var(--blue); }
.hero-intro { font-size: clamp(19px, 1.8vw, 27px); line-height: 1.32; font-weight: 500; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 0; }
.hero-intro b { font-weight: 700; }
.cue { position: absolute; left: var(--gutter); bottom: 22px; z-index: 3; margin: 0; color: var(--blue); transition: opacity .4s; }
.hero.is-moving .cue { opacity: 0; }

.b { position: relative; z-index: 2; width: min(100%, 76svh); aspect-ratio: 1; justify-self: center;
     display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pc {
  --q: 0;
  transform:
    translate(calc(var(--dx) * var(--q)), calc(var(--dy) * var(--q)))
    rotate(calc(var(--r) * var(--q)))
    scale(calc(1 - .32 * var(--q)));
  will-change: transform; overflow: hidden; background: var(--blue-mist);
  position: relative; min-width: 0; min-height: 0;
}
.pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc1 { grid-area: 1 / 1; --dx: -8vw; --dy: -30vh; --r: -16deg; }
.pc2 { grid-area: 2 / 1; --dx: -15vw; --dy: 27vh;  --r: 22deg; border-radius: 50%; }
.pc3 { grid-area: 1 / 2; --dx: 9vw;   --dy: -20vh; --r: 28deg; clip-path: url(#bowl); }
.pc4 { grid-area: 2 / 2; --dx: 10vw;  --dy: 24vh;  --r: -24deg; clip-path: url(#bowl); }

/* ---------- Zo werkt een sessie ---------- */
.steps { background: var(--blue); color: var(--white); }
.steps-head { padding-top: var(--section-y); }
.steps-head h2 { color: var(--white); margin: 0; }
.steps-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); }
.steps-visual { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-block: 90px 40px; }
.frame { position: relative; aspect-ratio: 4 / 5; max-height: 72svh; border-radius: 0 38% 0 0; overflow: hidden; background: #0002a0; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity var(--t-large) var(--ease), transform 1.2s var(--ease); }
.frame img.is-active { opacity: 1; transform: none; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity var(--t-medium) var(--ease); }
.steps-list li.is-active { opacity: 1; }
.steps-list h3 { font-size: clamp(64px, 10vw, 168px); line-height: .88; letter-spacing: -.06em; margin-bottom: .2em; }
.steps-list p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; max-width: 30ch; margin-bottom: 0; }


/* ---------- Inleiding ---------- */
.intro { padding-block: var(--section-y) 0; }
.intro .lead { font: 500 clamp(24px, 3.1vw, 46px)/1.2 var(--text); letter-spacing: -.025em; max-width: 24em; margin-bottom: clamp(28px, 4vw, 56px); text-wrap: pretty; }
.intro .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); max-width: 980px; margin-left: auto; padding-top: 22px; border-top: 2px solid var(--ink); }
.intro .cols p { margin: 0; font-size: 1.08rem; }

/* ---------- Wat je bouwt ---------- */
.what { padding-block: var(--section-y); }
.what .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.what h2 { font-size: clamp(42px, 6.6vw, 108px); line-height: .93; letter-spacing: -.055em; margin: 0; }
.what-text p { font-size: 1.08rem; }
.closing { font: 800 clamp(22px, 2vw, 30px)/1.15 var(--title); letter-spacing: -.03em; margin: 1.1em 0 0; }

/* ---------- Getekende accenten: spreekballon en kras ---------- */
.say { position: relative; display: grid; place-items: center; width: 96px; height: 80px; margin-bottom: 14px; transform: rotate(-4deg); }
.say svg, .ballon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.say b { position: relative; font: 800 1.9rem/1 var(--title); color: var(--lime); transform: translateY(-6px); }
.say--b { transform: rotate(3deg) scaleX(-1); } .say--b b { transform: translateY(-6px) scaleX(-1); }
.say--c { transform: rotate(-1deg); width: 104px; }
.say--d { transform: rotate(5deg) scaleX(-1); } .say--d b { transform: translateY(-6px) scaleX(-1); }
.ballon { position: absolute; right: clamp(-28px, -2vw, -8px); bottom: -34px; width: min(300px, 62%); padding: 22px 26px 46px 28px; transform: rotate(-3deg); }
.ballon svg { fill: var(--white); stroke: var(--ink); stroke-width: 3.5; }
.ballon span { position: relative; display: block; font: 700 1.05rem/1.22 var(--title); letter-spacing: -.02em; }
.kras { position: relative; white-space: nowrap; }
.kras svg { position: absolute; left: -4%; right: -4%; bottom: -.16em; width: 108%; height: .26em; overflow: visible; fill: none; stroke: var(--lime-deep); stroke-width: 6; stroke-linecap: round; }

/* ---------- Na de stappen ---------- */
.steps-foot { padding-bottom: var(--section-y); }
.steps-foot p { font: 500 clamp(22px, 2.4vw, 36px)/1.28 var(--text); letter-spacing: -.02em; max-width: 30em; margin: 0; padding-left: 24px; border-left: 6px solid var(--lime); }

/* ---------- Iedereen bouwt anders ---------- */
.differ { background: var(--lime); padding-block: var(--section-y); }
.differ .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.differ .circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid var(--blue); }
.differ .circle img { width: 100%; height: 100%; object-fit: cover; }
.differ h2 { color: var(--blue); }
.differ .lead { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.34; font-weight: 500; letter-spacing: -.015em; max-width: 30ch; }

/* ---------- Waarom ---------- */
.why { padding-block: clamp(64px, 8vw, 128px); }
.why .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.why-photo { margin: 0; position: relative; padding: 0 0 22px 22px; }
.why-photo::before { content: ""; position: absolute; inset: 22px 22px 0 0; background: var(--lime); }
.why-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 28% 0 0; }
.why h2 { font-size: clamp(34px, 4.4vw, 68px); margin-bottom: .55em; }
.reason { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 2px solid var(--ink); }
.reason:last-child { border-bottom: 2px solid var(--ink); }
.reason h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 4px; }
.reason p { margin: 0; }
.shape { width: 30px; height: 30px; margin-top: 3px; background: var(--blue); }
.shape--circle { border-radius: 50%; }
.shape--bowl { clip-path: url(#bowl); background: var(--lime-deep); }

/* ---------- Over Bart ---------- */
.about { padding-block: clamp(40px, 5vw, 80px) var(--section-y); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.about h2 { position: sticky; top: 110px; margin: 0; }
.about .lead { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.34; font-weight: 500; letter-spacing: -.015em; }
.about .closing { color: var(--blue); }

/* ---------- Waar ik bij help ---------- */
.when { background: var(--lime-light); padding-block: var(--section-y); }
.when-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.when-photo { margin: 0; position: relative; }
.when-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 0 clamp(70px, 13vw, 210px) 0; }
.when ul { list-style: none; margin: 0; padding: 0; }
.when li { font: 800 clamp(21px, 2.1vw, 31px)/1.12 var(--title); letter-spacing: -.035em; padding: .62em 0; border-top: 2px solid var(--ink); text-wrap: balance; }
.when li:last-child { border-bottom: 2px solid var(--ink); }
.mix { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(72px, 9vw, 140px); }
.mix p { margin: 0; font-size: 1.08rem; max-width: 34ch; }
.bricks { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(4px, .7vw, 10px); padding-top: 4%; }
.brick { position: relative; aspect-ratio: 5 / 3; background: var(--blue); border-radius: 3px; transform: translateY(-70px); opacity: 0; transition: transform 600ms var(--ease-spring), opacity var(--t-small) var(--ease); transition-delay: calc(var(--i) * 60ms); }
.brick::before, .brick::after { content: ""; position: absolute; bottom: 100%; width: 26%; height: 20%; background: inherit; border-radius: 3px 3px 0 0; }
.brick::before { left: 14%; } .brick::after { right: 14%; }
.brick.alt { background: var(--lime-deep); }
.bricks.is-in .brick { transform: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { background: var(--blue); color: var(--white); padding-block: var(--section-y) clamp(40px, 5vw, 72px); }
.contact h2 { color: var(--white); font-size: clamp(50px, 9vw, 150px); line-height: .88; letter-spacing: -.06em; }
.contact .lead { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.34; font-weight: 500; max-width: 32ch; margin-bottom: .5em; }
.mail {
  display: inline-block; margin: clamp(18px, 3vw, 40px) 0 clamp(28px, 4vw, 52px);
  font: 800 clamp(30px, 6.4vw, 104px)/1 var(--title); letter-spacing: -.05em;
  color: var(--lime); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .mail:hover { color: var(--white); } }
.links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 2px solid var(--white); border-radius: 999px; text-decoration: none; font-weight: 600; transition: background var(--t-small) var(--ease), color var(--t-small) var(--ease); }
@media (hover: hover) { .links a:hover { background: var(--white); color: var(--blue); } }
.foot { background: var(--blue); color: var(--white); padding-bottom: 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.foot .wrap::before { content: ""; flex: 0 0 100%; height: 1px; background: rgba(255,255,255,.35); margin-bottom: 12px; }
.foot p { margin: 0; max-width: none; }
.foot a { color: var(--lime); }

/* ---------- Koppen komen één keer omhoog uit hun regel ---------- */
.js [data-rise] { clip-path: inset(-.1em 0 100% 0); transform: translateY(30px); transition: clip-path var(--t-large) var(--ease), transform var(--t-large) var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-rise].is-in { clip-path: inset(-.1em 0 -.25em 0); transform: none; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 860px) {
  .hero-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding-top: 84px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(54px, 17vw, 120px); }
  .b { width: min(78vw, 44svh); align-self: center; }
  .pc1 { --dx: -30vw; --dy: -8vh; } .pc2 { --dx: -34vw; --dy: 22vh; }
  .pc3 { --dx: 34vw; --dy: -20vh; } .pc4 { --dx: 30vw; --dy: 22vh; }
  .what .wrap, .differ .wrap, .why .wrap, .about .wrap, .when-grid, .mix, .intro .cols { grid-template-columns: 1fr; }
  .about h2 { position: static; }
  .why-photo { max-width: 520px; }
  .ballon { right: 0; }
  .steps-in { grid-template-columns: 1fr; gap: 0; }
  .steps-visual { top: 58px; height: auto; padding-block: 14px 10px; z-index: 2; background: var(--blue); }
  .frame { aspect-ratio: 16 / 10; max-height: 34svh; border-radius: 0 80px 0 0; }
  .steps-list li { min-height: 64svh; }
  .differ .circle { max-width: 420px; }
}
@media (max-width: 520px) {
  html { font-size: 17px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-pin { position: relative; }
  .cue { display: none; }
  .brick { transform: none; opacity: 1; }
  .js [data-rise] { clip-path: none; transform: none; }

  .steps-list li { opacity: 1; }
  * { transition: none !important; }
}
