/* Jacob Gill, brand films. Tokens first; see DESIGN.md. */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Var"; src: url("../fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 300 700; font-stretch: 62% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("../fonts/funnel-display-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("../fonts/funnel-sans-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --black: #000000;
  --paper: #efefec;
  --ink: #0a0a0a;
  --ash: #9a9a95;
  --graphite: #5e5e5a;
  --tally: #e5322d;
  --white: #ffffff;
  --mist: #e6e6e3;   /* empty video slot on white */
  --line-dark: #2a2a28;
  --line-paper: #cfcfca;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-cap: 0.875rem;   /* 14 */
  --fs-body: 1.125rem;  /* 18 */
  --fs-3: 1.5rem;       /* 24 */
  --fs-4: 2rem;         /* 32 */
  --fs-5: clamp(2rem, 1.4rem + 2.2vw, 2.625rem);      /* 32 to 42 */
  --fs-6: clamp(2.25rem, 1.3rem + 3.4vw, 3.5rem);     /* 36 to 56 */
  --fs-7: clamp(2.75rem, 1.4rem + 5vw, 4.6875rem);    /* 44 to 75 */
  --fs-8: clamp(3.25rem, 1.2rem + 8vw, 6.25rem);      /* 52 to 100 */

  --u: 8px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(112px, 14vw, 200px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 120ms; --dur-ui: 180ms; --dur-panel: 280ms; --dur-reveal: 560ms; --stagger: 60ms;
}

/* ---------- Font sets ----------
   "classic" (Bodoni Moda + Archivo) is the saved, approved type: it is what :root above defines and what you get
   with no data-type attribute. Proposals are switched with <html data-type="..."> (site.fontSet in content/site.json).
   Each set only overrides the family tokens and the display weight, axes and tracking; sizes and layout are shared. */
html[data-type="tall"] {   /* A: Archivo, condensed for display: tall film-title letters that echo the 9:16 frame */
  --display: "Archivo Var", "Archivo", "Helvetica Neue", Arial, sans-serif; --sans: "Archivo Var", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --dw: 500; --dw-mark: 600; --dvs: "wdth" 62; --dtrack: -0.01em;
}
/* A: condensed is for big titles only; mid-size display lines open up so they stay readable */
html[data-type="tall"] :is(.case-summary, .offer dt, .process-title) { font-variation-settings: "wdth" 82; letter-spacing: 0; font-weight: 450; }
html[data-type="tall"] .wordmark, html[data-type="tall"] .footer-name { font-variation-settings: "wdth" 75; letter-spacing: 0; }
html[data-type="ink"] {    /* B: Bricolage Grotesque throughout: optical sizes give the headings ink traps and bite, the text stays quiet */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --dw: 500; --dw-mark: 600; --dvs: normal; --dtrack: -0.025em;
}
html[data-type="funnel"] { /* C: Funnel Display + Funnel Sans: soft, slightly odd geometric details, calm and current */
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif; --sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --dw: 400; --dw-mark: 600; --dvs: normal; --dtrack: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--black); color: var(--paper); font: 400 var(--fs-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
video { background: var(--tone, #111); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 4px; }
::selection { background: var(--tally); color: var(--black); }

.skip { position: absolute; left: var(--pad); top: -100px; z-index: 50; background: var(--paper); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* Links: underline grows from the left on hover */
.link, .nav a, .work-title a, .contact-email, .case-next a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); /* solid underline line, not a decorative gradient */
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size var(--dur-panel) var(--ease-out), color var(--dur-ui) ease;
}
.link { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .work-title a:hover, .contact-email:hover, .case-next a:hover { background-size: 100% 1px; }
  .link:hover { color: var(--tally); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); background: var(--black); color: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-ui) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.wordmark { font: var(--dw-mark, 500) 1.5rem/1 var(--display); font-variation-settings: var(--dvs, "opsz" 28); letter-spacing: var(--dtrack, normal); text-decoration: none; white-space: nowrap; padding: 10px 0; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 0.9375rem; }
.nav a { padding: 12px 0; }
.nav-contact { color: var(--paper); }
@media (max-width: 560px) { .nav a[href$="#approach"] { display: none; } .wordmark { font-size: 1.3rem; } }

/* ---------- Home opener: white stage, a slowly turning ring of the films ---------- */
/* Header turns white while it sits over the opener (only when JS can switch it back) */
.site-header { transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
.js .page-home .site-header:not(.is-dark) { background: var(--white); color: var(--ink); }
.js .page-home .site-header:not(.is-dark) .nav-contact { color: var(--ink); }
.js .page-home .site-header.is-scrolled:not(.is-dark) { border-bottom-color: var(--line-paper); }

/* Full-viewport stage under the header. svh (not dvh) so the mobile address bar can't make it jump. */
.opener {
  position: relative; overflow-x: clip; background: var(--white); color: var(--ink);
  height: 100vh; height: 100svh; min-height: 520px;
}
.opener-stage {
  position: absolute; inset: 0; background: var(--white);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.opener-rig { position: absolute; inset: 0; transform-origin: 50% 50%; perspective: 1500px; perspective-origin: 50% 40%; }
.js .opener-stage { cursor: grab; }
.js .opener-stage.is-dragging { cursor: grabbing; }
/* the opener's h1 is for screen readers and search only */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ring {
  --w: min(15vw, 250px, 27svh); --r: calc(var(--w) * 1.62);
  --ring-y: calc(50% - var(--w) * 16 / 9 * 0.15);   /* perspective enlarges the near side downward; lift so the ring reads centred */
  position: absolute; left: 50%; top: var(--ring-y, 50%); width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(-7deg) rotateY(0deg);
}
.ring-card {
  position: absolute; width: var(--w); height: calc(var(--w) * 16 / 9);
  left: calc(var(--w) / -2); top: calc(var(--w) * -8 / 9);
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r));
  display: block; overflow: hidden; background: var(--mist);
  backface-visibility: hidden; -webkit-user-drag: none;
}
.ring--live .ring-card { backface-visibility: visible; }
.ring-card video { width: 100%; height: 100%; object-fit: cover; background: var(--mist); pointer-events: none; }
.ring-card:focus-visible { outline-offset: 2px; }
@media (max-width: 899px) {
  /* mobile: a bigger, closer ring in a fixed-height stage */
  .opener-rig { perspective: 760px; }
  .ring { --w: min(42vw, 190px, 25svh); --ring-y: calc(50% - var(--w) * 16 / 9 * 0.2); }
}

/* Film grain: belongs to the subject. Compositor-only steps animation. */
.grain { position: relative; isolation: isolate; overflow: hidden; }
.grain::after {
  content: ""; position: absolute; inset: -60%; z-index: 1; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) { .grain::after { animation: grain 0.9s steps(5) infinite; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }

/* ---------- Page-load sequence (home): the one orchestrated moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-motion) .page-case .case-title { animation: rise var(--dur-reveal) var(--ease-out) 80ms both; }
  .js:not(.no-motion) .page-case .case-meta { animation: fade-rise var(--dur-reveal) var(--ease-out) 200ms both; }
  .js:not(.no-motion) .page-case .case-cover { animation: gate-open 1000ms var(--ease-in-out) 160ms both; }
}
@keyframes gate-open { from { clip-path: inset(42% 0 42% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(14px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -20% 0); } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Scroll reveal: a film-gate wipe on a few media blocks only */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-motion) .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 760ms var(--ease-in-out); }
  .js:not(.no-motion) .reveal.is-in { clip-path: inset(0 0 0 0); }
}

/* ---------- Scroll motion: films open like a gate, type rises from a mask, stills drift ----------
   Scroll-driven (animation-timeline: view()) where supported, IntersectionObserver classes otherwise.
   transform / clip-path only; everything is off for reduced motion or when JS failed to start. */
@keyframes sd-unclip { from { clip-path: inset(14% 9% 14% 9%); } to { clip-path: inset(0); } }
@keyframes sd-settle { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes sd-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(-10% 0 -25% 0); transform: none; } }
@keyframes sd-drift { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
@keyframes sd-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sd-recede { from { transform: none; } to { transform: translateY(8%) scale(1.06); } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* the IO wipe hands over to the scroll timeline */
    .js:not(.no-motion) .reveal { clip-path: none; transition: none; }
    .js:not(.no-motion) :is(.work-media, .still, .about-portrait, .case-next-thumb, .film video) {
      animation: sd-unclip linear both; animation-timeline: view(); animation-range: entry 0% cover 42%;
    }
    .js:not(.no-motion) .work-media video { animation: sd-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .js:not(.no-motion) .still img { animation: sd-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .js:not(.no-motion) :is(.section-title, .work-title, .case-next-title, .contact-email, .offer dt) {
      animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%;
    }
    .js:not(.no-motion) .page-case .case-cover { overflow: hidden; }
    .js:not(.no-motion) .page-case .case-cover-video { animation: sd-recede linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    /* hairlines draw across as their row arrives */
    .js:not(.no-motion) :is(.offer, .process div) { position: relative; border-color: transparent; }
    .js:not(.no-motion) :is(.offer, .process div)::before {
      content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-paper); transform-origin: left;
      animation: sd-line linear both; animation-timeline: view(); animation-range: entry 0% cover 35%;
    }
    .js:not(.no-motion) .offer:last-child::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-paper); transform-origin: left;
      animation: sd-line linear both; animation-timeline: view(); animation-range: entry 0% cover 50%;
    }
    .js:not(.no-motion) .offers { border-top-color: transparent; }
  }
  @supports not (animation-timeline: view()) {
    /* fallback: one-shot versions triggered by IntersectionObserver (.is-in) */
    .js:not(.no-motion) .sd-text { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); transition: clip-path 760ms var(--ease-out), transform 760ms var(--ease-out); }
    .js:not(.no-motion) .sd-text.is-in { clip-path: inset(-10% 0 -25% 0); transform: none; }
    .js:not(.no-motion) .work-media video { transform: scale(1.16); transition: transform 1200ms var(--ease-out); }
    .js:not(.no-motion) .work-media.is-in video { transform: none; }
  }
}

