/* ==========================================================================
   GABRIEL ALCAINE · director & photographer

   Colour   Base #0E0E0C · Film white #EDE8DD · Sodium #E8A33D · Ash #8F8A80
   Type     Barlow Condensed SemiBold (structure) · EB Garamond (voice)
   Shapes   taken from the logo: chevron stripes (feathers / clapper),
            the shaft (a thin line), the arrowhead (play triangle), the dot.
   Angle    every diagonal on the site uses the stripe's slope:
            18.37 across for 25.19 down  =  0.7293

   Contents
   01 Tokens            06 Hero + logo lockup     11 Inner pages
   02 Base              07 Showreel + clapper     12 Lightbox
   03 Type              08 Home sections          13 Scroll reveals
   04 Parts             09 Footer                 14 Reduced motion
   05 Header + menu     10 Page transition        15 Paper theme
   ========================================================================== */


/* 01 TOKENS =============================================================== */

:root {
  color-scheme: dark;                     /* dark scrollbars and form controls */

  --base: #0E0E0C;
  --film: #EDE8DD;
  --sodium: #E8A33D;
  --ash: #8F8A80;

  /* tints of the four colours */
  --film-soft: rgba(237, 232, 221, .8);
  --ash-dim: #4F4C46;                     /* ash at 50% on base */
  --line: rgba(237, 232, 221, .13);
  --line-strong: rgba(237, 232, 221, .3);
  --grid-line: rgba(237, 232, 221, .075);
  --base-up: #151513;
  --base-deep: #080807;
  --scroll: #2B2A26;
  --scrim: rgba(14, 14, 12, .8);          /* header behind the blur */
  --ring: rgba(237, 232, 221, .45);       /* round play button */
  --ring-fill: rgba(14, 14, 12, .35);
  --ph-top: #181816;                      /* empty media slot */
  --ph-bot: #0C0C0B;
  --ph-mark: rgba(237, 232, 221, .34);
  --shadow: rgba(0, 0, 0, .5);
  --lb-bg: rgba(8, 8, 7, .97);            /* video player */
  --lb-dim: rgba(8, 8, 7, .6);

  --font-sans: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "EB Garamond", "Adobe Garamond Pro", Garamond, "Times New Roman", serif;

  --fs-body: clamp(1.125rem, .98rem + .42vw, 1.375rem);
  --gutter: clamp(20px, 5.4vw, 104px);
  --gap: clamp(16px, 2vw, 32px);
  --max: 1760px;
  --header-h: clamp(60px, 5.4vw, 80px);
  --r: 4px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* logo shapes as images, so they can be used anywhere */
  --ah-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23.69 22.81'%3E%3Cpath d='M0,2.03v18.75c0,1.49,1.56,2.47,2.9,1.83l19.63-9.37c1.54-.74,1.54-2.93,0-3.66L2.9.2C1.56-.44,0,.54,0,2.03Z'/%3E%3C/svg%3E");
  --fe-img-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75.64 50.38'%3E%3Cpath fill='%23EDE8DD' d='M13.46 0 31.84 25.19H18.37L0 0zM62.17 25.19 43.8 50.38h13.47l18.37-25.19z'/%3E%3Cpath fill='%238F8A80' d='M35.36 0 53.74 25.19H40.27L21.9 0zM40.27 25.19 21.9 50.38h13.47l18.37-25.19z'/%3E%3Cpath fill='%234F4C46' d='M57.26 0 75.64 25.19H62.17L43.8 0zM18.37 25.19 0 50.38h13.47l18.37-25.19z'/%3E%3C/svg%3E");
  --clap-top-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.7 25.19'%3E%3Cpath fill='%23EDE8DD' d='M13.46 0 31.84 25.19H18.37L0 0z'/%3E%3Cpath fill='%238F8A80' d='M35.36 0 53.74 25.19H40.27L21.9 0z'/%3E%3Cpath fill='%234F4C46' d='M57.26 0 75.64 25.19H62.17L43.8 0zM-8.44 0 9.94 25.19H-3.53L-21.9 0z'/%3E%3C/svg%3E");
  --clap-bottom-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.7 25.19'%3E%3Cpath fill='%234F4C46' d='M18.37 0 0 25.19h13.47L31.84 0z'/%3E%3Cpath fill='%238F8A80' d='M40.27 0 21.9 25.19h13.47L53.74 0z'/%3E%3Cpath fill='%23EDE8DD' d='M62.17 0 43.8 25.19h13.47L75.64 0zM-3.53 0-21.9 25.19h13.47L9.94 0z'/%3E%3C/svg%3E");
  --fe-img: var(--fe-img-night);
  --clap-top: var(--clap-top-night);
  --clap-bottom: var(--clap-bottom-night);
  --grain: var(--grain-night);
  --fe-img-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75.64 50.38'%3E%3Cpath fill='%230E0E0C' d='M13.46 0 31.84 25.19H18.37L0 0zM62.17 25.19 43.8 50.38h13.47l18.37-25.19z'/%3E%3Cpath fill='%238F8A80' d='M35.36 0 53.74 25.19H40.27L21.9 0zM40.27 25.19 21.9 50.38h13.47l18.37-25.19z'/%3E%3Cpath fill='%23BEB9AE' d='M57.26 0 75.64 25.19H62.17L43.8 0zM18.37 25.19 0 50.38h13.47l18.37-25.19z'/%3E%3C/svg%3E");
  --clap-top-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.7 25.19'%3E%3Cpath fill='%230E0E0C' d='M13.46 0 31.84 25.19H18.37L0 0z'/%3E%3Cpath fill='%238F8A80' d='M35.36 0 53.74 25.19H40.27L21.9 0z'/%3E%3Cpath fill='%23BEB9AE' d='M57.26 0 75.64 25.19H62.17L43.8 0zM-8.44 0 9.94 25.19H-3.53L-21.9 0z'/%3E%3C/svg%3E");
  --clap-bottom-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.7 25.19'%3E%3Cpath fill='%23BEB9AE' d='M18.37 0 0 25.19h13.47L31.84 0z'/%3E%3Cpath fill='%238F8A80' d='M40.27 0 21.9 25.19h13.47L53.74 0z'/%3E%3Cpath fill='%230E0E0C' d='M62.17 0 43.8 25.19h13.47L75.64 0zM-3.53 0-21.9 25.19h13.47L9.94 0z'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .91 0 0 0 0 .87 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* 02 BASE ================================================================= */

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

html {
  /* on phones where the page runs under the system bars, keep clear of them */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--scroll) var(--base);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--film);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
  overflow-x: clip;
}

/* film grain over everything, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .075;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--sodium); color: var(--base); }

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

.i18n-pending body { visibility: hidden; }

main, .site-footer { transition: opacity .22s ease; }
html.is-switching main,
html.is-switching .site-footer { opacity: 0; }

.vh {
  position: absolute; 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: 12px; top: -80px; z-index: 1200;
  padding: .7em 1.1em; background: var(--film); color: var(--base);
  font: 600 .875rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  transition: top .25s;
}
.skip:focus { top: 12px; }


/* 03 TYPE ================================================================= */

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: .98;
  text-wrap: balance;
}
.display--xl { font-size: clamp(3rem, 9.4vw, 10.5rem); letter-spacing: .05em; line-height: .92; }
.display--l  { font-size: clamp(2.3rem, 5.4vw, 5.75rem); }
.display--m  { font-size: clamp(1.75rem, 3.1vw, 3.25rem); line-height: 1.02; }
.display--s  { font-size: clamp(1.3rem, 1.7vw, 1.85rem); letter-spacing: .08em; line-height: 1.08; }

