/* Marcel Bakker Photography — styles
   Colours, fonts and sizes are gathered at the top so they are easy to tweak.
   Light theme is the default; "Theme: dark" in settings.js switches to dark. */
:root {
  --bg: #f4f1ec;
  --bg-2: #e8e3db;
  --text: #1c1b18;
  --muted: #6e685f;
  --line: rgba(28, 27, 24, .13);
  --accent: #b4532a;            /* warm Siena earth — change in settings.js with Accent-color */
  --shade: 244, 241, 236;       /* rgb of --bg, used for overlays */
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;     /* text, menu, headings */
  --serif: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;    /* (kept for compatibility) */
  --title: 'Nunito', 'Helvetica Neue', Arial, sans-serif;        /* site name in the header */
  --cover: 'Figtree', 'Helvetica Neue', Arial, sans-serif;       /* welcome page */
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 92px;
}
:root[data-theme="dark"] {
  --bg: #0e0e0d; --bg-2: #171715; --text: #ebe6dd; --muted: #8f897f;
  --line: rgba(235, 230, 221, .14); --accent: #d0784c; --shade: 14, 14, 13;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  opacity: 0; transition: opacity .6s var(--ease);
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: .35s; }
body.menu-open, body.lb-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kicker {
  margin: 0 0 18px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.kicker .sep { width: 28px; height: 1px; background: currentColor; opacity: .6; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Text that slides up out of a mask */
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .mask > span { transform: none; }
.mask:nth-child(2) > span { transition-delay: .12s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Film grain */
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ================= Header ================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  color: #f4efe6; transition: background .5s var(--ease), color .5s, height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent); transition: opacity .5s;
}
.site-header.is-solid {
  --header-h: 72px; color: var(--text); border-bottom-color: var(--line);
  background: rgba(var(--shade), .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.is-solid::before { opacity: 0; }
.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  position: relative; text-decoration: none; font: 400 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 0; opacity: .78; transition: opacity .3s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav > a.active::after, .has-sub > a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav .active { color: inherit; }
.caret { display: inline-block; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg) translateY(-3px); margin-left: 9px; }
.has-sub { position: relative; }
.has-sub .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub .sub {
  position: absolute; top: calc(100% + 6px); left: -22px; min-width: 230px; padding: 14px 22px 18px;
  background: rgba(var(--shade), .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); color: var(--text);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub .sub a { align-self: flex-start; font: 300 15px/1.4 var(--sans); letter-spacing: .02em; text-transform: none; opacity: .75; padding: 6px 0; }
.has-sub .sub a:hover, .has-sub .sub a.active { opacity: 1; }
.has-sub .sub a.active { color: var(--accent); }
.site-title { font: 300 26px/1 var(--title); letter-spacing: 2px; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; }

/* Full-screen menu (small screens) */
.menu-overlay {
  position: fixed; inset: 0; z-index: 35; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--pad) 36px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; overflow-y: auto;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu-overlay nav > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms + .1s); }
.menu-open .menu-overlay nav > * { opacity: 1; transform: none; }
.menu-overlay nav a { font: 300 clamp(26px, 7vw, 36px)/1.35 var(--sans); text-decoration: none; }
.menu-overlay .menu-sub { font-size: clamp(18px, 5vw, 22px); padding-left: 20px; color: var(--muted); }
.menu-overlay .menu-label { font: 500 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.menu-contact { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); margin-top: 40px; }
.menu-contact a { text-decoration: none; }
.menu-contact .social { margin-top: 14px; }

.site-main { min-height: 60vh; }

/* ================= Social icons ================= */
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: inherit; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }

/* ================= Footer ================= */
.site-footer { padding: clamp(60px, 8vw, 110px) var(--pad) 10px; border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 110px); }
.footer-cta { margin-bottom: clamp(44px, 6vw, 80px); }
.footer-mail {
  display: inline-block; font: 200 clamp(24px, 3.4vw, 46px)/1.2 var(--sans); text-decoration: none; letter-spacing: 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .7s var(--ease), color .4s;
  padding-bottom: 6px; word-break: break-word;
}
.footer-mail:hover { background-size: 100% 2px; color: var(--accent); }
.footer-phone { margin-top: 12px; font-size: 16px; color: var(--muted); }
.footer-phone a { text-decoration: none; }
/* Small banner, always visible at the bottom of every page (not on the welcome page or the full-screen photo) */
.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: 52px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font-size: 12.5px; color: var(--muted);
  background: rgba(var(--shade), .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.footer-bar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-bar .social { justify-self: center; gap: 8px; }
.footer-bar .social a { width: 34px; height: 34px; }
.footer-bar .social svg { width: 18px; height: 18px; }
.footer-bar .to-top { justify-self: end; white-space: nowrap; }
body:not(.page-home) { padding-bottom: 52px; }        /* room for the banner */
body.menu-open .footer-bar { display: none; }
.to-top { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.to-top:hover { color: var(--text); }

/* ================= Welcome page ================= */
.page-home { background: #000; }
.cover { position: fixed; inset: 0; overflow: hidden; color: #f6f1e8; background: #0b0b0a; font-family: var(--cover); }
.cover-slides, .slide, .cover-shade { position: absolute; inset: 0; }
.slide {
  background: center / cover no-repeat; opacity: 0; transform: scale(1.03); z-index: 0;
  transition: opacity 1.8s cubic-bezier(.45, 0, .25, 1); transform-origin: var(--ox, 50%) var(--oy, 50%);
  will-change: opacity, transform; backface-visibility: hidden;
}
/* the new photo fades in on top; the previous one stays fully visible underneath and keeps its slow zoom */
.slide.is-active { opacity: 1; z-index: 2; animation: kenburns calc(var(--slide, 3.5s) + 3s) linear forwards; }
.slide.was-active { opacity: 1; z-index: 1; transition: none; animation: kenburns calc(var(--slide, 3.5s) + 3s) linear forwards; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.cover-shade {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.12) 0%, rgba(0,0,0,.5) 100%),
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55));
}
.cover-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; text-align: center; padding: 38px var(--pad) 30px;
}
.cover-welcome {
  margin: 0; display: flex; align-items: center; gap: 18px;
  font: 400 clamp(16px, 1.7vw, 24px)/1 var(--cover); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(-10px); transition: opacity 1.2s .3s var(--ease), transform 1.2s .3s var(--ease);
}
.is-ready .cover-welcome { opacity: .9; transform: none; }
.cover-welcome .rule { width: 46px; height: 1px; background: currentColor; opacity: .7; }
.cover-middle { display: flex; flex-direction: column; align-items: center; margin-top: auto; margin-bottom: clamp(10px, 2.5vh, 30px); }   /* name and text in the lower third */
.cover-title {
  margin: 0 0 14px; font: 500 clamp(36px, 5vw, 72px)/1.04 var(--cover); letter-spacing: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.25);
}
.cover-title em { font-style: italic; font-weight: 300; }
.cover-contact {
  margin: 0 0 22px; font: 400 clamp(15px, 1.3vw, 19px)/1.6 var(--cover); letter-spacing: .02em; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0; transition: opacity 1.2s .7s var(--ease);
}
.is-ready .cover-contact { opacity: .92; }
.cover-contact a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.cover-contact a:hover { background-size: 0 1px; background-position: 100% 100%; }
.cover-contact .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.cover-button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px 18px 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  text-decoration: none; font: 500 15px/1 var(--cover); letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translateY(14px); transition: opacity 1.2s .9s var(--ease), transform 1.2s .9s var(--ease), color .45s, border-color .45s;
}
.is-ready .cover-button { opacity: 1; transform: none; }
.cover-button::before { content: ''; position: absolute; inset: 0; background: #f6f1e8; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.cover-button { z-index: 0; }
.cover-button:hover { color: #111; border-color: #f6f1e8; }
.cover-button:hover::before { transform: none; }
.cover-button svg { width: 20px; height: 20px; transition: transform .45s var(--ease); }
.cover-button:hover svg { transform: translateX(5px); }
.cover-bottom { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; opacity: 0; transition: opacity 1.2s 1.1s; }
.is-ready .cover-bottom { opacity: 1; }
.cover-count { justify-self: start; font: 400 13px var(--sans); letter-spacing: .14em; opacity: .8; }
.cover-count b { font: 500 18px var(--cover); letter-spacing: 0; margin-right: 2px; }
.cover-progress { display: flex; gap: 6px; }
.seg { width: 34px; height: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.seg i { display: block; height: 2px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.seg i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.seg.done i::after { transform: scaleX(1); }
.seg.is-active i::after { animation: fill var(--slide, 5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.social--cover { justify-self: end; }
.social--cover a { border-color: rgba(255,255,255,.45); }
.social--cover a:hover { background: #f6f1e8; color: #111; border-color: #f6f1e8; }

/* ================= Page head (Portraits) ================= */
.page-head { padding: calc(var(--header-h) + clamp(36px, 5vw, 70px)) var(--pad) clamp(28px, 3.5vw, 46px); position: relative; }
.page-title { margin: 0; font: 200 clamp(38px, 5.2vw, 72px)/1.1 var(--sans); letter-spacing: 0; }
.page-count { position: absolute; right: var(--pad); bottom: clamp(32px, 4vw, 52px); margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.page-count .num { font: 300 22px/1 var(--sans); color: var(--text); letter-spacing: 0; margin-right: 4px; vertical-align: -2px; }
.page-intro { max-width: 640px; margin: 20px 0 0; font: 300 17px/1.6 var(--sans); color: var(--muted); }
.empty { padding: 0 var(--pad); color: var(--muted); }

/* ================= Portraits overview: whole photos, irregular grid ================= */
.tile-grid.is-masonry { display: block; position: relative; padding-bottom: 0; margin-bottom: 40px; }
.tile-grid.is-masonry .tile { position: absolute; }
.tile-grid.is-masonry .tile .tile-img { position: relative; inset: auto; aspect-ratio: auto; }
.tile-grid.is-masonry .tile .tile-img img { width: 100%; height: 100%; object-fit: cover; }

/* (older layout, not used) */
.tile-flow { padding: 0 var(--pad) 40px; display: flex; flex-direction: column; gap: clamp(26px, 4.5vw, 70px); }
.tile-row { display: flex; }
.tile-row .tile { min-width: 0; }
.tile-row .tile-img { aspect-ratio: auto; }
.tile-row .tile-img img { object-fit: cover; }

/* ================= Portraits grid (older layout) ================= */
/* One large portrait (alternating left / right) with four smaller ones beside it */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--pad) 40px; }
.tile.is-big { grid-column: var(--col, auto) / span 2; grid-row: span 2; }
.tile.is-wide { grid-column: var(--col, auto) / span 2; }
.tile.is-tall { grid-column: var(--col, auto); grid-row: span 2; }
.tile.is-big .tile-img, .tile.is-wide .tile-img, .tile.is-tall .tile-img { position: absolute; inset: 0; aspect-ratio: auto; }
.tile.is-big .tile-name, .tile.is-wide .tile-name { font-size: clamp(22px, 2.2vw, 32px); }
.tile[hidden] { display: none; }
.tile { position: relative; display: block; text-decoration: none; overflow: hidden; background: var(--bg-2); }
.tile-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.4s var(--ease); }
.tile-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 20px; background: rgba(var(--shade), .72); color: var(--text);
  opacity: 0; transition: opacity .45s var(--ease);
}
.tile-name { font: 300 clamp(17px, 1.6vw, 22px)/1.3 var(--sans); transform: translateY(10px); transition: transform .6s var(--ease); }
.tile-view { margin-top: 10px; font: 400 11px var(--sans); letter-spacing: .16em; color: var(--muted); transform: translateY(10px); transition: transform .6s .05s var(--ease); }
.tile:hover .tile-overlay, .tile:focus-visible .tile-overlay { opacity: 1; }
.tile:hover .tile-name, .tile:hover .tile-view { transform: none; }
.tile:hover .tile-img img { transform: scale(1.07); }

/* ================= Projects overview ================= */
.project-list { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 22px); }
.next-gallery.project-banner { margin: 0 !important; height: 92vh; height: 92svh; min-height: 520px; }
.pb-slides, .pb-slide { position: absolute; inset: 0; }
.pb-slide { background: center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 1.8s var(--ease); filter: grayscale(.15) brightness(.82); }
.pb-slide.is-active { opacity: 1; }
.project-banner:hover .pb-slide.is-active { transform: scale(1.09); filter: none; }
.project-banner.is-right .next-text { text-align: right; }
.project-banner.is-right .next-text .kicker { justify-content: flex-end; }
.project-banner.is-right .next-title { justify-content: flex-end; }
.pb-excerpt { margin: 14px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.65; color: rgba(246,241,232,.85); }
.project-banner.is-right .pb-excerpt { margin-left: auto; }
.project-banner.is-empty { background: #2a2925; }
.project-banner.is-empty .next-shade { opacity: .4; }

/* ================= Gallery: hero ================= */
.hero { position: relative; height: 92vh; min-height: 520px; overflow: hidden; color: #f6f1e8; background: #0b0b0a; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { position: absolute; inset: -6% 0; background: center 35% / cover no-repeat; transform: scale(1.12); opacity: 0; transition: opacity 1.4s ease; will-change: transform; }
.hero.has-img .hero-img.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.7)); }
.hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(40px, 7vw, 90px); z-index: 2; }
.hero .kicker { color: rgba(246,241,232,.85); }
.hero-title { margin: 0; font: 200 clamp(34px, 5vw, 68px)/1.1 var(--sans); letter-spacing: 0; max-width: 18ch; }
.hero-title em { font-style: italic; }
.scroll-cue {
  position: absolute; right: var(--pad); bottom: clamp(40px, 7vw, 90px); z-index: 2; background: none; border: 0; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 10px var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 60px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ================= Gallery: intro ================= */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 100px); padding: clamp(50px, 7vw, 100px) var(--pad) clamp(30px, 4vw, 60px); align-items: start; }
