html:has(.projects-page) {
  scroll-behavior: smooth;
  background: #050607;
}

body:has(.projects-page),
body:has(.projects-page) #container,
body:has(.projects-page) #wrap {
  background: #050607;
}

body:has(.projects-page) .outer {
  max-width: none;
  padding: 0;
}

body:has(.projects-page) #main {
  float: none;
  width: 100%;
}

body:has(.projects-page) #sidebar,
body:has(.projects-page) .article-meta,
body:has(.projects-page) .article-header,
body:has(.projects-page) .article-footer,
body:has(.projects-page) .article-nav,
body:has(.projects-page) #header,
body:has(.projects-page) #banner {
  display: none;
}

body:has(.projects-page) .article,
body:has(.projects-page) .article-inner,
body:has(.projects-page) .article-entry {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.projects-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(84, 150, 255, .16), transparent 30rem),
    radial-gradient(circle at 80% 18%, rgba(43, 190, 145, .1), transparent 28rem),
    linear-gradient(180deg, #050607 0%, #0b1014 48%, #08090b 100%);
  color: #fff;
  font-family: "Barlow", sans-serif;
}

.projects-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.projects-page a {
  color: inherit;
  text-decoration: none;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.052);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 16px 54px rgba(0,0,0,.24);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.projects-nav {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
}

.brand-mark,
.nav-spacer {
  width: 48px;
  height: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 9999px;
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  border-radius: 9999px;
  padding: .375rem;
}

.nav-links a {
  padding: .58rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

.nav-links .nav-cta {
  margin-left: .25rem;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  padding-inline: 1rem;
}

.projects-hero {
  position: relative;
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 7rem max(24px, 6vw) 4rem;
}

.projects-hero::before,
.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 7rem, #000 calc(100% - 5rem), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-head p,
.contact-card p {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-inner h1,
.section-head h2,
.contact-card h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: #fff;
}

.hero-inner h1 {
  margin-top: .7rem;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .86;
}

.hero-subtitle {
  max-width: 820px;
  margin: 1.2rem auto 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
}

.hero-description {
  max-width: 760px;
  margin: 1rem auto 0;
  color: rgba(255,255,255,.74);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.projects-section {
  position: relative;
  padding: 4.8rem max(24px, 6vw);
}

.projects-section > * {
  position: relative;
  z-index: 1;
}

.section-head,
.project-filter-tags,
.engineering-projects-list,
.project-grid,
.roadmap-list,
.contact-card {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2,
.contact-card h2 {
  margin-top: .35rem;
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  line-height: .96;
}

.project-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.project-filter-tags span,
.project-tags span,
.project-status,
.project-category,
.roadmap-item span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 9999px;
  padding: .24rem .68rem;
  border: 0;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1;
}

.engineering-projects-list {
  display: grid;
  gap: 1.1rem;
}

.engineering-project {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 220px;
  border-radius: 1.15rem;
  padding: 1rem;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.engineering-project__card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
}

.engineering-project__card-link:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: -6px;
}

.engineering-project:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 18px 52px rgba(0,0,0,.28);
}

.engineering-project__media {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: 188px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: .9rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    rgba(255,255,255,.055);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
}

.engineering-project__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 188px;
}

.engineering-project__media--contain img {
  padding: .55rem;
  object-fit: contain;
}

.engineering-project__media--cover img {
  object-fit: cover;
}

.engineering-project__body {
  display: flex;
  position: relative;
  z-index: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: .2rem .25rem .15rem 0;
}

.engineering-project__topline {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: rgba(255,255,255,.68);
  font-size: .76rem;
  font-weight: 600;
}

.engineering-project__index,
.engineering-project__status,
.engineering-project__year {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 9999px;
  padding: .18rem .56rem;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.07);
}

.engineering-project__status {
  color: rgba(217,255,238,.9);
  background: rgba(83, 255, 180, .11);
}

.engineering-project__year {
  color: rgba(255,255,255,.7);
}

.engineering-project__title {
  margin: .85rem 0 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
}

.engineering-project__title a {
  display: inline-flex;
  position: relative;
  z-index: 5;
  max-width: 100%;
}

.engineering-project__title a:hover {
  color: rgba(255,255,255,.84);
}

