:root {
  --black: #0f0f0f;
  --paper: #0f0f0f;   /* light version: #fafaf8 */
  --ink: #f2f2f0;     /* light version: #1c1c1c */
  --grey: #9a9a97;    /* light version: #6b6b6b */
  --line: rgba(255, 255, 255, 0.16);  /* light version: rgba(28, 28, 28, 0.14) */
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --gutter: clamp(20px, 3vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, iframe { display: block; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

/* ── Corners ──────────────────────────── */
.corners { position: fixed; inset: 0 0 auto; z-index: 30; pointer-events: none; }
.corner {
  position: absolute; top: 16px; height: 44px; pointer-events: auto;
  font-size: 15px; letter-spacing: 0.14em; line-height: 1;
  display: flex; align-items: center; gap: 14px;
}
.corner a { display: inline-flex; align-items: center; height: 44px; }
.corner-left { left: var(--gutter); }
.corner-right { right: var(--gutter); }
.slash { font-size: 20px; letter-spacing: 0; opacity: .7; transform: translateY(-1px); }
.wordmark { letter-spacing: 0.3em; }
.home-link { letter-spacing: 0.12em; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; }
.arrow-link svg { width: 44px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .4s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ── Menu ─────────────────────────────── */
.menu-btn {
  position: fixed; left: calc(var(--gutter) - 8px); top: 50%; z-index: 30;
  width: 44px; height: 44px; transform: translateY(-50%);
  display: grid; align-content: center; gap: 7px; padding: 0 8px;
}
.menu-btn span { display: block; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn:hover span:nth-child(2) { transform: translateX(4px); }
/* Menu: centred over the dimmed page, links in lowercase, then the social icons and the name */
.menu {
  position: fixed; inset: 0; z-index: 50; color: #fff;
  background: rgba(8, 8, 8, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 60px var(--gutter); overflow-y: auto;
  animation: fade .35s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu nav { text-align: center; }
.menu nav > ul:first-child { list-style: none; margin: 0; padding: 0; }
.menu li + li { margin-top: clamp(10px, 2.4vh, 26px); }
.menu nav > ul:first-child a { display: inline-block; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; text-transform: lowercase; letter-spacing: .01em; opacity: .8; transition: opacity .3s ease; }
.menu nav > ul:first-child a:hover, .menu nav > ul:first-child a:focus-visible, .menu a[aria-current="page"] { opacity: 1; }
.menu-social { list-style: none; margin: clamp(36px, 6.5vh, 64px) 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(40px, 6vw, 72px); }
.menu-social li + li { margin-top: 0; }
.menu-social a { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; opacity: .6; transition: opacity .3s ease; }
.menu-social a:hover, .menu-social a:focus-visible { opacity: 1; }
.menu-social svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.menu-name { margin: clamp(30px, 5vh, 52px) 0 0; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .7em; padding-left: .7em; /* balance the trailing spacing */ }
.menu-close { position: absolute; left: calc(var(--gutter) - 8px); top: 50%; width: 44px; height: 44px; transform: translateY(-50%); }
.menu-close span { position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: #fff; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

/* ── Home ─────────────────────────────── */
body.home { background: var(--black); color: #fff; height: 100vh; height: 100dvh; overflow: hidden; }
.stage { position: fixed; inset: 0; background: #000; }   /* black backing so the grain never shows grey before the video starts */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; will-change: transform, clip-path; }
.slide.active { opacity: 1; }
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; opacity: 0; pointer-events: none; }
.liquid.on { opacity: 1; }
.slide video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.slide video.ready { opacity: 1; }
.slide iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.2s ease;
}
.slide iframe.playing { opacity: 1; }
.veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); pointer-events: none; }

.name-block {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78vw, 1200px); text-align: left;
}
.name {
  font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(40px, 7.4vw, 104px); letter-spacing: 0.62em; margin-right: -0.62em;
}
.now {
  display: block; margin: 26px 0 0 auto; font-size: 16px; letter-spacing: 0.12em;
  padding: 10px 0; opacity: .85; transition: opacity .3s ease; white-space: pre;
}
.now:hover { opacity: 1; }
.now em { font-style: italic; letter-spacing: 0.04em; }

.steps {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: min(78vw, 1200px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 12vw, 220px);
}
.step { display: grid; gap: 2px; font-style: italic; min-height: 44px; min-width: 0; }
.step-prev { text-align: right; }
.step-next { text-align: left; }
.step-num { font-size: 16px; letter-spacing: 0.06em; }
/* "Home" and "Upcoming" have no number: keep the empty number line so their label sits level with the film titles */
.step-num:empty::before { content: "\200b"; }
.step-title { font-size: clamp(16px, 1.5vw, 21px); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-line { width: 100%; height: 10px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .45s var(--ease); }
.step-prev:hover .step-line { transform: translateX(-6px); }
.step-next:hover .step-line { transform: translateX(6px); }

/* ── Inner pages ──────────────────────── */
.page-main { padding: clamp(130px, 16vw, 190px) calc(var(--gutter) + 64px) 120px; max-width: 1360px; margin: 0 auto; }
.page-title {
  font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.5em; margin-bottom: clamp(56px, 8vw, 104px);
}

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(48px, 6vw, 88px) clamp(28px, 3.4vw, 52px); }
.work { display: block; width: 100%; text-align: left; }
.work-img { display: block; aspect-ratio: 16 / 9; background: #1c1c1c; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.work:hover .work-img img { opacity: .82; }
.work-num { display: block; margin-top: 18px; font-style: italic; font-size: 15px; letter-spacing: 0.06em; color: var(--grey); }
.work-title { display: block; font-size: 22px; line-height: 1.3; margin-top: 2px; }
.work-meta { display: block; font-size: 15px; color: var(--grey); margin-top: 4px; }

.about-body { max-width: 34rem; margin-left: clamp(0px, 16vw, 260px); }
.about-name { font-size: 22px; margin-bottom: 28px; }
.about-name span { color: var(--grey); }
#bio p + p { margin-top: 1.1em; }
.contact { margin-top: 64px; border-top: 1px solid var(--line); }
.contact div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact dt { font-style: italic; color: var(--grey); }
.contact a { border-bottom: 1px solid var(--line); transition: border-color .3s ease; overflow-wrap: anywhere; }
.contact a:hover { border-color: currentColor; }

/* ── Player ───────────────────────────── */
.player {
  /* sized so the video, title, tabs and details always fit in the window */
  width: min(1200px, calc(100vw - 2 * var(--gutter)), calc((100vh - 230px) * 16 / 9)); max-width: none; max-height: calc(100vh - 24px);
  padding: 0; border: 0; background: transparent; color: #fff; overflow: visible;
}
.player::backdrop { background: rgba(8, 8, 8, .94); }
.player-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.player-bar p { font-style: italic; font-size: 19px; }
.player-bar button { letter-spacing: 0.14em; font-size: 15px; padding: 10px 0; }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-meta { padding-top: 12px; font-size: 15px; color: rgba(255,255,255,.7); }

/* ── Small screens ────────────────────── */
@media (max-width: 720px) {
  .corner { top: 8px; font-size: 13px; gap: 10px; }
  .arrow-link svg { width: 30px; }
  .menu-btn { top: auto; bottom: 22px; transform: none; }
  .page .menu-btn { background: var(--paper); border-radius: 50%; width: 48px; height: 48px; padding: 0 12px; }
  .menu-close { top: auto; bottom: 22px; transform: none; }
  .name-block { width: calc(100vw - 2 * var(--gutter)); }
  .name { font-size: clamp(30px, 10vw, 44px); letter-spacing: 0.42em; margin-right: -0.42em; }
  .steps { width: calc(100vw - 2 * var(--gutter)); bottom: 84px; gap: 24px; }
  .page-main { padding-left: var(--gutter); padding-right: var(--gutter); }
  .about-body { margin-left: 0; }
  .contact div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) *, :root:not(.force-motion) *::before, :root:not(.force-motion) *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Background video pause control ───── */
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 5;
  font-size: 13px; letter-spacing: 0.14em; min-height: 44px; padding: 0 2px;
  opacity: .7; transition: opacity .3s ease;
}
.motion-toggle:hover { opacity: 1; }
@media (max-width: 720px) { .motion-toggle { bottom: 22px; } }

/* ── Home: name, work slides, play button ── */
.name-block, .work-block { transition: opacity .6s ease, visibility .6s; }
.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.stage { --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 28px rgba(0,0,0,.35); }

/* Name with role line above and location below (like the reference) */
.name { font-weight: 500; text-shadow: var(--shadow); }
.name-block { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
/* The name's letter spacing is set by main.js so it spans exactly the width of the role line. */
.name-block .name { white-space: nowrap; }
.role {
  font-size: clamp(15px, 2vw, 27px); font-weight: 500; white-space: nowrap;
  margin-bottom: clamp(12px, 1.6vw, 22px); text-shadow: var(--shadow);
}
.slide-num .sep { display: inline-block; margin: 0 .7em; font-weight: 400; opacity: .7; }
.based {
  text-align: right; margin-top: clamp(12px, 1.6vw, 20px); font-size: clamp(13px, 1.2vw, 16px);
  font-style: italic; letter-spacing: 0.22em; margin-right: -0.22em; opacity: .9; text-shadow: var(--shadow);
}
/* name size; the role line's letter spacing is set by main.js to span the same width */
.name-block .name { font-size: clamp(42px, 7.6vw, 108px); letter-spacing: 0.34em; margin-right: -0.34em; }

/* Work slide: text on the left, big translucent play button on the right */
.work-block {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78vw, 1200px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 80px);
}
.slide-num { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: 0.08em; font-style: italic; text-shadow: var(--shadow); }
.slide-title {
  font-weight: 500; font-size: clamp(40px, 6.2vw, 96px); line-height: 1.04;
  letter-spacing: 0.01em; margin: 12px 0 0; max-width: 16ch; text-wrap: balance; text-shadow: var(--shadow);
}
.slide-meta { margin-top: 16px; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: 0.06em; text-shadow: var(--shadow); }
.play-circle {
  --size: clamp(124px, 11.5vw, 164px);
  position: relative; width: var(--size); height: var(--size); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  color: #000; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding-left: .1em; isolation: isolate;
}
.play-circle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  transition: background-color .3s cubic-bezier(.39, .575, .565, 1), transform .4s cubic-bezier(.175, .885, .32, 1.275);
}
.play-circle span, .play-circle svg { transition: color .3s cubic-bezier(.39, .575, .565, 1), transform .3s cubic-bezier(.175, .885, .32, 1.275); }
.play-circle svg { width: 9px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.play-circle:hover { color: #fff; }
.play-circle:hover::before { background-color: #000; transform: scale(1.04); }
.play-circle:hover svg { transform: translateX(3px); }
.play-circle:active::before { transform: scale(.96); }

/* Text animation: each line fades and rises as one piece, one after another. Only opacity and
   transform are animated (no blur, no per-letter effects), which every browser, Safari included,
   can run smoothly even while the liquid transition is playing. */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.anim .name, .anim .slide-title, .anim .up-title, .anim .fade-in {
  opacity: 0; transform: translate3d(0, 18px, 0); will-change: opacity, transform;
}
.anim.in .name, .anim.in .slide-title, .anim.in .up-title, .anim.in .fade-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: 380ms;
}
.anim.in .slide-num.fade-in, .anim.in .role.fade-in { transition-delay: 240ms; }
.anim.in .based.fade-in, .anim.in .slide-meta.fade-in { transition-delay: 520ms; }
.anim.in .slide-desc.fade-in { transition-delay: 620ms; }
.anim .play-circle.fade-in { transform: scale(.6); }
.anim.in .play-circle.fade-in {
  transform: none;
  transition: opacity .3s cubic-bezier(.39, .575, .565, 1) 700ms, transform .5s cubic-bezier(.175, .885, .32, 1.275) 700ms, color .3s ease;
}
.anim.out .name, .anim.out .slide-title, .anim.out .up-title, .anim.out .fade-in {
  opacity: 0; transform: translate3d(0, -10px, 0);
  transition: opacity .3s ease, transform .35s ease; transition-delay: 0s;
}

@media (max-width: 720px) {
  .work-block { width: calc(100vw - 2 * var(--gutter)); grid-template-columns: 1fr; gap: 26px; top: 46%; }
  .slide-title { font-size: clamp(32px, 9.5vw, 46px); }
  .play-circle { --size: 104px; font-size: 15px; gap: 8px; }
  .name-block .name { font-size: clamp(36px, 12vw, 52px); letter-spacing: 0.3em; margin-right: -0.3em; }
  .role { font-size: 15px; }
  .based { font-size: 12.5px; }
}

/* ── Contact page ─────────────────────── */
/* centred on the screen, like the menu and the About sections */
.contact-page .page-main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 100px; padding-bottom: 100px; }
.contact-page .page-title { margin-bottom: clamp(36px, 6vh, 56px); padding-left: .3em; }
.contact-body { display: flex; flex-direction: column; align-items: center; }
.contact-lede { margin: 0 0 clamp(24px, 4vh, 36px); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.contact-email, .contact-phone { display: inline-block; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: .02em; overflow-wrap: anywhere; transition: opacity .3s ease; }
.contact-phone { margin-top: 6px; }
.contact-place { margin: 18px 0 0; font-size: 16px; font-style: italic; color: var(--grey); }

/* Player: part buttons for multi-part films */
.player-parts { display: flex; flex-wrap: wrap; gap: 0 24px; padding-bottom: 6px; }
.player-parts button { font-size: 16px; letter-spacing: 0.04em; padding: 8px 0; min-height: 40px; color: rgba(255,255,255,.72); border-bottom: 1px solid transparent; }
.player-parts button:hover, .player-parts button[aria-pressed="true"] { color: var(--ink); }
.player-parts button[aria-pressed="true"] { border-bottom-color: currentColor; }

/* ── 35mm film finish over the home video ──
   Drawn by the page, not baked into the video, so the file stays small and the
   grain stays crisp. Tune here:
     --grain     strength of the film grain (0 = off, .3 subtle, .6 heavy)
     --vignette  darkness of the edges and corners
     --floor     darkness of the gradient behind the titles at the bottom
     --grade     film-print colour: 1 = on, 0 = off (warmer, softer contrast in the
                 shadows, slightly muted colour, like a print of 35mm negative)
   Add ?fx=0 to the address to see the page without it. */
.stage { --grain: .55; --vignette: .5; --floor: .35; --grade: 1; --dim: .5; }
/* --dim: the transparent black layer over the video so the white text reads clearly
   (0 = none, .5 now, .6 = very dark). Add ?dim=0 to the address to compare without it. */
body.no-dim .stage { --dim: .16; }

/* Film-print grade on the footage itself */
.slides {
  filter:
    sepia(calc(var(--grade) * .1))
    saturate(calc(1 - var(--grade) * .1))
    contrast(calc(1 + var(--grade) * .06))
    brightness(calc(1 + var(--grade) * .02));
}

.veil {
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(0, 0, 0, var(--floor)) 0%, rgba(0, 0, 0, 0) 34%),
    radial-gradient(ellipse 75% 70% at 50% 48%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, var(--vignette)) 100%),
    rgba(0, 0, 0, var(--dim));
}
/* 35mm grain: fine, tight and organic (16mm would be coarser and blotchier).
   It changes every frame at 24 fps, like real film. */
.veil::before {
  content: ""; position: absolute; inset: -120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: var(--grain);
  mix-blend-mode: overlay;   /* adds texture without lifting the blacks */
  animation: grain .333s steps(8) infinite;   /* 8 positions in 1/3 s = 24 per second */
}
/* A faint exposure flicker, the way a projected print breathes */
.veil::after {
  content: ""; position: absolute; inset: 0; background: #fff; mix-blend-mode: soft-light;
  opacity: 0; animation: flicker 2.4s steps(1) infinite;
}
@keyframes grain {
  0%     { transform: translate(0, 0); }
  12.5%  { transform: translate(-61px, 34px); }
  25%    { transform: translate(47px, -73px); }
  37.5%  { transform: translate(-29px, -18px); }
  50%    { transform: translate(83px, 52px); }
  62.5%  { transform: translate(-90px, 11px); }
  75%    { transform: translate(18px, -95px); }
  87.5%  { transform: translate(66px, 79px); }
  100%   { transform: translate(-42px, -57px); }
}
@keyframes flicker {
  0%  { opacity: .02; } 9%  { opacity: 0; }   21% { opacity: .03; } 27% { opacity: .01; }
  44% { opacity: 0; }   58% { opacity: .025; } 63% { opacity: 0; }   80% { opacity: .015; } 91% { opacity: 0; }
}
body.no-fx .slides { filter: none; }
body.no-fx .veil { background: rgba(0, 0, 0, .28); }
body.no-fx .veil::before, body.no-fx .veil::after { display: none; }
/* Reduce Motion is on: keep the grain moving (static grain looks like dust on the
   screen), but drop the exposure flicker. */
@media (prefers-reduced-motion: reduce) {
  .veil::before { animation-duration: .333s !important; }
  .veil::after { animation: none !important; opacity: 0; }
}

/* ── Film description (home slide and Works page) ── */
.slide-desc {
  margin-top: clamp(14px, 1.4vw, 20px); max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; letter-spacing: 0.01em;
  opacity: .92; text-wrap: pretty; text-shadow: var(--shadow);
}
.work-desc { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.works-upcoming { margin-top: clamp(96px, 12vw, 160px); }
.works-upcoming .work-title { margin-top: 18px; font-style: italic; font-size: 18px; }

/* ── Upcoming slide: the two pictures fill the screen side by side (drawn by main.js, split by a
   thin black line); the heading sits across the top and each project's text over its half ── */
.slide canvas.still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.up-block { position: absolute; inset: 0; transition: opacity .6s ease, visibility .6s; }
.up-title {
  position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 150px);
  font-weight: 500; text-align: center; line-height: 1; letter-spacing: 0.01em;
  font-size: clamp(48px, 7vw, 116px); margin: 0; text-shadow: var(--shadow);
}
.up-grid {
  position: absolute; left: 0; right: 0; bottom: clamp(130px, 17vh, 170px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.up-card { padding: 0 clamp(28px, 4vw, 72px); min-width: 0; text-shadow: var(--shadow); }
.up-card:first-child { padding-left: max(var(--gutter) + 56px, 8vw); }
.up-card:last-child { padding-right: max(var(--gutter) + 56px, 8vw); }
.up-kicker { font-style: italic; font-weight: 500; font-size: clamp(15px, 1.2vw, 19px); letter-spacing: 0.06em; }
.up-desc { margin-top: 8px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 44ch; text-wrap: pretty; }
.up-status { margin-top: 8px; font-style: italic; font-size: clamp(14px, 1.05vw, 16px); opacity: .85; }
.anim.in .up-card:nth-child(1) { transition-delay: 520ms; }
.anim.in .up-card:nth-child(2) { transition-delay: 680ms; }
@media (max-width: 720px) {
  .slide-desc { font-size: 15px; max-width: none; }
  /* stacked halves on phones: heading at the top, each project's text at the foot of its half */
  .up-title { top: 70px; font-size: clamp(32px, 9.5vw, 44px); }
  .up-grid { inset: 0; bottom: 0; display: block; }
  .up-card, .up-card:first-child, .up-card:last-child { position: absolute; left: 0; right: 0; padding: 0 var(--gutter); }
  .up-card:first-child { bottom: calc(50% + 14px); }
  .up-card:last-child { top: calc(50% + 18px); }
  .up-kicker { font-size: 14px; }
  .up-desc { font-size: 14px; line-height: 1.45; margin-top: 4px; }
  .up-status { font-size: 13px; margin-top: 4px; }
}

/* used only by the ?debug&perftest diagnostic */
body.perf-nograin .veil::before, body.perf-nograin .veil::after { display: none; }

/* ── Page transitions: a black curtain lifts as each page arrives and drops before leaving ── */
.curtain { position: fixed; inset: 0; z-index: 200; background: #000; pointer-events: none; opacity: 1; transition: opacity .7s var(--ease); }
.curtain.up { opacity: 0; }
.curtain.down { opacity: 1; transition: opacity .45s ease; }
@media (prefers-reduced-motion: reduce) { :root:not(.force-motion) .curtain { display: none; } }
/* the liquid melt between pages sits over everything; the page's text fades out just before it */
.page-liquid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; opacity: 0; }
.page-liquid.on { opacity: 1; }
.page-liquid.hero-melt { z-index: 15; }
.page-liquid.hero-melt.fade { opacity: 0; transition: opacity .7s ease; }   /* the About photo melting in: under the text and corner links */
.about-hello { position: relative; z-index: 16; }
body.leaving :is(.corners, .menu-btn, .name-block, .work-block, .up-block, .steps, .motion-toggle, .page-main, .about-hello, .about-awards-sec, .about-clients-sec, .about-contact-sec) {
  opacity: 0 !important; transition: opacity .3s ease !important;
}

/* ── About ──
   1. Opening screen: "Hello!" and the introduction on the left, your photo at full height on the right.
   2. Awards & Recognition: big heading on the left, an aligned list on the right (as in the deck).
   3. Films made for: a row of logos, all shown in white so they sit together.
   4. Get in touch. */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: max(100vh, 580px); }
.about-hello {
  align-self: center; min-width: 0;
  padding: 168px clamp(28px, 4vw, 72px) 40px calc(var(--gutter) + 72px);
}
.about-title { font-weight: 500; font-size: clamp(44px, 4.4vw, 70px); line-height: .95; letter-spacing: -0.01em; margin: 0 0 clamp(26px, 4vh, 44px); }
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6em; max-width: 36rem; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.58; }
/* the opening line leads: larger and a touch heavier than the rest of the bio */
.about-intro p:first-child { font-size: 14px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey); line-height: 1.8; text-wrap: balance; margin-bottom: .4em; text-align: center; padding-left: .32em; }   /* same look as the Awards & Recognition heading */
.about-intro p:not(:first-child) { font-size: .9em; }   /* body a step below the opening line */

/* the photo stays put beside the text while a longer bio scrolls past */
.about-photo { position: sticky; top: 0; align-self: start; height: max(100vh, 580px); margin: 0; overflow: hidden; background: #000; --grain: .4; --vignette: .45; --floor: .25; --dim: .1; }
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 38%; display: block;
  filter: sepia(.1) saturate(.9) contrast(1.06) brightness(1.02);
  opacity: 0; transform: scale(1.1); will-change: opacity, transform;
  transition: opacity 1.4s var(--ease), transform 2.4s var(--ease);
}
.about-photo.in img { opacity: 1; transform: none; }
.about-photo.bw img { filter: grayscale(1) contrast(1.12) brightness(1.02); }   /* black and white (SITE.photoBW) */
.about-photo.instant img { transition: none; }
.about-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 14%, rgba(0,0,0,0) 30%),
    linear-gradient(to right, var(--paper) 0%, rgba(0,0,0,0) 22%);
}
.about-photo .veil { position: absolute; inset: 0; pointer-events: none; }
/* text scrolls away beneath the top links */
.about-page::before {
  content: ""; position: fixed; top: 0; left: 0; width: calc(100% / 2.08); height: 96px; z-index: 20; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 55%, rgba(0,0,0,0));
}
.about-page.past-hero::before { width: 100%; }   /* below the opening screen the band runs full width */

