:root {
  --steel: #55626a;
  --steel-light: #8996a4;
  --violet: #736db4;
  --red: #c32321;
  --ink: #26292b;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --line: #e2eaec;
  --shadow: 0 10px 20px rgba(85, 98, 106, .2);
  --container: 120rem;
  --page-pad: 6.25rem;
  --radius: .125rem;
  --font-light: Arial, sans-serif;
  --font-base: Arial, sans-serif;
  --header-height: 7.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

main { padding-top: var(--header-offset, var(--header-height)); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-family: var(--font-light); font-weight: 300; }
h1 { font-size: clamp(2.5rem, 5vw, 5.25rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.15; color: var(--steel); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.65rem); line-height: 1.35; color: var(--steel); }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--page-pad);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
  min-height: var(--header-height);
  color: var(--steel);
  background: #fff;
  box-shadow: 0 2px 12px rgba(85,98,106,.12);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}

.site-header.is-sticky,
.site-header.menu-open {
  background: #fff;
  color: var(--steel);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 11rem;
  color: inherit;
}

.brand-logo {
  width: 11rem;
  height: auto;
}

.brand-logo-steel { display: block; }
.site-header.is-sticky .brand-logo-white,
.site-header.menu-open .brand-logo-white { display: none; }
.site-header.is-sticky .brand-logo-steel,
.site-header.menu-open .brand-logo-steel { display: block; }
.footer-brand .brand-logo-steel { display: block; }
.footer-brand .brand-logo-white { display: none; }

.partner-logos {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(85,98,106,.25);
}

.partner-logo {
  display: block;
  width: auto;
  max-width: 6.75rem;
  height: 2.35rem;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: filter .25s ease, opacity .25s ease;
}

.partner-logo-city { height: 2.5rem; }
.partner-logo-empathy { height: 1.65rem; }

.site-header.is-sticky .partner-logos,
.site-header.menu-open .partner-logos { border-left-color: rgba(85,98,106,.25); }

.site-header.is-sticky .partner-logo,
.site-header.menu-open .partner-logo {
  filter: none;
  opacity: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  margin-left: auto;
  font-size: .95rem;
}

.nav-link {
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active { color: var(--red); }

.tab-link.is-active {
  color: #fff;
  background: var(--steel-light);
  border-color: var(--steel-light);
}

.budget-line {
  margin-bottom: 1rem;
  color: var(--red);
  font-family: var(--font-light);
  font-size: 1.25rem;
}

.rich-text p + p { margin-top: .75rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-link {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,.35);
}

.site-header.is-sticky .lang-link,
.site-header.menu-open .lang-link { border-left-color: rgba(85,98,106,.35); }

.menu-button {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: .35rem auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  background: #fff;
  color: var(--steel);
}

.hero {
  position: relative;
  min-height: 51.25rem;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-small { min-height: 31rem; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,41,43,.88), rgba(38,41,43,.48) 44%, rgba(38,41,43,.2));
}

.theme-city .hero-overlay { background: linear-gradient(90deg, rgba(38,41,43,.82), rgba(85,98,106,.48), rgba(38,41,43,.18)); }
.theme-people .hero-overlay { background: linear-gradient(90deg, rgba(38,41,43,.8), rgba(115,109,180,.36), rgba(38,41,43,.12)); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 74rem;
}

.hero-content-centered {
  display: flex;
  min-height: inherit;
  padding-top: 4rem;
  padding-bottom: 4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content-centered h1 {
  max-width: 74rem;
}

.hero-content p {
  max-width: 54rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.86);
  font-family: var(--font-light);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.section-label,
.eyebrow {
  display: inline-block;
  color: var(--steel-light);
  font-size: .95rem;
  line-height: 1.5;
  letter-spacing: .02em;
}

.section-label,
.eyebrow {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.section { padding: 6.25rem 0; }
.section-intro { background: var(--paper); }
.section-directions { padding-top: 2rem; }

.intro-grid,
.section-head,
.split-section {
  display: grid;
  grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.35fr);
  gap: 4rem;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 1.25rem;
  color: var(--steel);
}

.section-head {
  align-items: end;
  margin-bottom: 2.5rem;
}

.link-arrow {
  justify-self: end;
  color: var(--steel-light);
  font-size: 1rem;
}

.link-arrow:hover { color: var(--red); }

.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--container);
  margin: 0 auto;
}

.direction-card {
  position: relative;
  min-height: 15rem;
  padding: 2.75rem 2rem;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(39,53,61,.12);
  transition: background 1.5s ease;
}

.direction-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.direction-card:hover::after,
.direction-card:focus-visible::after { background: rgba(39,53,61,.58); }
.direction-card:hover img,
.direction-card:focus-visible img { transform: scale(1.08); }

.direction-card-title {
  font-family: var(--font-light);
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.28;
  text-shadow: 0 1px 1px rgba(0,0,0,.33);
}

.direction-card-title span {
  display: block;
  margin-bottom: .65rem;
  font-size: .95rem;
  color: rgba(255,255,255,.78);
}

.direction-card-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.25rem;
  font-size: 1.8rem;
  opacity: 0;
  transform: translateX(-.75rem);
  transition: opacity .35s ease, transform .35s ease;
}

.direction-card:hover .direction-card-arrow,
.direction-card:focus-visible .direction-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.empathy-teaser {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.empathy-teaser-bg,
.empathy-teaser-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.empathy-teaser-bg img {
  object-fit: cover;
  opacity: .62;
}

.empathy-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,41,43,.92), rgba(38,41,43,.35));
}

.empathy-teaser-content {
  position: relative;
  z-index: 1;
  max-width: 58rem;
}

