/* VEDER Media — veder.css
   One stylesheet for the whole site. Sections, in order:
   1 tokens · 2 fonts · 3 base · 4 layout · 5 type · 6 controls · 7 header
   8 slate loader + page transitions · 9 media · 10 hero · 11 sections · 12 footer
   13 lightbox · 14 motion · 15 print
*/

/* 1 ─ Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ground: #070707;
  --ground-2: #121212;
  --ground-3: #1c1c1c;
  --ink: #f7f5f1;
  --ink-2: rgb(247 245 241 / 0.66);
  --accent: #ff7515;
  --accent-ink: #0a0a0a;
  --error: #ff5a4d;

  --display: "Bebas Neue", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Five sizes do the work. */
  --size-xl: clamp(2.75rem, 7.6vw, 8.5rem);
  --size-l: clamp(2.125rem, 4.6vw, 4.75rem);
  --size-m: clamp(1.5rem, 2.4vw, 2.375rem);
  --size-statement: clamp(1.125rem, 1.5vw, 1.5rem);
  --size-body: 1.0625rem;
  --size-note: 0.875rem;

  --gutter: clamp(16px, 2.6vw, 36px);
  --gap: clamp(12px, 1.4vw, 20px);
  --section: clamp(52px, 6.4vw, 104px);
  --bar: 58px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-clap: cubic-bezier(0.55, 0, 0.9, 0.35);

  color-scheme: dark;
}

/* 2 ─ Fonts (self-hosted, latin) ─────────────────────────────────────── */
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* 3 ─ Base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 16px);
  background: var(--ground);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--size-body);
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.field--accent :focus-visible { outline-color: var(--accent-ink); }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 4 ─ Layout ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.section + .section--flush { padding-top: 0; }

.field--accent {
  background: var(--accent);
  color: var(--accent-ink);
  --ink: var(--accent-ink);
  --ink-2: rgb(10 10 10 / 0.72);
}
.field--step { background: var(--ground-2); }
.field--accent ::selection { background: var(--accent-ink); color: var(--accent); }

/* 5 ─ Type ───────────────────────────────────────────────────────────── */
.t-xl, .t-l, .t-m {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
}
.t-xl { font-size: var(--size-xl); line-height: 0.86; letter-spacing: -0.008em; }
.t-l { font-size: var(--size-l); line-height: 0.88; letter-spacing: -0.008em; }
.t-m { font-size: var(--size-m); line-height: 0.96; letter-spacing: 0.004em; }
.t-statement {
  font-size: var(--size-statement);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 500;
  max-width: 34ch;
  text-wrap: pretty;
}
.t-note { font-size: var(--size-note); line-height: 1.45; color: var(--ink-2); }
.t-num { font-variant-numeric: tabular-nums; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--size-m);
  line-height: 0.96;
  text-transform: uppercase;
  margin-top: 1.6em;
}
.prose h3 { font-size: 1.125rem; font-weight: 650; margin-top: 1.8em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li + li { margin-top: 0.5em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  background: var(--accent);
}
.field--accent .prose ul > li::before { background: var(--accent-ink); }
.prose a,
.link {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.prose a:hover, .link:hover { color: var(--accent); }
.field--accent .prose a, .field--accent .link { text-decoration-color: currentColor; }
.field--accent .prose a:hover, .field--accent .link:hover { color: var(--ground-3); }

/* 6 ─ Controls ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0.55em 1.35em 0.5em;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(0.975); }
.btn--quiet { background: var(--ground-3); color: var(--ink); }
.btn--quiet:hover, .btn--quiet:focus-visible { color: var(--accent-ink); }
.field--accent .btn { background: var(--accent-ink); color: var(--accent); }
.field--accent .btn::before { background: #fff; }
.field--accent .btn:hover, .field--accent .btn:focus-visible { color: var(--accent-ink); }
.btn__arrow {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 7 ─ Header ─────────────────────────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color 0.3s, transform 0.5s var(--ease-out);
}
.bar.is-solid { background: var(--ground); }
.bar.is-away { transform: translateY(-100%); }
.bar__logo {
  display: block;
  width: 40px;
  aspect-ratio: 1349 / 1211;
  background: var(--ink);
  -webkit-mask: url("/assets/brand/veder-mark.svg") center / contain no-repeat;
  mask: url("/assets/brand/veder-mark.svg") center / contain no-repeat;
  transition: background-color 0.25s;
}
.bar__logo:hover { background: var(--accent); }
.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.bar__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.bar__link {
  position: relative;
  display: block;
  padding: 10px 0 7px;
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.bar__link::after {
  content: "";
  position: absolute;
  inset: auto 0 2px 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.bar__link:hover::after,
.bar__link:focus-visible::after,
.bar__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.bar .btn { min-height: 38px; padding: 0.45em 1.05em 0.4em; font-size: 1.125rem; }
.bar__toggle { display: none; }

/* Phone menu, as on ASA: a panel under the bar, in the bar's own colour, links set to the right.
   The page stays where it is underneath. */
.menu {
  position: fixed;
  inset: var(--bar) 0 auto 0;
  z-index: 55;
  max-height: min(60dvh, calc(100dvh - var(--bar)));
  padding: 14px var(--gutter) 22px;
  background: var(--ground);
  box-shadow: 0 18px 30px -24px #000;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.32s var(--ease-out), visibility 0s 0.32s;
}
.menu.is-open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path 0.32s var(--ease-out), visibility 0s; }
.menu__links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.menu__links a {
  display: block;
  padding: 3px 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: transform 0.35s var(--ease-out), opacity 0.25s, color 0.2s;
  transition-delay: calc(var(--i, 0) * 28ms + 40ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

@media (max-width: 859px) {
  .bar__links, .bar__nav > .btn { display: none; }
  .bar__toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
  .burger { position: relative; width: 24px; height: 16px; }
  .burger i {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease-in-out 0.1s, opacity 0.25s ease-in-out 0.1s, width 0.25s ease-in-out 0.1s, top 0.25s ease-in-out 0.1s;
  }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 7px; }
  .burger i:nth-child(3) { top: 14px; }
  .bar__toggle[aria-expanded="true"] .burger i:nth-child(1) { top: -1px; left: 3px; transform: rotate(45deg); transform-origin: 0 center; }
  .bar__toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; width: 0; }
  .bar__toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 16px; left: 3px; transform: rotate(-45deg); transform-origin: 0 center; }
  .has-menu .bar { background: var(--ground); transform: none; }
}
@media (min-width: 860px) {
  .menu { display: none; }
}