/* ---------- Shared section bits ---------- */
.paper { background: var(--paper); color: var(--ink); }
.section-title { font: var(--dw, 400) var(--fs-6)/1.08 var(--display); font-variation-settings: var(--dvs, "opsz" 72); letter-spacing: var(--dtrack, normal); }

/* ---------- Selected work ---------- */
.selected { padding: var(--section) 0; }
.opener + .selected { position: relative; z-index: 2; background: var(--black); padding-top: clamp(72px, 9vw, 140px); }

/* Scroll cue: a word and a hairline that draws down, once the page has settled */
.opener-cue { position: absolute; left: 50%; bottom: max(20px, 3svh); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: var(--fs-cap); color: var(--ash); pointer-events: none; }
.opener-cue i { display: block; width: 1px; height: 36px; background: var(--ink); transform-origin: 50% 0; }
@keyframes cue-draw { 0% { transform: scaleY(0); transform-origin: 50% 0; } 45% { transform: scaleY(1); transform-origin: 50% 0; } 55% { transform: scaleY(1); transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
@keyframes cue-in { from { opacity: 0; } to { opacity: 1; } }

/* Leaving the opener: the ring holds in place, shrinks back and fades while the black work section
   rises over it and opens from a narrower gate to full width. */
@keyframes op-hold { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes op-recede { from { transform: scale(1); opacity: 1; } to { transform: scale(0.74); opacity: 0; } }
@keyframes sel-gate { from { clip-path: inset(0 5% 0 5%); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-motion) .opener-cue { animation: cue-in 600ms var(--ease-out) 1400ms both; }
  .js:not(.no-motion) .opener-cue i { animation: cue-draw 2400ms var(--ease-in-out) 2000ms infinite; }
  @supports (animation-timeline: view()) {
    .js:not(.no-motion) .page-home main { timeline-scope: --sel; }
    .js:not(.no-motion) .opener + .selected { view-timeline: --sel block; animation: sel-gate linear both; animation-timeline: --sel; animation-range: entry 0% entry 85%; }
    /* the title waits until the gate is within a few px of full width, so it is never cut by the inset */
    .js:not(.no-motion) .page-home .opener + .selected > .section-title { animation: sd-rise linear both; animation-timeline: --sel; animation-range: entry 65% entry 100%; }
    .js:not(.no-motion) .opener-stage { animation: op-hold linear both; animation-timeline: --sel; animation-range: entry 0% entry 100%; }
    .js:not(.no-motion) .opener-rig { animation: op-recede linear both; animation-timeline: --sel; animation-range: entry 0% entry 100%; }
  }
  @supports not (animation-timeline: view()) {
    /* site.js writes --op (0 to 1) while the opener is on screen */
    .js:not(.no-motion) .opener-stage { transform: translateY(calc(var(--op, 0) * 100%)); }
    .js:not(.no-motion) .opener-rig { transform: scale(calc(1 - var(--op, 0) * 0.26)); opacity: calc(1 - var(--op, 0)); }
    .js:not(.no-motion) .opener + .selected { clip-path: inset(0 calc(5% * (1 - var(--op, 0))) 0 calc(5% * (1 - var(--op, 0)))); }
    .js:not(.no-motion) .opener + .selected > .section-title { --t: clamp(0, calc((var(--op, 0) - 0.65) / 0.35), 1); clip-path: inset(-10% 0 calc((1 - var(--t)) * 125% - 25%) 0); transform: translateY(calc((1 - var(--t)) * 0.35em)); }
  }
}
@media (max-width: 899px) { @keyframes sel-gate { from { clip-path: inset(0 4% 0 4%); } to { clip-path: inset(0 0 0 0); } } }
.selected > .section-title { padding: 0 var(--pad); margin-bottom: clamp(48px, 6vw, 88px); }
.work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 36px); padding: 0 var(--pad); }
.work + .work { margin-top: var(--section); }
.work-media { display: block; position: relative; overflow: hidden; background: var(--tone, #111); }
.work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-media:focus-visible { outline-offset: 0; }
.work-title { font: var(--dw, 400) var(--fs-8)/1 var(--display); font-variation-settings: var(--dvs, "opsz" 96); letter-spacing: var(--dtrack, normal); }
.work-credit { margin-top: 14px; color: var(--ash); font-size: var(--fs-cap); }
.work-summary { margin-top: 20px; max-width: 42ch; }
.work-link { display: inline-block; margin-top: 20px; padding: 10px 0; font-size: var(--fs-cap); }

.work--wide { padding: 0; }
.work--wide .work-media { grid-column: 1 / -1; aspect-ratio: var(--arn, 1.7778); width: min(100%, calc(92svh * var(--arn, 1.7778))); justify-self: center; }
.work--wide .work-text { grid-column: 1 / -1; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.work--wide .work-title { grid-column: 1 / 8; grid-row: 1 / span 3; }
.work--wide .work-credit, .work--wide .work-summary, .work--wide .work-link { grid-column: 8 / 13; }
.work--wide .work-credit { margin-top: 0; align-self: start; padding-top: 0.6em; }
.work--wide .work-summary { margin-top: 0; grid-row: 2; }
.work--wide .work-link { grid-row: 3; justify-self: start; }

.work--split .work-media { grid-column: 1 / 9; aspect-ratio: 4 / 3; }
.work--split .work-text { grid-column: 9 / 13; align-self: end; }
.work--split .work-title { font-size: var(--fs-7); }

.work--split-rev .work-media { grid-column: 7 / 13; grid-row: 1; aspect-ratio: 4 / 5; }
.work--split-rev .work-text { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.work--split-rev .work-media:where([style*="--arn:0."]) { grid-column: 8 / 12; aspect-ratio: var(--arn); }
.work--split .work-media:where([style*="--arn:0."]) { grid-column: 2 / 6; aspect-ratio: var(--arn); }
/* 9:16 covers: pull the text in beside the frame so the pair reads as one composition, mirrored left/right */
.work--split:has(> .work-media[style*="--arn:0."]) .work-text { grid-column: 7 / 12; }
.work--split-rev:has(> .work-media[style*="--arn:0."]) .work-text { grid-column: 2 / 7; }

@media (max-width: 899px) {
  .work, .work--wide .work-text { display: block; }
  .work-media { margin-bottom: 24px; }
  .work--wide .work-media { aspect-ratio: var(--arn, 1.7778); width: 100%; }
  .work--split .work-media { aspect-ratio: 4 / 5; }
  .work-media:where([style*="--arn:0."]) { aspect-ratio: var(--arn) !important; margin-left: 22% !important; }
  .work--wide .work-credit { padding-top: 0; margin-top: 14px; }
  .work--wide .work-summary { margin-top: 20px; }
  .work--split-rev .work-media { margin-left: 18%; }
  .work--split .work-media { margin-right: 10%; }
  .work--split .work-media[style*="--arn:0."] { margin-left: 0 !important; margin-right: 22%; }   /* verticals alternate sides, like desktop */
  .work-title, .work--split .work-title { font-size: var(--fs-7); }
}

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--section) var(--pad); }
.approach > .section-title { grid-column: 1 / 5; }
.approach-body { grid-column: 6 / 13; max-width: 56ch; }
.approach-body > p + p { margin-top: 1em; }
.offers { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-paper); }
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); padding: 28px 0 32px; border-bottom: 1px solid var(--line-paper); }
.offers--priced .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2fr); }
.offer dt { font: var(--dw, 400) var(--fs-4)/1.1 var(--display); font-variation-settings: var(--dvs, "opsz" 48); letter-spacing: var(--dtrack, normal); }
.offer-price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.terms { margin-top: 24px; color: var(--graphite); font-size: var(--fs-cap); }
.process-title { margin-top: clamp(56px, 7vw, 96px); font: var(--dw, 400) var(--fs-3)/1.2 var(--display); font-variation-settings: var(--dvs, "opsz" 36); letter-spacing: var(--dtrack, normal); }
.process { margin-top: 20px; }
.process div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--gap); padding: 14px 0; border-top: 1px solid var(--line-paper); }
.process dt { font-weight: 500; }
.process dd { color: var(--graphite); }
@media (max-width: 899px) {
  .approach { display: block; }
  .approach > .section-title { margin-bottom: 32px; }
  .offer, .offers--priced .offer { grid-template-columns: 1fr; row-gap: 8px; }
  .offer-price { text-align: left; }
  .process div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--pad) var(--section); }
