/* ================================================================
   INNOVATION CONSTRUCTION NY — v9
   Light · Simple · Artistic
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  /* Warm cream — primary background */
  --paper: #F6F1E8;
  --paper-2: #F0E9DC;
  --paper-3: #E8DFCC;
  --white: #FFFFFF;

  /* Ink */
  --ink: #1A1714;
  --ink-2: #2C2620;
  --ink-3: #4A4138;
  --ink-muted: #7E7468;
  --ink-faint: #A89F92;
  --rule: #DDD3BD;
  --rule-strong: #C5BBA3;

  /* Brand — directly from the logo */
  --wine: #804346;
  --wine-2: #9A5256;
  --tan: #B5885C;
  --tan-2: #C99E72;

  /* Type */
  --serif: 'Bricolage Grotesque', 'Inter', sans-serif;
  --serif-text: 'Bricolage Grotesque', 'Inter', sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max-w: 1480px;
  --gutter: 28px;
  --margin: 64px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 72px; --s7: 96px; --s8: 144px; --s9: 192px;
}

@media (max-width: 900px) {
  :root { --margin: 24px; --gutter: 16px; }
}

html, body {
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern", "liga", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--wine); color: var(--paper); }

/* ============== TYPOGRAPHY ============== */
.h-xxl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(60px, 8.8vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.h-xl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.h-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.028em;
}
.h-md {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.h-xxl em, .h-xl em, .h-lg em, .h-md em,
.h-xxl .it, .h-xl .it, .h-lg .it {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}

.h-xxl em, .h-xl em, .h-lg em, .h-md em,
.h-xxl .it, .h-xl .it, .h-lg .it {
  font-style: italic;
  color: var(--wine);
  font-weight: 400;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--wine);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}

.body-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 62ch;
}
.body-text p + p { margin-top: 1.2em; }
.body-text strong { color: var(--ink); font-weight: 600; }
.body-text em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wine);
}

/* ============== LAYOUT ============== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.section { padding: var(--s9) 0; }
.section-md { padding: var(--s8) 0; }
.section-sm { padding: var(--s7) 0; }

@media (max-width: 900px) {
  .section { padding: var(--s7) 0; }
  .section-md { padding: var(--s7) 0; }
}

/* ============== SITE HEADER ============== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease, border-color 0.3s ease;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--margin);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s5);
  transition: padding 0.3s ease;
}

header.site-header.scrolled .site-header-inner {
  padding: 14px var(--margin);
}

/* LOGO */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
}
.site-logo img {
  height: 100px;
  width: auto;
  transition: height 0.3s ease;
}
header.site-header.scrolled .site-logo img {
  height: 68px;
}

/* NAV (centered) */
.site-nav {
  justify-self: center;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--wine);
  transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--wine); }
.site-nav a:hover::after { width: 100%; }

/* ACTIONS (right) */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  justify-self: end;
}

.site-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.site-phone-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.site-phone-num {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.site-phone:hover .site-phone-num { color: var(--wine); }

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: all 0.25s ease;
}
.site-cta:hover {
  background: var(--wine);
  border-color: var(--wine);
}
.site-cta .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease;
}
.site-cta .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.site-cta:hover .arrow { transform: translateX(4px); }

.site-menu-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.site-menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 1280px) {
  .site-nav ul { gap: 24px; }
  .site-nav a { font-size: 12px; }
  .site-logo img { height: 84px; }
}

@media (max-width: 1100px) {
  .site-header-inner { grid-template-columns: auto auto; }
  .site-nav { display: none; }
  .site-menu-toggle { display: block; }
}

@media (max-width: 900px) {
  .site-header-inner { padding: 14px var(--margin); }
  .site-logo img { height: 60px; }
  header.site-header.scrolled .site-logo img { height: 52px; }
  .site-phone { display: none; }
  .site-cta { padding: 10px 14px; font-size: 11px; }
}

@media (max-width: 480px) {
  .site-cta .arrow { display: none; }
  .site-cta { padding: 9px 12px; }
  .site-logo img { height: 50px; }
}
/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: all 0.25s ease;
}
.link-arrow::after { content: "→"; transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--wine); border-bottom-color: var(--wine); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============== MOBILE MENU ============== */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 110;
  padding: 100px 24px 32px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .close {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--wine); font-style: italic; }

/* ============== HERO ============== */
.hero {
  padding-top: var(--s6);
  padding-bottom: var(--s8);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s7);
  align-items: center;
}

.hero-text { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wine);
  margin-bottom: var(--s5);
  opacity: 0;
  animation: heroIn 1s 0.2s ease forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: currentColor;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: var(--s5);
}
.hero-title em {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineUp 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.55s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.7s; }

@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 46ch;
  margin-bottom: var(--s5);
  opacity: 0;
  animation: heroIn 1s 1s ease forwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 1s 1.2s ease forwards;
}

