/* Kasper & Company. "Field map" look: cartographic, calm, exact.
   Square corners, hairline rules, no shadows, no gradients.
   The only motion on the site is the wireframe city drawing in on the home page. */

:root {
  --paper: #EEF0E6;
  --ink: #1E2421;
  --ink-soft: #3A423D;
  --rule: #C9CDBF;
  --contour-minor: #D9C2A3;
  --contour-major: #A9784A;
  --water: #3E7FA8;
  --water-fill: #CFE0E9;
  --signal: #B83A1E;
  --build-face-1: #E2E5D8;
  --build-face-2: #D7DBCB;
  --build-line: #59615A;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 2.5rem;
}

*, *::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: 1.125rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; line-height: 1.25; }

p { margin: 0 0 1.1em; }

.wrap {
  max-width: calc(1320px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

/* Header */

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 240, 230, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header .wrap { position: relative; }
.site-header .wrap::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; padding: 0.35rem 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.4em; }

/* Buttons */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.95rem 1.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: #000; border-color: #000; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-small { padding: 0.7rem 1.1rem; font-size: 0.9375rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 0; }

/* Sections */

.ruled > .wrap { position: relative; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.ruled > .wrap::before {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); top: 0;
  border-top: 1px solid var(--rule);
}

.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34rem; margin: 0; }

.kicker { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 0.75rem; }
.kicker a { color: var(--ink-soft); }

.page-head .wrap { padding-top: 5.5rem; padding-bottom: 4.5rem; }
.page-head h1 { max-width: 20ch; margin-bottom: 1.75rem; }
.page-head-tight .wrap { padding-top: 3rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 2rem 4rem;
}

.prose > p, .prose > ul, .prose > ol { max-width: 38rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin: 2.25rem 0 0.75rem; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5em; padding-left: 0.25rem; }
.prose li::marker { color: var(--ink-soft); }
.prose strong, .contents strong, .steps strong { font-weight: 600; }

/* Home: hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-text h1 { margin-bottom: 1.75rem; }
.hero-text .lede { max-width: 32rem; }

.city { margin: 0; }
.city-frame { position: relative; container-type: inline-size; }
.city-art { display: block; width: 100%; height: auto; }

.readout {
  position: absolute;
  left: 0;
  bottom: var(--readout-bottom);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.readout-pin { color: var(--signal); font-weight: 500; margin: 0 0 0.35rem; }
.readout dl { margin: 0; }
.readout dl div { display: flex; gap: 1ch; }
.readout dt { width: 17ch; }
.readout dd { margin: 0; }
.readout-note { margin: 0.35rem 0 0; color: var(--ink-soft); }
/* Below this frame width the readout no longer fits in the clear corner
   that build.js keeps for it, so it sits above the drawing. */
@container (max-width: 33rem) {
  .readout { position: static; margin-bottom: 0.75rem; }
}
/* When the block has no clear corner for the readout (build.js decides),
   it sits above the drawing at every width and there is no leader line. */
.city-plain .readout { position: static; margin-bottom: 0.75rem; }

.mono-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Motion. Lines draw in: the firm map on load, every other drawing as it
   scrolls into view (CSS scroll-driven animations, no JavaScript). Browsers
   without scroll timelines get the drawings fully drawn. Everything is
   switched off for visitors who ask for reduced motion: see the end of the file. */

/* Home: services strip, research feature, coverage */

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.two-col h3 { margin-bottom: 0.5rem; }
.two-col h3 a { text-decoration: none; }
.two-col h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.two-col p { margin: 0; max-width: 30rem; }

