.city-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.city-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  padding-inline: 0;
}

.city-hero-copy {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 6vw, 88px);
}

.city-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.city-summary {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.city-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 32px;
}

.city-contact-pair {
  display: grid;
  gap: 4px;
  font-size: 18px;
  font-weight: 750;
}

.city-contact-pair a {
  overflow-wrap: anywhere;
}

.city-inspection-note {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border-left: 1px solid var(--line-dark);
  background: var(--cream);
  padding: clamp(52px, 5vw, 76px);
}

.city-inspection-note h2 {
  max-width: 650px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.city-inspection-note > p:last-child {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.city-section {
  padding-block: clamp(72px, 8vw, 116px);
}

.city-section h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.neighborhood-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line-dark);
}

.neighborhood-list span {
  min-height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 12px 0;
  font-weight: 700;
}

.neighborhood-list span:nth-child(3n + 2),
.neighborhood-list span:nth-child(3n + 3) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.city-footer-links {
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}

@media (max-width: 900px) {
  .city-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .city-hero-copy,
  .city-inspection-note {
    min-height: 0;
    padding: 50px 30px 56px;
  }

  .city-hero h1 {
    font-size: clamp(48px, 10vw, 68px);
  }

  .city-inspection-note {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

}

@media (max-width: 620px) {
  .city-hero-copy,
  .city-inspection-note {
    padding: 42px 22px 48px;
  }

  .city-hero h1 {
    font-size: clamp(44px, 12vw, 58px);
    line-height: 1;
  }

  :lang(zh-Hans) .city-hero h1 {
    font-size: clamp(38px, 10vw, 42px);
    line-height: 1.12;
  }

  .city-summary {
    margin-top: 20px;
    font-size: 18px;
  }

  .city-hero-actions,
  .city-hero-actions .button,
  .city-contact-pair {
    width: 100%;
  }

  .city-contact-pair {
    font-size: 18px;
  }

  .city-section {
    padding-block: 70px;
  }

  .city-section h2 {
    font-size: 42px;
  }

  .city-inspection-note h2 {
    font-size: 38px;
    line-height: 1.12;
  }

  .city-inspection-note > p:last-child {
    margin-top: 20px;
    font-size: 18px;
  }

  .neighborhood-list {
    grid-template-columns: 1fr;
  }

  .neighborhood-list span,
  .neighborhood-list span:nth-child(3n + 2),
  .neighborhood-list span:nth-child(3n + 3) {
    min-height: 58px;
    border-left: 0;
    padding-inline: 0;
  }

  .city-footer-links {
    grid-template-columns: 1fr;
  }
}

/* Evidence-backed city redesign pilot: San Jose, Menlo Park, and San Mateo. */
.city-pilot .city-pilot-hero {
  background: var(--surface);
}

.city-pilot .city-pilot-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  padding-block: clamp(48px, 6vw, 78px);
}

.city-pilot .city-pilot-hero-copy {
  padding-left: clamp(6px, 1.5vw, 22px);
}

.city-pilot .city-pilot-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.city-pilot .city-pilot-hero-media {
  color: inherit;
  text-decoration: none;
}

.city-pilot .city-pilot-hero-media figure {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(29, 26, 22, 0.15);
}

.city-pilot .city-pilot-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.city-pilot .city-pilot-hero-media:hover img {
  transform: scale(1.015);
}

