/* ======= 01-tokens.css =========================================== */
/*
  Industry Logic — design tokens
  ---------------------------------------------------------------
  The system is deliberately narrow: two grounds (ink / bone), one
  accent (vermillion), three typefaces with one job each. Restraint
  is the brand — every extra colour would cost us authority.
*/

:root {
  /* --- ground -------------------------------------------------- */
  --ink:            #101110;   /* near-black, faint green cast    */
  --ink-raised:     #191B18;   /* raised surface on ink           */
  --ink-deep:       #0A0B0A;   /* recessed / footer               */
  --bone:           #F0EDE6;   /* warm paper                      */
  --bone-raised:    #E7E3D9;
  --bone-deep:      #DCD7CA;

  /* --- accent -------------------------------------------------- */
  --vermillion:     #DC4A24;   /* the single signal colour        */
  --vermillion-lift:#EE6039;   /* on ink, needs a touch more heat */

  /* --- text ---------------------------------------------------- */
  --text-on-bone:   #101110;
  --text-on-ink:    #F0EDE6;
  --muted-on-bone:  #5F6359;
  --muted-on-ink:   #979B90;

  /* --- rules --------------------------------------------------- */
  --line-on-bone:   rgba(16, 17, 16, 0.16);
  --line-on-ink:    rgba(240, 237, 230, 0.16);
  --line-strong-on-bone: rgba(16, 17, 16, 0.32);
  --line-strong-on-ink:  rgba(240, 237, 230, 0.32);

  /* Contextual aliases — sections flip these, components inherit. */
  --bg:       var(--bone);
  --fg:       var(--text-on-bone);
  --muted:    var(--muted-on-bone);
  --line:     var(--line-on-bone);
  --line-strong: var(--line-strong-on-bone);
  --accent:   var(--vermillion);
  --surface:  var(--bone-raised);

  /* --- type ---------------------------------------------------- */
  --font-sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Times, serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid scale, 380px → 1600px viewport. */
  --t-micro:    clamp(0.6875rem, 0.66rem + 0.12vw, 0.75rem);
  --t-small:    clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --t-body:     clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead:     clamp(1.125rem, 1.02rem + 0.5vw, 1.5rem);
  --t-sub:      clamp(1.375rem, 1.15rem + 1.1vw, 2.25rem);
  --t-h3:       clamp(1.625rem, 1.3rem + 1.6vw, 2.75rem);
  --t-h2:       clamp(2.25rem, 1.5rem + 3.4vw, 4.75rem);
  --t-display:  clamp(3rem, 1.1rem + 8.2vw, 9.5rem);
  --t-figure:   clamp(3rem, 1.8rem + 5.4vw, 7rem);

  --tracking-display: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-label:    0.16em;

  /* --- space --------------------------------------------------- */
  --gutter:    clamp(1.25rem, 4vw, 4rem);
  --measure:   68ch;
  --section-y: clamp(4.5rem, 9vw, 10rem);
  --section-y-lg: clamp(6rem, 13vw, 14rem);
  --max:       1560px;

  /* --- motion -------------------------------------------------- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  180ms;
  --dur:       420ms;
  --dur-slow:  900ms;
}

/* Sections opt into the dark ground by flipping the aliases only. */
.on-ink {
  --bg: var(--ink);
  --fg: var(--text-on-ink);
  --muted: var(--muted-on-ink);
  --line: var(--line-on-ink);
  --line-strong: var(--line-strong-on-ink);
  --accent: var(--vermillion-lift);
  --surface: var(--ink-raised);
  background: var(--bg);
  color: var(--fg);
}

.on-bone {
  --bg: var(--bone);
  --fg: var(--text-on-bone);
  --muted: var(--muted-on-bone);
  --line: var(--line-on-bone);
  --line-strong: var(--line-strong-on-bone);
  --accent: var(--vermillion);
  --surface: var(--bone-raised);
  background: var(--bg);
  color: var(--fg);
}

/* ======= 02-base.css ============================================= */
/* Reset + typographic base ------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--text-on-bone);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  margin: 0;
}
button { cursor: pointer; }

::selection { background: var(--vermillion); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
:focus:not(:focus-visible) { outline: none; }

hr {
  height: 0; border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --- Type roles ----------------------------------------------- */

.display {
  font-size: var(--t-display);
  line-height: 0.9;
  letter-spacing: var(--tracking-display);
}

.h2 { font-size: var(--t-h2); line-height: 0.98; letter-spacing: -0.03em; }
.h3 { font-size: var(--t-h3); line-height: 1.06; }
.sub { font-size: var(--t-sub); line-height: 1.18; letter-spacing: -0.022em; }
.lead {
  font-size: var(--t-lead);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 46ch;
}
.small { font-size: var(--t-small); line-height: 1.5; }

/* Editorial italic — the one moment of warmth in a grotesk system.
   Used on a single word or clause, never a whole paragraph. */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display .serif, .h2 .serif { padding-right: 0.06em; }

/* Mono micro-labels carry the index system. */
.label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.label--accent { color: var(--accent); }
.label--fg { color: var(--fg); }

.num {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.measure { max-width: var(--measure); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: 0.75rem; z-index: 200;
  transform: translateY(-200%);
  background: var(--ink); color: var(--bone);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ======= 03-layout.css =========================================== */
/* Layout: the grid, the rules, the index system ----------------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--lg { padding-block: var(--section-y-lg); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }

/* Hairline that runs the full width of the ground, not the shell —
   this is what makes the page read as a printed sheet rather than a
   stack of boxes. */
.rule {
  border-top: 1px solid var(--line);
}
.section--ruled { border-top: 1px solid var(--line); }

/* 12-column grid. Most layouts use spans of 4/5/6/7. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  row-gap: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Column spans, with sensible collapse at each breakpoint.
   Note: these set grid-column-END only. The `grid-column: span N`
   shorthand sets the START edge, which silently destroys the span
   when a .start-* class also sets a start line. */
.col-2  { grid-column-end: span 2; }
.col-3  { grid-column-end: span 3; }
.col-4  { grid-column-end: span 4; }
.col-5  { grid-column-end: span 5; }
.col-6  { grid-column-end: span 6; }
.col-7  { grid-column-end: span 7; }
.col-8  { grid-column-end: span 8; }
.col-9  { grid-column-end: span 9; }
.col-10 { grid-column-end: span 10; }
.col-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; }
.start-4 { grid-column-start: 4; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }

@media (max-width: 900px) {
  .col-2, .col-3, .col-4 { grid-column-end: span 3; }
  .col-5, .col-6, .col-7, .col-8, .col-9, .col-10 { grid-column-end: span 6; }
  .start-2, .start-4, .start-6, .start-7, .start-8, .start-9 { grid-column-start: auto; }
}
@media (max-width: 640px) {
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10 { grid-column: 1 / -1; }
}

/* --- Section head: the index system --------------------------- */
/*  §  03 / SERVICES ————————————————————————  */

.section-head {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.section-head__title {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg);
  flex: none;
}
.section-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 640px) {
  .section-head__note { display: none; }
}

/* --- Stack utilities ------------------------------------------ */
.stack > * + * { margin-top: var(--stack-gap, 1.5rem); }
.stack--sm { --stack-gap: 0.75rem; }
.stack--lg { --stack-gap: clamp(1.75rem, 3vw, 3rem); }

.flow-between { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-end; }

/* --- The axis mark -------------------------------------------- */
/*  Two lines crossing: commerce on one axis, design on the other.
    Used as a divider, a bullet, and the seed of the logotype.     */
.axis {
  position: relative;
  width: 1em; height: 1em;
  flex: none;
  color: var(--accent);
}
.axis::before, .axis::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.axis::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.axis::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }

