/* SCNDL
   One family: Founders Grotesk when licensed files are added (see fonts/README.md),
   otherwise Archivo, set semi-condensed to sit close to it.
   Colour is strictly monochrome; [data-theme="dark"] inverts it. */

/* Drop licensed Klim files into /fonts and uncomment.
@font-face { font-family: "Founders Grotesk"; src: url("../fonts/founders-grotesk-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Founders Grotesk"; src: url("../fonts/founders-grotesk-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Founders Grotesk"; src: url("../fonts/founders-grotesk-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
*/

:root {
  --ink: #000000;
  --paper: #ffffff;
  --muted: #5c5c5c;      /* 6.7:1 on paper */
  --struck: #a3a3a3;     /* crossed-out job titles */
  --rule: #e3e3e3;       /* structural lines */
  --line: #b4b4b4;       /* interactive outlines */

  --font: "Founders Grotesk", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --narrow: 87.5%;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem);
  --fs-h2: clamp(2.5rem, 1.4rem + 3.6vw, 5.5rem);
  --fs-row: clamp(2.75rem, 1rem + 6.4vw, 8.5rem);
  --fs-statement: clamp(1.75rem, 0.9rem + 3.3vw, 4.25rem);

  --pad: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --nav-h: 64px;
  --section: clamp(96px, 13vw, 220px);
  --seam-h: clamp(64px, 8vw, 128px);

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Alternating sections: .is-inverse flips ink and paper locally, in either theme. */
.is-inverse, [data-theme="dark"] {
  --ink: #ffffff;
  --paper: #000000;
  --muted: #a3a3a3;
  --struck: #5e5e5e;
  --rule: #262626;
  --line: #4d4d4d;
  color-scheme: dark;
}

[data-theme="dark"] .is-inverse {
  color-scheme: light;
  --ink: #000000;
  --paper: #ffffff;
  --muted: #5c5c5c;
  --struck: #a3a3a3;
  --rule: #e3e3e3;
  --line: #b4b4b4;
}
.is-inverse { background: var(--paper); color: var(--ink); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  font-stretch: var(--narrow);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.02; }

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

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

