/* ==========================================================================
   ZENITH SCHMITZ — DOP / DIRECTOR
   Paper for the work index, ink for the films.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  /* paper */
  --paper:        #F1EFEA;
  --paper-warm:   #E8E4DC;
  --ink:          #14120F;
  --ink-soft:     #56514A;
  --ink-faint:    #9A948A;
  --rule:         rgba(20, 18, 15, .16);
  --rule-faint:   rgba(20, 18, 15, .08);

  /* ink surface (film pages) */
  --black:        #0B0A09;
  --black-raised: #121110;
  --chalk:        #EDEAE4;
  --chalk-soft:   #8E8981;
  --rule-dark:    rgba(237, 234, 228, .16);

  --bg:    var(--paper);
  --fg:    var(--ink);
  --soft:  var(--ink-soft);
  --faint: var(--ink-faint);
  --line:  var(--rule);
  --line-faint: var(--rule-faint);

  --font-sans:  'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;

  --gutter: clamp(16px, 3.4vw, 52px);
  --gap:    clamp(14px, 1.9vw, 30px);
  --bar:    62px;

  --ease:   cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

[data-surface='ink'] {
  --bg:    var(--black);
  --fg:    var(--chalk);
  --soft:  var(--chalk-soft);
  --faint: #6A655E;
  --line:  var(--rule-dark);
  --line-faint: rgba(237, 234, 228, .07);
}

/* --- reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }

::selection { background: var(--fg); color: var(--bg); }

/* a class that sets display must never beat the hidden attribute */
[hidden] { display: none !important; }

.nobr { white-space: nowrap; }

/* --- type scale --------------------------------------------------------- */

.mono {
  font-family: var(--font-mono);
  font-size: clamp(9.5px, .74vw, 11.5px);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
}

.mono--sm { font-size: clamp(8.5px, .66vw, 10px); letter-spacing: .13em; }

.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
}

.serif   { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* --- layout ------------------------------------------------------------- */

.shell { padding-inline: var(--gutter); }

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* --- masthead ----------------------------------------------------------- */

.mast {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar);
  padding-inline: var(--gutter);
  mix-blend-mode: normal;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}

.mast::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}

.mast.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.mast.is-stuck::after { transform: scaleX(1); }
.mast.is-hidden { transform: translateY(-101%); }

/* name with the role set small underneath, as one lockup */
.mast__id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.mast__name {
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.mast__role { color: var(--faint); }

.mast__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 32px);
}

.navlink { position: relative; padding-block: 4px; color: var(--soft); transition: color .3s var(--ease); }
.navlink::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.navlink:hover, .navlink.is-active { color: var(--fg); }
.navlink:hover::after, .navlink.is-active::after { transform: scaleX(1); transform-origin: left; }

.mast__burger { display: none; }

/* --- hero --------------------------------------------------------------- */

.hero {
  padding-top: calc(var(--bar) + clamp(28px, 8vh, 96px));
  padding-bottom: clamp(24px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}

.hero__type { grid-column: 1 / 9; }

.hero__title {
  font-size: clamp(42px, 11.2vw, 184px);
  margin: 0;
}

.hero__title span { display: block; overflow: hidden; }
.hero__title i {
  display: block;
  font-style: normal;
  transform: translateY(102%);
  animation: rise 1.15s var(--ease) forwards;
}
.hero__title span:nth-child(2) i { animation-delay: .09s; }

@keyframes rise { to { transform: translateY(0); } }

/* with the showreel parked, the name block may use the full width */
.hero__grid:has(> .hero__frame[hidden]) .hero__type { grid-column: 1 / 13; }

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

.hero__frame {
  grid-column: 9 / 13;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
  opacity: 0;
  animation: fade 1.1s var(--ease) .3s forwards;
}
.hero__frame img, .hero__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* the moving overlay, either an mp4 or an animated gif/webp */
.hero__loop { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__loop.is-on { opacity: 1; }

.hero__reel {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: background .35s var(--ease), gap .35s var(--ease);
}
.hero__reel:hover { background: var(--ink); color: var(--paper); gap: 14px; }
.hero__reel svg { width: 8px; height: 10px; fill: currentColor; flex: none; }

/* --- ticker ------------------------------------------------------------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 13px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 62s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__track span {
  padding-inline: 20px;
  color: var(--soft);
  white-space: nowrap;
}
.ticker__track span::after { content: '·'; margin-left: 40px; color: var(--faint); }

@keyframes slide { to { transform: translateX(-50%); } }

/* --- section head ------------------------------------------------------- */

.sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(28px, 4.2vw, 56px) clamp(16px, 2vw, 26px);
  color: var(--soft);
}
.sechead b { font-weight: 400; color: var(--fg); }

/* --- work grid ---------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: row dense;
  /* rows stagger, so a lowered tile sits right above the next row's raised
     one — the row gap is that minimum breathing room */
  gap: clamp(46px, 5vw, 84px) var(--gap);
  padding-bottom: clamp(60px, 9vw, 150px);
  align-items: start;
}

