/* Vinstinct Films
   Palette: darkroom ink, bone paper, brass from the logo, sodium yellow for "Let's Talk".
   Type: Bodoni Moda (echoes the logo's V) for display; Archivo for text, condensed for credits. */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-latin-opsz-italic.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16120e;
  --ink-2: #201a14;
  --ink-3: #2b231b;
  --line: #3d3329;
  --bone: #efe6d6;
  --dust: #ab9e8a;
  --sodium: #f4c430;
  --sodium-hi: #ffd659;
  --brass: #b8902f;

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --head-h: 72px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --spin: 0;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { overflow-x: clip; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--sodium); color: var(--ink); }

:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--sodium); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

.section__title,
.page-head__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.page-head__title { font-size: clamp(2.75rem, 8vw, 6.25rem); }
.section__title { font-size: clamp(2rem, 4.4vw, 3.5rem); }

.page-head__lede {
  font-size: clamp(1.125rem, 1.6vw, 1.333rem);
  line-height: 1.5;
  color: var(--bone);
  max-width: 36em;
}

.meta,
.card__role,
.card__year,
.chip__count,
.field__opt {
  font-stretch: 75%;
  letter-spacing: 0.01em;
}

.link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--sodium); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7em 1.45em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--talk { background: var(--sodium); color: var(--ink); }
.btn--talk:hover { background: var(--sodium-hi); }
.btn--ghost { border-color: rgba(239, 230, 214, 0.55); color: var(--bone); background: rgba(22, 18, 14, 0.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(239, 230, 214, 0.08); }
.btn--large { min-height: 56px; padding: 0.9em 1.9em; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- lens mark */

.lens { overflow: visible; }
.lens__ring { transform-box: fill-box; transform-origin: center; }
.lens__hub { fill: none; stroke: none; }
.lens__line { fill: none; }
.lens__brass { stroke: var(--brass); }
.lens__bone { stroke: var(--bone); }
.lens__wordmark text {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.55em;
  fill: var(--bone);
}
.lens__films { font-size: 17px; }
.lens__v { fill: var(--bone); }
.lens__bokeh--soft { fill: var(--bone); opacity: 0.32; }
.lens__bokeh--ring { stroke: var(--brass); opacity: 0.75; }
.lens__bokeh--dot { fill: var(--bone); opacity: 0.45; }

[data-scroll-rotate] .lens__ring--outer { transform: rotate(calc(var(--spin) * 1deg)); }
[data-scroll-rotate] .lens__ring--focus { transform: rotate(calc(var(--spin) * -0.7deg)); }
[data-scroll-rotate] .lens__ring--inner { transform: rotate(calc(var(--spin) * 0.35deg)); }

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

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 40px);
  padding: 0 var(--gutter);
  transition: background-color 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.masthead.is-solid {
  background: rgba(22, 18, 14, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(61, 51, 41, 0.7);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__mark .lens { width: 100%; height: 100%; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__name span { color: var(--dust); }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sodium);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: translateX(-50%) scale(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
}
.menu-toggle__iris {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--bone);
  transition: transform 0.4s var(--ease);
}
.menu-toggle__iris::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--brass);
  transition: inset 0.35s var(--ease), background 0.35s;
}
.menu-toggle[aria-expanded='true'] .menu-toggle__iris::after { inset: 2px; background: var(--sodium); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--ink);
  padding: calc(var(--head-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0 at calc(100% - var(--gutter) - 13px) calc(var(--head-h) / 2));
  transition: clip-path 0.6s var(--ease);
  overflow-y: auto;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 13px) calc(var(--head-h) / 2)); }
.menu__links a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 4rem);
  line-height: 1.2;
  text-decoration: none;
}
.menu__links a[aria-current='page'] { color: var(--sodium); }
.menu__foot { display: grid; gap: 10px; font-size: 1rem; }
.menu__foot a { text-decoration: none; }
.menu__foot span { color: var(--dust); font-stretch: 75%; }
.socials--menu { display: flex; gap: 20px; margin-top: 8px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand__name { font-size: 1.0625rem; }
  .masthead__talk { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.875rem; }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
}

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

