@font-face {
  font-family: Inter;
  src: url('/inter-latin-wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* The same system as larsminnes.com, so the two sites read as one. */
:root {
  --ground: #030303;
  --ink: #ebe6dd;
  --line: rgba(235, 230, 221, 0.18);
  --soft: rgba(235, 230, 221, 0.6);
  --accent: #e0531f;
  --gutter: 40px; /* the margin of the frame */
  --gap: 20px; /* the gutter between columns */
  --pad: 24px;
  --sans: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hole: #0b0b0b; /* behind a picture until it arrives */
  --cols: 12; /* a design grid: twelve columns, each drawn as two hairlines (6 on phones) */
  /* One type scale for the whole site (Lars: "consistent in typografie"): capitals as large as a
     row on the posters only, one large size for every lead line, 16/24 for all other text, and
     13/16 for the menu and the reel's controls. All regular weight. */
  --large: clamp(28px, 3.2vw, 48px);
  --inset: calc(var(--gutter) + 8px); /* type sits 8px inside its column; pictures fill columns */
}
/* The white mode: real white, the same ink as black. */
html[data-mode="white"] {
  --ground: #ffffff;
  --ink: #0a0a0a;
  --line: rgba(10, 10, 10, 0.16);
  --soft: rgba(10, 10, 10, 0.56);
  --hole: #eeeeee;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html:has(> body.home) { overscroll-behavior-y: none; } /* no white flash above the banner when a phone is pulled down */
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } /* Work lands with the reel fully above, so its controls never meet the menu */
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/24px var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video, canvas { display: block; width: 100%; height: auto; background: var(--hole); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip { position: fixed; left: var(--gutter); top: -64px; z-index: 60; background: var(--ink); color: var(--ground); padding: 8px 16px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.micro { font-size: 13px; line-height: 16px; font-weight: 400; letter-spacing: 0; } /* plain Helvetica, like the name (Lars: "allemaal ook in helvetica") */
.soft { color: var(--soft); }

/* Name and menu float over everything, never in a bar. */
.chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); /* the menu on the columns too */
  column-gap: var(--gap);
  align-items: center;
  padding: 16px var(--gutter);
  mix-blend-mode: difference;
  pointer-events: none;
}
.chrome a, .chrome button { pointer-events: auto; color: #fff; padding: 8px; min-width: 32px; justify-self: start; text-align: left; white-space: nowrap; }
.chrome .right { display: contents; }
.chrome .left { grid-column: 1 / span 2; }
.chrome .logo { grid-column: 7 / span 3; }
.chrome .right a { grid-column: 12; }
.logo { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }

h1:not(.sr) { font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }

/* The home screen: the reel fills it, and you hold its time (stage.js). Two hairlines meet
   at a small square marked AVEC, wherever a mouse or a hand points; a pinch fills the square. */
/* the film runs on behind Safari's bars (lvh), so no strip of page shows under it on a phone; the
   poster with the name keeps to the part that is always visible (svh) */
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #000; touch-action: pan-y; outline: none; --x: 50%; --y: 50%; }
/* The reel holds colour above depth in one picture. The canvas turns between the film and its
   depth in black and white (depth.js); without WebGL the film itself shows, twice the banner's
   height so only its top half, the colour, is seen. Its first frame stands until the film has one. */
.stage .reel { position: absolute; top: 0; left: 0; width: 100%; height: 200%; object-fit: cover; object-position: top; background: #000; pointer-events: none; }
.stage .view { position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); } /* the outer pixels of the depth run dark: kept just outside the frame */
.stage::before { content: ''; position: absolute; inset: 0; background: #000 url('/video/reel.webp') center / cover no-repeat; transition: opacity 0.4s var(--ease); }
.stage.is-drawn::before { opacity: 0; }
/* The poster over the reel, after the example Lars sent: dense columns of hairlines, ruled rows,
   and every line of type resting on a rule, 8px inside its cell. AVEC top left and bottom right,
   what we do in cells between. White in difference, so it reads on light and dark film. */
.poster {
  --rows: 7; --top: 64px;
  --row: calc((100svh - var(--top) - var(--foot, 40px)) / var(--rows));
  position: absolute; inset: 0 0 var(--foot, 40px); z-index: 1;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--top) var(--gutter) 0; overflow: hidden;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  font-size: 16px; line-height: 24px; font-weight: 400;
}
.poster > *, .cells > * { position: relative; z-index: 1; align-self: end; padding: 0 8px 8px; }
.poster > .cells { align-self: stretch; padding: 0; }
.mark { grid-column: 1 / -1; font-size: calc((var(--row) - 16px) / 0.72); line-height: 0.72; font-weight: 500; letter-spacing: -0.04em; } /* capitals fill the row, 8px from each rule */
.mark-top { grid-row: 1; }
.mark-foot { grid-row: -2; text-align: right; } /* the second AVEC bottom right, like the H in the example */
/* A case opens as the same poster on its own picture: the name top left, the word bottom right,
   both in capitals as large as a row allows and as wide as the page allows (--fit, build.mjs). */
.case-poster { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.case-poster > img, .case-poster > video { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: brightness(0.42); } /* dimmed, like the photo under the example, so white type reads on any picture */
.case-poster .poster { --foot: 0px; --rows: 6; pointer-events: auto; mix-blend-mode: normal; }
.case-poster .mark { font-size: min(calc((var(--row) - 16px) / 0.72), calc((100vw - 2 * var(--gutter) - 16px) / var(--fit))); line-height: 0.72; font-weight: 500; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.case-poster h1 { grid-row: 1; }
.case-poster .mark.mark-foot { font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; text-transform: none; } /* the word quietly, bottom right (Lars: "kleiner") */
.case-poster .brief { grid-row: 2; }
.case-poster .facts { grid-row: 3; grid-template-rows: minmax(0, 1fr); }
.facts dd { overflow-wrap: anywhere; }
.facts dd a { display: inline-block; line-height: 24px; }
.facts dt { opacity: 0.6; }
.facts dd a { box-shadow: inset 0 -1px 0 currentColor; }
.brief { grid-row: 2; grid-column: 1 / -1; text-transform: uppercase; text-align: justify; text-align-last: justify; }
.cells { grid-column: 1 / -1; grid-row: 3 / span 2; display: grid; column-gap: var(--gap); grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.hair, .disc { position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.2s var(--ease); }
.has-hairs:not(.by-hand):hover .hair, .has-hairs:not(.by-hand):hover .disc, .sees-hand .hair, .sees-hand .disc { opacity: 1; }
.hair { background: rgba(255, 255, 255, 0.5); mix-blend-mode: difference; }
.hair-across { left: 0; right: 0; top: 0; height: 1px; transform: translateY(var(--y)); }
.hair-down { top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(var(--x)); }
.disc { left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1px solid #fff; mix-blend-mode: difference; transform: translate(var(--x), var(--y)); transition: opacity 0.2s var(--ease), background-color 0.12s var(--ease); }
.is-held .disc { background: #fff; }
.disc i { position: absolute; left: 22px; top: -2px; font-style: normal; font-size: 13px; line-height: 16px; font-weight: 400; color: #fff; }

/* Home, after gosharubchinskiy.com (Lars, 2026-11-19: "75 % beeld 25% tekst", "beetje die vibe"):
   the film and the work in the left three quarters inside a margin, the name and the menu
   standing still in the last quarter, the name as wide as that quarter. */
body.home { --frame: 24px; --side: 25vw; padding-right: var(--side); }
.home .stage { position: relative; height: calc(100vh - 2 * var(--frame)); height: calc(100svh - 2 * var(--frame)); margin: var(--frame); }
.side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 10; width: var(--side); display: flex; flex-direction: column; justify-content: center; padding: var(--frame) var(--frame) var(--frame) 0; }
.side .side-name { font-size: calc((var(--side) - var(--frame)) / var(--fit)); line-height: 1; font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.side-menu { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.side-menu > * { font: 400 13px/16px var(--sans); color: var(--ink); padding: 8px 0; min-width: 32px; min-height: 32px; text-align: left; }
.home .work { padding: 0 var(--frame); gap: var(--frame); }
.home .foot { padding-inline: var(--frame); column-gap: var(--frame); }
@media (hover: hover) and (pointer: fine) {
  .side-menu > *:hover { color: var(--soft); }
}

/* Home: even rows with room around each picture, as on morningfactory.studio. */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: var(--gap) var(--gutter) 0; }
.tile { display: block; }
.tile.full { grid-column: 1 / -1; }
.frame { position: relative; overflow: hidden; background: var(--hole); }
.full .frame { aspect-ratio: 16 / 9; }
.tall .frame { aspect-ratio: 4 / 5; }
.wide .frame { aspect-ratio: 5 / 4; }
.frame img, .frame video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.frame p { position: absolute; left: 8px; right: 8px; color: #fff; mix-blend-mode: difference; }
.frame.solid p { mix-blend-mode: normal; }
.label { bottom: 8px; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 24px; font-weight: 400; transition: opacity 0.3s var(--ease); }
.label span:last-child { text-align: right; }
/* The word rises from under the picture's edge. --fit is its width in ems (build.mjs). */
.word { bottom: 8px; font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; transform: translateY(calc(100% + 16px)); transition: transform 0.6s var(--ease); }
.tile:focus-visible .word { transform: none; }
.tile:focus-visible .label { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .word { transform: none; }
  .tile:hover .label { opacity: 0; }
}

/* Case: the name, then the facts beside one paragraph, then the work with room around it. */
.info { padding: 96px var(--gutter) 0; }
.info > h1, .info-lead, .info section > h2, .names li, .entry > * { padding-inline: 8px; }
.case > :not(.case-poster) { margin-inline: var(--gutter); }
.credit, .next, .case-text > * { padding-inline: 8px; }
/* The text of a case on the columns: the lead over eight, then each paragraph in a column of
   three, side by side as in the example, in ink and readable. */
.case-text { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; padding-top: 64px; }
.case-lead { grid-column: 1 / span 8; }
.case-text p + p { grid-column: span 3; grid-row: 2; }
.case-lead { font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }
.media { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: 96px; } /* each of the six fills two columns, edge to edge */
.media > * { grid-column: 1 / -1; }
.media .half { grid-column: span 3; }
.media .third { grid-column: span 2; }
.media .start { grid-column-start: 1; }
.media .half:not(.phone) img, .media .half:not(.phone) video { height: 100%; object-fit: cover; }
.media .third img, .media .third video { aspect-ratio: 4 / 5; object-fit: cover; }
.media .phone { display: flex; justify-content: center; background: var(--hole); }
.media .phone video { width: auto; max-width: 100%; height: calc(100vh - 112px); height: calc(100svh - 112px); }
/* A sequence turned by the scroll (scrub.js): the stage holds still while the block passes. */
.scrub { height: 300vh; }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; background: var(--hole); }
.scrub canvas { height: 100%; object-fit: contain; background: none; }
.credit { padding-top: 16px; color: var(--soft); max-width: 48em; }
.next { display: block; margin-top: 96px; padding: 24px 8px; border-top: 1px solid var(--line); }
.next span { display: block; }
.next .soft { padding-bottom: 8px; }
.next .title { font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; transition: color 0.4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .facts dd a:hover { box-shadow: inset 0 -1px 0 var(--accent); }
  .next:hover .title { color: var(--accent); }
}

/* Info */
.info-lead { padding-top: 0; } /* no big name above it (Lars: weghalen) */
.info-lead p { font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; max-width: 22em; }
.info-lead p + p { padding-top: 24px; color: var(--soft); }
.info section { padding-top: 64px; }
.info section > h2 { color: var(--soft); padding-bottom: 16px; font-size: 16px; line-height: 24px; }
/* What we do in full: six groups on the columns, two columns each (three on phones). */
.capabilities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px var(--gap); }
.info .capabilities section { padding: 0 8px; }
.capabilities h3 { font-size: 16px; line-height: 24px; font-weight: 500; padding-bottom: 8px; }
.names { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gap); }
.entry { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); padding: 16px 0; border-top: 1px solid var(--line); }
.entry .years { grid-column: 1 / span 2; color: var(--soft); }
.entry h3 { grid-column: 3 / -1; font-size: 16px; font-weight: 400; }
.entry h3 a { display: inline-block; padding: 4px 0; margin: -4px 0; }
.entry a { box-shadow: inset 0 -1px 0 var(--line); transition: box-shadow 0.4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .entry a:hover { box-shadow: inset 0 -1px 0 var(--accent); }
}

/* Footer */
.foot { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: 96px; padding: 32px var(--gutter); border-top: 1px solid var(--line); }
.foot .mail { grid-column: 1 / span 8; padding-inline: 8px; font-size: var(--large); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; transition: color 0.4s var(--ease); overflow-wrap: anywhere; }
.foot ul { grid-column: 9 / -1; padding-inline: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; color: var(--soft); }
.foot li > * { padding: 8px 0; display: inline-block; }
.clock { font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .foot .mail:hover { color: var(--accent); }
  .foot li a:hover { color: var(--ink); }
}

.button { display: inline-block; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lost { min-height: 80vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 32px; gap: 16px; }

html.js .reveal { opacity: 0; transition: opacity 0.4s var(--ease); }
html.js .reveal.is-in { opacity: 1; }

@media (max-width: 1100px) {
  .capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* four columns each, so the longer names fit */
}

@media (max-width: 760px) {
  :root { --pad: 16px; --gutter: 16px; --gap: 16px; }
  .stage::before { background-image: url('/video/reel-tall.webp'); }
  :root { --cols: 6; }
  .chrome .left { grid-column: 1 / span 2; }
  .chrome .logo { grid-column: 3 / span 2; }
  .chrome .right a { grid-column: 6; }
  .names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry .years, .entry h3, .foot .mail, .foot ul { grid-column: 1 / -1; }
  .poster { --rows: 8; font-size: 13px; line-height: 16px; }
  .case-poster .poster { --rows: 8; }
  .case-poster .facts { grid-row: 3 / span 2; } /* two rows, so a wrapped link never reaches the line above */
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-lead, .case-text p + p { grid-column: 1 / -1; grid-row: auto; }
  .case-text { row-gap: 16px; }
  .cells { grid-row: 2 / span 4; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .work { grid-template-columns: minmax(0, 1fr); }
  body.home { --frame: 16px; --side: calc(100vw - var(--frame)); padding-right: 0; }
  .home .stage { height: auto; aspect-ratio: 4 / 5; }
  .side { position: static; width: auto; display: block; padding: 8px var(--frame) 32px; }
  .side-menu { padding-top: 8px; }
  .full .frame { aspect-ratio: 5 / 4; }
  .word, .full .word { display: none; }
  .label { flex-direction: column; gap: 0; }
  .label span:last-child { text-align: left; opacity: 0.7; }
  .media { margin-top: 64px; }
  .media .half, .media .third { grid-column: 1 / -1; }
  .media .phone video { width: 100%; height: auto; }
  .entry { row-gap: 4px; }
  .foot { row-gap: 16px; }
  .foot ul { justify-content: flex-start; }
}

@media (max-width: 359px) {
  .poster { font-size: 12px; line-height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transition: none; }
}

/* Word widths (build.mjs) */
.fit-fenix { --fit: 2.91; }
.fit-design-biennale-rotterdam { --fit: 2.97; }
.fit-store { --fit: 3.54; }
.fit-solidnature { --fit: 4.48; }
.fit-laurids-gallee { --fit: 6.13; }
.fit-loop-biotech { --fit: 3.86; }
.fit-align-zone { --fit: 3.60; }
.fit-align-instruments { --fit: 5.17; }
.fit-films { --fit: 3.28; }
.name-fenix { --fit: 2.91; }
.case-word-fenix { --fit: 4.36; }
.name-solidnature { --fit: 7.07; }
.case-word-solidnature { --fit: 6.23; }
.name-design-biennale-rotterdam { --fit: 15.55; }
.case-word-design-biennale-rotterdam { --fit: 4.71; }
.name-loop-biotech { --fit: 7.44; }
.case-word-loop-biotech { --fit: 5.41; }
.name-laurids-gallee { --fit: 8.42; }
.case-word-laurids-gallee { --fit: 9.13; }
.name-align-zone { --fit: 6.00; }
.case-word-align-zone { --fit: 5.21; }
.name-align-instruments { --fit: 10.41; }
.case-word-align-instruments { --fit: 7.19; }
.name-magazines { --fit: 9.32; }
.case-word-magazines { --fit: 3.15; }
.name-store { --fit: 9.38; }
.case-word-store { --fit: 5.20; }
.name-films { --fit: 5.69; }
.case-word-films { --fit: 4.83; }
.side-name { --fit: 5.69; }
