/* ============================================================
   A Small World — portfolio
   Palette & type first, then layout.
   ============================================================ */

:root {
  /* paper */
  --paper:        #F2EFE8;
  --paper-warm:   #F7F4ED;
  --paper-deep:   #E8E3D8;

  /* ink */
  --ink:          #34322C;
  --ink-soft:     #6B675C;
  --ink-faint:    #9C978A;
  --rule:         #D8D2C4;

  /* the world */
  --sky-top:      #F6F3EB;
  --sky-low:      #EDE8DC;
  --hill-1:       #C4CCC1;   /* farthest */
  --hill-2:       #ADBAA8;
  --hill-3:       #96A690;
  --hill-4:       #7F9179;   /* nearest  */
  --water:        #35617F;
  --water-soft:   #7FA0B6;
  --sage:         #6E8460;
  --ochre:        #C9993E;
  --ochre-soft:   #E3C888;
  --terracotta:   #B5765A;
  --cream:        #F4EFE3;
  --roof:         #A6674F;
  --stamp:        #FCFAF4;   /* the paper a stamp is printed on */

  /* metrics */
  --page:         1240px;
  --gutter:       clamp(20px, 5vw, 64px);
  --ease:         cubic-bezier(.22,.61,.36,1);

  /* One serif for every heading. Hoefler Text is the storybook one —
     high contrast, true italic, old-style figures that suit the stamp
     values. All system faces, so there's still no webfont to load. */
  --serif:        "Hoefler Text", Baskerville, "Iowan Old Style",
                  ui-serif, Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .40;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='.42'/></svg>");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
}

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

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

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: 26px var(--gutter);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-head.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule);
}

.brand { line-height: 1.5; }
.brand b { font-weight: 400; display: block; }
.brand span { color: var(--ink-faint); display: block; }

.site-nav { display: flex; gap: 26px; padding-top: 1px; }
.site-nav a { position: relative; color: var(--ink-soft); transition: color .3s var(--ease); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.socials { display: flex; gap: 16px; justify-content: flex-end; padding-top: 1px; }
.socials a { color: var(--ink-faint); transition: color .3s var(--ease), transform .3s var(--ease); }
.socials a:hover { color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }

/* ============================================================
   Hero — the world
   ============================================================ */
.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 40px;
}

.hero-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 26px;
}
.hero-intro h1 {
  font-size: clamp(26px, 4.6vw, 50px);
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 14px 0 16px;
}
.hero-intro h1 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
}
.hero-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 460px;
  margin-inline: auto;
}

/* the scene */
.scene {
  position: relative;
  width: calc(100% - clamp(28px, 7vw, 104px));
  max-width: 1400px;
  margin-inline: auto;
}

/* the landscape, feathered into the paper */
.scene-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 5.5%, #000 96%, transparent 100%),
    linear-gradient(to right,  transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0, #000 5.5%, #000 96%, transparent 100%),
    linear-gradient(to right,  transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
          mask-composite: intersect;
}
.scene-frame.can-plant { cursor: cell; }

.scene-bg {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* buildings sit on top; only they take clicks */
.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.landmark { pointer-events: auto; }
.lm-hit   { fill: transparent; }

/* a soft bloom of light behind the feature */
.spot-glow {
  fill: #fff;
  filter: url(#glow);
  opacity: 0;
  transition: opacity .55s var(--ease);
}
/* ...and a thin ring drawn around it */
.spot-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.9);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.landmark.is-active .spot-glow { opacity: .34; }
.landmark.is-active .spot-ring { opacity: .8; transform: scale(1); }

/* everything else steps back while one is held */
.scene.is-focused .meadow,
.scene.is-focused .scene-bg { filter: saturate(.72) brightness(.94); }
.scene-bg, .meadow { transition: filter .55s var(--ease); }

/* ---------- the meadow you plant ---------- */
.meadow { position: absolute; inset: 0; pointer-events: none; }

.flower {
  position: absolute;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) scale(1);
  animation: sprout .62s cubic-bezier(.18,1.5,.45,1) backwards;
}
.flower img {
  height: 100%;
  width: auto;
  transform-origin: 50% 100%;
  transform: rotate(var(--r)) scaleX(var(--fx));
  animation: sway var(--sway) ease-in-out var(--delay) infinite;
  filter: drop-shadow(0 3px 4px rgba(28,46,18,.3));
}
@keyframes sprout {
  from { transform: translate(-50%, -100%) scale(.08); opacity: 0; }
  to   { transform: translate(-50%, -100%) scale(1);   opacity: 1; }
}
@keyframes sway {
  0%, 100% { transform: rotate(var(--r)) scaleX(var(--fx)); }
  50%      { transform: rotate(calc(var(--r) + 2.4deg)) scaleX(var(--fx)); }
}

/* ---------- tools under the scene ---------- */
.scene-tools { text-align: center; margin-top: 16px; }
.tool-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tool {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 16px 8px;
  color: var(--ink-soft);
  letter-spacing: inherit;
  font-size: inherit;
  text-transform: inherit;
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
}
.tool:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--paper-warm); }
.tool-count { color: var(--ink-faint); }
.tool-count b { font-weight: 400; color: var(--ink-soft); }

