/* Farmer Constructions. Component styles. Tokens live in tokens.css only. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-3));
}

body {
  margin: 0;
  background: var(--g-site);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--callbar-h);
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration-color: var(--lime-line); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--lime); }

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

button { font: inherit; color: inherit; cursor: pointer; }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-3);
  z-index: calc(var(--z-sheet) + 1);
  background: var(--lime);
  color: var(--on-lime);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- grounds ---------- */
.g-site { background: var(--g-site); }
.g-panel { background: var(--g-panel); }
.g-navy { background: var(--g-navy); }

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

/* ---------- azure atmosphere ----------
   The supporting colour, used as light and never as paint: one soft glow
   behind the content of a navy chapter (the film, the proof band, the
   closing band). Each host places it with --glow-x / --glow-y and sizes it
   with --glow-w / --glow-h. It is static, sits under everything in its
   section and takes no pointer events. With the --azure tokens transparent
   the page is exactly as it was. */
.film::before,
.proof::before,
.band-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse var(--glow-w) var(--glow-h) at var(--glow-x) var(--glow-y),
    var(--azure-glow) 0%,
    color-mix(in srgb, var(--azure-glow) 62%, transparent) 30%,
    color-mix(in srgb, var(--azure-glow) 22%, transparent) 62%,
    transparent 100%
  );
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-4);
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--lime);
}
.btn-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.btn-link svg { width: 18px; height: 18px; color: var(--lime); transition: transform var(--dur-fast) var(--ease-out); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- labels and the dimension line ---------- */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s-3);
}
.eyebrow > span { white-space: nowrap; }
.eyebrow-sep { color: var(--text-muted); }

/* a drafting dimension line, centred: rule, tick, label, tick, rule */
.dim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  text-align: center;
  color: var(--lime);
}
.dim::before,
.dim::after {
  content: "";
  height: 1px;
  background: var(--lime-line);
  flex: 1 1 0;
  max-width: 200px;
}
.dim-tick {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--lime);
  transform: rotate(-45deg);
  margin-inline: calc(var(--s-2) * -1);
}

.section-head {
  max-width: 760px;
  margin: 0 auto var(--s-6);
  text-align: center;
}
.section-head p {
  font-size: var(--text-md);
  margin-top: var(--s-3);
}
.section-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: var(--g-navy);
  box-shadow: var(--shadow-header);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 40px; width: auto; }

.site-nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  gap: var(--s-1);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--text-body);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link-accent { color: var(--lime); }

.header-cta {
  display: none;
  align-items: center;
  gap: var(--s-3);
  margin-left: auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--lime); }
.nav-link { white-space: nowrap; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .site-nav, .header-cta { display: flex; }
  .nav-toggle, .header-phone { display: none; }
  .nav-link { padding-inline: var(--s-2); }
}
@media (min-width: 1200px) {
  .header-phone { display: inline-flex; }
  .nav-link { padding-inline: var(--s-3); }
  .brand-logo { height: 46px; }
}