.about-awards-sec, .about-clients-sec, .about-contact-sec {
  padding-left: calc(var(--gutter) + 72px); padding-right: calc(var(--gutter) + 72px);
}
.about-awards-sec { padding-top: clamp(90px, 13vh, 140px); padding-bottom: clamp(70px, 10vh, 110px); }
.about-big { font-weight: 500; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.1; margin: 0 0 clamp(28px, 4vh, 44px); }
.about-awards { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.about-awards li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); gap: 8px 36px; align-items: baseline;
  padding: 16px 0;
}
.aw-what { display: grid; gap: 4px; }
.aw-from { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.3; }
.aw-honour { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.66); }
.aw-film { font-style: italic; font-size: 16px; text-align: right; }

.about-h { font-size: 14px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey); margin: 0 0 32px; }
.about-clients-sec { padding-top: clamp(40px, 6vh, 70px); padding-bottom: clamp(80px, 11vh, 130px); }
.about-awards-sec .about-h, .about-clients-sec .about-h { text-align: center; margin-bottom: clamp(40px, 6vh, 64px); }
.about-logos {
  list-style: none; margin: 0 auto; padding: clamp(10px, 2vh, 24px) 0 0; max-width: 1180px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: clamp(48px, 6vw, 96px); row-gap: clamp(44px, 6vh, 72px);
  --logo: clamp(46px, 4.4vw, 66px);
}
.logo { display: flex; align-items: center; justify-content: center; }
.logo img { max-width: 100%; height: auto; opacity: .72; transition: opacity .4s ease; }
.logo:hover img { opacity: 1; }
.logo-name { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.6); text-align: center; line-height: 1.5; }