.skip {
  position: fixed; left: var(--pad); top: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 999px;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

/* Touch and fine-pointer copy variants */
.only-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .only-touch { display: inline; }
  .only-fine { display: none; }
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font-size: 0.9375rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--lg { height: 52px; padding: 0 24px; font-size: 1rem; }

/* ---------- Letter roll on hover (links) ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll > span { position: relative; display: inline-block; transition: transform 0.5s var(--ease); }
.roll > span::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute; left: 0; top: 100%;
}
a:hover > .roll > span, button:hover > .roll > span { transform: translateY(-100%); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
/* The wordmark layer blends with whatever is behind it, so it reads on paper, ink and the dither */
.nav--mark { z-index: 50; color: #fff; mix-blend-mode: difference; }
/* Links and buttons sit on solid pills in front of the content */
.nav--bar { z-index: 51; justify-content: flex-end; }

.nav__mark {
  font-size: 1.375rem; font-weight: 700; font-stretch: var(--narrow);
  letter-spacing: -0.035em; text-decoration: none;
  transition: opacity 0.4s;
}
.at-hero .nav__mark { opacity: 0; pointer-events: none; }

.nav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9375rem;
}
.nav__links a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 999px; text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.nav__links a:hover { background: color-mix(in srgb, var(--ink) 9%, var(--paper)); }
.nav__links a.is-current { background: var(--ink); color: var(--paper); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav--bar .pill { background: var(--paper); color: var(--ink); border-color: var(--line); }
.nav--bar .pill--solid { background: var(--ink); color: var(--paper); border-color: var(--line); }
.invert-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform 0.6s var(--ease);
}
[data-theme="dark"] .invert-dot { transform: rotate(180deg); }
.nav__menu { display: none; }
/* Invert is icon-only; the label stays for screen readers */
.nav__invert { width: 40px; padding: 0; }
.nav__invert-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 820px) {
  /* Phones: a solid bar once you leave the hero, so text never runs under the buttons */
  .nav--mark { mix-blend-mode: normal; color: var(--ink); transition: background-color 0.3s, box-shadow 0.3s; }
  html:not(.at-hero) .nav--mark { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper);
}
.menu[hidden] { display: none; }
.menu__bar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu__mark { font-size: 1.375rem; font-weight: 700; font-stretch: var(--narrow); letter-spacing: -0.035em; }
.menu__links { margin-top: auto; display: flex; flex-direction: column; }
.menu__links a {
  font-size: clamp(3rem, 15vw, 6rem); font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: -0.045em; line-height: 1; text-decoration: none;
  padding: 4px 0;
  opacity: 0; transform: translateY(40%);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__email { margin-top: 32px; font-size: var(--fs-lead); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  background: var(--paper);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y;
}
.hero__copy {
  position: absolute; z-index: 1;
  left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: end;
  pointer-events: none;
}
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero__headline {
  grid-column: 1 / span 8;
  max-width: 15em;
  font-size: clamp(2.125rem, 0.9rem + 3.6vw, 5rem);
  letter-spacing: -0.045em; line-height: 0.98;
}
.hero__support { grid-column: 9 / span 4; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill--paper { background: var(--paper); }

/* The hero shader keeps the field clean behind the copy, so lines need no backing
   (backings on wrapped lines painted over the line above). */
.knock { background: none; }

.js .hero__copy > * { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hero.is-ready .hero__copy > * { opacity: 1; transform: none; }
.js .hero.is-ready .hero__support { transition-delay: 0.14s; }

.hero__word { position: absolute; inset: var(--nav-h) var(--pad) auto; margin: 0; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback {
  display: block;
  font-size: 25.5vw; font-weight: 700; font-stretch: var(--narrow);
  letter-spacing: -0.045em; line-height: 0.8;
}

@media (max-width: 900px) {
  /* Phones and small tablets: the hero is as tall as the wordmark, a band of noise and the copy */
  .hero {
    height: auto; min-height: 0;
    padding: calc(var(--nav-h) + var(--word-h, 24vw) + clamp(80px, 26vw, 180px)) var(--pad) calc(var(--pad) + 12px);
  }
  .hero__copy { position: relative; left: auto; right: auto; bottom: auto; }
  .hero__copy { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hero__headline, .hero__support { grid-column: 1; }
  .hero__support { font-size: 1.0625rem; }
}

/* ---------- Roles: the job titles you were handed, crossed out ---------- */
.roles { padding: var(--section) var(--pad); }
.roles__lead { font-size: var(--fs-lead); color: var(--muted); margin-bottom: clamp(12px, 1.6vw, 24px); }
.jobs {
  list-style: none; margin: 0; padding: 0;
  font-size: min(var(--fs-row), 10.6vw); font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: -0.05em; line-height: 0.94;
}
.jobs li { position: relative; width: fit-content; white-space: nowrap; transition: color 0.5s var(--ease-out); }
.jobs li:not(.jobs__keep)::after {
  content: "";
  position: absolute; left: -0.05em; right: -0.05em; top: 54%;
  height: 0.07em; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.jobs li.is-struck { color: var(--struck); }
.jobs li.is-struck::after { transform: scaleX(1); }
.roles__punch { margin-top: clamp(36px, 5vw, 80px); max-width: 13em; }

.roles__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  margin-top: clamp(56px, 7vw, 120px); padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.role h3 { margin-bottom: 14px; }
.role p { max-width: 32ch; }
.roles__anchor {
  margin-top: clamp(56px, 7vw, 120px); max-width: 19em;
  font-size: var(--fs-statement); font-weight: 500; font-stretch: 92%;
  letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance;
}

@media (max-width: 1000px) { .roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .roles__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } }

/* ---------- Section head ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: end;
  padding: 0 var(--pad); margin-bottom: clamp(28px, 4vw, 64px);
}
.section-head h2 { grid-column: 1 / span 7; }
.section-head__aside { grid-column: 9 / span 4; max-width: 34ch; color: var(--muted); }

/* ---------- Work ---------- */
.work { padding: var(--section) 0; }
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.work-row { border-bottom: 1px solid var(--rule); transition: opacity 0.45s var(--ease-out); }
.work-row__btn {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: center;
  width: 100%; margin: 0; padding: clamp(20px, 2.4vw, 36px) var(--pad);
  border: 0; background: none; text-align: left; cursor: pointer;
}
.work-row__name {
  grid-column: 1 / span 5;
  font-size: var(--fs-row); font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: -0.05em; line-height: 0.88;
  transition: transform 0.7s var(--ease-out);
}
.work-row__meta { grid-column: 6 / span 3; display: grid; gap: 6px; color: var(--muted); }
.work-row__year { font-variant-numeric: tabular-nums; }
.work-row__media {
  grid-column: 9 / -1; position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
}

@media (hover: hover) and (pointer: fine) {
  .work__list:hover .work-row:not(:hover) { opacity: 0.35; }
  .work-row:hover .work-row__name { transform: translateX(clamp(8px, 1.6vw, 28px)); }
}

@media (max-width: 820px) {
  .work-row__btn { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .work-row__media { grid-column: 1; order: -1; }
  .work-row__name, .work-row__meta { grid-column: 1; }
  .work-row__meta { grid-template-columns: 1fr auto; }
  .section-head h2, .section-head__aside { grid-column: 1 / -1; }
}

/* Dithered canvases are opaque black ink on transparent. Image frames ("prints")
   stay black on white in every section and theme, so photos never go negative. */
.dither { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); image-rendering: pixelated; }
.print { background: #fff; }

/* ---------- Case study dialog ---------- */
.case {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0 0 var(--section); border: 0;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.case::backdrop { background: transparent; }
.case[open] { animation: case-in 0.75s var(--ease) both; }
.case.is-closing { animation: case-out 0.5s var(--ease) both; }
@keyframes case-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes case-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }

.case__bar {
  position: sticky; top: 0; z-index: 2;
  height: var(--nav-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper);
}
.case__brand { font-size: 1.375rem; font-weight: 700; font-stretch: var(--narrow); letter-spacing: -0.035em; }
.case__title {
  padding: clamp(24px, 6vw, 96px) var(--pad) clamp(20px, 3vw, 40px);
  font-size: clamp(3.25rem, 1rem + 9.5vw, 12rem); font-weight: 600;
  letter-spacing: -0.055em; line-height: 0.86;
}
.case__media { position: relative; margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.case__content {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(40px, 6vw, 96px) var(--pad) 0;
}
.case__meta { grid-column: 1 / span 4; margin: 0; display: grid; gap: 18px; align-content: start; }
.case__meta dt { color: var(--muted); font-size: var(--fs-small); }
.case__meta dd { margin: 2px 0 0; }
.case__body { grid-column: 6 / span 6; display: grid; gap: 14px; }
.case__body h3 { font-size: var(--fs-h3); margin-top: 28px; }
.case__body h3:first-child { margin-top: 0; }
.case__body p { max-width: 62ch; font-size: var(--fs-lead); line-height: 1.4; }

.case__next {
  display: grid; gap: 10px; width: calc(100% - var(--pad) * 2);
  margin: clamp(64px, 9vw, 160px) var(--pad) 0; padding: 28px 0 0;
  border: 0; border-top: 1px solid var(--rule); background: none;
  text-align: left; cursor: pointer;
}
.case__next-label { color: var(--muted); }
.case__next-name {
  font-size: clamp(2.5rem, 1rem + 6vw, 7rem); font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: -0.05em; line-height: 0.9;
  transition: transform 0.7s var(--ease-out);
}
.case__next:hover .case__next-name { transform: translateX(clamp(8px, 1.6vw, 28px)); }

@media (max-width: 820px) {
  .case__media { aspect-ratio: 4 / 5; }
  .case__meta, .case__body { grid-column: 1 / -1; }
  .case__meta { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
}

/* ---------- Services ---------- */
.services { padding: var(--section) var(--pad); }
.services__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: end; margin-bottom: clamp(36px, 5vw, 80px);
}
.services__head h2 { grid-column: 1 / span 6; }
.services__lead { grid-column: 7 / -1; max-width: 48ch; font-size: var(--fs-lead); line-height: 1.35; }
.services__list { border-bottom: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: start;
  padding: clamp(24px, 2.6vw, 40px) 0 clamp(32px, 3.4vw, 52px);
  border-top: 1px solid var(--rule);
}
.service h3 {
  grid-column: 1 / span 6;
  font-size: clamp(2.25rem, 1rem + 3.6vw, 5.25rem); letter-spacing: -0.05em; line-height: 0.9;
}
.service__body { grid-column: 7 / span 4; display: grid; gap: 10px; }
.service__hook { font-size: var(--fs-h3); font-weight: 600; font-stretch: var(--narrow); letter-spacing: -0.03em; line-height: 1.05; }
.service__body p:not(.service__hook) { max-width: 40ch; }
.service ul { grid-column: 11 / span 2; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* Title "signal" wave: letters briefly fill with dither dots as a wave passes */
.service h3 .ch { transition: none; }
.ch.n1, .ch.n2 {
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
}
.ch.n1 { background-image: radial-gradient(var(--ink) 34%, transparent 36%); background-size: 5px 5px; }
.ch.n2 { background-image: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%); background-size: 4px 4px; }

@media (max-width: 1000px) {
  .services__head h2, .services__lead { grid-column: 1 / -1; }
  .services__head { row-gap: 16px; }
  .service h3 { grid-column: 1 / -1; margin-bottom: 10px; }
  .service__body { grid-column: 1 / span 8; }
  .service ul { grid-column: 10 / span 3; }
}
@media (max-width: 640px) {
  .service { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .service h3, .service__body, .service ul { grid-column: 1; }
}

/* ---------- Growth partner: the top tier, the one inverted section ---------- */
.partner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: center;
  padding: var(--section) var(--pad);
}
.partner__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; }
.partner__tag { margin-bottom: 16px; font-size: var(--fs-small); color: var(--muted); }
.partner h2 {
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 1rem + 7vw, 9.5rem); letter-spacing: -0.055em; line-height: 0.86;
}
.partner__text { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.35; }
.partner__list {
  list-style: none; align-self: stretch; margin: 32px 0 36px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap);
}
.partner__list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.partner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.partner__text + .partner__text { margin-top: 16px; }
.partner__pool {
  grid-column: 7 / -1; position: relative;
  height: clamp(440px, 46vw, 760px);
  overflow: hidden; touch-action: pan-y;
}
/* The pool follows its section: white dots on black, black dots on white */
.is-inverse .partner__pool .dither { filter: invert(1); }
[data-theme="dark"] .is-inverse .partner__pool .dither { filter: none; }

@media (max-width: 1000px) {
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner__copy, .partner__pool { grid-column: 1; }
  .partner__pool { order: -1; height: auto; aspect-ratio: 1 / 1; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .partner__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Founder ---------- */
.founder {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: center;
  padding: var(--section) var(--pad);
}
.founder__portrait { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; }
.founder__copy { grid-column: 7 / span 6; }
.founder__tag { margin-bottom: 16px; font-size: var(--fs-small); color: var(--muted); }
.founder h2 { margin-bottom: 28px; font-size: clamp(3rem, 1rem + 6vw, 8rem); letter-spacing: -0.055em; line-height: 0.88; }
.founder__copy p:not(.founder__tag) { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.35; }
.founder__copy p + p { margin-top: 16px; }
.founder__copy .pill { margin-top: 32px; }
@media (max-width: 900px) {
  .founder { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .founder__portrait, .founder__copy { grid-column: 1; }
}

/* Case study films */
.case__films { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); align-items: start; margin-top: clamp(40px, 6vw, 96px); }
.case__films figure { margin: 0; }
.case__films video { display: block; width: 100%; height: auto; background: #000; }
.case__films figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 820px) { .case__films { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.process { padding: var(--section) 0 clamp(56px, 7vw, 120px); }
.process__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: end; padding: 0 var(--pad);
}
.process__head h2 { grid-column: 1 / span 6; }
.process__head p { grid-column: 8 / span 4; max-width: 36ch; color: var(--muted); }

.process__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: 0 var(--pad); margin-top: clamp(32px, 5vw, 80px);
}
.process__visual {
  grid-column: 1 / span 6;
  position: sticky; top: calc(var(--nav-h) + 16px); align-self: start;
  height: calc(100svh - var(--nav-h) - 40px);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.process__frame { position: relative; flex: 1; overflow: hidden; }
.process__caption { display: flex; align-items: center; gap: 16px; font-size: 0.9375rem; }
.process__label { flex: none; min-width: 15em; }
.process__bar { position: relative; flex: 1; height: 1px; background: var(--rule); }
.process__bar > span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.process__steps { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 14vh 0 22vh; }
.step { min-height: 64vh; padding-top: 8px; }
.js .step { opacity: 0.22; transition: opacity 0.5s var(--ease-out); }
.js .step.is-active { opacity: 1; }
.step__n { display: block; margin-bottom: 16px; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-h2); margin-bottom: 20px; }
.step p { max-width: 40ch; }
.step .step__out { margin-top: 14px; color: var(--muted); }

@media (max-width: 820px) {
  .process__head h2, .process__head p { grid-column: 1 / -1; }
  .process__head { row-gap: 16px; }
  .process__body { display: block; }
  .process__visual {
    top: var(--nav-h); z-index: 2;
    height: 40svh; padding-bottom: 12px;
  }
  .process__label { min-width: 0; }
  .process__steps { padding: 6vh 0 12vh; }
  .step { min-height: 46svh; }
  .step h3 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
}

/* ---------- Brief builder ---------- */
.brief {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: var(--section) var(--pad);
}
.brief__intro { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.brief__intro h2 { grid-column: 1 / span 7; }
.brief__intro p { grid-column: 9 / span 4; max-width: 34ch; color: var(--muted); }

.brief__form { grid-column: 1 / span 7; }
.brief fieldset { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.brief legend { padding: 0; margin-bottom: 16px; font-size: var(--fs-h3); font-weight: 600; font-stretch: var(--narrow); letter-spacing: -0.03em; line-height: 1.05; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.field { display: grid; gap: 8px; margin-bottom: 32px; }
.field--full { grid-column: 1 / -1; }
.brief__links { margin-top: 8px; }
.brief__links .field { margin-bottom: 24px; }
.field label { font-size: 0.9375rem; color: var(--muted); max-width: 52ch; }
.field--wide label { font-size: var(--fs-h3); color: var(--ink); font-weight: 600; font-stretch: var(--narrow); letter-spacing: -0.03em; line-height: 1.05; }
.field input, .field textarea {
  width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 1.25rem;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }

.brief__doc { grid-column: 9 / span 4; position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.doc { border: 1px solid var(--ink); padding: clamp(18px, 2vw, 28px); }
.doc__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.doc__body { display: grid; gap: 14px; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.doc__body .blank { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; }
.doc__body .fresh { animation: fresh 0.9s var(--ease-out); }
@keyframes fresh { from { background: var(--ink); color: var(--paper); } to { background: transparent; } }
.brief__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brief__msg { min-height: 1.45em; margin-top: 12px; font-size: 0.9375rem; }

@media (max-width: 1000px) {
  .brief__intro h2, .brief__intro p, .brief__form, .brief__doc { grid-column: 1 / -1; }
  .brief__intro { row-gap: 16px; }
  .brief__doc { position: static; margin-top: 8px; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; gap: 0; }
  .brief__actions .pill { flex: 1; }
}

/* ---------- Footer ---------- */
.foot { padding: clamp(96px, 10vw, 150px) var(--pad) 0; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.foot__hello { grid-column: 1 / span 7; }
.foot__sub { max-width: 34ch; margin-bottom: 28px; font-size: var(--fs-lead); color: var(--muted); }
.foot__line {
  max-width: 11em; margin-bottom: 16px;
  font-size: var(--fs-h2); font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance;
}
.foot__email {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.foot__email:hover { background-size: 100% 2px; }
.foot__links { grid-column: 9 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot__links a, .foot__small a { text-decoration: none; }
.foot__small { grid-column: 11 / span 2; display: grid; gap: 14px; align-content: start; color: var(--muted); }
.foot__small a { color: var(--ink); }

.foot__word {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: clamp(32px, 4vw, 64px) 0 0;
  font-size: 23vw; font-weight: 700; font-stretch: var(--narrow);
  letter-spacing: -0.045em; line-height: 0.74;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  padding-bottom: calc(0.05em + env(safe-area-inset-bottom));
}
.foot__word span { display: block; transform-origin: 50% 100%; will-change: transform; }

@media (max-width: 820px) {
  .foot__hello { grid-column: 1 / -1; margin-bottom: 28px; }
  .foot__links { grid-column: 1 / span 6; }
  .foot__small { grid-column: 7 / span 6; }
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 300;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: #fff; color: #000;
    mix-blend-mode: difference; pointer-events: none;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), opacity 0.3s;
  }
  .has-cursor .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .has-cursor .cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .has-cursor .cursor.is-hidden { opacity: 0; }
  .cursor__label { font-size: 0.9375rem; opacity: 0; transition: opacity 0.2s; }
  .cursor.is-view .cursor__label { opacity: 1; }
}

/* ---------- Theme transition (View Transitions API) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .hero__copy > * { opacity: 1; transform: none; }
}

/* Hide the system pointer only where the custom one is running */
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .has-cursor input, .has-cursor textarea { cursor: text !important; }
}

/* ---------- Seams: dither blends where section colours change ---------- */
/* Each seam overlaps the top padding of the section below, so layout doesn't move. */
.seam {
  position: relative; z-index: 3;
  height: var(--seam-h); margin-bottom: calc(var(--seam-h) * -1);
  overflow: hidden; pointer-events: none;
}
.seam[hidden] { display: none; }
.seam canvas { position: absolute; left: 0; top: 0; display: block; image-rendering: pixelated; }