/* ---------- mobile sheet ---------- */
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--g-navy);
  padding: var(--s-3) var(--gutter) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - var(--s-3) * 2);
}
.nav-sheet-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  color: var(--text);
}
.nav-sheet-close svg { width: 22px; height: 22px; }
.nav-sheet nav { display: flex; flex-direction: column; }
.nav-sheet nav a {
  display: block;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  text-decoration: none;
}
.nav-sheet nav .nav-group {
  padding-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.nav-sheet nav .nav-sub { font-size: var(--text-md); font-family: var(--font-body); font-weight: 500; padding-left: var(--s-3); }
.nav-sheet-foot { margin-top: auto; display: grid; gap: var(--s-3); }
body.sheet-open { overflow: hidden; }

/* ---------- mobile call bar ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-callbar);
  height: var(--callbar-h);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  padding-bottom: max(var(--s-2), env(safe-area-inset-bottom));
  background: var(--g-navy);
  border-top: 1px solid var(--line);
}
.callbar .btn { min-height: 44px; font-size: var(--text-sm); padding-inline: var(--s-3); }
.callbar .btn-menu { aspect-ratio: 1; padding: 0; width: 44px; }
@media (min-width: 1024px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- hero: shared copy pieces ---------- */
.hero-lede {
  font-size: var(--text-md);
  max-width: 54ch;
  margin-top: var(--s-4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.hero-datum {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--lime-line);
  display: grid;
  gap: var(--s-3);
}
.datum-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.datum-item svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--lime); margin-top: 2px; }
.datum-item strong { display: block; color: var(--text); font-weight: 600; }
@media (min-width: 768px) {
  .hero-datum { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

/* ---------- photo hero: a real job photograph under the headline ----------
   The image is a <picture> with a 16:9 desktop crop and a square phone crop
   (_tools/build_images.py); .pos-yNN keeps the subject in frame when the layout
   crops it again. Below 900px the photograph stands clear above the copy and
   fades into the page ground. From 900px it fills the hero and the copy sits
   over a scrim of the page ground, heavier on the side the copy is on. */
.phero {
  position: relative;
  isolation: isolate;
  padding-bottom: var(--s-6);
  overflow: hidden;
  background: var(--g-site);
}
.phero-media {
  position: relative;
  height: min(92vw, 440px);
  overflow: hidden;
}
.phero-media picture { display: block; width: 100%; height: 100%; }
.phero-img { width: 100%; height: 100%; object-fit: cover; }
.phero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--g-site) 0%, var(--scrim-1) 38%, var(--scrim-0) 70%);
}
.phero-inner {
  position: relative;
  width: 100%;
  margin-top: calc(var(--s-6) * -1);
}
.phero .crumbs { justify-content: flex-start; margin-bottom: var(--s-4); }
.phero .crumbs,
.phero .crumbs a { color: var(--text-on-photo); }
.phero .crumbs [aria-current="page"] { color: var(--text); }
.phero-copy { max-width: 600px; }
.phero h1 { max-width: 18ch; }
.phero h1 .accent { color: var(--lime); }
.phero .hero-lede { color: var(--text-on-photo); }
.phero .hero-datum { color: var(--text-on-photo); }
.phero .dim { justify-content: flex-start; margin-bottom: var(--s-3); text-align: left; }
.phero .dim::before { display: none; }
.phero .dim::after { flex: 1 1 24px; max-width: 160px; transform-origin: left center; }
.phero .dim .dim-tick:first-child { margin-left: 0; }

/* the title block: where the photograph was taken and what it shows */
.phero-stamp {
  position: absolute;
  top: var(--s-3);
  right: var(--gutter);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-1) var(--s-3);
  max-width: calc(100% - var(--gutter) * 2);
  padding: var(--s-2) var(--s-3);
  border-right: 2px solid var(--lime);
  background: var(--scrim-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-photo);
}
.phero-stamp .stamp-ref { color: var(--lime); }
.phero-stamp .stamp-title { color: var(--text); }
.phero-stamp .stamp-note { display: none; }

.phero--home h1 { font-size: var(--text-hero); max-width: 13ch; }

@media (min-width: 768px) {
  .phero-stamp { top: var(--s-4); }
  .phero-stamp .stamp-note { display: inline; }
}
@media (min-width: 900px) {
  .phero {
    display: flex;
    align-items: flex-end;
    min-height: min(86svh, 760px);
    padding-block: var(--s-8) var(--s-6);
  }
  .phero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: auto;
  }
  .phero-media::after {
    background:
      linear-gradient(to right, var(--scrim-4) 0%, var(--scrim-3) 34%, var(--scrim-1) 64%, var(--scrim-0) 100%),
      linear-gradient(to top, var(--scrim-3) 0%, var(--scrim-0) 46%);
  }
  .phero-inner { margin-top: 0; }
  .phero--home { min-height: calc(100svh - var(--header-h) - var(--callbar-h)); }
  .phero--slim { min-height: min(64svh, 520px); }
}
@media (min-width: 1024px) {
  .phero--home { min-height: calc(100svh - var(--header-h)); }
}