.about-portrait { grid-column: 1 / 6; margin: 0; aspect-ratio: 4 / 5; background: #6d6a64; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body { grid-column: 7 / 12; align-self: end; max-width: 50ch; }
.about-body .section-title { margin-bottom: 28px; }
.about-body p + p { margin-top: 1em; }
.about-loc { color: var(--graphite); }
.about--text { padding-top: 0; }
.about--text .about-body { grid-column: 1 / -1; max-width: none; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); border-top: 1px solid var(--line-paper); padding-top: clamp(56px, 7vw, 96px); }
.about--text .section-title { grid-column: 1 / 5; margin: 0; }
.about--text .about-copy { grid-column: 6 / 13; max-width: 56ch; }
.about-copy p + p { margin-top: 1em; }
@media (max-width: 899px) { .about { display: block; } .about-portrait { margin-right: 22%; margin-bottom: 40px; } .about--text .about-body { display: block; } .about--text .section-title { margin-bottom: 28px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--section) var(--pad); }
.contact-head { grid-column: 1 / -1; }
.contact-body { margin-top: 16px; color: var(--ash); max-width: 46ch; }
.contact-email .at { font-family: var(--sans); font-weight: 300; font-size: 0.82em; }
.contact-email { display: inline-block; margin-top: clamp(32px, 4vw, 56px); font: var(--dw, 400) var(--fs-8)/1.05 var(--display); font-variation-settings: var(--dvs, "opsz" 96); letter-spacing: var(--dtrack, normal); overflow-wrap: break-word; background-size: 0% 2px; }
@media (hover: hover) and (pointer: fine) { .contact-email:hover { background-size: 100% 2px; } }
.form { grid-column: 6 / 13; margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-cap); color: var(--ash); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid #6a6a66; border-radius: 0; background: transparent; color: var(--paper);
  transition: border-color var(--dur-ui) ease;
}
.field select { appearance: none; cursor: pointer; background-image: 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='%239a9a95' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field select option { background: var(--black); color: var(--paper); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--paper); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--tally); outline-offset: 6px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--tally); }
.field-error { display: none; font-size: var(--fs-cap); color: var(--paper); }
.field:has(input:user-invalid) .field-error { display: block; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.btn { appearance: none; border: 0; border-radius: 0; background: var(--tally); color: var(--black); font-weight: 500; padding: 16px 28px; min-height: 52px; cursor: pointer; transition: background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--paper); } }
.btn:active { transform: scale(0.98); }
.form-status { font-size: var(--fs-cap); color: var(--ash); }
@media (max-width: 899px) { .contact { display: block; } .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 32px var(--pad) 40px; border-top: 1px solid var(--line-dark); font-size: var(--fs-cap); color: var(--ash); }
.footer-name { font: var(--dw-mark, 500) 1.125rem/1 var(--display); letter-spacing: var(--dtrack, normal); color: var(--paper); margin-right: auto; }
.site-footer .link { color: var(--paper); }
.footer-name:has(+ .footer-line) { margin-right: 0; }
.footer-line { margin-right: auto; }