.hero {
  position: relative;
  min-height: max(560px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}
.hero__stills img,
.hero__reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__stills img {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__stills img.is-active {
  opacity: 1;
  animation: vf-drift 12s ease-out both;
}
@keyframes vf-drift { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__reel { overflow: hidden; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero__reel.is-playing { opacity: 1; }
.hero__reel iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.18);
  border: 0;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(22, 18, 14, 0.92) 0%, rgba(22, 18, 14, 0.55) 38%, rgba(22, 18, 14, 0.1) 70%, rgba(22, 18, 14, 0.45) 100%);
}

.viewfinder {
  position: absolute;
  inset: calc(var(--head-h) + 8px) var(--gutter) 20px;
  pointer-events: none;
  z-index: 1;
}
.viewfinder__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0 solid rgba(239, 230, 214, 0.7);
}
.viewfinder__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewfinder__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewfinder__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewfinder__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.viewfinder__clock {
  position: absolute;
  top: 10px;
  font-size: 0.8125rem;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  color: rgba(239, 230, 214, 0.82);
}
.viewfinder__clock time { font-variant-numeric: tabular-nums; color: var(--bone); margin-left: 0.35em; }
.viewfinder__clock--dc { left: 40px; }
.viewfinder__clock--nbo { right: 40px; }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + 28px) clamp(56px, 9vh, 104px);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 19ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 1.1em 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  max-width: 32em;
  color: rgba(239, 230, 214, 0.9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 640px) {
  .viewfinder { inset: calc(var(--head-h) + 4px) 12px 12px; }
  .viewfinder__clock { top: auto; bottom: 10px; font-size: 0.75rem; }
  .viewfinder__clock--dc { left: 14px; }
  .viewfinder__clock--nbo { right: 14px; }
  .hero__content { padding: 0 20px 76px; }
}

/* ---------------------------------------------------------------- intro: the lens pulls focus, then opens */

.lens-intro { display: none; }

html.intro .lens-intro {
  --lens: min(80vmin, 640px);
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
html.intro .lens-intro__lens {
  width: var(--lens);
  height: var(--lens);
  animation: vf-lens-out 2.9s cubic-bezier(0.55, 0, 0.3, 1) both;
}
html.intro .lens-intro__lens .lens { width: 100%; height: 100%; }
html.intro .lens-intro .lens__line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: vf-draw 1s cubic-bezier(0.6, 0, 0.2, 1) both;
}
html.intro .lens-intro .lens__ring--outer .lens__line { animation-delay: 0.05s; }
html.intro .lens-intro .lens__ring--barrel .lens__line { animation-delay: 0.18s; }
html.intro .lens-intro .lens__ring--focus .lens__line { animation-delay: 0.3s; }
html.intro .lens-intro .lens__ring--inner .lens__line { animation-delay: 0.42s; }
html.intro .lens-intro .lens__ring--outer { animation: vf-turn-outer 2.9s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
html.intro .lens-intro .lens__ring--focus { animation: vf-turn-focus 2.9s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
html.intro .lens-intro .lens__ring--inner { animation: vf-turn-inner 2.9s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
html.intro .lens-intro .lens__wordmark,
html.intro .lens-intro .lens__letter { animation: vf-letter 2.9s ease both; }
html.intro .lens-intro .lens__bokeh--soft { transform-box: fill-box; transform-origin: center; animation: vf-bokeh 2.9s ease both; }

html.intro .hero__media {
  animation: vf-iris 2.9s cubic-bezier(0.6, 0, 0.25, 1) both;
}
html.intro .hero__stills img.is-active { animation: vf-focus 2.9s ease both; }
html.intro .hero__content,
html.intro .viewfinder { animation: vf-reveal 0.8s var(--ease) 2.35s both; }

@keyframes vf-draw { to { stroke-dashoffset: 0; } }
@keyframes vf-turn-outer { 0% { transform: rotate(-120deg); } 48% { transform: rotate(0); } 72%, 100% { transform: rotate(24deg); } }
@keyframes vf-turn-focus { 0% { transform: rotate(90deg); } 48% { transform: rotate(0); } 72%, 100% { transform: rotate(-38deg); } }
@keyframes vf-turn-inner { 0% { transform: rotate(-45deg); } 50%, 100% { transform: rotate(0); } }
@keyframes vf-letter { 0%, 18% { opacity: 0; } 34%, 66% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes vf-bokeh { 0%, 40% { transform: scale(1.6); } 66%, 100% { transform: scale(1); } }
@keyframes vf-lens-out {
  0%, 70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.6); opacity: 0; }
}
@keyframes vf-iris {
  0%, 68% { clip-path: circle(calc(min(80vmin, 640px) * 0.232) at 50% 50%); }
  100% { clip-path: circle(75% at 50% 50%); }
}
@keyframes vf-focus {
  0%, 38% { filter: blur(16px) brightness(0.75); transform: scale(1.16); }
  64% { filter: blur(0) brightness(1); }
  100% { filter: blur(0) brightness(1); transform: scale(1.08); }
}
@keyframes vf-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Visitors can skip the intro with any click, key or scroll. */
html.intro.intro-skip .lens-intro { display: none; }
html.intro.intro-skip .hero__media,
html.intro.intro-skip .hero__stills img.is-active,
html.intro.intro-skip .hero__content,
html.intro.intro-skip .viewfinder { animation: none; }

/* ---------------------------------------------------------------- sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 160px) var(--gutter) 0;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section__note { color: var(--dust); margin: 0; max-width: 34em; }

/* ---------------------------------------------------------------- project cards */

.card { position: relative; }
.card__link { display: block; text-decoration: none; }
.card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}
.card__link:hover .card__img { transform: scale(1.035); }
.card__play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 18, 14, 0.55);
  border: 1px solid rgba(239, 230, 214, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background 0.25s, border-color 0.25s;
}
.card__play svg { width: 18px; height: 18px; fill: var(--bone); margin-left: 2px; }
.card__link:hover .card__play { background: var(--sodium); border-color: var(--sodium); }
.card__link:hover .card__play svg { fill: var(--ink); }

