/* ==========================================================================
   vrij.land — stylesheet
   Concept: "Licht uit het donker". Monochroom, editorial, één functioneel
   signaalaccent (alleen bij Klyz).
   ========================================================================== */

/* ---------- Lettertypen (lokaal, SIL OFL) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --night: #161616;          /* = achtergrond van het portret */
  --ink: #0c0c0c;
  --paper: #f0efec;
  --paper-2: #e5e4e0;
  --white: #fafaf9;
  --grey-on-dark: #a3a3a0;   /* 7:1 op --night */
  --grey-on-light: #5f5f5c;  /* 6:1 op --paper */
  --line-dark: rgb(255 255 255 / 0.14);
  --line-light: rgb(12 12 12 / 0.14);
  --signal: #b05aa0;         /* alleen Klyz: afgeleid van de eigen merkkleur van Klyz */

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --section: clamp(96px, 13vw, 200px);
  --maxw: 1520px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--white); color: var(--ink); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  font-weight: 400;
}

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

.skip-link {
  position: fixed;
  left: var(--gutter); top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white); color: var(--ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; outline-color: var(--ink); }

/* ==========================================================================
   Navigatie
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  mix-blend-mode: difference;            /* inverteert automatisch boven lichte secties */
}
.site-header.is-open { mix-blend-mode: normal; }
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  color: var(--white);
  transition: height 0.5s var(--ease-out);
}
.nav-bar::after {                        /* haarlijn die verschijnt tijdens scrollen */
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.is-scrolled .nav-bar { height: 56px; }
.is-scrolled .nav-bar::after { transform: scaleX(1); }

.wordmark {
  font-weight: 620;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark__dot { display: inline-block; transition: transform 0.5s var(--ease-out); }
.wordmark:hover .wordmark__dot { transform: translateY(-0.28em); }

.nav__list { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__list a {
  position: relative;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 0.9375rem;
}
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--night);
}
.menu[hidden] { display: none; }
.menu__list li { border-top: 1px solid var(--line-dark); }
.menu__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding-block: 18px;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.menu__list .mono { color: var(--grey-on-dark); }
.menu__foot { color: var(--grey-on-dark); }

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: 20px;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--nav-h) var(--gutter) clamp(28px, 4vw, 48px);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.hero__portrait {
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0; left: 0;
  width: min(calc(100svh * 0.735), 60vw);
  max-width: 900px;
  will-change: transform;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% 22%;
}
/* De fotoachtergrond is al #161616: we laten de randen in dezelfde toon oplossen. */
.hero__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent 58%, var(--night) 99%),
    linear-gradient(to top, var(--night) 0%, transparent 26%),
    linear-gradient(to bottom, var(--night) 0%, transparent 10%);
  pointer-events: none;
}
.hero__marks i {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgb(255 255 255 / 0.5);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}
.hero__marks i:nth-child(1) { top: calc(var(--nav-h) + 8px); left: var(--gutter); border-top-width: 1px; border-left-width: 1px; }
.hero__marks i:nth-child(2) { top: calc(var(--nav-h) + 8px); right: 18%; border-top-width: 1px; border-right-width: 1px; }
.hero__marks i:nth-child(3) { bottom: 18%; left: var(--gutter); border-bottom-width: 1px; border-left-width: 1px; }
.hero__marks i:nth-child(4) { bottom: 18%; right: 18%; border-bottom-width: 1px; border-right-width: 1px; }
.hero__caption {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: calc(18% - 26px);
  color: var(--grey-on-dark);
  font-size: 0.6875rem;
}

