.case-study {
  --shakas-yellow: #f5c518;
  --shakas-ink: #171717;
  background: var(--paper, #f4f1ec);
  color: var(--ink, #23272e);
}

.case-study .nav__logo,
.case-study .footer__logo {
  text-decoration: none;
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 92px var(--gutter, 56px) 74px;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 197, 24, 0.2), transparent 32%),
    var(--ink, #23272e);
  color: var(--paper, #f4f1ec);
}

.case-hero::after {
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(245, 197, 24, 0.18);
  border-radius: 50%;
  content: "";
}

.case-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.case-hero .eyebrow,
.case-section .eyebrow {
  color: var(--amber, #e9b44c);
}

.case-hero__title {
  max-width: 780px;
  margin: 12px 0 22px;
  font-family: var(--display, sans-serif);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.case-hero__title span {
  color: var(--shakas-yellow);
}

.case-hero__lede {
  max-width: 700px;
  color: #d7d9dd;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.55;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-hero .btn--outline {
  border-color: var(--paper, #f4f1ec);
  color: var(--paper, #f4f1ec);
}

.case-hero .btn--outline:hover {
  background: var(--paper, #f4f1ec);
  color: var(--ink, #23272e);
}

.case-hero__visual {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: var(--shakas-yellow);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  transform: rotate(2deg);
}

.case-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 32px;
  object-fit: contain;
}

.case-facts {
  padding: 0 var(--gutter, 56px);
  background: #fff;
  border-bottom: 1px solid rgba(35, 39, 46, 0.12);
}

.case-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.case-fact {
  padding: 28px 34px;
  border-left: 1px solid rgba(35, 39, 46, 0.12);
}

.case-fact:last-child {
  border-right: 1px solid rgba(35, 39, 46, 0.12);
}

.case-fact__label {
  display: block;
  color: var(--amber-deeper, #8f6410);
  font-family: var(--display, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.case-fact__value {
  display: block;
  margin-top: 7px;
  font-family: var(--display, sans-serif);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.case-section {
  padding: 92px var(--gutter, 56px);
}

.case-section--white {
  background: #fff;
}

.case-section--dark {
  background: var(--ink, #23272e);
  color: var(--paper, #f4f1ec);
}

.case-section__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: start;
}

.case-title {
  margin-top: 10px;
  font-family: var(--display, sans-serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.case-copy {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.case-copy p + p {
  margin-top: 22px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.scope-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(244, 241, 236, 0.16);
  border-radius: 18px;
  background: rgba(244, 241, 236, 0.05);
}

.scope-card__num {
  color: var(--shakas-yellow);
  font-family: var(--display, sans-serif);
  font-size: 13px;
  font-weight: 700;
}

.scope-card h3 {
  margin: 28px 0 10px;
  color: #fff;
  font-family: var(--display, sans-serif);
  font-size: 24px;
}

.scope-card p {
  color: #c6c9cf;
  line-height: 1.62;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 48px;
}

.gallery-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(35, 39, 46, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(35, 39, 46, 0.09);
}

.gallery-card--tall {
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.gallery-card--menu img {
  background: #f5c518;
  object-fit: contain;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.process-card {
  padding: 34px;
  border: 1px solid rgba(35, 39, 46, 0.11);
  border-radius: 20px;
  background: #fff;
}

.process-card h3 {
  margin-bottom: 12px;
  font-family: var(--display, sans-serif);
  font-size: 27px;
}

.process-card p {
  color: #5a5e66;
  font-size: 17px;
  line-height: 1.65;
}

.process-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.scope-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid--three .process-card h3 {
  font-size: 22px;
}

.case-cta {
  text-align: center;
}

.case-cta .case-title {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.case-cta p {
  max-width: 650px;
  margin: 22px auto 30px;
  color: #c6c9cf;
  font-size: 20px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .case-hero__grid,
  .case-section__intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .case-hero__visual {
    min-height: 380px;
    transform: none;
  }

  .scope-grid,
  .scope-grid--four,
  .process-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .case-hero,
  .case-section {
    padding: 64px var(--gutter, 20px);
  }

  .case-hero__title {
    font-size: 38px;
  }

  .case-hero__visual {
    min-height: 290px;
  }

  .case-facts__grid,
  .scope-grid,
  .scope-grid--four,
  .gallery-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .case-fact,
  .case-fact:last-child {
    border-right: 1px solid rgba(35, 39, 46, 0.12);
    border-bottom: 1px solid rgba(35, 39, 46, 0.12);
  }

  .gallery-card--tall {
    grid-row: auto;
  }

  .gallery-card img {
    min-height: 280px;
  }
}

/* Amber eyebrows fail contrast on the light sections (1.7:1); use the deep amber there. */
.case-section:not(.case-section--dark) .eyebrow {
  color: #8f6410;
}
