/* Layout: loose, organic compositions of natural-ratio frames with lots of space, held by large, exact type on a concrete-grey ground. Type in negative where it crosses images. */
@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  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: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  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;
}

:root {
  /* Colour (theme "concrete") */
  --paper: #e4e4df;
  --surface: #ecece8;
  --ink: #000;
  --ink-soft: #5a5a55;
  --line: #c4c4be;
  --alert: #9e2a1f;

  /* Type */
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  --fs-lead: clamp(1.25rem, 0.9rem + 1.5vw, 2.125rem);
  --fs-xl: clamp(2.5rem, 1.2rem + 5.4vw, 6.5rem);

  /* Space */
  --gutter: clamp(16px, 2.4vw, 36px);
  --gap-x: clamp(8px, 1.1vw, 16px);
  --gap-y: clamp(22px, 2.6vw, 40px);
  --m-gap: clamp(10px, 1.4vw, 20px);
  --row-h: 58vw;
  --max-h: 86vh;
  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: light;
}
@supports (height: 1svh) {
  :root { --max-h: 86svh; }
}
:root[data-theme="white"] {
  --paper: #fff;
  --surface: #f1f1ee;
  --ink-soft: #5f5f59;
  --line: #d6d6d0;
}
:root[data-theme="black"] {
  --paper: #000;
  --surface: #131312;
  --ink: #fff;
  --ink-soft: #a2a29b;
  --line: #34342f;
  --alert: #ff8a7a;
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --row-h: 30vw; } }
@media (min-width: 1100px) { :root { --row-h: 330px; } }
@media (min-width: 1500px) { :root { --row-h: 400px; } }
@media (min-width: 2000px) { :root { --row-h: 480px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-m) / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--paper);
}
.skip:focus { left: var(--gutter); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header: fixed and in negative, so it stays readable over any image ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  color: #fff;
  mix-blend-mode: difference;
}
main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.page-home main { padding-top: 0; }
.brand {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  font-size: var(--fs-s);
}
.site-nav a {
  opacity: 0.62;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.list-count { font-variant-numeric: tabular-nums; }
.menu-toggle {
  display: none;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-s);
  cursor: pointer;
}
@media (max-width: 759px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    padding: calc(var(--header-h) + 24px) var(--gutter) max(40px, env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    color: var(--ink);
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav a { opacity: 1; }
  .site-nav a[aria-current="page"] { opacity: 0.5; text-decoration: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { mix-blend-mode: normal; color: var(--ink); }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s var(--ease);
  }
}

/* Loader (first visit only) ---------------------------------------------------- */
.loader { display: none; }
.show-loader .loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  color: var(--ink);
  animation: loader-out 0.9s var(--ease-io) 3.4s forwards; /* also leaves when scripts fail */
}
.loader-name { align-self: flex-start; font-size: var(--fs-s); font-weight: 600; }
.loader-count {
  font-size: clamp(72px, 17vw, 260px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.show-loader.is-ready .loader { transform: translateY(-100%); transition: transform 0.95s var(--ease-io); }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }

.sel-lead a,
.prose a,
.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.2s;
}
.sel-lead a:hover, .prose a:hover, .text-link:hover { text-decoration-color: currentColor; }
.page-head {
  padding: clamp(28px, 6vw, 96px) var(--gutter) clamp(24px, 4vw, 56px);
}
.page-title {
  margin: 0;
  font-size: var(--fs-l);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.page-head .prose { margin-top: 18px; color: var(--ink-soft); }

/* Contact-sheet grid -------------------------------------------------------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-y) var(--gap-x);
  margin: 0;
  padding: 0 var(--gutter) clamp(56px, 8vw, 128px);
  list-style: none;
}
.grid::after { content: ""; flex: 1000 1 0; }
/* Row breaks and widths are computed at build time (build/lib/justify.mjs), one set per breakpoint. */
.tile {
  flex: 0 0 var(--basis, calc(var(--ar) * var(--row-h)));
  min-width: 0;
}
@media (max-width: 639.98px) { .tile { --basis: var(--b0); } }
@media (min-width: 640px) and (max-width: 1099.98px) { .tile { --basis: var(--b1); } }
@media (min-width: 1100px) and (max-width: 1499.98px) { .tile { --basis: var(--b2); } }
@media (min-width: 1500px) { .tile { --basis: var(--b3); } }
.tile-link { display: block; text-decoration: none; }
.frame {
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: var(--surface);
}
.frame > img,
.frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loop { opacity: 0; transition: opacity 0.5s var(--ease); }
.loop.is-playing { opacity: 1; }
.caption {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45em;
  margin-top: 9px;
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.caption-title { font-weight: 500; }
.caption-sub { color: var(--ink-soft); }
.js .frame > img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .frame > img.is-loaded { opacity: 1; }

/* Selected strip ---------------------------------------------------------------
   Phones and touch: a loose vertical column. Desktop with a mouse: a pinned horizontal
   strip; positions come from build/lib/compose.mjs in units of the strip height (--H). */
.selected { padding: calc(var(--header-h) + clamp(24px, 7vw, 56px)) var(--gutter) clamp(56px, 14vw, 120px); }
.sel-track { display: flex; flex-direction: column; }
.sel-intro { margin-bottom: clamp(56px, 16vw, 120px); }
.sel-lead {
  max-width: 22em;
  font-size: var(--fs-lead);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sel-lead p { margin: 0; }
.sel-item {
  position: relative;
  display: block;
  width: calc(var(--mw) * 100%);
  margin-left: calc((1 - var(--mw)) * var(--mx) * 100%);
  margin-top: calc(var(--mg) * 1vw);
  text-decoration: none;
}
.sel-item .frame {
  transition: filter 0.45s var(--ease), opacity 0.9s var(--ease) calc(0.25s + var(--i) * 0.07s), transform 1.1s var(--ease) calc(0.25s + var(--i) * 0.07s);
}
.show-loader:not(.is-ready) .sel-item .frame { opacity: 0; transform: translateY(48px); }
.sel-item .caption-lead { display: none; }
.sel-item .caption-end { justify-content: inherit; }
.sel-meta, .sel-progress { display: none; }

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .selected { position: relative; height: var(--sel-h, 300vh); padding: 0; }
  .sel-sticky {
    --H: calc(100svh - var(--header-h) - clamp(64px, 10vh, 112px));
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; background: var(--paper);
  }
  .sel-track {
    position: absolute;
    top: calc(var(--header-h) + 14px);
    left: 0;
    display: block;
    width: calc(var(--W) * var(--H));
    height: var(--H);
    will-change: transform;
  }
  /* The intro stays put while the first projects pass behind it, then leaves with the strip (site.js) */
  .sel-intro {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-h) + 14px);
    left: var(--gutter);
    width: calc(var(--H) * 0.9);
    margin: 0;
    color: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    will-change: transform;
  }
  .sel-intro a { pointer-events: auto; }
  .sel-lead a .w { text-decoration: inherit; } /* words are inline-blocks, so the link underline is drawn per word */
  .sel-lead .w { display: inline-block; will-change: transform; } /* words for the lens (site.js) */
  .sel-lead { max-width: none; font-size: calc(var(--H) * 0.05); line-height: 1.08; letter-spacing: -0.03em; }
  .sel-item {
    position: absolute;
    top: calc(var(--y) * var(--H));
    left: calc(var(--x) * var(--H));
    width: auto;
    height: calc(var(--h) * var(--H));
    aspect-ratio: var(--ar);
    margin: 0;
  }
  .sel-item .frame { width: 100%; height: 100%; aspect-ratio: auto; }
  .sel-item .caption { position: absolute; top: 100%; left: 0; white-space: nowrap; }
  .sel-item .caption-end { display: none; }
  .sel-item .caption-lead { display: flex; }
  .sel-meta,
  .sel-progress {
    position: absolute;
    bottom: clamp(18px, 3.4vh, 34px);
    display: block;
    color: #fff;
    mix-blend-mode: difference;
  }
  .sel-meta { left: var(--gutter); display: flex; gap: 0.5em; margin: 0; font-size: var(--fs-s); }
  .sel-progress { right: var(--gutter); width: clamp(120px, 14vw, 240px); height: 1px; background: rgba(255, 255, 255, 0.35); margin-bottom: 0.55em; }
  .sel-progress span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
}