.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* the serif caps of the line under the logo */
.serif-caps {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.lead--xl { font-size: clamp(1.55rem, 2.9vw, 3.1rem); line-height: 1.22; }

.prose p { max-width: 58ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }

.is-ph, [data-placeholder] > blockquote { color: var(--ash); }


/* 04 PARTS ================================================================ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* a hairline: the shaft */
.rule { position: relative; height: 1px; }
.rule::before {
  content: ""; position: absolute; inset: 0;
  background: var(--line-strong);
  transform-origin: left center;
}

/* arrowhead (the logo's play triangle) */
.ah {
  display: inline-block;
  flex: none;
  width: .62em;
  aspect-ratio: 23.69 / 22.81;
  background: var(--sodium);
  -webkit-mask: var(--ah-mask) center / contain no-repeat;
          mask: var(--ah-mask) center / contain no-repeat;
}

/* feathers (the logo's three chevrons) */
.fe {
  display: inline-block;
  flex: none;
  width: 1.5em;
  aspect-ratio: 75.64 / 50.38;
  background: var(--fe-img) center / contain no-repeat;
}

/* inline svg versions of the chevrons */
.t1 { fill: var(--film); }
.t2 { fill: #8F8A80; }                    /* brand ash in both themes */
.t3 { fill: var(--ash-dim); }
.clap-top { transform-box: view-box; transform-origin: 0 25.19px; }

.dot {
  display: inline-block;
  flex: none;
  width: .26em;
  height: .26em;
  border-radius: 50%;
  background: currentColor;
}

/* section caption:  01 >>> SELECTED WORK */
.cap {
  display: flex;
  align-items: center;
  gap: .9em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cap__no { color: var(--ash); font-variant-numeric: tabular-nums; }
.cap .fe { width: 1.55em; }

/* text link that is an arrow:  VIEW PROJECT ———▶ */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding: .7em 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--film);
  white-space: nowrap;
}
.arrow-link__shaft {
  display: block;
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: .65;
  transition: width .55s var(--ease-out), opacity .3s;
}
.arrow-link .arrow-link__shaft + .ah { width: .68em; margin-left: -.5em; }
.arrow-link:hover .arrow-link__shaft,
.arrow-link:focus-visible .arrow-link__shaft,
a:hover > * > .arrow-link .arrow-link__shaft,
a:hover > .arrow-link .arrow-link__shaft { width: 4.2em; opacity: 1; }

.playdot {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .3s, transform .5s var(--ease-out);
}
.playdot .ah { width: .72em; margin-left: .14em; transition: transform .5s var(--ease-out); }
.arrow-link:hover .playdot { border-color: var(--film); transform: scale(1.06); }
.arrow-link:hover .playdot .ah { transform: translateX(.12em); }

/* media slot. --ar is width / height. Empty slots show a placeholder. */
.frame {
  --ar: 1.7778;
  --s: calc(72.93% / var(--ar));          /* the slant of the wipe, at the logo's angle */
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--base-up);
  isolation: isolate;
}
button.frame { border: 0; padding: 0; cursor: pointer; text-align: left; }
.frame > img,
.frame > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.ph {
  position: absolute; inset: 0; display: block; overflow: hidden;
  background: linear-gradient(180deg, var(--ph-top) 0%, var(--ph-bot) 100%);
}
.ph::before {                               /* a soft sodium light, drifting */
  content: ""; position: absolute; inset: -35%;
  background:
    radial-gradient(34% 42% at var(--gx, 66%) var(--gy, 40%), rgba(232, 163, 61, .2), rgba(232, 163, 61, 0) 72%),
    radial-gradient(42% 52% at calc(100% - var(--gx, 66%)) calc(100% - var(--gy, 40%)), rgba(143, 138, 128, .2), rgba(143, 138, 128, 0) 70%);
  animation: ph-drift 18s ease-in-out infinite alternate;
}
.ph::after {                                /* viewfinder marks */
  --c: var(--ph-mark);
  --l: clamp(9px, 1.3vw, 16px);
  content: ""; position: absolute; inset: clamp(10px, 1.5vw, 24px);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) center / 11px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) center / 1px 11px no-repeat;
}
.ph__label {
  position: absolute;
  left: calc(clamp(10px, 1.5vw, 24px) + 14px);
  bottom: calc(clamp(10px, 1.5vw, 24px) + 11px);
  z-index: 1;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .6875rem;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}
@keyframes ph-drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(5%, 4%, 0) scale(1.12); }
}

/* round play button on a frame */
.playbtn {
  --d: clamp(68px, 8.6vw, 128px);
  position: absolute;
  left: 50%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  display: grid; place-items: center;
  border: 1px solid var(--ring);
  border-radius: 50%;
  z-index: 2;
  transition: transform .6s var(--ease-out), border-color .3s, background-color .4s;
}
.playbtn .ah { width: 30%; margin-left: 7%; transition: transform .5s var(--ease-out); }
.playbtn--s { --d: clamp(46px, 4.6vw, 64px); }
.frame:hover .playbtn,
.frame:focus-visible .playbtn { transform: scale(1.08); border-color: var(--film); background: var(--ring-fill); }
.frame:hover .playbtn .ah { transform: translateX(14%); }

/* small tag list, separated by the logo's dot */
.tags { display: flex; flex-wrap: wrap; gap: .5em 0; color: var(--ash); }
.tags li {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.3;
}
.tags li + li::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor;
  margin-inline: .9em;
}

/* key / value rows */
.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(7.5em, 34%) minmax(0, 1fr);
  gap: 1em;
  align-items: baseline;
  padding: .85em 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
}
.facts dd { font-variant-numeric: lining-nums; }


/* 05 HEADER + MENU ======================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 52px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }

/* the logo on one line:  >>> GABRIEL ALCAINE ▶  */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .58em;
  height: 100%;
  margin-right: auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(.9375rem, .86rem + .2vw, 1.0625rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__feathers { flex: none; height: 1.2em; width: auto; aspect-ratio: 75.64 / 50.38; overflow: visible; }
.brand__wrap {
  display: grid;
  grid-template-columns: 1fr;
  transition: grid-template-columns .9s var(--ease-out), margin .9s var(--ease-out), opacity .5s;
}
.brand__name { min-width: 0; overflow: hidden; margin-right: -.16em; }
.brand__head { width: .56em; transition: transform .5s var(--ease-out); }
.brand:hover .brand__head { transform: translateX(.3em); }
/* on the home page the name stays in the hero until you scroll past it */
.js .is-home .site-header:not(.is-past-hero) .brand__wrap {
  grid-template-columns: 0fr;
  margin-inline: -.2em;
  opacity: 0;
}

.site-nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.site-nav a {
  position: relative;
  padding: .7em 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: .18em; bottom: .2em; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -1.05em; top: 50%;
  width: .5em; aspect-ratio: 23.69 / 22.81; transform: translateY(-50%);
  background: var(--sodium);
  -webkit-mask: var(--ah-mask) center / contain no-repeat;
          mask: var(--ah-mask) center / contain no-repeat;
}

.lang { display: flex; align-items: center; }
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: .7em .5em;
  font-family: var(--font-sans); font-weight: 600; font-size: .8125rem; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ash);
  transition: color .3s;
}
.lang button:hover,
.lang button[aria-pressed="true"] { color: var(--film); }
.lang button + button { position: relative; margin-left: .5em; }
.lang button + button::before {
  content: ""; position: absolute; left: -.38em; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
  background: var(--ash-dim);
}

.menu-btn {
  display: none;
  border: 0; background: none; cursor: pointer;
  padding: .9em 0 .9em 1em;
  font-family: var(--font-sans); font-weight: 600; font-size: .875rem; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase;
}
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: inline; }

/* reading progress: a shaft with the arrowhead at its tip */
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled .progress { opacity: 1; }
.menu-open .progress { opacity: 0; }
.progress__shaft {
  position: absolute; inset: 0;
  background: var(--film); opacity: .5;
  transform: scaleX(var(--p, 0)); transform-origin: left center;
}
.progress__head {
  position: absolute; left: 0; top: 50%;
  width: 7px; margin-top: -3.4px;
  transform: translateX(calc(var(--p, 0) * (100vw - 7px)));
}

