/* Hallmark · genre: atmospheric · macrostructure: Photographic · theme: custom (see tokens.css)
 * tone: cinematic, after dark · anchor hue: 29 (tally red) · enrichment: generated hero loop (Tier C) + real case reels
 * nav: N9 edge-aligned minimal · footer: Ft2 inline single line
 * audience: marketing and comms leads at Dutch brands, municipalities, sports clubs · use: get in touch by mail or phone
 * pre-emit critique: P5 H4 E4 S5 R4 V4
 */

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

html {
  overflow-x: clip;
  background: var(--color-paper);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

/* Static film grain over the whole page, never animated */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background-image: var(--texture-grain);
  opacity: 0.07;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
p { margin: 0; max-width: 65ch; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  min-width: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.title { font-size: var(--text-display); max-width: 14ch; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: var(--space-md);
  left: var(--gutter);
  z-index: var(--z-sticky);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper-3);
  color: var(--color-ink);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* Links and toggles brighten like a dimmer: quick to come up, slow to settle back. */
.link,
.nav__link,
.more__link,
.films__link,
.contact__mail,
.foot a,
.clip-toggle {
  opacity: 0.78;
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.link:active,
.nav__link:active,
.more__link:active,
.films__link:active,
.contact__mail:active,
.foot a:active,
.clip-toggle:active { transform: translateY(1px); }

@media (hover: hover) {
  .link:hover,
  .nav__link:hover,
  .more__link:hover,
  .films__link:hover,
  .contact__mail:hover,
  .foot a:hover,
  .clip-toggle:hover {
    opacity: 1;
    transition-duration: var(--dur-micro);
  }
}
.link:focus-visible,
.nav__link:focus-visible,
.more__link:focus-visible,
.films__link:focus-visible,
.contact__mail:focus-visible,
.foot a:focus-visible,
.clip-toggle:focus-visible { opacity: 1; }

.link {
  display: inline-block;
  color: var(--color-ink);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.clip-toggle {
  appearance: none;
  min-height: 2.25rem;
  padding: var(--space-2xs) var(--space-md);
  border: 1px solid var(--color-edge);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font: 500 var(--text-sm) / 1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.clip-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
html:not(.js) .clip-toggle { display: none; }
@media (pointer: coarse) { .clip-toggle { min-height: 2.75rem; } }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
}

/* Nav */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: var(--z-raised);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--gutter);
}
.nav--page { justify-content: space-between; }
.nav__logo { display: block; color: var(--color-ink); }
.nav__logo svg { width: clamp(4.5rem, 7vw, 6.5rem); height: auto; }
.nav__links {
  display: flex;
  gap: clamp(var(--space-sm), 2.5vw, var(--space-xl));
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-block;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero: a cold open, faded up from black */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 100svh;
  overflow: clip;
}
.hero__video,
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 30%;
  opacity: 0;
  animation: fade-in var(--dur-scene) var(--ease-out) 150ms forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--color-scrim), var(--color-clear) 70%),
    linear-gradient(to right, var(--color-scrim-soft), var(--color-clear) 65%);
}
.hero__card {
  display: grid;
  justify-items: start;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--gutter) var(--space-3xl);
  opacity: 0;
  animation: fade-in var(--dur-scene) var(--ease-out) 700ms forwards;
}
.hero__name { line-height: 0; }
.hero__name svg {
  width: clamp(15rem, 46vw, 40rem);
  height: auto;
  color: var(--color-ink);
}

@keyframes fade-in { to { opacity: 1; } }

/* Statement band */
.statement {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-section) var(--gutter) var(--space-3xl);
}
.statement__line {
  max-width: 20ch;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.1;
}
.statement__body { max-width: 46ch; }

@media (min-width: 60rem) {
  .statement { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .statement__line { grid-column: 1 / span 7; }
  .statement__body { grid-column: 9 / span 4; align-self: end; }
}

/* Work: one film per fold */
.work { padding-block: var(--space-2xl) var(--space-4xl); }
.work__title { padding-inline: var(--gutter); margin-bottom: var(--space-2xl); }

.reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-section);
}
.reel__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: clip;
  background: var(--color-paper-2);
}
.reel__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Each reel arrives like a shot: a slow push-in while the focus pulls sharp.
   The blur is a filter, a deliberate exception to transform/opacity-only motion. */
.js .shot video {
  transform: scale(1.06);
  filter: blur(8px);
  transition:
    transform var(--dur-push) var(--ease-out),
    filter var(--dur-focus) var(--ease-in-out) var(--dur-short);
}
.js .shot.is-in video { transform: none; filter: none; }
.reel__caption {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  width: 100%;
  max-width: 42rem;
  padding-inline: var(--gutter);
}
.reel__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-neutral);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reel__title { font-size: var(--text-xl); }
.reel__text { max-width: 52ch; }
.reel .actions { margin-top: var(--space-xs); }

/* The tally light comes on while a film is rolling */
.tally {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-dot);
  background: var(--color-rule);
}
.tally::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out);
}
[data-live] .tally::after { opacity: 1; }

@media (min-width: 40rem) {
  .reel__frame { aspect-ratio: 16 / 9; width: 100%; max-height: 82svh; }
  .reel:nth-of-type(even) .reel__caption { margin-inline-start: auto; }
}