.intro-lead { font: 300 clamp(18px, 1.6vw, 23px)/1.6 var(--sans); }
.intro-lead:only-child { grid-column: 1 / -1; max-width: 46ch; font-size: clamp(19px, 1.8vw, 26px); }
.intro-rest { color: var(--muted); font-size: 15px; line-height: 1.8; padding-top: 10px; }
.intro-rest p { margin: 0 0 1.1em; }
.intro-rest a, .about-body a { color: var(--text); }

/* ================= Gallery: photos in rhythm ================= */
.photos { padding: clamp(20px, 4vw, 50px) var(--pad) 0; }
.row { margin: 0 0 clamp(60px, 10vw, 150px); }
.ph { margin: 0; }
.ph-img { overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.ph-img img { width: 100%; height: auto; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.row.in .ph-img img { transform: scale(1); }
@media (hover: hover) { .row .ph-img:hover img { transform: scale(1.025); } }
.ph figcaption { display: flex; gap: 16px; align-items: baseline; padding-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ph-n { font: 400 11px var(--sans); letter-spacing: .16em; flex: none; }
.ph-cap { max-width: 60ch; }
.row--full { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.row--full figcaption { padding-left: var(--pad); padding-right: var(--pad); }
.row--wide { width: 78%; }
.row--wide.is-right { margin-left: auto; }
.row--pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); align-items: start; width: 88%; margin-left: auto; margin-right: auto; }
.row--pair .ph:nth-child(2) { margin-top: clamp(60px, 12vw, 180px); }
.row--single { width: 44%; }
.row--single.is-right { margin-left: auto; margin-right: 8%; }
.row--single.is-left { margin-left: 8%; }
.row--single.is-center { margin-left: auto; margin-right: auto; }

.photo-counter {
  position: fixed; left: var(--pad); bottom: 72px; z-index: 30; display: flex; align-items: center; gap: 10px;
  font: 400 12px var(--sans); letter-spacing: .14em; color: var(--muted); mix-blend-mode: difference;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none;
}
.photo-counter b { font: 300 20px var(--sans); letter-spacing: 0; color: #fff; }
.photo-counter i { width: 30px; height: 1px; background: currentColor; }
.photo-counter.show { opacity: 1; transform: none; }

/* Varied layout (new arrangement on every visit) */
.row--free { }
.row--grid { display: grid; gap: clamp(14px, 2.6vw, 44px); }
.row--grid.is-trio { gap: clamp(10px, 1.8vw, 28px); }
.row--feature { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
/* Full-page photos are never cropped: landscapes fill the width, portraits fill the screen height */
.row--feature .ph-img img { width: 100%; height: auto; }
.row--feature.is-portrait .ph-img { height: 100vh; height: 100svh; display: flex; justify-content: center; background: transparent; }
.row--feature.is-portrait .ph-img img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.row--feature.is-portrait figcaption { justify-content: center; }
.row--feature figcaption { padding-left: var(--pad); padding-right: var(--pad); }

/* Straight layout ("Layout: straight" in info.js): every photo centred, same rhythm */
.photos--straight .row { width: auto; margin-left: auto; margin-right: auto; }
.row--straight { max-width: 1200px; }
.row--straight.is-portrait { max-width: min(760px, calc(88vh * .75)); }
.row--straight figcaption { justify-content: flex-start; }

/* Next gallery */
.next-gallery {
  position: relative; display: block; height: 60vh; min-height: 340px; margin: clamp(40px, 8vw, 120px) 0 0; overflow: hidden;
  color: #f6f1e8; text-decoration: none; background: #0b0b0a;
}
.next-img { position: absolute; inset: 0; background: center 35% / cover no-repeat; transform: scale(1.05); transition: transform 1.8s var(--ease), filter 1s; filter: grayscale(.5) brightness(.7); }
.next-gallery:hover .next-img { transform: scale(1.12); filter: none; }
.next-shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.65)); }
.next-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(36px, 6vw, 80px); }
.next-text .kicker { color: rgba(246,241,232,.8); }
.next-title { margin: 0; font: 200 clamp(28px, 4vw, 54px)/1.1 var(--sans); letter-spacing: 0; display: flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.next-title svg { width: .6em; height: .6em; transition: transform .6s var(--ease); }
.next-gallery:hover .next-title svg { transform: translateX(.2em); }
.back-link { padding: 40px var(--pad) 0; margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.back-link a { text-decoration: none; }

/* ================= Lightbox ================= */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(var(--shade), .98); color: var(--text); opacity: 0; transition: opacity .35s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lb-stage { cursor: zoom-out; }
.lb-img { display: block; max-width: none; max-height: none; }
.lb-img.enter-r { animation: inR .55s var(--ease); }
.lb-img.enter-l { animation: inL .55s var(--ease); }
@keyframes inR { from { opacity: 0; transform: translateX(40px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-40px); } }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 90px 20px; display: flex; gap: 22px; align-items: baseline; font-size: 13.5px; color: #f2eee6; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; opacity: 0; transition: opacity .3s; }
.lightbox:hover .lb-bar, .lb-bar.has-cap { opacity: 1; }
.lb-count { font: 400 12px var(--sans); letter-spacing: .16em; flex: none; }
.lightbox button { position: absolute; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.lb-close { top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--shade), .55) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb-close span { position: absolute; left: 10px; right: 10px; top: 21px; height: 1px; background: currentColor; transform: rotate(45deg); transition: transform .4s var(--ease); }
.lb-close span + span { transform: rotate(-45deg); }
.lb-close:hover span { transform: rotate(135deg); } .lb-close:hover span + span { transform: rotate(45deg); }
.lightbox button { z-index: 2; }
.lb-prev, .lb-next { top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50% !important; border: 0 !important; background: rgba(var(--shade), .55) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-prev { left: 18px; transform: scaleX(-1); } .lb-next { right: 18px; }
.lb-prev:hover, .lb-next:hover { background: var(--text); color: var(--bg); }
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }

/* ================= About ================= */
.about { padding: calc(var(--header-h) + clamp(36px, 5vw, 70px)) var(--pad) 0; }
.about-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 110px); align-items: end; }
.about-lead { margin: clamp(22px, 3vw, 40px) 0 0; font: 300 clamp(18px, 1.6vw, 23px)/1.6 var(--sans); max-width: 40ch; }
.about-photo { margin: 0; max-width: 460px; justify-self: end; width: 100%; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.about-photo.in { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.about-photo img { width: 100%; height: auto; }
.about-body { columns: 2 320px; column-gap: clamp(30px, 5vw, 80px); max-width: 1100px; margin: clamp(50px, 7vw, 100px) 0 0 auto; color: var(--muted); line-height: 1.85; }
.about-body p { margin: 0 0 1.2em; break-inside: avoid; }
.clients { margin: clamp(60px, 8vw, 110px) calc(-1 * var(--pad)) 0; padding: 0; }
.clients .kicker { padding: 0 var(--pad); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 200 clamp(20px, 2.2vw, 30px)/1 var(--sans); white-space: nowrap; padding-right: .9em; }
.marquee-track span::after { content: '✦'; font-size: .38em; vertical-align: .55em; margin-left: .9em; color: var(--accent); }
.marquee-track span:nth-child(even) { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }
.about-info { margin-top: clamp(60px, 8vw, 110px); }
.about-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.about-contact .big { font: 200 clamp(22px, 2.6vw, 34px)/1.4 var(--sans); text-decoration: none; transition: color .3s; }
.about-contact .big:hover { color: var(--accent); }
.page-about .site-footer .footer-cta { display: none; }

/* ================= Tablet ================= */
@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .tile.is-big, .tile.is-wide { grid-column: span 2; }
  .main-nav { gap: 24px; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .main-nav { display: none; }
  .site-header.is-solid { --header-h: 62px; }
  .site-title { font-size: 20px; letter-spacing: 1px; position: relative; z-index: 41; }
  .menu-toggle { display: block; position: relative; z-index: 41; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; margin-right: -10px; }
  .menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
  .menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 26px; }
  .menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
  .menu-open .site-header { color: var(--text); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .site-header::before { opacity: 0; }
  .intro, .about-hero { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
}

/* ================= Phone ================= */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-flow { gap: 14px; }
  .tile-row .tile-overlay { padding: 8px; }
  .tile.is-big, .tile.is-wide { grid-column: 1 / -1; grid-row: span 1; }
  .tile.is-big .tile-img { position: relative; aspect-ratio: 4 / 5; }
  .tile.is-wide .tile-img { position: relative; aspect-ratio: 3 / 2; }
  .next-gallery.project-banner { height: 82vh; height: 82svh; min-height: 420px; }
  .pb-excerpt { display: none; }
  .page-count { position: static; margin-top: 14px; }
  .tile-overlay { opacity: 1; background: linear-gradient(transparent 55%, rgba(0,0,0,.6)); justify-content: flex-end; color: #fff; padding: 12px; }
  .tile-name { font-size: 15px; transform: none; }
  .tile-view { display: none; }
  .cover-bottom { grid-template-columns: 1fr auto; }
  .cover-progress { display: none; }
  .cover-contact { flex-direction: column; gap: 2px; font-size: 15px; }
  .cover-contact .dot { display: none; }
  .cover-welcome { letter-spacing: .3em; font-size: 11px; }
  .cover-welcome .rule { width: 26px; }
  .hero { height: 78vh; }
  .scroll-cue { display: none; }
  .row { margin-bottom: 44px; }
  .row--wide, .row--single, .row--pair { width: auto; margin-left: 0 !important; margin-right: 0 !important; }
  .row--free { width: auto !important; margin-left: 0 !important; }
  .row--grid { width: auto !important; margin-left: 0 !important; grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .row--grid.is-trio { grid-template-columns: 1fr 1fr 1fr !important; gap: 8px; }
  .row--grid .ph { margin-top: 0 !important; }
  .row--feature.is-portrait .ph-img { height: auto; }
  .row--feature.is-portrait .ph-img img { width: 100%; height: auto; }
  .row--pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .row--pair .ph:nth-child(2) { margin-top: 50px; }
  .photo-counter { display: none; }
  .lb-stage { inset: 0; }
  .lb-bar { padding: 30px 140px 18px 18px; flex-direction: column; gap: 4px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; }
  .lb-prev { left: auto; right: 74px; }
  .about-body { columns: 1; }
  .footer-bar { height: 46px; gap: 8px; font-size: 10.5px; }
  .footer-bar p { white-space: normal; line-height: 1.25; overflow: visible; }
  body:not(.page-home) { padding-bottom: 46px; }
  .footer-bar .social { gap: 4px; }
  .footer-bar .social a { width: 30px; height: 30px; border: 0; }
  .footer-bar .to-top { font-size: 0; letter-spacing: 0; }
  .footer-bar .to-top::after { content: '↑'; font-size: 16px; }
}

/* ================= Less motion when the visitor asks for it ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .mask > span, .reveal { transform: none !important; opacity: 1 !important; }
  .about-photo { clip-path: none; }
}

/* ================= Protecting the photos ================= */
img, .slide, .tile, .ph-img, .pb-slide, .hero-img, .next-img, .about-photo, .lb-stage {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
img { pointer-events: auto; }
body.photos-hidden img, body.photos-hidden .slide, body.photos-hidden .pb-slide, body.photos-hidden .hero-img,
body.photos-hidden .next-img { filter: blur(28px) brightness(.9) !important; transition: filter .15s; }
.lb-mark {
  position: absolute; right: 22px; bottom: 18px; z-index: 3; pointer-events: none;
  font: 400 12px var(--sans); letter-spacing: .12em; color: rgba(255,255,255,.75);
  text-shadow: 0 1px 6px rgba(0,0,0,.45); mix-blend-mode: normal;
}
.lightbox:hover .lb-mark { bottom: 58px; }
@media print {
  img, .slide, .pb-slide, .hero-img, .next-img, .tile-img, .ph-img, .about-photo { visibility: hidden !important; }
  body::after { content: "© Marcel Bakker Photography — photos are not available for printing."; display: block; padding: 40px; font: 14px sans-serif; }
}