/* full-screen menu (small screens) */
.menu {
  position: fixed; inset: 0; z-index: 790;
  display: flex; flex-direction: column; justify-content: space-between;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 6vh)
    max(var(--gutter), env(safe-area-inset-right, 0px))
    calc(28px + env(safe-area-inset-bottom, 0px))
    max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--base);
  overflow-y: auto;
  visibility: hidden;
  clip-path: polygon(0 0, 0 0, -73vh 100%, 0 100%);
  transition: clip-path .75s var(--ease-io), visibility 0s .75s;
}
.menu-open .menu {
  visibility: visible;
  clip-path: polygon(0 0, calc(100% + 73vh) 0, 100% 100%, 0 100%);
  transition: clip-path .75s var(--ease-io), visibility 0s;
}
.menu__nav { display: grid; gap: .15em; }
.menu__nav a {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline;
  padding: .12em 0;
  overflow: hidden;
}
.menu__nav .label { color: var(--ash); }
.menu__txt {
  display: block;
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(3rem, 15.5vw, 6.5rem);
  line-height: 1; letter-spacing: .05em; text-transform: uppercase;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out);
}
.menu-open .menu__txt { transform: none; transition-delay: calc(.22s + var(--i, 0) * .07s); }
.menu__nav a[aria-current="page"] .menu__txt { color: var(--ash); }
.menu__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.menu__mail { font-style: italic; }

/* light / dark switch: a dot that is half ink, half paper */
.theme-btn {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin: 0 -.6rem;
  border: 0; background: none; cursor: pointer; color: var(--film);
}
.theme-btn i {
  display: block; width: .95rem; height: .95rem; border-radius: 50%;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .7s var(--ease-out);
}
.theme-btn:hover i { transform: rotate(180deg); }
[data-theme="paper"] .theme-btn i { transform: rotate(180deg); }
[data-theme="paper"] .theme-btn:hover i { transform: rotate(360deg); }

/* switching theme: the new page wipes across at the logo's angle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-wipe .8s var(--ease-io); }
@keyframes theme-wipe {
  from { clip-path: polygon(0 0, 0 0, -73vh 100%, -73vh 100%); }
  to   { clip-path: polygon(0 0, calc(100% + 73vh) 0, 100% 100%, -73vh 100%); }
}

@media (max-width: 899px) {
  .site-nav, .site-header > .lang { display: none; }
  .theme-btn { margin-right: .2rem; }
  .menu-btn { display: block; }
}
@media (min-width: 900px) {
  .menu { display: none; }
}


/* 06 HERO + LOGO LOCKUP =================================================== */

.hero {
  /* F is the size of the name. Everything in the lockup is measured in it. */
  --F: clamp(44px, min(calc((100vw - 2 * var(--gutter)) / 5.09), calc(60px + 6.4vw), 20vh), 190px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
  overflow: hidden;
}
@supports (height: 1svh) {
  .hero {
    --F: clamp(44px, min(calc((100vw - 2 * var(--gutter)) / 5.09), calc(60px + 6.4vw), 20svh), 190px);
    min-height: 100svh;
  }
}

.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; right: -16vw; bottom: -42vh;
  width: 78vw; height: 78vw; max-height: 130vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 163, 61, .15), rgba(232, 163, 61, 0));
  animation: glow-drift 24s ease-in-out infinite alternate;
}
.hero__glow + .hero__glow {
  right: auto; bottom: auto; left: -30vw; top: -50vh;
  background: radial-gradient(closest-side, rgba(143, 138, 128, .13), rgba(143, 138, 128, 0));
  animation-duration: 31s; animation-direction: alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-9vw, -7vh, 0) scale(1.14); }
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42;
}
.hero__media.has-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 12, .92) 0%, rgba(14, 14, 12, .55) 55%, rgba(14, 14, 12, .3) 100%),
    linear-gradient(0deg, var(--base) 0%, rgba(14, 14, 12, 0) 30%);
}

/* the dashed construction grid of the logo sheet */
.cgrid-wrap {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.cgrid { position: relative; height: 100%; }
.cgrid i, .cgrid b { position: absolute; display: block; }
.cgrid i {
  top: 0; bottom: 0; width: 1px;
  left: calc(var(--n) * 100% / 6);
  background: repeating-linear-gradient(180deg, var(--grid-line) 0 6px, transparent 6px 12px);
  transition: clip-path 1.5s var(--ease-io) calc(var(--n) * 70ms);
}
.cgrid b {
  left: 0; right: 0; height: 1px;
  top: calc(var(--n) * 100% / 6);
  background: repeating-linear-gradient(90deg, var(--grid-line) 0 6px, transparent 6px 12px);
  transition: clip-path 1.7s var(--ease-io) calc(.15s + var(--n) * 70ms);
}
.cgrid i:nth-of-type(1) { --n: 0; } .cgrid i:nth-of-type(2) { --n: 1; } .cgrid i:nth-of-type(3) { --n: 2; }
.cgrid i:nth-of-type(4) { --n: 3; } .cgrid i:nth-of-type(5) { --n: 4; } .cgrid i:nth-of-type(6) { --n: 5; }
.cgrid i:nth-of-type(7) { --n: 6; }
.cgrid b:nth-of-type(1) { --n: 1; } .cgrid b:nth-of-type(2) { --n: 2; } .cgrid b:nth-of-type(3) { --n: 3; }
.cgrid b:nth-of-type(4) { --n: 4; } .cgrid b:nth-of-type(5) { --n: 5; }
.js .is-waiting .cgrid i { clip-path: inset(0 0 100% 0); }
.js .is-waiting .cgrid b { clip-path: inset(0 100% 0 0); }

.hero__inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(28px, 6vh, 84px) clamp(20px, 4vh, 56px);
}

/* --- the lockup ----------------------------------------------------------
   Proportions are read from LOGO_GA_ARROW.svg, where the name is set at 72:
   line height 60/72, feathers 75.64 x 50.38, arrowhead 23.69 x 22.81,
   and the gap between the two lines (the shaft) is centred 0.8833 down. */
.lockup { font-size: var(--F, 64px); width: max-content; max-width: 100%; }

.lockup__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: max-content;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1em;
  line-height: .8333;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--film);
}
.lockup__feathers {
  flex: none;
  width: 1.0506em; height: .6997em;
  margin-top: .5335em; margin-right: -.027em;
  overflow: visible;
}
.lockup__name { display: block; flex: none; }
.lockup__line { display: block; height: .8333em; overflow: hidden; white-space: nowrap; }
.ch { display: inline-block; }
.lockup__head {
  width: .329em;
  margin-top: .7249em; margin-left: .0763em;
}
/* the streak that follows the arrowhead while it flies */
.lockup__lane {
  --h: max(1px, .013em);
  position: absolute;
  left: 1.0506em; top: calc(.8833em - var(--h) / 2);
  width: var(--fly, 3.588em); height: var(--h);
  overflow: hidden;
  pointer-events: none;
}
.lockup__tail {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--film) 80%);
  opacity: 0;
}

.lockup__labels {
  display: flex;
  align-items: center;
  gap: .85em;
  width: max-content;
  margin-top: 1.6em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .1528em;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.lockup__labels > span:last-child { margin-right: -.1em; }
.lockup__labels.is-stacked {
  flex-direction: column; align-items: flex-start; gap: .28em;
  margin-top: 1.25em;
  font-size: .75rem; letter-spacing: .12em;
}
.lockup__labels.is-stacked .dot { display: none; }

.hero__welcome {
  max-width: calc(var(--F) * 5.08);            /* as wide as the logo above it */
  margin-top: calc(var(--F) * .36);
  font-size: clamp(1.125rem, calc(var(--F) * .158), 1.75rem);
  line-height: 1.42;
  text-wrap: pretty;
}
.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px clamp(24px, 3.4vw, 56px);
  margin-top: clamp(20px, calc(var(--F) * .26), 52px);
}