/* entrance: the photograph settles, the copy rises in order. CSS only, so it
   runs without JS and is skipped whole under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .phero-img { animation: phero-settle 1.8s var(--ease-out) both; }
  .phero .crumbs,
  .phero-copy > *,
  .phero .hero-datum,
  .phero-stamp { animation: phero-rise 0.7s var(--ease-out) both; }
  .phero-copy > :nth-child(1) { animation-delay: 0.08s; }
  .phero-copy > :nth-child(2) { animation-delay: 0.16s; }
  .phero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .phero-copy > :nth-child(4) { animation-delay: 0.32s; }
  .phero-copy > :nth-child(5) { animation-delay: 0.4s; }
  .phero .hero-datum { animation-delay: 0.5s; }
  .phero-stamp { animation-delay: 0.7s; }
  .phero .dim::after { animation: phero-measure 0.9s var(--ease-out) 0.3s both; }
}
@keyframes phero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes phero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes phero-measure { from { transform: scaleX(0); } to { transform: none; } }

/* vertical focal point of a cover image, set from the image manifest */
.pos-y20 { object-position: 50% 20%; }
.pos-y30 { object-position: 50% 30%; }
.pos-y40 { object-position: 50% 40%; }
.pos-y50 { object-position: 50% 50%; }
.pos-y60 { object-position: 50% 60%; }
.pos-y70 { object-position: 50% 70%; }
.pos-y80 { object-position: 50% 80%; }

/* ---------- the film: a bathroom in build order, scrubbed by scroll ----------
   A navy chapter under the home hero. .film-dock is the plate's slot in the
   container (16:9, or 9:16 once js/home.js has picked the portrait frame
   set under 1024px). With motion allowed js/home.js pins the section under
   the header (above the call bar on phones), makes the dock static and
   grows the plate (absolute, relative to .film) out to the whole pinned box
   while the head fades, then runs the frames. Without JS or with reduced
   motion it is a still of the finished room under a heading. */
.film {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
  /* light spilling from the plate: low and right of centre, behind it */
  --glow-x: 60%;
  --glow-y: 72%;
  --glow-w: 56%;
  --glow-h: 62%;
}
.film-head {
  max-width: 760px;
  margin: 0 auto var(--s-5);
  text-align: center;
}
.film-head p { margin-top: var(--s-3); }
.film-figure { margin: 0; }
.film-dock {
  position: relative;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}
.film.is-portrait .film-dock { aspect-ratio: 9 / 16; }
.film.is-scrub .film-dock { position: static; }
.film-plate {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--g-panel);
}
.film-plate img,
.film-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-after { display: none; }
.film-canvas { opacity: 0; transition: opacity var(--dur-med) var(--ease-out); }
.film-figure.is-ready .film-canvas { opacity: 1; }
/* reduced motion and no JS: the finished room is the still */
@media (prefers-reduced-motion: reduce) {
  .film-before { display: none; }
  .film-after { display: block; }
}
.film-stamp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-5) var(--s-3) var(--s-3);
  background: linear-gradient(to top, var(--scrim-3), var(--scrim-0));
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: padding var(--dur-med) var(--ease-out);
}
.film-stamp .stamp-ref { display: none; color: var(--lime); }
.film.is-full .film-stamp { padding: var(--s-6) var(--s-5) var(--s-4); font-size: var(--text-sm); }
.film.is-full .film-stamp .stamp-ref { display: inline; }
.film-state { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.film-word { transition: color var(--dur-med) var(--ease-out); }
.film-word-before { color: var(--text); }
.film-figure.is-after .film-word-before { color: var(--text-muted); }
.film-figure.is-after .film-word-after { color: var(--text); }
.film-bar { position: relative; width: 64px; height: 1px; background: var(--line-strong); }
.film.is-full .film-bar { width: 120px; }
.film-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
}
.film-hint { display: none; margin: 0; }
.film.is-film .film-hint {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
  color: var(--lime);
  letter-spacing: var(--track-caps);
  transition: opacity var(--dur-med) var(--ease-out);
}
.film.is-film .film-hint svg { width: 16px; height: 16px; animation: hint-bob 1.6s ease-in-out infinite; }
.film.is-film.is-past .film-hint { opacity: 0; }
@keyframes hint-bob { 50% { transform: translateY(3px); } }
/* pinned bloom (GSAP, motion allowed): the section is the screen under the header,
   above the call bar on phones, and holds there (four viewports at 1024px+, three
   below); the head fades as the plate grows and is taken out of reach once covered.
   Phones drop the head's line so the portrait slot gets the height. */