.contour-band, .contour-strip, .contour-full { display: block; width: 100%; }
.contour-band { height: 15rem; object-fit: cover; object-position: 50% 42%; margin-bottom: 2.5rem; }
.contour-strip { height: 4.5rem; object-fit: cover; object-position: 50% 30%; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.contour-full { height: auto; margin-top: 2.5rem; border-bottom: 1px solid var(--rule); }

.feature { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.feature h2 { max-width: 24ch; margin-bottom: 1rem; }
.feature h2 a { text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.feature-line { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; max-width: 44rem; margin: 0; }
.feature-link { margin: 0; font-size: 0.9375rem; white-space: nowrap; }

.ruled > .wrap:has(> .coverage) { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.coverage { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* Services */

.packet { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; margin-top: 2.5rem; }
.packet h3 { margin-top: 0; }
.cover-figure { margin: 0; }
.cover { display: block; width: 100%; height: auto; }
.f-serif { font-family: var(--serif); }
.f-sans { font-family: var(--sans); }
.f-mono { font-family: var(--mono); }

.contents, .steps { margin: 0; padding-left: 1.5rem; max-width: 38rem; }
.contents li, .steps li { margin-bottom: 0.6em; padding-left: 0.35rem; }
.contents li::marker, .steps li::marker { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-soft); }
.steps li { margin-bottom: 1em; }

.wrap > .contour-strip { margin: 0; }
#how-it-works > .wrap { padding-top: 3.5rem; padding-bottom: 4.5rem; }

/* Research */

.entry h3 { margin: 0 0 0.75rem; font-size: 1.625rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.entry p { max-width: 38rem; }
.entry-meta { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.entry + .entry { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }

.chart-figure { margin: 0 0 2.5rem; max-width: 44rem; }
.chart-figure figcaption { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1rem; max-width: 38rem; }
.chart { display: block; overflow: visible; }
.chart-year { font-family: var(--sans); font-size: 0.875rem; fill: var(--ink); }
.chart-value { font-family: var(--mono); font-size: 0.75rem; fill: var(--ink); }
.chart-note { font-family: var(--sans); font-size: 0.8125rem; fill: var(--ink-soft); }

.table-scroll { overflow-x: auto; margin: 0 0 2rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.9375rem; }
caption { caption-side: bottom; text-align: left; font-size: 0.8125rem; color: var(--ink-soft); padding: 0.75rem 0; }
th, td { text-align: right; padding: 0.7rem 0 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
th:first-child, td:first-child { padding-left: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 500; line-height: 1.3; border-bottom-color: var(--ink); }
tbody th { font-weight: 600; }
tbody td { font-family: var(--mono); font-size: 0.875rem; }
th:first-child, .text { text-align: left; }
tbody td.text { font-family: var(--sans); font-size: 0.9375rem; }
/* The all-years row sits under an ink rule. */
tbody tr:has(+ tr.total) th, tbody tr:has(+ tr.total) td { border-bottom-color: var(--ink); }

.map-figure { margin: 0; }
.map-frame { position: relative; border-bottom: 1px solid var(--rule); }
.map-frame img { display: block; width: 100%; height: auto; }
.peak-mark, .peak-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--signal);
  background: var(--paper);
  border: 1px solid var(--signal);
  width: 1.375rem; height: 1.375rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.peak-mark { position: absolute; transform: translate(-50%, -50%); }
.peak-no { margin-right: 0.5rem; }
.map-figure figcaption { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ink-soft); }
.map-figure figcaption p { max-width: 44rem; margin-bottom: 0.75em; }
.peaks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; }

/* About */

.founder { font-family: var(--serif); font-size: 1.25rem; margin-top: 2rem; }
.contact-email { font-family: var(--serif); font-size: clamp(1.25rem, 4.6vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 0.5rem; }

/* Request form. Square fields and hairline borders, like the rest of the map. */

.page-head-form .wrap { padding-bottom: 3rem; }
.request-form { max-width: 38rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.5rem; }
.field { margin: 0 0 1.5rem; }
.field label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.optional { color: var(--ink-soft); opacity: 0.75; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--build-line);
  border-radius: 0;
  background: #F7F8F2;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder { color: #7A817B; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request-form .actions { margin-top: 0.5rem; }
button.button { cursor: pointer; }
.form-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-soft); }
.form-note a { color: var(--ink-soft); }

/* Footer */

.site-footer .wrap { position: relative; padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer .wrap::before {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); top: 0;
  border-top: 1px solid var(--rule);
}
.footer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4rem; font-size: 0.9375rem; padding-top: 3rem !important; }
.footer-row p { margin: 0; }
.footer-name { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.5rem !important; }
.footer-tag { color: var(--ink-soft); max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-cols div { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-cols a { text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols span { color: var(--ink-soft); }
.footer-head { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.35rem !important; }
.footer-legal { grid-column: 1 / -1; }
.footer-legal { margin-top: 1rem !important; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-soft); max-width: 52rem; }

/* Narrow screens */

@media (max-width: 900px) {
  :root { --gutter: 1.25rem; }
  body { font-size: 1.0625rem; }

  .header-row { padding-top: 1.1rem; padding-bottom: 1.1rem; gap: 0.6rem 1.25rem; }
  .wordmark { font-size: 1.25rem; }
  .nav { order: 3; flex-basis: 100%; gap: 0.25rem 1.5rem; }
  .button-small { padding: 0.55rem 0.8rem; font-size: 0.875rem; }

  /* Art sits below the headline, never behind it. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .readout { position: static; margin-bottom: 0.75rem; }
  .city { max-width: 34rem; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ruled > .wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
  .page-head .wrap { padding-top: 3.5rem; padding-bottom: 3rem; }
  .page-head-tight .wrap { padding-top: 2.25rem; }
  .contour-band { height: 9rem; margin-bottom: 2rem; }
  .contour-strip { height: 3.5rem; }
  .contour-full { margin-top: 1.25rem; }
  .packet { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .three-col { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  /* 16px or larger stops iPhone Safari zooming into the field on tap. */
  .field input, .field textarea { font-size: 1rem; }

  /* The drawing is scaled down here, so its lines are drawn heavier. */
  .city-art .b { stroke-width: 2; }
  .city-art .s { stroke-width: 3.4; }
  .city-art .h { stroke-width: 9; }
  .city-art .l { stroke-width: 2.4; }
  .city-art .g { stroke-width: 1.4; }
  .cover-figure { max-width: 20rem; }
  #how-it-works > .wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .city-art .b { stroke-width: 2.6; }
  .city-art .s { stroke-width: 4.4; }
  .city-art .h { stroke-width: 12; }
  .city-art .l { stroke-width: 3.2; }
  .city-art .g { stroke-width: 1.8; }
}

@media print {
  .city-art path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .skip, .header-cta { display: none; }
}


/* ---------------------------------------------------------------- firm pages */

.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); margin: 0 0 1.5rem; }

/* Hero: the firm map */
.hero-firm .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); padding-top: 4.5rem; padding-bottom: 5rem; }
.hero-firm h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); }
.terrain { margin: 0; }
.terrain-frame { position: relative; }
.terrain-art { display: block; width: 100%; height: auto; }
.t-frame { fill: none; stroke: var(--rule); }
.t-tick { fill: none; stroke: var(--build-line); stroke-width: 1; }
.t-minor { fill: none; stroke: var(--contour-minor); stroke-width: 1; }
.t-major { fill: none; stroke: var(--contour-major); stroke-width: 1.4; }
.t-bracket { fill: none; stroke: var(--signal); stroke-width: 2.4; }
.t-dot { fill: var(--signal); }
.markers { list-style: none; margin: 0; padding: 0; }
.markers li { position: absolute; transform: translate(1.9rem, -50%); }
.markers a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.55rem;
  background: rgba(238, 240, 230, 0.94);
  border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.markers a:hover { background: var(--ink); color: var(--paper); }
