/* Augustine James. One stylesheet, no build step.
   Ground is near black because the work is mostly light in the dark.
   One accent, the red of a camera's record light, used for state only:
   recording, focus, errors. Never as decoration. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #1a1a1d;
  --ink: #f1eee8;
  --ink-2: rgb(241 238 232 / 0.66);
  --ink-3: rgb(241 238 232 / 0.42);
  --line: rgb(241 238 232 / 0.14);
  --rec: #ff3b30;

  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Archivo", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 1rem + 1.8vw, 44px);
  --section: clamp(88px, 4rem + 8vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --t-hero: clamp(3rem, 1.4rem + 7vw, 9rem);
  --t-h2: clamp(2.2rem, 1.1rem + 4.4vw, 6.4rem);
  --t-h3: clamp(1.5rem, 1rem + 2.4vw, 3.6rem);
  --t-lead: clamp(1.6rem, 0.9rem + 2.8vw, 4.2rem);
  --t-body: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  font-stretch: 100%;
  font-size: var(--t-body);
  line-height: 1.55;
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The width and height attributes are there to reserve space before load;
   as presentational hints they also set a CSS height, which wins over
   aspect-ratio and renders a 4800px tall thumbnail. height: auto undoes it. */
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
::selection { background: var(--rec); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rec);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: -80px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
  font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  transition: top 0.2s;
}
.skip:focus { top: var(--gutter); }

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

/* Type */
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.mono, .label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label { color: var(--ink-3); display: flex; gap: 0.9em; align-items: baseline; }
.label b { color: var(--ink); font-weight: 500; }

/* Grain: real film has it, a flat black does not. Overlay keeps blacks black. */
.grain {
  position: fixed;
  inset: -60%;
  z-index: 80;
  pointer-events: none;
  background: url("/media/noise.png");
  opacity: 0.11;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-7%, 4%); }
  40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(8%, 2%); }
  100% { transform: translate(-5%, -4%); }
}

/* ---------------------------------------------------------------- header */
.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--gutter) * 0.75) var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.mark { display: inline-flex; align-items: center; gap: 14px; }
.mark svg { height: 26px; width: auto; overflow: visible; }
.mark .apex {
  transform-box: fill-box;
  transform-origin: 50% 55%;
  transition: transform 0.7s var(--ease-spring);
}
html.is-playing .mark .apex { transform: rotate(90deg) scale(0.8); }
.mark__name {
  font: 500 11.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); }
