/* =========================================================
   ShinoDuck.Pictures — fotografie portfolio (alleen dark mode)
   ========================================================= */

:root {
  --bg: #0c0c0b;
  --bg-2: #151513;
  --bg-3: #1d1c1a;
  --fg: #f3efe7;
  --muted: #b9b2a6;
  --line: rgba(243, 239, 231, 0.14);
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Ruimte voor de schuifbalk altijd vrijhouden. Een nieuwe pagina is heel even leeg/kort
     (zonder schuifbalk); anders schiet het gordijn met de naam 7–8 px opzij bij het wisselen. */
  scrollbar-gutter: stable;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 2px; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

.label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* Woord-animatie */
.line { display: block; }
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.word, .char { display: inline-block; }
/* Tekst die bij het laden beweegt: vaste eigen laag, zodat de browser aan het eind
   van de animatie niet omschakelt (dan worden letters opnieuw getekend en verspringen ze) */
.hero-title, .hero-title .char, .p-title .word, .hero-fade, .header { will-change: transform; }

/* Links & knoppen */
.link {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.6s var(--ease);
}
.link:hover::after { animation: underline 0.8s var(--ease); }
@keyframes underline {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }


/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform 0.6s var(--ease), background-color 0.4s, backdrop-filter 0.4s;
}
/* Zachte donkere verloop achter de header, zodat logo en menu altijd leesbaar zijn boven foto's */
.header::before {
  content: '';
  position: absolute;
  inset: 0 0 -36px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 12, 11, 0.9) 0%, rgba(12, 12, 11, 0.6) 55%, rgba(12, 12, 11, 0) 100%);
  transition: opacity 0.4s;
}
.header.is-scrolled::before, .menu-open .header::before { opacity: 0; }
.header.is-scrolled {
  background-color: rgba(12, 12, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* Lichte modus (telefoons/oudere apparaten): geen dure blur */
.lite .header.is-scrolled { background-color: rgba(12, 12, 11, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .hero-photo-inner { box-shadow: none; }
.lite .hero-photo { will-change: auto; }
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { background-color: transparent; backdrop-filter: none; transform: none; }

.logo { font-family: var(--serif); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--muted); font-style: italic; transition: color 0.4s; }
.logo:hover span { color: var(--fg); }

/* =========================================================
   Pagina-overgang (gordijn)
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  pointer-events: none;
  /* Het gordijn schuift (niet uitrekken), zodat de tekst erop scherp en onvervormd blijft */
  transform: translateY(100%);
  will-change: transform;
}
.pt-in .page-transition { transform: none; }
.page-transition span {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  opacity: 0;
  visibility: hidden;
}
.pt-in .page-transition span { opacity: 1; visibility: visible; }
.page-transition em { color: var(--muted); }

/* Projecttitel schuift iets op bij hover */
.project-title a { display: inline-block; transition: transform 0.7s var(--ease), color 0.4s; }
.project:hover .project-title a { transform: translateX(14px); }

.header-right { display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.9rem; color: var(--muted); transition: color 0.3s; }
.nav a:hover { color: var(--fg); }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.menu-btn { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; }
.menu-btn span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.5s var(--ease);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--pad);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 12vw, 4rem);
  line-height: 1.15;
  transform: translateY(20px);
  transition: transform 0.7s var(--ease);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a { transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.12s; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero::after {
  /* zachte vignet zodat de titel altijd leesbaar blijft */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(12, 12, 11, 0.85) 0%, rgba(12, 12, 11, 0.4) 55%, rgba(12, 12, 11, 0) 100%);
}
.hero-photos { position: absolute; inset: 0; pointer-events: none; }
.hero-photo {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1vw);
  will-change: transform, opacity;
}
.hero-photo-inner {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.hero-photo img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--pad);
  text-align: center;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-sub { max-width: 460px; margin: 26px auto 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll i { position: relative; width: 1px; height: 42px; background: var(--line); overflow: hidden; }
.hero-scroll i::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--fg);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* =========================================================
   Intro
   ========================================================= */
