/* ============================================================
   Nicolette — Voice-over & Stemactrice
   Round 4: hero photo capped at 1175x1395 (100px right gap),
   bigger nav links, big black IG/TikTok CTAs in hero, snake re-added,
   "isometric" squares ONLY in footer (yellow + pink diagonal shapes).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --peach: #f2b8b4;
  --peach-2: #efa8a3;
  --yellow: #ffcf5a;
  --yellow-soft: #ffd877;
  --yellow-deep: #ffc940;
  --ink: #14132b;
  --ink-soft: #2a2742;
  --hl: #d35d4e;
  --line: rgba(20,19,43,0.55);
  --footer-from: #f3b08a;
  --footer-to:   #f6c7a8;
  --max: 1480px;
  --frame: 100px;

  --serif: 'Young Serif', 'Bodoni Moda', 'Cardo', Georgia, serif;
  --sans:  'Bitter', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl { color: var(--hl); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--frame);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.005em;
  line-height: 1.04;
  margin: 0 0 0.4em;
  overflow-wrap: break-word;
  word-spacing: normal;
}
h1 { font-size: clamp(48px, 6.4vw, 96px); }
h2 { font-size: clamp(34px, 4.8vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p  {
  margin: 0 0 1em;
  font-family: var(--sans);
  overflow-wrap: break-word;
  word-spacing: normal;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--peach);
  border-bottom: 1px solid rgba(20,19,43,0.10);
}
.nav.is-yellow { background: var(--yellow); }
.nav.is-peach { background: var(--peach); }
.nav-inner {
  max-width: none;
  margin: 0;
  padding: 22px var(--frame);          /* 100px L/R against the viewport */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.005em;
  color: var(--ink);
  line-height: 1;
}
.brand .name { font-weight: 400; }
.brand .sep  { font-weight: 400; padding: 0 6px; opacity: 0.7; }
.brand .role {
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  font-family: var(--sans);
}
.nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;                      /* bumped — Round 4 */
  font-family: var(--sans);
  align-items: center;
}
.nav ul li a { font-weight: 500; }
.nav a.is-active { text-decoration: underline; text-underline-offset: 5px; }
.ig {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
}
.ig svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.peach  { background: var(--peach); }
.section.yellow { background: var(--yellow); }
.section.cream  { background: #f4ead8; }
.section.dark   { background: #1a1a1a; color: #fff; }

/* ---------- Hero (start page) ---------- */
.hero-fb {
  position: relative;
  background: var(--peach);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
  padding: 60px var(--frame) 90px;       /* 100px left + right */
  min-height: calc(100vh - 92px);
}
.hero-fb .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.hero-fb h1 {
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.hero-fb .lede {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 36px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-spacing: normal;
}

/* photo capped at 1175x1395 — never exceeds those dimensions,
   gracefully shrinks on smaller viewports */
.hero-fb .right {
  width: min(1175px, 50vw);
  aspect-ratio: 1175 / 1525;
  max-height: 1525px;
  overflow: hidden;
  background: var(--peach);
  border-radius: 2px;
}
.hero-fb .right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;   /* duw de crop omlaag zodat handen + randje tafel zichtbaar blijven */
}

@media (max-width: 1100px) {
  .hero-fb { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-fb .right { width: 100%; }
}

/* hero CTA stack: big primary + two big socials side-by-side */
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-cta-row { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.ghost { background: transparent; color: var(--ink); }

/* Big primary CTA: ~500 x 125 */
.btn-xl {
  width: 500px;
  max-width: 100%;
  height: 125px;
  font-size: 26px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  border-radius: 999px;
}

/* Black social pill: ~375 x 115 (used in hero) */
.btn-social {
  width: 375px;
  max-width: 100%;
  height: 115px;
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 400;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.btn-social:hover { opacity: 0.9; }
.btn-social svg { width: 28px; height: 28px; }

/* ---------- Demo strip ---------- */
.demo-strip { padding: 70px 0 50px; }
.demo-strip h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }
.demo-card {
  background: rgba(255,255,255,0.55);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
  max-width: 760px;
}
.demo-card .thumb { width: 72px; height: 72px; border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.demo-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.demo-card .meta { flex: 1; }
.demo-card .meta .t { font-weight: 600; font-size: 14px; }
.demo-card .meta .s { font-size: 12px; color: var(--ink-soft); }
.demo-card audio { width: 100%; margin-top: 6px; }

/* ---------- Snake / Volg Mij wavy marquee ----------
   Single static sine path; SMIL animates startOffset of the textPath
   by exactly one "Volg Mij" repeat unit -> letters ride the wave and
   the loop is seamless. */
.snake-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
  margin: 14px 0 36px;
}
.snake-wrap .snake-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.snake-text {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 110px;
  fill: var(--ink);
  letter-spacing: -0.005em;
}

/* ---------- Buttons row + thumbs row ---------- */
.btn-row {
  display: flex; gap: 22px;
  justify-content: center;
  margin: 0 0 38px;
  flex-wrap: wrap;
}
.thumbs-fb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px 80px;
}
.thumbs-fb .tile {
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #111;
  border-radius: 2px;
}
.thumbs-fb .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.thumbs-fb .tile:hover img { transform: scale(1.04); }

/* ---------- Contact strip (start) ---------- */
.contact-strip {
  background: var(--peach);
  padding: 30px 0 100px;
  position: relative;
}
.contact-strip .wrap { max-width: var(--max); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid h2 { font-size: clamp(40px, 4.6vw, 72px); margin-bottom: 28px; }
.contact-grid p.lede {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-spacing: normal;
}
.contact-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }

/* ---------- Forms ---------- */
form.nm { display: grid; gap: 20px; }
form.nm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.nm label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--sans);
}
form.nm label .req { font-weight: 400; opacity: 0.65; font-style: italic; }
form.nm input,
form.nm textarea {
  width: 100%;
  background: transparent;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 16px 22px;
  font: 400 15px var(--sans);
  color: var(--ink);
  outline: none;
}
form.nm textarea {
  border-radius: 18px;
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
form.nm input:focus,
form.nm textarea:focus { border-color: #000; box-shadow: 0 0 0 2px rgba(20,19,43,0.12); }
form.nm .check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }
form.nm .check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 30px;
}
.about-grid h1 { margin-bottom: 24px; }
.about-grid .copy p {
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-spacing: normal;
}
.about-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Portfolio ---------- */
.pf-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 30px 0 60px;
}
.pf-hero h1 { font-size: clamp(40px, 5.0vw, 72px); }
.pf-hero p {
  font-size: 14px;
  color: var(--ink-soft);
  overflow-wrap: break-word;
  word-spacing: normal;
}
.pf-hero .photo { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.pf-hero .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* Title-only hero (portfolio sub-pages without photo) */
.pf-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 40px;
}
.pf-hero-title h1 {
  font-size: clamp(56px, 7.5vw, 120px);
  line-height: 1.05;
  margin: 0 0 20px;
}
.pf-hero-title p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 auto;
  overflow-wrap: break-word;
  word-spacing: normal;
}