.nav a {
  font: 500 11.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Room on the right of the header for the floating Book button, which is
   its own fixed element: anything inside the header is blended by
   difference, and a solid button blended by difference is not solid. */
.hd { padding-right: calc(var(--gutter) + 200px); }

/* Buttons. The solid one is the booking action, everywhere. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out), opacity 0.35s;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--rec); color: #fff; }
.btn--ghost { border: 1px solid rgb(255 255 255 / 0.6); color: #fff; background: rgb(0 0 0 / 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: #fff; background: rgb(0 0 0 / 0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex: none; animation: blink 1.6s steps(2) infinite; }
.btn--solid:hover .dot, .btn--solid:focus-visible .dot { background: #fff; }

/* The floating Book button. Top right in the header row on desktop, a thumb
   reach pill at the foot of the screen on phones. site.js hides it while the
   hero's own button or the form is on screen. */
.book {
  position: fixed; z-index: 60;
  top: calc(var(--gutter) * 0.75 - 4px); right: var(--gutter);
  height: 42px; padding: 0 20px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}
html.book-hidden .book { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.menu-btn { display: none; font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* Per-letter roll, built by site.js from plain text. */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: inline-block; position: relative; transition: transform 0.5s var(--ease-out); transition-delay: calc(var(--i) * 18ms); white-space: pre; }
.roll > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .roll > span, a:focus-visible .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  display: grid; align-content: center; gap: 6px;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
/* > a: the Instagram link in the line beneath is not one of these. Sized
   so the widest label (--chars, its width in em, from build.js) fits. */
.menu > a {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: min(4rem, calc((100vw - var(--gutter) * 2) * 0.97 / var(--chars, 10))); line-height: 1.08; white-space: nowrap;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.menu.is-open > a { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i) * 60ms); }
.menu .menu__meta { margin-top: 40px; color: var(--ink-3); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
/* A long press is the shutter here, so nothing in the hero may select,
   magnify or pop a menu. Safari only honours the prefixed user-select, and
   without it holding on a phone highlights the tagline instead. */
.hero, .hero * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(calc(1 + var(--p, 0) * 0.08));
  transform-origin: 50% 40%;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Only the HUD line gets a shade. The name blends by difference, and a
     shade under it turns bright frames mid grey, where difference has
     nothing to push against; left alone, a bright frame turns it black. */
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0) 14%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.3) 0%, rgb(0 0 0 / 0) 18%),
    rgb(0 0 0 / calc(var(--p, 0) * 0.6));
}
.hero__flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: #fff; opacity: 0;
}
.hero.is-shot .hero__flash { animation: flash 0.42s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* Viewfinder corners: they close in while a still is held. */
.vf { position: absolute; inset: calc(var(--gutter) * 2.4) var(--gutter); z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.3s, inset 0.5s var(--ease-out); }
.vf i { position: absolute; width: 28px; height: 28px; border: 0 solid #fff; }
.vf i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.vf i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.hero.is-held .vf { opacity: 1; inset: calc(var(--gutter) * 3.4) calc(var(--gutter) * 2); }

.hero__type {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--gutter) + 46px);
  color: #fff;
}
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: clamp(16px, 1.8vw, 28px); }
.hero__tag, .hero__name, .hero__ctas { position: relative; z-index: 4; transform: translateY(calc(var(--p, 0) * -40px)); }
.hero__tag, .hero__name { mix-blend-mode: difference; }
.hero__tag { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
/* The biggest booking button on the site gets the most room. */
.hero__ctas .btn { height: clamp(48px, 2.6rem + 0.6vw, 58px); padding: 0 clamp(20px, 1rem + 1vw, 32px); font-size: clamp(11.5px, 0.62rem + 0.2vw, 13px); }
.hero__name { width: 100%; height: auto; overflow: visible; }
.hero__name .stacked { display: none; }
.hero__name path { transform-box: fill-box; }

.hud {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: #fff;
  font: 500 11.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hud__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rec);
  animation: blink 1.2s steps(2) infinite;
}
.hero.is-held .rec::before { animation: none; border-radius: 1px; background: #fff; }
@keyframes blink { 50% { opacity: 0.2; } }
.tc { font-variant-numeric: tabular-nums; }
.hud__clip { color: rgb(255 255 255 / 0.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__hint { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.key {
  display: inline-grid; place-items: center;
  min-width: 52px; height: 24px; padding: 0 8px;
  border: 1px solid rgb(255 255 255 / 0.6); border-radius: 5px;
  font-size: 10px;
}
.hero.is-held .key { background: #fff; color: #000; }
.hint--touch { display: none; }
@media (hover: none) { .hint--key { display: none; } .hint--touch { display: inline; } .hud .key { display: none; } }

/* The stills a visitor pulls out of the hero. */
/* Top right, under the header, so prints never land on the name. */
.tray {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--gutter) * 0.75 + 92px);
  z-index: 6;
  width: clamp(150px, 14vw, 230px);
  aspect-ratio: 16 / 11;
  pointer-events: none;
}
.tray__count {
  position: absolute; right: 0; top: calc(100% + 14px);
  font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity 0.3s;
}
.tray.has-prints .tray__count { opacity: 1; }
.print {
  position: absolute; inset: 0;
  background: #f4f1ea;
  padding: 7px 7px 26px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.5);
  transform: rotate(var(--r, 0deg)) translate(var(--x, 0), var(--y, 0));
  animation: print-in 0.7s var(--ease-out) both;
  pointer-events: auto;
  color: #111;
}
.print img { width: 100%; height: 100%; object-fit: cover; background: #222; }
.print span {
  position: absolute; left: 8px; right: 8px; bottom: 6px;
  font: 500 9px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes print-in {
  0% { opacity: 0; transform: translate(-30vw, -40vh) rotate(-24deg) scale(1.6); }
  100% { opacity: 1; }
}

/* Intro: the apex stands, tips over into play, the shutter opens. Only
   when html.is-intro is set by the inline head script, so no JS, no intro. */
.intro { display: none; }
html.is-intro .intro {
  display: block;
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}
.intro__half {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg);
  animation: intro-open 0.9s var(--ease-io) 1.15s both;
}
.intro__half--top { top: 0; transform-origin: top; }
.intro__half--bot { bottom: 0; --dir: 1; }
.intro__half--top { --dir: -1; }
@keyframes intro-open { to { transform: translateY(calc(var(--dir) * 101%)); } }
.intro__mark {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  color: var(--ink);
  animation: intro-mark 1.25s var(--ease-io) both;
}
.intro__mark svg { width: 100%; height: 100%; overflow: visible; }
.intro__mark path { transform-box: fill-box; transform-origin: 50% 55%; animation: intro-tip 0.7s var(--ease-spring) 0.35s both; }
@keyframes intro-tip { to { transform: rotate(90deg) scale(0.82); } }
@keyframes intro-mark {
  0% { opacity: 0; transform: scale(0.6); }
  25% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.intro__line {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px;
  background: var(--rec);
  transform: scaleX(0);
  animation: intro-line 0.5s var(--ease-io) 0.85s both;
}
@keyframes intro-line { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
html.is-intro .intro { animation: intro-done 0s linear 2.1s forwards; }
@keyframes intro-done { to { visibility: hidden; } }

/* Hero wordmark letters rise into place. */
html.js .hero__name .glyph { animation: rise-glyph 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0s) + var(--i) * 45ms); }
html.is-intro .hero__name .glyph { --d: 1.35s; }
@keyframes rise-glyph { from { transform: translateY(115%); } }
html.js .hero__tag, html.js .hero__ctas, html.js .hud { animation: fade-up 0.9s var(--ease-out) both; animation-delay: var(--d, 0.2s); }
html.js .hero__ctas { --d: 0.35s; }
html.is-intro .hero__tag, html.is-intro .hud { --d: 1.9s; }
html.is-intro .hero__ctas { --d: 2.05s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--section); position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 80px); flex-wrap: wrap; }
.h2 { font-size: var(--t-h2); }

/* Word reveal for headings. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .w > span { display: inline-block; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
html.js .split:not(.is-in) .w > span { transform: translateY(105%); }

/* Generic reveal. */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Statement: words light up as it scrolls past. */


/* ------------------------------------------------------------------ work */
.hero__name svg, .ft__mark svg { width: 100%; height: auto; overflow: hidden; }

/* Grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gutter); }
.card a { display: block; }
.card:nth-child(3n + 2) { margin-top: clamp(40px, 6vw, 120px); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.card__media > img, .card__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.3s; }
.card__media > .flick { opacity: 0; }
.card__media > .flick.is-on { opacity: 1; }
.card a:hover .card__media > img:first-child { transform: scale(1.045); }
.card__media video { opacity: 0; }
.card__media video.is-on { opacity: 1; }
.card__cap { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.card__title { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem); line-height: 1.1; }
.card__meta { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.kind-film::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 8px; vertical-align: 1px; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px;
  margin-top: clamp(56px, 7vw, 120px); padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.cta-band__text { font-size: clamp(1.7rem, 1rem + 2.8vw, 4rem); line-height: 1; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band--project { margin-top: 0; padding-block: clamp(56px, 7vw, 120px); }
.cta-band .btn--ghost { color: var(--ink); border-color: var(--line); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cta-band .btn--ghost:hover { border-color: var(--ink); }

/* -------------------------------------------------------------- services */
.svc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.svc__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.svc__item { border-top: 1px solid var(--line); padding: clamp(18px, 2vw, 30px) 0; display: grid; grid-template-columns: 3.4rem 1fr; gap: 6px 16px; transition: color 0.4s; cursor: default; }
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__n { font: 500 11.5px var(--mono); letter-spacing: 0.1em; color: var(--ink-3); padding-top: 0.9em; }
.svc__name { font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 0.9rem + 2vw, 2.9rem); line-height: 1; color: var(--ink-3); transition: color 0.45s; }
.svc__line { grid-column: 2; color: var(--ink-2); max-width: 40ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.6s var(--ease-out); }
.svc__item.is-active .svc__name { color: var(--ink); }
.svc__item.is-active .svc__line { max-height: 6em; opacity: 1; margin-top: 10px; }
.svc__book {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--rec); padding-bottom: 4px;
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.6s var(--ease-out), color 0.3s;
}
.svc__book svg { width: 11px; height: 11px; transition: transform 0.4s var(--ease-out); }
.svc__book:hover svg { transform: translate(3px, -3px); }
.svc__book:hover { color: var(--rec); }
.svc__item.is-active .svc__book, .svc__book:focus-visible { max-height: 3em; opacity: 1; margin-top: 14px; }
.svc__item.is-active .svc__n { color: var(--rec); }
.svc__frame { position: sticky; top: 14vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.svc__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.12);
  transition: clip-path 0.9s var(--ease-io), transform 1.4s var(--ease-out);
}
.svc__frame img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.svc__frame img.was-on { clip-path: inset(0 0 0 0); transform: scale(1); }
.svc__note { margin-top: clamp(28px, 3vw, 48px); color: var(--ink-2); max-width: 46ch; }
.svc__note strong { color: var(--ink); font-weight: 600; }
.svc__thumb { display: none; }

