.project-page {
  min-height: 100vh;
  --main-bg: #020216;
  --text-high-contrast: #e8e8e8;
  --text-high-contrast-inverted: #1d1d1d;
  --scrollbar-color: #008ab4;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 64px);
  background: color-mix(in srgb, var(--main-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.project-logo {
  display: inline-flex;
  align-items: center;
}

.project-logo img {
  display: block;
  object-fit: contain;
}

.project-header nav {
  display: flex;
  gap: 18px;
}

.project-header a {
  color: var(--text-high-contrast);
  text-decoration: none;
}

.project-detail {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.project-hero {
  padding: 36px 0 48px;
}

.project-hero .eyebrow {
  margin-bottom: 12px;
  color: var(--scrollbar-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.project-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.project-hero p {
  max-width: 760px;
  color: color-mix(in srgb, var(--text-high-contrast) 78%, transparent);
  font-size: 1.05rem;
  line-height: 1.75;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.back-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  color: var(--text-high-contrast);
  text-decoration: none;
  font-weight: 700;
}

.back-link {
  background: var(--scrollbar-color);
  color: var(--text-high-contrast-inverted);
  border-color: transparent;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.project-image {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-copy h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.project-copy h2:not(:first-child) {
  margin-top: 34px;
}

.project-about p {
  margin-bottom: 16px;
  color: color-mix(in srgb, var(--text-high-contrast) 78%, transparent);
  line-height: 1.75;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgb(255 255 255 / 9%);
  color: var(--text-high-contrast);
  font-weight: 700;
}

footer {
  margin-top: 0;
}

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

  .project-header {
    position: relative;
  }
}
