/* --- tokens.css --- */
/* Subset from public/fonts/SF-Pro.ttf (licensed for this site).
   Latin, optical size 17 (Text) and 28 (Display), weights 400 and 500.
   Originals in public/fonts are not served. */
@font-face {
  font-family: "SF Pro Text";
  src: url("/fonts/sf-pro/SFProText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Text";
  src: url("/fonts/sf-pro/SFProText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/sf-pro/SFProDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/sf-pro/SFProDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Timecodes and tech specs only. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/sf-pro/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* One shell for the site. A film may override only --cover-mat. */
:root {
  --paper: #F8F7F3;
  --paper-2: #EFEDE7;
  --ink: #141413;
  --ink-2: #4B4A46;
  --meta: #6B6A65;
  --line: #DDDBD3;
  --hover-wash: rgba(20, 20, 19, 0.06);

  --stage: #0B0B0C;
  --stage-line: #2A2A2B;
  --bone: #F2F0EA;
  --bone-2: #B4B2AA;
  --bone-3: #8C8A83;

  --signal: #D8191F;
  --cover-mat: var(--stage);

  /* Text at UI sizes, Display from 20px up. Both are the self-hosted files. */
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-label: 12px;   --lh-label: 16px;  --ls-label: 0.08em;
  --fs-small: 14px;   --lh-small: 20px;
  --fs-body: 17px;    --lh-body: 27px;   --ls-body: -0.01em;
  --fs-lede: 20px;    --lh-lede: 28px;   --ls-lede: -0.02em;
  --fs-h3: 20px;      --lh-h3: 28px;
  --fs-h2: clamp(24px, 2.2vw, 28px);  --lh-h2: 1.2;  --ls-h2: -0.02em;
  --fs-stat: 32px;    --lh-stat: 38px;   --ls-stat: -0.025em;
  --fs-h1: clamp(36px, 4.6vw, 64px);  --lh-h1: 1.1;  --ls-h1: -0.03em;
  --fw-text: 400;
  --fw-ui: 500;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px;
  --cover-to-content: 72px;
  --page-bottom: 96px;

  --header-h: 64px;
  --header-inner: 960px;
  --page: 1146px;
  --toc: 220px;
  --col-gap: 64px;
  --body: 862px;
  --read: 720px;
  --stage-max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --footer-h: 88px;

  --dur-fast: 0.2s;
  --dur-base: 0.45s;
  --dur-slow: 0.9s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body) / var(--lh-body) var(--font-sans);
  letter-spacing: var(--ls-body);
}

/* --- shell.css --- */
/* Same-origin navigations cross-fade. Off when the user prefers less motion. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Shared light shell. Scoped to .site so unpublished pages that only use
   .film-page (INLW) keep their own styles. One breakpoint: 720px. */

.film-page.site {
  --paper: #F8F7F3;
  --paper-2: #EFEDE7;
  --ink: #141413;
  --ink-2: #4B4A46;
  --meta: #6B6A65;
  --line: #DDDBD3;
  --hover-wash: rgba(20, 20, 19, 0.06);
  --stage: #0B0B0C;
  --bone: #F2F0EA;
  --bone-2: #B4B2AA;
  --bone-3: #8C8A83;
  --signal: #D8191F;
  --ink-dim: var(--meta);
  --paper-dim: var(--bone-2);
  --accent: var(--ink);
  --canvas: var(--paper);
  --rule: 1px;
  --gutter: clamp(16px, 4vw, 56px);
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.film-page.site h1,
.film-page.site h2,
.film-page.site h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--ls-h2);
}

.film-page.site h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}

.film-page.site h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.film-page.site h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.02em;
}

.film-page.site strong,
.film-page.site b { font-weight: 500; }

.film-page.site :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.film-page.site .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  background: var(--paper);
  color: var(--ink);
}

/* Two classes so the inset wins over `.film-page * { margin: 0 }` in
   film.css / home-late.css. After #24 that reset loaded after the shell
   and cancelled `margin: auto`, leaving the logo, nav, hero caption and
   footer flush left while Selected work stayed on the page grid. */
.film-page.site .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--hover-wash);
}

.site-menu {
  display: none;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 15px/20px var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
}

.has-stage .site-header.is-on-stage {
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.72), rgba(11, 11, 12, 0.2));
  color: var(--bone);
}

.has-stage .site-header.is-on-stage .site-nav a:hover,
.has-stage .site-header.is-on-stage .site-nav a:focus-visible,
.has-stage .site-header.is-on-stage .site-nav a[aria-current="page"] {
  background: rgba(242, 240, 234, 0.14);
}

.site main { padding-top: var(--header-h); }
.has-stage main { padding-top: 0; }

.site-footer {
  min-height: var(--footer-h);
  border-top: 1px solid var(--line);
}

.film-page.site .site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  min-height: var(--footer-h);
  margin-left: auto;
  margin-right: auto;
}