/* ---------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.step { position: relative; padding-top: 26px; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--s, 1)); transition: transform 1.2s var(--ease-io); transition-delay: calc(var(--i) * 140ms); }
html.js .steps:not(.is-in) .step { --s: 0; }
.step__n { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ink-3); margin-bottom: 22px; }
.step h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); font-stretch: 112%; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 30ch; }

/* ------------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; }
.about h2 { font-size: var(--t-h2); line-height: 0.95; }
.about__body p { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem); line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.about__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; }
.biglink { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink-3); padding-bottom: 6px; transition: border-color 0.3s; }
.biglink:hover { border-color: var(--rec); }
.biglink svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.biglink:hover svg { transform: translate(3px, -3px); }

/* Marquee of frames between about and contact. */
.reel { overflow: hidden; padding-block: clamp(24px, 3vw, 48px); }
.reel__track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.reel:hover .reel__track { animation-play-state: paused; }
.reel__track img { height: clamp(120px, 16vw, 230px); width: auto; aspect-ratio: var(--ar); object-fit: cover; background: var(--bg-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- contact */
.contact__head h2 { font-size: var(--t-h2); max-width: 13ch; }
.contact__lede { margin-top: 26px; color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); max-width: 40ch; }
.form { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px var(--gutter); max-width: 1100px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: 500 clamp(1.1rem, 1rem + 0.4vw, 1.4rem) var(--body);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1eee8' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 28px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rec); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.form__alt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); border-bottom: 1px solid var(--ink-3); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.form__alt:hover { color: var(--ink); border-color: var(--rec); }
.form__alt svg { width: 11px; height: 11px; }
.form__status { flex-basis: 100%; }
.send {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 34px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
}
.send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rec); transform: translateY(101%); transition: transform 0.5s var(--ease-io); }
.send:hover::before, .send:focus-visible::before { transform: none; }
.send:hover, .send:focus-visible { color: #fff; }
.send[disabled] { opacity: 0.55; pointer-events: none; }
.form__status { font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--ink-2); min-height: 1.4em; }
.form__status.is-error { color: var(--rec); }
.form__status.is-ok { color: var(--ink); }