.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-bottom: 30px;
}
.pf-grid .card { display: block; }
.pf-grid .card .ph { aspect-ratio: 4/3; overflow: hidden; background: #111; border-radius: 2px; }
.pf-grid .card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.pf-grid .card:hover .ph img { transform: scale(1.03); }
.pf-grid .card h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 14px 0 0; }

/* ---------- Portfolio sub-pages: clip grid ---------- */
.pf-clips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
.clip-card { display: flex; flex-direction: column; gap: 12px; }
.clip-card .clip-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
}
.clip-card .clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 4px 0 0; }
.clip-card .clip-meta { font-family: var(--sans); font-size: 14px; opacity: 0.7; margin: 0; }
/* Embedded players inside clip cards */
.clip-card .clip-thumb video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}
.clip-card.is-audio .clip-thumb { background: #14132b; }
.clip-card .clip-audio { width: 100%; margin-top: 10px; display: block; }
/* Vertical 9:16 clips: keep the 9:16 shape, but size them so their height is
   ~2x the height of a 16:9 clip in the same column (width = 2 * (9/16) * (9/16)). */
.clip-card.is-portrait { text-align: center; }
.clip-card.is-portrait .clip-thumb {
  width: 63.3%;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  background: #14132b;
}
.clip-card.is-portrait .clip-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #14132b;
}

