/* =====================================================================
   JD Build design system, v5 (proposal, October 2026)

   One pen, one palette, one order of motion:
   - Every line (icon strokes, rules, frames, underlines) is drawn with the
     same pen weight, so the whole site reads as one hand.
   - Motion follows the build: lines draw first, frames close, content
     settles into place. Nothing moves that isn't explaining something.
   - Squared geometry from v3 stays. Type gets heavier and larger.

   This file is the source the site stylesheet will be cut from. The review
   page (design-system/index.html) uses it directly.
   ===================================================================== */

@font-face { font-family: 'Domine'; font-weight: 400 700; font-display: swap; src: url('/fonts/domine-var.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400 700; font-display: swap; src: url('/fonts/source-serif-4-var.woff2') format('woff2'); }

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Heritage palette, unchanged hues */
  --forest: #2D5A27;
  --forest-deep: #214219;
  --walnut: #43302B;
  --walnut-deep: #2E221E;
  --terracotta: #B06D50;
  --terracotta-ink: #94583E;     /* terracotta text on cream, AA */
  --terracotta-light: #D69478;   /* accents on dark */
  --terracotta-pale: #EFC3AE;    /* small text on forest/walnut, AA */
  --paper: #FBF9F4;
  --paper-2: #F4EFE6;
  --paper-3: #EAE2D5;

  /* Roles: use these, not the hues, in components */
  --bg: var(--paper);
  --ink: #2B2420;                /* headings */
  --text: #3A3530;               /* body */
  --muted: #6B6259;
  --line: rgba(67, 48, 43, 0.16);
  --line-strong: rgba(67, 48, 43, 0.34);
  --accent: var(--terracotta);
  --accent-ink: var(--terracotta-ink);
  --brand: var(--forest);

  /* Type */
  --font-display: 'Domine', Georgia, serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.75rem, 1.35rem + 5.4vw, 5.75rem);
  --fs-1: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --fs-2: clamp(1.75rem, 1.2rem + 2.1vw, 2.875rem);
  --fs-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Space: 4px base, fluid section rhythm */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --container: 1240px;
  --measure: 66ch;

  /* Line: the one pen */
  --pen: 1.75;                   /* unitless px, read by .ico */
  --hair: 1px;
  --rule: 2px;
  --frame-offset: 12px;

  /* Geometry */
  --r-1: 2px; --r-2: 3px; --r-3: 4px;
  --header-h: 76px;

  /* Motion: unhurried on purpose. Premium reads as care, so arrivals and
     draws take their time; only direct feedback (press, hover) is quick. */
  --dur-1: 120ms;   /* press, color */
  --dur-2: 240ms;   /* hover, small state */
  --dur-3: 560ms;   /* reveals, accordions */
  --dur-4: 900ms;   /* line draws */
  --dur-5: 1400ms;  /* hero and frame choreography */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);   /* overshoot-free settle */
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);    /* a pen stroke: ease in, ease out */
  --stagger: 90ms;
  --rise: 14px;

  /* Paper grain: felt, not seen. Walnut flecks on paper, cream flecks on dark bands. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .26 0 0 0 0 .19 0 0 0 0 .17 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .98 0 0 0 0 .97 0 0 0 0 .95 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--grain), var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.7 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--forest); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---------------------------------------------------------------------
   3. Type
   --------------------------------------------------------------------- */
.t-hero { font: 700 var(--fs-hero)/1.02 var(--font-display); letter-spacing: -0.028em; }
.t-1, h1 { font: 700 var(--fs-1)/1.06 var(--font-display); letter-spacing: -0.022em; }
.t-2, h2 { font: 700 var(--fs-2)/1.12 var(--font-display); letter-spacing: -0.015em; }
.t-3, h3 { font: 600 var(--fs-3)/1.25 var(--font-serif); letter-spacing: -0.005em; }
.t-lead { font: 500 var(--fs-lead)/1.5 var(--font-serif); color: var(--text); max-width: var(--measure); }
.t-body { max-width: var(--measure); }
.t-sm { font-size: var(--fs-sm); }
.t-label {
  font: 600 var(--fs-label)/1.2 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.t-num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.t-muted { color: var(--muted); }
.accent { color: var(--accent-ink); }

/* ---------------------------------------------------------------------
   4. Layout and bands
   --------------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.band-2 { background: var(--grain), var(--paper-2); }
.band-forest, .band-walnut {
  --ink: var(--paper);
  --text: rgba(251, 249, 244, 0.86);
  --muted: rgba(251, 249, 244, 0.64);
  --line: rgba(251, 249, 244, 0.18);
  --line-strong: rgba(251, 249, 244, 0.4);
  --accent-ink: var(--terracotta-pale);
  --brand: var(--paper);
  color: var(--text);
}
.band-forest { background: var(--grain-light), var(--forest); }
.band-walnut { background: var(--grain-light), var(--walnut); }
.stack > * + * { margin-top: var(--flow, var(--s-5)); }
.grid { display: grid; gap: var(--s-6); }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
}

/* ---------------------------------------------------------------------
   5. The line: rules, dimension lines, section index
   --------------------------------------------------------------------- */
.rule { height: 0; border: 0; border-top: var(--hair) solid var(--line); margin: 0; }

/* A dimension line: a measured span with end ticks, like a drawing callout.
   Draws left to right when its parent is revealed. */
.dim {
  --w: 56px;
  position: relative;
  display: inline-block;
  width: var(--w);
  height: 9px;
  flex: none;
}
.dim::before, .dim::after { content: ''; position: absolute; background: var(--accent); }
.dim::before { left: 0; right: 0; top: 4px; height: var(--rule); transform-origin: left; }
.dim::after { right: 0; top: 0; width: var(--rule); height: 9px; box-shadow: calc(-1 * var(--w) + var(--rule)) 0 0 var(--accent); }

.sec-index {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.sec-head { max-width: 56rem; margin-bottom: var(--s-8); }
.sec-head h2 + .t-lead { margin-top: var(--s-5); }

/* ---------------------------------------------------------------------
   6. Icons: one pen at every size
   --------------------------------------------------------------------- */
.ico {
  flex: none;
  color: var(--brand);
  stroke-width: calc(var(--pen) * var(--vb) / var(--size));
  overflow: visible;
}
.ico .acc { stroke: var(--accent); }
.ico-feature { --pen: 2; }

/* ---------------------------------------------------------------------
   7. Links and buttons
   --------------------------------------------------------------------- */
.link {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--hair) no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% var(--hair) no-repeat;
  transition: background-size var(--dur-3) var(--ease-settle);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% var(--hair), 100% var(--hair); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: 600 var(--fs-sm)/1.2 var(--font-ui);
  color: var(--ink);
  text-decoration: none;
}
.link-arrow .ico { transition: transform var(--dur-2) var(--ease-settle); }
.link-arrow:hover .ico, .link-arrow:focus-visible .ico { transform: translateX(5px); }

.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--paper);
  --btn-line: var(--forest);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 54px;
  padding: 0 1.75rem;
  border: 1.5px solid var(--btn-line);
  border-radius: var(--r-1);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 var(--fs-sm)/1 var(--font-ui);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
/* Hover: a deeper fill rises from the base, like a coat going on. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, var(--forest-deep));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-3) var(--ease-settle);
}
/* A terracotta measure line runs along the bottom edge. */
.btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-settle) 60ms;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ico { color: currentColor; transition: transform var(--dur-2) var(--ease-settle); }
.btn:hover .ico { transform: translateX(4px); }
.btn .ico .acc { stroke: currentColor; }