.about-contact-sec { padding-bottom: 140px; }
.about-contact { font-size: clamp(18px, 1.4vw, 22px); }
.about-contact .sep { display: inline-block; margin: 0 .8em; opacity: .6; }
.about-contact a { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; transition: border-color .3s ease; }
.about-contact a:hover { border-color: #fff; }

/* sections rise into view (only when the script is running, so nothing stays hidden without it) */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
}
@media (max-width: 720px) {
  .about-hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .about-photo { grid-row: 1; height: 58vh; position: relative; }
  .about-photo img { object-position: 34% 30%; }
  .about-photo::after { background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%), linear-gradient(to top, var(--paper) 0%, rgba(0,0,0,0) 35%); }
  .about-page::before { width: 100%; height: 72px; }
  .about-hello { grid-row: 2; padding: 8px var(--gutter) 40px; }
  .about-title { font-size: clamp(38px, 11vw, 48px); }
  .about-awards-sec, .about-clients-sec, .about-contact-sec { padding-left: var(--gutter); padding-right: var(--gutter); }
  .about-awards-sec { padding-top: 70px; }
  .about-awards li { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .aw-film { text-align: left; }
  .about-logos { column-gap: 40px; row-gap: 40px; --logo: 44px; }
}

/* ── Work page ───────────────────────────────
   A staggered grid of numbered frames, like taotajima.jp/works. The middle column sits
   higher and the right one lower, so the rows never line up. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work-main { padding: clamp(110px, 14vh, 150px) calc(var(--gutter) + 64px) 140px; max-width: 1360px; margin: 0 auto; }
.work-grid { display: flex; gap: clamp(32px, 5vw, 88px); align-items: flex-start; }
.work-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(64px, 9vh, 110px); }
.work-grid[data-cols="3"] .work-col:nth-child(1) { padding-top: 56px; }
.work-grid[data-cols="3"] .work-col:nth-child(3) { padding-top: 112px; }
.work-grid[data-cols="2"] .work-col:nth-child(2) { padding-top: 90px; }
.wcard { display: block; color: inherit; }
.wcard-num { display: block; font-size: 15px; font-weight: 500; letter-spacing: .06em; margin-bottom: 8px; }
.wcard-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; }
.wcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.wcard:hover .wcard-img img { transform: scale(1.03); }   /* shown when the liquid can't run */
.wcard-title { display: block; margin-top: 12px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.35; }
.wcard-fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.wcard-fx.on { opacity: 1; }
body.leaving .work-main { opacity: 0; transition: opacity .3s ease; }
@media (max-width: 720px) {
  .work-main { padding: 100px var(--gutter) 90px; }
  .work-col { gap: 56px; }
}
/* cards scroll away beneath the corner links */
.work-page::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 96px; z-index: 20; pointer-events: none; background: linear-gradient(to bottom, var(--paper) 55%, rgba(0,0,0,0)); }
@media (max-width: 720px) { .work-page::before { height: 72px; } }
/* small phones: drop the arrow after the last corner link so both corners fit on one line */
@media (max-width: 480px) { .corner .arrow-link svg { display: none; } }
/* home page corner: no Home link on the landing slide; once browsing films, Home replaces Work */
.cl-home, .cl-work { display: contents; }   /* their link and slash sit in the corner's row like the others */
body.home.on-landing .cl-home, body.home:not(.on-landing) .cl-work { display: none; }
/* menu links: while the liquid canvas is over a word, the real text hides underneath */
.menu-fx { position: fixed; z-index: 60; pointer-events: none; }
.melting { color: transparent !important; }   /* menu links, contact details */
.contact-social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: center; gap: 28px; }
.contact-social a { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; opacity: .7; transition: opacity .3s ease; }
.contact-social a:hover, .contact-social a:focus-visible { opacity: 1; }
.contact-social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Copyright */
.menu-copy { margin: 18px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--grey); }
.site-copy { padding: 0 var(--gutter) 28px; text-align: center; }
.site-copy p { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--grey); opacity: .8; }
.contact-page .site-copy { position: absolute; left: 0; right: 0; bottom: 0; }
body.leaving .site-copy { opacity: 0; transition: opacity .3s ease; }
/* shorter laptop screens: tighter spacing so the whole bio still fits beside the photo */
@media (min-width: 721px) and (max-height: 820px) {
  .about-hello { padding-top: 128px; padding-bottom: 22px; }
  .about-intro { gap: .5em; line-height: 1.5; }
}
