.case-study-body { background: var(--paper); }

.case-hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: 168px max(56px, calc((100vw - 1240px) / 2)) 88px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.09), transparent 28%),
    linear-gradient(125deg, #171719 0%, #070708 62%, #111114 100%);
}

.case-hero-inner { width: 100%; }
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 46px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-back span { transition: transform 180ms ease; }
.case-back:hover span { transform: translateX(-4px); }
.case-hero h1 { max-width: 970px; margin-bottom: 28px; }
.case-lead { max-width: 790px; margin: 0; color: rgba(255,255,255,.76); font-size: 20px; line-height: 1.7; }

.case-overview { padding: 96px 0 110px; }
.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 58px;
  margin: 0;
  border-top: 1px solid var(--ink);
}
.case-fact { padding: 31px 0 38px; border-bottom: 1px solid var(--line); }
.case-fact dt { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.case-fact dd { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }

.case-media { padding: 112px 0 124px; background: #101011; color: var(--white); }
.case-section-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.case-section-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 600; line-height: 1.03; letter-spacing: -.05em; }
.case-section-heading p { max-width: 470px; justify-self: end; margin: 0; color: rgba(255,255,255,.64); }

.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-gallery figure { margin: 0; overflow: hidden; background: #1a1a1b; }
.case-gallery img { width: 100%; height: auto; }
.case-gallery figcaption { padding: 13px 2px 0; color: rgba(255,255,255,.54); font-size: 12px; letter-spacing: .04em; }
.case-gallery--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery--brochure figure { background: #ece9e3; }
.case-gallery--adaptive figure { display: grid; align-content: center; min-height: 320px; background: #151a32; }
.case-gallery--adaptive figure figcaption { align-self: end; padding-inline: 2px; background: #101011; }

.case-video-section { margin-top: 112px; padding-top: 80px; border-top: 1px solid rgba(255,255,255,.18); }
.case-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
.case-video-frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; background: #050505; }
.case-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #050505; }
.case-video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity 180ms ease, transform 420ms ease; }
.case-video-poster:hover img { opacity: .68; transform: scale(1.015); }
.case-video-play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); transform: translate(-50%, -50%); }
.case-video-meta { padding-top: 17px; }
.case-video-meta h3 { margin-bottom: 5px; font-size: 21px; }
.case-video-meta p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.case-outcome { padding: 124px 0; }
.case-outcome-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 90px; align-items: start; }
.case-outcome h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.7rem); font-weight: 600; line-height: 1.02; letter-spacing: -.05em; }
.case-outcome-copy p { max-width: 760px; margin-bottom: 34px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.55; }
.case-next { display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid currentColor; font-weight: 700; }
.case-next span { transition: transform 180ms ease; }
.case-next:hover span { transform: translate(4px, -4px); }

.case-contact { padding: 90px 0; background: var(--blue); color: var(--white); }
.case-contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.case-contact h2 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 4.2vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.case-contact-actions { display: grid; justify-items: start; gap: 15px; }

.not-found { min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 48px; color: var(--white); background: var(--ink); }
.not-found-inner { width: min(760px, 100%); text-align: center; }
.not-found-code { margin-bottom: 18px; color: rgba(255,255,255,.5); font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.not-found h1 { margin-inline: auto; font-size: clamp(4.2rem, 14vw, 9rem); }
.not-found p { max-width: 600px; margin: 0 auto 38px; color: rgba(255,255,255,.68); font-size: 18px; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.button--outline { border: 1px solid rgba(255,255,255,.5); color: var(--white); }

@media (max-width: 900px) {
  .case-hero { min-height: 590px; padding: 132px 20px 68px; }
  .case-back { margin-bottom: 30px; }
  .case-lead { font-size: 18px; }
  .case-overview { padding: 72px 0 86px; }
  .case-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .case-section-heading p { justify-self: start; }
  .case-gallery--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery--adaptive figure { min-height: 0; }
  .case-outcome-grid { grid-template-columns: 1fr; gap: 34px; }
  .case-contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .case-hero { min-height: 520px; padding: 112px 16px 54px; }
  .case-hero h1 { margin-bottom: 22px; font-size: clamp(3rem, 15vw, 4.2rem); }
  .case-lead { font-size: 16px; line-height: 1.6; }
  .case-overview { padding: 56px 0 70px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-fact { padding: 24px 0 28px; }
  .case-fact dd { font-size: 1.28rem; }
  .case-media { padding: 72px 0 82px; }
  .case-section-heading { margin-bottom: 34px; }
  .case-section-heading h2 { font-size: 2.6rem; }
  .case-gallery,
  .case-gallery--portrait,
  .case-video-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-video-section { margin-top: 74px; padding-top: 56px; }
  .case-video-grid { max-width: 430px; }
  .case-outcome { padding: 82px 0; }
  .case-outcome h2 { font-size: 2.6rem; }
  .case-outcome-copy p { font-size: 1.2rem; }
  .case-contact { padding: 72px 0; }
  .case-contact-actions,
  .case-contact-actions .button { width: 100%; }
  .not-found-actions { display: grid; }
}