.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); --btn-hover: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { --btn-fg: var(--bg); border-color: var(--ink); }
.band-forest .btn--line:hover, .band-walnut .btn--line:hover { --btn-fg: var(--walnut); --btn-hover: var(--paper); }
.band-forest .btn:not(.btn--line) { --btn-bg: var(--paper); --btn-fg: var(--forest); --btn-line: var(--paper); --btn-hover: var(--paper-2); }

/* Phone pill in the header */
.btn--pill {
  min-height: 42px;
  padding: 0 var(--s-4) 0 var(--s-3);
  border-radius: 999px;
  letter-spacing: 0.02em;
  --btn-bg: transparent; --btn-fg: var(--forest); --btn-line: rgba(45, 90, 39, 0.4); --btn-hover: var(--forest);
}
.btn--pill:hover { --btn-fg: var(--paper); }
.btn--pill:hover .ico { transform: rotate(-12deg); }
.btn--pill::after { display: none; }

/* ---------------------------------------------------------------------
   8. Site header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: var(--hair) solid transparent;
  transition: transform var(--dur-3) var(--ease-settle), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-solid { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(46, 34, 30, 0.45); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; transition: transform var(--dur-3) var(--ease-settle); }
.site-header.is-solid .brand img { transform: scale(0.92); }

.nav { position: relative; display: none; gap: var(--s-1); margin-left: auto; }
@media (min-width: 980px) { .nav { display: flex; } }
.nav a {
  position: relative;
  padding: var(--s-3) var(--s-3);
  font: 500 var(--fs-sm)/1 var(--font-ui);
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
/* One indicator slides between items instead of each link owning an underline. */
.nav-ind {
  position: absolute;
  left: 0; bottom: 2px;
  height: var(--rule);
  width: 1px;
  background: var(--accent);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-settle), opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.header-cta { margin-left: var(--s-4); }
@media (max-width: 979px) { .header-cta { margin-left: auto; } }
@media (max-width: 520px) { .header-cta .phone-text { display: none; } .header-cta { padding: 0 var(--s-3); } }

/* Menu button: three lines that fold into a close mark. */
.menu-btn {
  position: relative;
  width: 44px; height: 44px;
  margin-left: var(--s-2);
  border: 0; background: none; cursor: pointer;
}
@media (min-width: 980px) { .menu-btn { display: none; } }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: var(--rule); background: var(--ink); transition: transform var(--dur-3) var(--ease-settle), opacity var(--dur-2) var(--ease-out); }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

.menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  padding: var(--s-6) var(--gutter);
  background: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-3) var(--ease-settle);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu a {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: var(--hair) solid var(--line);
  font: 700 1.5rem/1.2 var(--font-display);
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-settle);
  transition-delay: calc(var(--d, 0) * 45ms + 80ms);
}
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   9. In-page section bar: sticky contents with progress
   --------------------------------------------------------------------- */
.secbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--hair) solid var(--line);
  transition: top var(--dur-3) var(--ease-settle);
}
.secbar.is-top { top: 0; }
.secbar ol {
  position: relative;
  display: flex;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.secbar ol::-webkit-scrollbar { display: none; }
.secbar a {
  display: block;
  padding: var(--s-4) var(--s-3);
  font: 500 var(--fs-xs)/1 var(--font-ui);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease-out);
}
.secbar a:hover, .secbar a[aria-current] { color: var(--ink); }
.secbar .nav-ind { bottom: -1px; }
.secbar-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: var(--hair);
  background: var(--forest);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ---------------------------------------------------------------------
   10. Offset frame: the logo's nested line, around photography
   --------------------------------------------------------------------- */
.frame { margin: 0; }
.frame-box { position: relative; margin: 0 var(--frame-offset) var(--frame-offset) 0; }
.frame-photo { position: relative; z-index: 1; overflow: hidden; background: var(--paper-3); }
.frame-photo img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; transition: transform 900ms var(--ease-settle); }
.frame:hover .frame-photo img { transform: scale(1.035); }
/* The offset keyline, an SVG rect so it can trace itself around the photo. */
.frame-line {
  position: absolute;
  left: var(--frame-offset);
  top: var(--frame-offset);
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.frame-line rect { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.frame figcaption {
  margin-top: var(--s-4);
  font: 500 var(--fs-xs)/1.4 var(--font-ui);
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   11. Panels (service links, feature blocks)
   --------------------------------------------------------------------- */
.panel {
  --tick: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-1);
  color: inherit;
  text-decoration: none;
  transition: --tick var(--dur-3) var(--ease-settle), border-color var(--dur-2) var(--ease-out), background-color var(--dur-3) var(--ease-out);
}
/* Crop-mark corners grow out of each corner on hover: the frame being squared up. */
.panel::before, .panel::after {
  content: '';
  position: absolute;
  inset: -5px;
  pointer-events: none;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--tick) var(--rule) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--rule) var(--tick) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--tick) var(--rule) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--rule) var(--tick) no-repeat;
}
.panel::after {
  background:
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--tick) var(--rule) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--rule) var(--tick) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--tick) var(--rule) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--rule) var(--tick) no-repeat;
}
@property --tick { syntax: '<length>'; inherits: true; initial-value: 0px; }
a.panel:hover, a.panel:focus-visible { --tick: 16px; border-color: var(--line-strong); background-color: rgba(255, 255, 255, 0.5); }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.panel p { color: var(--muted); font-size: var(--fs-sm); }
.panel .link-arrow { margin-top: auto; }
a.panel:hover .link-arrow .ico { transform: translateX(5px); }
a.panel:hover .ico-feature .acc { animation: redraw var(--dur-4) var(--ease-draw); }

/* ---------------------------------------------------------------------
   12. Provenance line: quiet proof instead of a stat band
   Where the work comes from, said once, in small caps. No counters.
   --------------------------------------------------------------------- */
.provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 var(--fs-label)/1.5 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.provenance li { display: inline-flex; align-items: center; gap: var(--s-4); }
.provenance li + li::before { content: ''; width: 18px; height: var(--hair); background: var(--accent); }

/* ---------------------------------------------------------------------
   12b. Photo card: the work leads, the icon is a maker's mark
   Hover: the photo eases forward and its keyline tightens in, as if the
   frame were being squared up against it.
   --------------------------------------------------------------------- */
.card { display: grid; gap: var(--s-4); align-content: start; color: inherit; text-decoration: none; }
.card .frame-line { transition: transform var(--dur-3) var(--ease-settle); }
.card:hover .frame-line, .card:focus-visible .frame-line { transform: translate(calc(var(--frame-offset) * -0.5), calc(var(--frame-offset) * -0.5)); }
.card:hover .frame-photo img, .card:focus-visible .frame-photo img { transform: scale(1.035); }
.card-mark { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.card-mark .ico { --pen: 1.5; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.card p { color: var(--muted); font-size: var(--fs-sm); max-width: 42ch; }
.card .link-arrow { margin-top: var(--s-1); }
.card:hover .link-arrow .ico { transform: translateX(5px); }
.card:hover .card-mark .acc { animation: redraw var(--dur-4) var(--ease-draw); }

/* ---------------------------------------------------------------------
   12c. Annotated detail: the craft, called out like a drawing
   Points sit on the photo; leader lines run out to notes beside it. On
   phones the notes drop under the photo as a numbered list.
   --------------------------------------------------------------------- */
.annot { --note-w: 17rem; --gap: 2.5rem; margin: 0; counter-reset: pin; }
.annot-photo { position: relative; }
.annot-photo img { width: 100%; aspect-ratio: var(--ratio, 3 / 4); object-fit: cover; }
.annot-pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.annot-pins li { position: absolute; left: var(--x); top: var(--y); right: 0; height: 0; counter-increment: pin; }
.annot-pins i {
  position: absolute;
  left: -13px; top: -13px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--paper);
  border: var(--rule) solid var(--accent);
  border-radius: var(--r-1);
  font: 600 0.6875rem/1 var(--font-ui);
  font-style: normal;
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -6px rgba(46, 34, 30, 0.55);
}
.annot-pins i::before { content: counter(pin, decimal-leading-zero); }
.annot-pins b {
  position: absolute;
  left: 13px; right: 0; top: -0.75px;
  height: 1.5px;
  background: var(--paper);
  box-shadow: 0 0 0 0.5px rgba(46, 34, 30, 0.35);
  transform-origin: left;
}
.annot-notes { margin: var(--s-6) 0 0; padding: 0; list-style: none; counter-reset: note; display: grid; gap: var(--s-5); }
.annot-notes li { counter-increment: note; display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s-4); }
.annot-notes li::before { content: counter(note, decimal-leading-zero); grid-row: span 2; font: 600 var(--fs-xs)/1.9 var(--font-ui); color: var(--accent-ink); letter-spacing: 0.06em; }
.annot-notes strong { font: 600 var(--fs-3)/1.3 var(--font-serif); color: var(--ink); }
.annot-notes span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 899px) { .annot-pins b { display: none; } }
@media (min-width: 900px) {
  /* Photo column capped so a portrait shot and its notes fit one screen. */
  .annot { display: grid; grid-template-columns: minmax(0, min(36rem, 75vh * 0.75)) minmax(var(--note-w), 26rem); gap: var(--gap); }
  .annot-pins li { right: calc(-1 * var(--gap) + 8px); }
  .annot-pins b { background: var(--accent); box-shadow: 0 0 0 1px rgba(251, 249, 244, 0.55); }
  .annot-notes { position: relative; margin: 0; display: block; }
  .annot-notes li { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-0.9em); }
}