.hero-trust {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 1s 1.4s ease forwards;
}
.hero-trust .rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust .stars {
  color: var(--wine);
  font-size: 13px;
  letter-spacing: 2px;
}
.hero-trust .score {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.hero-trust .label,
.hero-trust .creds {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-trust .divider {
  width: 1px; height: 24px;
  background: var(--rule-strong);
}


/* ============== HERO ANIMATION ============== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr !important; gap: var(--s7) !important; }
}

.hero-animation {
  position: relative;
  width: 100%;
  height: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.brownstone-svg {
  width: 100%;
  max-width: 720px;
  max-height: 860px;
  height: auto;
  display: block;
}

/* Stage counter — labels above the SVG */
.stage-counter {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s4);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  min-width: 220px;
  min-height: 32px;
  justify-content: center;
}

.stage-counter .stage {
  position: absolute;
  left: 16px;
  right: 16px;
  text-align: center;
  opacity: 0;
}

/* Five stage labels across 16s total */
.hero-animation.playing .stage-1 { animation: stageLabel 16s 0.2s ease forwards; }
.hero-animation.playing .stage-2 { animation: stageLabel2 16s ease forwards; }
.hero-animation.playing .stage-3 { animation: stageLabel3 16s ease forwards; }
.hero-animation.playing .stage-4 { animation: stageLabel4 16s ease forwards; }
.hero-animation.playing .stage-5 { animation: stageLabelFinal 16s ease forwards; }

@keyframes stageLabel {  /* 0-2.8s: Damaged */
  0% { opacity: 0; transform: translateY(4px); }
  4% { opacity: 1; transform: translateY(0); }
  18% { opacity: 1; }
  22%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes stageLabel2 {  /* 2.8-5.8s: Scaffold */
  0%, 18% { opacity: 0; transform: translateY(4px); }
  22% { opacity: 1; transform: translateY(0); }
  39% { opacity: 1; }
  42%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes stageLabel3 {  /* 5.8-9.8s: Restoration */
  0%, 39% { opacity: 0; transform: translateY(4px); }
  43% { opacity: 1; transform: translateY(0); }
  67% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes stageLabel4 {  /* 9.8-11.6s: Finishing */
  0%, 67% { opacity: 0; transform: translateY(4px); }
  71% { opacity: 1; transform: translateY(0); }
  81% { opacity: 1; }
  84%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes stageLabelFinal {  /* 11.6+: Restored (holds) */
  0%, 82% { opacity: 0; transform: translateY(4px); }
  88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Replay button */
.replay-btn {
  position: absolute;
  bottom: 8px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.replay-btn:hover { color: var(--wine); }
.replay-btn .replay-icon {
  font-size: 14px;
  display: inline-block;
  transition: transform 0.4s ease;
}
.replay-btn:hover .replay-icon { transform: rotate(180deg); }

/* ===== Building lines visible throughout ===== */
.brownstone-svg .b-line {
  /* No draw-in - building is just there from start */
}

/* ===== DAMAGE LAYER ===== */
.brownstone-svg .damage-layer { opacity: 1; }
.hero-animation.playing .damage-layer {
  animation: damageFade 16s ease forwards;
}
@keyframes damageFade {
  0%, 64% { opacity: 1; }
  74%, 100% { opacity: 0; }
}

/* ===== MATERIALS (appear after damage, stay through work) ===== */
.brownstone-svg .materials { opacity: 0; }
.hero-animation.playing .materials {
  animation: matFade 16s ease forwards;
}
@keyframes matFade {
  0%, 14% { opacity: 0; }
  20% { opacity: 1; }
  78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

/* ===== GROUND WORKER (walks in / stays / walks out) ===== */
.brownstone-svg .worker-ground { opacity: 0; }
.hero-animation.playing .worker-ground {
  animation: workerGroundShow 16s ease forwards;
}
@keyframes workerGroundShow {
  0%, 16% { opacity: 0; }
  22% { opacity: 1; }
  82% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

/* Walking-figure: marching in place via leg rotation */
.brownstone-svg .leg-walk-l { transform-origin: -3px 32px; }
.brownstone-svg .leg-walk-r { transform-origin: 3px 32px; }
.hero-animation.playing .leg-walk-l {
  animation: legSwingL 0.7s ease-in-out infinite;
}
.hero-animation.playing .leg-walk-r {
  animation: legSwingR 0.7s ease-in-out infinite;
}
@keyframes legSwingL {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(14deg); }
}
@keyframes legSwingR {
  0%, 100% { transform: rotate(14deg); }
  50% { transform: rotate(-12deg); }
}

/* ===== SCAFFOLDING — assembled progressively ===== */
.brownstone-svg .scaffolding { opacity: 1; }
.hero-animation.playing .scaffolding {
  animation: scaffGroupFade 16s ease forwards;
}
@keyframes scaffGroupFade {
  0%, 80% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

/* Vertical poles draw from bottom up */
.brownstone-svg .scaff-v {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}
.hero-animation.playing .scaff-v-1 { animation: poleDraw 16s ease-out forwards; animation-delay: 0s; }
.hero-animation.playing .scaff-v-2 { animation: poleDraw 16s ease-out forwards; animation-delay: 0.05s; }
.hero-animation.playing .scaff-v-3 { animation: poleDraw 16s ease-out forwards; animation-delay: 0.4s; }
.hero-animation.playing .scaff-v-4 { animation: poleDraw 16s ease-out forwards; animation-delay: 0.4s; }
@keyframes poleDraw {
  0%, 20% { stroke-dashoffset: 700; }
  26% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Horizontal platforms extend left-to-right */
.brownstone-svg .scaff-h {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.hero-animation.playing .scaff-h-1 { animation: platDraw 16s ease-out forwards; animation-delay: 0.6s; }
.hero-animation.playing .scaff-h-2 { animation: platDraw 16s ease-out forwards; animation-delay: 0.8s; }
.hero-animation.playing .scaff-h-3 { animation: platDraw 16s ease-out forwards; animation-delay: 1s; }
.hero-animation.playing .scaff-h-4 { animation: platDraw 16s ease-out forwards; animation-delay: 1.2s; }
@keyframes platDraw {
  0%, 20% { stroke-dashoffset: 600; }
  25% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Diagonal braces */
.brownstone-svg .scaff-d {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
}
.hero-animation.playing .scaff-d-1 { animation: diagDraw 16s ease forwards; animation-delay: 1.4s; }
.hero-animation.playing .scaff-d-2 { animation: diagDraw 16s ease forwards; animation-delay: 1.5s; }
.hero-animation.playing .scaff-d-3 { animation: diagDraw 16s ease forwards; animation-delay: 1.6s; }
.hero-animation.playing .scaff-d-4 { animation: diagDraw 16s ease forwards; animation-delay: 1.7s; }
.hero-animation.playing .scaff-d-5 { animation: diagDraw 16s ease forwards; animation-delay: 1.8s; }
.hero-animation.playing .scaff-d-6 { animation: diagDraw 16s ease forwards; animation-delay: 1.9s; }
@keyframes diagDraw {
  0%, 22% { stroke-dashoffset: 250; }
  27% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Platform decking */
.brownstone-svg .scaff-p { opacity: 0; }
.hero-animation.playing .scaff-p-1 { animation: deckShow 16s ease forwards; }
.hero-animation.playing .scaff-p-2 { animation: deckShow 16s ease forwards; }
.hero-animation.playing .scaff-p-3 { animation: deckShow 16s ease forwards; }
@keyframes deckShow {
  0%, 26% { opacity: 0; }
  30% { opacity: 0.45; }
  100% { opacity: 0.45; }
}

/* ===== LADDER (appears after scaffold) ===== */
.brownstone-svg .ladder { opacity: 0; }
.hero-animation.playing .ladder {
  animation: ladderShow 16s ease forwards;
}
@keyframes ladderShow {
  0%, 28% { opacity: 0; }
  34% { opacity: 1; }
  80% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

/* ===== WORKERS on scaffold (fade in, work, fade out) ===== */
.brownstone-svg .worker-top { opacity: 0; }
.brownstone-svg .worker-3 { opacity: 0; }
.brownstone-svg .worker-2 { opacity: 0; }
.brownstone-svg .worker-right { opacity: 0; }

.hero-animation.playing .worker-top {
  animation: workerShow 16s ease forwards;
  animation-delay: 0s;
}
.hero-animation.playing .worker-3 {
  animation: workerShow 16s ease forwards;
  animation-delay: 0.15s;
}
.hero-animation.playing .worker-2 {
  animation: workerShow 16s ease forwards;
  animation-delay: 0.3s;
}
.hero-animation.playing .worker-right {
  animation: workerShow 16s ease forwards;
  animation-delay: 0.4s;
}
@keyframes workerShow {
  0%, 32% { opacity: 0; transform: translateY(4px); }
  38% { opacity: 1; transform: translateY(0); }
  76% { opacity: 1; transform: translateY(0); }
  82%, 100% { opacity: 0; }
}

/* Worker arms swinging — continuous while parent visible */
.brownstone-svg .worker-arm {
  animation: armSwing 0.85s ease-in-out infinite;
}
.brownstone-svg .worker-arm-fast {
  animation: armSwing 0.6s ease-in-out infinite;
}
.brownstone-svg .worker-arm-slow {
  animation: armSwingReverse 1.1s ease-in-out infinite;
}
@keyframes armSwing {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(10deg); }
}
@keyframes armSwingReverse {
  0%, 100% { transform: rotate(30deg); }
  50% { transform: rotate(-10deg); }
}

/* ===== DUST CLOUDS during work ===== */
.brownstone-svg .dust { opacity: 0; }
.hero-animation.playing .dust-1 { animation: dustPulse 16s ease infinite; animation-delay: 0s; }
.hero-animation.playing .dust-2 { animation: dustPulse 16s ease infinite; animation-delay: 0.15s; }
.hero-animation.playing .dust-3 { animation: dustPulse 16s ease infinite; animation-delay: 0.3s; }
.hero-animation.playing .dust-4 { animation: dustPulse 16s ease infinite; animation-delay: 0.45s; }
.hero-animation.playing .dust-5 { animation: dustPulse 16s ease infinite; animation-delay: 0.1s; }
.hero-animation.playing .dust-6 { animation: dustPulse 16s ease infinite; animation-delay: 0.25s; }
.hero-animation.playing .dust-7 { animation: dustPulse 16s ease infinite; animation-delay: 0.4s; }
.hero-animation.playing .dust-8 { animation: dustPulse 16s ease infinite; animation-delay: 0.05s; }
.hero-animation.playing .dust-9 { animation: dustPulse 16s ease infinite; animation-delay: 0.2s; }
.hero-animation.playing .dust-10 { animation: dustPulse 16s ease infinite; animation-delay: 0.35s; }
.hero-animation.playing .dust-11 { animation: dustPulse 16s ease infinite; animation-delay: 0.5s; }
.hero-animation.playing .dust-12 { animation: dustPulse 16s ease infinite; animation-delay: 0.15s; }

@keyframes dustPulse {
  0%, 36% { opacity: 0; transform: translateY(0) scale(0.4); }
  40% { opacity: 0.9; transform: translateY(0) scale(1); }
  44% { opacity: 0.4; transform: translateY(-3px) scale(0.7); }
  48% { opacity: 0.9; transform: translateY(0) scale(1.1); }
  52% { opacity: 0.5; transform: translateY(-2px) scale(0.8); }
  56% { opacity: 0.9; transform: translateY(0) scale(1); }
  60% { opacity: 0.4; transform: translateY(-3px) scale(0.7); }
  64% { opacity: 0.8; transform: translateY(0) scale(1); }
  72% { opacity: 0; transform: translateY(-4px) scale(0.4); }
  100% { opacity: 0; }
}

/* ===== RESTORED COLOR FILL (revealed at finish) ===== */
.brownstone-svg .restored-fill rect,
.brownstone-svg .restored-fill path {
  opacity: 0;
}

.hero-animation.playing .rf-facade { animation: fillFacade 16s ease forwards; }
.hero-animation.playing .rf-pattern { animation: fillPattern 16s ease forwards; }
.hero-animation.playing .rf-foundation { animation: fillFoundation 16s ease forwards; }
.hero-animation.playing .rf-cornice-1,
.hero-animation.playing .rf-cornice-2 { animation: fillCornice 16s ease forwards; }
.hero-animation.playing .rf-stoop { animation: fillStoop 16s ease forwards; }
.hero-animation.playing .rf-door { animation: fillDoor 16s ease forwards; }
.hero-animation.playing .rf-sky { animation: fillSky 16s ease forwards; }
.hero-animation.playing .rf-glass:nth-of-type(1) { animation: fillGlass 16s ease forwards; animation-delay: 0s; }
.hero-animation.playing .rf-glass:nth-of-type(2) { animation: fillGlass 16s ease forwards; animation-delay: 0.05s; }
.hero-animation.playing .rf-glass:nth-of-type(3) { animation: fillGlass 16s ease forwards; animation-delay: 0.1s; }
.hero-animation.playing .rf-glass:nth-of-type(4) { animation: fillGlass 16s ease forwards; animation-delay: 0.15s; }
.hero-animation.playing .rf-glass:nth-of-type(5) { animation: fillGlass 16s ease forwards; animation-delay: 0.2s; }
.hero-animation.playing .rf-glass:nth-of-type(6) { animation: fillGlass 16s ease forwards; animation-delay: 0.25s; }
.hero-animation.playing .rf-glass:nth-of-type(7) { animation: fillGlass 16s ease forwards; animation-delay: 0.3s; }
.hero-animation.playing .rf-glass:nth-of-type(8) { animation: fillGlass 16s ease forwards; animation-delay: 0.35s; }
.hero-animation.playing .rf-glass:nth-of-type(9) { animation: fillGlass 16s ease forwards; animation-delay: 0.4s; }
.hero-animation.playing .rf-glass:nth-of-type(10) { animation: fillGlass 16s ease forwards; animation-delay: 0.45s; }
.hero-animation.playing .rf-glass:nth-of-type(11) { animation: fillGlass 16s ease forwards; animation-delay: 0.5s; }

@keyframes fillFacade {
  0%, 68% { opacity: 0; }
  78% { opacity: 0.42; }
  100% { opacity: 0.42; }
}
@keyframes fillPattern {
  0%, 70% { opacity: 0; }
  82% { opacity: 0.85; }
  100% { opacity: 0.85; }
}
@keyframes fillFoundation {
  0%, 70% { opacity: 0; }
  80% { opacity: 0.55; }
  100% { opacity: 0.55; }
}
@keyframes fillCornice {
  0%, 68% { opacity: 0; }
  78% { opacity: 0.7; }
  100% { opacity: 0.7; }
}
@keyframes fillStoop {
  0%, 70% { opacity: 0; }
  80% { opacity: 0.55; }
  100% { opacity: 0.55; }
}
@keyframes fillDoor {
  0%, 72% { opacity: 0; }
  82% { opacity: 0.85; }
  100% { opacity: 0.85; }
}
@keyframes fillGlass {
  0%, 70% { opacity: 0; }
  80% { opacity: 0.55; }
  100% { opacity: 0.55; }
}
@keyframes fillSky {
  0%, 65% { opacity: 0; }
  82% { opacity: 1; }
  100% { opacity: 1; }
}

/* Stone courses */
.hero-animation.playing .stone-courses {
  animation: stoneShow 16s ease forwards;
}
@keyframes stoneShow {
  0%, 74% { opacity: 0; }
  85% { opacity: 0.55; }
  100% { opacity: 0.55; }
}

/* ===== COMPLETION CHECKMARK ===== */
.brownstone-svg .check-bg,
.brownstone-svg .check-mark {
  opacity: 0;
  transform-origin: 610px 60px;
}
.hero-animation.playing .check-bg {
  animation: checkBurst 16s ease forwards;
}
.hero-animation.playing .check-mark {
  animation: checkDraw 16s ease forwards;
}
@keyframes checkBurst {
  0%, 84% { opacity: 0; transform: scale(0.5); }
  90% { opacity: 1; transform: scale(1.2); }
  94%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes checkDraw {
  0%, 88% { opacity: 0; }
  93% { opacity: 1; }
  100% { opacity: 1; }
}

/* ===== CLIMBING WORKER (on ladder) ===== */
.brownstone-svg .worker-climber { opacity: 0; }
.hero-animation.playing .worker-climber {
  animation: climberShow 16s ease forwards;
}
@keyframes climberShow {
  0%, 30% { opacity: 0; }
  34% { opacity: 1; }
  56% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

.brownstone-svg .climber-figure {
  /* Inline transform translate(709, sidewalk-44) is the base position */
}
.hero-animation.playing .climber-figure {
  animation: climbLadder 16s ease-out forwards;
}
@keyframes climbLadder {
  /* Climbing translates upward by ~580px during the climb phase */
  0%, 32% { transform: translate(709px, 926px); }   /* SIDEWALK_Y - 44 = 970-44 = 926 */
  60% { transform: translate(709px, 340px); }
  100% { transform: translate(709px, 340px); }
}

/* Climbing legs/arms alternating */
.brownstone-svg .climb-leg-l { transform-origin: -4px 32px; }
.brownstone-svg .climb-leg-r { transform-origin: 4px 32px; }
.brownstone-svg .climb-arm-l { transform-origin: -6px 18px; }
.brownstone-svg .climb-arm-r { transform-origin: 6px 18px; }

.hero-animation.playing .climb-leg-l { animation: climbLegL 0.7s ease-in-out infinite; }
.hero-animation.playing .climb-leg-r { animation: climbLegR 0.7s ease-in-out infinite; }
.hero-animation.playing .climb-arm-l { animation: climbArmL 0.7s ease-in-out infinite; }
.hero-animation.playing .climb-arm-r { animation: climbArmR 0.7s ease-in-out infinite; }

@keyframes climbLegL {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(15deg); }
}
@keyframes climbLegR {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-10deg); }
}
@keyframes climbArmL {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
@keyframes climbArmR {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
}

/* ===== PEDESTRIAN walking across sidewalk ===== */
.brownstone-svg .pedestrian { opacity: 0; }
.hero-animation.playing .pedestrian {
  animation: pedShow 16s ease forwards;
}
@keyframes pedShow {
  0%, 44% { opacity: 0; }
  48% { opacity: 1; }
  74% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

.brownstone-svg .ped-figure {
  /* Inline transform translate(0, sidewalk-48) */
}
.hero-animation.playing .ped-figure {
  animation: pedWalk 16s linear forwards;
}
@keyframes pedWalk {
  /* Walk across the sidewalk: -50 → 850 over the visible window */
  0%, 46% { transform: translate(-50px, 922px); }
  76% { transform: translate(850px, 922px); }
  100% { transform: translate(850px, 922px); }
}

/* Pedestrian walking legs */
.brownstone-svg .ped-leg-l { transform-origin: -3px 34px; }
.brownstone-svg .ped-leg-r { transform-origin: 3px 34px; }
.hero-animation.playing .ped-leg-l { animation: pedLegL 0.55s ease-in-out infinite; }
.hero-animation.playing .ped-leg-r { animation: pedLegR 0.55s ease-in-out infinite; }
@keyframes pedLegL {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(16deg); }
}
@keyframes pedLegR {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-14deg); }
}

/* ===== BIRDS flying across the sky ===== */
.brownstone-svg .bird { opacity: 0; }
.hero-animation.playing .bird-1 {
  animation: birdFly 16s linear forwards;
  animation-delay: 0s;
}
.hero-animation.playing .bird-2 {
  animation: birdFly 16s linear forwards;
  animation-delay: 0.6s;
}
.hero-animation.playing .bird-3 {
  animation: birdFly 16s linear forwards;
  animation-delay: 1.1s;
}
@keyframes birdFly {
  0%, 38% { transform: translateX(-60px); opacity: 0; }
  41% { opacity: 0.6; }
  45% { opacity: 1; }
  70% { opacity: 1; }
  74% { opacity: 0; transform: translateX(860px); }
  100% { transform: translateX(860px); opacity: 0; }
}

/* Wing flap */
.hero-animation.playing .bird .wing-l { animation: wingFlapL 0.32s ease-in-out infinite; transform-origin: right; }
.hero-animation.playing .bird .wing-r { animation: wingFlapR 0.32s ease-in-out infinite; transform-origin: left; }
@keyframes wingFlapL {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(8deg); }
}
@keyframes wingFlapR {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-8deg); }
}

/* ===== STREET LAMP glow (brightens at end) ===== */
.brownstone-svg .lamp-glow,
.brownstone-svg .lamp-glow-inner {
  opacity: 0;
}
.hero-animation.playing .lamp-glow {
  animation: lampGlow 16s ease forwards;
}
.hero-animation.playing .lamp-glow-inner {
  animation: lampGlowInner 16s ease forwards;
}
@keyframes lampGlow {
  0%, 80% { opacity: 0; }
  93% { opacity: 0.5; }
  100% { opacity: 0.5; }
}
@keyframes lampGlowInner {
  0%, 80% { opacity: 0; }
  93% { opacity: 0.85; }
  100% { opacity: 0.85; }
}

/* ===== WINDOW LIGHTS (warm interior glow at end) ===== */
.brownstone-svg .rf-light { opacity: 0; }
.hero-animation.playing .rf-light {
  animation: lightOn 16s ease forwards;
}
.hero-animation.playing .rf-light:nth-of-type(1) { animation-delay: 0s; }
.hero-animation.playing .rf-light:nth-of-type(2) { animation-delay: 0.15s; }
.hero-animation.playing .rf-light:nth-of-type(3) { animation-delay: 0.3s; }
.hero-animation.playing .rf-light:nth-of-type(4) { animation-delay: 0.1s; }
.hero-animation.playing .rf-light:nth-of-type(5) { animation-delay: 0.25s; }
.hero-animation.playing .rf-light:nth-of-type(6) { animation-delay: 0.4s; }
.hero-animation.playing .rf-light:nth-of-type(7) { animation-delay: 0.2s; }
.hero-animation.playing .rf-light:nth-of-type(8) { animation-delay: 0.35s; }
.hero-animation.playing .rf-light:nth-of-type(9) { animation-delay: 0.5s; }

@keyframes lightOn {
  0%, 82% { opacity: 0; }
  92% { opacity: 0.55; }
  100% { opacity: 0.55; }
}

/* ===== HOUSE NUMBERS plaque (appears at end) ===== */
.brownstone-svg .house-numbers { opacity: 0; }
.hero-animation.playing .house-numbers {
  animation: detailReveal 16s ease forwards;
}

/* ===== PLANT BOXES (appear at end) ===== */
.brownstone-svg .plant-boxes { opacity: 0; }
.hero-animation.playing .plant-boxes {
  animation: detailReveal 16s ease forwards;
}

/* ===== WELCOME MAT (appears at end) ===== */
.brownstone-svg .welcome-mat { opacity: 0; }
.hero-animation.playing .welcome-mat {
  animation: detailReveal 16s ease forwards;
}

@keyframes detailReveal {
  0%, 84% { opacity: 0; transform: translateY(2px); }
  94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== DRIFTING DUST CLOUDS (during work phase) ===== */
.brownstone-svg .drift { opacity: 0; }
.hero-animation.playing .drift-1 { animation: driftCloud 16s ease infinite; animation-delay: 0s; }
.hero-animation.playing .drift-2 { animation: driftCloud 16s ease infinite; animation-delay: 0.3s; }
.hero-animation.playing .drift-3 { animation: driftCloud 16s ease infinite; animation-delay: 0.6s; }
.hero-animation.playing .drift-4 { animation: driftCloud 16s ease infinite; animation-delay: 0.9s; }

@keyframes driftCloud {
  0%, 38% { opacity: 0; transform: translateY(0) scale(0.5); }
  44% { opacity: 0.25; transform: translateY(-6px) scale(0.85); }
  56% { opacity: 0.18; transform: translateY(-16px) scale(1.1); }
  68% { opacity: 0; transform: translateY(-28px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-28px) scale(1.3); }
}

/* ===== COMPANY VAN (arrives, parks, departs) ===== */
.brownstone-svg .company-van { opacity: 0; }
.hero-animation.playing .company-van {
  animation: vanVisible 16s ease forwards;
}
@keyframes vanVisible {
  0%, 12% { opacity: 0; }
  16% { opacity: 1; }
  88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

.brownstone-svg .van-figure {
  /* Base inline transform is translate(-300, 964) — off-screen left */
}
.hero-animation.playing .van-figure {
  animation: vanDrive 16s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
@keyframes vanDrive {
  /* Off-screen left initially */
  0%, 14% { transform: translate(-300px, 964px); }
  /* Drive in (rolling motion) — arrives by ~4s (25%) */
  22% { transform: translate(150px, 964px); }
  /* Slow to a stop at parked position */
  27% { transform: translate(110px, 964px); }
  /* Hold parked position for the work phase */
  82% { transform: translate(110px, 964px); }
  /* Drive away to the right */
  94% { transform: translate(900px, 964px); }
  100% { transform: translate(900px, 964px); }
}

/* Wheels rotate when van is moving */
.brownstone-svg .van-wheel {
  transform-origin: center;
}
.hero-animation.playing .van-wheel-rear {
  animation: wheelSpin 16s linear forwards;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-animation.playing .van-wheel-front {
  animation: wheelSpin 16s linear forwards;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes wheelSpin {
  0%, 13% { transform: rotate(0deg); }
  /* Spinning while driving in */
  27% { transform: rotate(540deg); }
  /* Stopped while parked */
  82% { transform: rotate(540deg); }
  /* Spinning while driving away */
  94% { transform: rotate(1620deg); }
  100% { transform: rotate(1620deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-animation { height: 760px; margin-top: var(--s5); }
  .brownstone-svg { max-height: 700px; max-width: 580px; }
}
@media (max-width: 600px) {
  .hero-animation { height: 600px; }
  .brownstone-svg { max-width: 400px; max-height: 540px; }
  .stage-counter { min-width: 180px; font-size: 10px; }
}


/* ============== PROLOGUE ============== */
.prologue {
  padding: var(--s9) 0 var(--s8);
  border-top: 1px solid var(--rule);
}

.prologue-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s7);
  align-items: start;
}

.chapter-label-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding-top: 14px;
  position: sticky;
  top: 280px;
}

.chapter-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--wine);
}

.chapter-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
}

.prologue-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--s5);
  max-width: 22ch;
}
.prologue-h em {
  font-style: italic;
  color: var(--wine);
  font-weight: 400;
  display: block;
}

.prologue-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 62ch;
  margin-bottom: var(--s5);
}
.prologue-body p + p { margin-top: 1.2em; }
.prologue-body strong { color: var(--ink); font-weight: 600; }

.prologue-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  max-width: 62ch;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--wine);
  font-weight: 500;
}
.pillar-text {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .prologue-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .chapter-label-block { position: static; flex-direction: row; align-items: center; }
  .prologue-pillars { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ============== CHAPTERS ============== */
.chapter {
  padding: var(--s8) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.chapter-odd { background: var(--paper); }
.chapter-even { background: var(--paper-2); }

.chapter-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s7);
  align-items: center;
}
.chapter-grid-reverse {
  /* same layout, but reads with photo on left when reversed in HTML */
}

.chapter-text {
  position: relative;
}

.chapter-tag {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule-strong);
}
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--wine);
  line-height: 1;
  letter-spacing: -0.01em;
}
.chapter-domain {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.chapter-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.chapter-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.35;
  color: var(--wine);
  margin-bottom: var(--s5);
  max-width: 36ch;
  font-weight: 500;
}

.chapter-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 58ch;
  margin-bottom: var(--s5);
}
.chapter-body p + p { margin-top: 1.2em; }
.chapter-body strong { color: var(--ink); font-weight: 600; }
.chapter-body em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}