.card__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.card__preview.is-playing { opacity: 1; }
.card__preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.2);
}

.card__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding-top: 16px;
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
}
.card__year {
  align-self: baseline;
  color: var(--dust);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.card__artist { grid-column: 1 / -1; margin: 4px 0 0; font-size: 1rem; }
.card__artist .ft { color: var(--dust); }
.card__role { grid-column: 1 / -1; margin: 2px 0 0; color: var(--dust); font-size: 0.9375rem; }

/* Featured: a staggered contact sheet */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2.6vw, 40px);
  align-items: start;
}
.card--wide { grid-column: span 7; }
.card--narrow { grid-column: span 5; }
.card--drop { margin-top: clamp(40px, 9vw, 140px); }
@media (max-width: 760px) {
  .reel-grid { grid-template-columns: 1fr; gap: 44px; }
  .card--wide,
  .card--narrow { grid-column: auto; }
  .card--drop { margin-top: 0; }
}

/* ---------------------------------------------------------------- what we make */

.make__list {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  height: clamp(380px, 44vw, 600px);
}
.make__item { flex: 1 1 0; min-width: 0; transition: flex-grow 0.7s var(--ease); }
.make__item:hover,
.make__item:focus-within { flex-grow: 2.1; }
.make__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: var(--ink-2);
}
.make__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.72);
  transition: filter 0.7s, transform 1.2s var(--ease);
}
.make__link:hover .make__img,
.make__link:focus-visible .make__img { filter: saturate(1) brightness(0.85); transform: scale(1.03); }
.make__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px clamp(16px, 2vw, 28px);
  background: linear-gradient(to top, rgba(22, 18, 14, 0.85), transparent);
}
.make__label {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}
.make__line {
  display: block;
  margin-top: 6px;
  color: rgba(239, 230, 214, 0.82);
  font-size: 0.9375rem;
  max-width: 24em;
}
@media (max-width: 760px) {
  .make__list { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .make__link { aspect-ratio: 3 / 4; height: auto; }
  .make__line { display: none; }
}

/* ---------------------------------------------------------------- end credits */

.credits { text-align: center; }
.credits__intro {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  color: var(--dust);
  margin-bottom: 28px;
}
.credits__names li {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 4vw, 3.25rem);
  line-height: 1.3;
}
.credits__names li + li { margin-top: 0.15em; }