/* ---------------------------------------------------------------------
   13. Process: a rail that fills as you read down it
   --------------------------------------------------------------------- */
.process { position: relative; margin: 0; padding: 0 0 0 var(--s-7); list-style: none; counter-reset: step; }
.process::before, .process-fill {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: var(--rule);
  background: var(--line);
}
.process-fill { background: var(--forest); transform: scaleY(var(--p, 0)); transform-origin: top; }
.process li { position: relative; counter-increment: step; padding-bottom: var(--s-7); }
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-7));
  top: 4px;
  width: 16px; height: 16px;
  background: var(--bg);
  border: var(--rule) solid var(--line-strong);
  border-radius: var(--r-1);
  transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-settle);
}
.process li.is-done::before { background: var(--forest); border-color: var(--forest); transform: rotate(45deg) scale(0.86); }
.process .step-n { font: 600 var(--fs-xs)/1 var(--font-ui); color: var(--accent-ink); letter-spacing: 0.1em; }
.process h3 { margin-top: var(--s-2); font-family: var(--font-display); font-weight: 700; }
.process p { margin-top: var(--s-2); color: var(--muted); max-width: 52ch; }

/* ---------------------------------------------------------------------
   14. FAQ accordion
   --------------------------------------------------------------------- */
.faq { border-top: var(--hair) solid var(--line); }
.faq details { border-bottom: var(--hair) solid var(--line); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font: 600 var(--fs-3)/1.35 var(--font-serif);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: var(--hair);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-settle);
}
.faq summary:hover::after, .faq details[open]:not([data-state="closing"]) summary::after { transform: scaleX(1); }
.faq-sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: var(--rule);
  margin: -1px 0 0 -8px;
  background: var(--forest);
  transition: transform var(--dur-3) var(--ease-settle), opacity var(--dur-2) var(--ease-out);
}
.faq-sign::after { transform: rotate(90deg); }
.faq details[open]:not([data-state="closing"]) .faq-sign::after { transform: rotate(180deg); opacity: 0; }
.faq details[open]:not([data-state="closing"]) .faq-sign::before { transform: rotate(180deg); background: var(--accent); }
.faq-body { overflow: hidden; }
.faq-body > div { padding: 0 0 var(--s-6); max-width: var(--measure); color: var(--text); }

/* ---------------------------------------------------------------------
   15. Quote
   --------------------------------------------------------------------- */
.quote { position: relative; max-width: 48rem; }
.quote blockquote { margin: 0; font: 500 clamp(1.375rem, 1.1rem + 1.2vw, 2rem)/1.42 var(--font-serif); color: var(--ink); }
.quote-mark { display: block; height: 0.5em; font: 700 6rem/1 var(--font-display); color: var(--accent); margin-bottom: var(--s-5); }
.quote cite { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); font: 600 var(--fs-xs)/1.4 var(--font-ui); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars .ico { color: var(--accent); fill: var(--accent); }

/* ---------------------------------------------------------------------
   16. Form fields
   --------------------------------------------------------------------- */
.field { display: grid; gap: var(--s-2); }
.field label { font: 600 var(--fs-xs)/1.2 var(--font-ui); letter-spacing: 0.06em; color: var(--ink); }
.field-box { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  border: var(--hair) solid var(--line-strong);
  border-radius: var(--r-1);
  background: #fff;
  color: var(--ink);
  font: 400 var(--fs-body)/1.4 var(--font-ui);
  transition: border-color var(--dur-2) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-box::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--rule);
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur-3) var(--ease-settle);
}
.field-box:focus-within::after { transform: scaleX(1); }
.field-ok { position: absolute; right: var(--s-4); top: 50%; translate: 0 -50%; opacity: 0; }
.field-ok .ico { color: var(--forest); }
.field input:valid:not(:placeholder-shown) ~ .field-ok { opacity: 1; }
.field input:valid:not(:placeholder-shown) ~ .field-ok path { animation: draw var(--dur-3) var(--ease-draw) both; }

/* ---------------------------------------------------------------------
   16b. Page furniture: services menu, breadcrumbs, hero, lists, strips,
   towns, closing band, footer
   --------------------------------------------------------------------- */

/* Services menu: opens on hover or focus; each service gets its mark. */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop > a .ico { transition: transform var(--dur-2) var(--ease-settle); }
.nav-drop:hover > a .ico, .nav-drop:focus-within > a .ico { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 320px;
  padding: var(--s-3);
  background: var(--paper);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-2);
  box-shadow: 0 24px 48px -24px rgba(46, 34, 30, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-settle), visibility 0s linear var(--dur-2);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-1);
  font: 500 var(--fs-sm)/1.3 var(--font-ui);
  color: var(--ink);
  transition: background-color var(--dur-2) var(--ease-out);
}
.nav .nav-drop-menu a:hover, .nav .nav-drop-menu a:focus-visible { background: var(--paper-2); }
.nav-drop-menu a small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.nav-drop:hover .nav-drop-menu .ico path, .nav-drop:focus-within .nav-drop-menu .ico path { animation: draw var(--dur-4) var(--ease-draw) both; animation-delay: calc(var(--d, 0) * 50ms + var(--i) * 60ms); }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* Editorial hero: title and proof on the left, the work on the right. */
.hero-split { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section-y); }
.hero-split .wrap { display: grid; gap: var(--s-8); align-items: end; }
@media (min-width: 960px) { .hero-split .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-9); align-items: center; } }
.hero-split h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.028em; margin-top: var(--s-4); }
.hero-split .t-lead { margin-top: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); }
.hero-split .provenance { margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hair) solid var(--line); }

/* What's included: a ruled two-column list with check marks. */
.checklist { margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
@media (min-width: 640px) { .checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.checklist li { display: flex; gap: var(--s-3); align-items: baseline; padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--line); font-size: var(--fs-sm); color: var(--ink); }
.checklist .ico { translate: 0 3px; color: var(--accent); }

/* Photo strip: a row of framed work that scrolls sideways on phones. */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72%);
  gap: var(--s-6);
  margin: 0;
  padding: 0 0 var(--s-5);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