.chapter-subhead {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}

.chapter-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 58ch;
}
.chapter-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.chapter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--wine);
}
.chapter-list li strong { color: var(--ink); font-weight: 600; }

/* Chapter photo card */
.chapter-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--paper-3);
  aspect-ratio: 4/5;
}
.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.chapter-photo:hover img { transform: scale(1.04); }

.chapter-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s4);
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, transparent 100%);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chapter-photo .caption-eye {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}
.chapter-photo .caption-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.75);
}

/* Special callout in landmark chapter */
/* Next-chapter cross-link */
.chapter-next-link {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule-strong);
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chapter-next-link .next-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chapter-next-link a {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.chapter-next-link a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.landmark-callout {
  margin-top: var(--s5);
  padding: var(--s4) var(--s4);
  background: var(--paper);
  border-left: 3px solid var(--wine);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 58ch;
}
.landmark-callout .callout-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}
.landmark-callout .callout-text {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}
.landmark-callout a {
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  font-style: italic;
}

/* Reversed chapter — photo appears first visually */
.chapter-grid-reverse .chapter-photo { grid-column: 1; grid-row: 1; }
.chapter-grid-reverse .chapter-text { grid-column: 2; grid-row: 1; }

@media (max-width: 900px) {
  .chapter { padding: var(--s7) 0; }
  .chapter-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .chapter-grid-reverse .chapter-photo,
  .chapter-grid-reverse .chapter-text { grid-column: 1; }
  .chapter-grid-reverse .chapter-photo { grid-row: 2; }
  .chapter-grid-reverse .chapter-text { grid-row: 1; }
  .chapter-photo { aspect-ratio: 4/3; }
}

