:root {
  --ink: oklch(20% 0.01 260);
  --bg: oklch(97% 0.004 260);
  --bg-alt: oklch(95% 0.006 260);
  --sub: oklch(55% 0.01 260);
  --line: oklch(88% 0.005 260);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sub); }
::selection { background: var(--ink); color: var(--bg); }

.serif {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 400;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 16px;
}

/* ---------- language toggle ---------- */
[data-lang] { display: none; }
html[data-lang-active="no"] [data-lang="no"] { display: block; }
html[data-lang-active="en"] [data-lang="en"] { display: block; }
html[data-lang-active="no"] a[data-lang="no"],
html[data-lang-active="en"] a[data-lang="en"] { display: inline; }
html[data-lang-active="no"] span[data-lang="no"],
html[data-lang-active="en"] span[data-lang="en"] { display: inline; }

/* ---------- scroll-to-top ---------- */
.scroll-top-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px -8px color-mix(in oklch, var(--ink) 30%, transparent), inset 0 0 0 1px color-mix(in oklch, white 60%, transparent);
}
.scroll-top-btn.visible { display: flex; }
.scroll-top-btn svg { stroke: var(--ink); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.site-nav.hidden { transform: translateY(-100%); }

/* ---------- brand lockup (logo) ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: auto; display: block; flex: none; }
.brand-name { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; font-size: 14px; letter-spacing: 0.02em; }
.nav-links a { white-space: nowrap; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-toggle button {
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  font-weight: 400;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: transparent; }

/* ---------- hero ---------- */
.hero {
  min-height: min(92svh, 1000px);
  display: flex;
  align-items: flex-end;
  padding: clamp(64px, 12vh, 160px) clamp(20px, 5vw, 64px) clamp(48px, 9vh, 104px);
}
.hero-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-grid > div { max-width: 1120px; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}
.hero p.sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: color-mix(in oklch, var(--ink) 75%, transparent);
  max-width: 46ch;
  margin-top: 24px;
}
.hero h1.hero-statement { font-size: clamp(34px, 5.4vw, 80px); line-height: 1.06; letter-spacing: -0.012em; }
.hero-kicker {
  margin: clamp(24px, 3vw, 40px) 0 0 0;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
}
.hero-body { max-width: 56ch; }
.hero-body p {
  margin: 18px 0 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: color-mix(in oklch, var(--ink) 75%, transparent);
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- section shells ---------- */
.section { padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 64px); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); }
.section-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--sub);
  max-width: 62ch;
  margin: 16px 0 40px 0;
}

/* ---------- work ---------- */
.work-header { margin-bottom: clamp(32px, 5vw, 56px); }
.work-count {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 0.38em;
  vertical-align: super;
  margin-left: 0.3em;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) 32px;
}
.work-card--feature { grid-column: 1 / -1; }
.work-card--feature .work-card-media { aspect-ratio: 21 / 9; }
.work-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 30px -18px color-mix(in oklch, var(--ink) 25%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 70%, transparent),
    inset 0 0 0 1px color-mix(in oklch, white 45%, transparent);
}
.work-card-media img,
.work-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* `scale` composes with the inline letterbox `transform: scale()` on some videos */
.work-card-media > :is(img, video, iframe) { transition: scale 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.work-card-link:hover .work-card-media > :is(img, video, iframe) { scale: 1.035; }
/* 16:9 player scaled to cover the 4:3 card, sides cropped */
.work-card-media iframe {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: var(--video-ratio, 16 / 9);
  transform: translateX(-50%);
  border: 0;
  display: block;
  pointer-events: none;
}
.work-card-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in oklch, var(--ink) 6%, var(--bg-alt)), color-mix(in oklch, var(--ink) 12%, var(--bg-alt)));
}
.work-card-media.placeholder span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
}