.site-footer p,
.site-footer a {
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 20px;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.site-footer a:hover { color: var(--ink-2); }

/* Closing title card: an oversized wordmark under the footer row. Sized
   with the viewport so it spans the page width on every screen. */
.site-footer .site-wordmark {
  display: block;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  min-height: 0;
  margin: 0 auto;
  padding: var(--s-4) 0 var(--s-5);
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  /* "PJ Kim" in SF Pro Display at this tracking is ~2.55em wide. */
  font-size: calc(min(var(--page), 100vw - 2 * var(--gutter)) / 2.62);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-transform: none;
  white-space: nowrap;
}

.site-footer .site-wordmark span { display: block; transform: translateX(-0.04em); }
.site-footer .site-wordmark:hover { color: var(--ink-2); }

body.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  .film-page.site {
    font-size: 16px;
    line-height: 27px;
  }

  .site-menu { display: inline-flex; }

  .site-nav {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--paper);
    color: var(--ink);
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }

  .site-header.is-open .site-nav {
    visibility: visible;
    transform: none;
    opacity: 1;
  }

  .site-header.is-open {
    background: var(--paper);
    color: var(--ink);
  }

  .site-nav a {
    width: 100%;
    font-size: var(--fs-lede);
    line-height: var(--lh-lede);
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav a { transition: none; }
}

/* --- hero.css --- */
/* Hero A: one calm featured film. Full-bleed on landscape screens, a native
   16:9 frame on portrait ones so nobody is cropped out. */
.home-page .hero-a {
  position: relative;
  background: var(--stage);
  color: var(--bone);
}

.hero-a-stage {
  position: relative;
  height: min(86svh, 56.25vw);
  min-height: 520px;
  overflow: hidden;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}
.home-hero-slide.is-active { opacity: 1; }
/* Fade only after the first paint, so the opening still isn't delayed for LCP. */
.home-hero.is-ready .home-hero-slide {
  transition: opacity var(--dur-slow) var(--ease-out);
}

.home-hero-slide img,
.home-hero-slide video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;          /* landscape only; focal point from data-focus */
}
.home-hero-slide video { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.home-hero-slide.has-video video { opacity: 1; }

.hero-a-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.72), transparent 38%),
    linear-gradient(to bottom, rgba(11, 11, 12, 0.5), transparent 18%);
  pointer-events: none;
}

.home-page .hero-a-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
  padding-bottom: var(--s-6);
}

.hero-a-count,
.hero-a-meta,
.hero-a-dots button,
.hero-pause {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.home-page .hero-a-count { margin: 0 0 8px; color: var(--bone-2); }

.film-page.site .hero-a-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hero-a-title a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); }

.home-page .hero-a-meta { margin: 8px 0 0; color: var(--bone-2); }

.hero-a-controls { display: flex; align-items: center; gap: 4px; }

.hero-a-dots { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }

.hero-a-step,
.hero-a-dots button,
.hero-pause {
  min-width: 40px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--bone-2);
  font-family: var(--font-sans);
  cursor: pointer;
}
.hero-a-step { font-size: 18px; }
.hero-a-dots button.is-active { color: var(--bone); box-shadow: inset 0 -1px 0 var(--bone); }
.hero-a-step:hover, .hero-a-dots button:hover, .hero-pause:hover { color: var(--bone); }
.home-page .hero-pause { margin-left: 12px; }
.hero-pause[hidden] { display: none; }

/* Portrait screens: no crop. The frame takes the stills' own 16:9 shape and
   the text sits below it on the stage. */