/* ============== SHARED SECTION HEADER ============== */
.section-header {
  margin-bottom: var(--s7);
  max-width: 800px;
}
.section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.section-eyebrow-center {
  justify-content: center;
}
.section-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.section-h em {
  font-style: italic;
  color: var(--wine);
  font-weight: 400;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 60ch;
}
.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============== SELECTED WORK (gallery) ============== */
.selected-work {
  padding: var(--s9) 0;
  border-top: 1px solid var(--rule);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.work-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--paper-3);
  aspect-ratio: 4/5;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover img { transform: scale(1.04); }
.work-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s3);
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, transparent 100%);
  color: var(--paper);
}
.work-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
}
.work-meta {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.75);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ============== RECOGNITION (reviews) ============== */
.recognition {
  padding: var(--s9) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.score-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin-top: var(--s5);
  margin-bottom: var(--s7);
  flex-wrap: wrap;
}
.big-score {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(72px, 9vw, 144px);
  line-height: 1;
  color: var(--wine);
  letter-spacing: -0.03em;
}
.score-meta { text-align: left; }
.score-stars {
  color: var(--wine);
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.score-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.review {
  padding: var(--s5);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.review:hover {
  border-color: var(--wine);
  transform: translateY(-3px);
}
.review .quote {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
  margin-bottom: var(--s4);
}
.review .quote::before {
  content: "“";
  font-size: 1.5em;
  color: var(--wine);
  display: inline-block;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 4px;
}
.review-attrib {
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}
.review .stars {
  color: var(--wine);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.review-src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

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

/* ============== FOUNDER ============== */
.founder {
  padding: var(--s9) 0;
  border-top: 1px solid var(--rule);
}
.founder-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s7);
  align-items: center;
}
.founder-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4/5;
  background: var(--paper-3);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.founder-photo:hover img { transform: scale(1.04); }
.founder-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s4);
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, transparent 100%);
  color: var(--paper);
}
.founder-photo .caption-eye {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 4px;
}
.founder-photo .caption-meta {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.75);
}

