:root {
  --bg: #222222;
  --panel: #181818;
  --blue: #399fd3;
  --blue-dark: #335766;
  --red: #ff5131;
  --green: #2ac940;
  --text: #ffffff;
  --shadow: #000000;
  --bg-soft: rgba(34, 34, 34, 0.9);
  --panel-soft: rgba(24, 24, 24, 0.92);
  --font-main: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-body: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
}

.code-rain-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.code-rain-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 22px 8px;
  background: transparent;
}

.brand {
  display: block;
  width: 88px;
  flex: 0 0 auto;
  padding: 0;
}

.brand img {
  width: 100%;
}

.menu-button {
  position: absolute;
  top: 50%;
  right: 10%;
  z-index: 12;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 8;
  display: flex;
  width: 100vw;
  padding-top: 54px;
  background: var(--panel-soft);
  transition: left 0.35s ease;
}

.site-nav.open {
  left: 0;
}

.nav-links {
  width: 100%;
}

.nav-links a,
.nav-trigger {
  display: block;
  width: 100%;
  padding: 11px 11px 11px 40px;
  border-bottom: 2px solid var(--blue);
  background: transparent;
  color: var(--text);
  font-size: 7vw;
  text-align: left;
  transition: color 0.18s ease;
}

.nav-trigger {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
}

.nav-trigger span {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue);
  transform: translateY(-5px);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  background: #f5f5f5;
  padding: 6px 0;
}

.dropdown-menu a {
  border-bottom: 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.4;
}

.nav-dropdown.is-open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.nav-dropdown.is-open .nav-trigger span,
.nav-dropdown:hover .nav-trigger span,
.nav-dropdown:focus-within .nav-trigger span {
  opacity: 0.72;
}

.nav-links > a:hover,
.nav-links > a:focus-visible,
.nav-trigger:hover,
.nav-trigger:focus-visible,
.nav-dropdown:hover .nav-trigger,
.nav-dropdown:focus-within .nav-trigger {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  background: transparent;
}

.hero-panel {
  order: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 30px 8% 34px;
  background: transparent;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 11.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.03;
  text-align: left;
  text-transform: uppercase;
}

.text-nowrap {
  white-space: nowrap;
}

.hero p {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(0.95rem, 3.9vw, 1.05rem);
  font-weight: 400;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: fit-content;
  min-width: 220px;
  border-radius: 0;
  background: var(--red);
  color: var(--text);
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.hero-button::after {
  content: "→";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.hero-media {
  order: 1;
  height: clamp(195px, 25vh, 220px);
  min-height: 0;
  background-image: url("https://opensourcesanjose.org/assets/img/img_archive/cfsj_withcfa_at_bowersinstitute.jpeg");
  background-position: center 20%;
  background-size: auto 160%;
  background-repeat: no-repeat;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 2;
}

.text-content {
  width: 87%;
  margin: 20px auto;
}

.about-editorial {
  display: grid;
  width: min(100%, 1500px);
  margin: clamp(120px, 10vw, 168px) auto 72px;
  gap: 28px;
  padding: 0 clamp(18px, 5vw, 72px);
}

.about-feature {
  border-top: 4px solid var(--blue);
  color: var(--text);
  padding-top: 24px;
}

.about-feature h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.about-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  background: var(--blue);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.about-icon-community {
  mask-image: url("assets/icons8-community-100.png");
  -webkit-mask-image: url("assets/icons8-community-100.png");
}

.about-icon-mission {
  mask-image: url("assets/icons8-mission-100.png");
  -webkit-mask-image: url("assets/icons8-mission-100.png");
}

.about-icon-vision {
  mask-image: url("assets/icons8-bullseye-100.png");
  -webkit-mask-image: url("assets/icons8-bullseye-100.png");
}

.about-icon-work {
  mask-image: url("assets/icons8-to-do-100.png");
  -webkit-mask-image: url("assets/icons8-to-do-100.png");
}

.about-feature p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.8vw, 1.04rem);
  line-height: 1.55;
}

