/* ================================================
   CASE STUDY — shared styles
   Matches original Webflow layout:
   two-column hero → full-width image gallery → footer
   ================================================ */

/* ---- Nav spacing ---- */
.page-case-study .nav-block {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background-color: transparent;
}

.page-case-study {
  background-color: var(--white);
}

/* ---- Page Hero Section ---- */
.page-hero-sec {
  display: grid;
  grid-template-columns: 5fr 7fr;
  margin-left: 130px;
  margin-right: 130px;
  padding-top: 160px;
  padding-bottom: 80px;
  gap: 0 40px;
}

.project-left {
  padding-right: 20px;
}

.project-client {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.4;
  margin-bottom: 16px;
}

.project-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}

.project-right {
  padding-top: 4px;
}

.project-desc {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  color: var(--black);
  margin-bottom: 40px;
  max-width: 520px;
}

.project-role-row {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 24px;
  margin-top: 40px;
}

.project-role-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.4;
  margin-bottom: 12px;
}

.project-role-value {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 2;
}

/* ---- Gallery ---- */
.project-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-gallery img,
.project-gallery .project-video-block {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.project-gallery img {
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.project-gallery .project-video-block {
  position: relative;
  background: #000;
}

.project-gallery .project-video-block video {
  width: 100%;
  height: auto;
  display: block;
}

/* Vimeo / iframe embed */
.project-video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.project-video-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Background video block (like Salesforce Dreamforce) */
.project-bg-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.project-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Next Project link ---- */
.project-next {
  margin-left: 130px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.project-next a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.project-next a:hover {
  opacity: 0.5;
}

/* Footer uses homepage classes: .home-sec-4-gid, .footer-block, .footer-gt, etc. */

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  .page-hero-sec {
    grid-template-columns: 1fr;
    margin-left: 24px;
    margin-right: 24px;
    padding-top: 120px;
    padding-bottom: 60px;
    gap: 40px 0;
  }

  .project-next,
  .project-footer,
  .project-copyright {
    margin-left: 24px;
  }
}

@media (max-width: 767px) {
  .page-hero-sec {
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 100px;
  }

  .project-title {
    font-size: clamp(24px, 7vw, 40px);
  }

  .project-desc {
    font-size: 15px;
    line-height: 1.8;
  }

  .project-role-value {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .project-next,
  .project-footer,
  .project-copyright {
    margin-left: 20px;
  }

  .project-footer-inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .project-footer-copy {
    font-size: 24px;
  }
}
