/* Direction A: the house style, grown up. Paper and ink, Newsreader and Geist. */

@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Colour: paper and ink, two quiet neutrals between, no accent */
  --paper: #F2EDE4;
  --paper-2: #E8E1D5;
  --rule: #CDC4B6;
  --stone: #645E55;
  --graphite: #36332F;
  --ink: #141414;
  --on-ink: #F2EDE4;
  --on-ink-quiet: #ABA497;
  --rule-on-ink: #3A3835;

  /* Families */
  --serif: "Newsreader Variable", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale (fluid, 360 to 1920) */
  --t-display: clamp(2.75rem, 1.6rem + 5.2vw, 6.75rem);
  --t-figure: clamp(4rem, 2.4rem + 7vw, 9.5rem);
  --t-h2: clamp(2rem, 1.45rem + 2.5vw, 4rem);
  --t-h3: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --t-lead: clamp(1.25rem, 1.08rem + 0.65vw, 1.75rem);
  --t-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --t-small: 0.9375rem;
  --t-fine: 0.875rem;

  /* Spacing steps */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 9rem;
  --section: clamp(5rem, 3rem + 9vw, 12rem);

  /* Layout */
  --measure: 36em;
  --page-max: 88rem;
  --gutter: clamp(1.25rem, 0.6rem + 3.4vw, 4.5rem);
  --gap: clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
  --hair: 1px solid var(--rule);
  --open: 1px solid var(--ink);
  --t-read: clamp(1.125rem, 1.04rem + 0.32vw, 1.3125rem);

  /* Motion: slow, small, once */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --m-hover: 200ms;
  --m-arrive: 700ms;
  --m-slow: 900ms;
  --m-weight: 1100ms;
  --m-page: 250ms;
  --m-step: 75ms;
  --rise: 12px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ink :focus-visible { outline-color: var(--on-ink); }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-4); z-index: 30; text-decoration: none; }
.skip:focus { top: var(--s-3); }

/* Layout */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--section); }

/* Type roles */
.display, .h2, .h3, .lead, .serif { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.022em; font-weight: 380; }
.display em { font-style: italic; font-weight: 360; }
.h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.016em; }
.h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.38; letter-spacing: -0.005em; }
.label { font-family: var(--sans); font-size: var(--t-small); line-height: 1.4; color: var(--stone); font-weight: 450; }
.fine { font-size: var(--t-fine); line-height: 1.5; color: var(--stone); }
.quiet { color: var(--graphite); }
.num { font-family: var(--sans); font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--stone); letter-spacing: 0.02em; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: var(--measure); }

/* Header: one slim bar that stays at the top. On phones the menu is a line
   just below it that scrolls away; the bar never changes height. */
:root { --bar: 3.75rem; }
html { scroll-padding-top: var(--bar); }
.depth { scroll-margin-top: var(--s-5); }
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 0 transparent; transition: box-shadow var(--m-hover) ease; }
.sc .site-head { box-shadow: 0 1px 0 var(--rule); }
@keyframes head-rule { to { box-shadow: 0 1px 0 var(--rule); } }
@supports (animation-timeline: scroll()) {
  .site-head { animation: head-rule linear both; animation-timeline: scroll(); animation-range: 0 1.5rem; }
}
.site-head .wrap { display: flex; align-items: center; height: var(--bar); }
.brand { display: flex; align-items: center; margin-right: auto; min-width: 0; }
.wordmark { font-family: var(--serif); font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.75rem); line-height: 1; letter-spacing: -0.018em; font-weight: 420; text-decoration: none; white-space: nowrap; padding-block: 0.75rem; }
.role { display: none; font-size: var(--t-small); line-height: 1.2; color: var(--stone); white-space: nowrap; margin-left: var(--s-5); padding: 0.15em 0 0.15em var(--s-5); border-left: var(--hair); }
.nav ul { display: flex; }
.nav a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: 0.8rem; font-size: 1rem; font-weight: 500; letter-spacing: -0.004em; text-decoration-color: transparent; text-underline-offset: 0.42em; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { text-decoration-color: currentColor; }
.nav a[aria-current]::before, .nav-m a[aria-current]::before, .site-foot a[aria-current]::before { content: ""; display: inline-block; flex: none; width: 0.34em; height: 0.34em; margin-right: 0.45em; border-radius: 50%; background: currentColor; vertical-align: 0.14em; }
.site-head .button-s { font-size: var(--t-small); padding: 0 1.2rem; min-height: 2.75rem; width: 7.375rem; justify-content: center; white-space: nowrap; margin-left: var(--s-5); background: transparent; color: var(--ink); transition: background-color var(--m-hover) ease, color var(--m-hover) ease; }
.site-head .button-s:hover, .site-head .button-s:focus-visible { background: var(--ink); color: var(--paper); }
@media (min-width: 48rem) { :root { --bar: 4.5rem; } }
@media (min-width: 64rem) {
  .role { display: block; }
  .wordmark { font-size: 2rem; width: 7.68em; flex: none; }
  .hero > .label { display: none; }
  .hero { padding-top: clamp(3rem, 0.5rem + 7vw, 7.5rem); }
}
.nav-m { display: none; }
@media (max-width: 47.99rem) {
  .site-head .nav { display: none; }
  .nav-m { display: block; }
  .nav-m ul { display: flex; gap: var(--s-5); border-bottom: var(--hair); }
  .nav-m a { display: flex; align-items: center; min-height: 2.75rem; font-size: var(--t-small); font-weight: 500; text-decoration-color: transparent; text-underline-offset: 0.42em; }
  .nav-m a:hover, .nav-m a:focus-visible { text-decoration-color: currentColor; }
  .site-head .button-s { margin-left: var(--s-4); padding-inline: 1rem; width: 7rem; }
}