@media (orientation: portrait) {
  .home-page .hero-a { padding-top: var(--header-h); }
  .hero-a-stage { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .home-hero-slide img,
  .home-hero-slide video { object-fit: contain; object-position: center !important; }
  .hero-a-scrim { display: none; }
  .home-page .hero-a-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: var(--s-5) 0 var(--s-6);
  }
  .home-page .hero-a-controls { margin-left: -8px; flex-wrap: wrap; }
  .home-page .hero-pause { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide, .home-hero-slide video { transition: none; }
}

/* --- film.css --- */
/* film portfolio — public/film/film.css
   Black-and-white, minimal. Card-on-dark shell, three type roles, hairline frames. */

/* ---- tokens ---- */
.film-page {
  --canvas: #000000;
  --paper: #ffffff;
  --ink: #000000;
  --ink-dim: rgba(0, 0, 0, 0.55);
  --paper-dim: rgba(255, 255, 255, 0.6);
  --accent: #ffffff; /* was orange — now monochrome */
  --rule: 1px;
  --gutter: clamp(16px, 4vw, 56px);
  --pad: clamp(24px, 5vw, 64px);
  --maxw: 1120px;

  background: var(--canvas);
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared reset ---- */
.film-page * { box-sizing: border-box; margin: 0; padding: 0; }
.film-page a { color: inherit; text-decoration: none; }
.film-page img { display: block; max-width: 100%; }
.film-page sup { font-size: 0.6em; vertical-align: super; }
.film-page a:focus-visible,
.film-page button:focus-visible,
.film-page input:focus-visible {
  outline: var(--rule) solid currentColor;
  outline-offset: 5px;
}

/* ---- type roles ---- */
.film-page .disp {
  font-family: "Anton", "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.84;
}
.film-page .serif { font-family: "Instrument Serif", Georgia, serif; }
.film-page .serif i, .film-page .serif em { font-style: italic; }
.film-page .mono {
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- card (the paper surface) ---- */
.film-page .card {
  background: var(--paper);
  color: var(--ink);
  margin: var(--gutter);
  padding: var(--pad);
}

/* ---- nav, pinned to card / page corners ---- */
.film-page .nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.film-page .nav a,
.film-page .nav-links [aria-current="page"] {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.film-page .card .nav { color: var(--ink-dim); }
.film-page .card .nav a:hover { color: var(--ink); }
.film-page .dark-nav { color: var(--paper-dim); }
.film-page .dark-nav a:hover { color: var(--accent); }
.film-page .dark-nav [aria-current="page"] { color: var(--paper); }

/* ---- running header (serif, centered) ---- */
.film-page .runhead {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink-dim);
  text-align: center;
  margin: clamp(28px, 5vw, 56px) auto clamp(20px, 4vw, 40px);
  max-width: 30em;
}
.film-page .dark-section .runhead { color: var(--paper-dim); }

/* ---- framed still ---- */
.film-page .frame {
  border: var(--rule) solid rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.film-page .frame img {
  width: 100%;
  height: auto;
}

/* ---- hero: title + rotated date stamp ---- */
.film-page .hero-title {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2vw, 24px);
  margin-top: clamp(24px, 4vw, 48px);
}
.film-page .hero-title-main { flex: 1; min-width: 0; }
.film-page .hero-title .disp {
  font-size: clamp(52px, 12vw, 168px);
  line-height: 0.86;
}
.film-page .hero-sub {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--ink-dim);
  margin-top: 0.5em;
}
.film-page .datestamp {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  padding-top: 0.35em;
}

/* ---- sections ---- */
.film-page .section { padding: clamp(48px, 8vw, 120px) var(--gutter); }
.film-page .section-inner { max-width: var(--maxw); margin: 0 auto; }

/* adjacent dark sections need a hairline seam so they don't merge */
.film-page .dark-section + .dark-section {
  border-top: var(--rule) solid rgba(255, 255, 255, 0.14);
  padding-top: clamp(32px, 5vw, 64px);
}

/* dark section (on the canvas) */
.film-page .dark-section { background: var(--canvas); color: var(--paper); }
.film-page .dark-section h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 400;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.film-page .dark-section .lead {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.3;
  max-width: 22em;
}
.film-page .dark-section .lead + p { color: var(--paper-dim); }

/* paper section (the working notes) */
.film-page .paper-section { background: var(--paper); color: var(--ink); }
.film-page .paper-section .section-inner { max-width: 1040px; }
.film-page .paper-section h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 400;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.film-page .paper-section .lead {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.25;
  max-width: 22em;
}
.film-page .paper-section .meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.film-page .paper-section p.prose {
  max-width: 44em;
  color: var(--ink);
}
.film-page .paper-section p.prose + p.prose { margin-top: 1em; }

/* section-context mono (secondary text) */
.film-page .dark-section .mono { color: var(--paper-dim); }
.film-page .paper-section .mono { color: var(--ink-dim); }

/* ---- credits (two-column mono) ---- */
.film-page .credits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(28px, 5vw, 56px);
  border-top: var(--rule) solid rgba(255, 255, 255, 0.18);
}
.film-page .credits .credit {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: var(--rule) solid rgba(255, 255, 255, 0.18);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}
.film-page .credits .role { color: var(--paper-dim); }
.film-page .credits .name { color: var(--paper); }

/* ---- stills grid (full photos, caption overlaid) ---- */
.film-page .stills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 2vw, 20px);
}
.film-page .stills figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.film-page .stills figure img {
  width: 100%;
  height: auto;
  display: block;
}
.film-page .stills figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ---- stills lightbox (click-to-fullscreen) ---- */
.film-page .stills figure { cursor: zoom-in; }

.film-page .lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  padding: clamp(16px, 4vw, 48px);
}
.film-page .lightbox.is-open { display: flex; }
.film-page .lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: var(--rule) solid rgba(255, 255, 255, 0.4);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.film-page .lightbox .lb-close:hover { color: var(--accent); border-color: var(--accent); }
.film-page .lightbox .lb-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.film-page .lightbox .lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.film-page .lightbox .lb-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 18px;
}
.film-page .lightbox .lb-bar button {
  background: none;
  border: var(--rule) solid transparent;
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}
.film-page .lightbox .lb-bar button:hover { border-color: rgba(255, 255, 255, 0.4); }
.film-page .lightbox .lb-count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.film-page .lightbox .lb-caption {
  margin-top: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: center;
}