/* Hover: a slow push into the picture, with a "See this project" pill at the cursor ---- */
.frame > img, .frame > video { transition: opacity 0.6s var(--ease), transform 6.5s cubic-bezier(0.37, 0, 0.2, 1); } /* very slow, soft in and out */
.p-next { transition: filter 0.45s var(--ease); }
@media (hover: hover) {
  .sel-item:hover .frame > img, .sel-item:hover .frame > video,
  .lo-item a:hover .frame > img, .lo-item a:hover .frame > video,
  .tile-link:hover .frame > img, .tile-link:hover .frame > video,
  .mr-item a:hover .frame > img, .mr-item a:hover .frame > video { transform: scale(1.035); }
}
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  will-change: transform;
}
.cursor-label span {
  display: block;
  padding: 0.42em 0.8em 0.46em;
  border-radius: 999px;
  /* the bubble shows the picture in negative, darkened a little so the white text always reads */
  background: rgb(0 0 0 / 0.08);
  -webkit-backdrop-filter: invert(1) brightness(0.5) contrast(1.2);
  backdrop-filter: invert(1) brightness(0.5) contrast(1.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: scale(0) rotate(-14deg);
  transform-origin: 0 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Sound button on films of a project page: same pill as the cursor label */
.pm-sound {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0.42em 0.8em 0.46em;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.08);
  -webkit-backdrop-filter: invert(1) brightness(0.5) contrast(1.2);
  backdrop-filter: invert(1) brightness(0.5) contrast(1.2);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.pm-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cursor-label.is-on span { transform: scale(1) rotate(var(--tilt, 0deg)); }

/* Intro links: a small picture of the project follows the cursor */
.lead-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(clamp(208px, 19.5vw, 338px) * var(--pw, 1));
  pointer-events: none;
  will-change: transform;
}
.lead-preview img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(0.6) rotate(-6deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s var(--ease);
}
.lead-preview.is-on img { transform: scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }

/* About ---------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px) var(--gap-x);
  padding: clamp(96px, 14vw, 220px) var(--gutter) clamp(64px, 10vw, 160px);
}
.about-statement {
  grid-column: 1 / span 9;
  font-size: clamp(1.75rem, 0.9rem + 3.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.about-statement p { margin: 0; }
.about-portrait { grid-column: 10 / span 3; grid-row: 1 / span 3; align-self: end; margin: 0; }
.about-text { grid-column: 2 / span 5; }
.about-clients { grid-column: 2 / span 4; }
.about-clients h3 { margin: 0 0 10px; font-size: var(--fs-s); font-weight: 400; color: var(--ink-soft); }
@media (max-width: 899px) {
  .about-statement, .about-text, .about-clients { grid-column: 1 / -1; }
  .about-portrait { grid-column: 5 / -1; grid-row: auto; }
}

/* Loose project lists (More projects, categories) ----------------------------- */
.more { padding: clamp(72px, 10vw, 160px) var(--gutter) clamp(40px, 6vw, 96px); }
.page-project .more { border-top: 1px solid var(--line); }
.more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(40px, 7vw, 110px);
}
.more-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--fs-m); }
.tabs a { text-decoration: none; opacity: 0.5; transition: opacity 0.2s; }
.tabs a:hover, .tabs a[aria-current="true"] { opacity: 1; }
.tabs a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.lo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0 4vw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lo-item { width: calc(var(--w) * 100%); margin-top: calc(var(--o) * 1vw); margin-bottom: clamp(48px, 7vw, 112px); }
.lo-item[hidden] { display: none; }
.lo-item a { display: block; text-decoration: none; }
@media (max-width: 899px) {
  .lo-list { display: block; }
  .lo-item { width: calc(var(--mw) * 100%); margin: 0 0 14vw calc((1 - var(--mw)) * var(--side) * 100%); }
}