/* Button and links */
.button {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--ink); color: var(--on-ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1;
  padding: 1.15rem 1.6rem; text-decoration: none; border: 1px solid var(--ink);
}
.button:hover, .button:focus-visible { background: var(--graphite); }
.more { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 450; text-decoration-color: currentColor; }
.more::after {
  content: ""; width: 0.95em; height: 0.95em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.offer .note { font-size: var(--t-small); color: var(--stone); max-width: 26em; line-height: 1.5; }

/* Home: hero */
.hero { padding-block: clamp(3rem, 1rem + 9vw, 9.5rem) clamp(4rem, 2rem + 8vw, 10rem); }
.hero .label { margin-bottom: var(--s-6); }
.hero h1 { max-width: 13.5em; }
.hero-body { margin-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); row-gap: var(--s-6); }
.hero-body .lead { max-width: 25em; }

/* Home: problem rows (numbered because they are an ordered set of four) */
.rows { border-top: var(--open); }
.row { border-bottom: var(--hair); padding-block: var(--s-6) var(--s-7); row-gap: var(--s-4); }
.row .num { padding-top: 0.45em; }
.row .h3 { font-size: var(--t-h3); }
.row .prose { color: var(--graphite); }
.row .more { margin-top: var(--s-4); color: var(--ink); }

/* The one ink moment: the featured work */
.ink { background: var(--ink); color: var(--on-ink); }
.ink a { text-decoration-color: var(--on-ink-quiet); }
.ink a:hover { text-decoration-color: currentColor; }
.ink .label, .ink .fine { color: var(--on-ink-quiet); }
.work { row-gap: var(--s-6); }
.work .descriptor { margin-top: var(--s-4); font-size: var(--t-small); color: var(--on-ink); max-width: 20em; line-height: 1.5; }
.work .summary { max-width: 24em; }
.work .small-print { margin-top: var(--s-4); max-width: 30em; }
.work .go { margin-top: var(--s-7); }
.rows-sec { padding-top: var(--section); }
.result { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.005em; max-width: 22em; }
.result .fig { display: block; font-size: var(--t-figure); line-height: 0.95; letter-spacing: -0.035em; font-weight: 360; margin-bottom: var(--s-4); font-variant-numeric: lining-nums; }
.work-rule { border: 0; border-top: 1px solid var(--rule-on-ink); margin: var(--s-7) 0 var(--s-5); }

/* Home: about with portrait */
.portrait { background: var(--paper-2); overflow: hidden; }
/* Crop: head to forearms, jeans out of frame, air above the head */
.portrait img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 0%; filter: contrast(1.02); }
.about-text { align-self: end; row-gap: var(--s-5); }
.about-text .prose { max-width: 30em; }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact-in { border-top: var(--open); padding-top: var(--s-8); }
.contact h2 { max-width: 16em; margin-bottom: var(--s-7); }