/* ---- impact stats ---- */
.film-page .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(28px, 5vw, 48px);
  border-top: var(--rule) solid rgba(255, 255, 255, 0.18);
  padding-top: clamp(20px, 3vw, 32px);
}
.film-page .stat-num {
  display: block;
  font-family: "Anton", "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.9;
  color: var(--paper);
}
.film-page .stat-label {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  line-height: 1.5;
}
.film-page .paper-section .stats { border-top-color: rgba(0, 0, 0, 0.18); }
.film-page .paper-section .stat-num { color: var(--ink); }
.film-page .paper-section .stat-label { color: var(--ink-dim); }

/* ---- design artifacts (banner + lineup) ---- */
.film-page .designs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 2vw, 20px);
  margin-top: clamp(28px, 5vw, 48px);
}
.film-page .designs figure { margin: 0; }
.film-page .designs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
  background: #0a0a0a;
  border: var(--rule) solid rgba(255, 255, 255, 0.18);
}
.film-page .designs figcaption {
  margin-top: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* uniform event-photo stills (sources are mixed 3:2 / 4:3) */
.film-page .stills-photos img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---- credits groups (per deliverable) ---- */
.film-page .credits-group + .credits-group { margin-top: clamp(32px, 5vw, 56px); }
.film-page .credits-group-label {
  opacity: 0.55;
  margin-bottom: 2px;
}

/* ---- paper-section overrides (white cutouts) ---- */
.film-page .paper-section + .paper-section {
  border-top: var(--rule) solid rgba(0, 0, 0, 0.14);
}
.film-page .paper-section .credits {
  border-top-color: rgba(0, 0, 0, 0.18);
}
.film-page .paper-section .credits .credit {
  border-bottom-color: rgba(0, 0, 0, 0.18);
}
.film-page .paper-section .credits .role { color: var(--ink-dim); }
.film-page .paper-section .credits .name { color: var(--ink); }
.film-page .paper-section .watch a { color: var(--ink); }
.film-page .paper-section .watch a:hover { color: var(--ink-dim); }
.film-page .paper-section .film-link {
  border-color: rgba(0, 0, 0, 0.18);
}

/* ---- film poster (clickable, replaces embed) ---- */
.film-page .film-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 56px);
  border: var(--rule) solid rgba(255, 255, 255, 0.16);
}
.film-page .film-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.film-page .film-link:hover img { transform: scale(1.015); }
.film-page .film-link .film-label {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 9px 14px;
  border: var(--rule) solid rgba(255, 255, 255, 0.4);
}

/* ---- projects grid (home) ---- */
.film-page .projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 3vw, 28px);
}
.film-page .project {
  position: relative;
  display: block;
  overflow: hidden;
}
.film-page .project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.film-page .project:hover img { transform: scale(1.02); }
.film-page .project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.film-page .project-overlay .disp {
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 0.8;
  color: #ffffff;
}
.film-page .project-overlay .mono {
  display: block;
  margin-top: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ---- about three-tier ---- */
.film-page .about-statement {
  font-size: clamp(34px, 7vw, 88px);
  line-height: 1.02;
  max-width: 14em;
}
.film-page .about-support {
  max-width: 34em;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  margin-top: clamp(24px, 4vw, 48px);
}
.film-page .about-detail {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--paper-dim);
  margin-top: clamp(32px, 5vw, 64px);
}
.film-page .about-detail a:hover { color: var(--accent); }

/* ---- monogram ---- */
.film-page .monogram {
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--paper-dim);
}

/* ---- platform links ---- */
.film-page .watch {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: clamp(28px, 5vw, 48px);
}
.film-page .watch a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}
.film-page .watch a:hover { color: var(--accent); }