/* ---------- the three places ---------- */
.landmark { cursor: pointer; }
.landmark:focus { outline: none; }

/* ---------- labels ---------- */
.labels { position: absolute; inset: 0; pointer-events: none; }

/* zero-size anchor: the stem always sits exactly on the point */
.label {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.label.is-on { opacity: 1; }

.label-card {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%) translateY(7px);
  transition: transform .5s var(--ease);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px 7px;
  box-shadow: 0 10px 26px -12px rgba(28,40,20,.6);
  text-align: center;
  white-space: nowrap;
}
.label.is-on .label-card { transform: translateX(-50%) translateY(0); }

/* near the edges, hang the card inwards instead of centring it */
.label--r .label-card { left: auto; right: -18px; transform: translateY(7px); }
.label--l .label-card { left: -18px; transform: translateY(7px); }
.label.is-on.label--r .label-card,
.label.is-on.label--l .label-card { transform: translateY(0); }
.label-card b {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.label-card i {
  display: block;
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 1px;
}
.label-stem {
  position: absolute;
  bottom: 0; left: -.5px;
  width: 1px; height: 19px;
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.35));
}

/* always-on dot markers so the world reads as clickable */
.pip {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(28,46,18,.35), 0 2px 6px rgba(20,30,12,.3);
  opacity: .8;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pip::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.5); opacity: .5; }
  70%  { opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pip.is-on { opacity: 0; transform: scale(.4); }

.scene-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue {
  display: block;
  margin: 30px auto 0;
  width: 1px; height: 46px;
  background: linear-gradient(var(--rule), transparent);
}

/* ============================================================
   Districts
   ============================================================ */
.districts { padding-top: 40px; }

.district {
  padding: 92px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.district:first-child { border-top: 0; }

.district-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 46px;
}
.district-mark {
  width: 78px; height: 78px;
  background: var(--paper-deep);
  border-radius: 14px;
  overflow: hidden;
}
.district-mark img { width: 100%; height: 100%; object-fit: cover; }

.district-title {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 8px 0 10px;
}
.district-body { max-width: 620px; color: var(--ink-soft); margin: 0 0 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 11px 5px;
}

/* ---------- work grid ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 30px 20px;
}

/* Cards stretch to the tallest in the row so every value line sits on
   the same baseline, however far the title wraps. */
.work {
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease), filter .55s var(--ease);
}
/* Lifts and tips a little, like a stamp being peeled off the sheet. The
   shadow is a filter rather than a box-shadow so it follows the
   perforated edge instead of boxing it in. */
.work:hover,
.work:focus-visible {
  transform: translateY(-6px) rotate(-.7deg);
  filter: drop-shadow(0 10px 14px rgba(52, 50, 44, .14));
}
.work:focus-visible { outline: none; }

/* ---------- the stamp ----------
   Paper, perforated edge and type are all CSS. The only image is the
   artwork in the panel at the top, so the text stays live and sharp. */