/* Playing video fills the viewport; returns to its card when paused/ended */
.clip-card video.is-playing-fill {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  object-fit: contain !important;
  background: #000 !important;
  border-radius: 0 !important;
}
body.clip-fill-active { overflow: hidden; }
@media (max-width: 900px) { .pf-clips-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pf-clips-grid { grid-template-columns: 1fr; } }

/* Prev / next pager (sits just above the footer on portfolio sub-pages) */
.pf-pager {
  background: var(--yellow);
  border-top: 1px solid rgba(20,19,43,0.18);
  padding: 60px 0;
}
.pf-pager .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}
.pf-pager .spacer { flex: 0 0 auto; }
.pf-pager a {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  line-height: 1;
}
.pf-pager a .arrow { font-size: 1.1em; text-decoration: none; }
.pf-pager a { text-decoration: none; }
.pf-pager a:hover span:not(.arrow) { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Contact page ---------- */
.contact-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  padding: 30px 0 70px;
}
.contact-hero h1 { font-size: clamp(48px, 5.4vw, 84px); }
.contact-hero .info { font-size: 14px; color: var(--ink-soft); margin: 18px 0 36px; max-width: 42ch; }
.contact-hero .photo { aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; background: #111; }
.contact-hero .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  min-height: 520px;
  padding: 80px 0 100px;
  background: var(--peach);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--frame);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px; align-items: start;
  width: 100%;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 28px; font-weight: 700; }
.footer li a { text-decoration: underline; text-underline-offset: 4px; opacity: 0.92; }
.footer .brand { font-size: 44px; }
.footer .brand .role { font-size: 32px; font-weight: 700; }
.footer-copy {
  position: absolute; left: 0; right: 0; bottom: 16px;
  z-index: 2; margin: 0;
  padding: 0 var(--frame);
  font-family: var(--sans); font-size: 14px;
  opacity: 0.8; text-align: center;
}

/* ---------- Photo frames: recessed "doorkijkje" inset shadow ---------- */
/* Make every photo frame look like a window cut into the page so the
   picture sits visually behind the surface. We add a non-interactive
   ::after layer with an inset box-shadow that draws on top of the img. */
.hero-fb .right,
.thumbs-fb .tile,
.contact-photo,
.about-photo,
.clip-card .clip-thumb,
.contact-hero .photo,
.pf-hero .photo {
  position: relative;
}
.hero-fb .right::after,
.thumbs-fb .tile::after,
.contact-photo::after,
.about-photo::after,
.clip-card .clip-thumb::after,
.contact-hero .photo::after,
.pf-hero .photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 50px 4px rgba(0, 0, 0, 0.45),
    inset 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Cube band (absolute background inside footer; sitemap text floats on top) ---------- */
.cube-band {
  --cube-top:   var(--yellow);
  --cube-front: var(--peach);
  --cube-side:  var(--peach-2);
  --cube-size:  200px;
}

/* On pages whose section above the footer is peach, flip cube colors:
   pink blocks (top) with yellow walls (front/side) so they read as
   "roze blokken, schaduw geel". */
.flip-cubes .cube-band {
  --cube-top:   var(--peach);
  --cube-front: var(--yellow);
  --cube-side:  var(--yellow-deep);
  background: var(--yellow);
}

