@font-face {
  font-family: "Gentium Basic";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/gentium-basic-400.ttf") format("truetype");
}

@font-face {
  font-family: "Gentium Basic";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/gentium-basic-700.ttf") format("truetype");
}

@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/maven-pro-400.ttf") format("truetype");
}

@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/maven-pro-700.ttf") format("truetype");
}

:root {
  --navy: #071128;
  --navy-2: #101a35;
  --red: #e21a0c;
  --red-dark: #b51309;
  --ink: #141c2d;
  --text: #566071;
  --muted: #8b93a1;
  --line: #dfe5ee;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(7, 17, 40, 0.12);
  --small-shadow: 0 14px 34px rgba(7, 17, 40, 0.08);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(255, 255, 255, 0.98) 430px),
    var(--wash) url("assets/circuit-bg.png") center top repeat-y;
  color: var(--text);
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--red-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(226, 26, 12, 0.26);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 10px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(223, 229, 238, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(7, 17, 40, 0.06);
  backdrop-filter: blur(16px);
}

.brand-hero {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 0;
  padding: 0;
}

.brand-hero img {
  width: min(220px, 28vw);
  max-height: 76px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px clamp(12px, 2vw, 28px);
  min-width: 0;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  color: var(--navy);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus {
  color: var(--red);
  border-bottom-color: var(--red);
}

.page {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) 0 82px;
}