.engineering-project__description {
  display: -webkit-box;
  margin: .68rem 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.engineering-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: .85rem;
}

.engineering-project__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 9999px;
  padding: .2rem .58rem;
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.76);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.07);
}

.engineering-project__link {
  display: inline-flex;
  position: relative;
  z-index: 5;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 36px;
  border-radius: 9999px;
  padding: .5rem .78rem;
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.engineering-project__link:hover {
  background: #fff;
  color: #050607;
}

.project-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.project-grid-compact {
  grid-template-columns: minmax(0, .68fr);
}

.project-card {
  min-height: 100%;
  border-radius: 1.25rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.project-card:hover,
.roadmap-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 18px 56px rgba(0,0,0,.3);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
}

.project-meta,
.project-tags,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.project-status {
  background: rgba(83, 255, 180, .14);
  color: rgba(217,255,238,.94);
}

.project-status-muted {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}

.project-category {
  background: rgba(120, 180, 255, .12);
  color: rgba(224,240,255,.9);
}

.project-card h3,
.roadmap-item h3 {
  margin: 1rem 0 .55rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.14;
}

.project-card p,
.roadmap-item p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .96rem;
  font-weight: 300;
  line-height: 1.62;
}

.project-summary {
  color: rgba(255,255,255,.92) !important;
  font-size: 1.01rem !important;
}

.project-detail {
  margin-top: .8rem !important;
}

.project-tags {
  margin-top: 1rem;
}

.project-tags span {
  min-height: 26px;
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.78);
  font-size: .74rem;
}

.project-points {
  display: grid;
  gap: .5rem;
  margin: 1.1rem 0 0;
  padding-left: 1.05rem;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.5;
}

.project-links {
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-links a,
.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9999px;
  padding: .62rem 1rem;
  background: #fff;
  color: #050607;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.11);
  transition: background .2s ease, color .2s ease;
}

.project-links a:hover,
.contact-card a:hover {
  background: rgba(255,255,255,.86);
  color: #050607;
}

.roadmap-list {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(920px, 100%);
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.roadmap-list::before {
  display: none;
}

.roadmap-item {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.roadmap-item::before {
  display: none;
}

.roadmap-item h3 {
  margin-top: .75rem;
  font-size: 1.25rem;
}

.roadmap-section .section-head {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.roadmap-intro {
  max-width: 660px;
  margin: .8rem auto 0;
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.68;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.contact-card h2 {
  max-width: 720px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

@media (max-width: 1120px) {
  .project-grid-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .projects-nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .projects-hero {
    min-height: 62vh;
    padding: 6rem 1rem 3rem;
  }

  .hero-inner h1 {
    font-size: 4.4rem;
  }

  .projects-section {
    padding: 3.5rem 1rem;
  }

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

  .engineering-project {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
  }

  .engineering-project__media {
    width: 100%;
    min-height: 160px;
    max-height: 220px;
  }

  .engineering-project__media img {
    min-height: 160px;
    max-height: 220px;
  }

  .engineering-project__body {
    padding: 0;
  }

  .engineering-project__link {
    white-space: normal;
  }

  .project-body {
    padding: 1.1rem;
  }

  .project-links {
    width: 100%;
  }

  .project-links a {
    width: 100%;
  }

  .contact-card {
    display: grid;
    align-items: start;
  }

  .contact-card a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .roadmap-list {
    width: 100%;
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.projects-page) {
    scroll-behavior: auto;
  }

  .project-card,
  .engineering-project,
  .engineering-project__link,
  .roadmap-item,
  .project-links a,
  .contact-card a {
    transition: none;
  }
}

/* Force center roadmap section */
.roadmap-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-section .section-head {
  width: min(780px, calc(100vw - 48px));
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.roadmap-list {
  display: grid !important;
  justify-items: center !important;
  gap: 1rem !important;

  width: min(920px, calc(100vw - 48px)) !important;
  max-width: 920px !important;

  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;

  list-style: none !important;
}

.roadmap-list::before {
  display: none !important;
  content: none !important;
}

.roadmap-item {
  width: 100% !important;
  max-width: 920px !important;

  padding: 1.25rem 1.5rem !important;
  text-align: center !important;
}

.roadmap-item::before {
  display: none !important;
  content: none !important;
}