/* ----------------------------------------------------------------- footer */
.ft { padding: clamp(60px, 8vw, 140px) var(--gutter) var(--gutter); overflow: hidden; }
.ft__mark { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.ft__mark .stacked { display: none; }
html.js .ft__mark .glyph { transform: translateY(100%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
html.js .ft.is-in .ft__mark .glyph { transform: none; }
.ft__mark .glyph { transform-box: fill-box; }
.ft__row { margin-top: clamp(28px, 3vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; color: var(--ink-3); }
.ft__row a { color: var(--ink-2); transition: color 0.3s; }
.ft__row a:hover { color: var(--ink); }
.ft__links { display: flex; flex-wrap: wrap; gap: 14px 26px; }

/* ---------------------------------------------------------------- project */
.phero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: #000; }
.phero__media { position: absolute; inset: 0; }
.phero__media > img, .phero__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__media > img { animation: slow-push 18s linear both; }
@keyframes slow-push { from { transform: scale(1.08); } to { transform: scale(1); } }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.25) 45%, rgb(0 0 0 / 0) 70%), linear-gradient(to bottom, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0) 25%); }
/* Plain white over a shade here, not a difference blend: project covers are
   often bright, and difference over a mid grey reads as grey on grey. */
.phero__type { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); color: #fff; }
.phero__client { margin-bottom: 14px; }
/* Sized from the widest word (--chars: its width in em, measured off the
   font by build.js) so no title ever breaks inside a word. 0.97 leaves a
   little room for the scrollbar. */
