/* ==========================================================
   Beeldmedia — one-page
   Eén accentkleur (navy uit het logo), de rest neutraal.
   ========================================================== */

:root {
  --bg: #f6f3ee;          /* warm off-white */
  --bg-soft: #efeae2;
  --ink: #26272b;         /* donkergrijs, geen zwart */
  --ink-soft: #5d5e66;
  --line: #dcd6cc;
  --accent: #02157b;      /* navy uit logo */
  --accent-ink: #ffffff;
  --rec: #d6362b;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --gutter: 16px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --nav-h: 76px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 16px;
}
.nav__logo img { height: 40px; width: auto; }
.nav nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 8px 10px;
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after { transform: scaleX(1); }

.timecode {
  display: none; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.timecode__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (min-width: 900px) {
  .timecode { display: inline-flex; }
  .nav__links { gap: 12px; }
}
@media (max-width: 600px) {
  .nav__hide-sm { display: none; }
}
@media (max-width: 420px) {
  .nav__logo img { height: 34px; }
  .nav__links a { padding: 8px 6px; font-size: .85rem; }
}

/* ---------- Layout ---------- */
.section, .hero { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }
.section { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding-top: 120px; padding-bottom: 120px; } }

.section__head { margin-bottom: 48px; max-width: 720px; }
.section__head h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.section__lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; }

.scene, .eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 48px; padding-top: 48px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 800; max-width: 12ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 24px 0 32px; font-size: 1.15rem; color: var(--ink-soft); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mobiel: foto van Bram als achtergrond, showreel alleen op desktop */
@media (max-width: 959px) {
  .hero {
    position: relative; isolation: isolate; max-width: none;
    min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end;
    padding-top: 120px; padding-bottom: 40px; color: #fff;
  }
  .hero::before, .hero::after { content: ""; position: absolute; inset: 0; }
  .hero::before { /* [TODO] vervang door assets/img/bram-hero.jpg */
    z-index: -2; background: #7d8bb0 url("../assets/img/bram-placeholder.svg") center 25% / cover no-repeat;
  }
  .hero::after {
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 14, 40, .92) 0%, rgba(10, 14, 40, .6) 45%, rgba(10, 14, 40, 0) 80%);
  }
  .hero .viewfinder { display: none; }
  .hero .eyebrow { color: rgba(255, 255, 255, .8); }
  .hero__title em { color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .5); }
  .hero__lead { color: rgba(255, 255, 255, .85); }
  .hero .btn--primary { background: #fff; color: var(--accent); }
  .hero .btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
  .hero :focus-visible { outline-color: #fff; }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr auto; gap: 64px; padding-top: 72px; padding-bottom: 96px; min-height: calc(88vh - var(--nav-h)); }
}

/* Viewfinder */
.viewfinder { position: relative; padding: 14px; }
.viewfinder__media {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px;
  background: linear-gradient(135deg, #1b2556, var(--accent));
}
.viewfinder__media video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder--vertical { width: min(100%, 300px); justify-self: center; }
.viewfinder--vertical .viewfinder__media { aspect-ratio: 9 / 16; border-radius: 10px; }
@media (min-width: 960px) { .viewfinder--vertical { width: clamp(280px, 26vw, 360px); } }

.vf-corner { position: absolute; width: 28px; height: 28px; border-color: var(--ink); border-style: solid; border-width: 0; }
.vf-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.vf-rec, .vf-meta {
  position: absolute; top: 28px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  color: #fff; background: rgba(0, 0, 0, .35); padding: 4px 8px; border-radius: 4px;
}
.vf-rec { left: 28px; display: inline-flex; align-items: center; gap: 6px; }
.vf-meta { right: 28px; }
.vf-rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Wat wij aanbieden (navy band) ---------- */
.offer { background: var(--accent); color: #fff; }
.offer__inner {
  max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter);
  display: grid; gap: 48px;
}
.offer .scene { color: rgba(255, 255, 255, .7); }
.offer h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 14ch; }
.offer__lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 42ch; margin: 20px 0 32px; }
.offer :focus-visible { outline-color: #fff; }

.offer__list { border-top: 1px solid rgba(255, 255, 255, .2); }
.offer__item {
  display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 14px;
  padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.offer__num { font-family: var(--font-mono); font-size: .75rem; color: rgba(255, 255, 255, .55); padding-top: 5px; min-width: 2ch; }
.offer__item svg {
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.offer__text { display: grid; gap: 2px; }
.offer__text strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.offer__text span { color: rgba(255, 255, 255, .72); font-size: .95rem; }

@media (min-width: 960px) {
  .offer__inner { grid-template-columns: .9fr 1.1fr; gap: 96px; padding-top: 120px; padding-bottom: 120px; align-items: start; }
  .offer__intro { position: sticky; top: calc(var(--nav-h) + 48px); }
}

/* Vinkje tekent zichzelf bij in beeld komen */
.js .offer__item svg circle { stroke-dasharray: 66; stroke-dashoffset: 66; transition: stroke-dashoffset .5s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + 150ms); }
.js .offer__item svg path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + 450ms); }
.js .offer__item.is-visible svg circle, .js .offer__item.is-visible svg path { stroke-dashoffset: 0; }