.more {
  display: grid;
  gap: var(--space-lg);
  padding-inline: var(--gutter);
}
.more__title { font-size: var(--text-xl); }
.more__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm) var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
.more__link {
  color: var(--color-ink);
  font-size: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 40rem) { .more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .more__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Studio and contact: an image band on small screens, a lit set behind the text on large ones */
.studio,
.contact {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.studio__bg,
.contact__bg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.studio__bg { object-position: 85% 50%; }
.contact__bg { object-position: 88% 50%; }
.studio__card,
.contact__card {
  display: grid;
  justify-items: start;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--gutter) var(--space-4xl);
}
.studio__card { max-width: 44rem; }

.crafts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crafts li { white-space: nowrap; }

.studio__pull {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact { background: var(--color-paper); }
.contact__card { padding-bottom: var(--space-3xl); }
.contact__mail {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.06em;
}
.contact__lines { line-height: 2; }

@media (min-width: 60rem) {
  .studio,
  .contact {
    align-items: center;
    min-height: 100svh;
  }
  .studio__bg,
  .contact__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 100%;
    aspect-ratio: auto;
  }
  .studio::after,
  .contact::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, var(--color-scrim), var(--color-clear) 60%);
  }
  .studio__card,
  .contact__card { padding-block: var(--space-4xl); }
}

/* Subpages: case, about, contact */
.hero--case,
.hero--page { min-height: 85svh; }
.hero--text { min-height: auto; }
.hero--text::after { content: none; }
.hero--text .hero__card { padding-top: var(--space-4xl); }
.nav__link[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}
.title__sub {
  display: block;
  margin-top: var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-xl);
}
.hero__tagline {
  max-width: 28ch;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Films play full-screen in a dialog, faded up from black */
.player {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--space-4xl) var(--gutter) var(--space-2xl);
  border: 0;
  background: var(--color-paper);
  color: var(--color-ink);
}
.player[open] {
  display: grid;
  place-items: center;
  animation: fade-from-black var(--dur-long) var(--ease-out);
}
.player::backdrop { background: var(--color-paper); }
.player__frame {
  width: min(100%, calc((100dvh - var(--space-4xl) - var(--space-2xl)) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: var(--color-paper-2);
}
.player__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.player__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--gutter);
}
html:has(.player[open]) { overflow: hidden; }
@keyframes fade-from-black { from { opacity: 0; } }

.films { padding: var(--space-section) var(--gutter) 0; }
.films__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg) var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
.films__link {
  display: inline-grid;
  justify-items: start;
  gap: var(--space-2xs);
  color: var(--color-ink);
  text-decoration: none;
}
.films__label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.04;
  text-transform: uppercase;
}
@media (min-width: 40rem) { .films__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.story,
.chapter,
.reach {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  padding: var(--space-section) var(--gutter);
}
.story__text,
.chapter__text {
  display: grid;
  justify-items: start;
  gap: var(--space-md);
  font-size: var(--text-md);
}
.story__text p,
.chapter__text p { max-width: 60ch; }
.story__text strong { color: var(--color-ink); font-weight: 500; }
.story__text a { color: var(--color-ink); text-decoration-color: var(--color-accent); }

.credits {
  display: grid;
  align-content: start;
  gap: var(--space-lg);
}
.credits__title { font-size: var(--text-xl); }
.credits dl,
.reach__details {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
}
.credits dl div,
.reach__details div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: baseline;
}
.credits dt,
.reach__details dt {
  color: var(--color-neutral);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.credits dd,
.reach__details dd {
  margin: 0;
  color: var(--color-ink);
}
.reach__social { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.reach__main {
  display: grid;
  justify-items: start;
  gap: var(--space-lg);
}

@media (min-width: 60rem) {
  .story,
  .chapter,
  .reach { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .story__text,
  .reach__main { grid-column: 1 / span 7; }
  .credits,
  .reach__details { grid-column: 9 / span 4; }
  .chapter > .title { grid-column: 1 / span 5; }
  .chapter__text { grid-column: 7 / span 6; }
  .chapter__text:only-child { grid-column: 1 / span 8; }
}

.stills {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  padding: 0 var(--gutter) var(--space-section);
}
.stills__item { margin: 0; }
.stills__item img { width: 100%; height: auto; }
@media (min-width: 40rem) {
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stills__item.is-wide { grid-column: 1 / -1; }
}

.crew { margin: 0; }
.crew img { width: 100%; height: auto; }

.cta {
  display: grid;
  justify-items: start;
  gap: var(--space-xl);
  padding: var(--space-section) var(--gutter);
}

/* Next case: the poster comes up like a dimmer on hover */
.next {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 70svh;
  overflow: clip;
  color: var(--color-ink);
  text-decoration: none;
}
.next__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--dur-long) var(--ease-out);
}
.next::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--color-scrim), var(--color-clear) 70%);
}
.next__card {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--gutter) var(--space-3xl);
}
.next__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .next:hover .next__bg { opacity: 0.85; transition-duration: var(--dur-micro); }
}
.next:focus-visible { outline-offset: -4px; }
.next:focus-visible .next__bg { opacity: 0.85; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-xl);
  padding: var(--space-xl) var(--gutter) max(var(--space-xl), env(safe-area-inset-bottom));
  color: var(--color-neutral);
  font-size: var(--text-sm);
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Text fades in once as it comes into view */
.js .reveal {
  opacity: 0;
  transition: opacity var(--dur-long) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .shot video { transform: none; filter: none; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    transition-duration: 150ms !important;
  }
}