.empathy-teaser h2 { color: #fff; }
.empathy-teaser p:not(.section-label) { margin: 1.25rem 0 2rem; max-width: 42rem; color: rgba(255,255,255,.86); }

.btn {
  display: inline-block;
  font-family: var(--font-light);
  font-size: 1.15rem;
  color: #fff;
  background: var(--steel-light);
  border-radius: var(--radius);
  padding: .75rem 2.25rem;
  transition: background .35s ease;
}

.btn:hover,
.btn:focus-visible { background: #72808e; }

.tabs,
.empathy-nav {
  position: sticky;
  top: 6rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
  padding: 1rem;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(85,98,106,.08);
}

.empathy-nav-section { padding-bottom: 0; }
.empathy-nav-section .empathy-nav { margin-bottom: 0; }
#slide-7 { padding-top: 3.5rem; }

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: .95rem;
  line-height: 1.25;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.tab-link:hover,
.tab-link:focus-visible {
  color: #fff;
  background: var(--steel-light);
  border-color: var(--steel-light);
}

.tab-link span { color: var(--red); }

.direction-detail {
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 10rem;
}

.detail-media {
  position: sticky;
  top: 11rem;
  min-height: 22rem;
  background: var(--mist);
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.detail-content {
  min-width: 0;
}

.detail-content h2 {
  margin-bottom: 1.25rem;
}

.direction-detail-full {
  grid-template-columns: minmax(0, 1fr);
}

.direction-detail-full .detail-content {
  max-width: 60rem;
}

.bounded-copy {
  min-width: 0;
}

.budget {
  margin: 1rem 0 2rem;
  color: var(--red);
  font-family: var(--font-light);
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  line-height: 1.35;
}

.measure-list {
  display: grid;
  gap: 1rem;
}

.measure-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.measure-card ul {
  margin: 1rem 0 0;
  padding: 0 0 0 1.25rem;
  color: var(--steel);
}

.measure-card li {
  margin: .5rem 0;
  line-height: 1.55;
}

.image-panel {
  height: 26rem;
  background: var(--mist);
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stats-grid div {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.stats-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-light);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: .55rem;
  color: var(--steel);
  line-height: 1.45;
}

.funding {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--mist);
}

.funding p { color: var(--steel); }

.site-footer {
  background: var(--mist);
  padding: 3rem 0;
  color: var(--steel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 3rem;
}

.footer-brand { margin-bottom: 1.5rem; color: var(--steel); }
.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--ink);
}
.site-footer a:not(.brand) {
  display: block;
  margin: .45rem 0;
  color: var(--steel);
}

.theme-city .section-label,
.theme-city h2 { color: #635f8e; }
.theme-city .direction-card::after { background: rgba(85,98,106,.08); }
.theme-people .section-label,
.theme-people h2 { color: var(--violet); }
.theme-people .btn,
.theme-people .tab-link:hover,
.theme-people .tab-link:focus-visible { background: var(--violet); border-color: var(--violet); }

@media (max-width: 1200px) {
  :root { --page-pad: 2.5rem; }
  .header-inner,
  .header-brand-group { gap: 1rem; }
  .brand { min-width: 9rem; }
  .brand-logo { width: 9rem; }
  .partner-logos { gap: .55rem; padding-left: 1rem; }
  .partner-logo { height: 2rem; max-width: 5.75rem; }
  .partner-logo-city { height: 2.1rem; }
  .partner-logo-empathy { height: 1.4rem; }
  .desktop-nav { gap: 1.15rem; font-size: .86rem; }
  .directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  h1,
  h2,
  h3 { overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  :root { --page-pad: 1.5rem; --header-height: 4.75rem; }
  .site-header { padding: .875rem 0; }
  .header-inner { gap: .65rem; }
  .header-brand-group { gap: .55rem; }
  .brand { min-width: auto; }
  .brand-logo { width: 7rem; }
  .partner-logos { gap: .35rem; padding-left: .55rem; }
  .partner-logo { height: 1.55rem; max-width: 4rem; }
  .partner-logo-city { height: 1.65rem; }
  .partner-logo-empathy { height: 1.05rem; }
  .header-actions { gap: .5rem; }
  .lang-link { display: none; }
  .mobile-nav.is-open {
    display: block;
    margin-top: .875rem;
    border-top: 1px solid var(--line);
  }
  .mobile-nav { box-shadow: 0 8px 16px rgba(85,98,106,.12); }
  .mobile-nav-inner {
    display: grid;
    gap: 0;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .mobile-nav .nav-link {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .hero,
  .hero-small {
    min-height: 28.75rem;
    background-position: center;
  }
  .hero-home { min-height: 32rem; }
  .hero-content-centered {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-content p { font-size: 1rem; }
  h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    overflow-wrap: anywhere;
  }
  .section { padding: 3.5rem 0; }
  .empathy-nav-section { padding-bottom: 0; }
  #slide-7 { padding-top: 3.5rem; }
  .intro-grid,
  .section-head,
  .split-section,
  .direction-detail,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .link-arrow { justify-self: start; }
  .directions-grid { grid-template-columns: 1fr; }
  .direction-card {
    min-height: 8.4rem;
    padding: 1.75rem 1.5rem;
  }
  .direction-card-arrow {
    opacity: 1;
    transform: none;
  }
  .tabs,
  .empathy-nav {
    position: relative;
    top: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .tab-link {
    width: 100%;
    justify-content: flex-start;
  }
  .detail-media,
  .detail-media img,
  .image-panel,
  .image-panel img {
    position: relative;
    top: auto;
  }
  .detail-media,
  .detail-media img { min-height: 16rem; }
  .image-panel,
  .image-panel img { height: 16rem; }
  .direction-detail { scroll-margin-top: 6rem; padding: 3rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .empathy-section.alt .image-panel { order: 2; }
  .footer-grid { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