.marker-no { color: var(--signal); font-weight: 500; }
.markers a:hover .marker-no { color: var(--paper); }

/* Statement band */
.statement .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.statement-text { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.22; letter-spacing: -0.01em; max-width: 30ch; margin: 0 0 2rem; }
.statement-link { margin: 0; font-size: 0.9375rem; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 3rem; }
.section-head h2 { margin-right: auto; }
.section-no { font-family: var(--mono); font-size: 0.8125rem; color: var(--signal); margin: 0; }
.section-sub { margin: 0; color: var(--ink-soft); }

/* Grids */
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.principle, .method { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.principle h3, .method h3 { margin-bottom: 0.6rem; }
.principle p, .method p { margin: 0; }

/* Work rows */
.work-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem 4.5rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.work-row:first-of-type { border-top: 0; padding-top: 0; }
.work-row-flip .work-art { order: 2; }
.work-index { display: flex; gap: 0.9rem; align-items: baseline; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.25rem; }
.work-index span { font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-family: var(--serif); }
.work-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.18; margin: 0 0 0.9rem; }
.work-text h4 { font-family: var(--serif); font-weight: 500; font-size: 1.125rem; margin: 1.5rem 0 0.4rem; }
.work-text p { max-width: 34rem; }
.work-who { font-size: 0.9375rem; color: var(--ink-soft); }
.work-link { font-size: 0.9375rem; margin-top: 1.25rem; }
.status {
  display: inline-block; margin: 0 0 1rem; padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.status-live { border-color: var(--signal); color: var(--signal); }

/* Drawings for work in development */
.vert-figure { margin: 0; }
.vert-art { display: block; width: 100%; height: auto; }
.fig-sheet { fill: #F3F4EC; stroke: var(--rule); }
.fig-small { font-size: 13px; fill: var(--ink-soft); letter-spacing: 0.03em; }
.fig-item { font-size: 15px; fill: var(--ink); }
.fig-note { font-size: 14px; fill: var(--ink-soft); }
.fig-signal { fill: var(--signal); }
.fig-line { fill: none; stroke: var(--rule); stroke-width: 1; }
.fig-dark { stroke: var(--ink); }
.fig-cut { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-dasharray: 5 4; }
.fig-bracket { fill: none; stroke: var(--signal); stroke-width: 2.2; }
.bar { fill: var(--build-face-2); }
.bar-strong { fill: var(--ink); }
.doc { stroke: var(--build-line); stroke-width: 1; }
.doc-back { fill: var(--build-face-2); }
.doc-mid { fill: var(--build-face-1); }
.doc-front { fill: #F7F8F2; stroke: var(--ink); }
.box { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.box-flag { stroke: var(--signal); }
.tick { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; }

/* Research band and closing */
.band-frame { overflow: hidden; margin-bottom: 2.5rem; }
.band-frame .contour-band { margin-bottom: 0; }
.feature-title { font-size: clamp(1.625rem, 2.6vw, 2rem); max-width: 24ch; margin-bottom: 1rem; }
.feature-title a { text-decoration: none; }
.feature-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.feature-also { margin: 1.75rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.pullquote { font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.35; max-width: 34rem; }
.closing { background: var(--ink); color: var(--paper); }
.closing .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.signoff { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.closing .actions { margin-top: 2.5rem; }
.closing .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.closing .button:hover { background: #fff; border-color: #fff; }
.field select {
  display: block; width: 100%; padding: 0.8rem 0.9rem;
  border: 1px solid var(--build-line); border-radius: 0; background: #F7F8F2;
  color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.4;
}
.field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }

@media (max-width: 900px) {
  .hero-firm .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
  .statement .wrap, .closing .wrap { padding-top: 4rem; padding-bottom: 4rem; }
  .three-col, .four-col { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .work-row { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.5rem 0; }
  /* One column: each row's text comes first and its own drawing follows,
     so a drawing is never read as part of the row above it. */
  .work-row .work-art { order: 2; }
  .footer-row { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .markers li { transform: translate(1.2rem, -50%); }
}
@media (max-width: 520px) {
  .marker-label { display: none; }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  /* Firm map: draws in on load, minor contours first, then the survey marks. */
  .terrain-art path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in 2.4s cubic-bezier(.3,.6,.2,1) forwards; }
  .terrain-art .t-major { animation-delay: 0.3s; }
  .terrain-art .t-bracket { animation-duration: 0.6s; animation-delay: 1.6s; }
  .terrain-art .t-tick { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .t-dot, .markers li { opacity: 0; animation: fade-in 0.6s ease-out 1.9s forwards; }
  .hero-text > * { opacity: 0; animation: rise-in 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }

  /* Without scroll timelines, other drawings draw in on load. */
  .city-art path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw-in 1.2s ease-out forwards; }
}

@keyframes draw-in { to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Blocks rise into place as they enter the screen. */
    .reveal { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }

    /* Drawings draw themselves as they scroll into view. */
    .draw { view-timeline-name: --drawing; }
    .draw svg path, .draw .city-art path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in linear both; animation-timeline: --drawing; animation-range: entry 10% cover 45%; }
    .draw .city-art path { fill-opacity: 0; }
    .draw .fig-cut { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    .draw .bar { transform-box: fill-box; transform-origin: left center; animation: grow-x linear both; animation-timeline: --drawing; animation-range: entry 20% cover 50%; }
    .draw .doc { animation: fade-in linear both; animation-timeline: --drawing; animation-range: entry 0% cover 30%; }

    /* Section rules sweep across. */
    .ruled > .wrap::before { transform-origin: left; animation: grow-x linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }

    /* The statement fills in as you read it. */
    .statement-text span {
      background: linear-gradient(to right, var(--ink) 50%, #B9BEB0 50%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: fill-text linear both; animation-timeline: view(); animation-range: cover 15% cover 55%;
    }

    /* The research map drifts slower than the page. */
    .band-frame .contour-band { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; height: 19rem; }
  }
}

@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-text { to { background-position: 0 0; } }
@keyframes drift { from { transform: translateY(-2.5rem); } to { transform: translateY(2.5rem); } }

/* Filing window notice under the header. Remove with DEADLINE_NOTICE in build.js. */
.deadline-notice { margin: 0; padding: 0.6rem 0; background: var(--ink); color: var(--paper); font-size: 0.9rem; }
.deadline-notice .wrap { display: block; }
.deadline-notice a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