.intro { padding-block: clamp(90px, 14vw, 190px); }
.intro-text {
  max-width: 1150px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

/* =========================================================
   Secties algemeen
   ========================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Afbeeldingsframes met parallax */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.img-frame .zoom {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
}
.img-frame img {
  position: absolute;
  left: 0;
  top: -4%;
  width: 100%;
  height: 108%; /* klein beetje extra voor de parallax, zo min mogelijk bijsnijden */
  object-fit: cover;
}

/* =========================================================
   Werk
   ========================================================= */
.work { padding-bottom: clamp(60px, 10vw, 140px); }

.project { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }

.project-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}
.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1;
}
.project-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 30px;
}
.project-desc { max-width: 540px; color: var(--muted); }
.project-meta { display: flex; gap: 18px; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

/* Twee foto's in staande verhouding (zoals de meeste foto's), zodat er weinig wordt
   weggesneden. Om en om links/rechts uitgelijnd voor een rustig ritme. */
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 940px;
}
.project:nth-child(even) .project-images { margin-left: auto; }
.project-dots { display: none; } /* alleen op de telefoon */

/* Kop "Foto Galerij" als link, met pijl die bij hover opschuift */
.h2-link { display: inline-flex; align-items: baseline; gap: 0.3em; }
.h2-arrow {
  font-family: var(--sans);
  font-size: 0.45em;
  color: var(--muted);
  transform: translateY(-0.25em);
  transition: transform 0.6s var(--ease), color 0.4s;
}
.h2-link:hover .h2-arrow { color: var(--fg); transform: translate(0.3em, -0.25em); }
.project-images .img-frame { display: block; width: 100%; aspect-ratio: 4 / 5; cursor: pointer; }
.project-images .img-frame:hover .zoom { transform: scale(1.035); }

/* =========================================================
   Over
   ========================================================= */