.founder-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 62ch;
  margin-bottom: var(--s5);
}
.founder-body p + p { margin-top: 1.2em; }
.founder-body strong { color: var(--ink); font-weight: 600; }

.founder-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .founder-pillars { grid-template-columns: 1fr; }
}

/* ============== COVERAGE (neighborhoods) ============== */
.coverage {
  padding: var(--s9) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.borough-list {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}
.borough {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s4);
}
.borough-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--wine);
  margin-bottom: var(--s3);
}
.neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
}
.neighborhoods span {
  display: inline-block;
  padding-right: 14px;
  position: relative;
  transition: color 0.25s ease;
  cursor: default;
}
.neighborhoods span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 4px;
  color: var(--ink-faint);
}
.neighborhoods span:hover {
  color: var(--wine);
  font-style: italic;
}

@media (max-width: 600px) {
  .neighborhoods { font-size: 18px; }
}
/* ============== FAQ (SEO) ============== */
.faq {
  padding: var(--s9) 0;
  border-top: 1px solid var(--rule);
}
.faq-header {
  margin-bottom: var(--s6);
  max-width: 800px;
}

.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s4) 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.25s ease;
  gap: 24px;
}
.faq-item summary:hover { color: var(--wine); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ico {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--wine);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 400;
}
.faq-item[open] .ico { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 0 var(--s5);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 72ch;
}
.faq-item .answer p + p { margin-top: 1em; }
.faq-item .answer strong { color: var(--ink); font-weight: 600; }
.faq-item .answer a { color: var(--wine); border-bottom: 1px solid var(--wine); }