.section {
  margin: 15% 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
  background: transparent;
  font-size: 1.5rem;
  white-space: nowrap;
}

h2::before,
h2::after {
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0.78;
}

h2::before {
  flex: 0 0 4%;
}

h2::after {
  flex: 1;
}

.section-subhead {
  width: 80%;
  margin: 2% 0 3% 7%;
}

.project-grid {
  display: grid;
  gap: 20px;
  width: min(92%, 1420px);
  margin: 38px auto 48px;
  padding: 0;
}

.project-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
  outline: 0;
}

.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.46);
  padding: 6px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.76) 100%);
  padding: 28px;
}

.project-copy {
  max-width: 520px;
}

.project-card h4 {
  width: 100%;
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.project-card p {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 320ms ease, opacity 260ms ease, transform 260ms ease;
}

.project-card .tech {
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-arrow {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  transform: translate(-4px, -2px);
  transition: color 220ms ease, transform 220ms ease;
}

.project-card:hover .project-image,
.project-card:focus .project-image,
.project-card:focus-within .project-image {
  filter: brightness(0.58);
  transform: scale(1.04);
}

.project-card:hover p,
.project-card:focus p,
.project-card:focus-within p {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-arrow,
.project-card:focus .project-arrow,
.project-card:focus-within .project-arrow {
  color: var(--blue);
  transform: translate(0, -6px);
}

.project-card:focus-visible {
  box-shadow: 0 0 0 3px var(--blue);
}

.all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: -16px 0 0 4%;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  padding: 0 0 6px;
  font-family: var(--font-main);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease;
}

.all-projects-arrow {
  font-size: 1.12em;
  line-height: 1;
  transition: transform 180ms ease;
}

.all-projects-link:hover,
.all-projects-link:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.all-projects-link:hover .all-projects-arrow,
.all-projects-link:focus-visible .all-projects-arrow {
  transform: translate(3px, -3px);
}

.all-projects-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.sponsor-row {
  display: flex;
  flex-direction: column;
}

.volunteer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px auto;
  text-align: center;
}

.volunteer-logo h5 {
  font-size: 14px;
  line-height: 1.1;
}

.sponsor-row img {
  width: min(80%, 420px);
  height: auto;
  margin: 25px auto;
}

.sponsor-row .volunteer-logo img {
  width: 86px;
  height: 86px;
  margin: 0;
  object-fit: contain;
}

.sponsor-row .microsoft-logo {
  width: min(76%, 340px);
}

.sponsor-row .awesome-logo {
  width: min(80%, 375px);
}

.notify {
  border-radius: 10px;
  background: #e84118;
  padding: 20px;
  font-weight: 700;
}

.find-map-shell {
  position: relative;
  display: grid;
  width: min(90%, 1260px);
  margin: 34px auto 0;
  gap: 0;
}

.find-info-card {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 2px solid rgba(57, 159, 211, 0.22);
  background: rgba(16, 16, 16, 0.96);
  color: var(--text);
  padding: 24px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
}

.find-info-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  line-height: 1.15;
}

.find-alert {
  border-left: 5px solid var(--red);
  margin-bottom: 20px;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.find-details {
  display: grid;
  gap: 15px;
}

.find-details div {
  display: grid;
  gap: 4px;
}

.find-details dt {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.find-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.5;
}

.find-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.find-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  background: rgba(57, 159, 211, 0.08);
  color: var(--text);
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.find-actions a:hover,
.find-actions a:focus-visible {
  background: var(--blue);
  color: #101010;
  transform: translateY(-1px);
}

.map-card {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  border: 2px solid #111;
  background: #111111;
  color: var(--text);
  isolation: isolate;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.map-card:hover,
.map-card:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(57, 159, 211, 0.28);
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.28) saturate(0.82) contrast(1.06);
}