.phero h1 { font-size: min(clamp(2.6rem, 1rem + 8.2vw, 11rem), calc((100vw - var(--gutter) * 2) * 0.97 / var(--chars, 8))); line-height: 0.9; }
.phero h1 .w > span { animation: rise-glyph 1.1s var(--ease-out) both; animation-delay: calc(0.25s + var(--i) * 70ms); }
.phero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: clamp(20px, 2.4vw, 36px); }
.meta div { display: grid; gap: 4px; }
.meta dt { color: rgb(255 255 255 / 0.55); }
.meta dd { margin: 0; color: #fff; }
.meta { animation: fade-up 0.9s var(--ease-out) 0.7s both; }

.pintro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); align-items: start; }
.pintro .label { padding-top: 0.7em; }
.pintro__text { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: clamp(1.45rem, 1rem + 1.8vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }

.player { position: relative; margin-inline: auto; background: #000; max-height: 88vh; aspect-ratio: var(--ar); width: min(100%, calc(88vh * var(--arn))); }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0));
  color: #fff;
  opacity: 1; transition: opacity 0.4s;
}
.player.is-playing:not(:hover):not(:focus-within) .player__ui { opacity: 0; }
.player__btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 50%; }
.player__btn svg { width: 14px; height: 14px; }
.player__btn .i-pause { display: none; }
.player.is-playing .player__btn .i-play { display: none; }
.player.is-playing .player__btn .i-pause { display: block; }
.scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--rec) var(--v, 0%), rgb(255 255 255 / 0.3) var(--v, 0%)); }
.scrub::-moz-range-track { height: 2px; background: rgb(255 255 255 / 0.3); }
.scrub::-moz-range-progress { height: 2px; background: var(--rec); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -5px; }
.scrub::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.player__tc { font: 500 11px var(--mono); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__big {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #000; display: grid; place-items: center;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
}
.player__big svg { width: 26px; height: 26px; margin-left: 4px; }
.player.is-playing .player__big { opacity: 0; transform: scale(0.6); pointer-events: none; }
.player__note { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); }
.player__note a { color: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
.player__note a:hover { color: var(--ink); border-color: var(--rec); }

.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.frames--tall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shot { display: block; position: relative; width: 100%; overflow: hidden; background: var(--bg-3); }
.shot img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out), filter 0.5s; }
.shot:hover img { transform: scale(1.03); }
.shot__tc { position: absolute; left: 10px; bottom: 8px; font: 500 10px var(--mono); letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }

.stills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.stills .shot { grid-column: span 6; }
.stills .shot.s-full { grid-column: 1 / -1; }
.stills .shot.s-third { grid-column: span 4; }
.stills .shot.s-center { grid-column: 4 / span 6; }
.stills .shot.s-wide { grid-column: 2 / span 10; }

.next { display: block; position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 200px); border-top: 1px solid var(--line); isolation: isolate; }
.next__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transform: scale(1.08); transition: opacity 0.6s, transform 1.4s var(--ease-out); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.next:hover .next__bg, .next:focus-visible .next__bg { opacity: 1; transform: scale(1); }
.next__title { font-size: min(clamp(2.4rem, 1rem + 7vw, 9.5rem), calc((100vw - var(--gutter) * 2) * 0.97 / var(--chars, 8))); line-height: 0.92; margin-top: 16px; transition: transform 0.8s var(--ease-out); }
.next:hover .next__title { transform: translateX(0.12em); }

/* Lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 5 6 / 0.97); color: var(--ink); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 0.45s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb__top, .lb__bot { display: flex; justify-content: space-between; align-items: center; padding: var(--gutter); gap: 16px; }
/* A definite row, or the image's max-height: 100% resolves against an auto
   track, means nothing, and a tall photo covers the controls below it. */
.lb__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden; padding: 0 var(--gutter); touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: lb-img 0.6s var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } }
.lb button { font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 6px; }
.lb__nav { display: flex; gap: 22px; }