/* Footer: a designed close */
.site-foot { border-top: var(--hair); padding-block: var(--s-8) var(--s-7); font-size: var(--t-small); color: var(--graphite); }
.site-foot.ink { border-top: 1px solid var(--rule-on-ink); color: var(--on-ink-quiet); }
.foot-in { row-gap: var(--s-7); }
.foot-mark { font-family: var(--serif); font-size: clamp(2.75rem, 1.5rem + 4.6vw, 6.5rem); line-height: 0.95; letter-spacing: -0.028em; font-weight: 370; color: var(--ink); }
.ink .foot-mark { color: var(--on-ink); }
.foot-mark a { text-decoration: none; }
.foot-meta { display: grid; gap: var(--s-3); align-content: end; }
.foot-nav, .foot-contact { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-meta > p:first-child { color: var(--ink); }
.ink .foot-meta > p:first-child { color: var(--on-ink); }
.foot-nav { margin-top: var(--s-3); }

/* Case study and system pieces (styleguide) */
.list-plain li { padding-block: var(--s-3); border-bottom: var(--hair); }
.list-plain li:first-child { border-top: var(--hair); }
.list-dash li { padding-left: 1.1em; position: relative; }
.list-dash li + li { margin-top: var(--s-2); }
.list-dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.5em; border-top: 1px solid var(--stone); }
.facts { display: grid; gap: var(--s-4); }
.facts dt { font-weight: 550; font-size: var(--t-small); }

/* Wider screens */
@media (min-width: 52rem) {
  .hero-body .lead { grid-column: 6 / span 6; }
  .hero-body .offer { grid-column: 6 / span 7; }
  .row .num { grid-column: 1 / span 1; }
  .row .h3 { grid-column: 2 / span 5; padding-right: var(--s-6); }
  .row .body { grid-column: 7 / span 6; }
  .work .side { grid-column: 1 / span 4; }
  .work .main { grid-column: 5 / span 8; }
  .portrait { grid-column: 1 / span 5; }
  .about-text { grid-column: 7 / span 6; display: grid; }
  .contact h2 { grid-column: 1 / span 10; }
  .contact .offer { grid-column: 1 / span 9; }
}
@media (max-width: 51.99rem) {
  .row .num { padding-top: 0; }
  .portrait { max-width: 26rem; }
  .about-text { margin-top: var(--s-7); }
  .about-text > * + * { margin-top: var(--s-5); }
}

/* Section openers: a firmer rule where a new section starts on paper */
.opener { border-top: var(--open); padding-top: var(--s-8); }

/* Inner pages: the opening */
.page-hero { padding-block: clamp(2.5rem, 0.5rem + 7vw, 8rem) clamp(3.5rem, 1.5rem + 6vw, 8rem); }
.page-hero > .label, .hero-top { margin-bottom: var(--s-5); }
.page-hero h1 { max-width: 14em; }
.page-intro { margin-top: clamp(1.75rem, 1rem + 3vw, 4.5rem); }
.page-intro > * { max-width: 26em; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3) var(--s-6); }
.back { font-size: var(--t-small); text-decoration-color: currentColor; }
.cs-title { max-width: 12.5em; }
.brand-line { margin-top: var(--s-6); font-size: var(--t-small); font-weight: 500; line-height: 1.5; max-width: 26em; }

/* Parts: a ruled section, with a margin column on wider screens */
.parts { padding-bottom: var(--section); }
.part { border-top: var(--open); padding-top: var(--s-6); row-gap: var(--s-6); }
.part + .part { margin-top: clamp(4.5rem, 2.5rem + 6vw, 9rem); }
.part-main > * + * { margin-top: var(--s-6); }
.part-main.list-plain > li + li { margin-top: 0; }
.label.strong { color: var(--ink); font-weight: 550; }
.ch-head { display: flex; align-items: baseline; gap: var(--s-5); }
.ch-head .num { flex: none; }
.part-side .num { margin-right: var(--s-2); }

