/* cinema.css — base for cinematic maatwerk sites.
   Swap the :root token block for another direction from references/directions.md. */

/* ---------- tokens: direction "Noir" (dark luxury, serif + gold) ---------- */
:root {
  --bg: #0b0a08;
  --bg-2: #14120f;
  --surface: #1b1814;
  --line: rgba(240, 230, 210, .12);
  --text: #f1eadc;
  --muted: rgba(241, 234, 220, .62);
  --accent: #d4b26a;
  --accent-rgb: 212, 178, 106;
  --accent-ink: #1a1408;
  --nav-solid: rgba(11, 10, 8, .72);
  --scrim: 8, 7, 5;                       /* rgb behind text over photos */
  --grade: saturate(.9) contrast(1.06) brightness(.84) sepia(.1);  /* one grade makes mixed stock photos feel like one film */

  --font-display: "DM Serif Display", "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --radius: 999px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* film grain over everything — subtle, sells the "cinema" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  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='3' 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)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

/* ---------- type ---------- */
.eyebrow {
  font: 600 11px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before, .eyebrow.eyebrow--both::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: -.015em;
  font-size: clamp(44px, 7.4vw, 112px); margin: 0; text-wrap: balance;
}
.display--md { font-size: clamp(36px, 5vw, 72px); }
.display--sm { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }
.display em, .accent-word { font-style: italic; color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); max-width: 38ch; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 24px;
  border-radius: var(--radius); font: 700 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), .6); }
.btn--ghost { border-color: var(--line); color: var(--text); backdrop-filter: blur(8px); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), .6); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .5s, border-color .5s, backdrop-filter .5s; border-bottom: 1px solid transparent;
}
.nav--solid { background: var(--nav-solid); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.wordmark { font: 600 15px/1 var(--font-ui); letter-spacing: .38em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.wordmark i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav__links { display: flex; gap: 32px; font: 500 12px/1 var(--font-ui); letter-spacing: .06em; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav .btn { --h: 38px; padding: 0 18px; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 520px) {
  .nav { height: 64px; }
  .wordmark { letter-spacing: .24em; font-size: 13px; white-space: nowrap; }
  .nav .btn { --h: 34px; padding: 0 14px; font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
}

/* ---------- the scrubbed cinema section ---------- */
.cine { position: relative; height: var(--length, 500vh); }
.cine__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* vignette + edge fades so footage melts into the page instead of ending in a hard edge */
.cine__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0,0,0,.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.45), transparent 22%, transparent 70%, var(--bg));
}
/* photo scenes: stacked full-bleed stills, cinema.js drives opacity, zoom and drift */
.scene { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.scene:first-of-type { opacity: 1; visibility: visible; }
.scene img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%);
  filter: var(--grade); will-change: transform;
}
/* a slow light sweep across metal — position follows the scene's own progress (--t) */
.scene[data-fx~="sheen"]::after {
  content: ""; position: absolute; inset: -10% -50%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 43%, rgba(255, 226, 168, .12) 48%, rgba(255, 240, 210, .26) 50%, rgba(255, 226, 168, .12) 52%, transparent 57%);
  transform: translateX(calc(var(--t, 0) * 80% - 40%));
}
.cine--scenes .cine__canvas { z-index: 1; pointer-events: none; }
/* text over footage or photos needs a scrim; it fades in and out with its beat */
.cine--media .beat--left { background: linear-gradient(90deg, rgba(var(--scrim), .78) 0%, rgba(var(--scrim), .5) 34%, rgba(var(--scrim), .12) 58%, transparent 70%); }
.cine--media .beat--right { background: linear-gradient(270deg, rgba(var(--scrim), .78) 0%, rgba(var(--scrim), .5) 34%, rgba(var(--scrim), .12) 58%, transparent 70%); }
.cine--media .beat--center { background: radial-gradient(55% 48% at 50% 50%, rgba(var(--scrim), .55), transparent 78%); }
/* beat--dense: a heavier scrim for bright or busy footage (white paper, a screen with its own text) */
.cine--media .beat--dense.beat--left { background: linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .74) 36%, rgba(var(--scrim), .3) 60%, transparent 76%); }
.cine--media .beat--dense.beat--right { background: linear-gradient(270deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .74) 36%, rgba(var(--scrim), .3) 60%, transparent 76%); }

.beat {
  --v: 0; --dir: 1;
  position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; gap: 22px;
  /* full-bleed box (so scrims reach the screen edge), content kept inside --max */
  padding: 96px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 120px;
  opacity: var(--v);
  transform: translate3d(0, calc((1 - var(--v)) * 28px * var(--dir)), 0);
  filter: blur(calc((1 - var(--v)) * 10px));
  pointer-events: none;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .45); /* keeps copy legible over busy footage */
}
.beat[data-on] { pointer-events: auto; }
.beat--center { justify-items: center; text-align: center; }
.beat--center .lede { margin-inline: auto; }
.beat--left { justify-items: start; }
.beat--left > * { max-width: min(560px, 100%); }
.beat--right { justify-items: end; text-align: right; }
.beat--right > * { max-width: min(560px, 100%); }
.beat--bottom { align-content: end; }
.beat .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.beat--center .actions { justify-content: center; }
.beat--right .actions { justify-content: end; }