/* ---- inspo list ---- */
.film-page .inspo-list {
  list-style: none;
  margin-top: clamp(28px, 5vw, 48px);
}
.film-page .inspo-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
  border-top: var(--rule) solid rgba(0, 0, 0, 0.14);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
}
.film-page .inspo-list li:last-child { border-bottom: var(--rule) solid rgba(0, 0, 0, 0.14); }
.film-page .inspo-list a { color: var(--ink); }
.film-page .inspo-list a:hover { color: var(--ink-dim); }
.film-page .inspo-list .inspo-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* ---- inspo films: letterboxd-style poster grid ---- */
.film-page .inspo-films {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-top: clamp(28px, 5vw, 48px);
}
.film-page .inspo-films li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.3;
}
.film-page .inspo-films .film-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border: var(--rule) solid rgba(0, 0, 0, 0.14);
}
.film-page .inspo-films .film-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.film-page .inspo-films .film-poster:hover img { transform: scale(1.03); }
.film-page .inspo-films .film-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.film-page .inspo-films a { color: var(--ink); }
.film-page .inspo-films a:hover { color: var(--ink-dim); }
.film-page .inspo-films .inspo-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
/* inspo keeps its red markers (scoped exception to the monochrome register) */
.film-page.inspo-page .is-red { color: #ff2d2d; }
.film-page.inspo-page .inspo-list a.is-red:hover,
.film-page.inspo-page .inspo-films a.is-red:hover { color: #ff2d2d; }

/* ---- project content model: type tags + client badge + status ---- */
.film-page [data-project-meta] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
}
.film-page .project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.film-page .project-tags li {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 9px;
  border: var(--rule) solid rgba(255, 255, 255, 0.4);
  color: var(--paper);
}
.film-page .card .project-tags li,
.film-page .paper-section .project-tags li {
  border-color: rgba(0, 0, 0, 0.35);
  color: var(--ink);
}
.film-page .project-client {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px;
  background: var(--paper);
  color: var(--ink);
}
.film-page .card .project-client,
.film-page .paper-section .project-client {
  background: var(--ink);
  color: var(--paper);
}
.film-page .project-status { color: var(--paper-dim); }
.film-page .card .project-status,
.film-page .paper-section .project-status { color: var(--ink-dim); }

/* ---- project detail: ordered list of optional sections ---- */
.film-page .project-sections { list-style: none; }
.film-page .project-section { display: block; }

/* paper-card lead (overview section) */
.film-page .card .lead {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.25;
  max-width: 22em;
  margin-top: clamp(24px, 4vw, 48px);
}
.film-page .card .lead + p {
  margin-top: 1.2em;
  color: var(--ink-dim);
  max-width: 44em;
}

/* ---- nav right-hand group + footer inspo link ---- */
.film-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
}
@media (max-width: 719px) {
  .film-page .nav { flex-wrap: wrap; row-gap: 12px; align-items: flex-start; }
  .film-page .nav-links { flex: 1 1 100%; justify-content: flex-start; gap: 10px 14px; }
  .film-page .nav a,
  .film-page .nav-links [aria-current="page"] { font-size: 11px; letter-spacing: 0.12em; }
}
.film-page .monogram a { color: inherit; }
.film-page .monogram a:hover { color: var(--accent); }

/* ---- project facts + next project navigation ---- */
.film-page .project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(30px, 5vw, 56px);
  border-top: var(--rule) solid rgba(0, 0, 0, 0.2);
}
.film-page .project-facts div {
  display: grid;
  grid-template-columns: minmax(105px, 0.34fr) 1fr;
  gap: 16px;
  padding: 13px 18px 13px 0;
  border-bottom: var(--rule) solid rgba(0, 0, 0, 0.2);
}
.film-page .project-facts div:nth-child(even) {
  padding-left: 18px;
  border-left: var(--rule) solid rgba(0, 0, 0, 0.2);
}
.film-page .project-facts dt,
.film-page .project-facts dd {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.55;
  text-transform: uppercase;
}
.film-page .project-facts dt { color: var(--ink-dim); }

.film-page .project-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  padding: clamp(36px, 6vw, 72px) var(--gutter);
  border-top: var(--rule) solid rgba(255, 255, 255, 0.16);
  border-bottom: var(--rule) solid rgba(255, 255, 255, 0.16);
  background: var(--canvas);
  color: var(--paper);
}
.film-page .project-pagination > a:not(.project-pagination-all) {
  display: grid;
  gap: 6px;
}
.film-page .project-pagination-next { justify-items: end; text-align: right; }
.film-page .project-pagination span,
.film-page .project-pagination-all {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.film-page .project-pagination strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  line-height: 1;
}
.film-page .project-pagination a:hover,
.film-page .project-pagination a:focus-visible { color: var(--paper-dim); }
.film-page .project-pagination-empty:last-child { text-align: right; opacity: 0.35; }

/* ---- branded not-found page ---- */
.film-page.not-found-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.film-page .not-found-main {
  display: grid;
  place-items: center;
  padding: clamp(70px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.film-page .not-found-code {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(140px, 31vw, 480px);
  line-height: 0.72;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.12);
}
.film-page .not-found-copy { margin-top: clamp(-12px, -2vw, -28px); }
.film-page .not-found-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}
.film-page .not-found-copy p { margin: 18px auto 30px; color: var(--paper-dim); }
.film-page .not-found-copy a {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: var(--rule) solid currentColor;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 719px) {
  .film-page .project-facts { grid-template-columns: 1fr; }
  .film-page .project-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .film-page .project-pagination { grid-template-columns: 1fr auto; }
  .film-page .project-pagination-empty { display: none; }
  .film-page .project-pagination-next { grid-column: 2; }
}

