/* =========================================================
   BRAND PAGES ONLY
========================================================= */

/* OVERVIEW PAGE */

.brand-page {
  padding-top: 130px;
  padding-bottom: 90px;
}

.brand-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.brand-card-image {
  background: #f2f2ef;
  padding: 18px;
}

.brand-card-image img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.brand-card-content {
  padding: 26px;
}

.brand-card-content h2 {
  margin-bottom: 12px;
}

.brand-card-content span {
  display: block;
  color: #666;
}

/* PROJECT PAGES */

.brand-project-page {
  padding-top: 130px;
  padding-bottom: 54px;
}

.project-meta-row {
  margin-top: 35px;
  margin-bottom: 12px;
}

.project-meta-card {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding-top: 18px;
}

.project-meta-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

/* CASE STUDY CONTEXT */

.case-study-section {
  padding: 0 0 76px;
}

.case-study-intro {
  max-width: 860px;
  margin-bottom: 34px;
}

.case-study-intro h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.case-study-intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #5f5f5f;
  font-size: 18px;
  line-height: 1.65;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-study-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border-radius: 24px;
  background: #f7f7f4;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.case-study-card span {
  display: block;
  margin-bottom: 44px;
  color: #2f65f2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-study-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.case-study-card p:not(.eyebrow) {
  margin: 0;
  color: #626262;
  font-size: 15px;
  line-height: 1.65;
}

/* CATEGORY SECTIONS */

.brand-category-section {
  padding-bottom: 46px;
}

.brand-category-section.last {
  padding-bottom: 34px;
}

.category-header {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding-top: 24px;
  margin-bottom: 24px;
}

.category-header h2 {
  margin: 0;
}

/* TWO-COLUMN GALLERY */

.compact-gallery {
  align-items: stretch;
}

.project-image-card,
.project-pdf-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.project-image-card img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f2f2ef;
  padding: 16px;
}

/* PDF VIEWERS */

.project-pdf-card object {
  width: 100%;
  height: 360px;
  display: block;
  background: #f2f2ef;
  border: 0;
}

/* BACK BUTTON */

.brand-back-section {
  padding-top: 10px;
  padding-bottom: 80px;
}

.brand-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #d9d9d6;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.brand-back-link:hover {
  color: #111111;
  text-decoration: none;
  background: #f7f7f5;
  border-color: #cfcfcb;
  transform: translateY(-1px);
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-study-card {
    min-height: auto;
  }

  .case-study-card span {
    margin-bottom: 28px;
  }
}

@media (max-width: 767px) {

  .brand-page,
  .brand-project-page {
    padding-top: 90px;
    padding-bottom: 55px;
  }

  .brand-card-image img {
    height: 260px;
  }

  .project-image-card img {
    height: 260px;
    padding: 14px;
  }

  .project-pdf-card object {
    height: 320px;
  }

  .case-study-section {
    padding-bottom: 56px;
  }

  .case-study-card {
    padding: 24px;
    border-radius: 20px;
  }

}