/* ---------- work card dropdown info ---------- */
.work-details { margin-top: 14px; border-top: 1px solid var(--line); }
.work-details summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
}
.work-details summary::-webkit-details-marker { display: none; }
.work-details h3 { font-family: 'PT Serif', Georgia, serif; font-size: 20px; font-weight: 400; margin: 0; line-height: 1.25; }
.card-num {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.card-num { min-width: 2.4em; }

/* ---------- stills page: square-tile grid (images uncropped inside each tile) ---------- */
.stills-page { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px); }
.stills-head { margin-bottom: clamp(36px, 6vw, 72px); }
.stills-head h1 { margin: 0; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.015em; }
.stills-sub { margin: 16px 0 0 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.stills-for { margin: 8px 0 0 0; font-size: 13px; color: var(--sub); }
.stills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.3s ease; }
.tile:hover img { opacity: 0.82; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[data-view][hidden] { display: none; }
/* ?nr: number on each photo, matching its file name */
.show-nr .stills-grid { counter-reset: photo; }
.show-nr .tile { position: relative; counter-increment: photo; }
.show-nr .tile::after {
  content: counter(photo, decimal-leading-zero);
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}

/* view switcher in the nav: Contact / Stills / Moving */
.view-links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.view-links a { color: var(--sub); padding: 4px 0; border-bottom: 1px solid transparent; }
.view-links a:hover { color: var(--ink); }
.view-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* moving: films as tiles that play on hover */
.moving-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) 20px; }
.film-tile { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.film-tile .work-card-media { aspect-ratio: 16 / 9; }
.film-tile:hover .work-card-media > :is(img, video, iframe) { scale: 1.035; }
.film-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* caption row under each film: number · title + meta · role */
.film-tile-cap {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.film-tile-num { font-size: 12px; letter-spacing: 0.06em; color: var(--sub); font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.film-tile-text { min-width: 0; }
.film-tile-title {
  display: inline;
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.film-tile-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--sub); }
.film-tile-role { max-width: 15em; text-align: right; font-size: 11px; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }
.film-tile:hover .film-tile-title,
.film-tile:focus-visible .film-tile-title { background-size: 100% 1px; }
.film-tile:hover .film-tile-num { color: var(--ink); }
@media (max-width: 720px) {
  .film-tile-cap { grid-template-columns: 2.4em minmax(0, 1fr); }
  .film-tile-role { grid-column: 2; text-align: left; max-width: none; margin-top: 4px; }
}

/* heading for each view: name on the left, count on the right */
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.view-name { margin: 0; font-family: 'PT Serif', Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.view-count { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sub); white-space: nowrap; }
.contact-view .view-head { align-self: stretch; }

html.has-cursor .film-tile { cursor: none; }

/* contact */
.contact-view { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(24px, 6vw, 80px) 0 clamp(80px, 12vw, 160px); }
.contact-view > a { font-size: clamp(28px, 4.4vw, 60px); line-height: 1.15; color: var(--ink); border-bottom: 1px solid transparent; }
.contact-view > a:hover { border-bottom-color: var(--ink); }
.contact-view p { margin: 28px 0 0 0; font-size: 14px; color: var(--sub); }
.contact-view p a { color: var(--ink); border-bottom: 1px solid var(--line); }

@media (max-width: 1100px) { .stills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones: one column at the images' own proportions, so stills stay large */
@media (max-width: 720px) {
  .stills-grid { grid-template-columns: 1fr; gap: 14px; }
  .tile { aspect-ratio: auto; }
  .tile img { height: auto; }
}

/* ---------- film modal: large still + what Mikael did (light, like the grid) ---------- */
.film-modal {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.film-modal::backdrop { background: var(--bg); }
.film-modal[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(56px, 6vw, 80px) clamp(64px, 6vw, 96px);
}
.film-modal-media { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.film-modal-media > img { max-width: 100%; max-height: calc(100vh - 2 * clamp(56px, 6vw, 80px)); object-fit: contain; display: block; }
/* the playing film: as large as fits, at its own aspect ratio */
.fm-player {
  aspect-ratio: var(--ratio);
  width: min(100%, calc((100vh - 2 * clamp(56px, 6vw, 80px)) * var(--rw)));
  background: #000;
}
.fm-player > * { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.film-modal-info button.fm-watch { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 2px 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.film-modal-info .fm-watch:hover { border-bottom-color: var(--ink); }
.film-modal-info .eyebrow { margin-bottom: 10px; }
/* photographs: the picture alone, centred, counter in the corner */
.film-modal.is-photo[open] { grid-template-columns: minmax(0, 1fr); }
/* a film: one scrolling column. The film as large as the screen allows, the text under it, then stills one per row */
.fm-stills { display: none; }
.film-modal.is-film[open] {
  display: block;
  overflow-y: auto;
  padding: clamp(56px, 5vw, 72px) clamp(72px, 7vw, 112px) clamp(72px, 8vw, 120px);
  --film-w: min(100%, calc((100vh - 2 * clamp(56px, 5vw, 72px)) * var(--rw, 1.7778)));
}
.film-modal.is-film .film-modal-media { height: auto; min-height: 0; }
.film-modal.is-film .fm-player { width: var(--film-w); }
.film-modal.is-film .film-modal-info,
.film-modal.is-film .fm-stills { width: var(--film-w); margin-inline: auto; }
.film-modal.is-film .film-modal-info {
  margin-top: clamp(28px, 3vw, 44px);
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.film-modal.is-film .film-modal-info > :not(dl) { grid-column: 1; max-width: 62ch; }
.film-modal.is-film .film-modal-info dl { grid-column: 2; grid-row: 1 / span 8; margin-top: 0; }
@container (max-width: 640px) {
  .film-modal.is-film .film-modal-info > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .film-modal.is-film .film-modal-info dl { margin-top: 24px; }
}
.film-modal.is-film.has-stills .fm-stills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
/* a series: further films under the main one, one per row, title underneath */
.fm-more { display: none; }
.film-modal.is-film.has-more .fm-more {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  width: var(--film-w);
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.fm-more .eyebrow { margin: 0; }
.fm-more-item { margin: 0; }
.film-modal.is-film .fm-more .fm-player { width: 100%; }
/* the same films on a project page of the main site */
.project-more.fm-more {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.project-more .fm-more-item { justify-self: center; width: min(100%, calc(88vh * var(--rw, 1.7778))); }
.project-more .fm-player { width: 100%; }
.fm-more-item figcaption { margin-top: 14px; font-family: 'PT Serif', Georgia, serif; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.fm-stills img,
.project-stills img { display: block; width: auto; height: auto; max-width: 100%; max-height: 92vh; justify-self: center; }
.film-modal.is-film .film-modal-info h2 { font-size: clamp(34px, 3.8vw, 60px); line-height: 1.04; letter-spacing: -0.01em; }
.film-modal.is-film .film-modal-info .fm-note { font-size: clamp(17px, 1.3vw, 20px); }
/* previous / next film at the foot of the window */
.fm-pager { display: none; }
.film-modal.is-film .fm-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: var(--film-w);
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.fm-pager-btn { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fm-pager-btn[data-step="1"] { align-items: flex-end; text-align: right; }
.fm-pager-btn .eyebrow { margin: 0; }
.fm-pager-title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fm-pager-btn[data-step="1"] .fm-pager-title { background-position: 100% 100%; }
.fm-pager-btn:hover .fm-pager-title,
.fm-pager-btn:focus-visible .fm-pager-title { background-size: 100% 1px; }
/* entrance: the window fades in, its contents rise into place one after another */
@keyframes fm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fm-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.motion .film-modal[open] { animation: fm-fade 0.35s ease both; }
html.motion .film-modal[open]::backdrop { animation: fm-fade 0.35s ease both; }
html.motion .film-modal.is-entering .film-modal-media { animation: fm-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.motion .film-modal.is-entering .film-modal-info { animation: fm-rise 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.motion .film-modal.is-entering .fm-stills,
html.motion .film-modal.is-entering .fm-more,
html.motion .film-modal.is-entering .fm-pager { animation: fm-rise 0.8s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
.film-modal .film-modal-btn { position: fixed; }
.film-modal.is-photo .film-modal-info { position: absolute; left: clamp(20px, 2vw, 28px); top: 26px; }
.film-modal.is-photo .film-modal-info .eyebrow { margin: 0; }
.film-modal-info h2 { margin: 0; font-family: 'PT Serif', Georgia, serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.film-modal-info .fm-meta { margin: 8px 0 0 0; font-size: 14px; color: var(--sub); }
.film-modal-info .fm-note { margin: 24px 0 0 0; font-size: 17px; line-height: 1.6; }
.film-modal-info dl { margin: 24px 0 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.film-modal-info dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); padding-top: 3px; }
.film-modal-info dd { margin: 0; font-size: 15px; }
.film-modal-info .fm-desc { margin: 20px 0 0 0; font-size: 15px; line-height: 1.65; color: color-mix(in oklch, var(--ink) 75%, transparent); }
.film-modal-info .fm-watch { display: inline-block; margin-top: 24px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.film-modal-btn {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.film-modal-btn:hover { border-color: var(--ink); }
.film-modal-prev { left: 16px; top: 50%; translate: 0 -50%; }
.film-modal-next { right: 16px; top: 50%; translate: 0 -50%; }
.film-modal-close { right: 16px; top: 16px; }
@media (max-width: 820px) {
  .film-modal[open] { grid-template-columns: 1fr; align-content: start; overflow-y: auto; padding: 64px 20px 96px; gap: 20px; }
  .film-modal-media { height: auto; }
  .film-modal-media > img { max-height: 60vh; }
  .fm-player { width: min(100%, calc(60vh * var(--rw))); }
  .film-modal.is-film[open] { padding: 64px 20px 96px; --film-w: min(100%, calc(70vh * var(--rw, 1.7778))); }
  .film-modal-prev, .film-modal-next { position: fixed; top: auto; bottom: 20px; translate: none; }
  .film-modal-prev { left: 20px; }
  .film-modal-next { right: 20px; }
  .film-modal-close { position: fixed; }
}
.work-details .chevron { align-self: center; }
.work-details .chevron { stroke: var(--sub); flex: none; transition: transform 0.2s ease; }
.work-details[open] .chevron { transform: rotate(180deg); }
.work-details-body { padding: 0 0 16px 0; }
.work-card .client { font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.work-card .desc { font-size: 14px; line-height: 1.6; color: color-mix(in oklch, var(--ink) 78%, transparent); margin: 0 0 10px 0; }
.work-card .role { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sub); }
.work-card .role strong { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.work-card .watch-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}


/* ---------- contact ---------- */
.contact-section {
  padding: clamp(64px, 11vw, 130px) clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-deco {
  position: absolute;
  right: clamp(-120px, -6vw, -40px);
  bottom: clamp(-90px, -5vw, -30px);
  width: clamp(260px, 34vw, 520px);
  height: auto;
  color: var(--bg);
  opacity: 0.07;
  pointer-events: none;
}
.contact-inner { max-width: 820px; margin: 0 auto; position: relative; }
.contact-section .eyebrow { color: color-mix(in oklch, var(--bg) 65%, transparent); }
.contact-section h2 { margin: 0; font-size: clamp(32px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.01em; }
.contact-section p.body { font-size: 17px; line-height: 1.6; margin-top: 20px; color: color-mix(in oklch, var(--bg) 80%, transparent); }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-outline-light { border: 1px solid color-mix(in oklch, var(--bg) 40%, transparent); color: var(--bg); }
.btn-outline-light:hover { color: var(--bg); border-color: var(--bg); }
.contact-email { margin-top: 16px; font-size: 13px; letter-spacing: 0.02em; color: color-mix(in oklch, var(--bg) 60%, transparent); }
.contact-email a { color: inherit; }
.contact-email a:hover { color: var(--bg); }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  padding: 24px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: color-mix(in oklch, var(--ink) 55%, transparent);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- front-page card link ---------- */
.work-card-link { display: block; }
.work-card-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 18px; }
a.wordmark { color: var(--ink); cursor: pointer; }

/* ---------- project page ---------- */
.project-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(56px, 9vw, 100px);
}

/* --film-rw = width/height, so tall films are capped by viewport height */
.film-player {
  position: relative;
  display: block;
  aspect-ratio: var(--film-ratio, 16 / 9);
  width: min(100%, calc(80vh * var(--film-rw, 1.7778)));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 16px 30px -18px color-mix(in oklch, var(--ink) 25%, transparent);
}
button.film-player { cursor: pointer; }
.film-player img,
.film-player iframe,
.film-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.film-player.is-playing video { object-fit: contain; background: #000; }
.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.9;
  filter: drop-shadow(0 4px 18px rgb(0 0 0 / 0.45));
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.film-play svg { width: 64px; height: 64px; }
.film-player:is(button, a):hover .film-play,
.film-player:is(button, a):focus-visible .film-play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.film-missing {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgb(0 0 0 / 0.55);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.project-title {
  margin: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px) 0;
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.project-meta { display: block; margin-top: 0.35em; font-size: 0.42em; letter-spacing: 0; color: var(--sub); }
/* credits block: small uppercase labels, values in ink */
.project-info {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.project-info h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 12px 0;
}
.project-info p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.info-about p { color: color-mix(in oklch, var(--ink) 78%, transparent); max-width: 52ch; }
/* stills from the film, under the credits */
.project-stills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- motion: hero word reveal + scroll reveals ---------- */
html.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
html.motion .wi {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 30ms + 120ms);
}
html.motion.is-loaded .wi { transform: none; }

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- "Se film" cursor (fine pointers only, added by JS) ---------- */
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  /* no animation in or out: shown only while the pointer is over a film */
  display: none;
}
.cursor-label.is-active { display: flex; }
html.has-cursor .work-card-link { cursor: none; }

/* ---------- film grain ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- page transitions (card image morphs into the film player) ---------- */
@view-transition { navigation: auto; }
.film-player { view-transition-name: film; }
::view-transition-group(film) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .work-card-media > :is(img, video, iframe) { transition: none; }
  .work-card-link:hover .work-card-media > :is(img, video, iframe) { scale: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none !important; }
  .site-nav:has(.view-links) .brand-name { display: none; }
  .moving-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr !important; }
  .work-card--feature .work-card-media { aspect-ratio: 4 / 3; }
  .hero { min-height: 0; }
  .brand-name { letter-spacing: 0.26em; }
  .project-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .info-about { grid-column: 1 / -1; }
}