/* ---------------------------------------------------------------- reviews */

.reviews .section__title { margin-bottom: clamp(32px, 5vw, 56px); }
.reviews__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
}
.quote figcaption { margin-top: 16px; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--dust); font-stretch: 75%; margin-left: 0.4em; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 640px);
  gap: clamp(24px, 4vw, 64px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__controls { display: flex; gap: 10px; margin-top: 28px; }
.carousel__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.carousel__btn:hover { border-color: var(--bone); }

/* ---------------------------------------------------------------- closing call to action */

.closer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(96px, 14vw, 200px);
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.closer__lens {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(520px, 72vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: -1;
}
.closer__lens .lens { width: 100%; height: 100%; }
.closer__lens .lens__letter { display: none; }
.closer__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.closer__text { margin: 20px auto 32px; max-width: 30em; color: rgba(239, 230, 214, 0.86); }

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

.footer {
  padding: clamp(56px, 7vw, 96px) var(--gutter) 32px;
  background: var(--ink-2);
}
.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 32px;
}
.footer__brand .lens { width: 112px; height: 112px; margin-bottom: 20px; }
.footer__brand p { color: var(--dust); max-width: 22em; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer__h {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-stretch: 75%;
  color: var(--dust);
  margin-bottom: 6px;
}
.footer__tag { color: var(--dust); font-stretch: 75%; font-size: 0.875rem; }
.socials--footer { display: flex; flex-direction: column; gap: 8px; }
.footer__legal {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dust);
  font-size: 0.875rem;
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- page heads */

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--head-h) + clamp(48px, 9vw, 120px)) var(--gutter) clamp(32px, 4vw, 56px);
}
.page-head__lede { margin-top: 20px; }
.page-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 48px;
}
.page-head--split .page-head__lede { margin-top: 0; }
.page-head__note { color: var(--dust); margin: 12px 0 0; }
@media (max-width: 760px) { .page-head--split { grid-template-columns: 1fr; } }

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