.film.is-scrub {
  height: calc(100vh - var(--header-h) - var(--callbar-h));
  padding-block: var(--s-4);
}
.film.is-scrub .film-head { margin-bottom: var(--s-4); opacity: var(--film-copy, 1); }
.film.is-scrub .film-head p { display: none; }
.film.is-full .film-head { visibility: hidden; }
@media (min-width: 1024px) {
  .film.is-scrub { height: calc(100vh - var(--header-h)); padding-block: var(--s-5); }
  .film.is-scrub .film-head { margin-bottom: var(--s-5); }
  .film.is-scrub .film-head p { display: block; }
}

/* ---------- work: the job board ---------- */
.work-grid {
  display: grid;
  gap: var(--s-4);
}
.work-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.work-plate:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.work-plate:hover,
.work-plate:focus-within { box-shadow: var(--shadow-lit); }
.work-shot {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--g-raised);
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-plate:hover .work-shot img { transform: scale(1.04); }
.work-docket {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.work-docket p { flex: 1; font-size: var(--text-sm); }
.work-docket .btn-link { margin-top: auto; }
.work-plate-link::after { content: ""; position: absolute; inset: 0; }
.work-plate .btn-link { position: relative; z-index: 1; }

.work-minor {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.minor-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.minor-row img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-field);
}
.minor-row h3 { font-size: var(--text-md); }
.minor-row p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.minor-row svg { width: 20px; height: 20px; color: var(--lime); transition: transform var(--dur-fast) var(--ease-out); }
.minor-row:hover svg { transform: translateX(3px); }
.minor-row:hover h3 { color: var(--lime); }

@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-minor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s-4); }
}

/* ---------- process: a numbered timeline, centred ---------- */
.run-list {
  max-width: 880px;
  margin-inline: auto;
}
.run-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.run-step:last-child { border-bottom: 1px solid var(--line); }
.run-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.run-step h3 { font-size: var(--text-xl); margin-bottom: var(--s-2); }
.run-step p { max-width: 60ch; }
@media (min-width: 768px) {
  .run-step { grid-template-columns: 120px 1fr; gap: var(--s-5); padding: var(--s-6) 0; }
  .run-num { font-size: 3rem; }
}

/* ---------- proof band ---------- */
.proof {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* the glow is centred on the rating chip, under the statement; wider on
     phones so it reads as a pool of light and not a column */
  --glow-x: 50%;
  --glow-y: 58%;
  --glow-w: 84%;
  --glow-h: 46%;
}
@media (min-width: 768px) { .proof { --glow-w: 52%; } }
.proof .container { position: relative; z-index: 1; }
/* the outlined watermark; js/home.js drifts it with the scroll, static otherwise */
.wm {
  position: absolute;
  left: -0.06em;
  top: clamp(1.5rem, 6vw, 4rem);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 24vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.proof-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-5);
}
.proof-q {
  font-size: clamp(1.75rem, 2.4vw + 0.7rem, 3rem);
  max-width: 26ch;
}
/* the service name on one line, "reviewed by the owners." on the next, on every service page */
.proof-q em { display: block; font-style: normal; color: var(--lime); }
.proof-sub { max-width: 52ch; }
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--text);
  color: var(--on-lime);
  border-radius: var(--radius-card);
  text-decoration: none;
  text-align: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.proof-chip:hover { transform: translateY(-2px); }