.hero__foot {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding-bottom: clamp(18px, 3.2vh, 40px);
}
.hero__foot > * { grid-column: span 3; }
.kv { display: grid; gap: .35em; }
.kv__k { color: var(--ash); font-size: .6875rem; }
.kv__v { font-size: .95rem; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums; }
.kv__time { color: var(--ash); margin-left: .35em; }
.hero__scroll { display: inline-flex; align-items: center; gap: 1em; width: max-content; color: var(--ash); font-size: .6875rem; transition: color .3s; }
.hero__scroll:hover { color: var(--film); }
.scrollcue { position: relative; display: block; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.scrollcue::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--film);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-101%); } 55% { transform: translateY(0); } 100% { transform: translateY(101%); }
}
@media (max-width: 899px) {
  .hero__foot > * { grid-column: span 6; }
  .hero__foot > .hero__scroll, .hero__foot > .kv--langs { display: none; }
}

/* --- intro: clapper shuts, arrow flies, the name opens along the shaft --- */
.js .is-waiting .lockup__feathers,
.js .is-waiting .lockup__head,
.js .is-waiting .lockup__labels,
.js .is-waiting .hero__welcome,
.js .is-waiting .hero__cta,
.js .is-waiting .hero__foot > *,
.js .is-waiting .ch { opacity: 0; }

.hero.is-in { --t0: .74s; --T: .95s; }
.hero.is-in.is-quick { --t0: .08s; --T: .7s; }

.hero.is-in .lockup__feathers { animation: fade .3s ease both; }
.hero.is-in:not(.is-quick) .clap-top { animation: clap 1s both; }
.hero.is-in .lockup__head { animation: fly var(--T) cubic-bezier(.25, 1, .5, 1) var(--t0) both; }
.hero.is-in .lockup__tail {
  animation:
    tail var(--T) cubic-bezier(.25, 1, .5, 1) var(--t0) both,
    fade-out .55s ease calc(var(--t0) + var(--T) - .3s) forwards;
}
.hero.is-in .ch { animation: ch-up .78s var(--ease-out) calc(var(--t0) + var(--d, 0s)) both; }
.hero.is-in .lockup__line--bottom .ch { animation-name: ch-down; animation-delay: calc(var(--t0) + var(--d, 0s) + .04s); }
.hero.is-in .lockup__labels { animation: wipe-x .95s var(--ease-out) calc(var(--t0) + var(--T) * .5) both; }
.hero.is-in .hero__welcome { animation: fade-up .95s var(--ease-out) calc(var(--t0) + var(--T) * .68) both; }
.hero.is-in .hero__cta { animation: fade-up .95s var(--ease-out) calc(var(--t0) + var(--T) * .84) both; }
.hero.is-in .hero__foot > * { animation: fade-up .95s var(--ease-out) calc(var(--t0) + var(--T) + var(--i, 0) * .08s) both; }