.filters {
  position: sticky;
  top: var(--head-h);
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  background: linear-gradient(var(--ink) 70%, rgba(22, 18, 14, 0));
}
.filters ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.filters ul::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--dust); }
.chip[aria-current='true'] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip__count { color: var(--dust); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chip[aria-current='true'] .chip__count { color: #6d6253; }

.work-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px);
}
.work-grid .card.is-hidden { display: none; }
.work-grid .card.is-entering { animation: vf-reveal 0.5s var(--ease) both; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

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

.project__stage {
  padding-top: var(--head-h);
  background: #0d0a08;
}
.player {
  position: relative;
  width: min(100%, calc((100svh - var(--head-h) - 24px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.player__poster { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play,
.player__out {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: linear-gradient(to top, rgba(13, 10, 8, 0.55), rgba(13, 10, 8, 0.1));
  cursor: pointer;
  text-decoration: none;
  color: var(--bone);
}
.player__button {
  width: clamp(72px, 9vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 18, 14, 0.45);
  border: 1.5px solid var(--brass);
  box-shadow: inset 0 0 0 6px rgba(22, 18, 14, 0.35), inset 0 0 0 7px rgba(239, 230, 214, 0.5);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.player__button svg { width: 34%; fill: var(--bone); margin-left: 6%; transition: fill 0.25s; }
.player__play:hover .player__button,
.player__out:hover .player__button { transform: scale(1.06); background: var(--sodium); border-color: var(--sodium); }
.player__play:hover .player__button svg,
.player__out:hover .player__button svg { fill: var(--ink); }
.player__label { font-size: 0.9375rem; font-stretch: 75%; letter-spacing: 0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
@media (max-width: 640px) {
  .player__play .player__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.project__intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: start;
}
.project__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.project__artist { margin: 12px 0 0; font-size: 1.25rem; }
.project__artist .ft { color: var(--dust); }
.project__text { font-size: 1.125rem; max-width: 34em; }
.project__credits { margin: 0; display: grid; gap: 14px; }
.project__credits div { border-top: 1px solid var(--line); padding-top: 10px; }
.project__credits dt { font-size: 0.8125rem; font-stretch: 75%; color: var(--dust); letter-spacing: 0.02em; }
.project__credits dd { margin: 2px 0 0; }
.project__credits a { text-decoration-color: var(--brass); }
@media (max-width: 960px) { .project__intro { grid-template-columns: 1fr; } }

.project__stills {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 0;
}
.project__stills-title {
  font-size: 0.9375rem;
  font-stretch: 75%;
  color: var(--dust);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.stills { display: grid; gap: clamp(8px, 1vw, 16px); grid-template-columns: 2fr 1fr 1fr; height: clamp(260px, 32vw, 480px); }
.stills--2 { grid-template-columns: 3fr 2fr; }
.stills--4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.stills--1 { grid-template-columns: 1fr; }
.stills figure { margin: 0; overflow: hidden; background: var(--ink-2); }
.stills img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .stills,
  .stills--2,
  .stills--4 { grid-template-columns: 1fr 1fr; height: auto; }
  .stills figure:first-child { grid-column: 1 / -1; }
  .stills figure { aspect-ratio: 4 / 3; }
}

.project__next {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
}
.next {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.next__label { display: block; color: var(--dust); font-stretch: 75%; font-size: 0.9375rem; }
.next__title {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-top: 8px;
  transition: transform 0.5s var(--ease), color 0.3s;
}
.next:hover .next__title { transform: translateX(14px); color: var(--sodium); }
.next__artist { display: block; margin-top: 6px; color: var(--dust); }
.project + .closer { margin-top: clamp(72px, 10vw, 140px); }

/* ---------------------------------------------------------------- services */

.services { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 24px clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__name {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  text-wrap: balance;
}
.service__facts { margin: 0; display: grid; gap: 18px; }
.service__facts dt,
.service__sample-h {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  color: var(--dust);
  margin-bottom: 4px;
}
.service__facts dd { margin: 0; }
.service__facts ul li { position: relative; padding-left: 18px; }
.service__facts ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--brass);
}
.service__sample { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sample { display: block; width: 100%; text-decoration: none; }
.sample__frame { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.sample__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sample:hover .sample__frame img { transform: scale(1.04); }
.sample__text { display: block; margin-top: 10px; }
.sample__title { display: block; font-family: var(--serif); font-size: 1.25rem; }
.sample__artist { display: block; color: var(--dust); font-size: 0.9375rem; }
.service__sample-none,
.service__sample-credits { color: var(--dust); margin: 0; }
.service__ask { margin-top: 6px; }
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service__name { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .service { grid-template-columns: 1fr; } }

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

.about-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--head-h) + clamp(32px, 6vw, 88px)) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-hero__portrait { position: sticky; top: calc(var(--head-h) + 24px); }
.about-hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.about-hero__role { color: var(--dust); margin: 14px 0 32px; font-size: 1.125rem; }
.about-hero__text p { max-width: 36em; }
.about-hero__text .about-hero__role + p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__portrait { position: static; max-width: 520px; }
}

.honours__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(28px, 4vw, 48px); }
.award { border-top: 1px solid var(--brass); padding-top: 20px; }
.award__title { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; margin: 0 0 10px; }
.award__event { color: var(--dust); margin: 0; }
.award__work { margin: 6px 0 0; }
.honours__credits { border-top: 1px solid var(--line); padding-top: 20px; }
.honours__intro { color: var(--dust); margin: 0 0 10px; }
.honours__credits li { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; }
@media (max-width: 760px) { .honours__grid { grid-template-columns: 1fr; } }

.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(16px, 2.4vw, 36px); margin-top: clamp(28px, 4vw, 48px); }
.member__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member__initials {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  box-shadow: inset 0 0 0 10px var(--ink-2), inset 0 0 0 11px var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--bone);
}
.member__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.member__role { color: var(--dust); margin: 4px 0 10px; font-stretch: 75%; }
.member__bio { font-size: 0.9875rem; margin: 0; }
@media (max-width: 960px) { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team__grid { grid-template-columns: 1fr; } }

/* On-set archive, laid out like a contact sheet */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 13vw, 220px);
  grid-auto-flow: dense;
  gap: 6px;
  padding: 6px;
  background: #0d0a08;
}
.contact-sheet__frame.is-tall { grid-row: span 2; }
.contact-sheet__frame a { position: relative; display: block; height: 100%; overflow: hidden; }
.contact-sheet__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
  filter: brightness(0.86);
}
.contact-sheet__frame a:hover img,
.contact-sheet__frame a:focus-visible img { transform: scale(1.04); filter: brightness(1); }
.contact-sheet__no {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.6875rem;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html.js .contact-sheet:not(.is-expanded) .is-more { display: none; }
.contact-sheet__more { margin: 28px 0 0; text-align: center; }
html:not(.js) .contact-sheet__more { display: none; }
@media (max-width: 860px) { .contact-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 34vw; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 10, 8, 0.96);
  color: var(--bone);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { margin: 0; display: grid; place-items: center; padding: 64px var(--gutter) 0; min-height: 0; }
.lightbox__figure img { max-height: calc(100svh - 160px); width: auto; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 16px var(--gutter) 24px; }
.lightbox__caption { margin: 0 auto 0 0; color: var(--dust); font-size: 0.9375rem; }
.lightbox__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--bone); }

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

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--head-h) + clamp(48px, 8vw, 112px)) var(--gutter) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 7vw, 112px);
  align-items: start;
}
.contact__side { position: sticky; top: calc(var(--head-h) + 32px); }
.contact__details { margin: 36px 0 0; display: grid; gap: 14px; }
.contact__details div { border-top: 1px solid var(--line); padding-top: 10px; }
.contact__details dt { font-size: 0.8125rem; font-stretch: 75%; color: var(--dust); letter-spacing: 0.02em; }
.contact__details dd { margin: 2px 0 0; font-size: 1.125rem; }
.contact__details a { text-decoration: none; }
.contact__details a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.socials--inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact__base { margin-top: 28px; color: var(--dust); }
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact__side { position: static; }
}