.tile {
  grid-column: var(--cs, auto) / span var(--cw, 4);
  margin-top: var(--drop, 0);
  display: block;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.tile.is-in { opacity: 1; transform: none; }

.tile__frame {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  background: var(--paper-warm);
}

.tile__frame > img,
.tile__frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease), opacity .6s var(--ease), filter 1s var(--ease);
}

/* the hover overlay — an mp4 or an animated gif/webp, same treatment either way */
.tile__loop { opacity: 0; z-index: 1; }
.tile.is-playing .tile__loop { opacity: 1; }
.tile:hover .tile__frame > img,
.tile:hover .tile__frame > video { transform: scale(1.035); }

/* thin inner keyline — reads as a print frame */
.tile__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--line-faint);
  pointer-events: none;
}

.tile__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 11px;
  color: var(--soft);
}
.tile__idx { color: var(--faint); flex: none; }
.tile__client { color: var(--fg); }
.tile__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(12px, .96vw, 15px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--soft);
}
.tile__year { margin-left: auto; color: var(--faint); flex: none; }

/* Strict: every tile the same 16:9 frame, in straight, top-aligned rows.
   A project's col, drop and ratio are ignored here but kept for 'editorial'. */
.grid.grid--strict {
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(16px, 2.2vw, 36px);
}
.grid--strict .tile { grid-column: auto; margin-top: 0; }
.grid--strict .tile__frame { aspect-ratio: 16 / 9; }

@media (max-width: 1080px) {
  .grid.grid--strict { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid.grid--strict { grid-template-columns: minmax(0, 1fr); }
  .grid--strict .tile { grid-column: 1 / -1 !important; }
}

/* A narrow tile would squeeze the caption until the client name snaps in
   half. Below 260px the title drops to its own line instead, under the name. */
.tile { container-type: inline-size; }
@container (max-width: 260px) {
  .tile__meta { flex-wrap: wrap; row-gap: 3px; }
  .tile__title { order: 1; flex-basis: 100%; }
}

/* same layout, but set from JS the moment a name actually wraps */
.tile__meta--stack { flex-wrap: wrap; row-gap: 3px; }
.tile__meta--stack .tile__title { order: 1; flex-basis: 100%; }

/* --- index list (alternate view) ---------------------------------------- */

.list { border-top: 1px solid var(--line); padding-bottom: clamp(60px, 9vw, 140px); }

.listrow {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1fr 5rem;
  gap: 16px;
  align-items: baseline;
  padding-block: clamp(13px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line-faint);
  color: var(--soft);
  position: relative;
  transition: color .35s var(--ease), padding-left .45s var(--ease);
}
.listrow:hover { color: var(--fg); padding-left: 12px; }
.listrow__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(13px, 1vw, 16px); text-transform: none; letter-spacing: 0; }

.viewtoggle { display: inline-flex; align-items: baseline; gap: clamp(14px, 1.5vw, 24px); }
.viewtoggle button {
  font-size: clamp(11px, .95vw, 14px);
  letter-spacing: .09em;
  color: var(--faint);
  transition: color .3s var(--ease);
}
.viewtoggle button.is-on { color: var(--fg); }
/* the archive sits a step below the two main views */
.viewtoggle button.viewtoggle__archive { font-size: clamp(9.5px, .78vw, 11.5px); }