/* ======= 04-chrome.css =========================================== */
/* Site chrome: masthead, menu, footer --------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--masthead-fg, var(--text-on-bone));
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  mix-blend-mode: normal;
}
/* The masthead reads the ground it is currently sitting over, so the
   logotype stays legible as the page alternates ink and bone.
   data-chrome on <body> sets the opening state (no flash on load);
   data-theme is then updated on scroll. */
.masthead[data-theme='ink'] {
  --masthead-fg: var(--text-on-ink);
  --masthead-bg: rgba(16, 17, 16, 0.72);
}
.masthead[data-theme='bone'] {
  --masthead-fg: var(--text-on-bone);
  --masthead-bg: rgba(240, 237, 230, 0.78);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1rem, 1.6vw, 1.5rem);
  position: relative;
}
.masthead__inner::after {
  content: '';
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.94);
  transform-origin: left;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
/* The rule draws itself in once you leave the hero. */
.masthead.is-stuck { background: var(--masthead-bg, rgba(240, 237, 230, 0.82)); backdrop-filter: blur(14px) saturate(1.2); }
.masthead.is-stuck .masthead__inner::after { opacity: 0.2; transform: scaleX(1); }

/* --- Logotype -------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}
.logo__mark {
  width: 1.05em; height: 1.05em;
  color: var(--vermillion);
  transition: transform var(--dur-slow) var(--ease-out);
}
.masthead:hover .logo__mark,
.logo:focus-visible .logo__mark { transform: rotate(90deg); }
.logo__name { font-weight: 500; }
.logo__name em { font-style: normal; opacity: 0.55; }

/* --- Primary navigation --------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-block: 0.4rem;
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.1rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page'] { opacity: 1; }
.nav__link[aria-current='page']::after { transform: scaleX(1); background: var(--vermillion); }

@media (max-width: 880px) {
  .nav { display: none; }
}

/* --- Menu toggle (small screens) ------------------------------- */
.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 0.4rem 0;
  color: inherit;
}
.menu-toggle__bars { position: relative; width: 1.15rem; height: 0.55rem; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) linear;
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { bottom: 0; }
[aria-expanded='true'] .menu-toggle__bars span:first-child { transform: translateY(0.27rem) rotate(45deg); }
[aria-expanded='true'] .menu-toggle__bars span:last-child { transform: translateY(-0.27rem) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
}