.hero__content {
  grid-column: 7 / span 6;
  grid-row: 1;
  align-self: center;
  padding-top: clamp(24px, 6vh, 80px);
}
.eyebrow {
  color: var(--grey-on-dark);
  margin-bottom: clamp(20px, 3vh, 36px);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px; background: currentColor;
}
.hero__title {
  font-size: clamp(3.6rem, 9.6vw, 11rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin-left: -0.05em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .hero__first { font-weight: 200; letter-spacing: -0.045em; }
.hero__title .hero__last { font-weight: 720; letter-spacing: -0.06em; }
.hero__intro {
  max-width: 34ch;
  margin-top: clamp(24px, 4vh, 40px);
  color: rgb(250 250 249 / 0.82);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.hero__actions { margin-top: clamp(24px, 4vh, 40px); }

.button {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 0.4);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.button::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}
.button svg { transition: transform 0.5s var(--ease-out); }
.button:hover, .button:focus-visible { color: var(--ink); border-color: var(--white); }
.button:hover::before, .button:focus-visible::before { transform: scaleY(1); }
.button:hover svg { transform: translateY(3px); }

.hero__index {
  grid-column: 7 / span 6;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 48px;
}
.hero__index a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 4px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.hero__index .mono { color: var(--grey-on-dark); }
.hero__index em {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--grey-on-dark);
}
.hero__index a:hover em, .hero__index a:focus-visible em { color: var(--white); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--grey-on-dark);
  writing-mode: vertical-rl;
}
.scroll-cue > span:last-child { transform: rotate(180deg); }
.scroll-cue__line {
  position: relative;
  width: 1px; height: 64px;
  background: var(--line-dark);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--white);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* Tablet & mobiel */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 0;
  }
  .hero__portrait {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    height: min(72svh, 135vw);
    margin-inline: calc(var(--gutter) * -1);
  }
  .hero__portrait img { object-position: 38% 18%; }
  .hero__portrait::after {
    background:
      linear-gradient(to top, var(--night) 8%, rgb(22 22 22 / 0.7) 30%, transparent 58%),
      linear-gradient(to bottom, rgb(22 22 22 / 0.6) 0%, transparent 16%);
  }
  .hero__marks, .hero__caption { display: none; }
  .hero__content { margin-top: -14svh; padding-top: 0; position: relative; }
  .hero__index { margin-top: 40px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero__index { grid-template-columns: 1fr; }
  .hero__index a {
    flex-direction: row; align-items: baseline; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .hero__index em { margin-left: auto; }
}

/* ==========================================================================
   Sectiekoppen (gedeeld)
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 24px;
  margin-bottom: clamp(64px, 10vw, 140px);
}
.section-head__label {
  grid-column: 1 / span 3;
  display: flex; gap: 8px;
  padding-top: 0.9em;
}
.section-head__label span { opacity: 0.6; }
.section-head__title {
  grid-column: 4 / span 9;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.section-head__text {
  grid-column: 7 / span 5;
  max-width: 44ch;
}
@media (max-width: 900px) {
  .section-head__label, .section-head__title, .section-head__text { grid-column: 1 / -1; }
  .section-head__label { padding-top: 0; }
}

/* ==========================================================================
   Projecten
   ========================================================================== */
.projects {
  background: var(--paper);
  color: var(--ink);
  padding: var(--section) var(--gutter);
}
.projects ::selection { background: var(--ink); color: var(--paper); }
.projects .section-head__text { color: var(--grey-on-light); }

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 32px;
  max-width: var(--maxw);
  margin-inline: auto;
  align-items: end;
}
.project + .project { margin-top: clamp(96px, 14vw, 200px); }