/* --- footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 4vw, 54px) clamp(18px, 2.2vw, 30px);
}

.foot__cta {
  display: block;
  font-size: clamp(30px, 8.6vw, 132px);
  padding-bottom: clamp(20px, 3vw, 44px);
  color: var(--fg);
}
.foot__cta span { display: inline-block; transition: transform .6s var(--ease); }
.foot__cta:hover span { transform: translateX(min(2.4vw, 26px)); }

/* long strings (an email) need a smaller ceiling than a two word CTA */
.bigmail {
  display: block;
  font-size: clamp(18px, 4.5vw, 62px);
  letter-spacing: -.035em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  padding-bottom: clamp(18px, 2.6vw, 38px);
}

.foot__rows {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  color: var(--soft);
}
.foot__col { grid-column: span 4; display: flex; flex-direction: column; gap: 5px; }
.foot__col h4 { color: var(--faint); font: inherit; font-weight: 400; margin-bottom: 5px; }
.foot__col a { width: fit-content; position: relative; }
.foot__col a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.foot__col a:hover { color: var(--fg); }
.foot__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(30px, 4vw, 56px);
  color: var(--faint);
}

/* --- about -------------------------------------------------------------- */

.about { padding-top: calc(var(--bar) + clamp(32px, 9vh, 110px)); }

.about__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-bottom: clamp(30px, 5vw, 70px);
}
.about__kicker { grid-column: 1 / 3; color: var(--faint); }
.about__lede {
  grid-column: 3 / 13;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 54px);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.about__lede em { font-style: italic; }

.about__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(26px, 3vw, 44px) var(--gap);
  border-top: 1px solid var(--line);
  padding-block: clamp(26px, 3.4vw, 46px);
}
.about__portrait { grid-column: 1 / 5; }
/* 3:4 like a phone portrait; should a taller photo ever go in, the crop comes
   off the bottom so the top of the head is never cut */
.about__portrait .tile__frame { aspect-ratio: 3 / 4; }
.about__portrait .tile__frame img { object-position: 50% 0; }
.about__text { grid-column: 6 / 12; display: flex; flex-direction: column; gap: 1.1em; }
.about__text p { font-size: clamp(14px, 1.07vw, 17px); line-height: 1.62; color: var(--soft); max-width: 60ch; }

.deflist { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.deflist div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--soft);
}
.deflist dt { color: var(--faint); }
.deflist dd { margin: 0; color: var(--fg); }

.clientgrid {
  columns: 3;
  column-gap: var(--gap);
  color: var(--soft);
  line-height: 2;
}
@media (max-width: 620px) { .clientgrid { columns: 2; } }

.colspan { grid-column: 1 / 13; }

/* --- contact ------------------------------------------------------------ */

.contact__lead {
  padding-top: calc(var(--bar) + clamp(40px, 12vh, 140px));
  padding-bottom: clamp(44px, 7vw, 112px);
}
.contact__kicker {
  display: block;
  margin: 0 0 clamp(14px, 1.8vw, 26px);
  font-weight: 400;
  color: var(--faint);
}
/* the address at the scale of the name on the homepage, never wider than the page */
.contact__email {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(22px, 6.2vw, 100px);
  letter-spacing: -.035em;
  line-height: .95;
  overflow-wrap: anywhere;
  padding-bottom: .08em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .7s var(--ease);
}
.contact__email:hover { background-size: 100% 2px; }