.stamp {
  --perf:  5.5px;                 /* radius of each notch            */
  --pitch: 14px;                  /* distance from notch to notch    */
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 15px;
  background: var(--stamp);
  color: var(--water);

  -webkit-mask:
    radial-gradient(circle var(--perf) at 50% 0,    #0000 96%, #000) 50% 0    / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--perf) at 50% 100%, #0000 96%, #000) 50% 100% / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--perf) at 0 50%,    #0000 96%, #000) 0 50%    / 100% var(--pitch) repeat-y,
    radial-gradient(circle var(--perf) at 100% 50%, #0000 96%, #000) 100% 50% / 100% var(--pitch) repeat-y;
  mask:
    radial-gradient(circle var(--perf) at 50% 0,    #0000 96%, #000) 50% 0    / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--perf) at 50% 100%, #0000 96%, #000) 50% 100% / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--perf) at 0 50%,    #0000 96%, #000) 0 50%    / 100% var(--pitch) repeat-y,
    radial-gradient(circle var(--perf) at 100% 50%, #0000 96%, #000) 100% 50% / 100% var(--pitch) repeat-y;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* A postmark settles over the corner as you hover — the stamp getting
   cancelled. Masked along with the rest of the stamp, so it never
   spills past the perforations. */
.stamp::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 31%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: radial-gradient(circle, #0000 0 57%, currentColor 57% 62%, #0000 62%);
  opacity: 0;
  transform: rotate(-17deg) scale(.84);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.work:hover .stamp::after,
.work:focus-visible .stamp::after {
  opacity: .2;
  transform: rotate(-9deg) scale(1);
}

.stamp-art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--water) 14%, transparent);
}
.stamp-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* a touch of sepia so the resting state reads as old print rather
     than a drained photograph */
  filter: grayscale(1) sepia(.16);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.work:hover .stamp-art img,
.work:focus-visible .stamp-art img {
  filter: none;
  transform: scale(1.04);
}

/* Type set like the foot of a stamp: name, the small line under it,
   the job in brackets, and the value out to the right. */
.stamp-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 9px 1px 0;
}

.stamp-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.16;
  letter-spacing: -.008em;
  margin: 0;
}

.stamp-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 7px;
}
.stamp-lines { min-width: 0; }

.stamp-sub {
  margin: 0;
  font-size: 10px;
  line-height: 1.42;
  color: color-mix(in srgb, var(--water) 62%, transparent);
}

.stamp-role {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
  /* long roles wrap rather than truncate — a clipped bracket reads as a bug */
  overflow-wrap: anywhere;
  border-top: 1px solid color-mix(in srgb, var(--water) 20%, transparent);
  padding-top: 3px;
}

.stamp-value {
  flex: none;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 500;
  /* let the serif's own old-style figures through — they read like
     engraving on a real stamp */
  font-variant-numeric: tabular-nums;
}

/* empty-state tile — same stamp, nothing printed on it yet */
.work--soon .stamp { color: var(--ink-faint); }
.work--soon .stamp-art {
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(155,150,138,.07) 9px 18px),
    var(--paper-deep);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.work--soon .stamp-title { color: var(--ink-faint); }
.work--soon { cursor: default; }
.work--soon:hover { transform: none; filter: none; }
.work--soon .stamp::after { content: none; }   /* nothing to cancel yet */

/* ============================================================
   About / Contact / Footer
   ============================================================ */
.about {
  padding-block: 96px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.22;
  margin: 12px 0 20px;
  letter-spacing: -.015em;
}
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.about-art { border-radius: 16px; overflow: hidden; background: var(--paper-deep); }
.about-art img { width: 100%; height: auto; }

.contact {
  padding-block: 104px 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
  scroll-margin-top: 96px;
}
.contact h2 {
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 16px 0 26px;
}
.contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
}
.mailto {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 5px;
  transition: border-color .4s var(--ease), letter-spacing .4s var(--ease);
}
.mailto:hover { border-color: var(--ink); letter-spacing: .24em; }

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px var(--gutter) 34px;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}