.project__visual {
  position: relative;
  display: block;
  overflow: hidden;
}
.project__body { max-width: 30rem; }
.project__num { color: var(--grey-on-light); margin-bottom: 20px; }
.project__title {
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.project__lede {
  margin-top: 14px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.project__text { margin-top: 16px; color: var(--grey-on-light); }
.project__link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding-block: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.project__link svg { transition: transform 0.5s var(--ease-out); }
.project__link:hover, .project__link:focus-visible { background-size: 0% 1px; background-position: right bottom; }
.project__link:hover svg, .project__link:focus-visible svg { transform: translate(3px, -3px); }

/* ---- iMeteo ---- */
.project--meteo .project__visual { grid-column: 1 / span 7; aspect-ratio: 16 / 11; }
.project--meteo .project__body { grid-column: 9 / span 4; }

.meteo {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
}
.meteo__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.meteo__grid path { stroke: var(--ink); stroke-opacity: 0.08; stroke-width: 1; fill: none; }
.meteo__lines path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.meteo__lines--a { stroke-opacity: 0.7; animation: drift-a 18s var(--ease-io) infinite alternate; }
.meteo__lines--b { stroke-opacity: 0.45; animation: drift-b 22s var(--ease-io) infinite alternate; }
.meteo__lines--a path { stroke-opacity: 0.7; }
.meteo__lines--b path { stroke-opacity: 0.45; }
.meteo__front path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.meteo__front .meteo__ticks { stroke-width: 9; stroke-dasharray: 3 22; vector-effect: none; opacity: 0.85; }
.meteo__label {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
}
@keyframes drift-a { to { transform: translate(-14px, 8px) rotate(-1deg); } }
@keyframes drift-b { to { transform: translate(12px, -10px) rotate(1.2deg); } }
.meteo__lines { transform-box: fill-box; transform-origin: center; transition: scale 1.2s var(--ease-out); }
.meteo:hover .meteo__lines--a { scale: 1.04; }
.meteo:hover .meteo__lines--b { scale: 0.97; }

.meteo__legend {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-light);
  background: var(--paper-2);
  color: var(--grey-on-light);
}

/* ---- Apparaatweergaven (screenshots) ---- */
.device {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  background: var(--ink);
  transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out);
}
.device img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.04);
  transition: filter 1.2s var(--ease-out);
}
.device--browser {
  left: 6%; top: 8%;
  width: 74%;
  border: 1px solid var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}
.device__bar {
  display: flex; align-items: center; gap: 10px;
  height: 22px;
  padding-inline: 10px;
  font-size: 0.625rem;
  color: var(--grey-on-dark);
  background: var(--ink);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.device__bar i { width: 18px; height: 1px; background: currentColor; }
.device--phone {
  right: 7%; bottom: 13%;
  width: 22%;
  padding: 0.6% ;
  border-radius: clamp(10px, 1.6vw, 22px);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55);
}
.device--phone img { border-radius: clamp(7px, 1.2vw, 17px); }

/* Kleur gaat 'aan' bij hover, of op aanraakschermen zodra het project in beeld is */
@media (hover: hover) {
  .project__visual:hover .device img,
  .project:focus-within .device img { filter: none; }
  .project__visual:hover .device--browser { transform: translateY(-6px); }
  .project__visual:hover .device--phone { transform: translateY(-14px); }
}
@media (hover: none) {
  .project__visual.is-in .device img { filter: none; transition-delay: 1.2s; }
}
html:not(.js) .device img { filter: none; }

/* ---- Klyz ---- */
.project--klyz { align-items: start; }
.project--klyz .project__body { grid-column: 1 / span 4; align-self: end; }
.project--klyz .project__visual { grid-column: 6 / span 7; aspect-ratio: 5 / 4; }