/* 404 */
.lost { min-height: 100svh; display: grid; align-content: center; gap: 28px; padding: var(--gutter); }
.lost h1 { font-size: clamp(3rem, 1rem + 10vw, 12rem); line-height: 0.9; }

/* Custom cursor: a dot that tracks exactly, a ring that lags and says what
   a press will do. Pointer-fine only, never under reduced motion. */
.cursor, .ring { display: none; }
html.has-cursor .cursor, html.has-cursor .ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  mix-blend-mode: difference; color: #fff;
}
html.has-cursor .cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
html.has-cursor .ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgb(255 255 255 / 0.7); border-radius: 50%;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), border-radius 0.4s, background 0.3s, border-color 0.3s;
  display: grid; place-items: center;
}
.ring span { font: 500 9.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
html.has-cursor .ring.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: #fff; }
html.has-cursor .ring.is-label span { opacity: 1; }
html.has-cursor .ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
html.has-cursor .ring.is-down { background: rgb(255 255 255 / 0.25); }
html.has-cursor .ring.is-hidden, html.has-cursor .cursor.is-hidden { opacity: 0; }
@media (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* Shutter fallback for browsers without cross-document view transitions. */
.shutter { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: none; }
.shutter i { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); transition: transform 0.5s var(--ease-io); }
.shutter i:first-child { top: 0; transform: translateY(-101%); }
.shutter i:last-child { bottom: 0; transform: translateY(101%); }
html.no-vt .shutter { display: block; }
.shutter.is-closed i { transform: none; }

/* Cross-document view transitions: the page shuts like a shutter and the
   next one opens out of the slit; a cover morphs into the project hero. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-old 0.6s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-new 0.8s var(--ease-io) 0.1s both; }
@keyframes vt-old { to { transform: scale(0.94); opacity: 0.25; filter: blur(4px); } }
@keyframes vt-new { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
::view-transition-group(*) { animation-duration: 0.8s; animation-timing-function: var(--ease-io); }

/* ----------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .frames--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 820px) {
  .nav { display: none; }
  .hd { padding-right: var(--gutter); }
  .book {
    top: auto; right: auto; left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    height: 52px; padding: 0 26px; font-size: 12px;
    transform: translateX(-50%);
  }
  html.book-hidden .book { transform: translate(-50%, 24px); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 0; padding: 0 14px; }
  .menu-btn { display: inline-block; }
  .mark__name { display: none; }
  .hero__name .wide { display: none; }
  .hero__name .stacked { display: block; }
  .ft__mark .wide { display: none; }
  .ft__mark .stacked { display: block; }
  .hero__type { bottom: calc(var(--gutter) + 40px); }
  .tray { bottom: auto; top: calc(var(--gutter) + 60px); width: 128px; }
  .tray__count { bottom: auto; top: calc(100% + 10px); }
  .hud__clip { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(3n + 2) { margin-top: 0; }
  .card:nth-child(2n) { margin-top: 48px; }

  .svc { grid-template-columns: 1fr; }
  .svc__frame { display: none; }
  .svc__item { grid-template-columns: 2.4rem 1fr; }
  .svc__name { color: var(--ink); }
  .svc__line { max-height: none; opacity: 1; margin-top: 8px; }
  .svc__book { max-height: none; opacity: 1; margin-top: 12px; }
  .svc__thumb { display: block; grid-column: 2; margin-top: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-3); }

  .about { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .pintro { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stills .shot, .stills .shot.s-third, .stills .shot.s-center, .stills .shot.s-wide { grid-column: 1 / -1; }
  .stills .shot.s-half-m { grid-column: span 6; }
}
@media (max-width: 520px) {
  .player__of { display: none; }
  .player__ui { gap: 10px; padding: 12px; }
  .player__fs { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card:nth-child(2n) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .meta { gap: 10px 26px; }
}

/* Short laptop screens: keep the hero type off the header. */
@media (max-height: 700px) and (min-width: 821px) {
  .hero__tag { margin-bottom: 10px; }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .grain, .reel__track { animation: none !important; }
  html.js [data-reveal], html.js .split .w > span { opacity: 1 !important; transform: none !important; }
  .hero__media, .hero__type { transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