.proof-chip svg { width: 30px; height: 30px; flex: none; }
.proof-chip-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: #4b5a64;
}
.proof-chip-score {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1.2;
}
.proof-chip-score .stars { color: #b7a51a; }
.proof-chip-count { display: block; font-size: var(--text-sm); color: #4b5a64; }
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  text-align: center;
}
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 2vw + 1rem, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat-l {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* ---------- review rail: three rows, driven by js/home.js ---------- */
.reviews-rail {
  display: grid;
  gap: var(--s-3);
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rail-row {
  display: flex;
  gap: var(--s-3);
  width: max-content;
  will-change: transform;
  user-select: none;
}
.review-card {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-4) var(--s-4);
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: var(--text-sm);
}
.review-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  color: var(--text);
  font-weight: 600;
}
.stars { display: inline-flex; gap: 2px; color: var(--lime); }
.stars svg { width: 14px; height: 14px; }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(4 * 1.6em);
}
.review-card cite {
  display: block;
  margin-top: var(--s-2);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
@media (max-width: 640px) { .review-card { flex-basis: 264px; } }
@media (prefers-reduced-motion: reduce) {
  .rail-row { width: auto; flex-wrap: wrap; }
  .rail-row [aria-hidden="true"] { display: none; }
  .reviews-rail { -webkit-mask-image: none; mask-image: none; }
}
.reviews-note {
  margin-top: var(--s-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- meet ---------- */
.meet-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
.meet-media {
  margin: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--g-panel);
}
.meet-media img { width: 100%; height: 100%; object-fit: cover; }
.meet-copy h2 { margin-bottom: var(--s-3); }
.cred-list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.cred-list li {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text);
}
.cred-list svg { width: 18px; height: 18px; color: var(--lime); flex: 0 0 auto; margin-top: 3px; }
.meet-copy .btn { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .meet-grid { grid-template-columns: 5fr 7fr; gap: var(--s-7); }
}

/* ---------- quote stage ---------- */
.quote-grid {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
.quote-aside h2 { margin-bottom: var(--s-3); }
.quote-aside p { max-width: 48ch; }
.quote-steps { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.quote-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  font-size: var(--text-sm);
}
.quote-steps .run-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  padding-top: 2px;
}
.quote-steps strong { display: block; color: var(--text); font-weight: 600; }
.quote-contact { margin-top: var(--s-5); display: grid; gap: var(--s-2); font-size: var(--text-sm); }
.quote-contact a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text); text-decoration: none; font-weight: 600; }
.quote-contact svg { width: 18px; height: 18px; color: var(--lime); }

.lead-form {
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
}
.lead-form-head { margin-bottom: var(--s-4); }
.lead-form-head h2 { font-size: var(--text-xl); margin-bottom: var(--s-1); }
.lead-form-head p { font-size: var(--text-sm); color: var(--text-muted); }
/* align-content: start keeps fields in a .field-row the same height when one has a help line under it */
.field { display: grid; align-content: start; gap: var(--s-1); margin-bottom: var(--s-3); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field label .req { color: var(--lime); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-2) var(--s-3);
  background: var(--g-field);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dae544' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  padding-right: var(--s-6);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--lime); }
.field-help { font-size: var(--text-xs); color: var(--text-muted); }
.field-error { font-size: var(--text-sm); color: var(--error); display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field.is-invalid .field-error { display: block; }
.field-row { display: grid; gap: 0 var(--s-3); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--s-3); }

.form-state {
  display: none;
  padding: var(--s-4);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background: var(--g-raised);
}
.form-state h3 { margin-bottom: var(--s-2); }
.form-state p { font-size: var(--text-sm); }
.form-state .btn { margin-top: var(--s-3); }
.form-state.is-visible { display: block; }
.form-state-ok { border-color: var(--ok); }
.form-state-error { border-color: var(--error); }
.lead-form.is-done form { display: none; }
.btn .btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-busy .btn-spinner { display: inline-block; }
.btn.is-busy .btn-label { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1024px) {
  .quote-grid { grid-template-columns: 5fr 7fr; gap: var(--s-7); }
  .lead-form { padding: var(--s-5); }
}

/* ---------- faq ---------- */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--lime);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 var(--s-4); max-width: 64ch; }