/* ---------- Wat levert het op ---------- */
.results { display: grid; border-top: 1px solid var(--line); }
.result { padding: 32px 0; border-bottom: 1px solid var(--line); }
.result__icon {
  width: 36px; height: 36px; margin-bottom: 20px;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.result h3 { font-size: 1.5rem; margin-bottom: 10px; }
.result p { color: var(--ink-soft); max-width: 38ch; }
@media (min-width: 900px) {
  .results { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .result { padding: 44px 32px; border-bottom: 0; border-left: 1px solid var(--line); }
  .result:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Werkwijze: tijdlijn ---------- */
.timeline {
  position: relative; --progress: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft);
  padding: 16px 16px 16px 40px;
}
.timeline__ruler { display: none; }
.timeline__track { display: grid; gap: 12px; }

.clip {
  position: relative; padding: 18px 20px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.clip::before { /* kleurbalk zoals in edit-software */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 6px 0 0 6px;
  background: var(--line); transition: background-color .3s var(--ease);
}
.clip.is-played { border-color: var(--accent); }
.clip.is-played::before { background: var(--accent); }
.clip__label { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); letter-spacing: .06em; }
.clip h3 { font-size: 1.25rem; margin: 6px 0; }
.clip p { color: var(--ink-soft); font-size: .95rem; }

/* Mobiel: verticale playhead */
.timeline__playhead {
  position: absolute; left: 20px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% calc(var(--progress) * 100%), var(--line);
}
.timeline__playhead::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--progress) * 100%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
}

@media (min-width: 900px) {
  .timeline { padding: 0 0 20px; }
  .timeline__ruler {
    display: flex; justify-content: space-between; padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft);
    background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
    background-size: 100% 6px; background-repeat: no-repeat; background-position: bottom;
  }
  .timeline__track { grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 20px 16px 0; }
  .clip { min-height: 220px; padding: 18px 16px; }
  .clip h3 { font-size: 1.1rem; }
  .clip p { font-size: .88rem; }
  .clip::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 6px 6px 0 0; }
  .timeline__playhead {
    left: calc(16px + var(--progress) * (100% - 32px)); top: 0; bottom: 0; width: 2px;
    background: var(--accent);
  }
  .timeline__playhead::after {
    top: 0; width: 14px; height: 14px; border-radius: 2px 2px 7px 7px;
    transform: translate(-50%, 0);
  }
}

/* ---------- Portfolio: horizontale feed ---------- */
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.feed__nav { display: none; gap: 8px; }
@media (hover: hover) and (pointer: fine) { .feed__nav { display: flex; } }
.feed__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); font-size: 1.1rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.feed__btn:hover { background: var(--ink); color: var(--bg); }
.feed__btn[disabled] { opacity: .3; pointer-events: none; }

.feed {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 260px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.feed:focus-visible { outline-offset: -2px; }
.feed__item { scroll-snap-align: start; }
@media (min-width: 1024px) { .feed { grid-auto-columns: calc((100% - 2 * var(--gutter) - 4 * 16px) / 4.4); } }

.project { display: block; width: 100%; text-align: left; }
.project__media {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px;
  background: var(--bg-soft);
}
.project__media img, .project__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.project__media img { transition: transform .5s var(--ease); }
.project__media video { opacity: 0; transition: opacity .3s var(--ease); }
.project.is-previewing video { opacity: 1; }
.project:hover .project__media img { transform: scale(1.03); }

.short__result {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--accent); background: var(--bg); padding: 5px 9px; border-radius: 999px;
}
.short__info { display: grid; gap: 2px; padding-top: 12px; }
.short__client { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.short__branche { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* Play-cursor: alleen op apparaten met een fijne muis */
.play-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .play-cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
    padding: 10px 16px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em;
    opacity: 0; transform: translate(-50%, -50%) scale(.6);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .play-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .work.has-cursor .project { cursor: none; }
}

/* Lightbox */
.lightbox {
  width: min(calc((100vh - 120px) * 9 / 16), 420px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 21, 26, .88); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox__frame { aspect-ratio: 9 / 16; background: #000; border-radius: 10px; overflow: hidden; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-size: 1.8rem; line-height: 1; border: 1px solid rgba(255, 255, 255, .4);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Over Bram ---------- */
.about { display: grid; gap: 48px; }
.about__photo { position: relative; padding: 14px; width: min(100%, 440px); }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 24px; }
.about__lead { font-size: 1.25rem; line-height: 1.5; margin-bottom: 16px; }
.about__text > p:not(.scene):not(.about__lead):not(.about__sign) { color: var(--ink-soft); max-width: 56ch; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about__facts li { display: grid; gap: 4px; padding: 16px 12px 16px 0; }
.about__facts li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.about__facts span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.about__facts strong { font-family: var(--font-display); font-size: 1.2rem; }
.about__sign { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .about { grid-template-columns: .85fr 1fr; gap: 88px; align-items: center; }
  .about__photo { width: 100%; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.4fr 1fr; gap: 80px; } }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft);
  padding: 10px 0; border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 9px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--rec); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }

.form__status { min-height: 1.6em; font-size: .95rem; }
.form__status.is-success { color: #1d6b3a; }
.form__status.is-error { color: #b0261d; }

.direct { display: grid; align-content: start; border-top: 1px solid var(--line); }
.direct__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 20px 0 8px; }
.direct__link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: color .2s var(--ease), padding .3s var(--ease);
}
.direct__link span { color: var(--ink-soft); font-size: .9rem; }
.direct__link strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.direct__link:hover { color: var(--accent); padding-left: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter);
  display: grid; gap: 16px; color: var(--ink-soft); font-size: .9rem;
}
.footer__inner img { height: 48px; width: auto; }
.footer__meta a { color: var(--ink); }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion: alles uit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .vf-rec__dot { opacity: 1; }
}