.quote-form { display: grid; gap: 28px; margin: 0; }
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .quote-form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend { font-size: 0.9375rem; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 12px; }
.field__opt { color: var(--dust); font-weight: 400; margin-left: 0.3em; font-size: 0.875rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.2s;
}
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ab9e8a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center / 12px; padding-right: 28px; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #7d715f; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--sodium); box-shadow: 0 1px 0 0 var(--sodium); }
.field [aria-invalid='true'],
.field[aria-invalid='true'] .choice span { border-color: #e7826b; }
.field__error { color: #f0a08e; margin: 0; font-size: 0.9375rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.choice:hover span { border-color: var(--dust); }
.choice input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--sodium); outline-offset: 3px; }

.quote-form .btn { justify-self: start; }
.quote-form__status { margin: 0; min-height: 1.6em; color: var(--dust); }
.quote-form__status.is-error { color: #f0a08e; }
.quote-form.is-sending .btn { opacity: 0.6; pointer-events: none; }

.notice { padding: 20px 24px; margin-bottom: 32px; border: 1px solid var(--line); }
.notice h2 { font-family: var(--serif); font-size: 1.625rem; margin-bottom: 6px; }
.notice p { margin: 0; }
.notice--ok { border-color: var(--brass); }
.notice--error { border-color: #e7826b; }

/* ---------------------------------------------------------------- 404 */

.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--head-h) + 32px) var(--gutter) 64px;
}
.lost__lens { width: min(52vmin, 340px); margin-bottom: 32px; filter: blur(3px); opacity: 0.85; }
.lost__lens .lens { width: 100%; height: auto; }
.lost .page-head__lede { margin: 16px auto 0; }
.lost__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.lost + .closer { display: none; }

/* ---------------------------------------------------------------- page transitions
   Moving between pages is shot like a camera move (data-vt is set by public/js/head.js):
   - whip pan: sideways between pages; the frame smears with motion blur and lands on the next
   - rack focus: into a project and back out; the focus pulls off one page and onto the next
   The header stays locked off while the picture moves underneath it. */

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