.about { padding-block: clamp(60px, 10vw, 140px); }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.about-img { aspect-ratio: 4 / 5; }
.about-caption { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.about-body .h2 { margin: 14px 0 30px; }
.about-body p { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.about-body p + p { margin-top: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
/* Feitenblok (Over mij): tekst i.p.v. cijfers, dus iets kleiner en met afbreken.
   Label staat in de HTML eerst (dt vóór dd), maar wordt onder de waarde getoond. */
.facts > div { display: flex; flex-direction: column; min-width: 0; }
.facts .stat-num { order: -1; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; overflow-wrap: break-word; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts > div:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   Diensten
   ========================================================= */
.services { padding-block: clamp(60px, 10vw, 140px); }
.services-list { border-bottom: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 20px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.service-num { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  transition: transform 0.6s var(--ease);
}
.service-text { color: var(--muted); max-width: 420px; }
.service:hover .service-title { transform: translateX(12px); }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding-top: clamp(90px, 14vw, 180px); padding-bottom: 28px; }
.footer-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Onder de titel: tekst links en contactrijen rechts, beide vanaf dezelfde lijn */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-text { max-width: 44ch; color: var(--muted); }
.footer-info .footer-contact { margin-top: clamp(32px, 4vw, 48px); padding-top: 4px; border-top: 1px solid var(--line); }
.footer-info .footer-contact li:first-child > * { padding-top: 20px; }

/* Contactformulier: alleen lijnen onder de velden, net als de contactrijen */
.cform { display: grid; gap: 26px; }
.cform-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.cfield { display: grid; gap: 6px; }
.cfield .label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.cfield input,
.cfield textarea {
  width: 100%;
  padding: 8px 0 12px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.35s var(--ease);
}
.cfield textarea { resize: vertical; min-height: 7.5em; line-height: 1.55; }
.cfield input::placeholder,
.cfield textarea::placeholder { color: var(--muted); opacity: 0.5; }
.cfield input:hover,
.cfield textarea:hover { border-color: rgba(243, 239, 231, 0.32); }
.cfield input:focus,
.cfield textarea:focus { border-color: var(--fg); }
.cfield.is-invalid input,
.cfield.is-invalid textarea { border-color: #d98b74; }
.cfield input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 100px var(--bg) inset; caret-color: var(--fg); }
.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.cform-send { gap: 0.5em; }
/* Laadlijntje tijdens versturen: dun streepje dat heen en weer schuift over een lijn */
.cform-progress {
  position: relative;
  height: 2px;
  margin-top: -27px; /* bovenkant precies op de onderlijn van het berichtveld (rij-afstand 26px + lijn) */
  margin-bottom: -1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cform-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: var(--fg);
  animation: cformSlide 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  animation-play-state: paused;
}
.cform.is-sending .cform-progress { opacity: 1; }
.cform.is-sending .cform-progress span { animation-play-state: running; }
/* gelukt: het streepje loopt over de hele breedte vol */
.cform.is-done .cform-progress { opacity: 1; }
.cform.is-done .cform-progress span { animation: none; transform: none; width: 100%; transition: width 0.5s var(--ease); }

/* Na versturen: formulier vervaagt, op dezelfde plek verschijnt het bedankje
   (beide in dezelfde rastercel, dus de pagina springt niet) */
.footer-form { display: grid; }
.cform, .cthanks { grid-area: 1 / 1; }
.cform { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.footer-form.is-sent .cform { opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s 0.6s; }
.cthanks {
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s;
}
.footer-form.is-sent .cthanks { opacity: 1; visibility: visible; transform: none; transition: opacity 0.8s var(--ease) 0.25s, transform 0.8s var(--ease) 0.25s, visibility 0s; }
.cthanks-title {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  outline: none;
}
.cthanks-text { color: var(--muted); font-size: 1.05rem; }
.cthanks-again { margin-top: 26px; font-size: 0.92rem; }
@keyframes cformSlide {
  from { transform: translateX(0); }
  to { transform: translateX(257%); } /* 100% / 28% − 100% → precies tot de rechterrand */
}
@media (prefers-reduced-motion: reduce) {
  .cform-progress span { width: 100%; animation: cformPulse 1.6s ease-in-out infinite alternate; }
  @keyframes cformPulse { from { opacity: 0.25; } to { opacity: 1; } }
}
.cform-send[disabled] { opacity: 0.5; pointer-events: none; }
.cform-status { flex: 1 1 220px; font-size: 0.92rem; color: var(--muted); }
.cform-status.is-ok { color: var(--fg); }
.cform-status.is-error { color: #d98b74; }
@media (max-width: 480px) {
  .cform-row { grid-template-columns: 1fr; }
}

/* Contactgegevens: rijen met een dunne lijn ertussen */
.footer-contact li:first-child > * { padding-top: 0; }
.footer-contact li:last-child > * { border-bottom: 0; padding-bottom: 0; }
.footer-contact li > * {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.footer-val { font-size: 1.05rem; overflow-wrap: anywhere; }
.footer-arrow { color: var(--muted); transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.footer-contact a:hover .footer-arrow,
.footer-contact a:focus-visible .footer-arrow { transform: translate(3px, -3px); color: var(--fg); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-contact { border-top: 1px solid var(--line); }
  .footer-contact li:first-child > * { padding-top: 18px; }
}
@media (max-width: 480px) {
  .footer-contact li > * { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 16px 0; }
  .footer-contact .label { grid-column: 1 / -1; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(70px, 10vw, 130px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.to-top:hover { color: var(--fg); }

/* =========================================================
   Projectpagina
   ========================================================= */
.p-hero { padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(36px, 5vw, 60px); }
.p-hero > .label { display: block; }
.nav a[aria-current="page"] { color: var(--fg); }
.p-back { display: inline-flex; gap: 8px; font-size: 0.88rem; color: var(--muted); transition: color 0.3s; }
.p-back:hover { color: var(--fg); }
.p-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.p-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px)) 1fr;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.p-meta dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.p-meta dd { margin-top: 6px; }
.p-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 100px);
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.p-lead { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.15; }
.p-body { color: var(--muted); font-size: 1.05rem; align-self: end; max-width: 560px; }

/* Galerij: foto's in hun eigen verhouding, niet bijgesneden */
.p-gallery {
  --g-gap: clamp(8px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  gap: var(--g-gap);
  max-width: 1280px;
  margin-inline: auto;
}
.g-row { display: flex; gap: var(--g-gap); }
.g-item {
  display: block;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2); /* vaste plek met de juiste maat zolang de foto laadt */
  cursor: pointer;
}
.g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease), filter 0.4s;
}
.g-item img.is-loaded { opacity: 1; transform: none; }
.g-item:hover img.is-loaded { filter: brightness(0.85); }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* =========================================================
   Werkpagina
   ========================================================= */
.w-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 40px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.w-intro p { max-width: 520px; color: var(--muted); }
.w-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px);
}
.w-img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  aspect-ratio: 4 / 5;
}
.w-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity 0.5s; }
.w-card:hover .w-img img { transform: scale(1.04); }
.w-grid:hover .w-card:not(:hover) .w-img img { opacity: 0.55; }
.w-meta { margin-top: 16px; }
.w-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.05; }
.w-sub { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }

.work-more { display: flex; justify-content: center; padding-top: clamp(24px, 4vw, 48px); }

/* =========================================================
   Lightbox
   ========================================================= */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #080807;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad);
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}
.lb-bar > * { pointer-events: auto; }
.lb-count { font-variant-numeric: tabular-nums; }
.lb-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.6);
  color: var(--fg);
  transition: background 0.3s, color 0.3s;
}
.lb-close i { font-style: normal; font-size: 1.2rem; line-height: 1; }
.lb-close:hover { background: var(--fg); color: var(--bg); }
.lb-scroll {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}
.lb-scroll::-webkit-scrollbar { display: none; }
.lb-item {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 70px calc(var(--pad) + 64px) 100px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Pijlen links en rechts van de foto */
.lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(243, 239, 231, 0.7);
  border-radius: 50%;
  background: rgba(12, 12, 11, 0.35);
  color: var(--fg);
  transition: background 0.3s, color 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
.lb-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: var(--pad); }
.lb-next { right: var(--pad); }
.lb-arrow:hover { background: var(--fg); color: var(--bg); }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-arrow:disabled { opacity: 0; pointer-events: none; }
.lb-item img {
  /* hele foto altijd zichtbaar, met ademruimte boven (balk) en onder */
  max-width: calc(100vw - 2 * (var(--pad) + 64px));
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  cursor: default;
}
.p-next {
  display: block;
  margin-top: clamp(90px, 12vw, 160px);
  padding-block: clamp(40px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.p-next-title {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  transition: transform 0.7s var(--ease);
}
.p-next:hover .p-next-title { transform: translateX(16px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 520px; }
  .p-text { grid-template-columns: 1fr; }
  .p-meta { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-right { gap: 12px; }
  .logo { font-size: 1.4rem; }

  /* staand scherm: eigen posities (--mx/--my) zodat de foto's boven, onder en aan de zijkanten liggen */
  .hero-photo {
    left: calc(var(--mx, var(--x)) * 1%);
    top: calc(var(--my, var(--y)) * 1%);
    width: calc(var(--w) * 2.1vw);
  }
  .hero-photo.hide-sm { display: none; }
  .hero::after {
    background: radial-gradient(ellipse 85% 40% at 50% 50%, rgba(12, 12, 11, 0.9) 0%, rgba(12, 12, 11, 0.5) 60%, rgba(12, 12, 11, 0.1) 100%);
  }

  .project-top { grid-template-columns: 1fr; gap: 6px; }
  .project-top .link { display: none; }
  .project-info { grid-template-columns: 1fr; gap: 10px; }
  .project-desc { grid-column: 1; }
  /* Telefoon: foto's naast elkaar om doorheen te swipen. De volgende foto steekt
     een stukje in beeld uit, zodat je ziet dat er meer is. */
  .project-images,
  .project:nth-child(even) .project-images {
    display: flex;
    gap: 10px;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-right: calc(-1 * var(--pad));
    padding-right: var(--pad);
  }
  .project-images::-webkit-scrollbar { display: none; }
  .project-images .img-frame { flex: 0 0 84%; scroll-snap-align: start; }

  /* Bolletjes onder de foto's */
  .project-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .project-dots span {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: rgba(243, 239, 231, 0.3);
    transition: width 0.4s var(--ease), background 0.4s;
  }
  .project-dots span.is-active { width: 22px; background: var(--fg); }

  .service { grid-template-columns: 40px 1fr; }
  .service-text { grid-column: 2; }

  .stats { gap: 12px; }
  .lb-hint { display: none; }
  .lb-item { padding: 64px 10px 90px; }
  .lb-item img { max-width: calc(100vw - 20px); max-height: calc(100svh - 160px); }
  /* op telefoon: kleinere pijlen over de rand van de foto */
  .lb-arrow { width: 40px; height: 40px; margin-top: -20px; background: rgba(12, 12, 11, 0.55); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .p-meta { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
