/* ===========================
   CASES PAGE (collision-proof)
   Brand: #25e8d4 + #227b9b
   No animations
   0 rounding in hero/card
   =========================== */

:root{
  --dc-mint: #25e8d4;
  --dc-teal: #227b9b;
  --dc-ink: #1f2326;
  --dc-muted: rgba(31,35,38,.72);
  --dc-line: rgba(31,35,38,.12);
  --dc-bg: #ffffff;
  --dc-panel: #ffffff;
}

/* Page container spacing */
.cases-wrap{
  background: var(--dc-bg);
}

/* ===========================
   HERO: image RIGHT, card LEFT
   =========================== */

.case-hero{
  width: 100%;
}

.case-hero__inner{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  min-height: clamp(420px, 52vw, 560px);
}

/* media occupies the right side */
.case-hero__media{
  position: absolute;
  top: 0;
  right: 0;
  width: min(860px, 78%);
  height: 100%;
  overflow: hidden;
  border-radius: 0; /* sharp */
  background: #0b2230;
}

.case-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* optional brand overlay inside the image */
.case-hero__brand{
  position: absolute;
  right: clamp(18px, 2.2vw, 26px);
  bottom: clamp(18px, 2.2vw, 26px);
  opacity: .92;
  width: clamp(120px, 15vw, 190px);
  pointer-events: none;
}
.case-hero__brand img{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.25));
}

/* overlay card on the left */
.case-hero__card{
  position: relative;
  z-index: 2;
  width: min(620px, 60%);
  background: var(--dc-panel);
  border-radius: 0; /* sharp */
  padding: clamp(22px, 3.2vw, 44px);
  top: clamp(180px, 7vw, 130px); /* puts it below, like the comparison */
  left: 0;
}

.case-hero__kicker{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 12px;
  color: var(--dc-teal);
  margin-bottom: 14px;
}

.case-hero__title{
  margin: 0 0 14px 0;
  color: #000;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(34px, 4.2vw, 56px);
}

.case-hero__sub{
  margin: 0 0 22px 0;
  color: var(--dc-muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 54ch;
}

.case-hero__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--dc-line);
}

.case-hero__read{
  color: rgba(31,35,38,.55);
  font-size: 14px;
}

.case-hero__actions{
  display: flex;
  gap: 10px;
}

.case-hero__iconbtn{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31,35,38,.14);
  background: #fff;
  border-radius: 999px; /* buttons can be rounded; only hero/card must be sharp */
  cursor: pointer;
}
.case-hero__iconbtn:focus{
  outline: 2px solid rgba(37,232,212,.35);
  outline-offset: 2px;
}

/* ===========================
   STAT BAND (thin, clean)
   =========================== */

.case-statband{
  width: 100%;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.case-statband__inner{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 2px solid rgba(37,232,212,.45);
  border-bottom: 2px solid rgba(37,232,212,.45);
  padding: clamp(18px, 2.6vw, 26px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  align-items: center;
}

.case-statband__big{
  font-weight: 800;
  font-size: clamp(38px, 4.5vw, 54px);
  letter-spacing: -0.03em;
  color: var(--dc-teal);
}

.case-statband__text{
  color: var(--dc-ink);
  font-weight: 600;
  line-height: 1.4;
  max-width: 52ch;
}

/* ===========================
   CONTENT GRID
   =========================== */

.case-content{
  width: 100%;
  margin-top: clamp(26px, 4vw, 54px);
}

.case-content__grid{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(22px, 3vw, 42px);
}

.case-article{
  color: var(--dc-ink);
  line-height: 1.95;
  font-size: 18px;
}

.case-h{
  margin: 0 0 18px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--dc-teal);
}

.case-h2{
  margin: 26px 0 10px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--dc-ink);
}

.case-note{
  margin-top: 28px;
  color: rgba(31,35,38,.55);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
}

.case-side{
  position: relative;
  top: 2px;
}

.case-side__block{
  padding: 0 0 18px 0;
  border-bottom: 1px solid var(--dc-line);
  margin-bottom: 18px;
}

.case-side__title{
  font-weight: 800;
  color: var(--dc-ink);
  margin-bottom: 10px;
}

.case-side__link{
  display: block;
  padding: 9px 0;
  color: var(--dc-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31,35,38,.08);
}
.case-side__link:last-child{ border-bottom: 0; }
.case-side__link:hover{ color: var(--dc-teal); }

.case-side__cards{
  display: grid;
  gap: 14px;
}

.case-sidecard{
  border: 1px solid rgba(31,35,38,.14);
  background: #fff;
  padding: 14px 14px 12px;
}

.case-sidecard__k{
  color: rgba(31,35,38,.55);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.case-sidecard__t{
  font-weight: 800;
  color: var(--dc-ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

.case-sidecard__d{
  color: rgba(31,35,38,.68);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.case-sidecard__cta{
  color: var(--dc-teal);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

/* ===========================
   “How we’ve helped” stacked blocks
   =========================== */

.case-more{
  width: 100%;
  margin-top: clamp(34px, 5vw, 70px);
}

.case-more__inner{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.case-more__h{
  margin: 0 0 18px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dc-ink);
}

.case-more__stack{
  border: 1px solid rgba(31,35,38,.12);
}

.case-more__item{
  display: block;
  padding: 22px 22px;
  text-decoration: none;
  color: var(--dc-ink);
  background: linear-gradient(90deg, rgba(34,123,155,.10), rgba(37,232,212,.08));
  border-top: 1px solid rgba(31,35,38,.10);
}
.case-more__item:first-child{ border-top: 0; }

.case-more__tag{
  font-weight: 800;
  font-size: 13px;
  color: rgba(31,35,38,.70);
  margin-bottom: 8px;
}

.case-more__title{
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: 22px;
  max-width: 52ch;
}

.case-more__cta{
  margin-top: 12px;
  color: var(--dc-teal);
  font-weight: 900;
  font-size: 14px;
}

/* ===========================
   MOBILE: match the “native” feel
   =========================== */

@media (max-width: 980px){
  .case-content__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px){
  .case-hero__inner{
    width: calc(100% - 28px);
    min-height: unset;
  }

  .case-hero__media{
    position: relative;
    width: 100%;
    height: 260px;
  }

  .case-hero__card{
    width: 100%;
    margin-top: -22px; /* card overlaps image like the reference */
    padding: 18px 18px 16px;
    top: 0 !important;
    padding-top: 4rem;
  }

  .case-hero__title{
    font-size: 34px;
  }

  .case-statband__inner{
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .case-content__grid,
  .case-more__inner{
    width: calc(100% - 28px);
  }

  .case-article{
    font-size: 17px;
  }

  .case-more__title{
    font-size: 20px;
  }
}


/* ===========================
   Case article embed for Ops Panel
   (keeps ops visuals, fixes placement + full-width on mobile)
   =========================== */

.case-article .case-opsEmbed {
  margin-top: 22px;
}

.case-article .case-opsEmbed .ops-panel {
  max-width: none;    /* override 720px cap */
  margin-left: 0;     /* override margin-left:auto */
  margin-right: 0;
  width: 100%;
}

@media (max-width: 899px) {
  .case-article .case-opsEmbed .ops-panel {
    max-width: none;  /* override mobile 420px cap */
    width: 100%;
  }
}