/* ============================================================
   Case study page
   ============================================================ */
.page-case { padding-top: 92px; }
.page-case .cs-body .wrap,
.cs .wrap { max-width: var(--page); }

.cs-head { padding-block: 40px 34px; max-width: 780px; }

.cs-back {
  display: inline-block;
  font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 30px;
  transition: color .3s var(--ease);
}
.cs-back:hover { color: var(--ink); }
.cs-back span { display: inline-block; transition: transform .3s var(--ease); }
.cs-back:hover span { transform: translateX(-4px); }

.cs-title {
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.022em;
  margin-bottom: 22px;
}
/* Standfirst under the title. Upright serif rather than italic — a
   whole paragraph of calligraphic italic is hard going, and 40ch was
   too narrow a column to sit under a full-width headline. */
.cs-summary {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 56ch;
  text-wrap: pretty;
}

.cs-meta {
  display: flex; flex-wrap: wrap; gap: 12px 44px;
  margin: 0 0 22px; padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-meta dt {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 4px;
}
.cs-meta dd { margin: 0; font-size: 14px; }

/* wide image under the header */
.cs-hero {
  width: calc(100% - clamp(28px, 7vw, 104px));
  max-width: 1400px;
  margin: 10px auto 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-deep);
}
.cs-hero img { width: 100%; height: auto; }

/* ---------- the story ---------- */
.cs-body {
  max-width: 720px;
  padding-top: 62px;
  padding-bottom: 30px;
  font-size: 16px;
  line-height: 1.75;
}
.cs-body > *:first-child { margin-top: 0; }
.cs-body p { margin: 0 0 22px; color: var(--ink-soft); }
.cs-body a { border-bottom: 1px solid var(--rule); color: var(--ink); }
.cs-body a:hover { border-color: var(--ink); }
.cs-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--paper-deep);
  padding: 2px 6px; border-radius: 5px;
}

.cs-h {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  letter-spacing: -.012em;
  margin: 52px 0 16px;
}

.cs-list { margin: 0 0 24px; padding-left: 0; list-style: none; }
.cs-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.cs-list li::before {
  content: "";
  position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
}

.cs-quote {
  margin: 42px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--sage);
}
.cs-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 12px;
}
.cs-quote cite {
  font-style: normal;
  font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-faint);
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 26px 30px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-stat b {
  display: block;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--sage);
  margin-bottom: 7px;
}
.cs-stat span {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.45;
  display: block;
}

.cs-fig { margin: 40px 0; }
.cs-fig img {
  width: 100%; height: auto;
  border-radius: 14px;
  background: var(--paper-deep);
}
.cs-fig figcaption {
  margin-top: 11px;
  font-size: 12px;
  color: var(--ink-faint);
}
/* full-bleed figures break out of the text column */
.cs-fig--wide {
  width: min(1400px, calc(100vw - clamp(28px, 7vw, 104px)));
  margin-left: 50%;
  transform: translateX(-50%);
}
.cs-fig--wide img { border-radius: 20px; }

.cs-more {
  padding-block: 70px 20px;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}
.cs-more .eyebrow { margin-bottom: 26px; }

.cs-missing { padding-block: 120px 140px; text-align: center; }
.cs-missing h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 14px 0 12px;
  letter-spacing: -.015em;
}
.cs-missing p { color: var(--ink-soft); margin: 0 0 28px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .site-head { grid-template-columns: 1fr auto; row-gap: 14px; }
  .site-nav { grid-column: 1 / -1; order: 3; gap: 18px; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .hero { padding-top: 150px; }
  .district-head { grid-template-columns: 1fr; gap: 16px; }
  .district { padding: 68px 0; }
  /* labels get crowded on a small map — pips stay, cards only on tap */
  .label-card i { display: none; }
  .works { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  /* smaller card, so tighten the perforation pitch to match */
  .stamp { --perf: 5px; --pitch: 12px; padding: 11px 11px 12px; }
  .stamp-title { font-size: 13px; }
  .stamp-value { font-size: 15px; }
}

@media (max-width: 460px) {
  .works { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