@keyframes clap {
  0%   { transform: rotate(-30deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  42%  { transform: rotate(-37deg); animation-timing-function: cubic-bezier(.6, 0, .95, .35); }
  74%  { transform: rotate(0deg);   animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  86%  { transform: rotate(-4deg);  animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  100% { transform: rotate(0deg); }
}
@keyframes fly {
  0%   { transform: translateX(calc(-1 * var(--fly, 3.588em))); opacity: 0; }
  5%   { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes tail { from { transform: translateX(-100%); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ch-up { from { transform: translateY(106%); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ch-down { from { transform: translateY(-106%); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes wipe-x { from { clip-path: inset(-20% 100% -20% 0); opacity: 1; } to { clip-path: inset(-20% -2% -20% 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }


/* 07 SHOWREEL + CLAPPER =================================================== */

.reel { position: relative; padding-block: clamp(20px, 3vw, 48px) clamp(72px, 11vw, 176px); scroll-margin-top: var(--header-h); }

/* a clapper stick made of the logo's chevrons. It is open until it scrolls
   into view, then it shuts. */
.clapper {
  --h: clamp(11px, 1.3vw, 19px);
  --tilt: 3.5deg;
  /* how far the far end of the open stick rises: its length times tan(3.5deg) */
  --rise: calc((min(100vw, var(--max)) - 2 * var(--gutter)) * .0612);
  position: relative; height: calc(var(--h) * 2);
}
.reel .clapper { margin-top: var(--rise); }   /* room for the open stick, so it never reaches into the hero */
.clapper__top, .clapper__bottom {
  position: absolute; left: 0; right: 0; height: var(--h);
  background-repeat: repeat-x; background-size: auto 100%; background-position: left top;
}
.clapper__top { top: 0; background-image: var(--clap-top); transform-origin: 0 100%; }
.clapper__bottom { bottom: 0; background-image: var(--clap-bottom); }
.js .clapper:not(.is-shut) .clapper__top { transform: rotate(calc(-1 * var(--tilt))); }
.clapper.is-shut .clapper__top { animation: clapper-shut .62s both; }
@keyframes clapper-shut {
  0%   { transform: rotate(calc(-1 * var(--tilt))); animation-timing-function: cubic-bezier(.6, 0, .95, .4); }
  52%  { transform: rotate(0deg);    animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  72%  { transform: rotate(-.7deg);  animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  100% { transform: rotate(0deg); }
}

.slate {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5em;
  padding: 1.15em 0 1.25em;
  color: var(--ash);
}
.slate > :first-child { color: var(--film); }
.slate__tc { font-variant-numeric: tabular-nums; min-width: 8.6em; text-align: right; }
@media (max-width: 699px) { .slate__mid { display: none; } }

.reel__cta {
  position: absolute; left: 0; right: 0;
  top: calc(50% + clamp(68px, 8.6vw, 128px) / 2 + 1.3em);
  z-index: 2;
  text-align: center;
  color: var(--film);
}
@media (max-width: 599px) { .reel__cta { display: none; } }   /* no room under the button on a phone */


/* 08 HOME SECTIONS ======================================================== */

.section { position: relative; padding-block: clamp(72px, 10.5vw, 176px); scroll-margin-top: var(--header-h); }
.section--tight { padding-top: clamp(28px, 4vw, 64px); }
.section__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2em 1.5em;
  padding-top: 1.1em;
}
.section__top .cap { white-space: nowrap; }
@media (max-width: 599px) {
  .section__top .arrow-link__shaft { display: none; }
  .section__top .arrow-link .arrow-link__shaft + .ah { margin-left: 0; }
}
.section__title { max-width: 18ch; margin-top: clamp(36px, 5.6vw, 92px); }
.section__title--wide { max-width: 22ch; }
.section__lead { max-width: 30ch; margin-top: 1.1em; }
.section__sub { max-width: 46ch; margin-top: .9em; color: var(--film-soft); text-wrap: pretty; }

/* selected work */
.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(56px, 8vw, 132px);
  margin-top: clamp(36px, 5vw, 80px);
}
.card { position: relative; display: block; grid-column: 1 / -1; }
.card__cap { display: flex; align-items: center; gap: .9em; margin-bottom: 1.1em; color: var(--ash); }
.card__no { color: var(--film); font-variant-numeric: tabular-nums; }
.card__cap .fe { width: 1.55em; }
.card .frame > img, .card .frame > .ph { transition: transform 1.4s var(--ease-out); }
.card:hover .frame > img, .card:hover .frame > .ph { transform: scale(1.035); }
.card__ah {
  position: absolute; right: clamp(16px, 2vw, 30px); bottom: clamp(14px, 1.8vw, 26px); z-index: 2;
  width: clamp(14px, 1.5vw, 22px);
  opacity: 0; transform: translateX(-1.6em);
  transition: transform .6s var(--ease-out), opacity .3s;
}
.card:hover .card__ah, .card:focus-visible .card__ah { opacity: 1; transform: none; }
.card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35em 2em;
  align-items: start;
  margin-top: 1.15em;
}
.card__title { grid-column: 1; }
.card__logline { grid-column: 1; max-width: 46ch; font-style: italic; color: var(--film-soft); text-wrap: pretty; }
.card__logline.is-ph { color: var(--ash); }
.card__meta .arrow-link { grid-column: 2; grid-row: 1; padding-top: .55em; }
@media (min-width: 860px) {
  .card--2 { grid-column: 1 / span 7; }
  .card--3 { grid-column: 9 / span 4; margin-top: clamp(40px, 9vw, 160px); }
  .card--4 { grid-column: 3 / -1; }
  .card--3 .card__meta { grid-template-columns: minmax(0, 1fr); }
  .card--3 .card__meta .arrow-link { grid-column: 1; grid-row: auto; }
}
@media (max-width: 599px) {
  .card__meta { grid-template-columns: minmax(0, 1fr); }
  .card__meta .arrow-link { grid-column: 1; grid-row: auto; padding-top: .7em; }
}

/* marquee of what he does */
.marquee {
  overflow: hidden;
  padding-block: clamp(20px, 3vw, 44px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group > span {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 7.5rem); line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ash);
}
.marquee__group > span:nth-of-type(odd) { color: var(--film); -webkit-text-stroke: 0; }
.marquee__group > .dot {
  width: clamp(8px, .9vw, 14px); height: clamp(8px, .9vw, 14px);
  margin-inline: clamp(22px, 3.2vw, 60px);
  background: var(--ash);
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* who I work with */
.aud {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  margin-top: clamp(40px, 6vw, 104px);
}
.aud__item { grid-column: 1 / -1; display: flex; flex-direction: column; }
@media (min-width: 900px) { .aud__item { grid-column: span 4; } }
.aud__item > .rule { margin-bottom: 1.2em; }
.aud__item .cap { color: var(--ash); }
.aud__item h3 { margin-top: 1.1em; min-height: 2.16em; }
.aud__lead { margin-top: .9em; font-style: italic; font-size: 1.28em; line-height: 1.26; text-wrap: balance; }
.aud__item > p:not(.cap):not(.aud__lead) { margin-top: 1em; color: var(--film-soft); max-width: 44ch; text-wrap: pretty; }
.aud__item .tags { flex-direction: column; gap: .55em; margin-top: auto; padding-top: 1.8em; }
.aud__item .tags li + li::before { display: none; }
@media (max-width: 899px) { .aud__item h3 { min-height: 0; } }

/* how I work: the steps sit under one long arrow */
.process { margin-top: clamp(40px, 6vw, 96px); }
.process__arrow { display: flex; align-items: center; gap: 10px; height: 20px; }
.process__arrow .fe { width: 26px; }
.process__lane { position: relative; flex: 1; height: 14px; overflow: hidden; }
.process__fly { position: absolute; inset: 0; display: flex; align-items: center; gap: 5px; }
.process__shaft { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--film)); }
.process__fly .ah { width: 13px; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: 4px;
}
.process__steps li { position: relative; padding-top: 26px; }
.process__steps li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--line-strong);
}
.process__no { display: block; color: var(--ash); font-variant-numeric: tabular-nums; }
.process__steps h3 { margin-top: .55em; }
.process__steps p { margin-top: .7em; color: var(--film-soft); font-size: .93em; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 900px) { .process__steps li { padding-right: 6%; } }
@media (max-width: 899px) {
  .process { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 18px; }
  .process__arrow { flex-direction: column; height: auto; gap: 12px; padding-block: 6px 2px; }
  .process__arrow .fe { transform: rotate(90deg); }
  .process__lane { width: 14px; height: auto; }
  .process__fly { flex-direction: column; }
  .process__shaft { width: 1px; height: auto; background: linear-gradient(180deg, var(--line-strong), var(--film)); }
  .process__fly .ah { transform: rotate(90deg); }
  .process__steps { grid-template-columns: minmax(0, 1fr); row-gap: 34px; margin-top: 0; }
  .process__steps li { padding-top: 0; }
  .process__steps li::before { display: none; }
}

/* 3D and motion design ---------------------------------------------------- */
.motion__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 26px;
  align-items: end;
  margin-top: clamp(36px, 5.6vw, 92px);
}
.motion__head .section__title { grid-column: 1 / -1; margin-top: 0; }

/* The logo's chevrons as a solid. Its three faces are the logo's three
   tones. It arrives as a dashed wireframe (the construction lines of the
   logo sheet), then the faces wipe in at the logo's angle: wireframe, render. */
.solid3d {
  --ar: 1.437;
  --s: calc(72.93% / var(--ar));
  position: relative;
  grid-column: 1 / -1;
  order: -1;                                /* above the title on a phone */
  width: clamp(92px, 26vw, 150px);
  aspect-ratio: var(--ar);
}
.solid3d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.solid3d__wire path {
  fill: none; stroke: var(--line-strong); stroke-width: 1px;
  vector-effect: non-scaling-stroke; stroke-dasharray: 3 3;
}
.solid3d .s-front { fill: var(--film); }
.solid3d .s-top { fill: var(--ash); }
.solid3d .s-side { fill: var(--ash-dim); }
.solid3d .s-cut { fill: none; stroke: var(--base); stroke-width: 1px; vector-effect: non-scaling-stroke; }   /* the shaft */
.solid3d__wire,
.solid3d__solid { clip-path: polygon(0 0, calc(100% + var(--s)) 0, 100% 100%, 0 100%); }
.solid3d__wire { transition: clip-path 1s var(--ease-io), opacity .7s ease 1.7s; }
.solid3d__solid { transition: clip-path 1.3s var(--ease-io) .6s; }
.solid3d.in .solid3d__wire { opacity: 0; }
.js .solid3d:not(.in) .solid3d__wire,
.js .solid3d:not(.in) .solid3d__solid { clip-path: polygon(0 0, 0 0, calc(0% - var(--s)) 100%, 0 100%); }
@media (min-width: 900px) {
  .motion__head .section__title { grid-column: 1 / span 8; }
  .solid3d { grid-column: 10 / span 3; order: 0; width: 100%; max-width: 300px; justify-self: end; margin-bottom: .5em; }
}

.motion {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: start;
  margin-top: clamp(32px, 4.4vw, 72px);
}
.motion__txt, .motion > .frame { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .motion__txt { grid-column: 1 / span 5; }
  .motion > .frame { grid-column: 7 / -1; }
}
.motion__txt p:not(.lead) { max-width: 46ch; margin-top: 1em; color: var(--film-soft); text-wrap: pretty; }
.motion__txt .motion__out { font-style: italic; color: var(--film); }
.motion__txt .tags { flex-direction: column; gap: .55em; margin-top: 1.7em; }
.motion__txt .tags li + li::before { display: none; }

/* three short cases under a section: rule, number, title, one line */
.cases {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 36px;
  margin-top: clamp(44px, 6vw, 96px);
}
.cases__item { grid-column: 1 / -1; }
@media (min-width: 760px) { .cases__item { grid-column: span 4; } }
.cases__item .rule { margin-bottom: 1.1em; }
.cases__item .cap { color: var(--ash); }
.cases__item h3 { margin-top: .9em; }
.cases__item p:last-child { max-width: 38ch; margin-top: .7em; color: var(--film-soft); text-wrap: pretty; }

/* notebook: the latest videos and notes ------------------------------------ */
.nb__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 18px;
  align-items: end;
  margin-top: clamp(22px, 2.8vw, 40px);
}
.nb__intro .lead { grid-column: 1 / -1; max-width: 40ch; }
.nb__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(20px, 3vw, 44px); }
.nb__links .note { margin-top: 0; }
@media (min-width: 900px) {
  .nb__intro .lead { grid-column: 1 / span 7; }
  .nb__links { grid-column: 9 / -1; justify-content: flex-end; }
}
.notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  margin-top: clamp(36px, 5vw, 80px);
}
.nb-card { grid-column: 1 / -1; display: block; }
@media (min-width: 760px) { .nb-card { grid-column: span 4; } }
.nb-card__cap { display: flex; align-items: center; gap: .9em; margin-bottom: 1em; color: var(--ash); }
.nb-card__no { color: var(--film); font-variant-numeric: tabular-nums; }
.nb-card__cap .fe { width: 1.55em; }
.nb-card__meta { display: block; margin-top: 1.05em; }
.nb-card__sum { display: block; max-width: 40ch; margin-top: .55em; color: var(--film-soft); text-wrap: pretty; }
.nb-card__sum.is-ph { color: var(--ash); font-style: italic; }
.nb-card .frame > img { transition: transform 1.4s var(--ease-out); }
a.nb-card:hover .frame > img { transform: scale(1.035); }
a.nb-card:hover .playbtn { transform: scale(1.08); border-color: var(--film); background: var(--ring-fill); }

/* about teaser */
.about-teaser {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: start;
  margin-top: clamp(36px, 5vw, 80px);
}
.about-teaser > .frame { grid-column: 1 / -1; max-width: 460px; }
.about-teaser__txt { grid-column: 1 / -1; }
.about-teaser__txt .facts { margin-top: clamp(28px, 3.6vw, 56px); max-width: 44rem; }
.about-teaser__txt .arrow-link { margin-top: 1.6em; }
@media (min-width: 900px) {
  .about-teaser > .frame { grid-column: 1 / span 4; max-width: none; }
  .about-teaser__txt { grid-column: 6 / -1; }
}

/* quote */
.quote { max-width: 60rem; }
.quote__mark { display: block; width: clamp(40px, 4.4vw, 68px); margin-bottom: clamp(20px, 2.6vw, 40px); }
.quote blockquote {
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 3.6rem);
  line-height: 1.2;
  text-wrap: balance;
}
.quote blockquote[data-placeholder] { color: var(--ash); }
.quote figcaption { margin-top: 1.8em; color: var(--ash); }


/* 09 FOOTER =============================================================== */

.site-footer { position: relative; padding-bottom: clamp(24px, 3vw, 44px); }
.site-footer__kicker { padding-top: clamp(56px, 8vw, 128px); color: var(--ash); }

/* the closing line is the logo's arrow again:  >>> LET'S TELL YOURS ———▶ */
.bigcta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .14em .26em;
  margin-top: .22em;
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(2.9rem, 9.7vw, 11rem);
  line-height: .95; letter-spacing: .05em; text-transform: uppercase;
}
.bigcta__feathers { flex: none; height: .68em; width: auto; aspect-ratio: 75.64 / 50.38; overflow: visible; }
.bigcta__txt { display: block; overflow: hidden; padding-block: .03em; }
.bigcta__txt > span { display: block; }
.bigcta__lane { position: relative; flex: 1 1 1.6em; min-width: 1.3em; height: .36em; overflow: hidden; }
.bigcta__fly { position: absolute; inset: 0; display: flex; align-items: center; gap: .07em; }
.bigcta__shaft { flex: 1; height: max(1px, .012em); background: linear-gradient(90deg, transparent, var(--film-soft)); }
.bigcta__fly .ah { width: .34em; }
@media (hover: hover) {
  .bigcta.in:hover .bigcta__fly { animation: refire 1s var(--ease-out); }
}
@keyframes refire {
  0%     { transform: translateX(0); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  30%    { transform: translateX(102%); animation-timing-function: step-end; }
  30.01% { transform: translateX(-102%); animation-timing-function: var(--ease-out); }
  100%   { transform: translateX(0); }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 44px;
  margin-top: clamp(64px, 9vw, 144px);
}
.site-footer__brand { grid-column: 1 / -1; }
.site-footer .lockup { --F: clamp(38px, 3.5vw, 54px); }
.fcol { grid-column: span 6; }
.fcol__h { color: var(--ash); margin-bottom: 1.1em; }
.fcol li + li { margin-top: .35em; }
.fcol a, .socials a, .link {
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 1px;
}
.fcol a:hover, .socials a:hover, .link:hover { background-size: 100% 1px; }
.fcol .is-soon { color: var(--ash); }
.fcol time, .fcol [data-localtime] { color: var(--ash); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 900px) {
  .site-footer__brand { grid-column: 1 / span 5; }
  .fcol { grid-column: span 2; }
  .fcol:nth-of-type(2) { grid-column: 7 / span 2; }
  .fcol:nth-of-type(3) { grid-column: 9 / span 2; }
  .fcol:nth-of-type(4) { grid-column: 11 / span 2; }
}
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: .9rem;
  font-variant-numeric: lining-nums;
}
.totop { display: inline-flex; align-items: center; gap: .8em; color: var(--ash); transition: color .3s; }
.totop:hover { color: var(--film); }
.totop .ah { width: .6em; transform: rotate(-90deg); }


/* 10 PAGE TRANSITION ====================================================== */
/* The arrow passes through the screen: head first, then the shaft (a wide
   chevron that covers the page), then the feathers on the next page. */

.pt {
  position: fixed; inset: 0; z-index: 1100;
  pointer-events: none; overflow: hidden; visibility: hidden;
}
.pt__arrow {
  --S: 36.47vh;   /* half the screen height times 0.7293 */
  --T: 6.2vh;     /* feather thickness */
  --G: 4vh;       /* gap between feathers */
  position: absolute; inset: 0;
  will-change: transform;
}
.pt__cover {
  position: absolute; top: 0; bottom: 0;
  left: calc(-1 * var(--S)); width: calc(100vw + 2 * var(--S));
  background: var(--base);
  clip-path: polygon(0 0, calc(100% - var(--S)) 0, 100% 50%, calc(100% - var(--S)) 100%, 0 100%, var(--S) 50%);
}
.pt__f {
  position: absolute; top: 0; bottom: 0;
  width: calc(var(--T) + var(--S));
  clip-path: polygon(0 0, var(--T) 0, 100% 50%, var(--T) 100%, 0 100%, var(--S) 50%);
}
.pt__f:nth-child(1) { left: calc(-1 * var(--S) - 1 * (var(--T) + var(--G))); background: var(--ash-dim); }
.pt__f:nth-child(2) { left: calc(-1 * var(--S) - 2 * (var(--T) + var(--G))); background: var(--ash); }
.pt__f:nth-child(3) { left: calc(-1 * var(--S) - 3 * (var(--T) + var(--G))); background: var(--film); }
.pt__head {
  position: absolute; top: 50%;
  left: calc(100vw + var(--S) + 3vh);
  width: 7.2vh; margin-top: -3.47vh;
}

html.is-leaving .pt,
html.is-entering .pt { visibility: visible; }
html.is-leaving .pt__arrow { animation: pt-in .68s cubic-bezier(.7, 0, .25, 1) both; }
html.is-entering .pt__arrow { transform: none; }
html.is-entering-go .pt__arrow { animation: pt-out .9s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes pt-in {
  from { transform: translate3d(calc(-100vw - 2 * var(--S) - 12vh), 0, 0); }
  to   { transform: none; }
}
@keyframes pt-out {
  from { transform: none; }
  to   { transform: translate3d(calc(100vw + 2 * var(--S)), 0, 0); }
}


/* 11 INNER PAGES ========================================================== */

.phead {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 150px));
  padding-bottom: clamp(36px, 5vw, 80px);
  overflow: hidden;
}
.phead > .wrap:not(.cgrid-wrap) { position: relative; z-index: 2; }
.phead h1 { margin-top: .32em; }
.phead__lead { max-width: 30ch; margin-top: 1.1em; }
.phead__lead--wide { max-width: 40ch; }
.phead--solo { min-height: 78vh; padding-bottom: clamp(72px, 10vw, 160px); }
.phead--solo .arrow-link { margin-top: 1.4em; }

/* work index */
.filters { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 30px); margin-bottom: clamp(20px, 2.6vw, 36px); }
.filters button {
  position: relative;
  border: 0; background: none; cursor: pointer;
  padding: .6em 0;
  font-family: var(--font-sans); font-weight: 600; font-size: .8125rem; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ash);
  transition: color .3s;
}
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--film); }
.filters button::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: .25em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease-out);
}
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }

.rows { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(9rem, 15rem) 4.5rem 1.75rem;
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(18px, 2.1vw, 34px);
  border-bottom: 1px solid var(--line);
}
.row__thumb { display: none; }
.row__no, .row__cat, .row__year {
  font-family: var(--font-sans); font-weight: 600; font-size: .8125rem; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
  font-variant-numeric: tabular-nums;
}
.row__title { display: flex; align-items: center; min-width: 0; }
.row__name {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 4.25rem); line-height: 1.02;
  letter-spacing: .06em; text-transform: uppercase;
}
.row__fe {
  --fh: clamp(1.05rem, 2.5vw, 2.7rem);
  flex: none;
  width: 0; height: var(--fh);
  background: var(--fe-img) left center / auto 100% no-repeat;
  opacity: 0;
  transition: width .6s var(--ease-out), margin .6s var(--ease-out), opacity .35s;
}
.row__ah {
  justify-self: end;
  width: clamp(.8rem, 1.25vw, 1.25rem);
  opacity: 0; transform: translateX(-1.8em);
  transition: transform .6s var(--ease-out), opacity .3s;
}
.row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--film);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .75s var(--ease-out);
}
.row:focus-visible .row__fe { width: calc(var(--fh) * 1.5014); margin-right: .55em; opacity: 1; }
.row:focus-visible .row__ah { opacity: 1; transform: none; }
@media (hover: hover) {
  .row { transition: opacity .4s; }
  .rows:hover .row:not(:hover) { opacity: .4; }
  .row:hover .row__fe { width: calc(var(--fh) * 1.5014); margin-right: .55em; opacity: 1; }
  .row:hover .row__ah { opacity: 1; transform: none; }
  .row:hover::after { transform: scaleX(1); }
}
@media (max-width: 859px) {
  .row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "thumb thumb thumb" "no cat year" "title title ah";
    row-gap: .7em;
    padding-block: 22px 26px;
  }
  .row__thumb { display: block; grid-area: thumb; margin-bottom: .35em; }
  .row__no { grid-area: no; } .row__cat { grid-area: cat; } .row__year { grid-area: year; }
  .row__title { grid-area: title; }
  .row__ah { grid-area: ah; opacity: 1; transform: none; }
}
.rows__empty { padding: 2.4em 0; color: var(--ash); font-style: italic; }
.no-tr, .no-tr * { transition: none !important; }