@media (max-width: 900px) {
  .faq-head { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ============== FINAL CTA ============== */
/* ============== FINAL CTA ============== */
.final-cta {
  padding: var(--s9) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
}
.cta-content { max-width: 800px; margin: 0 auto; }
.final-cta .section-eyebrow {
  justify-content: center;
  margin-bottom: var(--s4);
}
.final-cta .chapter-rule { background: var(--tan-2); }
.final-cta .chapter-eyebrow { color: var(--tan-2); }

.cta-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: var(--s4);
}
.cta-h em { font-style: italic; color: var(--tan-2); font-weight: 400; }
.cta-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(246, 241, 232, 0.75);
  max-width: 56ch;
  margin: 0 auto var(--s6);
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.final-cta .btn:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}
.final-cta .btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.final-cta .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============== FOOTER ============== */
footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s7) 0 var(--s4);
}
footer.site .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
  margin-bottom: var(--s4);
}
footer.site .brand-block img {
  height: 60px;
  width: auto;
  margin-bottom: var(--s4);
}
footer.site .brand-block p {
  font-size: 14px;
  color: rgba(246, 241, 232, 0.7);
  line-height: 1.65;
  max-width: 34ch;
  margin-bottom: var(--s4);
}
footer.site .brand-block .contact {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--paper);
  letter-spacing: 0.04em;
}
footer.site .brand-block .contact a:hover { color: var(--tan-2); }

