/* ==========================================================
   ai & fotografie. — componenten
   VOICE   eigenzinnig onafhankelijk fotomagazine, droog en zelfzeker
   IDEA    het contactblad: een strook negatieven, één beeld rood aangeduid
   PICTURE grote typografie + filmstrook met handgetekende rode selectie
   COLOUR  wit en zwart, rood als groot vlak en als vetpotloodstreep
   LAYOUT  gestippelde constructielijnen, grote titels, redactioneel grid
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wit);
  color: var(--inkt);
  font: 400 var(--fs-tekst)/1.55 var(--font-tekst);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: .94; letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--rood); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--zwart); color: var(--wit); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- Raster: gestippelde constructielijnen ---------- */
.band { border-bottom: var(--stippel); }
.kader { max-width: var(--max); margin-inline: auto; border-inline: var(--stippel); }
.binnen { padding-inline: var(--rand); }
.mono { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .02em; text-transform: uppercase; line-height: 1.6; }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  font: 600 1.0625rem/1 var(--font-tekst); letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.knop--rood { background: var(--rood); color: var(--wit); }
.knop--rood:hover { background: var(--rood-donker); }
.knop--lijn { border: 1px dashed var(--inkt); color: var(--inkt); background: transparent; }
.knop--lijn:hover { background: var(--inkt); color: var(--wit); border-style: solid; }
.knop .pijl { transition: transform .2s; }
.knop:hover .pijl { transform: translateY(3px); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--wit); border-bottom: var(--stippel); }
.header .kader { border-inline-color: transparent; }
.header__balk { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.06em; text-decoration: none; white-space: nowrap; color: var(--inkt); }
.logo b { color: var(--rood); font-weight: 800; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; }
.nav a { display: inline-block; padding: 8px 0; font-size: 1rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--rood), var(--rood)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.header__extra .knop { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.menuknop { display: none; min-height: 44px; padding: 0 16px; font: 500 var(--fs-label)/1 var(--font-mono); text-transform: uppercase; background: var(--inkt); color: var(--wit); border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero__kop { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); border-bottom: var(--stippel); }
.hero__kicker { margin: 0 0 clamp(16px, 2vw, 28px); color: var(--rood); font-weight: 500; }
.hero h1 { font-size: var(--fs-mega); line-height: .99; letter-spacing: -0.04em; }
.hero h1 .samen { white-space: nowrap; }

.contactblad { position: relative; background: var(--zwart); padding: 14px var(--rand) 18px; }
.contactblad__rand { display: flex; justify-content: space-between; color: #8A8A8A; margin-bottom: 10px; font-size: .72rem; }
.contactblad__rand span:nth-child(2) { color: var(--rood); }
.contactblad__strook { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kader-foto { position: relative; margin: 0; }
.kader-foto .beeld { aspect-ratio: 3 / 2; }
.kader-foto figcaption { margin-top: 6px; color: #8A8A8A; font-size: .72rem; }
.kader-foto--keuze figcaption { color: var(--rood); }
.kader-foto__vak { position: relative; }
.selectie { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.selectie path { fill: none; stroke: var(--rood); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: teken 1.1s .5s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes teken { to { stroke-dashoffset: 0; } }

.hero__voet { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-block: clamp(28px, 3.5vw, 48px); }
.hero__zonder { margin: 0; }
.hero__zonder span { display: block; }
.hero__slot { margin: 0; font: 700 var(--fs-titel)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.hero__actie { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero__scroll { color: var(--donkergrijs); }

/* ---------- Beeldvak (vervangbaar) ---------- */
.beeld {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--lichtgrijs);
}
.beeld video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.beeld:not(:has(img, video))::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font: 400 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--donkergrijs);
}
.contactblad .beeld { background: #2B2B2B; }
.contactblad .kader-foto:nth-child(2n) .beeld { background: #3A3A3A; }
.contactblad .kader-foto:nth-child(3n) .beeld { background: #222; }
.contactblad .beeld:not(:has(img, video))::after { color: #777; }

/* Tweeluik: origineel naast AI-versie */
.beeld__tag { position: absolute; bottom: 12px; left: 12px; padding: 5px 9px; background: var(--wit); color: var(--inkt); font-size: .72rem; line-height: 1; }
.beeld__tag--rechts { left: calc(50% + 12px); background: var(--rood); color: var(--wit); }

/* Voor/na-vergelijking */
.vergelijk { cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.vergelijk img { pointer-events: none; }
.vergelijk .vergelijk__voor { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergelijk__lijn { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--rood); pointer-events: none; }
.vergelijk__greep { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--rood); color: var(--wit); font: 600 1.1rem/1 var(--font-tekst); }
.vergelijk__tag-na { left: auto; right: 12px; background: var(--rood); color: var(--wit); }
.vergelijk__regelaar { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.vergelijk:has(.vergelijk__regelaar:focus-visible) { outline: 3px solid var(--rood); outline-offset: 3px; }

/* ---------- Aanklikbaar beeld + lightbox ---------- */
.beeld--link { cursor: zoom-in; }
.beeld--link:hover img { transform: scale(1.03); }
.beeld--link:focus-visible { outline-offset: 2px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: var(--wit); overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figuur { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 88px 28px; width: 100%; height: 100%; justify-content: center; }
.lightbox__beeld { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; background: #111; }
.lightbox__onderschrift { display: flex; gap: 16px; color: #BDBDBD; text-align: center; }
.lightbox__teller { color: var(--rood); }
.lightbox__knop { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px dashed #777; background: transparent; color: var(--wit); font: 400 1.5rem/1 var(--font-tekst); cursor: pointer; }
.lightbox__knop:hover { background: var(--rood); border: 1px solid var(--rood); }
.lightbox__vorige { left: 16px; }
.lightbox__volgende { right: 16px; }
.lightbox__sluit { position: absolute; top: 12px; right: 16px; min-height: 44px; padding: 0 14px; background: transparent; color: var(--wit); border: 1px dashed #777; cursor: pointer; }
.lightbox__sluit:hover { background: var(--wit); color: var(--zwart); }
@media (max-width: 600px) {
  .lightbox__figuur { padding: 64px 12px 96px; }
  .lightbox__beeld { max-height: calc(100dvh - 200px); }
  .lightbox__onderschrift { flex-direction: column; gap: 4px; }
  .lightbox__knop { top: auto; bottom: 20px; transform: none; width: 64px; height: 52px; }
  .lightbox__vorige { left: calc(50% - 72px); }
  .lightbox__volgende { right: calc(50% - 72px); }
}

/* ---------- Introductie: rood vlak + grijs paneel ---------- */
.intro__raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.intro__rood { background: var(--rood); color: var(--wit); padding: clamp(40px, 6vw, 88px) var(--rand); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.intro__rood h2 { font-size: var(--fs-groot); }
.intro__rood .mono { opacity: .85; }
.intro__grijs { background: var(--lichtgrijs); padding: clamp(40px, 6vw, 88px) var(--rand); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.intro__grijs p { font-size: var(--fs-lead); line-height: 1.45; max-width: 34ch; }
.intro__slot { margin: 0; padding-top: 24px; border-top: 2px solid var(--inkt); font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.02 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }

/* ---------- Ontdek: redactioneel grid ---------- */
.sectiekop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-block: var(--ruimte) clamp(28px, 3vw, 44px); }
.sectiekop h2 { font-size: var(--fs-groot); }
.sectiekop .mono { color: var(--donkergrijs); text-align: right; }

.rubrieken { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--stippel); }
.rubriek { padding: clamp(18px, 2vw, 28px) var(--rand) clamp(28px, 3vw, 44px); border-bottom: var(--stippel); border-right: var(--stippel); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: calc(var(--header-h) + 8px); }
.rubriek:nth-child(3n), .rubriek--breed { border-right: 0; }
.rubriek--groot { grid-column: span 2; border-right: var(--stippel); }
.rubriek--groot + .rubriek { border-right: 0; }
.rubriek--groot .beeld { aspect-ratio: 16 / 9; }
.rubriek--breed { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 3vw, 48px); border-bottom: 0; }
.rubriek--breed .beeld { aspect-ratio: 21 / 9; }
@media (min-width: 861px) { .rubriek:nth-child(3) { border-right: var(--stippel); } .rubriek:nth-child(5) { border-right: 0; } }
.rubriek__nr { color: var(--rood); font-weight: 500; }
.rubriek h3 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); margin: 6px 0 12px; }
.rubriek--groot h3, .rubriek--breed h3 { font-size: clamp(2rem, 3.6vw, 3.6rem); }
.rubriek p { margin: 0; max-width: 40ch; color: #2A2A2A; font-size: 1.05rem; }
.rubriek__tekst { display: flex; flex-direction: column; }
.rubriek__meer { margin-top: 18px; }


/* ---------- Het experiment ---------- */
.experiment { padding-block: var(--ruimte); }
.experiment__raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.experiment h2 { font-size: var(--fs-groot); }
.experiment__tekst { padding-top: 8px; }
.experiment__tekst p { font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.experiment__vraag { margin: 1.2em 0; color: var(--rood); font: 800 clamp(1.6rem, 2.8vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }
.gesprek { margin-top: clamp(40px, 5vw, 72px); background: var(--zwart); color: var(--wit); padding: clamp(22px, 3vw, 36px); grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.gesprek .mono { color: #9A9A9A; margin: 0; }
.gesprek ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gesprek li { font: 400 1rem/1.5 var(--font-mono); padding-left: 1.6em; text-indent: -1.6em; }
.gesprek li::before { content: "> "; color: var(--rood); font-weight: 500; }

/* ---------- Paginakop (subpagina's) ---------- */
.paginakop { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 3.5vw, 48px); }
.paginakop h1 { font-size: var(--fs-groot); }

/* ---------- Contact: rood vlak + formulier ---------- */
.contact__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.contact__rood { background: var(--rood); color: var(--wit); padding: clamp(32px, 5vw, 72px) var(--rand); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.contact__rood h1 { font-size: var(--fs-groot); margin-top: 16px; }
.contact__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 30ch; }
.contact__noot { margin: 0; opacity: .85; }
.contact__formvak { padding: clamp(32px, 5vw, 72px) var(--rand); background: var(--wit); }

.formulier { display: grid; gap: 22px; max-width: 640px; }
.formulier__honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.veld { display: grid; gap: 8px; }
.veld label { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--inkt); }
.veld__verplicht { color: var(--rood); }
.veld input, .veld select, .veld textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; margin: 0;
  font: 400 1rem/1.4 var(--font-tekst); color: var(--inkt);
  background: var(--wit); border: 1px solid var(--inkt); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.veld textarea { min-height: 180px; resize: vertical; }
.veld input::placeholder, .veld textarea::placeholder { color: #8A8A8A; opacity: 1; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--rood); box-shadow: inset 0 0 0 1px var(--rood); }
.veld__keuze { position: relative; }
.veld__keuze::after { content: "↓"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-weight: 600; }
.veld select { padding-right: 44px; cursor: pointer; }
.veld select:invalid { color: #8A8A8A; }
.veld select option { color: var(--inkt); }
.veld [aria-invalid] { border-color: var(--rood); border-width: 2px; padding: 12px 15px; }
.veld__fout { margin: 0; min-height: 0; color: var(--rood); font-size: .9rem; font-weight: 500; }
.veld__fout:empty { display: none; }
.formulier__privacy { margin: 4px 0 0; font-size: .875rem; line-height: 1.55; color: var(--donkergrijs); max-width: 60ch; }
.formulier__knop { width: 100%; justify-content: center; min-height: 56px; cursor: pointer; }
.formulier__knop:disabled { opacity: .6; cursor: progress; }
.formulier__knop:hover .pijl { transform: translateX(4px); }
.formulier__legende { margin: -8px 0 0; color: var(--donkergrijs); font-size: .72rem; }
.knop--zwart { background: var(--zwart); color: var(--wit); border: 0; }
.knop--zwart:hover { background: var(--rood); }

/* Bedankt */
.bedankt__tekst { display: flex; flex-direction: column; justify-content: center; }
.bedankt__tekst p { max-width: 42ch; }
.bedankt__knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

@media (max-width: 860px) {
  .contact__raster { grid-template-columns: minmax(0, 1fr); }
  .contact__rood { gap: 24px; }
  .formulier { max-width: none; }
}
@media (max-width: 600px) {
  .bedankt__knoppen .knop { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--zwart); color: var(--wit); }
.footer .kader { border-inline-color: #444; }
.footer__logo { margin: 0; padding-block: 36px 24px; font: 700 1.45rem/1 var(--font-display); letter-spacing: -0.04em; border-bottom: 1px solid #333; }
.footer__logo b { color: var(--rood); font-weight: 800; }
.footer__raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding-block: 24px 36px; }
.footer__raster h2 { font: 400 .72rem/1.5 var(--font-tekst); letter-spacing: .04em; color: #8A8A8A; margin-bottom: 2px; text-transform: uppercase; }
.footer__raster p { margin: 0; font-size: .875rem; line-height: 1.6; }
.footer__raster a { text-decoration: none; }
.footer__raster a:hover { text-decoration: underline; text-decoration-color: var(--rood); text-underline-offset: 3px; }
.footer__raster a:hover { color: var(--rood); }
.footer__binnenkort { color: #8A8A8A; }

/* ---------- Responsief ---------- */
@media (max-width: 1080px) {
  .header__balk { grid-template-columns: auto 1fr auto; }
  .header__extra { display: none; }
  .nav ul { justify-content: flex-end; gap: 4px 20px; }
  .hero__voet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__actie { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 860px) {
  .menuknop { display: inline-flex; align-items: center; justify-self: end; }
  .header__balk { grid-template-columns: auto 1fr; }
  .nav { grid-column: 1 / -1; display: none; padding-bottom: 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: var(--stippel); }
  .nav a { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
  .intro__raster, .experiment__raster { grid-template-columns: minmax(0, 1fr); }
  .rubrieken { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubriek, .rubriek:nth-child(3n) { border-right: var(--stippel); }
  .rubriek:nth-child(odd) { border-right: var(--stippel); }
  .rubriek:nth-child(even) { border-right: 0; }
  .rubriek--groot { grid-column: 1 / -1; border-right: 0 !important; }
  .rubriek--groot + .rubriek { border-right: var(--stippel); }
  .rubriek--breed { grid-template-columns: minmax(0, 1fr); border-right: 0 !important; }
  .gesprek { grid-template-columns: minmax(0, 1fr); }
  .footer__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .logo { font-size: 1.35rem; }
  .hero h1 { font-size: clamp(2.6rem, 13.5vw, 4.5rem); }
  .hero h1 .samen { white-space: normal; }
  .hero__voet { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__actie { flex-direction: column; align-items: stretch; }
  .hero__actie .knop { justify-content: center; }
  .hero__scroll { display: none; }
  .contactblad__strook { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .contactblad .kader-foto:nth-child(2), .contactblad .kader-foto:nth-child(4) { display: none; }
  .contactblad__rand span:nth-child(2), .kader-foto figcaption .nr { display: none; }
  .contactblad .beeld:not(:has(img, video))::after { display: none; }
  .sectiekop { grid-template-columns: minmax(0, 1fr); }
  .sectiekop .mono { text-align: left; }
  .rubrieken { grid-template-columns: minmax(0, 1fr); }
  .rubriek, .rubriek:nth-child(n) { border-right: 0 !important; grid-column: auto; }
  .rubriek--breed { grid-column: auto; }
  .footer__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .selectie path { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