/* still that follows the pointer over the index */
.peek {
  position: fixed; left: 0; top: 0; z-index: 700;
  width: min(32vw, 520px);
  pointer-events: none;
  will-change: transform;
}
.peek .frame {
  clip-path: polygon(0 0, 0 0, calc(0% - var(--s)) 100%, 0 100%);
  transition: clip-path .55s var(--ease-io);
}
.peek .frame.in {
  clip-path: polygon(0 0, calc(100% + var(--s)) 0, 100% 100%, 0 100%);
  box-shadow: 0 30px 80px var(--shadow);
}

/* case study */
.phero { position: relative; }
.pfacts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(28px, 4vw, 64px);
}
.pfacts > div { padding: 1em 0 1.1em; border-top: 1px solid var(--line); }
.pfacts dt {
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
}
.pfacts dd { margin-top: .4em; font-size: 1.08em; font-variant-numeric: lining-nums; }
@media (min-width: 760px) { .pfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  align-items: start;
  padding-top: 1.1em;
}
.split > :first-child { grid-column: 1 / -1; }
.split > :last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .split > :first-child { grid-column: 1 / span 4; }
  .split > :last-child { grid-column: 6 / -1; }
}
.story p { font-size: 1.12em; line-height: 1.5; }
.split + .rule { margin-top: clamp(40px, 5vw, 80px); }       /* "What changed", under the story */

.stills {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(28px, 3.6vw, 56px);
  align-items: start;
}
.stills .frame { grid-column: 1 / -1; }
@media (min-width: 700px) { .stills .frame.is-half { grid-column: span 6; } }
.stills .frame.is-third { grid-column: span 6; }
@media (min-width: 700px) { .stills .frame.is-third { grid-column: span 4; } }

/* film mode: the darkest band, for trailers */
.band { background: var(--base-deep); padding-block: clamp(56px, 8vw, 128px); }
.band .slate > :first-child { color: var(--film); }

.signoff { margin-top: clamp(40px, 5vw, 80px); color: var(--ash); }

/* about */
.bio {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 44px;
  align-items: start;
}
.bio > .frame { grid-column: 1 / -1; max-width: 480px; }
.bio__txt { grid-column: 1 / -1; }
.bio__txt p { font-size: 1.1em; }
.bio__txt .cap { margin-top: clamp(40px, 5vw, 76px); color: var(--ash); }
.bio__txt .facts { margin-top: 1.2em; }
.bio__txt .arrow-link { margin-top: 1.6em; }
@media (min-width: 900px) {
  .bio > .frame { grid-column: 1 / span 4; max-width: none; position: sticky; top: calc(var(--header-h) + 24px); }
  .bio__txt { grid-column: 6 / span 6; }
}
.caps {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px;
  margin-top: clamp(40px, 6vw, 96px);
}
.caps__item { grid-column: 1 / -1; }
.caps__item .rule { margin-bottom: 1.1em; }
.caps__item .cap { color: var(--ash); }
.caps__item h3 { margin-top: .9em; }
.caps__item p:last-child { margin-top: .8em; color: var(--film-soft); max-width: 40ch; text-wrap: pretty; }
@media (min-width: 640px) { .caps__item { grid-column: span 6; } }
@media (min-width: 1100px) { .caps__item { grid-column: span 3; } }
.also {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em 1.6em;
  margin-top: clamp(36px, 4.4vw, 72px); padding-top: 1.1em;
  border-top: 1px solid var(--line);
}
.also .label { color: var(--ash); }
.also .arrow-link { margin-left: auto; padding-block: .2em; }
.clients {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.clients li {
  padding: 1.15em 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ash-dim);
}
@media (min-width: 900px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.note { margin-top: 1.2em; color: var(--ash); font-style: italic; font-size: .95em; }

/* contact */
/* who the work is for, and who it is not for */
.fit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 30px;
  margin-bottom: clamp(52px, 7vw, 112px);
}
.fit > .rule, .fit > .cap { grid-column: 1 / -1; }
.fit > .cap { margin-top: -12px; }
.fit__col { grid-column: 1 / -1; }
@media (min-width: 760px) { .fit__col { grid-column: span 6; } }
@media (min-width: 960px) {
  .fit__col { grid-column: 1 / span 5; }
  .fit__col + .fit__col { grid-column: 7 / -1; }
}
.fit__h { font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.9rem); line-height: 1.25; }
.fit__list { margin-top: 1em; border-top: 1px solid var(--line); }
.fit__list li {
  display: grid; grid-template-columns: 1.5em minmax(0, 1fr); align-items: baseline;
  padding: .8em 0; border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}
.fit__list li::before { content: ""; align-self: center; }
.fit__list--yes li::before {                 /* an arrowhead: this one flies */
  width: .55em; aspect-ratio: 23.69 / 22.81;
  background: var(--sodium);
  -webkit-mask: var(--ah-mask) center / contain no-repeat;
          mask: var(--ah-mask) center / contain no-repeat;
}
.fit__list--no li { color: var(--film-soft); }
.fit__list--no li::before { width: .7em; height: 1px; background: var(--ash); }   /* a shaft with no head */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px;
  align-items: start;
}
.contact__direct { grid-column: 1 / -1; }
.contact__form { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .contact__direct { grid-column: 1 / span 5; }
  .contact__form { grid-column: 7 / -1; }
}
.contact .rule { margin-bottom: 1.1em; }
.contact .cap { margin-bottom: 2.6em; }
.socials { display: flex; flex-wrap: wrap; gap: .2em 1.3em; }
.socials .is-soon { color: var(--ash); }
.form .note { margin-top: 0; }
.bigmail {
  display: inline-block; max-width: 100%;
  font-style: italic; font-size: clamp(1.45rem, 2.7vw, 2.6rem); line-height: 1.2;
  overflow-wrap: anywhere;
}
.copy {
  display: inline-flex; align-items: center; gap: .7em;
  margin-top: .9em; padding: .5em 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ash); transition: color .3s;
}
.copy:hover, .copy.is-done { color: var(--film); }
.copy .ah { width: .6em; }
.contact__direct .facts { margin-top: clamp(28px, 3.6vw, 52px); }

