:root {
  --ink: #0A1230;
  --ink-2: #111C45;
  --paper: #F2EFE8;
  --brand: #1F3A8A;
  --brand-2: #3557C2;
  --accent: #F59E0B;
  --fg: #EEF1F8;
  --muted: #8C96B8;
  --line: rgba(238, 241, 248, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
a { color: inherit; }

/* Filmkorrel over alles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  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");
}
/* Bewegende korrel alleen op desktop; op telefoons kost een schermvullende laag per frame te veel */
@media (hover: hover) and (pointer: fine) {
  body::after { inset: -50%; animation: grain 1.2s steps(6) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

.label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scrollvoortgang */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* Balk */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--gutter);
  color: var(--fg);
  transition: color .3s;
}
.bar.is-light { color: var(--ink); }
.bar.is-light .bar__status i { background: var(--ink); }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Poppins, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.bar__brand svg { width: 22px; height: 26px; }
.bar__status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bar__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.bar__login { font-size: 13px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* 01 — Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 96px var(--gutter) 32px;
  position: relative;
}
.hero__meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.hero__title {
  align-self: center;
  margin: 0;
  font-weight: 500;
  font-size: clamp(64px, 12.5vw, 210px);
  line-height: .9;
  letter-spacing: -.045em;
}
.hero__title em { color: var(--accent); letter-spacing: -.03em; padding-right: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; margin-left: clamp(24px, 9vw, 160px); }
@keyframes rise { to { transform: none; } }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero__foot p { margin: 0; max-width: 30ch; color: var(--muted); opacity: 0; animation: fade 1s .6s forwards; }
@keyframes fade { to { opacity: 1; } }
.scrollcue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scrollcue i { width: 1px; height: 56px; background: linear-gradient(var(--fg), transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Vastgezette scènes */
.scene { position: relative; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* 02 — Het blok */
.assemble { height: 420vh; }
.assemble .sticky { display: grid; place-items: center; }
.assemble__stage { position: relative; width: min(56vh, 78vw); aspect-ratio: 1; will-change: transform; }
/* Elk vlak is een eigen laag: Safari verplaatst dan bitmaps i.p.v. de hele SVG elk frame opnieuw te tekenen */
.cube { position: absolute; inset: 0; }
.face, .arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.face--top { transform-origin: 50% 35%; }
.face--left { transform-origin: 37% 57.5%; }
.face--right { transform-origin: 63% 57.5%; }
.arrow { transform-origin: 62.75% 60%; }
.face--top polygon { fill: var(--brand-2); }
.face--left polygon { fill: var(--brand); }
.face--right polygon { fill: #fff; }
.arrow polygon { fill: var(--accent); }
.wordmark {
  position: absolute;
  left: 80%;
  top: 50%;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: min(15vh, 12vw);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-55%);
}
.wordmark, .wordmark span { display: block; will-change: transform; }
.assemble__captions { position: absolute; left: var(--gutter); bottom: 12vh; z-index: 2; }
.assemble__captions p {
  position: absolute;
  bottom: 0;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(28px, 4.4vw, 64px);
  letter-spacing: -.035em;
  line-height: 1;
  opacity: 0;
}
.assemble__captions em { color: var(--accent); }
.assemble__count { position: absolute; right: var(--gutter); bottom: 12vh; font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* 03 — Statement */
.statement { height: 260vh; background: var(--paper); color: var(--ink); }
.statement .sticky { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 var(--gutter); }
.statement .label { color: #6B6A63; }
.statement__text { margin: 0; max-width: 22ch; font-size: clamp(34px, 6.2vw, 96px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.statement__text .w { opacity: .12; transition: opacity .25s linear; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hl { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand); }

/* 04 — Klok */
.rewind { height: 300vh; }
.rewind .sticky { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 0 var(--gutter); }
.rewind__copy { display: flex; flex-direction: column; gap: 20px; }
.rewind h2 { margin: 0; font-weight: 500; font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -.045em; }
.rewind h2 em { color: var(--accent); }
.rewind__copy p { margin: 0; max-width: 38ch; color: var(--muted); font-size: 18px; }
.clock { position: relative; width: min(70vh, 100%); aspect-ratio: 1; justify-self: center; }
.clock > * { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.clock__rim { fill: none; stroke: var(--line); stroke-width: 1; }
.clock__ticks line { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.clock__ticks line.major { stroke: var(--fg); stroke-width: 2; opacity: 1; }
.clock__sweep { inset: 7.5%; width: auto; height: auto; clip-path: inset(0 50% 50% 0); }
/* Kwartschijf die binnen het vaste kwadrant meedraait: groeiende taartpunt zonder hertekenen */
.clock__sweep i { position: absolute; inset: 0; border-radius: 50%; background: rgba(53, 87, 194, .3); clip-path: inset(0 50% 50% 0); transform: rotate(90deg); will-change: transform; }
.clock__hand { transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.clock__hand line { stroke-linecap: round; }
.clock__hand--h line { stroke: var(--fg); stroke-width: 6; }
.clock__hand--m line { stroke: var(--accent); stroke-width: 3; }
.clock__hand--m circle { fill: var(--accent); }

/* 05 — Wat we doen */
.journey { height: 420vh; }
.journey .sticky { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.journey .label { padding: 0 var(--gutter); }
.journey__track { display: flex; gap: clamp(16px, 3vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.panel {
  width: min(78vw, 560px);
  min-height: min(58vh, 520px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  position: relative;
  overflow: hidden;
}
.panel__no { font-family: var(--serif); font-size: clamp(120px, 18vw, 220px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(245, 158, 11, .7); }
.panel h2 { margin: auto 0 12px; font-weight: 500; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; }
.panel h2 em { color: var(--accent); }
.panel p { margin: 0; max-width: 40ch; color: var(--muted); }
.journey__rail { margin: 0 var(--gutter); height: 1px; background: var(--line); }
.journey__rail span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* 05 — Afsluiter */
.outro { background: var(--accent); color: var(--ink); min-height: 100svh; display: flex; flex-direction: column; padding-top: 72px; }
.marquee { overflow: hidden; border-bottom: 1px solid rgba(10, 18, 48, .2); padding: 18px 0; }
.marquee__inner { display: flex; gap: 32px; width: max-content; align-items: center; font-size: clamp(40px, 7vw, 104px); letter-spacing: -.04em; line-height: 1; animation: marquee 22s linear infinite; }
.marquee__inner i { font-style: normal; font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.outro__body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 64px var(--gutter); }
.outro .label { color: rgba(10, 18, 48, .6); }
.outro__title { margin: 0; font-weight: 500; font-size: clamp(48px, 9vw, 150px); letter-spacing: -.05em; line-height: .95; }
.outro__body p { margin: 0; max-width: 40ch; font-size: 18px; }
.btn { display: inline-flex; gap: 12px; align-items: center; padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--fg); text-decoration: none; font-weight: 500; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover span { transform: translateX(4px); }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); border-top: 1px solid rgba(10, 18, 48, .2); font-size: 13px; }

@media (max-width: 700px) {
  .bar__status { display: none; }
  .bar__login { margin-left: auto; }
  .hero__meta span:nth-child(2) { display: none; }
  .assemble__stage { width: min(48vh, 62vw); }
  .wordmark { left: 50%; top: 112%; margin-left: 0; font-size: 16vw; transform: translateX(-50%); }
  .assemble__captions { bottom: 14vh; }
  .assemble__captions p { white-space: normal; width: calc(100vw - 2 * var(--gutter)); }
  .assemble__count { display: none; }
  .hero__title { font-size: 17vw; }
  .rewind .sticky { grid-template-columns: 1fr; align-content: center; gap: 32px; }
  .clock { width: min(42vh, 80vw); order: -1; }
  .rewind__copy p { font-size: 16px; }
  .scrollcue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line > span { transform: none; }
  .hero__foot p { opacity: 1; }
}