/* ---- filmic application page ---- */
.film-page.filmic-page .stills { grid-template-columns: 1fr; }
.film-page.filmic-page .split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.film-page.filmic-page .prose { max-width: 44em; }
.film-page.filmic-page .prose + .prose { margin-top: 1em; }
.film-page.filmic-page .dark-section .prose { color: var(--paper); }
.film-page.filmic-page .photo-note { margin-top: 10px; }
@media (min-width: 900px) {
  .film-page.filmic-page .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* ---- responsive ---- */
@media (min-width: 900px) {
  .film-page .projects { grid-template-columns: repeat(2, 1fr); }
  .film-page .inspo-films { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 719px) {
  .film-page .stills { grid-template-columns: 1fr; }
  .film-page .credits .credit { grid-template-columns: 110px 1fr; }
  .film-page .stats { grid-template-columns: repeat(2, 1fr); }
  .film-page .designs { grid-template-columns: 1fr; }
}

/* --- home.css --- */
/* Home. Light page, uniform 16:9 grid, contact film kept as a stage.
   The hero lives in hero.css. */

/* ---- Selected work: hover-to-play loops ---- */
.work-still { position: relative; }

.work-still video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.work-still.is-playing video { opacity: 1; }

/* ---- Now list ---- */
.home-now { margin-top: 32px; }

.home-now-label,
.home-kit-label {
  margin: 0 0 12px;
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.now-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.now-date {
  padding-top: 4px;
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.now-text a { text-decoration: underline; text-underline-offset: 4px; }

.home-page .home-work,
.home-page .home-info {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.home-page .home-work { padding: var(--s-8) 0 var(--s-9); }

.home-work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.home-work-head p { color: var(--meta); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7) var(--s-5);
}

.work-card { display: flex; flex-direction: column; min-width: 0; color: inherit; }

.work-still {
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--stage);
}

.work-still img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-kicker {
  color: var(--meta);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  line-height: var(--lh-small);
  text-transform: uppercase;
}

.work-card h2,
.work-card h3 {
  margin: 6px 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.work-proof {
  margin-top: 6px;
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.work-line {
  max-width: 42em;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.home-info {
  padding: var(--s-8) 0 var(--s-9);
  border-top: 1px solid var(--line);
}

.info-statement {
  max-width: var(--read);
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
}

.info-statement i { font-style: italic; }

.info-support,
.info-roles {
  max-width: var(--read);
  color: var(--ink-2);
}

.info-roles { margin-top: 16px; }

.info-table { margin-top: 32px; }

.info-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-row dt {
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.info-row dd a { text-decoration: underline; text-underline-offset: 4px; }


/* ---- Kit ---- */
/* SIGMA-style product row: three official packshots, uppercase names,
   one short line, one even row on every breakpoint. */
.home-kit { margin-top: 32px; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-8) var(--s-7);
  margin: 0;
  padding: var(--s-5) 0 0;
  list-style: none;
  align-items: start;
}

.kit-item { min-width: 0; }

.kit-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 260px;
  padding: 12px;
  margin: 0 0 var(--s-5);
  perspective: 900px;
  touch-action: pan-y;
}

.kit-figure[data-kit-turn] { cursor: grab; }
.kit-figure[data-kit-turn]:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}
.kit-figure.is-dragging { cursor: grabbing; }

.kit-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

/* No-JS fallback: a slight turn on hover. JS takes over when ready. */
@media (hover: hover) and (pointer: fine) {
  .kit-item:hover .kit-figure:not(.is-kit-ready) img,
  .kit-item:focus-within .kit-figure:not(.is-kit-ready) img {
    transform: rotateY(-12deg);
  }
}

.kit-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
  hyphens: none;
}

.kit-why {
  margin: 8px 0 0;
  max-width: 22em;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.kit-software {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--s-7);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.kit-software-label {
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.home-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 640px;
  overflow: hidden;
  background: var(--stage);
  color: var(--bone);
}

.contact-film-media { position: absolute; inset: 0; }

.contact-film-video {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-film-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 11, 12, 0.36), rgba(11, 11, 12, 0.16) 45%, rgba(11, 11, 12, 0.54)),
    linear-gradient(to right, rgba(11, 11, 12, 0.36), transparent 54%);
  transition: opacity var(--dur-base) var(--ease-out);
}

.home-contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 640px;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  text-align: center;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.home-contact-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(640px, 140%);
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 72%);
  pointer-events: none;
}

.home-contact-content > p { color: var(--bone); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

.home-contact h2 {
  margin: 28px 0 20px;
  color: var(--bone);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
}

.contact-film-play,
.home-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--bone);
  font: 500 14px/20px var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-film-play:hover,
.home-contact-link:hover { color: var(--bone-2); }

.contact-film-controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 18px;
  left: var(--gutter);
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) auto auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 240, 234, 0.4);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-film-controls[hidden] { display: none; }

.contact-film-controls button,
.contact-film-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
}

.contact-film-controls a span {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 12px;
  line-height: 16px;
}

.contact-film-controls [data-contact-current],
.contact-film-controls [data-contact-duration] {
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
}

.contact-film-timeline { display: block; min-width: 0; }
.contact-film-timeline input { display: block; width: 100%; accent-color: var(--bone); }