@media (min-width: 900px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-bottom: 0; } }
.strip > li { scroll-snap-align: start; }
.strip .frame { --frame-offset: 8px; }

/* Towns: a ruled list of links with arrows, not pills. */
.towns { margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
@media (min-width: 640px) { .towns { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.towns a { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.towns a .ico { opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-settle); }
.towns a:hover .ico, .towns a:focus-visible .ico { opacity: 1; transform: none; }
.towns a:hover { color: var(--accent-ink); }

/* Closing band. */
.cta-band { text-align: left; }
.cta-band .wrap { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.cta-band h2 { font-size: var(--fs-1); }
.cta-band p { margin-top: var(--s-4); max-width: 46ch; }
.cta-band .hero-actions { margin-top: 0; justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .hero-actions { justify-content: flex-end; } }
/* One quiet line of related services under the call to action. */
.cta-related {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: var(--hair) solid var(--line);
}
.cta-related ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; padding: 0; list-style: none; }
.cta-related a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: 3px;
  color: var(--paper);
  text-decoration: none;
  font: 500 var(--fs-sm)/1.2 var(--font-ui);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--hair) no-repeat;
  transition: background-size var(--dur-3) var(--ease-settle);
}
.cta-related a:hover, .cta-related a:focus-visible { background-size: 100% var(--hair); }
.cta-related a:hover .acc { animation: redraw var(--dur-4) var(--ease-draw); }

/* Case study: project facts, a ruled row instead of tag pills. */
.facts { display: grid; gap: 0 var(--s-6); margin: var(--s-7) 0 0; border-top: var(--hair) solid var(--line); }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts-scope { grid-column: 1 / -1; } }
.facts > div { padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--line); }
.facts dt { font: 600 var(--fs-label)/1.2 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.facts dd { margin: 0; font: 500 var(--fs-body)/1.5 var(--font-serif); color: var(--ink); }
/* Scope items each carry their own marker, so a wrapped line never starts or ends on a stray separator. */
.facts-scope dd { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.facts-scope dd span { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.facts-scope dd span::before { content: ''; width: 5px; height: 5px; background: var(--accent); }
/* Case study titles are sentences, so they run a step smaller than service heroes. */
.hero-split--case h1 { font-size: var(--fs-1); line-height: 1.08; }

/* Case study: the story as one long-form column, photos beside their part. */
.story .wrap { max-width: 1100px; }
.story-row { display: grid; gap: var(--s-4) var(--s-7); padding-block: var(--s-8); border-top: var(--hair) solid var(--line); }
.story-row:first-child { border-top: 0; padding-top: 0; }
.story-row .sec-index { margin: 0; }
.story-text h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); }
.story-text p { margin-top: var(--s-4); font: 400 var(--fs-lead)/1.6 var(--font-serif); color: var(--text); max-width: 60ch; }
.story-row .frame { max-width: 30rem; }
@media (min-width: 900px) {
  .story-row { grid-template-columns: 12rem minmax(0, 1fr); align-items: start; }
  .story-row .sec-index { padding-top: 0.6em; }
  .story-row.has-photo { grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 0.8fr); }
}

/* Case study: next project, a large photo link. */
.next-case { gap: var(--s-6); }
@media (min-width: 900px) { .next-case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--s-8); } }
.next-case h2 { font-size: var(--fs-2); margin-top: var(--s-3); }
.next-case p { margin-top: var(--s-3); font-size: var(--fs-body); }
.next-case .link-arrow { margin-top: var(--s-5); }

/* In-page transitions (gallery filter, lightbox) move only what changed. */
html.vt-local::view-transition-old(root), html.vt-local::view-transition-new(root) { animation: none; }
html:has(dialog[open]) { overflow: hidden; }

/* Shared-photo page transition: a case study's hero photo is the target
   when you arrive from a card that carries the same photo. */
.vt-hero .frame-photo img { view-transition-name: hero-photo; }
.vt-leaving .vt-hero .frame-photo img { view-transition-name: none; }
::view-transition-old(hero-photo), ::view-transition-new(hero-photo) { width: 100%; height: 100%; object-fit: cover; }

/* Service page sections */
.overview-copy p + p { margin-top: var(--s-4); }
.overview-copy h2 + p { margin-top: var(--s-5); }
.overview-copy .sec-index + h2 { margin-top: 0; }
.overview-copy .checklist { margin-top: var(--s-7); }
.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin: var(--s-7) 0 var(--s-9); padding: var(--s-5) 0; border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
.work-foot .t-label { display: block; margin-bottom: var(--s-1); }
.work-foot strong { font: 600 var(--fs-3)/1.3 var(--font-serif); color: var(--ink); }
.band-walnut .link-arrow, .band-forest .link-arrow { color: var(--paper); }
.cost-line { margin-top: var(--s-6); padding-left: var(--s-5); border-left: var(--rule) solid var(--accent); font: 600 var(--fs-3)/1.4 var(--font-serif); color: var(--ink); max-width: 34ch; }
.timeline { padding: var(--s-6); border: var(--hair) solid var(--line); border-radius: var(--r-1); background: rgba(255, 255, 255, 0.45); }
.timeline p + p { margin-top: var(--s-3); }
.timeline .btn { margin-top: var(--s-6); }
.explore h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--s-5); }
.towns.related { display: block; }
.related a { justify-content: flex-start; gap: var(--s-4); padding-block: var(--s-5); }
.related a span { display: grid; flex: 1; }
.related a small { color: var(--muted); font-size: var(--fs-xs); }
.related a > .ico:last-child { margin-left: auto; }
.related a > .ico:first-child { opacity: 1; transform: none; }

/* Type-led hero: for pages without a photo strong enough to open on. */
.hero-split--type { padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.hero-split--type .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-split--type .wrap > div { max-width: 52rem; }
.hero-split--type .crumbs a, .hero-split--type .crumbs { color: var(--muted); }

/* Strip column count follows how many photos a page has. */
@media (min-width: 900px) { .strip { grid-template-columns: repeat(var(--cols, 4), 1fr); } }

/* Callouts on a landscape photo: wider photo column. */
@media (min-width: 900px) {
  .annot--wide { grid-template-columns: minmax(0, min(46rem, 100% - var(--note-w) - var(--gap))) minmax(var(--note-w), 1fr); }
}
.annot-more { margin-top: var(--s-7); }
.annot + .strip { margin-top: var(--s-9); }

/* Call button for phones: appears once the header has stepped aside. */
.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 44;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-2);
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 16px 32px -14px rgba(46, 34, 30, 0.7);
  transform: translateY(160%);
  transition: transform var(--dur-3) var(--ease-settle);
}
.call-fab .ico { color: currentColor; }
.call-fab.is-shown { transform: none; }
@media (min-width: 980px) { .call-fab { display: none; } }
.menu .menu-call { margin-top: var(--s-6); width: 100%; border-bottom: 0; color: var(--paper); font: 500 var(--fs-sm)/1 var(--font-ui); }

/* Footer */
.site-footer { padding-block: var(--s-9) var(--s-6); font-size: var(--fs-sm); }
.site-footer .social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.site-footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border: var(--hair) solid var(--line); border-radius: var(--r-1); transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.site-footer .social a:hover { border-color: var(--line-strong); background: rgba(251, 249, 244, 0.06); }
.site-footer .social .ico { color: var(--paper); }
.site-footer .foot-cities { margin-top: var(--s-8); padding-top: var(--s-6); border-top: var(--hair) solid var(--line); }
.site-footer .foot-cities ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer .foot-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .site-footer .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img { height: 64px; width: auto; }
.site-footer .foot-title { font: 600 var(--fs-label)/1.2 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--s-4); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; transition: color var(--dur-2) var(--ease-out); }
.site-footer a:hover { color: var(--paper); }
.site-footer .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hair) solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------------
   16c. Hub pages: home, services, about, contact, gallery, where we build
   --------------------------------------------------------------------- */
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.more { margin-top: var(--s-7); }
.cards { gap: var(--s-8) var(--s-6); }
.card-label { margin-top: var(--s-2); }
.card--text {
  align-content: center;
  padding: var(--s-7) var(--s-6);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-1);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-3) var(--ease-out);
}
.card--text:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.5); }