/* one agency per row: region and role | name | web address */
.contact__reps { padding-bottom: clamp(60px, 9vw, 140px); }
.replist { border-top: 1px solid var(--line); }
.rep {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px var(--gap);
  align-items: baseline;
  padding-block: clamp(18px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.rep:hover { padding-left: clamp(6px, 1vw, 14px); }
.rep__where { grid-column: 1 / 4; color: var(--faint); }
.rep__name  { grid-column: 4 / 11; font-size: clamp(26px, 4vw, 62px); }
.rep__url   { grid-column: 11 / 13; justify-self: end; color: var(--soft); white-space: nowrap; }
.rep__arrow { display: inline-block; transition: transform .45s var(--ease); }
.rep:hover .rep__arrow { transform: translate(3px, -3px); }

@media (max-width: 760px) {
  .rep { grid-template-columns: 1fr; }
  .rep__where, .rep__name, .rep__url { grid-column: 1 / -1; justify-self: start; }
}

/* representation under Contact in the footer */
.foot__stack { display: flex; flex-direction: column; gap: 5px; }
.foot__where { color: var(--faint); }

/* --- project page ------------------------------------------------------- */

.film { padding-top: var(--bar); }

.film__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.film__stage iframe,
.film__stage video,
.film__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* An upright film (a Short). The stage keeps the page width, the player is
   9:16 in the middle: as tall as the screen allows, never wider than it. */
.film__stage--vertical {
  aspect-ratio: auto;
  height: min(86vh, 960px, calc(100vw * 16 / 9));
  background: transparent;
}
.film__stage--vertical > .facade,
.film__stage--vertical > .player {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
}

/* the same for an upright film among "More films" */
.films__frame--vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, calc(80vh * 9 / 16));
  margin-inline: auto;
}

/* --- own play button ---------------------------------------------------- */

.facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter .6s var(--ease);
}
.facade:hover img { transform: scale(1.025); filter: brightness(.86); }

.facade__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(58px, 6vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(237, 234, 228, .92);
  color: #0B0A09;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: transform .55s var(--ease), background .3s var(--ease);
}
/* a triangle sits visually left of centre, so it is nudged right a touch */
.facade__btn svg { width: 22%; margin-left: 7%; fill: currentColor; transition: opacity .3s var(--ease); }
.facade:hover .facade__btn { transform: translate(-50%, -50%) scale(1.08); background: #EDEAE4; }
.facade:focus-visible { outline: 2px solid #EDEAE4; outline-offset: -6px; }

/* clicked, player on its way */
.facade.is-loading { cursor: progress; }
.facade.is-loading .facade__btn { animation: facade-wait 1.1s var(--ease-io) infinite; }
.facade.is-loading .facade__btn svg { opacity: .35; }
@keyframes facade-wait {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(.9); }
}

/* the real player fades in over the poster once it has actually loaded */
.player {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.player.is-live { opacity: 1; }
.player iframe,
.player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--chalk-soft);
  background: var(--black-raised);
}

.film__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-block: clamp(26px, 4vw, 60px) clamp(20px, 3vw, 40px);
  align-items: end;
}
.film__title { grid-column: 1 / 9; }
.film__client { color: var(--faint); display: block; margin-bottom: 12px; }
.film__name { font-size: clamp(30px, 5.4vw, 86px); }
.film__year { grid-column: 11 / 13; text-align: right; color: var(--faint); }

/* which film is playing, when a project has several */
.film__caption {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  color: var(--soft);
}

.film__info {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 36px) var(--gap);
  padding-block: clamp(22px, 3vw, 40px);
}
.film__text {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.film__text .deflist { border-top: 0; }

/* the per-project description block */
.film__desc { display: flex; flex-direction: column; gap: 1em; max-width: 62ch; }
.film__desc p {
  font-size: clamp(14px, 1.07vw, 17px);
  line-height: 1.62;
  color: var(--soft);
}
.film__desc p:first-child { color: var(--fg); }

.film__note {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

/* nothing written yet: role and back link sit under the title instead */
.film__info.is-bare .film__text { display: none; }
.film__info.is-bare .film__note { grid-column: 1 / 13; justify-content: flex-start; gap: 18px; }

/* further films on a multi-film project */
.film__more .sechead { border-top: 1px solid var(--line); }
.films {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.4vw, 52px) var(--gap);
  padding-bottom: clamp(40px, 5vw, 76px);
}
.films__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.films__frame iframe,
.films__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.films__cap { display: flex; gap: 14px; padding-top: 11px; color: var(--soft); }
.films__idx { color: var(--faint); }
.film__role {
  font-size: clamp(19px, 2.1vw, 34px);
  line-height: 1.22;
  color: var(--fg);
}
.film__back { color: var(--soft); width: fit-content; transition: color .3s var(--ease), transform .45s var(--ease); }
.film__back:hover { color: var(--fg); transform: translateX(-6px); }

.stills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-bottom: clamp(40px, 6vw, 90px);
}
.stills > * { grid-column: span 6; }
.stills img { width: 100%; height: auto; }
@media (max-width: 760px) { .stills > * { grid-column: 1 / 13; } }