.home-contact.is-playing .home-contact-content {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.home-contact.is-playing .contact-film-scrim { opacity: 0; }

@media (max-width: 720px) {
  .work-grid,
  .info-row,
  .kit-software,
  .now-list li { grid-template-columns: 1fr; }

  .kit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5) var(--s-3);
  }

  .kit-figure {
    height: 148px;
    padding: 8px;
    margin-bottom: var(--s-3);
  }

  .kit-name { letter-spacing: 0.04em; }

  .kit-why { font-size: 12px; line-height: 16px; }

  .kit-software { margin-top: var(--s-5); }

  .now-list li { gap: 4px; }
  .now-date { padding-top: 0; }


  .home-contact,
  .home-contact-content { min-height: 520px; }

  .contact-film-controls {
    grid-template-columns: auto auto minmax(80px, 1fr) auto;
    row-gap: 8px;
  }

  .contact-film-controls [data-contact-mute],
  .contact-film-controls [data-contact-fullscreen],
  .contact-film-controls > a,
  .contact-film-controls [data-contact-close] { grid-row: 2; }

  .contact-film-controls [data-contact-mute] { grid-column: 1; }
  .contact-film-controls [data-contact-fullscreen] { grid-column: 2; }
  .contact-film-controls > a { grid-column: 3; }
  .contact-film-controls [data-contact-close] { grid-column: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .kit-figure img { transition: none; }
  .kit-item:hover .kit-figure img,
  .kit-item:focus-within .kit-figure img { transform: none; }
  .kit-figure[data-kit-turn] { cursor: default; }

  .contact-film-scrim,
  .home-contact-content,
  .work-still video { transition: none; }
}

/* Larger hit areas for inline links on phones, without changing desktop density. */
@media (max-width: 720px) {
  .info-table a,
  .info-links a,
  .now-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* --- inquire.css --- */
/* Inquire form under the contact stage. Light shell, underline fields. */

.home-page .home-inquire {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-7) var(--s-8);
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: var(--s-8) 0 var(--s-9);
}

.inquire-head h2,
.inquire-head h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: var(--ls-h2, -0.02em);
  line-height: var(--lh-h2);
}

.inquire-note {
  margin-top: 12px;
  color: var(--ink-2);
}

.inquire-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-5);
  align-content: start;
}

.inquire-field { display: flex; flex-direction: column; min-width: 0; }
.inquire-field-wide,
.inquire-actions { grid-column: 1 / -1; }

.inquire-field label {
  color: var(--meta);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.inquire-field input,
.inquire-field select,
.inquire-field textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/24px var(--font-sans);
  letter-spacing: -0.01em;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.inquire-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--meta) 50%), linear-gradient(135deg, var(--meta) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 20px;
}

.inquire-field textarea { resize: vertical; min-height: 120px; }

.inquire-field input:focus,
.inquire-field select:focus,
.inquire-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.inquire-field input:focus-visible,
.inquire-field select:focus-visible,
.inquire-field textarea:focus-visible {
  box-shadow: 0 1px 0 0 var(--ink);
}

.inquire-field [aria-invalid="true"] { border-bottom-color: var(--signal); }