/* 8 ─ Slate loader ───────────────────────────────────────────────────── */
/* First page of a visit: the slate claps and the gate opens. It is pure CSS,
   so it clears itself even if the script never arrives. */
.slate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: slate-done 0s linear 1.95s forwards;
}
.slate::before,
.slate::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 50.5%;
  background: #050505;
  animation: gate 0.8s var(--ease-in-out) 1.15s forwards;
}
.slate::before { top: 0; --to: -101%; }
.slate::after { bottom: 0; --to: 101%; }

.slate__board {
  position: relative;
  z-index: 1;
  width: min(86vw, 520px);
  color: #f7f5f1;
  font-family: var(--display);
  text-transform: uppercase;
  animation:
    slate-in 0.5s var(--ease-out) both,
    slate-kick 0.22s ease-out 0.9s,
    slate-off 0.4s var(--ease-in-out) 1.05s forwards;
}
.slate__sticks { position: relative; height: 0; padding-bottom: 19%; }
.slate__stick {
  position: absolute;
  inset-inline: 0;
  height: 50%;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -62deg,
      #f7f5f1 0 9%,
      #050505 9% 18%
    );
}
.slate__stick--top {
  top: 0;
  transform-origin: 0 100%;
  transform: rotate(-17deg);
  animation: clap 0.13s var(--ease-clap) 0.78s forwards;
  background:
    repeating-linear-gradient(
      62deg,
      #f7f5f1 0 9%,
      #050505 9% 18%
    );
}
.slate__stick--top::after {
  content: "";
  position: absolute;
  inset: 0 82% 0 0;
  background: var(--accent);
}
.slate__stick--base { bottom: 0; }
.slate__face {
  border: 3px solid #f7f5f1;
  border-top-width: 0;
  background: #050505;
}
.slate__row,
.slate__cells > div {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.5em 0.7em 0.36em;
  font-size: clamp(1.25rem, 5.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}
.slate__row { border-top: 3px solid #f7f5f1; }
.slate__cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid #f7f5f1; }
.slate__cells--2 { grid-template-columns: 2fr 1fr; }
.slate__cells > div + div { border-left: 3px solid #f7f5f1; }
.slate__label {
  font-family: var(--text);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgb(247 245 241 / 0.6);
  transform: translateY(-0.5em);
}
.slate__tc {
  border-top: 3px solid #f7f5f1;
  padding: 0.16em 0 0.04em;
  text-align: center;
  font-size: clamp(2.6rem, 13vw, 5rem);
  line-height: 1;
  color: var(--accent);
}
.tc { display: inline-flex; }
.tc > span { display: inline-block; width: 0.44em; text-align: center; }
.tc > span.tc__sep { width: 0.22em; }

@keyframes slate-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes clap { to { transform: rotate(0deg); } }
@keyframes slate-kick { 35% { transform: translateY(5px); } }
@keyframes slate-off { to { opacity: 0; transform: scale(0.92); } }
@keyframes gate { to { transform: translateY(var(--to)); } }
@keyframes slate-done { to { visibility: hidden; } }

/* Later pages in the same visit skip the slate and simply cut. */
.cut .slate { display: none; }

/* ── Page transition: the site as an edit (see transitions.js) ───────────
   The suite is static markup in every page (templates.suite). Everything here is layout and
   resting states; the script only adds classes and moves three things: the window onto the
   page (.nle__hole), the page itself, and the playhead.

   Three states:
     at rest      hidden; chrome parked off-screen, ready to come in
     .is-up       chrome in place around the viewer
     .arriving    (on <html>, set before first paint) the same as .is-up with the logo card
                  showing, drawn with no script at all, so a page reached mid-transition paints
                  the suite on its first frame exactly as the last page left it */
.tx {
  --ui: #1a1a1d;            /* suite background */
  --ui-2: #232327;          /* panels */
  --ui-3: #2e2e33;          /* controls */
  --ui-line: #0e0e10;       /* separators */
  --ui-ink: #d9d9dc;
  --ui-dim: #8b8b93;
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  /* set here, not inherited: the transition lifts this element out of <body> */
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.2;
  color: var(--ui-ink);
}
.tx.is-on { visibility: visible; pointer-events: auto; }
/* Arriving: shown before first paint on a plain suite-coloured ground; lifts itself if the script never runs. */
.arriving .tx { visibility: visible; pointer-events: auto; background: var(--ui); animation: tx-failsafe 0s linear 4s forwards; }
.tx.is-live { background: none; animation: none; }
@keyframes tx-failsafe { to { visibility: hidden; } }
.tx-in { --intro: 1.5s; }                 /* the page's own entrance waits for the push-in */
.tx-flat .bar, .tx-flat .hud { visibility: hidden; }

.nle { position: absolute; inset: 0; display: flex; flex-direction: column; --ms: 640ms; --ease: cubic-bezier(0.76, 0, 0.24, 1); }
.nle [hidden] { display: none !important; }
.nle svg { display: block; }
.nle__keys svg, .nle__toolset svg { width: 13px; height: 13px; }
/* The window onto the page. Its enormous shadow is the suite's background. */
.nle__hole { position: absolute; inset: 0; box-shadow: 0 0 0 200vmax var(--ui); pointer-events: none; }

.nle__app {
  position: relative;
  flex: none;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  background: var(--ui-2);
  border-bottom: 1px solid var(--ui-line);
  transform: translateY(-101%);
  transition: transform var(--ms) var(--ease);
}
.nle__app b { font-family: var(--display); font-size: 1.125rem; font-weight: 400; letter-spacing: 0.06em; color: #fff; }
.nle__pages { display: flex; gap: 2px; }
.nle__pages i { padding: 6px 12px; font-style: normal; color: var(--ui-dim); }
.nle__pages i.is-on { background: var(--ui-3); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.nle__project { color: var(--ui-dim); }

/* The stage is whatever is left between the app bar and the timeline; the monitor is the largest
   16:9 viewer, with its title strip and transport, that fits it. Sized from the stage itself. */
.nle__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px clamp(12px, 3vw, 44px); container-type: size; }
.nle__monitor { width: min(100%, 1180px); }
@supports (width: 1cqh) {
  .nle__monitor { width: min(100cqw, (100cqh - 68px) * 16 / 9, 1180px); }
}
.nle__title, .nle__transport { display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 0.3s 0.25s; }
.nle__title { height: 28px; }
.nle__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.nle__fit { padding: 3px 7px; background: var(--ui-3); color: var(--ui-dim); }
.nle__tc { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: #fff; }
.nle__viewer { position: relative; aspect-ratio: 16 / 9; overflow: hidden; outline: 1px solid rgb(255 255 255 / 0); transition: outline-color 0.3s 0.25s; }
.nle__transport { height: 40px; }
.nle__scrub { flex: 1; height: 4px; background: var(--ui-3); }
.nle__scrub i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.nle__keys { display: flex; gap: 2px; }
.nle__keys i { display: grid; place-items: center; width: 30px; height: 26px; background: var(--ui-3); color: var(--ui-ink); transition: background-color 0.12s, color 0.12s; }
.nle__keys i.is-on { background: var(--accent); color: var(--accent-ink); }

/* The logo card: what the viewer shows while one page hands over to the next. */
.nle__card {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 55% at 50% 50%, #24160b 0%, #0f0a07 58%, #060505 100%);
  opacity: 0;
  transition: opacity 0.24s linear;
}
.nle__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask: radial-gradient(60% 55% at 50% 50%, #000, transparent);
  mask: radial-gradient(60% 55% at 50% 50%, #000, transparent);
}
.nle__card.is-on { opacity: 1; }
/* the mark: small, and only ever on the card */
.nle__mark { position: relative; z-index: 1; width: 150px; height: auto; aspect-ratio: 1489 / 1351; overflow: visible; }
.mk__fill { fill: #f7f5f1; opacity: 0; }
.mk__base path { fill: none; stroke: var(--accent); stroke-opacity: 0.3; stroke-width: 11; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.mk__run { opacity: 0; filter: drop-shadow(0 0 14px rgb(255 117 21 / 0.75)); }
.mk__run path { fill: none; stroke: var(--accent); stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140 860; }
/* on a narrow screen, the desktop version of the page, shown in the viewer under the card */
.nle__copy { position: absolute; inset: 0 auto auto 0; z-index: 1; border: 0; background: #070707; transform-origin: 0 0; opacity: 0; transition: opacity 0.22s linear; }
.nle__copy.is-on { opacity: 1; }

.nle__timeline {
  position: relative;
  flex: none;
  background: var(--ui-2);
  border-top: 1px solid var(--ui-line);
  transform: translateY(101%);
  transition: transform var(--ms) var(--ease);
}
.nle__tools { display: flex; align-items: center; gap: 18px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--ui-line); }
.nle__big { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; color: #fff; }
.nle__toolset { display: flex; gap: 2px; }
.nle__toolset i { display: grid; place-items: center; width: 30px; height: 26px; color: var(--ui-dim); }
.nle__toolset i.is-on { background: var(--ui-3); color: var(--accent); }
.nle__body { display: grid; grid-template-columns: clamp(40px, 7vw, 92px) minmax(0, 1fr); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
/* ruler, V2, V1, A1: fixed and compact */
.nle__heads, .nle__lanes { display: grid; grid-template-rows: 20px 20px clamp(40px, 6.2vh, 58px) clamp(24px, 3.8vh, 36px); }
.nle__heads { border-right: 1px solid var(--ui-line); }
.nle__heads b { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-top: 1px solid var(--ui-line); font-weight: 650; }
.nle__heads b::after { content: ""; width: 9px; height: 9px; background: var(--ui-3); box-shadow: 13px 0 0 var(--ui-3); }
.nle__lanes { position: relative; background: #151517; overflow: hidden; }
.nle__ruler { position: relative; background: var(--ui-2) repeating-linear-gradient(90deg, rgb(255 255 255 / 0.22) 0 1px, transparent 1px 14px) left bottom / 100% 5px repeat-x; }
.nle__ruler span { position: absolute; top: 3px; height: 100%; padding-left: 4px; border-left: 1px solid rgb(255 255 255 / 0.4); font-size: 0.625rem; font-variant-numeric: tabular-nums; color: var(--ui-dim); white-space: nowrap; }
.nle__lane { display: flex; gap: 2px; min-height: 0; padding: 2px 0; border-top: 1px solid var(--ui-line); }
.nle__lane > * { flex: 1 1 0; min-width: 0; }
.nle__lane--v2 i { display: block; width: 50%; height: 100%; margin-left: 8%; padding: 0 6px; overflow: hidden; background: #7a5a86; border-radius: 3px; color: #fff; font-size: 0.625rem; font-style: normal; line-height: 16px; text-transform: uppercase; }
.nle__clip {
  position: relative;
  overflow: hidden;
  background: #3f5d7d var(--thumb, none) left bottom / auto calc(100% - 15px) repeat-x;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.45);
}
.nle__clip b { display: block; height: 15px; padding: 0 6px; overflow: hidden; background: #4f7299; color: #fff; font-size: 0.625rem; font-weight: 650; line-height: 15px; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.nle__clip.is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.nle__clip.is-on b { background: var(--accent); color: var(--accent-ink); }
.nle__wave { background: #1d5f4a url("/assets/brand/waveform.svg") left center / 400px 100% repeat-x; border-radius: 3px; }
.nle__playhead { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--accent); }
.nle__playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 13px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* chrome in place */
.nle.is-up .nle__app, .nle.is-up .nle__timeline, .arriving .nle__app, .arriving .nle__timeline { transform: none; }
.nle.is-up .nle__title, .nle.is-up .nle__transport, .arriving .nle__title, .arriving .nle__transport { opacity: 1; }
.nle.is-up .nle__viewer, .arriving .nle__viewer { outline-color: rgb(255 255 255 / 0.2); }
.arriving .nle__card { opacity: 1; }
/* chrome leaving: the controls fade at once, the bars slide with the push-in */
.nle:not(.is-up) { --ms: 720ms; }
.nle:not(.is-up) .nle__title, .nle:not(.is-up) .nle__transport, .nle:not(.is-up) .nle__viewer { transition-delay: 0s; transition-duration: 0.18s; }
@media (max-width: 699px) {
  .nle__pages i:not(.is-on), .nle__project, .nle__toolset { display: none; }
  .nle__heads b { padding-left: 6px; }
  .nle__heads b::after { display: none; }
  .nle__clip b { padding: 0 3px; }
  .nle__mark { width: 96px; }
}

/* Scroll timecode, bottom left: the page is a reel, scrolling scrubs it. */
.hud {
  /* set on its side in the right-hand margin, clear of all content */
  position: fixed;
  right: calc(var(--gutter) / 2);
  top: 50%;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 10px;
  transform: translate(50%, -50%) rotate(90deg);
  font-size: var(--size-note);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hud__dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.hud .tc > span { width: 0.64em; }
.hud .tc > span.tc__sep { width: 0.3em; }
.js .hud { display: flex; }
@media (max-width: 1099px), (prefers-reduced-motion: reduce) {
  .js .hud { display: none; }
}

/* 9 ─ Media ──────────────────────────────────────────────────────────── */
.media {
  position: relative;
  overflow: hidden;
  background: var(--tone, var(--ground-2));
}
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.media--contain img { object-fit: contain; }
.js .media img { opacity: 0; transition: opacity 0.7s ease-out; }
.js .media img.is-loaded { opacity: 1; }
.cutout { background: none; }
.cutout img { object-fit: contain; object-position: bottom center; }

/* Films: a poster that becomes the player on click. */
.film {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tone, var(--ground-2));
  cursor: pointer;
  text-align: left;
}
.film--tall { aspect-ratio: 9 / 16; }
.film img, .film picture { width: 100%; height: 100%; }
.film img { object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.7s; }
.film:hover img, .film:focus-visible img { transform: scale(1.035); }
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.28);
  transition: background-color 0.4s;
}
.film:hover::after { background: rgb(0 0 0 / 0.12); }
.film__play {
  position: absolute;
  z-index: 1;
  left: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.film__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(48px, 5vw, 72px);
  aspect-ratio: 1;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.4s var(--ease-out);
}
.film:hover .film__icon { transform: scale(1.08); }
.film__icon svg { width: 34%; height: 34%; margin-left: 6%; }
.film--tall .film__play { flex-direction: column; align-items: flex-start; gap: 10px; }
.film iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.film.is-playing::after, .film.is-playing .film__play { display: none; }

.films { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.films > * { grid-column: span 12; }
.films > .film--tall { grid-column: span 6; }
@media (min-width: 700px) {
  .films > .film:not(.film--tall) { grid-column: span 6; }
  .films > .film--tall { grid-column: span 4; }
}
@media (min-width: 1100px) {
  .films > .film:not(.film--tall) { grid-column: span 4; }
  .films--pair > .film:not(.film--tall) { grid-column: span 6; }
  .films > .film--tall { grid-column: span 3; }
}
.films > .film:only-child { grid-column: 1 / -1; max-width: 920px; }

/* Gallery: justified rows that keep every still's own proportions. */
.gallery { --row: clamp(110px, 14vw, 220px); display: flex; flex-wrap: wrap; gap: 6px; }
.gallery::after { content: ""; flex-grow: 1000000000; }
.js .gallery.is-clipped > .gallery__item:nth-child(n + 13) { display: none; }
.gallery__more { margin-top: 14px; }
.gallery__item {
  position: relative;
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * var(--row));
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: var(--tone, var(--ground-2));
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), opacity 0.7s ease-out;
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.js .gallery__item img { opacity: 0; }
.js .gallery__item img.is-loaded { opacity: 1; }

/* 10 ─ Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(340px, 52svh, 580px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--bar) + 28px) var(--gutter) clamp(24px, 3.4vw, 48px);
  isolation: isolate;
  overflow: hidden;
}
.hero--short { min-height: clamp(260px, 38svh, 420px); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { animation: drift 16s ease-out both; }
.hero::before {
  /* neutral scrim so type stays readable over any still */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.2) 52%, rgb(0 0 0 / 0.4));
}
.hero__title { max-width: none; }
.hero__title--wide { max-width: none; }
.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
  margin-top: clamp(20px, 2.6vw, 40px);
}
.hero__foot > .t-statement { grid-column: 1 / span 6; }
.hero__foot > .actions { grid-column: 8 / -1; justify-content: flex-end; }
@media (max-width: 859px) {
  .hero__foot > .t-statement, .hero__foot > .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Homepage hero: the crew line-up.
   Ten cut-out portraits in one staggered row across the foot of the header, every other one a
   step behind and higher. Behind them, a warm dark ground with the VEDER mark tiled across it,
   drifting slowly. Only transforms and opacity move. */
.hero--crew {
  min-height: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  /* near-black, with a low warm backlight rising behind the crew */
  background:
    radial-gradient(58% 62% at 52% 108%, rgb(255 117 21 / 0.26), rgb(255 117 21 / 0.07) 48%, transparent 72%),
    radial-gradient(90% 70% at 50% 0%, #15100c, transparent 70%),
    #080706;
}
/* a fine film grain over the whole header, so the dark reads as a print, not a flat fill */
.hero--crew::before {
  display: block;
  z-index: -1;
  opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat;
  pointer-events: none;
}
/* one large, very faint VEDER mark set to the right, instead of a pattern */
.hero__tiles {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.035);
  -webkit-mask: url("/assets/brand/veder-mark.svg") right 4% top 42% / auto 82% no-repeat;
  mask: url("/assets/brand/veder-mark.svg") right 4% top 42% / auto 82% no-repeat;
  pointer-events: none;
}
.hero--crew .hero__title { margin-top: clamp(4px, 1vw, 16px); }
.hero--crew .hero__foot { margin-top: clamp(14px, 1.8vw, 26px); }

/* the row: figures are placed by their number, --x, along a box five times wider than tall */
.lineup {
  --w: 18%;                                      /* one figure's width, as a share of the row */
  position: relative;
  margin: clamp(18px, 3vw, 44px) calc(var(--gutter) * -1) 0;
  aspect-ratio: 5 / 1;
}
.lineup::after {                                 /* the row stands in the ground: its foot fades into the page */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  background: linear-gradient(to bottom, transparent, var(--ground));
  pointer-events: none;
  z-index: 3;
}
.lineup__p {
  position: absolute;
  bottom: 0;
  left: calc(var(--x) * 10% + 5% - var(--w) / 2);
  z-index: 2;
  width: var(--w);
}
.lineup__p--back { bottom: 7%; z-index: 1; }
.lineup__p a { position: relative; display: block; transform-origin: 50% 100%; transition: transform 0.5s var(--ease-out); }
.lineup__p--back a { transform: scale(0.9); }
.lineup__p img { display: block; width: 100%; height: auto; transition: opacity 0.35s, filter 0.35s; }
/* hover: the one you point at steps forward, the rest step back */
.lineup__p:hover, .lineup__p:focus-within { z-index: 4; }
.lineup__p a:hover, .lineup__p a:focus-visible { transform: translateY(-4%) scale(1.04); }
.lineup:has(a:hover, a:focus-visible) .lineup__p a:not(:hover, :focus-visible) img { opacity: 0.45; filter: grayscale(0.5); }
.lineup__p a:focus-visible { outline: none; }
.lineup__tag {
  position: absolute;
  left: 50%;
  bottom: 100%;
  display: grid;
  gap: 2px;
  padding: 8px 12px 7px;
  background: var(--ground);
  box-shadow: inset 0 2px 0 var(--accent);
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.lineup__tag b { font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1; text-transform: uppercase; }
.lineup__tag span { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.lineup__p a:hover .lineup__tag, .lineup__p a:focus-visible .lineup__tag { opacity: 1; transform: translate(-50%, -4px); }
/* the crew rises into place, one after another */
.js .lineup__p { animation: rise 0.9s var(--ease-out) both; animation-delay: calc(var(--intro, 0.1s) + 0.25s + var(--i) * 55ms); }

/* phone: the row runs off the screen and is swiped */
@media (max-width: 699px) {
  .lineup { --w: 18%; aspect-ratio: auto; height: 49vw; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .lineup::-webkit-scrollbar { display: none; }
  .lineup::before { content: ""; display: block; width: 250vw; height: 1px; }   /* the row's width */
  .lineup.is-looping::before { width: 500vw; }                                     /* the crew twice, for the loop */
  .lineup__p { left: calc((var(--x) * 10% + 5% - var(--w) / 2) * 2.5); width: calc(var(--w) * 2.5); }
  /* the fade can't live inside a scrolling row, so on a phone the header itself fades at its foot */
  .lineup::after { display: none; }
  .hero--crew::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 3; height: 12vw; background: linear-gradient(to bottom, transparent, var(--ground)); pointer-events: none; }
  .lineup__tag { opacity: 1; transform: translate(-50%, 0); bottom: 6%; padding: 4px 8px 3px; box-shadow: none; background: rgb(7 7 7 / 0.8); }
  .lineup__tag b { font-size: 1rem; }
  .lineup__tag span { display: none; }
  .lineup__p--back .lineup__tag { display: none; }
}

/* Plain page head for pages without a still. */
.head {
  padding: calc(var(--bar) + clamp(20px, 2.8vw, 44px)) var(--gutter) clamp(18px, 2.4vw, 34px);
}
.head__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 24px;
  align-items: end;
  margin-top: clamp(20px, 2.6vw, 40px);
}
.head__foot > .t-statement { grid-column: 1 / span 7; }
.head__foot > .actions, .head__foot > .head__aside { grid-column: 9 / -1; justify-content: flex-end; }
@media (max-width: 859px) {
  .head__foot > * { grid-column: 1 / -1 !important; justify-content: flex-start !important; }
}

/* Line-by-line title entrance. */
.lines > span { display: block; overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.lines > span > span { display: block; }
.js .lines > span > span {
  transform: translateY(108%);
  animation: line-up 1s var(--ease-out) forwards;
  animation-delay: calc(var(--intro, 0.1s) + var(--i, 0) * 90ms);
}
@keyframes line-up { to { transform: none; } }
/* On the first page of a visit the title waits for the gate to open. */
html:not(.cut) { --intro: 1.42s; }
.js .hero__foot > *, .js .head__foot > * {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--intro, 0.1s) + 0.32s + var(--i, 0) * 90ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* 11 ─ Sections ──────────────────────────────────────────────────────── */
.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(18px, 2.2vw, 36px);
}
.section__head > :first-child { grid-column: 1 / span 8; }
.section__head > :nth-child(2) { grid-column: 9 / -1; justify-self: end; }
.section__head > .t-statement:nth-child(2) { justify-self: start; }
@media (max-width: 859px) {
  .section__head > * { grid-column: 1 / -1 !important; justify-self: start !important; }
}

/* Work: frames in a 12-column rhythm, never a uniform card grid. */
.frames { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  grid-column: span 12;
  min-height: clamp(220px, 32vw, 420px);
  padding: clamp(16px, 2vw, 32px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.frame .media { position: absolute; inset: 0; z-index: -2; }
.frame .media img { transition: transform 1.4s var(--ease-out), opacity 0.7s ease-out; }
.frame:hover .media img, .frame:focus-visible .media img { transform: scale(1.045); }
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.05) 58%);
}
.frame__title { font-family: var(--display); font-size: var(--size-l); line-height: 0.88; text-transform: uppercase; }
.frame__meta { margin-top: 10px; font-weight: 500; max-width: 44ch; }
.frame__go {
  position: absolute;
  top: clamp(16px, 2vw, 32px);
  right: clamp(16px, 2vw, 32px);
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-140%);
  transition: transform 0.5s var(--ease-out);
}
.frame__go svg { width: 34%; }
.frame:hover .frame__go, .frame:focus-visible .frame__go { transform: none; }
@media (min-width: 860px) {
  .frame { min-height: clamp(240px, 24vw, 400px); }
  .frame:nth-child(5n + 1) { min-height: clamp(300px, 32vw, 500px); }
  .frame:nth-child(5n + 2), .frame:nth-child(5n + 5) { grid-column: span 7; }
  .frame:nth-child(5n + 3), .frame:nth-child(5n + 4) { grid-column: span 5; }
  .frame:nth-child(5n + 2) .frame__title, .frame:nth-child(5n + 3) .frame__title,
  .frame:nth-child(5n + 4) .frame__title, .frame:nth-child(5n + 5) .frame__title { font-size: clamp(1.875rem, 3.2vw, 3.25rem); }
}

/* Big lines: services, the client list, links to more work. */
.rows { display: grid; }
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(5px, 0.6vw, 9px);
}
.row__title {
  grid-column: 1 / span 8;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.75rem);
  line-height: 0.92;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-out), color 0.25s;
}
.row__note { grid-column: 9 / -1; font-weight: 500; color: var(--ink-2); }
a.row:hover .row__title, a.row:focus-visible .row__title { transform: translateX(clamp(8px, 1.4vw, 24px)); color: var(--accent); }
.field--accent a.row:hover .row__title, .field--accent a.row:focus-visible .row__title { color: #fff; }
.rows:hover .row:not(:hover) .row__title { opacity: 0.42; }
.row__title { transition: transform 0.5s var(--ease-out), color 0.25s, opacity 0.35s; }
@media (max-width: 859px) {
  .row__title, .row__note { grid-column: 1 / -1; }
  .row__note { margin-top: 4px; }
}

/* Split: text one side, picture or list the other. */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 36px;
  align-items: start;
}
.split > :first-child { grid-column: 1 / span 6; }
.split > :last-child { grid-column: 8 / -1; }
.split--even > :first-child { grid-column: 1 / span 6; }
.split--even > :last-child { grid-column: 7 / -1; }
.split--flip > :first-child { grid-column: 7 / -1; order: 2; }
.split--flip > :last-child { grid-column: 1 / span 5; order: 1; }
.split--center { align-items: center; }
.split--end { align-items: end; }
@media (max-width: 859px) {
  .split > * { grid-column: 1 / -1 !important; order: 0 !important; }
}
.stack > * + * { margin-top: clamp(20px, 2.2vw, 32px); }
.stack-s > * + * { margin-top: 12px; }

.gear { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); align-items: end; }
.gear .media { aspect-ratio: 1; }

/* People: full cards from tablet up; on phones one compact row each, opened with a tap */
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.person {
  position: relative;
  grid-column: 1 / -1;
  background: var(--ground-2);
  overflow: hidden;
}
.person--accent, .person:nth-child(even) { background: var(--accent); color: var(--accent-ink); --ink-2: rgb(10 10 10 / 0.72); }
.person__photo { aspect-ratio: 1 / 1; padding: 8% 8% 0; }
.person__photo img { transition: transform 0.9s var(--ease-out), opacity 0.7s ease-out; transform-origin: bottom center; }
.person__body { padding: clamp(14px, 1.6vw, 24px); padding-bottom: 0; display: grid; gap: 6px; align-content: start; }
.person__name { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 3rem); line-height: 0.95; text-transform: uppercase; }
.person__role { font-weight: 600; }
.person__extra { display: grid; gap: 6px; padding: 6px clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 24px); }
.person__quote { margin-top: 6px; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.person__more, .person__go { display: none; }

@media (max-width: 699px) {
  .people { gap: 6px; }
  .person { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
  .person__photo { align-self: end; padding: 8px 4px 0 8px; }
  .person__body { padding: 10px 56px 10px 12px; gap: 2px; }
  .person__name { font-size: 1.625rem; }
  .person__role { font-size: 0.9375rem; font-weight: 550; }
  .person__extra { grid-column: 1 / -1; padding: 10px 14px 18px; gap: 10px; }
  .person__quote { margin-top: 0; }
  .person__go { display: inline-block; width: fit-content; font-weight: 650; }
  /* With script, the row is a button and the detail waits behind it. */
  .js .person__more {
    position: absolute;
    inset: 0 0 auto 0;
    display: grid;
    justify-items: end;
    align-items: center;
    width: 100%;
    height: 88px;
    padding-right: 18px;
  }
  .person__more svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease-out); }
  .person__more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .person__more:focus-visible { outline-offset: -4px; }
  .js .person:not(.is-open) .person__extra { display: none; }
  .js .person.is-open .person__extra > * { animation: rise 0.5s var(--ease-out) both; }
  .js .person.is-open .person__extra > :nth-child(2) { animation-delay: 60ms; }
  .js .person.is-open .person__extra > :nth-child(3) { animation-delay: 120ms; }
}
@media (min-width: 700px) {
  .js .person__more { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; }
  .js .person__more svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
  .js .person__more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js .person:not(.is-open) .person__extra { display: none; }
  .js .person.is-open .person__extra > * { animation: rise 0.45s var(--ease-out) both; }
  .person__body { padding-bottom: clamp(14px, 1.6vw, 22px); padding-right: 52px; }
  .person__go { display: inline-block; width: fit-content; font-weight: 650; }
  .person { grid-column: span 4; display: flex; flex-direction: column; }
  .person__name a::after { content: ""; position: absolute; inset: 0; }
  .person:hover .person__photo img, .person:focus-within .person__photo img { transform: scale(1.05); }
}
@media (min-width: 1100px) {
  .person { grid-column: span 3; }
  /* four across: a checkerboard rather than stripes */
  .person:nth-child(n) { background: var(--ground-2); color: inherit; --ink-2: rgb(247 245 241 / 0.66); }
  .person:nth-child(8n + 2), .person:nth-child(8n + 4), .person:nth-child(8n + 5), .person:nth-child(8n + 7) {
    background: var(--accent); color: var(--accent-ink); --ink-2: rgb(10 10 10 / 0.72);
  }
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding: calc(var(--bar) + clamp(16px, 2.2vw, 36px)) var(--gutter) 0;
  overflow: hidden;
}
.profile__text { grid-column: 1 / span 8; padding-bottom: clamp(22px, 3vw, 44px); position: relative; z-index: 1; }
.profile__photo { grid-column: 10 / -1; align-self: end; aspect-ratio: 1 / 1; }
.profile__facts { display: grid; gap: 6px; margin-top: clamp(20px, 2.4vw, 36px); font-weight: 500; }
.profile__facts strong { font-weight: 650; }
@media (max-width: 859px) {
  .profile__text { grid-column: 1 / -1; padding-bottom: 28px; }
  .profile__photo { grid-column: 2 / -2; }
}

.pull { font-size: clamp(1.625rem, 3vw, 3rem); max-width: 38ch; }
.head + .section { padding-top: clamp(20px, 3vw, 48px); }

/* Lists of skills / capabilities */
.clusters { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px) var(--gap); }
.cluster { grid-column: span 12; }
.cluster h3 { margin-bottom: 14px; }
.cluster li { padding-block: 5px; font-weight: 500; }
@media (min-width: 700px) { .cluster { grid-column: span 6; } }
@media (min-width: 1100px) { .cluster { grid-column: span 4; } .clusters--4 .cluster { grid-column: span 3; } }

