/* Toolbelt Websites — Case Studies library staging v1.0.1 */

.case-library-page {
  background: #fff;
}

.case-library-page .eyeline {
  color: var(--accent);
}

.csl-hero {
  padding: 178px 0 92px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.csl-hero-inner {
  max-width: 900px;
}

.csl-hero h1 {
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: .88;
}

.csl-hero-punch {
  margin-top: 28px;
  font-family: var(--heading);
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.csl-hero-copy {
  max-width: 760px;
  margin-top: 24px;
  color: #505860;
  font-size: 1.08rem;
  line-height: 1.75;
}

.csl-library {
  padding: 96px 0 110px;
  background: #F5F3EE;
}

.csl-section-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.csl-section-intro h2 {
  font-size: clamp(3.6rem, 5.5vw, 5.4rem);
}

.csl-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr);
  background: #fff;
  border: 1px solid #d9dcdf;
  box-shadow: 0 26px 70px rgba(11,13,15,.10);
  overflow: hidden;
}

.csl-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  z-index: 3;
}

.csl-featured-media {
  min-width: 0;
  background: #101317;
  overflow: hidden;
}

.csl-browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 42px;
  padding: 0 17px;
  background: #181c21;
}

.csl-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d646c;
}

.csl-browser-bar span:first-child {
  background: var(--accent);
}

.csl-featured-image-wrap {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #fff;
}

.csl-featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.csl-featured-media:hover img,
.csl-featured-media:focus-visible img {
  transform: scale(1.025);
}

.csl-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 50px 50px;
}

.csl-featured-copy h3 {
  font-size: clamp(3.2rem, 4.5vw, 4.8rem);
  line-height: .92;
}

.csl-featured-copy h3 a:hover {
  color: #22272b;
}

.csl-featured-lead {
  margin-top: 25px;
  color: #505860;
  font-size: 1rem;
  line-height: 1.72;
}

.csl-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid #dadde0;
  border-bottom: 1px solid #dadde0;
}

.csl-proof {
  min-width: 0;
  padding: 22px 16px 22px 0;
}

.csl-proof + .csl-proof {
  padding-left: 16px;
  border-left: 1px solid #dadde0;
}

.csl-proof strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.csl-proof span {
  display: block;
  margin-top: 8px;
  color: #697078;
  font-size: .75rem;
  line-height: 1.4;
}

.csl-case-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.csl-case-link span {
  transition: transform .2s ease;
}

.csl-case-link:hover span,
.csl-case-link:focus-visible span {
  transform: translateX(5px);
}

.csl-final-cta {
  padding: 86px 0 90px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 35%, rgba(242,179,22,.11) 0 110px, transparent 112px),
    #0a0c0e;
}

.csl-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: 80px;
  align-items: end;
}

.csl-final-cta h2 {
  max-width: 760px;
  font-size: clamp(3.7rem, 5.8vw, 5.7rem);
}

.csl-final-cta-copy p {
  color: #c7ccd1;
  font-size: 1rem;
  line-height: 1.7;
}

.csl-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Future library state: when enough projects exist, cards can populate this grid
   without changing the page hero or featured project architecture. */
.csl-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 1050px) {
  .csl-featured-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .csl-featured-copy {
    padding: 44px 36px 40px;
  }

  .csl-proof-grid {
    grid-template-columns: 1fr;
  }

  .csl-proof,
  .csl-proof + .csl-proof {
    padding: 14px 0;
    border-left: 0;
  }

  .csl-proof + .csl-proof {
    border-top: 1px solid #dadde0;
  }
}

@media (max-width: 820px) {
  .csl-hero {
    padding: 150px 0 72px;
  }

  .csl-library {
    padding: 76px 0 84px;
  }

  .csl-featured-card,
  .csl-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .csl-featured-image-wrap {
    aspect-ratio: 1.65 / 1;
  }

  .csl-featured-copy {
    padding: 38px 32px 40px;
  }

  .csl-final-cta-inner {
    gap: 34px;
  }

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

@media (max-width: 560px) {
  .csl-hero h1 {
    font-size: clamp(4.2rem, 21vw, 6rem);
  }

  .csl-hero-punch {
    font-size: 2rem;
  }

  .csl-featured-copy {
    padding: 32px 24px 34px;
  }

  .csl-featured-copy h3 {
    font-size: 3rem;
  }

  .csl-featured-image-wrap {
    aspect-ratio: 1.25 / 1;
  }

  .csl-final-actions {
    flex-direction: column;
  }

  .csl-final-actions .btn {
    width: 100%;
  }

  .csl-project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csl-featured-image-wrap img,
  .csl-case-link span {
    transition: none;
  }
}