/* ---------- band cta ---------- */
.band-cta {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-7);
  border-top: 1px solid var(--lime-line);
  background:
    radial-gradient(50% 80% at 15% 50%, rgba(218, 229, 68, 0.1), transparent 70%),
    var(--g-navy);
  /* the glow sits behind the buttons and dies before the band's edges,
     so the footer below stays flat navy */
  --glow-x: 48%;
  --glow-y: 66%;
  --glow-w: 46%;
  --glow-h: 34%;
}
.band-cta .container {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-4);
}
.band-cta h2 { max-width: 22ch; }
.band-cta p { max-width: 48ch; }
.band-cta .hero-actions { margin-top: var(--s-2); justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--g-navy);
  border-top: 1px solid var(--line);
  padding-block: var(--s-7) var(--s-5);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--s-5);
}
.footer-brand .brand-logo { height: 44px; margin-bottom: var(--s-3); }
.footer-brand p { max-width: 36ch; }
.footer-h {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s-3);
}
.footer-col ul { display: grid; gap: var(--s-2); }
.footer-col a { color: var(--text-body); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--lime); flex: 0 0 auto; margin-top: 2px; }
.footer-legal {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.footer-legal a { color: var(--text-muted); }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- reveal (gated by html.io so content never hides without JS) ---------- */
html.io .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html.io .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.io .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- inner pages: hero with breadcrumb and the drawing sheet ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-6);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(218, 229, 68, 0.07), transparent 70%),
    var(--g-site);
}
.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text-body); }
.page-hero-copy {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.page-hero h1 { max-width: 18ch; margin-inline: auto; }
.page-hero h1 .accent { color: var(--lime); }
.page-hero .hero-lede { margin-inline: auto; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .hero-datum { text-align: left; }

@media (min-width: 768px) {
  .page-hero { padding-block: var(--s-8) var(--s-7); }
}

/* ---------- scope cards ---------- */
.scope-grid {
  display: grid;
  gap: var(--s-3);
}
.scope-card {
  position: relative;
  padding: var(--s-4);
  padding-top: var(--s-5);
  background: var(--g-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.g-site .scope-card { background: var(--g-panel); }
.scope-mark {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  width: 24px;
  height: 1px;
  background: var(--lime);
}
.scope-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -5px;
  width: 10px;
  height: 1px;
  background: var(--lime);
  transform: rotate(-45deg);
}
.scope-card h3 { margin-bottom: var(--s-2); }
.scope-card p { font-size: var(--text-sm); }
@media (min-width: 640px) { .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) { .scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- the schedule: a drawing's specification table ---------- */
.schedule {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.schedule-row {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.schedule dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 4px;
}
.schedule dd { margin: 0; max-width: 60ch; }
.schedule dd strong { color: var(--text); font-weight: 600; }
@media (min-width: 640px) {
  .schedule-row { grid-template-columns: 200px 1fr; gap: var(--s-4); }
}

/* ---------- static review grid (service pages) ---------- */
.review-grid {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
  text-align: left;
}
.review-grid .review-card { flex: none; background: var(--g-panel); }
.review-grid .review-card blockquote p { -webkit-line-clamp: 8; min-height: 0; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-grid-2 { max-width: 880px; margin-inline: auto; }
@media (min-width: 1024px) { .review-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- crew ---------- */
.crew-grid {
  display: grid;
  gap: var(--s-3);
  max-width: 880px;
  margin-inline: auto;
}
.crew-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4);
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.g-panel .crew-card { background: var(--g-raised); }
.crew-initial {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--lime-line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--lime);
}
.crew-card h3 { margin-bottom: var(--s-1); }
.crew-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s-2);
}
.crew-card p { font-size: var(--text-sm); }
@media (min-width: 768px) { .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }

/* ---------- contact cards ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-3);
}
.contact-card {
  padding: var(--s-4);
  background: var(--g-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.contact-card svg { width: 24px; height: 24px; color: var(--lime); margin-bottom: var(--s-3); }
.contact-card h3 { font-size: var(--text-md); margin-bottom: var(--s-2); }
.contact-card p { font-size: var(--text-sm); }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- long-form prose (privacy) ---------- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
}
.prose h2 { font-size: var(--text-xl); margin: var(--s-6) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: var(--s-4); margin-bottom: var(--s-3); }
.prose li { margin-bottom: var(--s-2); }
.prose-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}

/* ---------- thank-you ---------- */
.thanks {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.thanks-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--lime-line);
  color: var(--lime);
}
.thanks-mark svg { width: 28px; height: 28px; }
.thanks .quote-steps { text-align: left; margin-top: var(--s-6); }
.thanks .hero-actions { justify-content: center; }

/* ---------- split: copy beside a spec table or a photograph ---------- */
.split {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.split .dim { justify-content: flex-start; }
.split .dim::before { display: none; }
.split .dim .dim-tick:first-child { margin-left: 0; }
.split-copy h2 { margin-bottom: var(--s-3); }
.split-copy p { max-width: 62ch; }
.split .schedule { max-width: none; margin-inline: 0; }
.split-media {
  margin: 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--g-raised);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) {
  .split .schedule-row { grid-template-columns: 140px 1fr; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: var(--s-7); }
}

/* ---------- chips: links to sibling pages, and the project filter ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.chip-label {
  width: 100%;
  margin-bottom: var(--s-2);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip-block { margin-top: var(--s-6); }
.chip-block + .chip-block { margin-top: var(--s-5); }
.split .chip-list { justify-content: flex-start; }
.split .chip-label { text-align: left; }

/* ---------- project cards ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.proj-grid {
  display: grid;
  gap: var(--s-4);
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.g-panel .proj-card { background: var(--g-raised); }
.proj-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.proj-card:hover,
.proj-card:focus-within { box-shadow: var(--shadow-lit); }
.proj-card[hidden] { display: none; }
.proj-shot {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--g-raised);
}
.proj-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.proj-card:hover .proj-shot img { transform: scale(1.04); }
.proj-body {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-4);
  flex: 1;
}
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.proj-meta span:first-child { color: var(--lime); }
.proj-card h3 { font-size: var(--text-lg); }
.proj-card h3 a { text-decoration: none; }
.proj-card h3 a::after { content: ""; position: absolute; inset: 0; }
.proj-card:hover h3 a { color: var(--lime); }
.proj-card p { font-size: var(--text-sm); }
@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- case study: the job sheet beside the story ---------- */
.case-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.job-sheet {
  padding: var(--s-4);
  background: var(--g-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.g-site .job-sheet { background: var(--g-panel); }
.job-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--lime-line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.job-sheet-head span:first-child { color: var(--lime); }
.job-sheet dl { margin: 0; display: grid; gap: var(--s-3); }
.job-sheet dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.job-sheet dd { margin: var(--s-1) 0 0; color: var(--text); font-size: var(--text-sm); }
.job-sheet .btn { margin-top: var(--s-4); }
.case-story h2 { font-size: var(--text-xl); margin: var(--s-6) 0 var(--s-3); }
.case-story h2:first-child { margin-top: 0; }
.case-story p { max-width: 64ch; font-size: var(--text-md); }
@media (min-width: 1024px) {
  .case-grid { grid-template-columns: 360px minmax(0, 1fr); gap: var(--s-7); }
  .job-sheet { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

/* ---------- pull quotes ---------- */
.pull-list {
  display: grid;
  gap: var(--s-6);
  max-width: 880px;
  margin-inline: auto;
}
.pull-quote { margin: 0; text-align: center; }
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-quote);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.pull-quote figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- gallery: photographs at their own proportions ---------- */
.gallery {
  columns: 2;
  column-gap: var(--s-3);
}
.gallery li { break-inside: avoid; margin-bottom: var(--s-3); }
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--g-panel);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.03); }
@media (min-width: 768px) {
  .gallery { columns: 3; column-gap: var(--s-4); }
  .gallery li { margin-bottom: var(--s-4); }
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop { background: var(--overlay); }
.lightbox-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--s-7) var(--s-3) var(--s-8);
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-card);
}
.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s-4);
  margin: 0;
  padding-inline: var(--s-7);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-body);
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--g-navy);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lightbox-btn:hover { border-color: var(--lime); color: var(--lime); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: var(--s-3); right: var(--s-3); }
.lightbox-prev { left: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--s-3); top: 50%; transform: translateY(-50%); }