/* Long read: the case study is set in the serif */
.read { font-family: var(--serif); font-size: var(--t-read); line-height: 1.62; max-width: 32em; font-optical-sizing: auto; }
.read > * + * { margin-top: 1em; }
.read .lead + p { margin-top: var(--s-5); }
.after { color: var(--graphite); }
.toc li + li { margin-top: var(--s-2); }
.toc a { display: flex; align-items: baseline; gap: var(--s-3); text-decoration: none; font-size: var(--t-small); }
.toc a span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); text-underline-offset: 0.22em; }
.toc a:hover span:last-child { text-decoration-color: currentColor; }

/* Results, and the quieter context */
.result-block { max-width: 34em; }
.result-block .result { font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.875rem); max-width: 22em; }
.result-block .result + .result { margin-top: var(--s-6); }

/* Work index: the featured study, then an index of projects by area */
.desc { font-size: 0.8125rem; line-height: 1.45; color: var(--stone); text-wrap: pretty; }
.feat { row-gap: var(--s-6); }
.feat-head .desc { margin-bottom: var(--s-4); }
.feat-title { max-width: 11em; text-wrap: balance; }
.feat-fig .result { max-width: 20em; }
.feat-fig .fine { margin-top: var(--s-4); max-width: 30em; }
.idx, .idx + .part { margin-top: clamp(4.5rem, 2.5rem + 6vw, 9rem); }
.idx-head { padding-bottom: var(--s-5); }
.grp { padding-block: var(--s-5) var(--s-6); row-gap: var(--s-4); background: linear-gradient(var(--stone), var(--stone)) 0 0 / 100% 1px no-repeat; }
.grp-name { font-family: var(--sans); font-size: var(--t-small); font-weight: 550; line-height: 1.4; scroll-margin-top: var(--s-5); }
.ix-row { display: grid; gap: var(--s-3) var(--gap); padding-block: var(--s-4) var(--s-5); border-top: var(--hair); }
.ix-row:first-child { border-top: 0; padding-top: 0; }
.ix-row:last-child { padding-bottom: 0; }
.ix-t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem); line-height: 1.2; letter-spacing: -0.008em; text-wrap: balance; }
.ix-body { font-size: 1rem; line-height: 1.55; color: var(--graphite); max-width: 34em; text-wrap: pretty; }
.ix-body > * + * { margin-top: var(--s-3); }
.chg { color: var(--ink); }
.chg span { display: block; font-size: 0.8125rem; color: var(--stone); font-weight: 500; }
.key .ix-t { font-size: var(--t-h3); }
.ix .go { margin-top: var(--s-4); color: var(--ink); }
.part[id] { scroll-margin-top: var(--s-5); }
.split .list-plain li:first-child { border-top: 0; padding-top: 0; }

/* Engagements */
.eng-list .label { margin-bottom: var(--s-3); }
.list-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); column-gap: var(--gap); border-top: var(--hair); max-width: 40em; }
.list-flows li { padding-block: var(--s-3); border-bottom: var(--hair); }
.facts { gap: 0; max-width: 40em; }
.facts > div { display: grid; gap: var(--s-1) var(--s-5); padding-block: var(--s-3); border-top: var(--hair); }
.facts > div:last-child { border-bottom: var(--hair); }
.facts dd { margin: 0; }
.also { max-width: 34em; }
.part-main > .depth { margin-top: var(--s-8); max-width: 40em; }
.depth .h3 { margin-bottom: var(--s-4); }
.steps { display: grid; gap: var(--s-6) var(--gap); }
.steps li { display: grid; align-content: start; gap: var(--s-2); }
.steps { position: relative; padding-left: var(--s-6); }
.steps::before { content: ""; position: absolute; left: 4px; top: 0.7em; bottom: 0.4em; width: 1px; background: var(--ink); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: calc(-1 * var(--s-6)); top: calc(0.7em - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.steps .h3 { margin-top: var(--s-2); }

/* About */
.about-page { padding-block: clamp(2rem, 0.5rem + 5vw, 6rem) var(--section); }
.about-grid { row-gap: var(--s-7); }
.about-name h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6.25rem); }
.about-name .label { margin-top: var(--s-4); }
.about-copy { display: grid; align-content: start; gap: var(--s-4); }
.about-copy .prose { max-width: 30em; }
.about-copy .label + .prose { margin-top: calc(-1 * var(--s-1)); }
.about-copy .prose + .label { margin-top: var(--s-6); }
.about-copy .prose + p { margin-top: var(--s-4); }

