/* =====================================
   HORIZON ENERGY PLUS CASE STUDY
====================================== */
.horizon .case-study {
  --horizon-cream: #f6efe2;
  --horizon-wine: #5f2634;
  --horizon-aqua: #68d7d1;
  --horizon-coral: #f06f4f;
  --horizon-gold: #e4b33f;
  --horizon-green: #7eaa48;
}

.horizon-case-hero h1 {
  color: var(--horizon-wine);
}

.horizon-hero {
  margin: 0 0 9rem;
}

.horizon-hero img,
.horizon-identity img,
.horizon-products > img,
.horizon-brochure > img,
.horizon-field > img {
  display: block;
  width: 100%;
}

.horizon-hero img {
  max-height: 88vh;
  object-fit: cover;
}

.horizon-hero figcaption,
.horizon-identity figcaption,
.horizon-bulk figcaption,
.horizon-phone figcaption,
.horizon-activation figcaption {
  padding-top: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.horizon-hero figcaption {
  padding-bottom: 0.75rem;
}

.horizon-identity {
  margin: 0;
  background: #b9ecea;
}

.horizon-identity img {
  max-height: 82vh;
  object-fit: cover;
}

.horizon-identity figcaption {
  padding-bottom: 0.75rem;
}

.horizon-overview,
.horizon-bulk,
.horizon-reflection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  padding-bottom: 9rem;
}

.horizon-overview h2,
.horizon-section-heading h2,
.horizon-bulk h2,
.horizon-social h2,
.horizon-activation h2,
.horizon-reflection h2 {
  margin: 0.75rem 0 2rem;
  font: 600 clamp(2.7rem, 5vw, 5.2rem) / 0.98 var(--display);
  letter-spacing: -0.05em;
  color: var(--horizon-wine);
}

.horizon-copy .lead {
  margin-top: 0;
  font: 500 clamp(1.45rem, 2.2vw, 2.2rem) / 1.2 var(--display);
  letter-spacing: -0.025em;
}

.horizon-products,
.horizon-brochure,
.horizon-field {
  padding-top: 8rem;
  background: var(--horizon-cream);
}

.horizon-section-heading {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.8fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.horizon-section-heading h2 {
  margin-top: 0;
}

.horizon-products > img {
  background: var(--horizon-cream);
}

.horizon-bulk {
  align-items: center;
  padding-block: 9rem;
}

.horizon-bulk figure,
.horizon-phone,
.horizon-activation figure {
  margin: 0;
}

.horizon-bulk img,
.horizon-phone img,
.horizon-activation img {
  display: block;
  width: 100%;
}

.horizon-brochure {
  background: #ef7c5f;
}

.horizon-brochure .horizon-section-heading,
.horizon-brochure .horizon-section-heading h2 {
  color: #381f27;
}

.horizon-social {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 5rem;
  padding-block: 9rem;
}

.horizon-social-copy {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.horizon-social-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.horizon-social-posts img {
  display: block;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.horizon-social-posts img:nth-child(even) {
  transform: translateY(2.5rem);
}

.horizon-social-posts img:hover {
  transform: translateY(-0.5rem);
}

.horizon-social-posts img:nth-child(even):hover {
  transform: translateY(2rem);
}

.horizon-phone {
  grid-column: 1 / -1;
  margin-top: 5rem;
}

.horizon-field {
  overflow: hidden;
}

.horizon-keychain {
  margin-top: 2rem;
  background: var(--horizon-cream);
}

.horizon-activation {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 2rem;
  padding-block: 9rem;
}

.horizon-activation-copy {
  grid-row: span 2;
  padding-right: 2rem;
}

.horizon-tent,
.horizon-van {
  min-width: 0;
}

.horizon-tent img,
.horizon-van img {
  height: 720px;
  object-fit: cover;
}

.horizon-table {
  grid-column: 2 / -1;
}

.horizon-reflection {
  grid-template-columns: 0.45fr 1.1fr 0.9fr;
  padding-block: 8rem;
  border-block: 1px solid var(--line);
}

.horizon-reflection h2 {
  margin-top: 0;
}

.horizon-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.horizon-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .horizon-hero {
    margin-bottom: 6rem;
  }

  .horizon-overview,
  .horizon-bulk,
  .horizon-section-heading,
  .horizon-social,
  .horizon-activation,
  .horizon-reflection {
    grid-template-columns: 1fr;
  }

  .horizon-overview,
  .horizon-bulk {
    padding-bottom: 6rem;
  }

  .horizon-section-heading {
    gap: 0;
    padding-inline: 1.5rem;
  }

  .horizon-social,
  .horizon-activation {
    padding-block: 6rem;
  }

  .horizon-social-copy {
    position: static;
  }

  .horizon-social-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .horizon-phone,
  .horizon-table {
    grid-column: 1;
  }

  .horizon-activation-copy {
    grid-row: auto;
    padding-right: 0;
  }

  .horizon-tent img,
  .horizon-van img {
    height: auto;
  }

  .horizon-reflection {
    padding-block: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizon-reveal {
    opacity: 1;
    transform: none;
  }

  .horizon-social-posts img {
    transition: none;
  }
}