.form { display: grid; gap: clamp(22px, 2.4vw, 34px); }
.form__row { display: grid; gap: clamp(22px, 2.4vw, 34px) var(--gap); }
@media (min-width: 620px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .5em; }
.field > span, .field > legend {
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
  padding: 0;
}
.field input, .field textarea {
  width: 100%;
  padding: .5em 0 .6em;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: none;
  color: var(--film);
  font-family: var(--font-serif); font-size: 1.1em; line-height: 1.4;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 5.2em; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--ash); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--film); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--film); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .35em; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: block;
  padding: .55em 1.05em .62em;
  border: 1px solid var(--line-strong); border-radius: 99px;
  font-size: .95em; line-height: 1.2;
  color: var(--film-soft);
  transition: background-color .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: var(--film); color: var(--film); }
.chips input:checked + span { background: var(--film); border-color: var(--film); color: var(--base); }
.chips input:focus-visible + span { outline: 2px solid var(--sodium); outline-offset: 3px; }
.form .arrow-link { justify-self: start; font-size: 1.0625rem; }

/* 404 */
.e404 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }


/* 12 LIGHTBOX ============================================================= */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--lb-bg);
  color: var(--film);
  overflow: hidden;
}
@supports (height: 1dvh) { .lightbox { height: 100dvh; } }
.lightbox::backdrop { background: var(--lb-dim); }
.lightbox__in {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px) var(--gutter) clamp(24px, 5vh, 64px);
}
.lightbox__close {
  position: absolute; right: var(--gutter); top: env(safe-area-inset-top, 0px); height: var(--header-h);
  border: 0; background: none; cursor: pointer; color: var(--film);
}
.lightbox__stage {
  position: relative;
  width: min(100%, calc((100vh - var(--header-h) - 96px) * 1.7778));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
}
.lightbox[open] .lightbox__stage { animation: lb-in .8s var(--ease-io) both; }
@keyframes lb-in {
  from { clip-path: polygon(0 0, 0 0, -41% 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 141% 0, 100% 100%, 0 100%); }
}
.lightbox__stage iframe,
.lightbox__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em;
  padding: 24px; text-align: center;
  background: linear-gradient(180deg, var(--ph-top), var(--ph-bot));
}
.lightbox__soon .fe { width: 44px; margin-bottom: .4em; }
.lightbox__soon p:last-child { color: var(--ash); font-style: italic; max-width: 30ch; }


/* 13 SCROLL REVEALS ======================================================= */
/* Hidden states only apply when JavaScript is on (html.js). */

.js [data-reveal="up"] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease-out) calc(var(--i, 0) * 90ms), transform 1s var(--ease-out) calc(var(--i, 0) * 90ms);
}
.js [data-reveal="up"].in { opacity: 1; transform: none; }

.js [data-reveal="line"]::before { transform: scaleX(0); transition: transform 1.5s var(--ease-io) calc(var(--i, 0) * 90ms); }
.js [data-reveal="line"].in::before { transform: none; }

.js [data-reveal="wipe"] {
  clip-path: polygon(0 0, 0 0, calc(0% - var(--s)) 100%, 0 100%);
  transition: clip-path 1.25s var(--ease-io);
}
.js [data-reveal="wipe"].in { clip-path: polygon(0 0, calc(100% + var(--s)) 0, 100% 100%, 0 100%); }
.js [data-reveal="wipe"] > img,
.js [data-reveal="wipe"] > .ph { transform: scale(1.1); transition: transform 1.9s var(--ease-out); }
.js [data-reveal="wipe"].in > img,
.js [data-reveal="wipe"].in > .ph { transform: none; }
.js .card:hover [data-reveal="wipe"].in > img,
.js .card:hover [data-reveal="wipe"].in > .ph { transform: scale(1.035); transition-duration: 1.4s; }

[data-reveal="rise"] { overflow: hidden; padding-block: .04em; }
[data-reveal="rise"] > span { display: block; }
.js [data-reveal="rise"] > span { transform: translateY(108%); transition: transform 1.15s var(--ease-out) calc(var(--i, 0) * 90ms); }
.js [data-reveal="rise"].in > span { transform: none; }

/* arrows that fly in: footer line and the process timeline */
.js .bigcta:not(.in) .clap-top { transform: rotate(-30deg); }
.js .bigcta:not(.in) .bigcta__feathers { opacity: 0; }
.js .bigcta:not(.in) .bigcta__txt > span { transform: translateY(108%); }
.js .bigcta:not(.in) .bigcta__fly { transform: translateX(-102%); }
.bigcta__feathers { transition: opacity .3s; }
.bigcta.in .clap-top { animation: clap .9s both; }
.bigcta__txt > span { transition: transform 1.1s var(--ease-out) .5s; }
.bigcta__fly { transition: transform 1.3s var(--ease-out) .62s; }

.js .process:not(.in) .process__fly { transform: translateX(-101%); }
.js .process:not(.in) .process__steps li { opacity: 0; transform: translateY(14px); }
.process__fly { transition: transform 1.9s var(--ease-io); }
.process__steps li { transition: opacity .9s var(--ease-out) calc(.3s + var(--i, 0) * .27s), transform .9s var(--ease-out) calc(.3s + var(--i, 0) * .27s); }
@media (max-width: 899px) {
  .js .process:not(.in) .process__fly { transform: translateY(-101%); }
}


/* 14 REDUCED MOTION ======================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none !important; }
  .pt { display: none; }
}

/* 15 PAPER THEME ========================================================== */
/* Film white becomes the page and Base becomes the ink: a notebook.
   Squared paper (the Swiss 5 mm "quadrillé"), a margin rule, pencil-grey
   construction lines and a paper grain. The trailer band is a slightly
   darker sheet. Visitors switch with the button in the header (remembered);
   the default is set in boot.js. */

html[data-theme="paper"] {
  color-scheme: light;

  --base: #EDE8DD;                        /* paper */
  --film: #0E0E0C;                        /* ink */
  --ash: #6B675F;                         /* ash, darkened so small labels stay readable on paper */
  --film-soft: rgba(14, 14, 12, .78);
  --ash-dim: #BEB9AE;                     /* ash at 50% on paper */
  --line: rgba(14, 14, 12, .12);
  --line-strong: rgba(14, 14, 12, .3);
  --grid-line: rgba(14, 14, 12, .1);      /* pencil */
  --base-up: #E4DED2;
  --base-deep: #E2DCCF;
  --scroll: #C9C3B6;
  --scrim: rgba(237, 232, 221, .86);
  --ring: rgba(14, 14, 12, .4);
  --ring-fill: rgba(237, 232, 221, .5);
  --ph-top: #E2DCD0;
  --ph-bot: #D6CFC1;
  --ph-mark: rgba(14, 14, 12, .3);
  --shadow: rgba(14, 14, 12, .2);
  --lb-bg: rgba(237, 232, 221, .97);
  --lb-dim: rgba(237, 232, 221, .6);

  --fe-img: var(--fe-img-paper);
  --clap-top: var(--clap-top-paper);
  --clap-bottom: var(--clap-bottom-paper);
  --grain: var(--grain-paper);

  --sq: 19px;                             /* 5 mm squares */
  --sq-line: rgba(14, 14, 12, .045);
  --margin-x: calc(var(--gutter) * .5);
  --margin-line: rgba(14, 14, 12, .16);

  /* the paper itself: squares, then the margin rule */
  background:
    linear-gradient(90deg, transparent var(--margin-x), var(--margin-line) var(--margin-x), var(--margin-line) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
    linear-gradient(var(--sq-line) 1px, transparent 1px) 0 0 / var(--sq) var(--sq),
    linear-gradient(90deg, var(--sq-line) 1px, transparent 1px) 0 0 / var(--sq) var(--sq),
    var(--base);
}
html[data-theme="paper"] body { background: transparent; }
html[data-theme="paper"] body::before { opacity: .3; mix-blend-mode: multiply; }


/* a background loop on paper: printed into the page rather than projected */
html[data-theme="paper"] .hero__video { opacity: .22; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); }
html[data-theme="paper"] .hero__media.has-video::after { display: none; }
