.project-theme {
  --project-accent: #ffc83d;
  --project-accent-soft: rgba(255, 200, 61, 0.2);
  --project-panel: rgba(10, 10, 12, 0.64);
  --project-panel-strong: rgba(10, 10, 12, 0.82);
  --project-border: rgba(255, 255, 255, 0.18);
  --project-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  background-color: #171717;
  background-image:
    linear-gradient(rgba(5, 7, 10, 0.22), rgba(5, 7, 10, 0.52)),
    var(--project-background);
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}


.project-page {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 80px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 360px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.project-logo-stage {
  display: grid;
  place-items: center;
  min-height: 290px;
  padding: clamp(10px, 2vw, 24px);
}

.project-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.project-intro {
  position: relative;
  padding: clamp(24px, 3.8vw, 42px);
  overflow: hidden;
  border: 1px solid var(--project-border);
  border-radius: 28px;
  background: var(--project-panel);
  box-shadow: var(--project-shadow);
  backdrop-filter: blur(14px) saturate(112%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
}

.project-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--project-accent);
}

.project-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.project-summary {
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.project-section {
  margin-top: clamp(38px, 5.5vw, 70px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0 0 20px;
}

.section-heading::before {
  content: "";
  flex: 0 0 36px;
  height: 5px;
  border-radius: 99px;
  background: var(--project-accent);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.1;
}

.project-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--project-border);
  border-radius: 20px;
  background: #070707;
  box-shadow: var(--project-shadow);
}

.video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.credit-card {
  min-width: 0;
  padding: 17px 18px 16px;
  border: 1px solid var(--project-border);
  border-radius: 17px;
  background: var(--project-panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.credit-card h3 {
  margin: 0 0 0.35rem;
  color: var(--project-accent);
  font-size: 1.12rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.credit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.42;
}

.credit-card a {
  color: #fff;
  text-underline-offset: 0.18em;
}

.credit-card a:hover,
.credit-card a:focus-visible {
  color: var(--project-accent);
}

@media (max-width: 940px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .project-logo-stage {
    min-height: 220px;
    padding-bottom: 0;
  }

  .project-logo {
    max-height: 260px;
  }

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

@media (max-width: 840px) {
  .project-theme {
    background-attachment: scroll;
  }

  .project-page {
    width: min(calc(100% - 28px), 1180px);
    padding-top: 24px;
  }

  .project-intro {
    padding: 22px 20px 24px 25px;
    border-radius: 21px;
  }

  .project-videos,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 0.65rem;
  }

  .section-heading::before {
    flex-basis: 26px;
    height: 4px;
  }

  .video {
    border-radius: 15px;
  }

}