/* --- Full-screen menu ----------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  color: var(--text-on-ink);
  --fg: var(--text-on-ink);
  --line: var(--line-on-ink);
  --line-strong: var(--line-strong-on-ink);
  --muted: var(--muted-on-ink);
  --accent: var(--vermillion-lift);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 7rem 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur) linear;
}
.menu[data-open='true'] { opacity: 1; visibility: visible; }
.menu__list { border-top: 1px solid var(--line); }
.menu__item { border-bottom: 1px solid var(--line); }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: clamp(0.7rem, 2.4vw, 1.1rem);
  font-size: clamp(2rem, 9vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  opacity: 0; transform: translateY(0.5em);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.menu[data-open='true'] .menu__link { opacity: 1; transform: none; }
.menu__link .num { color: var(--accent); }
.menu__foot {
  margin-top: auto; padding-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
}

/* --- Footer ---------------------------------------------------- */
.footer {
  background: var(--ink-deep);
  color: var(--text-on-ink);
  --fg: var(--text-on-ink);
  --muted: var(--muted-on-ink);
  --line: var(--line-on-ink);
  --accent: var(--vermillion-lift);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}
.footer__grid { row-gap: clamp(2.5rem, 5vw, 4rem); }
.footer__wordmark {
  font-size: clamp(3.25rem, 15vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong-on-ink);
  user-select: none;
}
.footer__list li + li { margin-top: 0.55rem; }
.footer__list a { position: relative; }
.footer__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Statutory disclosure: required, so it must be present and legible —
   and uninteresting, so it sits below everything else at the smallest
   size the type system allows. */
.footer__legal {
  margin-top: 1.25rem;
  max-width: 70ch;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.7;
}

.footer__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
}

/* --- Links & buttons ------------------------------------------ */

/* The standing link: label + rule that redraws on hover. */
.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.5em;
}
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0.35;
  transition: opacity var(--dur-fast) linear, transform var(--dur) var(--ease-out);
}
.link:hover::after { opacity: 1; }
.link__arrow { transition: transform var(--dur) var(--ease-out); }
.link:hover .link__arrow { transform: translateX(0.35em); }
.link--accent { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 0.8em;
  padding: 1.05em 1.6em;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn:hover { background: var(--vermillion); color: var(--bone); }
.btn--accent { background: var(--vermillion); color: var(--bone); }
.btn--accent:hover { background: var(--fg); color: var(--bg); }
.btn--ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); box-shadow: none; }

/* ======= 05-components.css ======================================= */
/* Components ---------------------------------------------------- */

/* === Capability index =========================================
   Services as a set of ruled rows that open in place — an index,
   not a card grid. Rows carry a number, a name, and a live count
   of disciplines; opening one reveals the list and a short brief. */

.index-list { border-top: 1px solid var(--line); }

.index-row { border-bottom: 1px solid var(--line); }