footer.site h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-2);
  margin-bottom: var(--s3);
}
footer.site ul li { margin-bottom: 10px; }
footer.site ul a {
  font-size: 14px;
  color: rgba(246, 241, 232, 0.7);
  transition: color 0.2s ease;
}
footer.site ul a:hover { color: var(--paper); }

footer.site .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  footer.site .top { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  footer.site .brand-block { grid-column: span 2; }
}
@media (max-width: 600px) {
  footer.site .top { grid-template-columns: 1fr; }
  footer.site .brand-block { grid-column: span 1; }
}

/* ============== FADE-IN ============== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.in { opacity: 1; transform: translateY(0); }

.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; }

/* ==================================================================
   SUBPAGE STYLES (v22 - multi-page SEO build)
   ================================================================== */

/* ============== BREADCRUMBS ============== */
.breadcrumbs {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.breadcrumbs .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumb-current { color: var(--ink); }
.breadcrumb-sep { color: var(--ink-faint); margin: 0 2px; }

/* ============== PAGE HERO (subpage) ============== */
.page-hero {
  padding: var(--s8) 0 var(--s7);
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s7);
  align-items: center;
}
.page-hero-text { max-width: 640px; }
.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--s3);
}
.page-hero-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.page-hero-h em {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}
.page-hero-lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: var(--s5);
  max-width: 58ch;
}
.page-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-hero-image {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-3);
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .page-hero { padding: var(--s6) 0 var(--s5); }
  .page-hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .page-hero-image { aspect-ratio: 4/3; }
}

/* ============== SERVICE INTRO ============== */
.service-intro,
.neighborhood-intro,
.neighborhood-history,
.neighborhood-challenges,
.neighborhood-work,
.about-body {
  padding: var(--s7) 0;
  border-bottom: 1px solid var(--rule);
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s6);
  align-items: start;
}
.service-intro-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding-top: 8px;
}
.service-intro-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 64ch;
}
.service-intro-body p + p { margin-top: 1.2em; }
.service-intro-body strong { color: var(--ink); font-weight: 600; }
.service-intro-body em {
  font-style: italic;
  color: var(--wine);
}