/* ---------- Case page ---------- */
.case-head { padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) var(--pad) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; align-items: end; }
.case-title { grid-column: 1 / 9; font: var(--dw, 400) clamp(3.5rem, 1.5rem + 9vw, 9.375rem)/0.95 var(--display); font-variation-settings: var(--dvs, "opsz" 96); letter-spacing: var(--dtrack, normal); }
.case-meta { grid-column: 9 / 13; display: grid; gap: 14px; }
.case-meta div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.case-meta dt { color: var(--ash); font-size: var(--fs-cap); padding-top: 3px; }
.case-cover { aspect-ratio: var(--arn, 1.7778); width: min(100%, calc(90svh * var(--arn, 1.7778))); margin-inline: auto; background: var(--tone, #111); }
.case-cover-video { width: 100%; height: 100%; object-fit: cover; }
.case-lead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--pad); align-items: end; }
.case-cover--portrait { grid-column: 2 / 7; aspect-ratio: 9 / 16; max-height: none; }
.case-lead .case-note { grid-column: 8 / 13; display: block; padding: 0; }
.case-lead .case-note > * + * { margin-top: 1em; }
.case-lead .case-note > * { max-width: 46ch; }
.case-lead + .films { margin-top: var(--section); }
.case-note { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 20px; padding: var(--section) var(--pad); }
.case-note > * { grid-column: 4 / 11; max-width: 56ch; }
.case-summary { font: var(--dw, 400) var(--fs-5)/1.18 var(--display); font-variation-settings: var(--dvs, "opsz" 60); letter-spacing: var(--dtrack, normal); max-width: none; margin-bottom: 20px; }
.films { padding: 0 var(--pad); }
.films .section-title { margin-bottom: clamp(32px, 4vw, 56px); }
.films-row { display: flex; gap: var(--gap); align-items: flex-start; }
.film { flex: var(--r) 1 0%; min-width: 0; }
.film { margin: 0; }
.film video { width: 100%; height: auto; }
.film video { aspect-ratio: var(--r); object-fit: cover; }
.film figcaption { margin-top: 14px; font-size: var(--fs-cap); color: var(--ash); }
.film-title { color: var(--paper); font-weight: 500; margin-right: 6px; }
.stills { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(48px, 7vw, 120px); padding: var(--section) var(--pad); }
.still { margin: 0; background: var(--tone, #111); overflow: hidden; grid-column: var(--col); grid-row: var(--row); aspect-ratio: var(--ar); align-self: start; }
.still--end { align-self: end; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.case-next { border-top: 1px solid var(--line-dark); padding: clamp(48px, 6vw, 80px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.case-next a { grid-column: 1 / 8; justify-self: start; }
.case-next-thumb { grid-column: 9 / 13; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.case-next-thumb--v { grid-column: 11 / 13; aspect-ratio: 4 / 5; }
@media (max-width: 899px) { .case-next { display: block; } .case-next-thumb { margin-top: 28px; width: 70%; } }
.case-next a { display: inline-flex; flex-direction: column; gap: 8px; background-size: 0% 2px; }
.case-next-label { font-size: var(--fs-cap); color: var(--ash); }
.case-next-title { font: var(--dw, 400) var(--fs-8)/1 var(--display); font-variation-settings: var(--dvs, "opsz" 96); letter-spacing: var(--dtrack, normal); }
@media (hover: hover) and (pointer: fine) { .case-next a:hover { background-size: 100% 2px; } }
.page-case .contact { border-top: 1px solid var(--line-dark); }
.page-case .contact-email { font-size: var(--fs-7); }
.nf { padding: calc(var(--header-h) + 120px) var(--pad) var(--section); display: grid; gap: 32px; }

@media (max-width: 899px) {
  .case-head { display: block; }
  .case-meta { margin-top: 40px; }
  .case-cover { width: 100%; }
  .case-note { display: block; }
  .case-note > * + * { margin-top: 1em; }
  .case-lead { display: block; padding: 0; }
  .case-cover--portrait { width: 78%; margin: 0 auto 0 var(--pad); }
  .case-lead .case-note { padding: var(--section) var(--pad) 0; }
  .films--mixed .films-row { flex-direction: column; gap: 32px; }
  .films--mixed .film { flex: none; width: 100%; }
  .films--mixed .film--v { width: 78%; }
  .films--mixed .film--v:nth-child(even) { align-self: flex-end; }
  .films--vertical .films-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-padding-inline: var(--pad); }
  .films--vertical .film { flex: 0 0 74%; scroll-snap-align: start; }
  .stills { grid-template-columns: repeat(6, 1fr); row-gap: 20px; column-gap: 14px; }
  .still { grid-column: var(--mcol); grid-row: auto; }
}

/* ---------- Cross-document view transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 480ms; animation-timing-function: var(--ease-in-out); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { clip-path: none !important; transform: none !important; }
}
.no-motion .reveal { clip-path: none !important; }
.films-row .reveal:nth-child(2), .stills .still:nth-child(2) { transition-delay: var(--stagger); }
.films-row .reveal:nth-child(3), .stills .still:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.stills .still:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }

/* one-film projects: keep the single vertical film at the size it has in a three-film row */
.films--single .films-row { justify-content: flex-start; }
.films--single .film { flex: 0 0 auto; width: min(100%, 420px); }
@media (max-width: 720px) { .films--single .film { width: 78%; } }
