.home-page {
  --screen: #11131a;
  --shell: min(100% - 8vw, 1510px);
  background: var(--paper);
}
.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  justify-content: space-between;
  gap: 1rem;
  height: clamp(76px, 8.8vw, 130px);
  color: var(--cream);
  border-bottom: 1px solid rgba(243,228,202,.32);
}
.home-page .site-header nav { gap: clamp(.65rem, 3vw, 3rem); }
.home-page .site-header nav a:last-child { padding: .63rem .9rem; border: 1px solid rgba(243,228,202,.58); border-radius: 99px; }
.home-page .hero {
  min-height: max(690px, 100svh);
  border-radius: 0 0 clamp(45px, 9vw, 150px) 0;
  background: var(--screen);
}
.home-page .hero::after {
  background: linear-gradient(180deg, rgba(12,15,21,.64), transparent 32%, rgba(12,15,21,.25) 53%, rgba(12,15,21,.87)),
    linear-gradient(90deg, rgba(12,15,21,.45), transparent 83%);
}
.home-page .hero-image { object-position: 65% 58%; }
.hero-wordmark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.hero-wordmark img {
  width: clamp(150px, 24vw, 355px);
  height: auto;
}
.home-page .hero-content, .home-page .hero-caption { margin-inline: auto; }
.home-page .hero-content {
  flex: 1;
  justify-content: flex-end;
  padding-block: clamp(1.6rem, 7vh, 6rem) 2rem;
}
.home-page .hero-content .eyebrow { margin-bottom: 1rem; }
.home-page .hero h1 { font-size: clamp(2.9rem, 6.7vw, 7.4rem); line-height: .89; }
.home-page .hero-caption { border-top: 1px solid rgba(243,228,202,.32); margin-bottom: .75rem; padding-right: 1.2rem; }
.home-page .hero-caption a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.home-page .work { padding-block: clamp(3.3rem, 7vw, 7.5rem); background: var(--paper); }
.home-page .work h2, .home-page .photography h2 { font-size: clamp(4rem, 10vw, 10.5rem); line-height: .85; }
.home-page .work h2 { color: var(--blue); }
.home-page .film-viewer:not([hidden]) {
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: clamp(470px, 72svh, 820px);
  border-radius: 10px clamp(55px,10vw,145px) 10px 10px;
  background: var(--screen);
  isolation: isolate;
}
.home-page .film-viewer-image, .home-page .film-viewer-details { grid-area: 1 / 1; }
.home-page .film-viewer-image { position: relative; height: auto; min-height: 100%; aspect-ratio: auto; z-index: -2; }
.home-page .film-viewer-image img { position: absolute; inset: 0; }
.home-page .film-viewer::after {
  content: "";
  grid-area: 1 / 1;
  z-index: -1;
  background: linear-gradient(0deg, rgb(10 13 20 / .92), transparent 61%), linear-gradient(90deg, rgb(10 13 20 / .28), transparent);
  pointer-events: none;
}
.home-page .film-viewer-details { align-self: end; padding: clamp(1.3rem, 4vw, 4rem); gap: 1.3rem; }
.film-description .eyebrow { display: block; margin-bottom: .65rem; }
.home-page .film-viewer-details h3 { max-width: 16ch; font-size: clamp(2.7rem, 7.5vw, 8.2rem); line-height: .9; }
.film-actions { display: flex; justify-content: space-between; align-items: center; gap: .9rem; width: 100%; }
.film-actions .button { margin-top: 0; }
.film-navigation { display: flex; gap: .4rem; align-items: center; }
.film-navigation button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(243 228 202 / .53);
  border-radius: 50%;
  background: #141822;
  color: var(--cream);
  cursor: pointer;
}
.film-navigation button:hover { background: var(--cream); color: var(--ink); }
.film-count { min-width: 6ch; text-align: center; font: .78rem ui-monospace, monospace; white-space: nowrap; }
.home-page .film-strip { background: var(--screen); margin-top: 8px; }
.home-page .photography { margin-bottom: 0; }
.home-page .about { padding-block: clamp(4.2rem, 9vw, 9rem); }
.home-page .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: clamp(1.4rem, 6vw, 5.4rem); }
.home-page .about-heading h2 { margin-bottom: 0; }
.home-page .about-copy { display: grid; gap: 1rem; padding-top: clamp(.2rem, 3vw, 2.35rem); }
.footer-navigation { display: flex; flex-wrap: wrap; gap: .65rem 1.6rem; }
@media (max-width: 850px) {
  .home-page .about-grid { grid-template-columns: 1fr; }
  .home-page .about-copy { padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-wordmark img { animation: wordmark-arrival .9s cubic-bezier(.22,1,.36,1) both; }
  @supports (animation-timeline: view()) {
    .home-page .film-viewer-image {
      animation: film-opening linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes wordmark-arrival {
  from { transform: translateY(9px); opacity: .68; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes film-opening {
  from { clip-path: inset(0 10% 0 10% round 80px); }
  to { clip-path: inset(0 0 0 0 round 0); }
}
@media (max-width: 720px) {
  .home-page { --shell: calc(100% - 2.25rem); }
  .home-page .site-header nav a:last-child { padding: .44rem .55rem; }
  .home-page .hero { min-height: max(670px, 100svh); }
  .home-page .hero-image { object-position: 75% center; }
  .hero-wordmark img { width: clamp(104px, 30vw, 155px); }
  .home-page .hero-content { padding: 1.9rem 0 1.4rem; }
  .home-page .hero-caption { margin-bottom: .65rem; padding-right: .7rem; }
  .home-page .film-viewer:not([hidden]) { min-height: 490px; }
  .home-page .film-viewer-details h3 { font-size: clamp(2.3rem, 11vw, 4rem); }
}
@media (max-width: 370px) {
  .home-page .site-header { gap: .5rem; }
  .home-page .site-header nav { gap: .36rem; font-size: .71rem; }
  .film-navigation { gap: .22rem; }
}

@media (min-width: 721px) {
  .home-page .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    align-items: end;
    padding-block: 1rem 1.65rem;
  }
  .home-page .hero-content .eyebrow { grid-area: 1 / 1; align-self: end; margin-bottom: .7rem; }
  .home-page .hero h1 { grid-area: 2 / 1; }
  .home-page .hero-actions { grid-area: 2 / 2; justify-content: end; margin: 0; padding-left: 1rem; }
  .home-page .hero-caption { min-height: 53px; padding-bottom: .35rem; }
}

.home-page .film-strip { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.home-page .photography .photo-city {
  grid-template-columns: 1fr 1.2fr 1fr;
  margin-top: clamp(2rem, 5vw, 4.6rem);
}
.photo-city figure:nth-child(2) { margin-top: 0; }
.photo-city figure:nth-child(1) { margin-top: clamp(0rem, 3.3vw, 3.2rem); }
.photo-city figure:nth-child(3) { margin-top: clamp(0rem, 2vw, 2rem); }
.photo-city figure:nth-child(2) .photo-frame { aspect-ratio: .79; }
@media (max-width: 950px) {
  .home-page .film-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-page .photography .photo-city { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-city figure:nth-child(n) { margin-top: 0; }
  .photo-city figure:first-child { grid-column: 1 / -1; }
  .photo-city figure:nth-child(2) { grid-column: auto; }
  .photo-city figure:nth-child(n + 2) .photo-frame { aspect-ratio: .78; }
}

.home-page .film-viewer-image img[src$="/skate.webp"] { object-position: center 24%; }
.home-page .film-viewer-image img[src$="/werkplaats.webp"] { object-position: center 56%; }
.home-page .film-viewer-image img[src$="/clubnacht.webp"] { object-position: center 60%; }

.opening-cut {
  background: var(--screen);
  color: var(--cream);
}
.opening-stage {
  display: grid;
  align-items: end;
  position: relative;
  min-height: min(100svh, 940px);
  isolation: isolate;
  overflow: hidden;
}
.opening-still, .opening-stage::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.opening-still { z-index: -2; object-fit: cover; object-position: center 38%; }
.opening-stage::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, rgb(15 18 24 / .94), transparent 66%),
    linear-gradient(90deg, rgb(15 18 24 / .48), transparent 70%);
}
.opening-o { display: none; }
.opening-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: 2rem clamp(2.2rem, 7vh, 5.5rem);
}
.opening-caption .eyebrow { margin-bottom: 1rem; }
.opening-caption h2 { font-size: clamp(3.4rem, 8.25vw, 8.7rem); }
.opening-caption .button:hover { background: var(--blue); }

.home-page .site-footer {
  background: var(--screen);
  border-radius: clamp(32px, 9vw, 140px) 0 0 0;
  overflow: hidden;
}
.home-page .site-footer h2 { font-size: clamp(3.5rem, 7.5vw, 8rem); }
.home-page .site-footer .contact-layout { padding-bottom: clamp(3.5rem, 7vw, 7rem); }
.home-page .contact-form { background: #efe2cc; }
.contact-choices:not([hidden]) { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.contact-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  padding: .64rem 1rem;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: background .22s, color .22s;
}
.contact-choices button:hover { background: var(--cream); color: var(--ink); }
.closing-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(150px, 29vw, 470px);
  background: var(--blue);
  border-radius: 0 clamp(44px, 10vw, 150px) 0 0;
}
.closing-frame img { width: min(89vw, 1390px); height: auto; }
.home-page .footer-bottom {
  margin-top: 0;
  min-height: 62px;
  border-top: 0;
}
.home-page .site-credit { text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .opening-cut { min-height: 150svh; view-timeline-name: --opening-cut; view-timeline-axis: block; }
    .opening-stage { position: sticky; top: 0; min-height: 100svh; }
    .opening-still, .opening-o {
      animation-timeline: --opening-cut;
      animation-range: contain 0% contain 86%;
      animation-timing-function: linear;
      animation-fill-mode: both;
    }
    .opening-still { animation-name: open-project-aperture; }
    .opening-o {
      display: block;
      position: absolute;
      top: 45%;
      left: 50%;
      z-index: -1;
      width: clamp(110px, 34vw, 430px);
      height: auto;
      color: var(--cream);
      animation-name: open-project-mark;
      pointer-events: none;
    }
    .closing-frame { view-timeline-name: --closing-frame; }
    .closing-frame img {
      animation: closing-title linear both;
      animation-timeline: --closing-frame;
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes open-project-aperture {
  0%, 13% { clip-path: ellipse(var(--aperture-x, 6.2vw) var(--aperture-y, 2.7vw) at 49.4% 45%); }
  100% { clip-path: ellipse(82% 85% at 50% 50%); }
}
@keyframes open-project-mark {
  0%, 13% { opacity: 1; transform: translate(-50%, -50%); }
  44%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}
@keyframes closing-title {
  from { opacity: .65; transform: translateY(14%) translateX(-5%); }
  to { opacity: 1; transform: translate(0); }
}
@media (max-width: 720px) {
  .opening-cut { --aperture-x: 9.5vw; --aperture-y: 4.2vw; }
  .opening-still { object-position: 54% 42%; }
  .opening-caption { align-items: start; flex-direction: column; }
  .home-page .footer-bottom { align-items: start; }
}

.home-page .hero-caption { gap: 1rem; }
.montage-strip:not([hidden]) { display: flex; gap: .5rem; align-items: center; }
.montage-strip button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: clamp(64px, 6.9vw, 112px);
  min-height: 45px;
  padding: 0;
  border: 1px solid rgb(243 228 202 / .46);
  border-radius: 5px;
  overflow: hidden;
  background: var(--screen);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
}
.montage-strip img { width: 100%; height: auto; opacity: .58; transition: opacity .2s; }
.montage-strip button:is(:hover, [aria-pressed="true"]) img { opacity: 1; }
.montage-strip button[aria-pressed="true"] { border-color: #ffc078; box-shadow: 0 0 0 1px #ffc078; }
.montage-strip span {
  position: absolute;
  inset: auto 0 0;
  padding: .3rem .4rem;
  background: linear-gradient(0deg, rgb(12 14 19 / .9), transparent);
  font: 600 .73rem var(--sans);
}
.home-page .hero-caption { padding-top: .65rem; padding-bottom: .65rem; }
.home-page .hero-motion { text-decoration: underline; text-underline-offset: .26em; }
.home-page .hero-caption a { font-weight: 600; }
.home-page .opening-stage { background: var(--blue); }
.home-page .opening-stage::after {
  background: linear-gradient(0deg, rgb(9 13 26 / .96), transparent 71%),
    linear-gradient(90deg, rgb(10 16 38 / .25), transparent 82%);
}
.home-page .opening-caption .eyebrow { color: #ffe0a7; }
.home-page .opening-still { object-position: center 33%; }
.home-page .film-viewer { border-radius: 6px clamp(48px, 8vw, 135px) 6px 6px; }
.home-page .film-frame[aria-pressed="true"] .project-label { color: #ffd196; }
.home-page .photography {
  background: #121521;
  border-radius: 0 clamp(52px, 9vw, 150px) 0 0;
}
.home-page .photography h2 { color: #f9e8ca; }
.home-page .photography .photo-grid:not(.photo-city) {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(.9rem, 2.4vw, 2.5rem);
  row-gap: clamp(1.3rem, 4vw, 4rem);
}
.home-page .photo-grid:not(.photo-city) figure { grid-column: span 5; margin: 0; }
.home-page .photo-grid:not(.photo-city) .photo-lead { grid-column: span 7; align-self: center; }
.home-page .photo-grid:not(.photo-city) .photo-lead .photo-frame { aspect-ratio: 1.2; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(2) { align-self: end; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(3) { align-self: center; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(4) { grid-column: span 7; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(4) .photo-frame { aspect-ratio: 1.27; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(4) img { object-position: center 63%; }
@media (max-width: 720px) {
  .home-page .hero { min-height: max(710px, 100svh); }
  .home-page .hero-caption { flex-wrap: wrap; gap: .1rem .65rem; }
  .montage-strip:not([hidden]) { width: 100%; }
  .montage-strip button { width: min(28%, 98px); }
  .home-page .hero-motion, .home-page .hero-caption a { min-height: 38px; }
  .home-page .photography .photo-grid:not(.photo-city) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-page .photo-grid:not(.photo-city) figure:nth-child(n) { grid-column: auto; }
  .home-page .photo-grid:not(.photo-city) figure:is(:first-child, :last-child) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .home-page .film-viewer-image { animation-range: entry 8% entry 74%; }
    .photo-lead { view-timeline-name: --tome-photo; }
    .photo-lead .photo-frame {
      animation: photo-gate linear both;
      animation-timeline: --tome-photo;
      animation-range: entry 5% entry 75%;
    }
    .photo-lead img {
      animation: photo-crop linear both;
      animation-timeline: --tome-photo;
      animation-range: entry 5% entry 95%;
    }
  }
}
@keyframes photo-gate {
  from { clip-path: inset(6% 13% 6% 13% round 52% 46% 49% 45%); }
  to { clip-path: inset(0 0 0 0 round 12px clamp(45px, 9vw, 130px) 12px 12px); }
}
@keyframes photo-crop {
  from { object-position: 48% 43%; }
  to { object-position: 50% 55%; }
}

.home-page [hidden] { display: none !important; }
.home-page .hero-actions .button-outline { background: transparent; }
.home-page .hero-actions .button-outline:hover { background: var(--cream); }
.home-page .work .section-head { border-bottom: 1px solid var(--paper-line); padding-bottom: clamp(1rem, 2vw, 1.7rem); }
.home-page .work .section-head .eyebrow { color: var(--ink); margin-bottom: .9rem; }
.film-view-switch:not([hidden]) { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--paper-line); border-radius: 999px; }
.film-view-switch button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: .55rem .9rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.film-view-switch button[aria-pressed="true"] { color: var(--cream); background: var(--blue); }
.film-project-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.film-project-links [data-film-link] { background: transparent; color: var(--cream); border-color: var(--line); }
.film-project-links [data-film-link]:hover { background: var(--cream); color: var(--ink); }
#film-index { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.4vw,2.4rem); }
#film-index .project { grid-column: auto; }
#film-index .project-image { height: auto; aspect-ratio: 1.45; border-radius: 5px 5px clamp(20px, 3vw, 48px) 5px; }
#film-index .project-label h3 { font-size: clamp(1.13rem, 2.35vw, 2rem); }
#film-index .card-open { inset: auto 1rem 1rem auto; width: 36px; height: 36px; }
.photo-series-title {
  margin-block: 1.1rem 1rem;
  padding: .85rem 0 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem,2.5vw,2.35rem);
  font-weight: 600;
  letter-spacing: -.04em;
}
.photo-series-title.photo-series-next { margin-top: clamp(2.6rem,6vw,5.8rem); }
.home-page .photography .photo-city { margin-top: 1rem; grid-template-columns: repeat(12,minmax(0,1fr)); }
.home-page .photo-grid:not(.photo-city) figure:nth-child(n+3), .home-page .photo-city figure { grid-column: span 4; }
.home-page .photo-grid:not(.photo-city) figure:nth-child(n+3) .photo-frame { aspect-ratio: .94; }
.home-page .photo-city figure:nth-child(-n+2) { grid-column: span 6; }
.home-page .photo-city figure:nth-child(-n+2) .photo-frame { aspect-ratio: 1.12; }
.home-page .photo-city figure:nth-child(1) { margin-top: 0; }
.home-page .photo-city figure:nth-child(2) { margin-top: 1.5rem; }
.home-page .photo-city figure:nth-child(n+3) { margin-top: clamp(.4rem, 2vw, 2rem); }
.photo-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .65rem; }
.photo-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.photo-controls button:hover { background: var(--cream); color: var(--ink); }
.photo-controls span { font: .82rem ui-monospace, monospace; }
.concept-dialog { width: min(850px, calc(100% - 2rem)); }
@media (max-width: 850px) {
  #film-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .home-page .film-actions { flex-wrap: wrap; }
  .home-page .photography .photo-city { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .photo-grid:not(.photo-city) figure:nth-child(n), .home-page .photo-city figure:nth-child(n) { grid-column: auto; margin-top: 0; }
  .home-page .photo-grid:not(.photo-city) .photo-lead, .home-page .photo-city figure:first-child { grid-column: 1 / -1; }
  .home-page .photo-city figure:nth-child(n+2) .photo-frame { aspect-ratio: .88; }
  #film-index .card-logo { display: none; }
  #film-index .card-open { right: .5rem; bottom: .5rem; width: 30px; height: 30px; }
}

.homepage-page-link { display: inline-flex; gap: .6rem; align-items: center; min-height: 44px; margin-top: 1.65rem; font-weight: 650; text-decoration: underline; text-underline-offset: .27em; }
.homepage-page-link.wrap { display: flex; }