.city-pilot .city-pilot-hero-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.94);
  padding: 12px 16px;
  color: var(--warm-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.city-pilot .city-pilot-trust-wrap {
  background: var(--apricot);
}

.city-pilot .city-pilot-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-pilot .city-pilot-trust-item {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(22px, 3vw, 42px);
  color: inherit;
  text-decoration: none;
}

.city-pilot .city-pilot-trust-item + .city-pilot-trust-item {
  border-left: 1px solid rgba(92, 52, 38, 0.24);
}

.city-pilot a.city-pilot-trust-item:hover span {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.city-pilot .city-pilot-trust-item strong {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.city-pilot .city-pilot-trust-item span {
  color: var(--warm-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.city-pilot .city-pilot-section {
  padding-block: clamp(72px, 8vw, 112px);
}

.city-pilot .city-pilot-section:nth-of-type(even) {
  background: var(--surface);
}

.city-pilot .city-pilot-heading {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.city-pilot .city-pilot-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.68fr);
  align-items: end;
  justify-content: space-between;
  gap: 28px clamp(40px, 7vw, 110px);
}

.city-pilot .city-pilot-heading h2,
.city-pilot .city-pilot-project-copy h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.city-pilot .city-pilot-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.city-pilot .city-pilot-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.city-pilot .city-pilot-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  padding: clamp(24px, 2.5vw, 34px);
}

.city-pilot .city-pilot-card > span {
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.city-pilot .city-pilot-card h3,
.city-pilot .city-pilot-observation h3,
.city-pilot .city-pilot-step h3,
.city-pilot .city-pilot-resource h3 {
  margin: 36px 0 0;
  font-size: clamp(23px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.city-pilot .city-pilot-card p,
.city-pilot .city-pilot-observation p,
.city-pilot .city-pilot-step p,
.city-pilot .city-pilot-resource p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.city-pilot .city-pilot-inspection {
  background: var(--cream) !important;
}

.city-pilot .city-pilot-observation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.city-pilot .city-pilot-observation {
  min-height: 248px;
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(24px, 3vw, 38px);
}

.city-pilot .city-pilot-observation-number {
  display: inline-flex;
  min-width: 48px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--apricot);
  color: var(--umber);
  font-size: 16px;
  font-weight: 850;
}

.city-pilot .city-pilot-observation h3 {
  margin-top: 28px;
}

.city-pilot .city-pilot-project-section {
  background: var(--paper) !important;
}

.city-pilot .city-pilot-project {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  overflow: hidden;
}

.city-pilot .city-pilot-project-media {
  min-height: 520px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.city-pilot .city-pilot-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.city-pilot .city-pilot-project-media:hover img {
  transform: scale(1.015);
}

.city-pilot .city-pilot-project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
}

.city-pilot .city-pilot-project-kicker {
  margin: 0 0 18px;
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.city-pilot .city-pilot-project-copy > p:not(.city-pilot-project-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.city-pilot .city-pilot-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
}

.city-pilot .city-pilot-project-facts div {
  border-radius: 14px;
  background: var(--cream);
  padding: 16px;
}

.city-pilot .city-pilot-project-facts dt {
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.city-pilot .city-pilot-project-facts dd {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.city-pilot .city-pilot-text-link {
  align-self: flex-start;
  margin-top: 30px;
  color: var(--red-dark);
  font-weight: 850;
}

.city-pilot .city-pilot-process {
  background: var(--surface) !important;
}

.city-pilot .city-pilot-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-pilot .city-pilot-step {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  padding: clamp(24px, 3vw, 38px);
}

.city-pilot .city-pilot-step-number {
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.city-pilot .city-pilot-step h3 {
  margin-top: 34px;
}

.city-pilot .city-pilot-resources {
  background: var(--clay) !important;
}

.city-pilot .city-pilot-resources .city-pilot-heading p {
  color: var(--warm-ink);
}

.city-pilot .city-pilot-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.city-pilot .city-pilot-resource {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  padding: clamp(24px, 3vw, 36px);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.city-pilot .city-pilot-resource:hover {
  box-shadow: 0 14px 30px rgba(92, 52, 38, 0.16);
  transform: translateY(-3px);
}

.city-pilot .city-pilot-resource h3 {
  margin-top: 0;
}

.city-pilot .city-pilot-resource > span {
  margin-top: auto;
  padding-top: 20px;
  color: var(--red-dark);
  font-size: 26px;
  font-weight: 800;
}

.city-pilot .city-pilot-neighborhoods {
  background: var(--paper) !important;
}

.city-pilot .city-pilot-neighborhood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.city-pilot .city-pilot-neighborhood-group {
  margin-bottom: 32px;
}

.city-pilot .city-pilot-neighborhood-group h3 {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 21px;
  font-weight: 800;
}

.city-pilot .city-pilot-neighborhood-group p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.city-pilot .city-pilot-neighborhood-list span {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  padding: 10px 20px;
  font-size: 17px;
  font-weight: 750;
}

@media (max-width: 1060px) {
  .city-pilot .city-pilot-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 34px;
  }

  .city-pilot .city-pilot-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-pilot .city-pilot-card {
    min-height: 230px;
  }

  .city-pilot .city-pilot-project {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .city-pilot .city-pilot-hero-grid,
  .city-pilot .city-pilot-heading-split,
  .city-pilot .city-pilot-project {
    grid-template-columns: 1fr;
  }

  .city-pilot .city-pilot-hero-copy {
    padding-left: 0;
  }

  .city-pilot .city-pilot-hero-media {
    width: 100%;
  }

  .city-pilot .city-pilot-trust {
    grid-template-columns: 1fr;
  }

  .city-pilot .city-pilot-trust-item {
    min-height: 96px;
  }

  .city-pilot .city-pilot-trust-item + .city-pilot-trust-item {
    border-top: 1px solid rgba(92, 52, 38, 0.24);
    border-left: 0;
  }

  .city-pilot .city-pilot-heading-split {
    align-items: start;
  }

  .city-pilot .city-pilot-observation-grid,
  .city-pilot .city-pilot-process-grid,
  .city-pilot .city-pilot-resource-grid {
    grid-template-columns: 1fr;
  }

  .city-pilot .city-pilot-observation,
  .city-pilot .city-pilot-step,
  .city-pilot .city-pilot-resource {
    min-height: 0;
  }

  .city-pilot .city-pilot-project-media {
    min-height: 0;
  }

  .city-pilot .city-pilot-project-media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 620px) {
  .city-pilot .city-pilot-hero-grid {
    gap: 30px;
    padding-block: 38px 44px;
  }

  .city-pilot .city-pilot-hero h1 {
    font-size: clamp(42px, 12vw, 54px);
    line-height: 1.02;
  }

  :lang(zh-Hans) .city-pilot .city-pilot-hero h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.12;
  }

  .city-pilot .city-pilot-hero-media figure,
  .city-pilot .city-pilot-project {
    border-radius: 18px;
  }

  .city-pilot .city-pilot-hero-media figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .city-pilot .city-pilot-section {
    padding-block: 68px;
  }

  .city-pilot .city-pilot-heading {
    margin-bottom: 28px;
  }

  .city-pilot .city-pilot-heading h2,
  .city-pilot .city-pilot-project-copy h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  :lang(zh-Hans) .city-pilot .city-pilot-heading h2,
  :lang(zh-Hans) .city-pilot .city-pilot-project-copy h2 {
    font-size: 34px;
    line-height: 1.18;
  }

  .city-pilot .city-pilot-heading p {
    font-size: 18px;
  }

  .city-pilot .city-pilot-service-grid {
    grid-template-columns: 1fr;
  }

  .city-pilot .city-pilot-card {
    min-height: 0;
  }

  .city-pilot .city-pilot-card h3 {
    margin-top: 24px;
  }

  .city-pilot .city-pilot-project-copy {
    padding: 30px 22px 34px;
  }

  .city-pilot .city-pilot-project-facts {
    grid-template-columns: 1fr;
  }

  .city-pilot .city-pilot-neighborhood-group h3 {
    font-size: 19px;
  }

  .city-pilot .city-pilot-neighborhood-group p {
    font-size: 18px;
  }

  .city-pilot .city-pilot-neighborhood-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .city-pilot .city-pilot-neighborhood-list span {
    min-height: 48px;
    justify-content: center;
    padding: 9px 12px;
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .city-pilot .city-pilot-neighborhood-list {
    grid-template-columns: 1fr;
  }
}