/* More projects on a project page: one loose row ----------------------------- */
.more-row { padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); }
.more-row .more-head { padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vw, 56px); }
.mr-scroll {
  --row: clamp(200px, 26vw, 420px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.mr-scroll::-webkit-scrollbar { display: none; }
.mr-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter) 8px;
  list-style: none;
}
.mr-item { flex: none; margin-left: calc(var(--gap) * var(--row)); padding-top: calc(var(--dy) * var(--row)); }
.mr-item:first-child { margin-left: 0; }
.mr-item a { display: block; text-decoration: none; }
.mr-item .frame { height: calc(var(--h) * var(--row)); width: auto; aspect-ratio: var(--ar); }
@media (max-width: 899px) {
  /* Two projects side by side, the next one peeking in */
  .mr-scroll { --row: 39vw; scroll-snap-type: x proximity; }
  .mr-item { width: calc(var(--mw, 1) * 39vw); margin-left: calc(var(--gap) * 22vw); scroll-snap-align: start; }
  .mr-item .frame { width: 100%; height: auto; }
}

/* Project ------------------------------------------------------------------- */
.has-color {
  --paper: var(--bg);
  --ink: var(--fg);
  --ink-soft: color-mix(in srgb, var(--fg) 64%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 24%, var(--bg));
  --surface: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.p-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px) var(--gap-x);
  padding: clamp(40px, 9vw, 150px) var(--gutter) clamp(56px, 9vw, 150px);
}
.p-cat { grid-column: 1 / -1; margin: 0; font-size: var(--fs-s); }
.p-cat a { text-decoration: none; color: var(--ink-soft); }
.p-cat a:hover { color: var(--ink); }
.p-title, .project-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(3rem, 1rem + 8.4vw, 10rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.p-title .sub, .project-title .sub {
  display: block;
  margin-top: 0.28em;
  color: var(--ink-soft);
  font-size: 0.36em;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.p-info { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; }
.p-text { grid-column: 6 / span 6; }
@media (max-width: 899px) { .p-info, .p-text { grid-column: 1 / -1; } }
.facts { display: grid; gap: 8px; margin: 0; font-size: var(--fs-s); align-content: start; }
.facts div { display: grid; grid-template-columns: minmax(6.5em, 30%) 1fr; gap: 12px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; min-width: 0; }
.facts a { text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.8em 0 0.5em; font-size: var(--fs-m); font-weight: 600; }
.prose h2 { margin: 2.4em 0 0.4em; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); font-weight: 500; }
.prose h4 { margin: 1.4em 0 0.3em; font-size: inherit; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.1em; }

/* Project media: placed loosely by composeMedia (sizes, positions, overlaps) */
.p-media { display: flow-root; padding: 0 var(--gutter) clamp(72px, 11vw, 180px); }
.pm {
  position: relative;
  width: calc(var(--w) * 100%);
  margin: 0;
  margin-left: calc((1 - var(--w)) * var(--x) * 100%);
  margin-top: calc(var(--gap) * 1vw - var(--pull) * 100%);
}
.pm .frame { aspect-ratio: var(--ar); }
@media (max-width: 899px) {
  .pm {
    width: calc(var(--mw) * 100%);
    margin-left: calc((1 - var(--mw)) * var(--mx) * 100%);
    margin-top: calc(var(--mgap) * 1vw - var(--mpull) * 100%);
  }
}
.m-zoom { display: block; cursor: zoom-in; }
.film { width: 100%; }
.film-frame { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--surface); }
.film-frame iframe, .film-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film-facade { position: absolute; inset: 0; display: block; color: #fff; }
.film-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--fs-s);
  font-weight: 500;
  transition: background-color 0.2s;
}
.film-facade:hover .film-play, .film-facade:focus-visible .film-play { background: rgba(0, 0, 0, 0.8); }
.film-title { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--ink-soft); }
.p-next {
  display: block;
  padding: clamp(56px, 9vw, 150px) var(--gutter);
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.p-next span { display: block; margin-bottom: 10px; font-size: var(--fs-s); color: var(--ink-soft); }
.p-next strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
@media (hover: hover) { .p-next:hover { filter: invert(1); background: var(--paper); } }

/* Prints ------------------------------------------------------------------- */
.print-meta { margin-top: 3px; font-size: var(--fs-xs); line-height: 1.35; color: var(--ink-soft); }
.list-toggle {
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-xs);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.list-toggle.is-on { background: var(--ink); color: var(--paper); }
.list-toggle[hidden] { display: none; }
.sold { display: inline-block; margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-soft); }
.request {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap-x);
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(56px, 8vw, 128px);
  border-top: 1px solid var(--line);
}
.request-head { grid-column: 1 / span 5; }
.request-head h2 { margin: 0 0 16px; font-size: var(--fs-l); font-weight: 400; letter-spacing: -0.022em; line-height: 1.1; }
.request .form { grid-column: 7 / span 6; }
@media (max-width: 899px) {
  .request-head, .request .form { grid-column: 1 / -1; }
}
.list-items { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: var(--fs-s); }
.list-items img { width: 56px; height: 56px; object-fit: cover; background: var(--surface); }
.list-items small { display: block; color: var(--ink-soft); font-size: var(--fs-xs); }
.list-remove {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--fs-xs);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.list-remove:hover { color: var(--ink); }
.list-empty { margin: 0; color: var(--ink-soft); font-size: var(--fs-s); max-width: 40ch; }
.list-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-s);
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}
.list-bar a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.print {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap-x);
  align-items: start;
  padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(56px, 8vw, 128px);
}
.print-figure { grid-column: 1 / span 8; margin: 0; }
.print-figure .frame { width: min(100%, calc(var(--ar) * var(--max-h))); }
.print-info { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.print-info .project-title { font-size: var(--fs-l); letter-spacing: -0.025em; line-height: 1.05; }
.print-info .list-toggle { justify-self: start; margin: 0; font-size: var(--fs-s); padding: 10px 18px; }
.back { font-size: var(--fs-s); color: var(--ink-soft); text-decoration: none; }
.back:hover { color: var(--ink); }
@media (max-width: 899px) {
  .print-figure, .print-info { grid-column: 1 / -1; }
  .print-info { position: static; }
}

/* Info --------------------------------------------------------------------- */
.info {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) var(--gap-x);
  padding: clamp(28px, 6vw, 96px) var(--gutter) clamp(56px, 8vw, 128px);
}
.info-portrait { grid-column: 1 / span 4; margin: 0; }
.info-body { grid-column: 6 / span 7; display: grid; gap: 40px; align-content: start; }
.lead p:first-child {
  font-size: var(--fs-lead);
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.info-lists { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 32px var(--gap-x); }
.info-lists h2, .contact h2 { margin: 0 0 12px; font-size: var(--fs-s); font-weight: 400; color: var(--ink-soft); }
.names { margin: 0; padding: 0; list-style: none; font-size: var(--fs-s); line-height: 1.6; }
.contact { grid-column: 6 / span 7; }
.contact .form { max-width: 34rem; }
@media (max-width: 899px) {
  .info-portrait { grid-column: 1 / span 9; }
  .info-body, .info-lists, .contact { grid-column: 1 / -1; }
}

/* Legal pages and messages */
.text-page { padding: clamp(28px, 6vw, 96px) var(--gutter) clamp(56px, 8vw, 128px); }
.text-page .prose { margin-top: 28px; }
.notice { padding: clamp(48px, 10vw, 160px) var(--gutter); }
.notice p { max-width: 40ch; }

/* Forms -------------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 4px; }
.field label { font-size: var(--fs-xs); color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-m);
}
.field textarea { min-height: 7.5em; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--alert); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 500;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: progress; }
.form-status { margin: 0; font-size: var(--fs-s); }
.form-status[data-state="error"] { color: var(--alert); }
.form-note { margin: 0; font-size: var(--fs-xs); color: var(--ink-soft); }

/* Lightbox ----------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: var(--paper); }
.lb-figure {
  position: absolute;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  margin: 0;
}
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: var(--fs-s);
}
.lb-count { margin-right: auto; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lb-btn {
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: var(--gutter); }
.lb-btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  display: grid;
  gap: clamp(48px, 8vw, 128px);
  padding: clamp(72px, 11vw, 180px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
/* "It's a match?" rolls over to "Let's talk." and opens a mail */
.f-match {
  display: inline-block;
  font-size: clamp(3rem, 0.6rem + 10vw, 12rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.f-roll { display: grid; height: 1em; overflow: hidden; padding-bottom: 0.08em; box-sizing: content-box; }
.f-roll > span { grid-area: 1 / 1; white-space: nowrap; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.f-roll > span + span { transform: translateY(110%); }
.f-match:hover .f-roll > span:first-child, .f-match:focus-visible .f-roll > span:first-child { transform: translateY(-110%); }
.f-match:hover .f-roll > span + span, .f-match:focus-visible .f-roll > span + span { transform: none; }
.f-address { margin: 14px 0 0; font-size: var(--fs-m); color: var(--ink-soft); }
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 32px var(--gap-x); font-size: var(--fs-s); }
.f-col { display: grid; gap: 6px; align-content: start; margin: 0; }
.f-col a { text-decoration: none; }
.f-col a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.f-studio { display: block; color: var(--ink-soft); }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-xs); color: var(--ink-soft); }
.f-base p { margin: 0; }
.f-base a { margin-right: 16px; text-decoration: none; }
.f-base a:hover { color: var(--ink); }
.has-list-bar .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