.cube-band {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--peach);
}
.cube-band .cube-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 3500px;
}
.cube-band .cube-grid {
  display: grid;
  grid-template-columns: repeat(15, var(--cube-size));
  transform: rotateX(60deg) rotateZ(45deg);
  transform-style: preserve-3d;
}
.cube-band .cube {
  width: var(--cube-size);
  height: var(--cube-size);
  background: var(--cube-top);
  position: relative;
  transform-style: preserve-3d;
  animation: cubeWave 8s ease-in-out infinite alternate;
  will-change: transform;
}
.cube-band .cube::before {
  content: '';
  position: absolute;
  top: var(--cube-size);
  left: 0;
  width: 100%;
  height: 700px;
  background: var(--cube-front);
  transform-origin: top;
  transform: rotateX(-90deg);
}
.cube-band .cube::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--cube-size);
  width: 700px;
  height: 100%;
  background: var(--cube-side);
  transform-origin: left;
  transform: rotateY(90deg);
}
@keyframes cubeWave {
  0%   { transform: translateZ(-30px); }
  100% { transform: translateZ( 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-band .cube { animation: none; }
}


/* ============================================================
   MOBILE / RESPONSIVE
   Progressive breakpoints. The page frame (--frame) shrinks per
   viewport, and every desktop grid collapses so all content stays
   within the mobile viewport and remains readable.
   ============================================================ */

/* Never allow horizontal scroll from full-bleed decorative elements */
html, body { overflow-x: hidden; }

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  :root { --frame: 56px; }
  .about-grid,
  .contact-grid,
  .pf-hero,
  .contact-hero { gap: 48px; }
  .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---- Tablet portrait / large phone ---- */
@media (max-width: 768px) {
  :root { --frame: 28px; }

  h1 { font-size: clamp(38px, 9vw, 68px); }
  h2 { font-size: clamp(30px, 7vw, 52px); }

  /* Nav: brand on its own centered row, menu wraps below */
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand {
    width: 100%;
    text-align: center;
    font-size: 24px;
  }
  .brand .role { font-size: 18px; }
  .nav ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 17px;
  }

  /* Hero: single column, image below text */
  .hero-fb {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px var(--frame) 56px;
    min-height: auto;
  }
  .hero-fb .left { max-width: none; }
  .hero-fb .right {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
  .hero-fb h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-fb .lede { font-size: 16px; }
  .hero-fb .lede br { display: none; }

  /* Big CTA + social buttons: full width, auto height */
  .btn-xl {
    width: 100%;
    height: auto;
    min-height: 76px;
    padding: 18px 24px;
    font-size: 22px;
  }
  .btn-social {
    width: 100%;
    height: auto;
    min-height: 68px;
    padding: 16px 24px;
    font-size: 20px;
  }
  .btn-row { gap: 14px; }

  /* Collapse two-column content grids */
  .about-grid,
  .contact-grid,
  .pf-hero,
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 0;
  }
  .pf-hero .photo,
  .contact-hero .photo,
  .contact-photo,
  .about-photo { max-width: 520px; }

  /* Portfolio cards + thumbs to 2 columns */
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .thumbs-fb {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 var(--frame) 60px;
  }

  /* Footer: single centered column */
  .footer { min-height: auto; padding: 56px 0 88px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
    justify-items: center;
  }
  .footer .brand { font-size: 34px; }
  .footer .brand .role { font-size: 24px; }
  .footer h4 { font-size: 26px; }
  .footer li { font-size: 21px; }

  /* Snake marquee (subpages) */
  .snake-wrap { height: 130px; margin: 8px 0 24px; }
  .snake-text { font-size: 64px; }

  /* Pager */
  .pf-pager { padding: 44px 0; }
}

/* ---- Phone ---- */
@media (max-width: 480px) {
  :root { --frame: 18px; }

  body { font-size: 15px; }
  h1 { font-size: clamp(34px, 10vw, 52px); }

  /* Keep just the name to avoid a cramped, wrapping tagline */
  .brand { font-size: 22px; }
  .brand .sep,
  .brand .role { display: none; }
  .nav ul { gap: 12px 18px; font-size: 16px; }

  .hero-fb h1 { font-size: clamp(34px, 12vw, 50px); }

  /* Stacked name/menu inputs */
  form.nm .row { grid-template-columns: 1fr; }

  /* Single-column galleries on phones */
  .pf-grid { grid-template-columns: 1fr; }
  .demo-card { flex-direction: column; align-items: flex-start; }
  .demo-card .thumb { width: 100%; height: 180px; }

  .footer .brand { font-size: 30px; }
  .footer .brand .role { font-size: 21px; }
  .footer-copy { font-size: 12px; }

  .snake-text { font-size: 48px; }
}

/* ---- Small phone ---- */
@media (max-width: 360px) {
  :root { --frame: 14px; }
  h1 { font-size: clamp(30px, 11vw, 44px); }
  .nav ul { gap: 10px 14px; font-size: 15px; }
  .btn-xl { font-size: 20px; min-height: 68px; }
  .btn-social { font-size: 18px; min-height: 62px; }
}

/* ============================================================
   MOBILE v2 — page-specific title sizing + more edge breathing
   room so headings on portfolio / commercials / online-videos /
   tarieven / contact don't crowd the left & right of the screen.
   ============================================================ */
@media (max-width: 768px) {
  /* More generous gutters on all pages */
  :root { --frame: 32px; }

  /* Title-only heroes (commercials, online-videos, tarieven, demos, podcasts, radiospots, sbs9) */
  .pf-hero-title { padding: 52px 0 30px; }
  .pf-hero-title h1 { font-size: clamp(40px, 12vw, 72px); }
  .pf-hero-title p { font-size: 15px; }

  /* Portfolio index hero */
  .pf-hero h1 { font-size: clamp(34px, 9vw, 58px); }
  .pf-hero p { font-size: 15px; }

  /* Contact page + contact sections (index/about) */
  .contact-hero h1 { font-size: clamp(36px, 9vw, 60px); }
  .contact-hero .info { font-size: 15px; }
  .contact-grid h2 { font-size: clamp(32px, 8vw, 54px); }

  /* Tarieven cards: trim internal padding so they don't crowd the frame */
  .tarief-blok { padding: 24px 20px 18px; }
  .tarief-blok td { font-size: 16px; }
  .tarief-voorwaarden { font-size: 14px; }
}

@media (max-width: 480px) {
  :root { --frame: 22px; }

  .pf-hero-title { padding: 40px 0 22px; }
  .pf-hero-title h1 { font-size: clamp(30px, 11vw, 46px); }
  .pf-hero h1 { font-size: clamp(28px, 10vw, 44px); }
  .contact-hero h1 { font-size: clamp(30px, 10vw, 46px); }
  .contact-grid h2 { font-size: clamp(26px, 9vw, 42px); }
  .tarief-blok { padding: 20px 16px 14px; }
}

@media (max-width: 360px) {
  :root { --frame: 18px; }
}

/* ============================================================
   MOBILE v3 — FIX: restore left/right gutter on hero containers.
   .pf-hero / .pf-hero-title / .contact-hero carry a shorthand
   "padding: X 0 Y" that overrode .wrap's side padding, pushing
   content flush against the screen edges on mobile.
   ============================================================ */
@media (max-width: 768px) {
  .pf-hero,
  .pf-hero-title,
  .contact-hero {
    padding-left: var(--frame);
    padding-right: var(--frame);
  }
}
/* ============================================================
   FIX (2026-08-30): voorkom horizontale overloop op middelgrote
   schermen (ca. 770–1135px). De navigatie (merknaam + menu) paste
   daar niet naast elkaar, waardoor de pagina rechts wegliep en
   titels werden afgekapt. De nav breekt nu eerder netjes af, met
   een vangnet tegen elke horizontale overloop.
   ============================================================ */
html, body { overflow-x: clip; }

@media (min-width: 769px) and (max-width: 1160px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
  }
  .nav-inner .brand {
    width: 100%;
    text-align: center;
  }
  .nav-inner ul {
    width: 100%;
    justify-content: center;
  }
}

/* Twee-koloms secties (portfolio-, contact- en about-hero's) klappen nu al vanaf
   1100px in één kolom — net als de homepage-hero — zodat ze in de band
   770–1100px niet te krap worden, overlopen en rechts worden afgekapt. */
@media (min-width: 769px) and (max-width: 1100px) {
  .pf-hero,
  .contact-hero,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Deze twee zetten hun zijkant-padding op 0; geef ze hier weer een nette marge. */
  .pf-hero,
  .contact-hero {
    padding-left: var(--frame);
    padding-right: var(--frame);
  }
  /* In één kolom hoeven de foto's niet paginabreed te zijn. */
  .pf-hero .photo,
  .contact-hero .photo,
  .contact-photo,
  .about-photo { max-width: 560px; }
}