.masthead { view-transition-name: masthead; }
::view-transition-group(masthead) { animation-duration: 0.35s; }
::view-transition-old(root),
::view-transition-new(root) { mix-blend-mode: normal; }

.vt-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

html[data-vt='whip-left'],
html.vt-whip-left { --vt-dir: 1; }
html[data-vt='whip-right'],
html.vt-whip-right { --vt-dir: -1; }

/* Whip pan */
html[data-vt^='whip']::view-transition-old(root) { animation: vf-whip-out 0.62s cubic-bezier(0.75, 0, 0.25, 1) both; }
html[data-vt^='whip']::view-transition-new(root) { animation: vf-whip-in 0.62s cubic-bezier(0.75, 0, 0.25, 1) both; }
html.vt-streak[data-vt^='whip']::view-transition-old(root) { animation-name: vf-whip-out-streak; }
html.vt-streak[data-vt^='whip']::view-transition-new(root) { animation-name: vf-whip-in-streak; }

@keyframes vf-whip-out {
  0% { transform: none; filter: blur(0); }
  55% { filter: blur(10px) brightness(1.05); }
  100% { transform: translateX(calc(var(--vt-dir, 1) * -100vw)) scaleX(1.08); filter: blur(22px) brightness(1.1); }
}
@keyframes vf-whip-in {
  0% { transform: translateX(calc(var(--vt-dir, 1) * 100vw)) scaleX(1.08); filter: blur(22px) brightness(1.1); }
  45% { filter: blur(10px) brightness(1.05); }
  100% { transform: none; filter: blur(0); }
}
/* Same move, with horizontal-only streaks (SVG filters in the page; Chromium on desktop) */
@keyframes vf-whip-out-streak {
  0% { transform: none; filter: none; }
  25% { filter: url(#vf-streak-1); }
  50% { filter: url(#vf-streak-2); }
  80% { filter: url(#vf-streak-3); }
  100% { transform: translateX(calc(var(--vt-dir, 1) * -100vw)) scaleX(1.08); filter: url(#vf-streak-3); }
}
@keyframes vf-whip-in-streak {
  0% { transform: translateX(calc(var(--vt-dir, 1) * 100vw)) scaleX(1.08); filter: url(#vf-streak-3); }
  20% { filter: url(#vf-streak-3); }
  50% { filter: url(#vf-streak-2); }
  75% { filter: url(#vf-streak-1); }
  100% { transform: none; filter: none; }
}

/* Rack focus */
html[data-vt^='rack']::view-transition-old(root) { animation: vf-rack-out 0.42s cubic-bezier(0.5, 0, 0.75, 0) both; }
html[data-vt^='rack']::view-transition-new(root) { animation: vf-rack-in 0.6s cubic-bezier(0.2, 0.6, 0.3, 1) 0.16s both; }
html[data-vt='rack-out']::view-transition-old(root) { animation-name: vf-rack-out-back; }
html[data-vt='rack-out']::view-transition-new(root) { animation-name: vf-rack-in-back; }

@keyframes vf-rack-out { to { transform: scale(1.07); filter: blur(18px); opacity: 0; } }
@keyframes vf-rack-in { from { transform: scale(0.965); filter: blur(18px); opacity: 0; } }
@keyframes vf-rack-out-back { to { transform: scale(0.94); filter: blur(18px); opacity: 0; } }
@keyframes vf-rack-in-back { from { transform: scale(1.05); filter: blur(18px); opacity: 0; } }

/* Browsers without cross-page transitions: play the arriving half on the content */
html.vt-in main { animation: vf-arrive-whip 0.5s cubic-bezier(0.2, 0.7, 0.25, 1) backwards; }
html.vt-in.vt-rack-in main,
html.vt-in.vt-rack-out main { animation: vf-arrive-rack 0.55s cubic-bezier(0.2, 0.6, 0.3, 1) backwards; }
@keyframes vf-arrive-whip { from { transform: translateX(calc(var(--vt-dir, 1) * 24vw)); filter: blur(12px); opacity: 0; } }
@keyframes vf-arrive-rack { from { transform: scale(0.975); filter: blur(14px); opacity: 0; } }

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__stills img.is-active { animation: none; }
}