.site-footer {
  border-top: 2px solid var(--blue);
  padding: 40px 7%;
  background: transparent;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer .footer-logo {
  width: 180px;
  max-width: 100%;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #a8a8a8;
  opacity: 0.86;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-socials img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 20px;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: var(--blue);
}

.project-modal {
  width: min(520px, calc(100% - 40px));
  margin: auto;
  border: 5px solid var(--blue);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 32px;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.project-modal h3 {
  margin-bottom: 18px;
  font-size: 1.6rem;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
}

@media (min-width: 560px) {
  .site-header {
    min-height: 78px;
    padding: 16px 28px 8px;
  }

  .brand {
    width: 86px;
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    width: 75%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 0;
    background: transparent;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 3vw, 42px);
  }

  .nav-links > a,
  .nav-trigger {
    width: fit-content;
    border: 0;
    padding: 0;
    font-size: clamp(12px, 1.3vw, 16px);
    text-align: right;
  }

  .nav-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-dropdown {
    display: flex;
    align-items: center;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 190px;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }

  .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    color: #111111;
    font-size: 15px;
    text-align: left;
    white-space: nowrap;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    background: #e8e8e8;
  }

  .about-editorial {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px);
  }

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

  .project-card {
    min-height: 390px;
  }

  .project-card h4 {
    font-size: 28px;
  }

  .project-card p {
    font-size: 18px;
  }

  .project-card .tech {
    font-size: 14px;
  }

  .sponsor-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
  }

  .sponsor-row img {
    width: 40%;
    margin: 25px;
  }

  .sponsor-row .microsoft-logo {
    width: 32%;
    max-width: 300px;
  }

  .volunteer-logo {
    width: 18%;
    min-width: 130px;
    margin: 25px;
  }

  .sponsor-row .awesome-logo {
    width: 36%;
    max-width: 375px;
  }

  .find-map-shell {
    width: min(88%, 1280px);
    min-height: 420px;
    align-items: center;
  }

  .find-info-card {
    position: absolute;
    top: 50%;
    left: clamp(18px, 4vw, 58px);
    width: min(460px, 46%);
    padding: 24px;
    transform: translateY(-50%);
  }

  .find-info-card h3 {
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
  }

  .find-alert {
    margin-bottom: 14px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .find-details {
    gap: 10px;
  }

  .find-details dt {
    font-size: 0.68rem;
  }

  .find-details dd {
    font-size: 0.78rem;
    line-height: 1.36;
  }

  .find-actions {
    margin-top: 16px;
  }

  .find-actions a {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .map-card {
    min-height: 420px;
    margin-left: clamp(120px, 14vw, 190px);
  }

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    min-height: 640px;
  }

  .hero-panel {
    order: 1;
    padding: 64px 7% 64px 10%;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 9vw, 5.2rem);
    line-height: 1.05;
  }

  .hero p {
    margin-top: 24px;
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    line-height: 1.45;
  }

  .hero-media {
    order: 2;
    height: auto;
    min-height: 640px;
    background-position: center 24%;
    background-size: auto 124%;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 34px;
  }

  .about-feature h3 {
    max-width: 900px;
  }
}

@media (min-width: 900px) and (max-width: 1599px) {
  .hero {
    column-gap: clamp(20px, 2.5vw, 36px);
    padding-right: clamp(24px, 3vw, 40px);
  }
}

@media (min-width: 1200px) {
  .container {
    box-shadow: none;
  }

  .site-header {
    min-height: 82px;
    padding: 18px 7% 8px 5.2%;
  }

  .brand {
    width: 96px;
  }

  .site-nav {
    width: auto;
  }

  .nav-links > a {
    font-size: 16px;
    border-bottom: 0 solid var(--blue);
  }

  .nav-trigger {
    font-size: 16px;
  }

  .hero-button:hover {
    background: var(--blue-dark);
  }

  .sponsor-row .microsoft-logo {
    width: 300px;
  }

  .sponsor-row .awesome-logo {
    width: 375px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-rain-canvas {
    opacity: 0.2;
  }
}