/* Two pictures side by side, slightly staggered */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.pair > :last-child { margin-top: clamp(24px, 4vw, 64px); }

/* The team as a strip of small portrait tiles (About) */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 9vw, 140px), 1fr)); gap: 6px; }
.crew li { background: var(--ground-2); transition: background-color 0.25s; }
.crew li:nth-child(odd) { background: var(--accent); color: var(--accent-ink); }
.crew a { display: grid; padding-bottom: 10px; }
.crew__photo { aspect-ratio: 1; padding: 10% 8% 0; }
.crew__photo img { transition: transform 0.6s var(--ease-out); transform-origin: bottom center; }
.crew a:hover .crew__photo img, .crew a:focus-visible .crew__photo img { transform: scale(1.06); }
.crew__name { padding: 8px 10px 0; font-family: var(--display); font-size: 1.375rem; line-height: 1; text-transform: uppercase; }
.crew__role { padding: 2px 10px 0; font-size: 0.75rem; font-weight: 600; opacity: 0.75; line-height: 1.3; }

/* Client logos: a carousel that runs on its own; the logo at the centre rises onto a short orange
   stage and its name shows beneath. Without script it is a plain centred row. */
.carousel {
  --tile: clamp(132px, 13vw, 200px);
  --logo-h: clamp(28px, 2.8vw, 42px);
  position: relative;
  padding: 8px 0 38px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carousel__track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.carousel__item { flex: none; display: grid; place-items: center; height: clamp(92px, 8vw, 120px); }
.carousel__item img { display: block; width: auto; max-width: calc(var(--tile) - 34px); height: calc(var(--logo-h) * var(--s, 1)); object-fit: contain; pointer-events: none; }
.carousel.is-live { cursor: grab; }
/* the ends fade into the section's own ground: two still panels, not a mask, so nothing is
   redrawn as the strip moves */
.carousel { --fade: var(--ground); }
.field--step .carousel { --fade: var(--ground-2); }
.carousel__fade { display: none; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 13%; background: linear-gradient(90deg, var(--fade), transparent); pointer-events: none; }
.carousel__fade--end { left: auto; right: 0; background: linear-gradient(270deg, var(--fade), transparent); }
.carousel.is-live .carousel__fade { display: block; }
.carousel.is-dragging { cursor: grabbing; }
.carousel.is-live .carousel__track { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; will-change: transform; }
.carousel.is-live .carousel__item { width: var(--tile); }
.carousel.is-live .carousel__item img {
  opacity: calc(0.2 + var(--g, 0) * 0.36 + var(--f, 0) * 0.44);
  transform: translateY(calc(var(--f, 0) * -12px)) scale(calc(0.84 + var(--f, 0) * 0.4));
}
/* the stage: a soft light and a short orange bar under the centre */
.carousel.is-live::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 18px;
  width: calc(var(--tile) * 1.5);
  background: radial-gradient(closest-side, rgb(255 117 21 / 0.13), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.carousel.is-live::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: calc(var(--tile) * 0.36);
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}
.carousel__name {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: var(--size-note);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.carousel:not(.is-live) .carousel__name { display: none; }
@media (max-width: 699px) { .carousel { --tile: 118px; --logo-h: 26px; } }

/* Dropdowns (<details>): long lists folded away, two columns on a wide screen */
:root { interpolate-size: allow-keywords; }
.acc { display: grid; gap: 8px var(--gap); align-items: start; }
@media (min-width: 860px) { .acc--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc__item { background: rgb(255 255 255 / 0.045); }
.field--accent .acc__item { background: rgb(0 0 0 / 0.08); }
.acc__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__title { font-family: var(--display); font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1; text-transform: uppercase; transition: color 0.2s; }
.acc__item summary:hover .acc__title { color: var(--accent); }
.field--accent .acc__item summary:hover .acc__title { color: #fff; }
.acc__icon { position: relative; flex: none; width: 14px; height: 14px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item[open] .acc__icon::after { transform: rotate(0deg); }
.acc__body { padding: 0 18px 18px; }
.acc__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.acc__item[open]::details-content { block-size: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 30px); }
.tags li { font-family: var(--display); font-size: var(--size-m); line-height: 1; text-transform: uppercase; }

/* Pricing — a real table */
.prices { width: 100%; border-collapse: collapse; text-align: left; }
.prices caption { text-align: left; margin-bottom: 20px; }
.prices th, .prices td { padding: clamp(12px, 1.4vw, 20px) 0; vertical-align: top; border-top: 3px solid currentColor; }
.prices tr:last-child > * { border-bottom: 3px solid currentColor; }
.prices th { font-family: var(--display); font-weight: 400; font-size: var(--size-m); line-height: 0.96; text-transform: uppercase; width: 34%; padding-right: 16px; }
.prices td.prices__sum { font-family: var(--display); font-size: var(--size-l); line-height: 0.8; text-align: right; white-space: nowrap; }
.prices ul li { font-weight: 500; }
@media (max-width: 699px) {
  .prices, .prices tbody, .prices tr, .prices th, .prices td { display: block; width: auto; }
  .prices th { border-top: 3px solid currentColor; padding-bottom: 8px; }
  .prices td { border: 0 !important; padding: 4px 0 12px; }
  .prices td.prices__sum { text-align: left; padding-bottom: 22px; }
  .prices tr:last-child { border-bottom: 3px solid currentColor; }
}

/* Form — the brief, laid out like a call sheet */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
.form__field { display: grid; gap: 8px; align-content: start; }
.form__field--wide { grid-column: 1 / -1; }
.form label, .form legend { font-weight: 650; padding: 0; }
.form .hint { font-size: var(--size-note); color: var(--ink-2); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--ground-3);
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s;
}
.form textarea { min-height: 168px; resize: vertical; }
.form input:hover, .form textarea:hover { background: #242424; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form__error { color: var(--error); font-size: var(--size-note); font-weight: 600; min-height: 1.3em; }
.form__error:empty { display: none; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span {
  display: block;
  padding: 12px 16px 11px;
  background: var(--ground-3);
  font-weight: 550;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.check input:hover + span { background: #2a2a2a; }
.check input:checked + span { background: var(--accent); color: var(--accent-ink); }
.check input:active + span { transform: scale(0.96); }
.check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { padding: 18px 20px; background: var(--accent); color: var(--accent-ink); }
.form__status[data-state="fail"] { padding: 18px 20px; background: var(--ground-3); border-left: 6px solid var(--error); }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form .btn { justify-self: start; }
@media (max-width: 699px) { .form { grid-template-columns: 1fr; } }

/* Choice tiles: get started, consultation, talent */
.choices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.choice {
  position: relative;
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: clamp(120px, 12vw, 190px);
  padding: clamp(18px, 2.2vw, 32px);
  background: var(--ground-2);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out);
}
.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
a.choice:hover, a.choice:focus-visible { color: var(--accent-ink); --ink-2: rgb(10 10 10 / 0.72); }
a.choice:hover::before, a.choice:focus-visible::before { transform: none; }
.choice__title { font-family: var(--display); font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 0.9; text-transform: uppercase; }
.choice__note { font-weight: 500; color: var(--ink-2); max-width: 36ch; transition: color 0.35s; }
.field--accent .choice { background: var(--accent-ink); color: #f7f5f1; --ink-2: rgb(247 245 241 / 0.66); }
.field--accent .choice::before { background: #fff; }
@media (min-width: 700px) {
  .choices--2 .choice { grid-column: span 6; }
  .choices--3 .choice { grid-column: span 4; }
  .choices--5 .choice { grid-column: span 4; }
  .choices--5 .choice:nth-child(-n + 2) { grid-column: span 6; }
}

/* Closing call to action */
.close { padding: var(--section) var(--gutter); }
.close__title { font-size: clamp(2rem, 4.8vw, 4.75rem); max-width: 24ch; }
.close__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-top: clamp(28px, 4vw, 56px); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--gutter) var(--gap); }
.pager .frame { min-height: clamp(220px, 26vw, 420px); grid-column: auto; }
.pager .frame__title { font-size: clamp(2rem, 4.6vw, 4.5rem) !important; }
@media (max-width: 699px) { .pager { grid-template-columns: 1fr; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--size-note); font-weight: 600; margin-bottom: clamp(16px, 2vw, 28px); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a:hover { color: var(--accent); }
.field--accent .crumbs a:hover { color: #fff; }

/* 12 ─ Footer ────────────────────────────────────────────────────────── */
.foot { background: var(--accent); color: var(--accent-ink); --ink-2: rgb(10 10 10 / 0.72); overflow: hidden; }
.foot__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gap);
  padding: clamp(32px, 3.6vw, 56px) var(--gutter) clamp(18px, 2vw, 30px);
}
.foot__col { grid-column: span 12; display: grid; gap: 6px; align-content: start; font-weight: 550; }
.foot__col h2 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1; text-transform: uppercase; margin-bottom: 8px; }
.foot__col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease-out); }
.foot__col a:hover, .foot__col a:focus-visible { background-size: 100% 2px; }
.foot__mail { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 0.95; text-transform: uppercase; font-weight: 400; }
@media (min-width: 700px) {
  .foot__col { grid-column: span 3; }
  .foot__col--lead { grid-column: span 12; }
}
@media (min-width: 1100px) {
  .foot__col { grid-column: span 2; }
  .foot__col--lead { grid-column: span 6; }
}
.foot__name {
  display: block;
  padding-inline: var(--gutter);
  font-family: var(--display);
  /* sized so the name spans the page exactly, margin to margin */
  font-size: calc((100vw - 2 * var(--gutter)) * 0.262);
  line-height: 0.74;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: -0.02em;
  user-select: none;
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  background: var(--accent-ink);
  color: #f7f5f1;
  font-size: var(--size-note);
  font-weight: 500;
}
.foot__legal a:hover { color: var(--accent); }

/* 13 ─ Lightbox ──────────────────────────────────────────────────────── */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #050505;
  color: #f7f5f1;
  overflow: hidden;
}
.lightbox::backdrop { background: #050505; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 0.35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; padding-inline: var(--gutter); touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; position: absolute; inset: 0; margin: auto; }
.lightbox__stage img.is-swap { animation: lb-swap 0.45s var(--ease-out); }
@keyframes lb-swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }
.lightbox__nav { display: flex; justify-content: center; gap: 8px; padding: 12px var(--gutter) max(14px, env(safe-area-inset-bottom)); }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--ground-3);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.lightbox__btn:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox__btn:active { transform: scale(0.94); }
.lightbox__btn svg { width: 18px; height: 18px; }

/* 14 ─ Motion ────────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
/* If the script that reveals these never arrives, show them anyway. */
.js:not(.ready) [data-reveal] { animation: failsafe 0s linear 4s forwards; }
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
/* A wiped picture: the frame stays unclipped (a fully clipped element never counts as on screen, so
   its reveal would never fire); the picture inside it is what wipes in. */
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="wipe"].is-in > * { clip-path: inset(0); }
.js:not(.ready) [data-reveal="wipe"] > * { animation: failsafe 0s linear 4s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; clip-path: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .slate { display: none !important; }
  .tx { display: none !important; }
  .js [data-reveal], .js [data-reveal] > *, .js .lines > span > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* 15 ─ Print ─────────────────────────────────────────────────────────── */
@media print {
  .bar, .menu, .slate, .hud, .foot__name, .film__play { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal], .js .lines > span > span, .js .media img { opacity: 1 !important; transform: none !important; }
}