.nextup {
  border-top: 1px solid var(--line);
  display: block;
  padding-block: clamp(26px, 4vw, 54px) clamp(40px, 6vw, 80px);
}
.nextup__row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; color: var(--faint); }
.nextup__title { font-size: clamp(24px, 5vw, 76px); color: var(--fg); display: flex; align-items: baseline; gap: .3em; }
.nextup__title span { display: inline-block; transition: transform .6s var(--ease); }
.nextup:hover .nextup__title span { transform: translateX(min(2vw, 22px)); }

/* --- lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 7, 7, .96);
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__inner { width: min(1500px, 100%); aspect-ratio: 16 / 9; position: relative; background: #000; }
.lightbox__inner iframe, .lightbox__inner video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: #8E8981; }

.lightbox__close {
  position: absolute;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  color: #EDEAE4;
  padding: 8px;
}
.lightbox__close:hover { opacity: .6; }

/* --- cursor ------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 74px; height: 74px;
  margin: -37px 0 0 -37px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(.2);
  transition: opacity .35s var(--ease), transform .45s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.cursor.is-on { opacity: 1; transform: scale(1); }
[data-surface='ink'] .cursor { background: var(--chalk); color: var(--black); }

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- page transition ---------------------------------------------------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  pointer-events: none;
  transform-origin: bottom;
  transform: scaleY(0);
}
.veil.is-out { transform: scaleY(1); transform-origin: bottom; transition: transform .55s var(--ease-io); }

/* --- reveal utility ----------------------------------------------------- */

.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__type { grid-column: 1 / 13; }
  .hero__frame { grid-column: 1 / 13; aspect-ratio: 16 / 9; margin-top: 22px; }
  .about__portrait { grid-column: 1 / 6; }
  .about__text { grid-column: 7 / 13; }
  .film__title { grid-column: 1 / 10; }
  .film__text { grid-column: 1 / 13; }
  .film__note { grid-column: 1 / 13; }
  .foot__col { grid-column: span 6; }
}

@media (max-width: 760px) {
  :root { --bar: 54px; }

  .mast__nav {
    position: fixed;
    inset: var(--bar) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-115%);
    transition: transform .5s var(--ease);
    z-index: -1;
  }
  .mast__nav.is-open { transform: none; }
  .mast__nav .navlink {
    width: 100%;
    padding-block: 13px;
    border-bottom: 1px solid var(--line-faint);
    font-size: 12px;
  }
  .mast__nav .navlink::after { display: none; }
  .mast__burger { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }

  .hero__title { font-size: clamp(34px, 13.4vw, 64px); }
  .about__kicker { grid-column: 1 / 13; }
  .about__lede { grid-column: 1 / 13; }
  .about__portrait, .about__text { grid-column: 1 / 13; }

  .grid { gap: 34px var(--gap); }
  .tile { grid-column: 1 / 13 !important; margin-top: 0 !important; }

  .tile__meta { flex-wrap: wrap; }

  .listrow { grid-template-columns: 2.2rem 1fr 3.6rem; }
  .listrow__title { grid-column: 2 / 4; }

  .film__title, .film__year { grid-column: 1 / 13; text-align: left; }
  .film__year { padding-top: 10px; }
  .films { grid-template-columns: 1fr; }
  .deflist div { grid-template-columns: 7.5rem 1fr; }
  .foot__col { grid-column: 1 / 13; }
  .foot__base { flex-direction: column; gap: 6px; }
}

/* --- motion / print ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .hero__title i { transform: none; }
  .hero__frame { opacity: 1; }
  .tile, .rv { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .mast, .cursor, .veil, .lightbox, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