/* Privacy */
.legal { max-width: 36em; }
.legal > * + * { margin-top: 1em; }
.legal .h3 { margin-bottom: var(--s-3); }
.legal b { font-weight: 600; }

/* Contact extras and 404 */
.back-link { margin-top: var(--s-7); }
.back-link .more { flex-direction: row-reverse; }
.back-link .more::after { transform: scaleX(-1); }
.not-found { padding-block: clamp(4rem, 2rem + 10vw, 12rem); min-height: 55vh; }
.not-found h1 { max-width: 11em; margin-bottom: var(--s-7); }


@media (min-width: 52rem) {
  .page-intro > * { grid-column: 6 / span 7; }
  .part-side { grid-column: 1 / span 3; }
  .part-main { grid-column: 4 / span 8; }
  .part-wide { grid-column: 4 / span 9; }
  .ch-head { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
  .ch-head .num { grid-column: 1 / span 3; }
  .ch-head h2 { grid-column: 4 / span 9; }
  .split .part-side { grid-column: 1 / span 5; }
  .split .part-main { grid-column: 7 / span 6; }
  .feat-head { grid-column: 1 / span 6; grid-row: 1; }
  .feat-fig { grid-column: 7 / span 6; grid-row: 1 / span 2; }
  .feat-go { grid-column: 1 / span 6; grid-row: 2; align-self: end; }
  .idx-head .label { grid-column: 1 / span 4; }
  .ix-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ix-t { grid-column: 1 / span 4; }
  .ix-body { grid-column: 5 / span 8; }
  .facts > div { grid-template-columns: 9rem 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { padding: var(--s-6) 0 0; }
  .steps::before { left: 4px; right: calc((100% - 2 * var(--gap)) / 3 - 4px); top: 4px; bottom: auto; width: auto; height: 1px; }
  .steps li::before { left: 0; top: calc(-1 * var(--s-6)); }
  .portrait-lg { grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: start; }
  .about-name { grid-column: 8 / span 5; align-self: end; }
  .about-copy { grid-column: 8 / span 5; }
}


/* One pass: selection, hidden text */
::selection { background: var(--ink); color: var(--paper); }
.ink ::selection { background: var(--on-ink); color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A statement, set large on paper */
.pull { font-family: var(--serif); font-weight: 370; font-size: clamp(2.125rem, 1.25rem + 3.4vw, 4.875rem); line-height: 1.06; letter-spacing: -0.022em; max-width: 16em; font-optical-sizing: auto; }
.pull > span { display: block; text-wrap: balance; }
.statement { padding-top: var(--section); row-gap: var(--s-7); }

.pov { color: var(--graphite); max-width: 32em; text-wrap: pretty; }

/* Home: the invitation on ink */
.contact.ink { padding-block: var(--section); }
.ink .contact-in { border-top: 0; padding-top: 0; }
.ink .button { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.ink .button:hover, .ink .button:focus-visible { background: var(--paper-2); }
.ink .offer .note { color: var(--on-ink-quiet); }

/* The flow system, drawn */
.fm { margin-block: var(--s-5) var(--s-4); }
.fm-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.fm-art .fm-tall { max-width: 25rem; }
.fm-art .fm-wide { display: none; }
.fm text { font-family: var(--sans); fill: var(--ink); font-weight: 500; }
.fm .cap { fill: var(--graphite); font-weight: 400; }
.fm .end { font-family: var(--serif); font-style: italic; font-weight: 400; fill: var(--stone); font-size: 1.1em; }

/* Case study: at a glance, and the chapter rail */
.glance { padding-bottom: clamp(4rem, 2rem + 6vw, 8rem); }
.glance-list { border-top: var(--open); padding-top: var(--s-5); row-gap: var(--s-6); }
.glance-list li { display: grid; align-content: start; gap: var(--s-3); }
.glance-res { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5625rem); line-height: 1.3; letter-spacing: -0.006em; max-width: 19em; }
.cs-toc { margin-bottom: var(--s-7); }
.toc a { position: relative; }
.toc a::before { content: ""; position: absolute; left: -0.95em; top: 0.6em; width: 0.34em; height: 0.34em; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity var(--m-hover) ease; }
.toc a[aria-current]::before { opacity: 1; }
.toc a[aria-current] span:last-child { text-decoration-color: currentColor; }
.cs .pull { margin-top: var(--s-5); }

/* Engagements */
.eng #audit, .eng #rebuild { position: relative; }
.eng-list + .fm { margin-top: calc(-1 * var(--s-4)); }
.eng #fractional { border-top-color: var(--stone); }
.js .eng #fractional.rl::before { background: var(--stone); }

@media (min-width: 52rem) {
  .statement .pull { grid-column: 2 / -1; }

  .statement .pov { grid-column: 7 / span 5; }
  .part > .fm { grid-column: 4 / -1; }
  .glance-list li { grid-column: span 4; }
  .glance-list li + li { border-left: var(--hair); padding-left: var(--gap); margin-left: calc(-1 * var(--gap) / 2); }
  .cs { position: relative; }
  .cs-rail { position: absolute; top: 0; bottom: var(--section); left: var(--gutter); width: calc((100% - 2 * var(--gutter) - 11 * var(--gap)) / 4 + var(--gap)); padding-top: var(--s-6); }
  .cs-toc { position: sticky; top: calc(var(--bar) + var(--s-6)); margin: 0; }
  .cs > .part { margin-left: calc((100% - 11 * var(--gap)) / 4 + 3 * var(--gap)); grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .cs > .part > * { grid-column: 1 / span 8; }
  .cs > .part > :is(.fm, .pull) { grid-column: 1 / -1; }
  .cs .ch-head { display: flex; }
  .eng .ch-head .num { font-family: var(--serif); font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
  .eng #audit::after { content: ""; position: absolute; left: 0.04em; top: calc(var(--s-6) + var(--t-h2) * 1.35); bottom: calc(-1 * clamp(4.5rem, 2.5rem + 6vw, 9rem)); width: 1px; background: var(--stone); transform-origin: 50% 0; }
  .eng #rebuild::after { content: ""; position: absolute; left: calc(0.04em - 4px); top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
  .eng #fractional { margin-top: clamp(7rem, 3rem + 10vw, 14rem); }
  .about-grid { align-items: start; }
  .portrait-lg { grid-column: 1 / span 7; grid-row: 1 / span 2; position: sticky; top: calc(var(--bar) + var(--s-5)); }
  .portrait-lg img { aspect-ratio: 4 / 5; }
  .about-name, .about-copy { grid-column: 9 / span 4; align-self: start; }
  .about-name h1 { font-size: clamp(3rem, 1.2rem + 4.4vw, 5.75rem); line-height: 0.98; }
  .about-copy { margin-top: var(--s-8); }
  .foot-mark { grid-column: 1 / span 8; align-self: end; }
  .foot-meta { grid-column: 9 / span 4; }
}
/* Wide: the group name holds the left margin while its rows pass */
@media (min-width: 75rem) {
  .idx-head .label, .grp-name { grid-column: 1 / span 3; }
  .grp-name { align-self: start; position: sticky; top: calc(var(--bar) + var(--s-5)); }
  .ix { grid-column: 4 / span 9; }
  .ix-row { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .ix-t { grid-column: 1 / span 3; padding-right: var(--s-4); }
  .ix-body { grid-column: 4 / span 6; }
}
@media (min-width: 80rem) { .fm-art .fm-wide { display: block; } .fm-art .fm-tall { display: none; } }
@media (max-width: 51.99rem) {
  .portrait-lg { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .portrait-lg img { aspect-ratio: 4 / 5; }
}

/* Motion. Hover and focus colours ease for everyone; everything that moves
   is for no-preference only. Hidden starting states need .js on <html>. */
a, .button { transition: text-decoration-color var(--m-hover) ease, background-color var(--m-hover) ease; }

@media (prefers-reduced-motion: no-preference) {
  .more::after { transition: transform var(--m-hover) var(--ease); }
  .more:hover::after, .more:focus-visible::after { transform: translateX(3px); }
  .back-link .more:hover::after, .back-link .more:focus-visible::after { transform: scaleX(-1) translateX(3px); }

  @keyframes arrive { from { opacity: 0; transform: translateY(var(--rise)); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes lift { from { transform: translateY(105%); } }
  @keyframes settle { from { transform: scale(1.03); } }

  /* Page arrival: the first screen assembles in order, no scroll needed */
  .js :is(.hero > .label, .hero h1, .hero-body > *, .page-hero > *, .about-name > *, .about-copy, .not-found > *) {
    animation: arrive var(--m-arrive) var(--ease) var(--d, 0ms) backwards;
  }
  .js .hero h1 { --d: 300ms; animation-duration: var(--m-slow); }
  .js .hero-body > :first-child { --d: 420ms; }
  .js .hero-body > .offer { --d: 540ms; }
  .js :is(.page-hero, .about-name, .not-found) > :nth-child(2) { --d: 120ms; }
  .js .page-hero > :nth-child(3) { --d: 240ms; }
  .js .page-hero > :nth-child(4) { --d: 360ms; }
  .js .about-copy { --d: 360ms; }

  /* Home headline: each visual line rises from behind its own mask */
  .js .hero h1.split { animation: none; }
  .hero h1:has(.ln) { display: flex; flex-direction: column; }
  .ln { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }
  .ln > span { display: block; }
  .js .ln > span { animation: lift var(--m-slow) var(--ease) calc(var(--i) * 100ms) backwards; }

  /* Portrait: a slow fade, the photograph settles inside a still frame */
  .js .portrait-lg { animation: fade var(--m-slow) var(--ease) 120ms backwards; }
  .js .portrait-lg img { animation: settle var(--m-slow) var(--ease) 120ms backwards; }

  /* Sections on scroll: the opening rule draws, then contents fade up */
  .js .rv .ri { opacity: 0; transform: translateY(var(--rise)); }
  .js .rv.in .ri {
    opacity: 1; transform: none;
    transition: opacity var(--m-arrive) var(--ease), transform var(--m-arrive) var(--ease);
    transition-delay: calc(var(--base, 0ms) + 180ms + var(--i, 0) * var(--m-step));
  }
  .js .rl { position: relative; border-top-color: transparent; }
  .js .rl::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
  .js .rl.in::before { transform: none; transition: transform var(--m-slow) var(--ease) var(--base, 0ms); }
  .js .rv .portrait.ri { transform: none; transition-duration: var(--m-slow); }
  .js .rv .portrait img { transform: scale(1.03); }
  .js .rv.in .portrait img { transform: none; transition: transform var(--m-slow) var(--ease) calc(var(--base, 0ms) + 180ms); }

  /* The ink block: the figure lifts out of a mask, a touch slower */
  .js .work.rv .fig { clip-path: inset(100% 0 0 0); transform: translateY(var(--rise)); }
  .js .work.in .fig {
    clip-path: inset(-20% -5% -20% -5%); transform: none;
    transition: clip-path var(--m-weight) var(--ease), transform var(--m-weight) var(--ease);
    transition-delay: calc(var(--base, 0ms) + 420ms);
  }

  /* The schematic draws along the path once, then holds */
  .js .fm.rv .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .js .fm.rv .fd { opacity: 0; }
  .js .fm.in .dr { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t, 300ms) linear var(--d, 0ms); }
  .js .fm.in .dr.e { transition-timing-function: var(--ease); }
  .js .fm.in .fd { opacity: 1; transition: opacity 450ms var(--ease) var(--d, 0ms); }
  /* How it runs: the rule draws, the points follow; 01 leads down to 02 */
  .js .part.rv:not(.in) .steps::before { transform: scaleY(0); transform-origin: 50% 0; }
  .js .part.in .steps::before { transform: none; transition: transform 1200ms var(--ease) calc(var(--base, 0ms) + 200ms); }
  .js .eng #audit.rv::after { transform: scaleY(0); }
  .js .eng #audit.in::after { transform: none; transition: transform 1400ms var(--ease) calc(var(--base, 0ms) + 500ms); }
  @media (min-width: 52rem) { .js .part.rv:not(.in) .steps::before { transform: scaleX(0); transform-origin: 0 50%; } }
  .js .cs-toc { animation: arrive var(--m-arrive) var(--ease) 360ms backwards; }

  /* Page to page: a short cross-fade, the header holds still */
  @view-transition { navigation: auto; }
  .site-head { view-transition-name: head; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: var(--m-page); }
}
@media print {
  .ri, .fig, .fm .fd { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rl::before, .fm .dr { transform: none !important; stroke-dashoffset: 0 !important; }
}
.nw { white-space: nowrap; }