.inquire-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.inquire-send {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/20px var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.inquire-send:hover { opacity: 0.86; }
.inquire-send:disabled { opacity: 0.5; cursor: default; }
.inquire-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.inquire-status { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.inquire-status[data-tone="error"] { color: var(--signal); }

@media (max-width: 900px) {
  .home-page .home-inquire { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .inquire-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .inquire-field input,
  .inquire-field select,
  .inquire-field textarea,
  .inquire-send { transition: none; }
}

.inquire-field select:invalid { color: var(--meta); }

/* --- sections.css --- */
/* One section system for the home page.
   Every section opens with the same header: a hairline, a two-digit number,
   a small uppercase title and an optional note on the right. Sections share
   one vertical rhythm (96px on desktop, 64px on phones) so the page reads as
   a clear sequence instead of a run of blocks. */

.home-page .sec {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: var(--s-9) 0 0;
  border-top: 0;
}

.home-page .sec:last-of-type { padding-bottom: var(--s-9); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin: 0 0 var(--s-7);
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
}

.sec-num {
  min-width: 2ch;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}

.film-page.site .sec-head .sec-title {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sec-aside {
  margin-left: auto;
  color: var(--meta);
}

/* Sections that used to carry their own spacing. */
.home-page .home-work.sec { padding-bottom: 0; }
.home-page .home-info.sec { padding-bottom: 0; border-top: 0; }
.home-page .home-info.sec .info-statement { margin-top: 0; }
.home-page .home-now-sec .home-now,
.home-page .home-kit-sec .home-kit { margin-top: 0; }
.home-page .home-kit-sec .kit-grid { padding-top: 0; }

/* Contact: the header sits on the light page, the stage and the form follow
   as one block. */
.home-page .sec-head-only { padding-bottom: 0; }
.home-page .sec-head-only .sec-head { margin-bottom: var(--s-5); }
.home-page .home-inquire { padding-top: var(--s-8); }

/* Fewer type sizes: the statement steps down from 64px, the contact heading
   and the inquire heading share the h2 size, work titles share it too. */
.home-page .info-statement,
.film-page.site h1.info-statement { font-size: clamp(32px, 3.6vw, 48px); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.home-page .home-contact-content h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.film-page.site .inquire-head h3 { margin-top: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.film-page.site .work-card h3 { margin: 6px 0; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }

/* Small text collapses onto one label style (12px uppercase) instead of
   12 / 13 / 14px variants. */
.home-page .work-kicker,
.home-page .home-contact-link,
.home-page .contact-film-play span {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
}

.film-page.site .kit-name {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
}

@media (max-width: 720px) {
  .home-page .sec { padding-top: var(--s-8); }
  .home-page .sec:last-of-type { padding-bottom: var(--s-8); }
  .sec-head { margin-bottom: var(--s-6); }
  .home-page .home-inquire { padding-top: var(--s-7); }
}

/* Option B: the short About on the home page ends with one link to /about,
   which holds the full bio, Now and Kit. */
.info-more { margin-top: var(--s-5); }

.info-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.info-more a:hover { color: var(--ink-2); border-color: var(--ink-2); }

.about-page main { padding-bottom: var(--s-9); }
.about-page .sec:first-of-type { padding-top: var(--s-8); }

/* About: portrait beside the statement, from the published contact film */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s-8); align-items: start; }
.about-portrait { margin: 0; aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .about-portrait { order: -1; max-width: 280px; }
}

/* --- chapters.css --- */
/* Quiet chapter marks: ticks on the contact-film scrubber, and a
   seek list under the full film on /december.
   IBM Plex Mono only on timecodes; names stay in SF Pro. No thumbnails. */

.chapters-tc {
  color: inherit;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Contact film: ticks on the timeline, current chapter under the bar. */
.contact-film-timeline {
  position: relative;
  display: block;
  min-width: 0;
}

.contact-film-timeline > label { display: block; }

.contact-film-ticks {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-film-controls .contact-film-tick {
  position: absolute;
  left: calc(var(--chapter-t) * 100%);
  top: 50%;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 18px;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
}

.contact-film-tick::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 8px;
  background: var(--bone);
  opacity: 0.8;
  transform: translate(-50%, -50%);
}

.contact-film-tick[aria-current="true"]::before {
  height: 11px;
  opacity: 1;
}

.contact-film-tick-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 14px;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.contact-film-tick:first-child .contact-film-tick-tip {
  left: 0;
  transform: none;
}

.contact-film-tick:last-child .contact-film-tick-tip {
  left: auto;
  right: 0;
  transform: none;
}

.contact-film-tick:hover .contact-film-tick-tip,
.contact-film-tick:focus-visible .contact-film-tick-tip {
  opacity: 1;
}

.contact-film-controls .contact-film-chapter {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: rgba(242, 240, 234, 0.72);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 14px;
  text-transform: none;
}

.contact-film-chapter .chapters-name { color: inherit; }

@media (max-width: 720px) {
  .contact-film-controls .contact-film-chapter { grid-row: 3; }

  .contact-film-controls .contact-film-tick {
    width: 22px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-film-tick-tip { transition: none; }
}

/* /december: one row of ticks under the full film, positioned by time over
   the film's length. Names show on hover or focus; the current chapter is
   named once, underneath. Each tick seeks the player. */
.film-chapters { margin-top: var(--s-5); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.film-chapters-list {
  position: relative;
  height: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.film-chapters-list li {
  position: absolute;
  left: calc(var(--chapter-t) * 100%);
  bottom: 0;
  margin: 0;
  padding: 0;
}
.film-chapters-list button {
  position: relative;
  display: block;
  width: 24px;
  height: 28px;
  margin: 0 0 0 -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--meta);
  cursor: pointer;
}
.film-chapters-list button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 10px;
  background: currentColor;
  transform: translateX(-50%);
}
.film-chapters-list button:hover,
.film-chapters-list button:focus-visible,
.film-chapters-list button[aria-current="true"] { color: var(--ink); }
.film-chapters-list button[aria-current="true"]::before { height: 14px; }
.film-chapters-list button:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.chapter-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}
.film-chapters-list li:first-child .chapter-tip { left: 12px; transform: none; }
.film-chapters-list li:last-child .chapter-tip { left: auto; right: -12px; transform: none; }
.film-chapters-list button:hover .chapter-tip,
.film-chapters-list button:focus-visible .chapter-tip { opacity: 1; }
.film-chapters-list .chapters-tc { font-size: var(--fs-label); line-height: var(--lh-label); }
.film-chapter-now {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: var(--s-2) 0 0;
  min-height: var(--lh-small);
  color: var(--meta);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.film-chapter-now .chapters-tc { font-size: var(--fs-label); }
/* Phones: the nine marks share the row evenly so each target is at least
   24px (time-placed marks sit 9s apart, under 16px). */
@media (max-width: 720px) {
  .film-chapters-list { display: flex; height: 36px; }
  .film-chapters-list li { position: static; flex: 1 1 0; min-width: 0; }
  .film-chapters-list button { width: 100%; height: 36px; margin-left: 0; }
  .chapter-tip { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .chapter-tip { transition: opacity var(--dur-fast, 0.15s) ease; }
}