/* Home hero: full-bleed photo rotator. Photos crossfade slowly and settle
   from a slight zoom; a thin line under the caption measures the interval. */
.hero-full { position: relative; display: grid; min-height: min(92vh, 900px); overflow: hidden; isolation: isolate; }
.hero-full-media { position: absolute; inset: 0; z-index: -2; }
.rot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1400ms var(--ease-out); }
.rot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7000ms var(--ease-out); }
.rot.is-active { opacity: 1; }
.rot.is-active img { transform: none; }
.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(46, 34, 30, 0.86) 0%, rgba(46, 34, 30, 0.62) 42%, rgba(46, 34, 30, 0.12) 78%),
    linear-gradient(0deg, rgba(46, 34, 30, 0.72) 0%, rgba(46, 34, 30, 0) 38%);
}
.hero-full-body { align-self: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(6rem, 5rem + 4vw, 9rem); max-width: var(--container); }
.hero-full-body > * { max-width: 44rem; }
.hero-full h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.028em; margin-top: var(--s-4); }
.hero-full .t-lead { margin-top: var(--s-6); color: rgba(251, 249, 244, 0.9); }
.hero-full .hero-actions { margin-top: var(--s-7); }
.hero-full .provenance { margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hair) solid var(--line); }
.rot-bar { position: absolute; left: 0; right: 0; bottom: var(--s-6); display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); }
.rot-cap { margin: 0; font: 500 var(--fs-xs)/1.3 var(--font-ui); letter-spacing: 0.04em; }
.rot-cap a { color: var(--paper); text-decoration: none; opacity: 0.86; }
.rot-cap a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.rot-ticks { display: flex; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.rot-ticks button { display: block; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.rot-ticks span { position: relative; display: block; height: 2px; background: rgba(251, 249, 244, 0.32); overflow: hidden; }
.rot-ticks span::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.rot-ticks [aria-current] span::after { animation: tick var(--rot-ms, 6500ms) linear forwards; }
.rotator.is-paused .rot-ticks [aria-current] span::after { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }

/* Mission, set as a manifesto. */
.manifesto-text { margin-top: var(--s-5); max-width: 30ch; font: 500 clamp(1.75rem, 1.2rem + 2.2vw, 3rem)/1.25 var(--font-serif); color: var(--paper); letter-spacing: -0.01em; }
.manifesto-sign { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.manifesto-sign .link { color: var(--paper); }
.mission-quote { margin-top: var(--s-5); font: 500 clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem)/1.35 var(--font-serif); color: var(--ink); }

/* Recent work as a 3-up grid of framed photos. */
.strip--grid { overflow: visible; }
@media (max-width: 899px) { .strip--grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; } }

/* Reviews: quiet columns of serif quotes. */
.reviews { display: grid; gap: var(--s-7) var(--s-8); }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; padding-top: var(--s-5); border-top: var(--hair) solid var(--line); }
.review blockquote { margin: var(--s-4) 0 0; font: 400 var(--fs-lead)/1.55 var(--font-serif); color: var(--ink); }
.review figcaption { margin-top: var(--s-4); font: 600 var(--fs-label)/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Craftsman services: photo beside copy, alternating. */
.craft-row { display: grid; gap: var(--s-6) var(--s-9); align-items: center; padding-block: var(--s-8); border-top: var(--hair) solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.craft-row:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .craft-row { grid-template-columns: 1fr 1fr; } .craft-row.is-flipped .frame { order: 2; } }
.craft-text h3 { margin-top: var(--s-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2); }
.craft-text > p { margin-top: var(--s-4); max-width: 52ch; }
.craft-text .checklist { margin-block: var(--s-6); }
.checklist--single { grid-template-columns: 1fr !important; }
.craft-quote { margin: 0 auto var(--s-8); padding-block: var(--s-6); }

/* About */
.values { gap: var(--s-8); }
.value h3 { margin-top: var(--s-5); font-family: var(--font-display); font-weight: 700; }
.value p { margin-top: var(--s-3); color: var(--muted); }
.team { display: grid; gap: 0 var(--s-8); margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding-block: var(--s-6); border-bottom: var(--hair) solid var(--line); }
.monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: var(--hair) solid var(--line-strong);
  border-radius: var(--r-1);
  font: 700 1.25rem/1 var(--font-display);
  color: var(--forest);
  box-shadow: 6px 6px 0 -1px var(--bg), 6px 6px 0 0 var(--accent);
}
.person h3 { font-family: var(--font-display); font-weight: 700; }
.person .t-label { margin-top: var(--s-2); }
.person p:last-child { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }

/* Contact */
.contact-hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.contact-grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-9); } .form-panel { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-intro h1 { font-size: var(--fs-1); margin-top: var(--s-4); }
.contact-intro .t-lead { margin-top: var(--s-5); }
.contact-intro .provenance { margin-top: var(--s-6); }
.contact-sub { margin: var(--s-8) 0 var(--s-6); font-size: var(--fs-3); font-family: var(--font-display); }
.process--compact li { padding-bottom: var(--s-5); }
.process--compact p { margin-top: var(--s-1); color: var(--text); }
.contact-list { display: grid; gap: var(--s-5); margin: var(--s-8) 0 0; padding-top: var(--s-6); border-top: var(--hair) solid var(--line); }
@media (min-width: 640px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list > div { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s-3); align-content: start; }
.contact-list .ico { grid-row: span 2; margin-top: 2px; }
.contact-list dt { font: 600 var(--fs-label)/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: var(--s-1) 0 0; color: var(--ink); font-size: var(--fs-sm); }
.contact-list small { color: var(--muted); }
.social--inline { display: flex; gap: var(--s-2); margin-top: var(--s-6); }
.social--inline a { display: grid; place-items: center; width: 40px; height: 40px; border: var(--hair) solid var(--line-strong); border-radius: var(--r-1); transition: border-color var(--dur-2) var(--ease-out); }
.social--inline a:hover { border-color: var(--accent); }
.form-panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: #fff; border: var(--hair) solid var(--line); border-radius: var(--r-2); box-shadow: 14px 14px 0 -1px var(--bg), 14px 14px 0 0 var(--accent); }
.contact-form { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.field .req { color: var(--accent-ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field[hidden] { display: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232D5A27' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
.btn--block { width: 100%; }
.form-aside { margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--hair) solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* Trade partners: the trades list, one-tap answers, the W-9 checkbox */
.jump-form { margin-top: var(--s-6); }
@media (min-width: 980px) { .jump-form { display: none; } }
#apply { scroll-margin-top: calc(var(--header-h) + 16px); }
.trades { margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
.trades li { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--line); }
.trades strong { font: 600 var(--fs-body)/1.3 var(--font-ui); color: var(--ink); }
.trades span { font-size: var(--fs-sm); color: var(--muted); }
.trades-note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: var(--s-2); font: 600 var(--fs-xs)/1.2 var(--font-ui); letter-spacing: 0.06em; color: var(--ink); }
.choices .req, .consent .req { color: var(--accent-ink); }
.choices-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: var(--hair) solid var(--line-strong);
  border-radius: var(--r-1);
  background: #fff;
  font: 500 var(--fs-sm)/1.25 var(--font-ui);
  color: var(--ink);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.choice input:focus-visible + span { outline: var(--rule) solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-sm); line-height: 1.45; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); }
.received-note { margin-top: var(--s-5); color: var(--text); }

/* Gallery */
.hero-split--compact { padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.hero-split--compact .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-split--compact .wrap > div { max-width: 52rem; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 var(--s-4);
  border: var(--hair) solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 var(--fs-sm)/1 var(--font-ui);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.filter-n { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; opacity: 0.6; }
@media (max-width: 759px) {
  /* One row that scrolls sideways instead of three wrapped rows. */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) var(--s-3); padding: 2px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}

/* Gallery, wide screens: justified rows. Every photo keeps its own shape;
   growing each one by its aspect ratio (--ar) keeps a row to one height, and
   the spacer after the last photo stops the final row stretching. */
.gallery { --row: 210px; position: relative; display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.gallery::after { content: ''; flex: 10000 1 0; }
@media (min-width: 1100px) { .gallery { --row: 236px; } }
.gallery-item { position: relative; flex: var(--ar) 1 calc(var(--ar) * var(--row)); view-transition-name: var(--vt); }
.gallery-item[hidden] { display: none; }
.gallery-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.gallery-open:focus-visible { outline: none; }
.g-photo { display: block; overflow: hidden; aspect-ratio: var(--ar); border-radius: var(--r-1); background: var(--paper-3); }
.g-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-settle); }
.g-cap { position: absolute; inset: auto 0 0; padding: var(--s-7) var(--s-4) var(--s-3); border-radius: 0 0 var(--r-1) var(--r-1); background: linear-gradient(rgba(46, 34, 30, 0), rgba(46, 34, 30, 0.74)); color: var(--paper); font: 500 var(--fs-xs)/1.4 var(--font-ui); opacity: 0; translate: 0 6px; transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-3) var(--ease-settle); pointer-events: none; }
/* The logo's offset keyline closes around the photo you point at or focus
   (and around the album's front photo on phones). */
.gallery-open::after { content: ''; position: absolute; inset: -7px; border: 1.5px solid var(--accent); border-radius: var(--r-2); clip-path: inset(0 100% 100% 0); transition: clip-path var(--dur-4) var(--ease-draw); pointer-events: none; }
@media (hover: hover) {
  .gallery-open:hover .g-photo img { transform: scale(1.04); }
  .gallery-open:hover .g-cap { opacity: 1; translate: none; }
  .gallery-open:hover::after { clip-path: inset(0); }
}
.gallery-open:focus-visible .g-cap { opacity: 1; translate: none; }
.gallery-open:focus-visible::after, .gallery-item.is-current .gallery-open::after { clip-path: inset(0); }

/* Gallery, phones: an album. Square covers sit side by side; scroll-snap
   clicks one into place per swipe, and jd.js turns the ones either side
   toward the middle as they travel. */
.album-bar { display: none; }
@media (max-width: 759px) {
  .album { margin-inline: calc(-1 * var(--gutter)); }
  .gallery { --card: min(76vw, 360px); flex-wrap: nowrap; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: var(--s-4) calc((100% - var(--card)) / 2) var(--s-6); }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery::after { display: none; }
  .gallery-item { flex: 0 0 var(--card); scroll-snap-align: center; scroll-snap-stop: always; }
  .gallery-open { will-change: transform; padding: 6px; border-radius: var(--r-2); background: #FFFDF8; box-shadow: 0 1px 0 var(--line), 0 22px 30px -22px rgba(46, 34, 30, 0.55); cursor: pointer; }
  .gallery-open::after { inset: -6px; }
  .g-photo { aspect-ratio: 1; border-radius: 2px; }
  .g-cap { display: none; }
  .album-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); padding: 0 var(--gutter); }
  .album-count { font: 500 var(--fs-sm)/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
  .album-count b { display: inline-block; font: 700 var(--fs-3)/1 var(--font-display); color: var(--ink); }
  .album-cap { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-sm); line-height: 1.4; color: var(--text); }
  .album-nav { display: flex; gap: var(--s-2); }
  .album-nav button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: var(--hair) solid var(--line-strong); border-radius: var(--r-1); background: transparent; color: var(--ink); cursor: pointer; }
  .album-nav .ico { color: currentColor; }
  /* Where you are in the album: a rule with the current stretch marked. */
  .album-rail { grid-column: 1 / -1; position: relative; height: var(--rule); overflow: hidden; background: var(--line); }
  .album-rail i { position: absolute; inset: 0 auto 0 0; width: calc(100% / var(--n)); background: var(--accent); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--dur-3) var(--ease-settle); }
}

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; overflow: hidden; padding: clamp(1rem, 0.5rem + 3vw, 3rem); border: 0; background: rgba(46, 34, 30, 0.96); color: var(--paper); touch-action: pan-y pinch-zoom; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: var(--s-4); justify-items: center; max-height: 100%; }
.lightbox figure img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; view-transition-name: lb-photo; user-select: none; -webkit-user-drag: none; transition: transform var(--dur-3) var(--ease-settle), opacity var(--dur-2) var(--ease-out); }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); width: 100%; font: 500 var(--fs-sm)/1.4 var(--font-ui); color: rgba(251, 249, 244, 0.8); }
.lb-count { white-space: nowrap; font-variant-numeric: tabular-nums; color: rgba(251, 249, 244, 0.5); }
.lightbox > button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: var(--hair) solid rgba(251, 249, 244, 0.25); border-radius: var(--r-1); background: rgba(46, 34, 30, 0.5); color: var(--paper); cursor: pointer; transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.lightbox > button:hover { border-color: var(--paper); background: rgba(46, 34, 30, 0.8); }
.lightbox .ico { color: var(--paper); }
.lb-close { top: var(--s-5); right: var(--s-5); }
.lb-prev { left: var(--s-5); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--s-5); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: var(--s-5); translate: none; } }
/* Desktop: a strip of every photo along the bottom, the current one lit. */
.lb-strip { display: none; }
@media (min-width: 760px) {
  .lightbox figure img { max-height: calc(100dvh - 14rem); }
  .lb-strip { position: absolute; left: 50%; bottom: var(--s-5); translate: -50% 0; display: flex; gap: var(--s-2); max-width: calc(100% - 2 * var(--s-9)); padding: 4px; overflow-x: auto; scrollbar-width: none; }
  .lb-strip::-webkit-scrollbar { display: none; }
  .lb-strip button { flex: none; width: 60px; height: 44px; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: none; opacity: 0.4; outline: 1.5px solid transparent; outline-offset: 2px; cursor: pointer; transition: opacity var(--dur-2) var(--ease-out), outline-color var(--dur-2) var(--ease-out); }
  .lb-strip button:hover { opacity: 0.8; }
  .lb-strip button[aria-current="true"] { opacity: 1; outline-color: var(--paper); }
  .lb-strip button[hidden] { display: none; }
  .lb-strip img { width: 100%; height: 100%; object-fit: cover; }
}
::view-transition-group(lb-photo) { animation-duration: 520ms; animation-timing-function: var(--ease-settle); }

/* Where we build */
.glance { padding: var(--s-6); border: var(--hair) solid var(--line); border-radius: var(--r-1); background: rgba(255, 255, 255, 0.55); }
.glance .checklist { margin-top: var(--s-4); }