@media (max-width: 900px) {
  .service-intro-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

/* ============== SERVICE PROCESS ============== */
.service-process { padding: var(--s8) 0; background: var(--paper-2); }

.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 920px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--wine);
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.process-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
}
@media (max-width: 600px) {
  .process-step { grid-template-columns: 50px 1fr; gap: var(--s3); }
  .process-num { font-size: 28px; }
}

/* ============== MATERIALS ============== */
.service-materials {
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--rule);
}
.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.materials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.materials-list li {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
}
.materials-list li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
@media (max-width: 900px) {
  .materials-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

/* ============== FAILURES ============== */
.service-failures {
  padding: var(--s8) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.failures-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  max-width: 1100px;
  margin: 0 auto;
}
.failures-list li {
  padding: var(--s4);
  background: var(--paper);
  border-left: 3px solid var(--wine);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.failures-list li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) {
  .failures-list { grid-template-columns: 1fr; }
}

/* ============== RELATED & GRID ============== */
.related-block {
  padding: var(--s7) 0;
  border-bottom: 1px solid var(--rule);
}
.related-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 800px;
}
.related-list li a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.25s ease;
}
.related-list li a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============== NEIGHBORHOOD FACTS SIDEBAR ============== */
.neighborhood-facts {
  background: var(--paper-2);
  padding: var(--s5);
  border-left: 3px solid var(--wine);
}
.neighborhood-facts h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
  color: var(--ink);
}
.neighborhood-facts dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
}
.neighborhood-facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}
.neighborhood-facts dd {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* ============== SERVICE GRID (in neighborhood pages) ============== */
.related-services-section {
  padding: var(--s8) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.service-card {
  display: block;
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.service-card:hover {
  border-color: var(--wine);
  transform: translateY(-3px);
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ============== HUB PAGES (services/neighborhoods/guides) ============== */
.hub-hero {
  padding: var(--s8) 0 var(--s6);
  text-align: center;
}
.hub-hero .page-hero-eyebrow,
.hub-hero .page-hero-h,
.hub-hero .page-hero-lede {
  margin-left: auto;
  margin-right: auto;
}
.hub-hero .page-hero-lede { max-width: 720px; }
.hub-list { padding: var(--s7) 0; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
}
.hub-card:hover {
  border-color: var(--wine);
  transform: translateY(-4px);
}
.hub-card figure {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-3);
}
.hub-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hub-card:hover figure img { transform: scale(1.04); }
.hub-card-body {
  padding: var(--s4);
}
.hub-card-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.hub-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.hub-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: var(--s2);
}
.hub-card-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}
@media (max-width: 700px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* ============== NEIGHBORHOOD HUB CARDS ============== */
.nbhd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.nbhd-card {
  display: block;
  padding: var(--s5);
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.nbhd-card:hover {
  border-color: var(--wine);
  transform: translateY(-3px);
}
.nbhd-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nbhd-borough { color: var(--wine); }
.nbhd-era { color: var(--ink-muted); }
.nbhd-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.nbhd-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: var(--s3);
}
.nbhd-card-link {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}
@media (max-width: 900px) { .nbhd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nbhd-grid { grid-template-columns: 1fr; } }

/* ============== GUIDE / ARTICLE LAYOUT ============== */
.guide {
  padding: 0 0 var(--s7);
}
.guide-header {
  padding: var(--s7) 0 var(--s5);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.guide-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--s3);
  max-width: 22ch;
}
.guide-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: italic;
  line-height: 1.4;
  color: var(--wine);
  max-width: 58ch;
  font-weight: 400;
}
.guide-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s6);
  padding-top: var(--s5);
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 120px;
  padding: var(--s4);
  background: var(--paper-2);
  border-left: 3px solid var(--wine);
}
.guide-toc h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--s3);
}
.guide-toc ol {
  list-style: none;
  counter-reset: toc;
  margin-bottom: var(--s4);
}
.guide-toc li {
  counter-increment: toc;
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.4;
}
.guide-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
}
.guide-toc a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.guide-toc a:hover { color: var(--wine); }
.guide-aside-cta {
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}
.guide-aside-cta p {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: var(--s2);
}
.guide-body { max-width: 65ch; }
.guide-section {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.guide-section:last-child { border-bottom: none; }
.guide-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.guide-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 1.1em;
}
.guide-section p strong { color: var(--ink); font-weight: 600; }
.guide-section p em { font-style: italic; color: var(--wine); }
.guide-section ul {
  padding-left: 24px;
  margin-bottom: 1.1em;
}
.guide-section ul li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.guide-section ul li strong { color: var(--ink); font-weight: 600; }
.guide-related { padding-top: var(--s4); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .guide-toc { position: static; }
}

/* ============== ABOUT PAGE ============== */
.about-credentials {
  padding: var(--s8) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.cred-item {
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.cred-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.cred-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 900px) { .credentials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .credentials-grid { grid-template-columns: 1fr; } }

/* ============== CONTACT PAGE ============== */
.contact-section { padding: var(--s7) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s7);
  align-items: start;
}
.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s4);
}
.contact-block {
  padding-bottom: var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.contact-block:last-child { border-bottom: none; }
.contact-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--s2);
}
.contact-block p, .contact-block address {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  font-style: normal;
  margin-bottom: 4px;
}
.contact-big-link {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.contact-big-link:hover { color: var(--wine); }
.contact-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted) !important;
}
.contact-block a:not(.contact-big-link) {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-block a:not(.contact-big-link):hover {
  color: var(--wine);
  border-color: var(--wine);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wine);
}
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: var(--s2); }
.form-disclaimer {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: var(--s2);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
}


/* Deep service page link from homepage chapter */
.chapter-deep-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 2px;
  margin-top: 6px;
  transition: opacity 0.2s ease;
}
.chapter-deep-link:hover { opacity: 0.7; }
.chapter-next-link .chapter-deep-link {
  margin-top: 8px;
  display: block;
}