.klyz {
  container-type: inline-size;
  background: var(--ink);
  color: var(--white);
}
.klyz__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 12.5% 10%;
}
.klyz__signal {
  --x: 7; --y: 1;
  z-index: 1;
  position: absolute;
  left: 0; top: 0;
  width: 12.5%; height: 10%;
  background: var(--signal);
  transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%));
  transition: transform 0.9s var(--ease-out);
}
.klyz__word {
  position: absolute;
  left: 4%;
  bottom: 5%;
  color: #2a2a2a;
  font-size: 34cqi;
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.075em;
  transition: letter-spacing 0.9s var(--ease-out);
}
.klyz .device--browser { border-color: #2c2c2c; top: 12%; }
.klyz .device--phone { border-color: #2c2c2c; bottom: 9%; }
.klyz__meta {
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 14px 16px;
  color: var(--grey-on-dark);
}

@media (max-width: 900px) {
  .project > * { grid-column: 1 / -1 !important; }
  .project--klyz .project__visual { order: -1; }
  .project__body { max-width: 36rem; }
}

/* ==========================================================================
   Video
   ========================================================================== */
.video {
  background: var(--ink);
  padding: var(--section) var(--gutter);
}
.video__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
  max-width: var(--maxw);
  margin-inline: auto;
}
.video__head .section-head__label { color: var(--grey-on-dark); }
.video__title {
  grid-column: 4 / span 9;
  font-size: clamp(3rem, 9vw, 10rem);
  font-weight: 560;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.video__frame {
  position: relative;
  display: block;
  max-width: var(--maxw);
  margin-inline: auto;
  aspect-ratio: 2.39 / 1;
  background: #050505;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  isolation: isolate;
}
.video__strip {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 68%;
  translate: 0 -50%;
  padding-block: 4.5%;
  opacity: 0.55;
  transition: opacity 0.8s var(--ease-out);
}
/* Perforaties van de filmstrook */
.video__strip::before, .video__strip::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 3%;
  min-height: 6px;
  background: repeating-linear-gradient(to right, rgb(255 255 255 / 0.22) 0 10px, transparent 10px 26px);
}
.video__strip::before { top: 1%; }
.video__strip::after { bottom: 1%; }
.video__reel {
  display: flex;
  gap: 1.2%;
  width: max-content;
  height: 100%;
  animation: reel 48s linear infinite;
}
.video__reel i {
  flex: none;
  height: 100%;
  aspect-ratio: 16 / 10;
  background: #1b1b1b;
  position: relative;
  overflow: hidden;
}
/* Abstracte 'shots': horizon, lichtbundel, silhouet, tegenlicht */
.video__reel i:nth-child(6n + 1) { background: linear-gradient(to bottom, #2e2e2e 0 55%, #121212 55%); }
.video__reel i:nth-child(6n + 2) { background: radial-gradient(ellipse 40% 70% at 30% 45%, #4a4a4a, #151515 70%); }
.video__reel i:nth-child(6n + 3) { background: linear-gradient(100deg, #111 0 40%, #3a3a3a 40% 46%, #111 46%); }
.video__reel i:nth-child(6n + 4) { background: linear-gradient(to top, #0e0e0e 0 30%, #262626 30% 32%, #191919 32%); }
.video__reel i:nth-child(6n + 5) { background: radial-gradient(circle at 70% 60%, #555 0 8%, #1c1c1c 9% 100%); }
.video__reel i:nth-child(6n + 6) { background: linear-gradient(to right, #222 0 33%, #2c2c2c 33% 66%, #171717 66%); }
@keyframes reel { to { transform: translateX(-50%); } }

.video__scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 0.05), transparent);
  animation: scan 7s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(560%); } }

.video__corners i {
  position: absolute;
  width: 22px; height: 22px;
  border: 0 solid rgb(255 255 255 / 0.65);
  transition: inset 0.7s var(--ease-out);
}
.video__corners i:nth-child(1) { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.video__corners i:nth-child(2) { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.video__corners i:nth-child(3) { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.video__corners i:nth-child(4) { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.video__frame:hover .video__corners i:nth-child(1) { top: 28px; left: 28px; }
.video__frame:hover .video__corners i:nth-child(2) { top: 28px; right: 28px; }
.video__frame:hover .video__corners i:nth-child(3) { bottom: 28px; left: 28px; }
.video__frame:hover .video__corners i:nth-child(4) { bottom: 28px; right: 28px; }

.video__hud {
  position: absolute;
  top: 22px; left: 52px; right: 52px;
  display: flex; justify-content: space-between;
  color: var(--grey-on-dark);
  font-variant-numeric: tabular-nums;
}
.video__ratio {
  position: absolute;
  left: 52px; bottom: 22px;
  color: var(--grey-on-dark);
}
.video__play {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  display: grid; place-items: center;
  width: clamp(64px, 8vw, 104px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), scale 0.7s var(--ease-out);
}
.video__play svg { width: 46%; height: auto; translate: 4% 0; }
.video__frame:hover .video__play { background: var(--white); color: var(--ink); scale: 1.08; }
.video__frame:hover .video__strip { opacity: 0.8; }

.video__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  max-width: var(--maxw);
  margin: clamp(32px, 4vw, 56px) auto 0;
  align-items: end;
}
.video__text {
  grid-column: 4 / span 5;
  color: rgb(250 250 249 / 0.82);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  letter-spacing: -0.01em;
  max-width: 42ch;
}
.video__body .project__link { grid-column: 10 / span 3; justify-self: end; margin-top: 0; }

@media (max-width: 900px) {
  .video__title, .video__text, .video__body .project__link { grid-column: 1 / -1; }
  .video__head .section-head__label { grid-column: 1 / -1; margin-bottom: 20px; }
  .video__body .project__link { justify-self: start; margin-top: 24px; }
  .video__frame { aspect-ratio: 4 / 3; }
  .video__strip { height: 56%; }
  .video__ratio { display: none; }
  .video__hud { left: 44px; right: 44px; }
}

/* ==========================================================================
   Over
   ========================================================================== */
.about {
  background: var(--paper);
  color: var(--ink);
  padding: var(--section) var(--gutter);
}
.about ::selection { background: var(--ink); color: var(--paper); }
.about__eyes {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto clamp(56px, 8vw, 112px);
  background: var(--night);
  overflow: hidden;
}
.about__eyes img { width: 100%; height: auto; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 40px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.about__label { grid-column: 1 / span 3; color: var(--grey-on-light); }
.about__title {
  grid-column: 4 / span 8;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.about__text {
  grid-column: 7 / span 5;
  display: grid; gap: 1em;
  color: var(--grey-on-light);
  max-width: 46ch;
}
.about__text p:first-child { color: var(--ink); }
.about__tags {
  grid-column: 4 / span 9;
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line-light);
  margin-top: 16px;
}
.about__tags li {
  padding: 14px 24px 0 0;
  margin-right: 24px;
  color: var(--grey-on-light);
}
.about__tags li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }

@media (max-width: 900px) {
  .about__label, .about__title, .about__text, .about__tags { grid-column: 1 / -1; }
  .about__eyes { margin-inline: calc(var(--gutter) * -1); }
  .about__eyes img { height: clamp(170px, 48vw, 340px); object-fit: cover; object-position: 42% 50%; }
}
@media (max-width: 560px) {
  .about__tags { display: grid; grid-template-columns: 1fr 1fr; }
  .about__tags li, .about__tags li + li { padding: 12px 0; margin: 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
}

/* ==========================================================================
   Afsluiting & footer
   ========================================================================== */
.outro {
  padding: var(--section) var(--gutter) clamp(64px, 8vw, 120px);
  background: var(--night);
}
.outro__head, .outro__list { max-width: var(--maxw); margin-inline: auto; }
.outro__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.outro__head .section-head__label { color: var(--grey-on-dark); }
.outro__title {
  grid-column: 4 / span 9;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.outro__list li { border-top: 1px solid var(--line-dark); }
.outro__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.outro__list a {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-items: center;
  padding-block: clamp(18px, 2.4vw, 32px);
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.outro__list a::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--white);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.outro__list .mono { grid-column: 1 / span 3; color: var(--grey-on-dark); transition: color 0.5s; }
.outro__name {
  grid-column: 4 / span 5;
  font-size: clamp(2.25rem, 5.5vw, 5.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.055em;
  transition: transform 0.6s var(--ease-out);
}
.outro__list .outro__url { grid-column: 9 / span 3; }
.outro__list svg {
  grid-column: 12;
  justify-self: end;
  width: clamp(20px, 2.4vw, 32px); height: auto;
  transition: transform 0.6s var(--ease-out);
}
.outro__list a:hover, .outro__list a:focus-visible { color: var(--ink); }
.outro__list a:hover::before, .outro__list a:focus-visible::before { transform: scaleY(1); }
.outro__list a:hover .mono, .outro__list a:focus-visible .mono { color: var(--grey-on-light); }
.outro__list a:hover .outro__name, .outro__list a:focus-visible .outro__name { transform: translateX(0.12em); }
.outro__list a:hover svg, .outro__list a:focus-visible svg { transform: rotate(45deg); }
.outro__list a:focus-visible { outline-offset: -2px; }

@media (max-width: 900px) {
  .outro__title { grid-column: 1 / -1; }
  .outro__head .section-head__label { grid-column: 1 / -1; margin-bottom: 20px; }
  .outro__list a { grid-template-columns: auto 1fr auto; column-gap: 16px; row-gap: 4px; }
  .outro__list .mono:first-child { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 0.6em; }
  .outro__name { grid-column: 2; }
  .outro__list .outro__url { grid-column: 2; grid-row: 2; }
  .outro__list svg { grid-column: 3; grid-row: 1 / span 2; }
}

.footer {
  background: var(--night);
  padding: 0 var(--gutter);
  overflow: hidden;
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-block: 24px;
  color: var(--grey-on-dark);
}
.footer__row a { color: var(--white); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 4px; transition: text-decoration-color 0.3s; }
.footer__row a:hover { text-decoration-color: currentColor; }
.footer__mark {
  font-size: 24vw;
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.075em;
  color: #232323;
  margin-left: -0.04em;
  margin-bottom: -0.02em;
  white-space: nowrap;
  user-select: none;
}
.footer__mark::before { content: attr(data-text); }

/* ==========================================================================
   Animatietoestanden (alleen actief als JavaScript draait)
   ========================================================================== */
.js.is-loading [data-hero-line] { transform: translateY(110%); }
.js.is-loading [data-hero-item],
.js.is-loading .hero__marks,
.js.is-loading .hero__caption { opacity: 0; }
.js.is-loading .hero__portrait img { clip-path: inset(0 100% 0 0); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
/* Wipe: een vlak in de sectiekleur schuift weg, als een sluiter die opengaat. */
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 5;
  background: var(--cover, var(--paper));
  transform-origin: right;
  transition: transform 1.4s var(--ease-io);
  pointer-events: none;
}
.js [data-reveal="wipe"].is-in::after { transform: scaleX(0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.video__frame { --cover: var(--ink); }
/* Screenshots in het filmframe */
.video__frame .device--browser { left: 14%; top: 13%; width: 58%; border-color: #2c2c2c; z-index: 2; }
.video__frame .device--phone { right: 11%; left: auto; top: 9%; bottom: auto; width: 14.5%; border-color: #2c2c2c; z-index: 3; }
.video__frame .video__play { left: 43%; top: auto; bottom: 7%; translate: -50% 0; z-index: 4; width: clamp(48px, 5vw, 72px); background: rgb(12 12 12 / 0.6); }
.video__frame:hover .device--browser { transform: translateY(-6px); }
.video__frame:hover .device--phone { transform: translateY(-12px); }
@media (hover: hover) { .video__frame:hover .device img { filter: none; } }
@media (hover: none) { .video__frame.is-in .device img { filter: none; transition-delay: 1.2s; } }
@media (max-width: 900px) {
  .video__frame .device--browser { left: 6%; top: 18%; width: 72%; }
  .video__frame .device--phone { right: 6%; top: 24%; width: 26%; }
  .video__frame .video__play { left: 50%; bottom: 6%; }
}

/* Isobaren tekenen zichzelf zodra iMeteo in beeld komt */
.js .meteo__lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-io);
}
.js .meteo__lines--b path { transition-delay: 0.35s; }
.js .meteo.is-in .meteo__lines path { stroke-dashoffset: 0; }

/* ==========================================================================
   Minder beweging
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="wipe"]::after { display: none; }
  .js .meteo__lines path { stroke-dashoffset: 0; }
  .scroll-cue__line::after { transform: none; height: 100%; opacity: 0.4; }
  .video__reel, .video__scan, .meteo__lines { animation: none !important; }
}