.cine__hud { position: absolute; z-index: 3; inset: auto var(--gutter) 28px; display: flex; justify-content: space-between; align-items: end; pointer-events: none; }
.cine__count { font: 600 11px/1 var(--font-ui); letter-spacing: .24em; color: var(--muted); }
.cine__cue { font: 600 10px/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 10px; opacity: calc(1 - var(--p, 0) * 12); }
.cine__cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }
.cine__sig { font: italic 400 15px/1.1 var(--font-display); color: var(--accent); text-align: right; }
.cine__sig small { display: block; font: 600 9px/1.6 var(--font-ui); letter-spacing: .3em; color: var(--muted); font-style: normal; }
.cine__dots { position: absolute; z-index: 3; right: calc(var(--gutter) * .6); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.cine__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .4; transition: all .4s var(--ease); }
.cine__dots i.on { opacity: 1; background: var(--accent); height: 22px; border-radius: 3px; }

/* phones: the subject owns the upper two thirds, the story sits in the lower third */
@media (max-width: 760px) {
  .beat, .beat--left, .beat--right, .beat--center { align-content: end; justify-items: start; text-align: left; padding-bottom: 92px; gap: 16px; }
  .beat .actions, .beat--right .actions, .beat--center .actions { justify-content: start; }
  .beat--center .lede { margin-inline: 0; }
  .cine__stage::before { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
  .cine__dots, .cine__cue { display: none; }
  .scene img { object-position: var(--mx, var(--fx, 50%)) var(--my, var(--fy, 50%)); transform-origin: var(--mx, var(--fx, 50%)) var(--my, var(--fy, 50%)); }
  .cine--media .beat, .cine--media .beat--left, .cine--media .beat--right, .cine--media .beat--center {
    background: linear-gradient(to top, rgba(var(--scrim), .82) 0%, rgba(var(--scrim), .5) 34%, transparent 58%);
  }
  .cine--media .beat--dense, .cine--media .beat--dense.beat--left, .cine--media .beat--dense.beat--right {
    background: linear-gradient(to top, rgba(var(--scrim), .95) 0%, rgba(var(--scrim), .8) 42%, transparent 70%);
  }
  .eyebrow { letter-spacing: .2em; }
  .eyebrow.eyebrow--both::after { display: none; }
}

/* automated capture (Instagram bot): the bot adds its own label and end card, so drop the HUD */
.is-capture .cine__hud { display: none; }

/* still (?nointro / ?still): one hero screen instead of the film, for screenshots and full-page captures */
.cine--still { height: 100vh; height: 100svh; }
.cine--still .beat:not(:first-of-type), .cine--still .cine__dots { display: none; }

/* reduced motion: no scrub, beats become a normal stacked layout over a poster */
.cine--static { height: auto; }
.cine--static .cine__stage { position: relative; height: auto; min-height: 100svh; overflow: clip; }
/* the poster stays screen-sized while the stacked beats scroll over it */
.cine--static .cine__canvas { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; }
.cine--static .beat { position: relative; inset: auto; min-height: 70svh; opacity: 1; transform: none; filter: none; }
.cine--static .cine__dots, .cine--static .cine__cue { display: none; }
.cine--static .scene:not(:first-of-type) { display: none; }
.cine--static .scene img { filter: var(--grade) brightness(.6); }

/* ---------- normal sections ---------- */
.section { padding: clamp(96px, 14vw, 200px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
[data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font: 400 clamp(28px, 4vw, 56px)/1 var(--font-display); white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .5em; margin-left: 48px; vertical-align: middle; }
.marquee__track em { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* editorial split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; background: var(--surface); position: relative; }
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); filter: var(--grade); }
.split__media.in img, .split__media.in video { transform: scale(1); }
.split__body { display: grid; gap: 24px; align-content: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; }
.stats b { display: block; font: 400 clamp(32px, 3.4vw, 48px)/1 var(--font-display); color: var(--text); }
.stats span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* cards (products / services) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; transition: transform .6s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .4); }
.card__media { aspect-ratio: 4/3; background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 22px 24px; display: grid; gap: 8px; }
.card__body h3 { font: 400 26px/1.1 var(--font-display); margin: 0; }
.card__body p { margin: 0; color: var(--muted); font-size: 14px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.card__foot .btn { --h: 34px; padding: 0 16px; font-size: 10px; }

/* big quote */
.quote { text-align: center; display: grid; gap: 28px; justify-items: center; }
.quote blockquote { margin: 0; font: 400 clamp(30px, 4.4vw, 64px)/1.08 var(--font-display); max-width: 20ch; text-wrap: balance; }
.quote cite { font: 600 11px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* closing CTA + footer */
.finale { min-height: 90svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); position: relative; overflow: hidden; }
.finale::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 60%, rgba(var(--accent-rgb), .16), transparent 70%); }
.finale > div { position: relative; display: grid; gap: 26px; justify-items: center; }
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; max-width: var(--max); margin: 0 auto; font-size: 14px; color: var(--muted); }
.footer__grid h4 { font: 600 11px/1 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--text); margin: 0 0 16px; }
.footer__grid a { display: block; padding: 4px 0; }
.footer__grid a:hover { color: var(--accent); }
.footer__mark { font: 400 clamp(64px, 16vw, 240px)/.8 var(--font-display); letter-spacing: -.03em; text-align: center; margin: 64px 0 24px; color: transparent; -webkit-text-stroke: 1px var(--line); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); max-width: var(--max); margin: 0 auto; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
.credits { max-width: var(--max); margin: 20px auto 0; font-size: 11px; line-height: 1.7; color: var(--muted); opacity: .8; }
.credits a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.credits a:hover { color: var(--accent); }

/* placeholder media until real photos exist: <div class="ph">Beeld: …</div> */
.ph { display: grid; place-items: end start; padding: 18px; width: 100%; height: 100%;
  background: radial-gradient(80% 60% at 60% 40%, rgba(var(--accent-rgb), .28), transparent 70%), var(--surface);
  font: 600 10px/1.4 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