.index-row__head {
  width: 100%;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: clamp(1.4rem, 3.2vw, 2.6rem);
  text-align: left;
  color: inherit;
  transition: color var(--dur) var(--ease-out);
}
.index-row__head:hover { color: var(--accent); }

.index-row__num {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease-out);
}
.index-row__head:hover .index-row__num,
.index-row[data-open='true'] .index-row__num { color: var(--accent); }

.index-row__name {
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -0.035em;
  display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap;
}
.index-row__name .serif { color: var(--accent); }

.index-row__meta {
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  /* Flex rather than grid on small screens: the number stays on the
     first baseline of a name that now wraps, and the sign stays pinned
     to the right edge. */
  .index-row__head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }
  .index-row__num { flex: none; }
  .index-row__name { flex: 1 1 auto; font-size: var(--t-h3); }
  .index-row__meta { flex: none; margin-left: auto; align-self: center; }
  .index-row__meta span:not(.index-row__sign) { display: none; }
}

/* The toggle glyph is the axis mark: a cross that becomes a minus. */
.index-row__sign { position: relative; width: 1rem; height: 1rem; flex: none; color: currentColor; }
.index-row__sign::before, .index-row__sign::after {
  content: ''; position: absolute; background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) linear;
}
.index-row__sign::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.index-row__sign::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%) scaleY(1); }
.index-row[data-open='true'] .index-row__sign::after { transform: translateX(-50%) scaleY(0); }
.index-row[data-open='true'] .index-row__sign { color: var(--accent); }

.index-row__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.index-row[data-open='true'] .index-row__panel { grid-template-rows: 1fr; }
.index-row__panel > div { overflow: hidden; }
.index-row__body {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity var(--dur) var(--ease-out) 80ms, transform var(--dur) var(--ease-out) 80ms;
}
.index-row[data-open='true'] .index-row__body { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .index-row__body { grid-template-columns: 1fr; }
}

.index-row__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .index-row__cols { grid-template-columns: 1fr; } }

/* Discipline list — ruled, numbered, quietly technical. */
.disciplines {
  columns: 2;
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 520px) { .disciplines { columns: 1; } }
.disciplines li {
  break-inside: avoid;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.75rem;
  font-size: var(--t-small);
}
.disciplines li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--accent);
  letter-spacing: 0.06em;
}
.disciplines { counter-reset: item; }

/* === Work index ===============================================
   Ruled rows with a preview that follows the cursor. On touch and
   at small sizes the preview is inlined instead of floating.      */