.page-title {
  margin: 0 0 30px;
  color: var(--navy);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

h1,
h2 {
  font-family: "Maven Pro", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.02;
}

h3 {
  font-family: "Gentium Basic", Georgia, serif;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0;
  line-height: 1.18;
}

p {
  margin: 0 0 18px;
}

.eyebrow,
.panel-kicker,
.role,
.label {
  margin: 0 0 14px;
  color: var(--red);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead {
  max-width: 740px;
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.intro-row,
.profile-row,
.project-hero,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.intro-row {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: clamp(34px, 5vw, 56px);
  padding: 0 0 clamp(24px, 4vw, 42px);
}

.hero-copy {
  max-width: 780px;
}

.action-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button,
.donate {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button.primary,
.donate {
  background: var(--navy);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
}

.button:hover,
.button:focus,
.donate:hover,
.donate:focus {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.donation-form {
  margin: 0;
}

.donation-form.inline {
  margin-top: 20px;
}

.signal-panel,
.project-summary,
.project-hero,
.map-callout,
.map-stats,
.map-card,
.contact-box,
.notice,
.feature-list:not(.agency-list),
.steps,
.gallery img {
  border: 1px solid rgba(223, 229, 238, 0.95);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(10px);
}

.signal-panel {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(66, 103, 171, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(7, 17, 40, 0.98), rgba(26, 43, 78, 0.94)),
    var(--navy);
  color: #d9deea;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/circuit-bg.png") center / 620px auto repeat;
  opacity: 0.08;
}

.signal-panel > * {
  position: relative;
}

.signal-panel .panel-kicker {
  margin-bottom: 12px;
  color: var(--red);
}

.signal-panel .panel-kicker::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: var(--red);
}

.signal-panel h2 {
  max-width: 380px;
  margin-bottom: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
}

.capability-grid,
.feature-list,
.agency-list,
.steps {
  margin: 0;
  padding-left: 22px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  color: #f3f5f9;
}

.capability-grid li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 15px 14px 15px 0;
}

.capability-grid li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.capability-grid li:nth-child(even) {
  padding-left: 14px;
}

.capability-grid li:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.capability-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(60, 96, 168, 0.98), rgba(36, 67, 130, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.capability-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.capability-grid strong {
  display: block;
  margin: 0 0 5px;
  color: #fff;
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.22;
}

.capability-grid span span {
  display: block;
  color: #c7cfdf;
  font-size: 12px;
  line-height: 1.4;
}

.section {
  margin-top: clamp(52px, 9vw, 96px);
}

.section-block {
  margin-top: 0;
}

.home-projects {
  margin-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.heading-link {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

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

.project-summary {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 22px;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.project-summary:hover {
  border-color: rgba(226, 26, 12, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-summary img {
  width: 100%;
  height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.project-summary h2,
.project-summary h3 {
  margin-bottom: 10px;
}

.project-summary p {
  color: var(--text);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.repo-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(223, 229, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--small-shadow);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.repo-card:hover {
  border-color: rgba(226, 26, 12, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.repo-card h3 {
  margin-bottom: 10px;
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
}

.repo-card p {
  color: var(--text);
}

.repo-meta {
  margin: 0 0 12px;
  color: var(--red);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.read-more,
.social-links a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 8px 0 3px;
  border-bottom: 1px solid currentColor;
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-row {
  padding-top: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--line);
}

.profile-row h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.profile-row img {
  width: min(100%, 380px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.project-hero p:first-of-type {
  margin-top: 18px;
}

.app-icon {
  width: 94px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.screen-pair,
.screen-grid {
  display: grid;
  gap: 14px;
  align-items: end;
}

.screen-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.app-store {
  width: 156px;
}

.mobcon {
  width: 136px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.map-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 22px 24px;
}

.map-callout h3 {
  margin-bottom: 8px;
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.map-callout p:not(.eyebrow) {
  margin-bottom: 0;
}

.maps-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 72px);
}

.maps-hero .page-title {
  margin-bottom: 20px;
}

.map-stats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.82);
}

.map-stats strong {
  color: var(--navy);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.map-stats span {
  align-self: center;
  color: var(--red);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-sections {
  display: grid;
  gap: clamp(34px, 6vw, 58px);
}

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

.metro-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.metro-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.count {
  flex: 0 0 auto;
  color: var(--red);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.map-card {
  display: grid;
  grid-template-rows: 170px auto;
  overflow: hidden;
  color: var(--ink);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.map-card:hover,
.map-card:focus {
  border-color: rgba(226, 26, 12, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.map-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.map-card-content {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.map-type {
  color: var(--navy);
  font-family: "Gentium Basic", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}

.map-file {
  color: var(--muted);
  font-family: "Maven Pro", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feature-list,
.steps {
  display: grid;
  gap: 9px;
  padding: 22px 24px 22px 44px;
}

.agency-list {
  columns: 3;
  column-gap: 38px;
  padding: 24px 24px 24px 42px;
  border: 1px solid rgba(223, 229, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--small-shadow);
  font-size: 13px;
  line-height: 1.55;
}

.agency-list li,
.feature-list li,
.steps li {
  margin: 5px 0;
}

.notice {
  margin: 22px 0 28px;
  padding: 24px;
  border-left: 5px solid var(--red);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
}

.gallery img {
  width: 100%;
  padding: 10px;
  object-fit: contain;
}

.contact-box {
  max-width: 720px;
  padding: clamp(28px, 5vw, 48px);
}

.contact-box .page-title {
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.site-footer {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1040px) {
  header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .brand-hero img {
    width: 220px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 900px) {
  .intro-row,
  .profile-row,
  .project-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .intro-row {
    min-height: auto;
    padding-top: 46px;
  }

  .signal-panel {
    min-height: auto;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid li,
  .capability-grid li:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .capability-grid li:nth-child(odd) {
    border-right: 0;
  }

  .capability-grid li:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .project-list,
  .repo-grid,
  .maps-hero,
  .gallery {
    grid-template-columns: 1fr;
  }

  .maps-hero {
    align-items: start;
  }

  .map-stats {
    max-width: 320px;
  }

  .split-heading {
    display: block;
  }

  .profile-row img {
    justify-self: start;
  }

  .agency-list {
    columns: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  header {
    position: static;
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-hero img {
    width: 190px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .site-nav a {
    min-height: 30px;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    white-space: normal;
  }

  .page,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .page {
    padding: 36px 0 66px;
  }

  .page-title,
  h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .lead {
    font-size: 17px;
  }

  .action-row,
  .button-row {
    align-items: stretch;
  }

  .map-callout,
  .metro-head {
    display: block;
  }

  .map-callout .read-more {
    margin-top: 16px;
  }

  .count {
    display: inline-flex;
    margin-top: 10px;
  }

  .button,
  .donate {
    width: 100%;
  }

  .project-summary,
  .project-hero,
  .contact-box,
  .signal-panel {
    padding: 20px;
  }

  .signal-panel h2 {
    margin-bottom: 18px;
    padding-bottom: 20px;
  }

  .capability-grid li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .capability-icon {
    width: 48px;
    height: 48px;
  }

  .capability-icon svg {
    width: 26px;
    height: 26px;
  }

  .project-summary img {
    height: 160px;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    grid-template-rows: 150px auto;
  }

  .screen-grid,
  .screen-pair {
    grid-template-columns: 1fr;
  }

  .screen-grid img,
  .screen-pair img {
    max-width: 280px;
    margin: 0 auto;
  }

  .agency-list {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