/* ---------- video: a still that becomes the player when asked ---------- */
.yt {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--g-panel);
}
.yt-link { display: block; width: 100%; height: 100%; color: var(--text); text-decoration: none; }
.yt-link img { width: 100%; height: 100%; object-fit: cover; }
.yt-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--scrim-3), var(--scrim-1));
}
.yt-play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-med) var(--ease-out);
}
.yt-play svg { width: 28px; height: 28px; margin-left: 4px; }
.yt-link:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-title {
  position: absolute;
  z-index: 1;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- areas: the coast as a measured line, then the suburbs by zone ---------- */
.coast-line {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.coast-ends { display: flex; justify-content: space-between; gap: var(--s-3); }
.coast-rule {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 12px;
}
.coast-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--lime-line);
}
.coast-tick { position: relative; width: 1px; height: 12px; background: var(--lime); }
.coast-tick:first-child,
.coast-tick:last-child { width: 12px; height: 1px; transform: rotate(-45deg); }
.coast-count { color: var(--text-muted); text-align: center; }

.zone {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.zone:last-child { border-bottom: 1px solid var(--line); }
.zone-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.area-grid { display: grid; gap: var(--s-3); }
.area-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  height: 100%;
  padding: var(--s-4);
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.g-panel .area-card { background: var(--g-raised); }
.area-card:hover { border-color: var(--lime-line); transform: translateY(-2px); }
.area-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.area-blurb { grid-column: 1; font-size: var(--text-sm); }
.area-card svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  color: var(--lime);
  transition: transform var(--dur-fast) var(--ease-out);
}
.area-card:hover svg { transform: translateX(3px); }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) {
  .zone { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-6); }
  .zone-title { padding-top: var(--s-4); }
}