.work-list { border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); position: relative; }
.work-row__link {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: clamp(1.3rem, 3vw, 2.4rem);
  transition: color var(--dur) var(--ease-out);
}
.work-row__link:hover { color: var(--accent); }
.work-row__name {
  font-size: var(--t-h3);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.work-row__disc, .work-row__year {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 780px) {
  .work-row__link { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .work-row__disc { display: none; }
}
@media (max-width: 520px) {
  .work-row__link { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 0.4rem; }
  .work-row__year { grid-column: 2; }
}

.work-preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(240px, 24vw, 380px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  /* Offset above and right of the cursor: a centred preview covers the
     very row you are reading. */
  --lift: translate3d(calc(-50% + 7rem), calc(-50% - 4rem), 0);
  transform: var(--lift) scale(0.96);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  overflow: hidden;
  border-radius: 2px;
  /* A hairline keeps the bone-ground artwork from dissolving into a
     bone page. */
  box-shadow: inset 0 0 0 1px var(--line-strong-on-bone);
}
.work-preview[data-visible='true'] { opacity: 1; transform: var(--lift) scale(1); }
.work-preview__img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px), (hover: none) { .work-preview { display: none; } }

/* === Figures / proof ========================================== */

.figures { border-top: 1px solid var(--line); }
.figure-item {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
/* Optical alignment: nudge the note down to the numeral's cap height. */
.figure-item > p { padding-top: 0.35em; }
@media (max-width: 640px) { .figure-item { grid-template-columns: 1fr; gap: 0.75rem; } }
.figure-item__value {
  font-size: var(--t-figure);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums lining-nums;
}
.figure-item__value sup { font-size: 0.32em; vertical-align: super; letter-spacing: 0; color: var(--accent); }

/* === Quote / statement ======================================== */

.statement {
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.statement--wide { max-width: 30ch; }

blockquote { margin: 0; }
.quote__mark { display: block; width: 1.4rem; height: 1.4rem; margin-bottom: 1.5rem; }

/* === Beats: think / build / grow ============================== */

.beats { border-top: 1px solid var(--line); }
.beat {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
@media (max-width: 780px) {
  .beat { grid-template-columns: 1fr; gap: 0.85rem; }
}
.beat__title {
  font-size: var(--t-h3);
  letter-spacing: -0.03em;
  line-height: 1;
}
.beat__title .serif { color: var(--accent); }

/* === Page hero (interior pages) =============================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(8rem, 15vw, 13rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-hero > .shell { position: relative; z-index: 2; }
.page-hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out) 200ms;
}
.page-hero__field[data-ready='true'] { opacity: 1; }
.page-hero__field canvas { width: 100%; height: 100%; }
.page-hero.on-ink::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(110% 70% at 18% 62%, rgba(16, 17, 16, 0.8) 0%, rgba(16, 17, 16, 0.25) 50%, transparent 76%);
}
.page-hero__title {
  font-size: var(--t-display);
  line-height: 0.88;
  letter-spacing: var(--tracking-display);
}
.page-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  padding-top: 1.25rem; margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.meta-pair { display: grid; gap: 0.35rem; }
.meta-pair dt { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.meta-pair dd { margin: 0; font-size: var(--t-small); }

/* === Card-free content blocks ================================= */

.note {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.note__title { font-size: var(--t-sub); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.6rem; }
.note__title .num { display: block; margin-bottom: 0.9rem; color: var(--accent); }

/* === Prose (case studies, journal) ============================ */

.prose { max-width: 62ch; font-size: var(--t-lead); line-height: 1.5; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { font-size: var(--t-sub); margin-top: 2em; letter-spacing: -0.02em; }
.prose strong { font-weight: 500; }
.prose em { font-family: var(--font-serif); font-style: italic; font-size: 1.06em; }
.prose ul li { padding-left: 1.4em; position: relative; margin-top: 0.5em; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 0.7em; height: 1px; background: var(--accent);
}

/* === Media ==================================================== */

.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 2px;
}
.media > img, .media > svg { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media__caption {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* === Contact form ============================================= */

.field { position: relative; padding-top: 1.6rem; border-bottom: 1px solid var(--line-strong); }
.field + .field { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.field label {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted);
  transition: color var(--dur-fast) linear;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.5rem 0 0.9rem;
  font-size: var(--t-lead);
  letter-spacing: -0.015em;
  color: var(--fg);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.field:focus-within { border-color: var(--accent); }
.field:focus-within label { color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }

.field-group { border: 0; padding: 0; margin: 0; }
.field-group legend { padding: 0 0 1.1rem; }
.choice-set { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* === Next / pagination ======================================== */

.next-block { display: block; padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.next-block__title {
  font-size: var(--t-h2); letter-spacing: -0.035em; line-height: 1;
  transition: color var(--dur) var(--ease-out);
}
.next-block:hover .next-block__title { color: var(--accent); }

/* A service page never cross-links to itself. */
.svc-brand .x-brand,
.svc-marketing .x-marketing,
.svc-apps .x-apps,
.svc-strategy .x-strategy { display: none; }

/* Ruled definition rows — used for "what we do" on service pages. */
.def-list { border-top: 1px solid var(--line); }
.def {
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  align-items: baseline;
}
@media (max-width: 720px) { .def { grid-template-columns: 2.5rem minmax(0, 1fr); } .def p { grid-column: 2; } }
.def__term { font-size: var(--t-sub); letter-spacing: -0.02em; line-height: 1.1; }
.def p { color: var(--muted); font-size: var(--t-small); margin: 0; }

/* ======= 06-home.css ============================================= */
/* Home ---------------------------------------------------------- */

/* === Hero =====================================================
   The field: an array of hairline ticks that orient themselves
   toward the cursor. Order responding to a force — the closest
   honest picture of what the studio does. Falls back to a static
   composed field when motion is reduced or the pointer is coarse. */

.hero {
  position: relative;
  min-height: clamp(38rem, 100svh, 60rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(9rem, 18vh, 14rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out) 200ms;
}
.hero__field[data-ready='true'] { opacity: 1; }
.hero__field canvas { width: 100%; height: 100%; }

/* Vignette keeps the type legible over the busiest part of the field. */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 75% at 20% 80%, rgba(16, 17, 16, 0.78) 0%, rgba(16, 17, 16, 0.26) 48%, transparent 74%),
    linear-gradient(to top, rgba(16, 17, 16, 0.75), transparent 42%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.hero__eyebrow .axis { width: 0.7rem; height: 0.7rem; }
/* The separator is drawn, not typed, so it can disappear cleanly when
   the two halves stack. */
.hero__eyebrow span + span::before { content: '·'; margin-right: 0.75rem; }
@media (max-width: 560px) {
  .hero__eyebrow { flex-wrap: wrap; row-gap: 0.35rem; }
  .hero__eyebrow span + span { flex-basis: 100%; margin-left: 1.45rem; }
  .hero__eyebrow span + span::before { content: none; }
}

.hero__title {
  font-size: var(--t-display);
  line-height: 0.88;
  letter-spacing: var(--tracking-display);
  max-width: 15ch;
}
.hero__title .serif { color: var(--vermillion-lift); }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-ink);
}
@media (max-width: 820px) {
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted-on-ink);
}
.scroll-cue__line {
  display: block; width: 3rem; height: 1px; background: currentColor;
  transform-origin: left; animation: cue 2.8s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.25); opacity: 0.4; }
  50%      { transform: scaleX(1); opacity: 1; }
}

/* === Positioning statement ==================================== */

.thesis {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  max-width: 24ch;
}
.thesis .serif { color: var(--accent); }
.thesis .dim { color: var(--muted); }

/* === Client / sector row ====================================== */

/* Fixed columns, not auto-fit: eight sectors resolve to two full rows
   instead of leaving an orphan cell floating in an empty row. */
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 860px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roster li {
  padding: clamp(1.25rem, 2.5vw, 2rem) 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.roster li:hover { color: var(--fg); background: var(--surface); }

/* === Closing CTA ============================================== */

.cta { position: relative; overflow: hidden; }
.cta__title {
  font-size: clamp(2.5rem, 1rem + 8vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.cta__title a { display: inline-block; transition: color var(--dur) var(--ease-out); }
.cta__title a:hover { color: var(--accent); }
.cta__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
/* Sized to fit a long address inside three columns rather than
   spilling across the neighbouring block. */
.cta__email {
  display: inline-block;
  font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.375rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  position: relative;
}
.cta__email::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.15em;
  height: 1px; background: currentColor; opacity: 0.3;
  transition: opacity var(--dur-fast) linear;
}
.cta__email:hover::after { opacity: 1; }

/* ======= 07-motion.css =========================================== */
/* Motion --------------------------------------------------------
   Two mechanisms only:
   1. .lines  — masked line-by-line rise, for display type.
   2. [data-reveal] — a short lift + fade for everything else.
   Both are driven by one IntersectionObserver and both collapse to
   "already visible" when the user asks for reduced motion.        */

.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;   /* room for descenders inside the mask */
  margin-bottom: -0.06em;
}
.lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: transform;
}
.lines.is-in .line > span { transform: none; }

.lines .line:nth-child(1) > span { --i: 0; }
.lines .line:nth-child(2) > span { --i: 1; }
.lines .line:nth-child(3) > span { --i: 2; }
.lines .line:nth-child(4) > span { --i: 3; }
.lines .line:nth-child(5) > span { --i: 4; }

[data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Rules draw themselves in rather than appearing. */
[data-reveal-rule] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease-out);
}
[data-reveal-rule].is-in { transform: scaleX(1); }

/* Elements the observer never reaches (e.g. JS off) must still show. */
.no-js .lines .line > span,
.no-js [data-reveal],
.no-js [data-reveal-rule] { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .lines .line > span, [data-reveal] { transform: none !important; opacity: 1 !important; }
  [data-reveal-rule] { transform: scaleX(1) !important; }
  .scroll-cue__line { animation: none; transform: scaleX(1); }
}

/* Print — the site should survive being sent to a client as a PDF. */
@media print {
  .masthead, .menu, .hero__field, .scroll-cue, .work-preview { display: none !important; }
  body { background: #fff; color: #000; }
  .on-ink, .footer { background: #fff !important; color: #000 !important; }
  .footer__wordmark { display: none; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.75em; color: #555; }
}