/* City pages: a spec sheet for the town, with its landmark drawing. */
.ledger-plate {
  align-self: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--grain), #fff;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-2);
  box-shadow: 14px 14px 0 -1px var(--bg), 14px 14px 0 0 var(--accent);
}
.ledger-plate img { width: clamp(120px, 9rem + 4vw, 200px); height: auto; margin: 0 auto; }
.ledger-name { margin-top: var(--s-4); text-align: center; font: 700 var(--fs-3)/1.2 var(--font-display); color: var(--ink); }
.ledger-name span { display: block; margin-top: var(--s-1); font: 600 var(--fs-label)/1.2 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.ledger { margin: var(--s-5) 0 0; border-top: var(--hair) solid var(--line); }
.ledger > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: var(--hair) solid var(--line); }
.ledger dt { font: 600 var(--fs-label)/1.5 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ledger dd { margin: 0; font: 500 var(--fs-sm)/1.45 var(--font-serif); color: var(--ink); }
.homes-copy { margin-bottom: var(--s-8); }
.homes-copy p + p { margin-top: var(--s-4); }

/* Long-form text (privacy policy). */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-8); font-size: var(--fs-3); font-family: var(--font-display); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-body); font-family: var(--font-ui); font-weight: 600; }
.prose p, .prose ul { margin-top: var(--s-3); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose .privacy-effective { font: 600 var(--fs-label)/1.4 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------------
   Where we build: the range map (range-map.mjs)
   The town list is the content; the map is its picture and follows it.
   Map lines are sized in map units times --u (map units per screen pixel,
   set by jd.js), so they keep the one pen at any map size.
   --------------------------------------------------------------------- */
.range { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .range { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }

/* Pinned under the header, and up to the top edge while the header is away (.is-top, like the section bar). */
.range-map { position: sticky; top: var(--header-h); z-index: 2; margin: 0; transition: top var(--dur-3) var(--ease-settle); }
.range-map.is-top { top: 0; }
.range-plate { position: relative; background: var(--grain), #FFFDF8; border: var(--hair) solid var(--line); border-radius: var(--r-2); }
@media (min-width: 960px) {
  .range-map { top: calc(var(--header-h) + var(--s-5)); }
  .range-map.is-top { top: var(--s-5); }
  .range-plate { box-shadow: 12px 12px 0 -1px var(--plate-gap, var(--bg)), 12px 12px 0 0 var(--line-strong); }
}
@media (max-width: 959px) {
  /* Phones and tablets: the map rides along at the top while the list scrolls
     under it, never more than 44% of the screen tall. */
  .range-map { margin-inline: calc(-1 * var(--gutter)); padding: var(--s-3) var(--gutter); background: var(--grain), var(--plate-gap, var(--bg)); box-shadow: 0 10px 14px -12px rgba(46, 34, 30, 0.35); }
  .range-plate .range-svg { height: min(calc((100vw - 2 * var(--gutter)) * 592 / 680), 44vh); }
}

.band-2 .range { --plate-gap: var(--paper-2); }
.range-svg { --u: 1; --k: max(1, var(--u) * 0.8); display: block; width: 100%; height: auto; overflow: hidden; border-radius: inherit; }
.range-svg .river { fill: none; stroke: #4A5568; stroke-opacity: 0.22; stroke-width: calc(5 * var(--u)); stroke-linecap: round; stroke-dasharray: 1 2; }
.range-svg .river-name { font: italic 400 11px var(--font-serif); fill: #5E6B7A; }
.range-svg .state { fill: none; stroke: var(--terracotta); stroke-opacity: 0.7; stroke-width: calc(1.5 * var(--u)); stroke-dasharray: calc(2 * var(--u)) calc(6 * var(--u)); stroke-linecap: round; }
.range-svg .state-name { font: 600 9.5px var(--font-ui); letter-spacing: 0.22em; fill: var(--terracotta-ink); }
.range-svg .road { fill: none; stroke: var(--walnut); stroke-opacity: 0.14; stroke-width: calc(3 * var(--u)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.range-svg .road-name { font: 600 8.5px var(--font-ui); letter-spacing: 0.04em; fill: var(--muted); }

/* The range: one outline with the logo's second line inside it. */
.range-svg .range-fill { fill: var(--forest); fill-opacity: 0.05; }
.range-svg .range-line { fill: none; stroke: var(--forest); stroke-width: calc(var(--pen) * var(--u)); stroke-linejoin: round; stroke-dasharray: 1 2; }
.range-svg .range-line--inner { stroke-opacity: 0.32; stroke-width: calc(1 * var(--u)); }

.range-svg .also circle { fill: #FFFDF8; stroke: var(--walnut); stroke-opacity: 0.55; stroke-width: 1.25; transform-box: fill-box; transform-origin: center; scale: var(--k); }
.range-svg .also text { font: 500 9.5px var(--font-ui); fill: var(--muted); paint-order: stroke; stroke: #FFFDF8; stroke-width: 3px; stroke-linejoin: round; }

.range-svg .mark { cursor: pointer; }
/* Marks and pops grow by --k on small maps, around the mark itself, so names
   stay readable on a phone (about 11px) while the map shrinks. */
.range-svg :is(.mark, .pop) { transform-box: view-box; transform-origin: 0 0; scale: var(--k); }
.range-svg :is(.mark-body, .mark-pulse) { transform-box: fill-box; transform-origin: center; }
.range-svg .mark-pulse { fill: none; stroke: var(--terracotta); stroke-width: 1.5; opacity: 0; }
.range-svg .mark-ring { fill: #FFFDF8; stroke: var(--walnut); stroke-width: 1.5; transition: stroke var(--dur-2) var(--ease-out), r var(--dur-2) var(--ease-settle); }
.range-svg .mark-dot { fill: var(--terracotta); }
.range-svg .mark-name { font: 700 13.5px var(--font-display); fill: var(--ink); paint-order: stroke; stroke: #FFFDF8; stroke-width: 4px; stroke-linejoin: round; transition: fill var(--dur-2) var(--ease-out); }
.range-svg .mark-sub { font: 600 8.5px var(--font-ui); letter-spacing: 0.2em; fill: var(--terracotta-ink); paint-order: stroke; stroke: #FFFDF8; stroke-width: 3px; }
.range-svg .mark-plate { fill: #FFFDF8; stroke: var(--forest); stroke-width: 1.5; transition: stroke var(--dur-2) var(--ease-out); }
.range-svg .home-glyph { fill: none; stroke: var(--forest); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.range.is-active .mark:not(.is-on) .mark-name { fill: var(--muted); }
.range-svg .mark.is-on .mark-ring { stroke: var(--terracotta); r: 9px; }
.range-svg .mark.is-on .mark-name { fill: var(--terracotta-ink); }
.range-svg .mark--home.is-on .mark-plate { stroke: var(--terracotta); }

/* The active town's landmark rises beside its mark on a small plate. */
.range-svg .pops { pointer-events: none; }
.range-svg .pop { opacity: 0; scale: calc(var(--k) * 0.55); filter: drop-shadow(0 3px 4px rgba(46, 34, 30, 0.16)); transition: opacity var(--dur-2) var(--ease-out), scale var(--dur-3) var(--ease-settle); }
.range-svg .pop.is-on { opacity: 1; scale: var(--k); }
.range-svg .pop-plate { fill: #FFFDF8; stroke: var(--terracotta); stroke-width: 1.25; }
.range-svg .pop-stem { fill: none; stroke: var(--terracotta); stroke-width: 1.25; stroke-linecap: round; }
@media (max-width: 599px) {
  /* Names stay; the four packed into the Kansas City cluster show only while active. */
  .range-svg :is(.mark-sub, .road-name, .river-name, .state-name, .also text) { display: none; }
  .range-svg .mark.is-dense:not(.is-on) .mark-name { display: none; }
}

.range-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); padding: var(--s-3) var(--s-1) 0; }
.range-readout .t-label { flex-basis: 100%; color: var(--accent-ink); }
.range-readout strong { font: 700 var(--fs-3)/1.2 var(--font-display); color: var(--ink); }
.range-readout span:not(.t-label) { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.range-readout span:last-child { color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 600; }
.range-readout span:empty { display: none; }
@media (min-width: 600px) {
  .range-readout { position: absolute; left: var(--s-5); bottom: var(--s-5); display: grid; gap: 3px; width: min(16rem, 38%); padding: var(--s-4) var(--s-5); background: rgba(255, 253, 248, 0.92); border: var(--hair) solid var(--line); border-radius: var(--r-1); }
}
@media (max-width: 599px) {
  .range-readout { min-height: 4.6rem; align-content: start; }
  .range-readout .t-label { display: none; }
  .range-readout span:last-child { flex-basis: 100%; }
}

.range-list { display: grid; gap: var(--s-8); }
.range-group h3 { margin-top: var(--s-2); font: 700 var(--fs-3)/1.25 var(--font-display); }
.range-group > p:not(.t-label) { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.range-towns { margin: var(--s-5) 0 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
.range-town { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4); border-bottom: var(--hair) solid var(--line); color: inherit; text-decoration: none; transition: background-color var(--dur-2) var(--ease-out); }
.range-town::before { content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: var(--rule); background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-3) var(--ease-settle); }
.range-town strong { display: block; font: 700 1.125rem/1.25 var(--font-display); color: var(--ink); }
.range-town-text > span { display: block; margin-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.range-town > .ico:last-child { color: var(--accent); opacity: 0.5; transition: transform var(--dur-2) var(--ease-settle), opacity var(--dur-2) var(--ease-out); }
.range-town:hover, .range-town:focus-visible, .range-town.is-on { background: rgba(255, 255, 255, 0.6); }
.range-town:hover::before, .range-town:focus-visible::before, .range-town.is-on::before { transform: scaleY(1); }
.range-town:hover > .ico:last-child, .range-town:focus-visible > .ico:last-child, .range-town.is-on > .ico:last-child { opacity: 1; transform: translateX(4px); }
.range-town:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------------------
   17. Motion: reveal, draw, settle
   Everything here only applies with .js on <html> and full motion allowed.
   Without JS, or with reduced motion, content is simply there.
   --------------------------------------------------------------------- */
@keyframes draw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes redraw { 0% { stroke-dashoffset: 0; } 45% { stroke-dashoffset: -1.05; } 46% { stroke-dashoffset: 1.05; } 100% { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes pin-in { from { opacity: 0; transform: scale(0.4) rotate(-45deg); } to { opacity: 1; transform: none; } }
@keyframes note-in { from { opacity: 0; transform: translate(-10px, -0.9em); } to { opacity: 1; transform: translateY(-0.9em); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes range-fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); transform: translate(var(--frame-offset), var(--frame-offset)); } to { clip-path: inset(0 0 0 0); transform: none; } }

.ico path { stroke-dasharray: 1 1.5; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-in { animation: settle var(--dur-3) var(--ease-settle) both; animation-delay: calc(var(--d, 0) * var(--stagger)); }
  .js [data-reveal="fade"].is-in { animation-name: fade; }

  .js .ico[data-draw] path { stroke-dashoffset: 1.05; }
  .js .is-in .ico[data-draw] path,
  .js .ico[data-draw].is-in path {
    animation: draw var(--dur-4) var(--ease-draw) forwards;
    animation-delay: calc(var(--d, 0) * var(--stagger) + var(--i) * 90ms + 120ms);
  }
  .js .is-in .ico[data-draw] .acc, .js .ico[data-draw].is-in .acc { animation-delay: calc(var(--d, 0) * var(--stagger) + var(--i) * 90ms + 320ms); }

  .js .dim::before { transform: scaleX(0); }
  .js .dim::after { opacity: 0; }
  .js .is-in .dim::before { animation: grow-x var(--dur-4) var(--ease-draw) forwards; }
  .js .is-in .dim::after { animation: fade var(--dur-2) var(--ease-out) forwards; animation-delay: calc(var(--dur-4) - 120ms); }

  .js .frame .frame-line rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .frame .frame-photo { clip-path: inset(100% 0 0 0); }
  .js .frame.is-in .frame-line rect { animation: trace var(--dur-5) var(--ease-draw) forwards; }
  .js .frame.is-in .frame-photo { animation: unveil var(--dur-5) var(--ease-settle) 260ms both; }


  /* Range map: the river and roads draw, then the outline traces the range at
     a steady pace and each town lands as the pen passes it (--t, 0–1 of the
     way round); the area fills in last. jd.js adds .is-settled when it's
     over, which hands the marks to hover. */
  .js .range-map:not(.is-settled) :is(.river, .road, .range-line) { stroke-dashoffset: 1.05; }
  .js .range-map:not(.is-settled) :is(.mark-body, .mark-name, .mark-sub, .also, .range-fill, .state, .state-name, .road-name, .river-name) { opacity: 0; }
  .js .range-map.is-in:not(.is-settled) .river { animation: draw var(--dur-5) var(--ease-draw) both; }
  .js .range-map.is-in:not(.is-settled) :is(.state, .state-name, .river-name) { animation: fade var(--dur-4) var(--ease-out) 300ms both; }
  .js .range-map.is-in:not(.is-settled) .road { animation: draw var(--dur-4) var(--ease-draw) both; animation-delay: calc(300ms + var(--i) * 90ms); }
  .js .range-map.is-in:not(.is-settled) .road-name { animation: fade var(--dur-3) var(--ease-out) 900ms both; }
  .js .range-map.is-in:not(.is-settled) .range-line { animation: draw 2400ms linear 700ms both; }
  .js .range-map.is-in:not(.is-settled) .range-line--inner { animation-delay: 1000ms; }
  .js .range-map.is-in:not(.is-settled) .mark-body { animation: pin-in var(--dur-3) var(--ease-settle) both; animation-delay: calc(640ms + var(--t) * 2400ms); }
  .js .range-map.is-in:not(.is-settled) :is(.mark-name, .mark-sub) { animation: fade var(--dur-3) var(--ease-out) both; animation-delay: calc(780ms + var(--t) * 2400ms); }
  .js .range-map.is-in:not(.is-settled) .also { animation: fade var(--dur-3) var(--ease-out) both; animation-delay: calc(700ms + var(--t) * 2400ms); }
  .js .range-map.is-in:not(.is-settled) .range-fill { animation: range-fill var(--dur-4) var(--ease-out) 3100ms both; }
  /* A pop's landmark draws itself each time it opens. */
  .range-svg .pop.is-on .ico path { animation: draw var(--dur-4) var(--ease-draw) both; animation-delay: calc(140ms + var(--i) * 80ms); }

  /* Callouts: points land, leader lines draw out, notes follow the line. */
  .js .annot .annot-pins i { opacity: 0; }
  .js .annot .annot-pins b { transform: scaleX(0); }
  .js .annot .annot-notes li { opacity: 0; }
  .js .annot.is-in .annot-pins i { animation: pin-in var(--dur-3) var(--ease-settle) both; animation-delay: calc(500ms + var(--n) * 260ms); }
  .js .annot.is-in .annot-pins b { animation: grow-x var(--dur-4) var(--ease-draw) both; animation-delay: calc(700ms + var(--n) * 260ms); }
  .js .annot.is-in .annot-notes li { animation: settle var(--dur-3) var(--ease-settle) both; animation-delay: calc(900ms + var(--n) * 260ms); }

  ::view-transition-old(root) { animation: 220ms var(--ease-out) both page-out; }
  ::view-transition-new(root) { animation: 560ms var(--ease-settle) 80ms both page-in; }
  ::view-transition-group(hero-photo) { animation-duration: 700ms; animation-timing-function: var(--ease-settle); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .annot.is-in .annot-notes li { animation-name: note-in; animation-delay: calc(1300ms + var(--n) * 260ms); }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Cross-page transitions between site pages (Chrome, Edge, Safari 18.2+).
   The header holds still while the page under it changes. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
