/* ============================================================
   Site system (2026-11-04): white ground, hairline grid, Office Code Pro
   labels, Nimbus Condensed display. Linked after site.css on every page.
   Home specifics are at the end of home.css, case studies at the end of
   case-study.css; both override older rules left in those files.
   ============================================================ */
:root {
  --col: 3.5vw;            /* margin outside the two vertical lines */
  --pad: 14px;             /* text inset from a line */
  --nav-h: 56px;
  --ln: rgba(0, 0, 0, .24);
  --hit: #0500FF;          /* the one accent: link hover */
  --soft: #6d6c68;
  --roll: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 768px) { :root { --col: 12px; --pad: 10px; --nav-h: 72px; } }

html, body { background: #fff; color: #000; overflow-x: clip; }
main, footer { overflow-x: clip; }

/* The two vertical lines. Every horizontal rule runs past them to the window edge. */
body::after {
  content: '';
  position: fixed;
  inset: 0 var(--col);
  border-left: 1px solid var(--ln);
  border-right: 1px solid var(--ln);
  pointer-events: none;
  z-index: 150;
}

/* Label voice */
.nav-links a, .nav-logo span, .nav-meta, footer span, .section-label, .home-links, .home-links a,
.cs-head-row, .cs-meta-item label, .cs-credit-item label, .cs-next-label, .cs-overview-head h2, .cs-section-head h2,
.work-row-label, .contact-aside-label, .field label, .contact-link, .contact-email, .contact-submit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #000;
  opacity: 1;
  margin: 0;
}

/* Top row: name, title, place, nav. Scrolls away with the page. */
nav, nav.scrolled {
  position: absolute;
  display: grid;
  grid-template-columns: 2fr 2fr 3fr auto;
  align-items: center;
  column-gap: 16px;
  height: var(--nav-h);
  padding: 0 calc(var(--col) + var(--pad));
  background: #fff;
  border-bottom: 1px solid var(--ln);
}
nav::before { display: none; }
.nav-logo, .nav-logo:hover { transform: none; filter: none; text-decoration: none; }
.nav-links { width: auto; justify-content: flex-end; gap: 20px; align-items: center; }
.nav-links a::after { display: none; }
.nav-over-dark .nav-links a { color: #000; opacity: 1; }
@media (max-width: 768px) {
  nav, nav.scrolled { display: block; padding: 10px calc(var(--col) + var(--pad)); }
  .nav-logo { display: block; margin: 0 0 6px; }
  .nav-meta { display: none; }
  .nav-links { display: flex; justify-content: flex-start; gap: 14px; }
  .nav-links a { font-size: 11px; }
}

/* Link hover (site.js): letters roll one by one from the side the pointer
   came in, turn blue, and a line draws under them. */
.lnk { position: relative; display: inline-block; text-decoration: none; }
.lr { display: inline-block; white-space: nowrap; }
.lr-c { display: inline-block; height: 1.4em; overflow: hidden; vertical-align: bottom; }
.lr-in { display: block; transition: transform .38s var(--roll); transition-delay: var(--d, 0ms); }
.lr-in > span { display: block; height: 1.4em; line-height: 1.4em; white-space: pre; }
.lr-in > span:last-child { color: var(--hit); }
.lnk.on .lr-in { transform: translateY(-1.4em); }
.lnk::after, .nav-links a.lnk::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: auto;
  height: 1px;
  background: var(--hit);
  transform: scaleX(0);
  transform-origin: var(--o, left);
  transition: transform .38s var(--roll);
}
.lnk.on::after, .nav-links a.lnk.on::after { transform: scaleX(1); }
.lnk:hover, .nav-links a.lnk:hover { color: #000; }

/* Swell (site.js): letters near the pointer get heavier and wider. Line
   breaks are frozen first so swelling can't re-wrap the text. */
.px-line { display: block; white-space: nowrap; }
.px-word { display: inline-block; white-space: nowrap; }
.px-ch { display: inline-block; -webkit-text-stroke: 0 currentColor; transform-origin: 50% 60%; will-change: transform; }
/* Exclusion: the page takes the inverse of blue (neon yellow), black type takes blue. */
.px-blend {
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 125;
  opacity: 0;
  transition: opacity .25s linear;
  will-change: transform;
  background: radial-gradient(circle, #0500FF 0%, #0500FF 40%, rgba(5, 0, 255, 0) 72%);
  mix-blend-mode: exclusion;
}

/* Footer band */
footer { position: relative; display: flex; justify-content: space-between; padding: 14px calc(var(--col) + var(--pad)); border: 0; background: #fff; }
footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ln); }

@media (prefers-reduced-motion: reduce) {
  .lr-in, .lnk::after, .nav-links a.lnk::after { transition: none; transition-delay: 0ms; }
}