/* ---------- guides ---------- */
.guide-cards { display: grid; gap: var(--s-4); }
.guide-card {
  position: relative;
  display: grid;
  background: var(--g-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.g-panel .guide-card { background: var(--g-raised); }
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.guide-card:hover,
.guide-card:focus-within { box-shadow: var(--shadow-lit); }
.guide-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--g-raised); }
.guide-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.guide-card:hover img { transform: scale(1.04); }
.guide-card-body { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4); }
.guide-card h3 { font-size: var(--text-lg); }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card:hover h3 a { color: var(--lime); }
.guide-card p { font-size: var(--text-sm); }
@media (min-width: 640px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.guide-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.toc-title {
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.toc a {
  display: block;
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  border-left: 1px solid var(--line);
  color: var(--text-body);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.toc a:hover,
.toc a.is-active { color: var(--text); border-left-color: var(--lime); }
.takeaways {
  margin-bottom: var(--s-6);
  padding: var(--s-4);
  border: 1px solid var(--lime-line);
  border-radius: var(--radius-panel);
  background: var(--lime-dim);
}
.takeaways-title {
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
.tick-list { display: grid; gap: var(--s-3); }
.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-3);
  align-items: start;
  color: var(--text);
}
.tick-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--lime); }
.guide-body { max-width: 68ch; }
.guide-body h2 {
  margin: var(--s-7) 0 var(--s-3);
  font-size: var(--text-2xl);
  scroll-margin-top: calc(var(--header-h) + var(--s-4));
}
.guide-body section:first-of-type h2 { margin-top: 0; }
.guide-body p { font-size: var(--text-md); }
.guide-body h3 { margin: var(--s-4) 0 var(--s-3); font-size: var(--text-md); }
.guide-body .tick-list { margin-bottom: var(--s-3); }
.guide-body .tick-list li { color: var(--text-body); }
@media (min-width: 1024px) {
  .guide-grid { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); }
  .toc { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
  .takeaways { padding: var(--s-5); }
}

/* ---------- people ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.person { margin: 0; }
.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--g-raised);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person figcaption { padding-top: var(--s-3); }
.person-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.person-role {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--lime);
}
@media (min-width: 768px) { .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }

/* ---------- photo strip: two or three site photographs in a row ---------- */
.photo-strip {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.photo-strip figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--g-raised);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }

/* ---------- ad landing pages ---------- */
.site-header-lp .header-cta-lp { display: flex; }
.site-header-lp .header-phone { display: inline-flex; }
.site-header-lp .btn { display: none; }
.callbar-lp { grid-template-columns: 1fr 1fr; }
.site-footer-lp { padding-block: var(--s-4); }
.site-footer-lp .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }
.lp-hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-6);
  overflow: hidden;
}
.lp-hero .phero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: auto;
}
.lp-hero .phero-media::after {
  background: linear-gradient(to bottom, var(--scrim-3) 0%, var(--scrim-4) 60%);
}
.lp-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
.lp-copy h1 { font-size: var(--text-h1); max-width: 16ch; }
.lp-copy h1 .accent { color: var(--lime); }
.lp-copy .hero-lede { color: var(--text-on-photo); }
.lp-copy .tick-list { margin-top: var(--s-5); }
.lp-copy .quote-contact { margin-top: var(--s-5); }
@media (min-width: 640px) {
  .site-header-lp .btn { display: inline-flex; }
}
@media (min-width: 1024px) {
  .lp-hero { padding-block: var(--s-7); }
  .lp-hero .phero-media::after {
    background: linear-gradient(to right, var(--scrim-4) 0%, var(--scrim-3) 50%, var(--scrim-2) 100%);
  }
  .lp-grid { grid-template-columns: minmax(0, 1fr) 520px; gap: var(--s-7); align-items: center; }
}

/* ---------- next steps: a row of quiet links under a section ---------- */
.next-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
}
