/* Home (/): hero met de Bavokerk en de skyline, portfolio, werkwijze, oprichter, contact. Alleen regels die op de home voorkomen;
   het gedeelde systeem (tokens, secties, splitblok, knoppen, grondlijn) staat in /styles.css. */

/* ——— portfolio: elke dienst een rij op het bord — herkenning, oplossing, voor wie ——— */
.portfolio-title { margin-bottom: clamp(32px, 4vw, 56px); }
.portfolio { border-bottom: 1px solid var(--lijn-groen); }
.dienst { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr) minmax(0, .9fr); gap: 16px clamp(24px, 4vw, 64px); padding-block: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--lijn-groen); }
.dienst h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); color: var(--goud); }
.dienst-herkenning { font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; max-width: 34ch; }
.dienst-body > p:not(.dienst-herkenning) { color: var(--creme-zacht); max-width: 52ch; }
.dienst-voor > p { color: var(--creme-zacht); font-size: 1rem; max-width: 34ch; }
.dienst-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.portfolio-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-top: 28px; }
.portfolio-foot p { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; }
.portfolio-foot strong { font-weight: 800; }
.role { margin-top: 16px; color: var(--goud); font-weight: 600; font-size: 1.1rem; max-width: 26ch; }
.cv { margin-top: 30px; border-top: 1px solid var(--lijn-groen); }
.cv li { padding-block: 14px; border-bottom: 1px solid var(--lijn-groen); color: var(--creme-zacht); }
/* Nieuwsbrief en contact heeft in de HTML nog de oude klasse .section (80–140 px); hier de sectieruimte van het systeem, zoals de andere secties. */
main > .section.container { padding-block: var(--sectie-ruimte); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px var(--kolom-gap); align-items: start; }
.contact-grid h2 { margin-bottom: 22px; }
.contact-lines { margin-top: 36px; display: grid; gap: 6px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.contact-lines a { overflow-wrap: anywhere; width: fit-content; border-bottom: 1px solid transparent; }
.contact-lines a:hover { border-bottom-color: var(--goud); }
@media (max-width: 1100px) {
  .dienst { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .dienst-voor { grid-column: 2; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .dienst { grid-template-columns: 1fr; gap: 12px; }
  .dienst-voor { grid-column: auto; }
}
/* home: knop naar de zzp-pagina, onder de vier diensten (geen vijfde dienstkaart) */
.zzp-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(28px, 3.4vw, 44px); padding: clamp(22px, 2.6vw, 34px); border: 2px solid var(--goud); }
.zzp-teaser p { font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; max-width: 34ch; }
@media (max-width: 600px) {
  .zzp-teaser .button { width: 100%; }
}
/* Hero (M3, variant C): kop en knoppen links, de Bavo rechts en groot, gevels laag onder de tekst en rechts van de kerk,
   alles op één gouden grondlijn van schermrand tot schermrand; onder de lijn de inscriptie en de naam.
   De tekening is één inline-SVG (docs/logo/skyline.mjs, ingezet met docs/logo/inzetten.mjs), viewBox -430 54 1657 646,
   grondlijn y = 700. Alles rekent in --s: schermpixels per eenheid van de tekening.
   Maatgevend: kerk x 203–970, toren x 450–547, pinakel en westspits vanaf x 225, Vleeshal top y 485, draaipunt klok 486.5 374.5,
   molen x 99–185 met askop 142 570 (de gevels links staan sinds 16 nov 95 verder naar links, de viewBox is 95 breder).
   --rand   linkerrand van de tekstkolom (gelijk aan het logo in de kop)
   --kerk-r schermpositie van de rechterkant van de kerk (x 970): loopt 3cqi voorbij de tekstkolom, dus licht uit beeld
   --s      de kleinste van: de hoogte (alles tot en met de naam in beeld), de breedte (de knoppenrij past links van de
            kerk, x 200, met 12 px lucht) en een maximum
   --f      de kop: hooguit 116 eenheden, en "Ondernemer" (±5,95 em) eindigt minstens 40 px vóór de westspits
   De hero is precies zo hoog als de tekening: op een hoog of smal scherm komt er geen lege ruimte boven. */
.hero { container-type: inline-size; overflow-x: clip; padding-bottom: clamp(28px, 3vw, 44px); }
.hero-buhne {
  --kop: 85px; --boven: 16px; --onder: 108px; --knopbreed: 600px;
  --rand: max(var(--gutter), (100cqi - 1360px) / 2);
  --kerk-r: calc(100cqi - var(--rand) + 3cqi);
  --s: min((100svh - var(--kop) - var(--onder) - var(--boven)) / 646, (var(--kerk-r) - var(--rand) - var(--knopbreed) - 12px) / 770, 1.4px);
  --links: calc(var(--kerk-r) - 1400 * var(--s));
  --f: min(var(--s) * 116, (var(--kerk-r) - 745 * var(--s) - var(--rand) - 40px) / 5.95);
  position: relative;
  height: calc(var(--s) * 646 + var(--boven));
}
/* De tekst staat onderaan: de knoppen net boven het dak van de Vleeshal (y 485). */
.hero-tekst { position: absolute; z-index: 1; left: var(--rand); bottom: calc(var(--s) * 215 + 14px); }
.hero-kop { margin: 0; font-size: var(--f); line-height: .92; letter-spacing: -.045em; text-wrap: initial; hyphens: manual; }
.hero-kop > span { display: block; white-space: nowrap; }
.hero-kop .accent { padding-right: .04em; }
.hero-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(22px, 2.4vw, 32px); }
.hero-knoppen .contact-groep-tekst { align-items: center; min-height: 52px; }
.hero-knoppen .contact-tekst { color: var(--creme); font-weight: 600; text-decoration: underline; text-decoration-color: var(--goud); text-decoration-thickness: 1px; text-underline-offset: .32em; transition: color .2s; }
.hero-knoppen .contact-tekst:hover, .hero-knoppen .contact-tekst:focus-visible { color: var(--goud); }
.hero-knoppen .kopieer-tekst { width: 44px; min-height: 44px; border-color: transparent; color: var(--goud); }
.hero-knoppen .kopieer-tekst:hover, .hero-knoppen .kopieer-tekst:focus-visible { border-color: var(--lijn-groen); }
.hero-beeld { position: absolute; inset: 0; margin: 0; overflow: clip; color: var(--goud); pointer-events: none; }
.hero-beeld svg { position: absolute; bottom: 0; left: var(--links); width: calc(var(--s) * 1657); max-width: none; height: calc(var(--s) * 646); overflow: visible; }
.hero-beeld g { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-beeld path { vector-effect: non-scaling-stroke; }
/* Kerk: tekenstreepje in schermpixels (non-scaling-stroke); 1,5 dekt een schaal tot 1,5. */
.hero-beeld [class^="bavo-"] path { stroke-dasharray: 1.5 1.6; }
/* Lichte ramen: een vlak zonder lijn onder het kozijn (zie inzetten.mjs). */
.hero-beeld .raam-gloed { fill: rgb(201 164 92 / .4); stroke: none; }
/* Onder de lijn: de belofte als inscriptie en de ondertekening, gecentreerd. */
.hero-onder { display: flex; flex-direction: column; align-items: center; padding: clamp(14px, 1.6vw, 20px) var(--gutter) 0; text-align: center; }
.hero-inscriptie { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; font-synthesis: none; font-size: clamp(1.45rem, 2.25vw, 2.25rem); line-height: 1.2; color: var(--creme); text-wrap: balance; }
.hero-inscriptie span { display: inline-block; }
.hero-name { display: flex; align-items: center; gap: .6em; margin-top: .7em; color: var(--goud); font-size: .95rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.hero-name::before { content: ""; width: 1.6em; height: 1px; background: currentColor; }
@media (max-width: 1099px) {
  /* Telefoon en tablet (onder 1100 px past de knoppenrij niet naast een grote kerk): kop en knoppen boven, daaronder
   een uitsnede van dezelfde tekening, gecentreerd op de kerk (midden x 586,5); gevels lopen links en rechts uit beeld. */
  .hero-buhne { --s: min(74cqi / 767, .78px); --links: calc(50% - 1016.5 * var(--s)); display: flex; flex-direction: column; height: auto; }
  .hero-tekst { position: static; padding: clamp(24px, 6vw, 40px) var(--gutter) 0; }
  .hero-kop { font-size: clamp(2.4rem, 12.5cqi, 4.6rem); }
  .hero-beeld { position: relative; inset: auto; height: calc(var(--s) * 646); margin-top: clamp(28px, 8vw, 48px); }
  .hero-beeld g { stroke-width: 1.4; }
}
@media (max-width: 600px) {
  .hero-knoppen { gap: 10px; }
  .hero-knoppen .contact-groep { max-width: 100%; }
}
@keyframes teken-in { from { stroke-dashoffset: 1.55; } }
@keyframes kop-in { from { opacity: .6; transform: translateY(.12em); } }
@keyframes inscriptie-in { from { opacity: 0; transform: translateY(-.35em); } }
@keyframes naam-in { from { opacity: 0; } }
.hero-beeld [class^="skyline-"] { animation: pand-op 450ms var(--ease-uit) both; }
.hero-beeld .skyline-huis-1 { animation-delay: .15s; }
.hero-beeld .skyline-huis-2 { animation-delay: .25s; }
.hero-beeld .skyline-vleeshal { animation-delay: .35s; }
.hero-beeld .skyline-huis-3 { animation-delay: .45s; }
.hero-beeld .skyline-huis-4 { animation-delay: .55s; }
.hero-beeld .skyline-molen { animation-delay: .6s; }
/* Wieken van de molen: na het intekenen van de kerk rustig tegen de klok in (wieken-draai in styles.css), om de askop.
   Met transform-box: view-box rekent transform-origin in eenheden van de tekening (askop 142 570, skyline.mjs MOLEN_AS). */
.hero-beeld .skyline-molen-wieken { transform-box: view-box; transform-origin: 142px 570px; animation: pand-op 450ms var(--ease-uit) .6s both, wieken-draai 14s linear 2.4s infinite; }
.hero-beeld .skyline-huis-5 { animation-delay: .65s; }
.hero-beeld .skyline-huis-6 { animation-delay: .75s; }
.hero-beeld .skyline-huis-7 { animation-delay: .85s; }
.hero-beeld [class^="bavo-"] path { animation: teken-in 1s var(--ease-teken) both; }
.hero-beeld .bavo-zijbeuk path { animation-delay: .9s; }
.hero-beeld .bavo-west path { animation-delay: 1s; }
.hero-beeld .bavo-transeptmuur path { animation-delay: 1.1s; }
.hero-beeld .bavo-transeptgevel path { animation-delay: 1.2s; }
.hero-beeld .bavo-toren path { animation-delay: 1.3s; }
.hero-beeld .raam-gloed { animation: licht-aan 400ms 2.1s ease-out both; }
.hero-kop > span { animation: kop-in 800ms .1s var(--ease-uit) both; }
.hero-inscriptie { animation: inscriptie-in 600ms 1.4s var(--ease-uit) both; }
.hero-name { animation: naam-in 400ms 1.9s ease-out both; }
/* Op de home toont de sitekop alleen het beeldmerk (de kop zegt de naam al); voor schermlezers blijft de naam. */
.pagina-home .site-header .brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Portfolio: de zin uit de oude hero staat nu als lead direct onder de kop. */
.portfolio-lead { margin: calc(-1 * clamp(8px, 1.4vw, 20px)) 0 clamp(20px, 2.6vw, 34px); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.35; letter-spacing: -.012em; font-weight: 500; color: var(--groen); text-wrap: pretty; }
.portfolio-lead span { display: block; }
.sectie-creme .dienst h3, .sectie-creme .role { color: var(--licht-accent); }
.sectie-creme .zzp-teaser { border-color: var(--licht-accent); }
.sectie-creme .portfolio-title, .sectie-diep .portfolio-title { margin-bottom: clamp(24px, 3vw, 40px); }
.sectie-creme .dienst { padding-block: clamp(22px, 2.6vw, 32px); gap: 14px clamp(24px, 3.4vw, 56px); }
.sectie-creme .dienst-herkenning { max-width: 38ch; }
.sectie-creme .dienst-body > p:not(.dienst-herkenning) { max-width: 58ch; }
.sectie-creme .dienst-voor > p { max-width: 38ch; }
.sectie-creme .zzp-teaser { margin-top: clamp(22px, 2.6vw, 32px); }
.sectie-creme .portfolio-foot { padding-top: 22px; }
.sectie-diep .steps { gap: 32px clamp(28px, 3.6vw, 56px); }
.sectie-diep .step p { max-width: 46ch; }
.werkwijze-img { object-position: 50% 8%; }
/* twee hoofden bovenin: ze blijven in beeld */
/* Foto met kader in een splitblok (Oprichter): het kader staat om de foto heen, de foto zelf heeft de verhouding 4:5 en wordt
   alleen onderaan bijgesneden, zodat het hoofd (dicht tegen de bovenrand) heel blijft. */
.splitblok-rechts > .splitblok-foto-kader { grid-column: midden / inhoud-eind; justify-self: end; align-self: center; width: min(100%, 420px); min-height: 0; aspect-ratio: 4 / 5; margin-block: var(--sectie-ruimte); margin-left: clamp(24px, 4vw, 64px); }
.splitblok-foto-kader .oprichter-img { object-position: 50% 0; }
/* "Zo werkt het" in de smalle kolom: de stappen staan onder elkaar, het cijfer links van kop en tekst. */
.splitblok-links .steps { grid-template-columns: 1fr; gap: 24px; }
.splitblok-links .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 32px); align-items: start; padding-top: 20px; }
.splitblok-links .step::before { grid-row: 1 / span 2; margin: 0; min-width: 1ch; font-size: 2.6rem; }
.splitblok-links .step h3, .splitblok-links .step p { grid-column: 2; }
@media (max-width: 900px) {
  .splitblok-rechts > .splitblok-foto-kader { grid-column: inhoud-start / inhoud-eind; justify-self: center; width: min(100%, 420px); margin: clamp(32px, 6vw, 56px) 0 0; aspect-ratio: 4 / 5; max-height: none; }
  .splitblok-rechts > .splitblok-foto-kader .oprichter-img { object-position: 50% 0; }
  .splitblok-links .steps { gap: 20px; }
}
/* Foto bij "Raul als zzp'er" (Portfolio): desktop foto links van de teaser, telefoon foto erboven. */
.zzp-blok { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: calc(2 * var(--kader-lucht) + 20px) clamp(28px, 3.6vw, 52px); align-items: stretch; margin-block: calc(var(--kader-lucht) + clamp(22px, 2.6vw, 32px)) var(--kader-lucht); margin-left: var(--kader-lucht); }
.zzp-blok .zzp-teaser { margin-top: 0; align-content: center; }
.zzp-blok-foto { margin: 0; }
.zzp-blok-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) {
  .zzp-blok { grid-template-columns: minmax(0, 1fr); }
  .zzp-blok-img { aspect-ratio: 4 / 3; object-position: 50% 36%; }
}
/* Foto bij Contact (Nieuwsbrief en contact, groen): naast de kop en de contactregels (desktop), op telefoon eronder. De uitsnede in fotos.json
   zet zijn gezicht in het midden; het kader (outline) heeft de lucht van --kader-lucht nodig. */
.contact-foto { margin: var(--kader-lucht); width: min(100%, 220px); }
.contact-foto-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 901px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  #contact { display: grid; grid-template-columns: max-content auto; justify-content: start; grid-template-rows: auto 1fr; column-gap: clamp(24px, 3vw, 44px); align-items: start; }
  #contact h2 { grid-column: 1; grid-row: 1; }
  #contact .contact-lines { grid-column: 1; grid-row: 2; margin-top: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
  #contact .contact-foto { grid-column: 2; grid-row: 1 / 3; margin: var(--kader-lucht); width: 220px; }
}
@media (max-width: 900px) {
  .contact-foto { margin-top: calc(var(--kader-lucht) + 28px); }
}
