.case-main {
  min-height: 100vh;
}

.case-hero,
.study-hero {
  padding-top: 168px;
}

.case-hero {
  padding-bottom: 76px;
}

.case-hero-copy {
  max-width: 900px;
}

.case-hero h1,
.study-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.case-hero-copy > p:not(.eyebrow) {
  max-width: 730px;
  font-size: 1.08rem;
}

.case-listing {
  padding-top: 24px;
}

.case-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.case-card + .case-card {
  margin-top: 30px;
}

.case-card-visual {
  min-height: 460px;
  overflow: hidden;
  background: #edf5fb;
}

.case-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.case-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.case-kicker {
  margin-bottom: 17px;
  color: var(--blue-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-card h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 7px 0 30px;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 7px 11px;
  border: 1px solid rgba(57,124,246,.17);
  border-radius: 999px;
  color: #42617e;
  background: #f3f8fd;
  font-size: .72rem;
  font-weight: 700;
}

.case-result {
  margin: 4px 0 24px;
  padding: 15px 17px;
  border: 1px solid rgba(57,124,246,.16);
  border-radius: 14px;
  color: #47627c;
  background: linear-gradient(135deg, #eef8ff, #f5f2ff);
  font-size: .84rem;
}

.case-result strong {
  color: var(--blue-deep);
}

.case-proof-note {
  max-width: 780px;
  margin: 44px auto 0;
  text-align: center;
  font-size: .86rem;
}

.study-hero {
  padding-bottom: 48px;
}

.study-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 32px;
  color: #718398;
  font-size: .78rem;
}

.study-breadcrumbs a {
  color: var(--blue-deep);
  text-decoration: none;
}

.study-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.study-heading {
  max-width: 990px;
}

.study-heading > p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.study-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.study-facts div {
  min-width: 0;
  padding: 22px;
  background: rgba(255,255,255,.94);
}

.study-facts dt {
  margin-bottom: 6px;
  color: #71869c;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.study-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.4;
}

.study-visual {
  margin: 0 auto;
  padding-bottom: 88px;
}

.study-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.study-visual figcaption {
  max-width: 800px;
  margin-top: 13px;
  color: #718398;
  font-size: .72rem;
}

.website-showcase {
  margin-bottom: 100px;
  padding: 58px;
  border: 1px solid rgba(68,127,209,.16);
  border-radius: 34px;
  background: linear-gradient(145deg, #f4f9ff, #ffffff 48%, #f3efff);
  box-shadow: var(--shadow);
}

.website-showcase-heading { max-width: 770px; margin-bottom: 42px; }
.website-showcase-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.website-showcase-heading > p:not(.eyebrow) { font-size: 1rem; }

.device-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-right: clamp(110px, 14vw, 155px);
}

.device-showcase figure { margin: 0; }
.desktop-capture { overflow: hidden; border: 1px solid rgba(20,53,89,.18); border-radius: 20px; background: white; box-shadow: 0 24px 52px rgba(18,55,98,.18); }
.capture-bar { display: flex; align-items: center; gap: 7px; height: 37px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.capture-bar span { width: 7px; height: 7px; border-radius: 50%; background: #cbd8e4; }
.capture-bar span:first-child { background: #76d4e2; }
.capture-bar span:nth-child(2) { background: #8f86e9; }
.capture-bar small { margin-left: auto; color: #8a9aad; font-size: .57rem; }
.desktop-capture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.mobile-capture { position: absolute; z-index: 2; top: 50%; right: 0; width: clamp(155px, 18vw, 210px); padding: 17px 10px 13px; border: 1px solid rgba(20,53,89,.2); border-radius: 31px; background: #0a1629; box-shadow: 0 24px 52px rgba(18,55,98,.22); transform: translateY(-50%); }
.phone-capture-speaker { width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: #4b586c; }
.mobile-capture img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border-radius: 20px; }
.device-showcase figcaption { padding: 10px 2px 0; color: #6e8298; font-size: .67rem; font-weight: 700; }
.mobile-capture figcaption { color: #b4c1cf; }

.study-body {
  padding: 100px 0 110px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.48);
}

.study-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 80px;
}

.study-toc {
  position: sticky;
  top: 125px;
  align-self: start;
}

.study-toc > span {
  display: block;
  margin-bottom: 14px;
  color: #71869c;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.study-toc nav {
  display: grid;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.study-toc a {
  color: #50677e;
  font-size: .82rem;
  text-decoration: none;
}

.study-toc a:hover {
  color: var(--blue-deep);
}

.study-content > section {
  padding: 0 0 64px;
  scroll-margin-top: 120px;
}

.study-content > section + section {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.study-content h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.study-content h3 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.study-content p,
.study-content li {
  font-size: .98rem;
}

.study-content ul {
  display: grid;
  gap: 12px;
  margin: 25px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.study-content strong {
  color: var(--ink);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.deliverable {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.74);
}

.deliverable span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.deliverable h3 {
  margin: 0 0 8px;
}

.deliverable p {
  margin: 0;
  font-size: .86rem;
}

.evidence-panel {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid rgba(57,124,246,.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #edf8ff, #f4f1ff);
}

.evidence-panel h3 {
  margin-top: 0;
}

.evidence-panel p:last-child {
  margin-bottom: 0;
}

.visibility-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.visibility-result {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(57,124,246,.18);
  border-radius: 19px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 35px rgba(18,55,98,.08);
}

.visibility-result-primary {
  background: linear-gradient(145deg, #eaf8ff, #f1edff);
}

.visibility-result-label {
  display: block;
  min-height: 2.7em;
  margin-bottom: 14px;
  color: #667d94;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.visibility-result strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  line-height: 1;
}

.visibility-result strong small {
  font-size: .38em;
}

.visibility-result p {
  margin: 0;
  color: #60758a;
  font-size: .78rem;
  line-height: 1.55;
}

.benchmark-evidence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 36px;
}

.benchmark-evidence figure,
.ai-recommendation-proof figure {
  margin: 0;
}

.benchmark-evidence img,
.ai-recommendation-proof img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.benchmark-evidence figcaption,
.ai-recommendation-proof figcaption {
  margin-top: 9px;
  color: #72869a;
  font-size: .68rem;
  line-height: 1.5;
}

.ai-recommendation-proof {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0 24px;
  padding: 28px;
  border: 1px solid rgba(57,124,246,.18);
  border-radius: 22px;
  background: linear-gradient(145deg, #f5faff, #f7f4ff);
}

.ai-recommendation-proof h3 {
  margin-top: 0;
}

.ai-recommendation-proof .eyebrow + h3 {
  margin-top: 0;
}

.benchmark-note {
  padding-left: 16px;
  border-left: 3px solid #79d2df;
  color: #6d8195;
  font-size: .76rem !important;
  line-height: 1.65;
}

.study-cta {
  padding: 90px 0;
}

.study-cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 45px;
  align-items: center;
  padding: clamp(34px, 6vw, 65px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #102e51, #173f71 48%, #343f82);
  box-shadow: 0 30px 80px rgba(21,60,106,.22);
}

.study-cta-panel h2 {
  max-width: 720px;
  margin-bottom: 10px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.study-cta-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: #bfd0e2;
}

@media (max-width: 980px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card-visual {
    min-height: 380px;
  }

  .study-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .study-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .study-toc {
    position: static;
  }

  .study-toc nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 10px 20px;
  }

  .visibility-results {
    grid-template-columns: 1fr 1fr;
  }

  .visibility-result-primary {
    grid-column: 1 / -1;
  }

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

@media (max-width: 650px) {
  .case-hero,
  .study-hero {
    padding-top: 130px;
  }

  .case-hero {
    padding-bottom: 45px;
  }

  .case-card {
    border-radius: 22px;
  }

  .case-card-visual {
    min-height: 260px;
  }

  .case-card-copy {
    padding: 29px 23px 34px;
  }

  .study-facts,
  .deliverables-grid,
  .visibility-results,
  .benchmark-evidence {
    grid-template-columns: 1fr;
  }

  .visibility-result-primary {
    grid-column: auto;
  }

  .visibility-result-label {
    min-height: 0;
  }

  .ai-recommendation-proof {
    padding: 23px;
  }

  .study-visual {
    padding-bottom: 65px;
  }

  .study-visual img {
    border-radius: 20px;
  }

  .website-showcase { margin-bottom: 72px; padding: 32px 20px; border-radius: 25px; }
  .website-showcase-heading { margin-bottom: 28px; }
  .device-showcase { grid-template-columns: 1fr; gap: 25px; padding-right: 0; }
  .mobile-capture { position: relative; top: auto; right: auto; width: min(68%, 260px); margin-inline: auto !important; transform: none; }

  .study-body {
    padding: 70px 0 80px;
  }

  .study-toc nav {
    grid-template-columns: 1fr 1fr;
  }

  .study-content > section {
    padding-bottom: 48px;
  }

  .study-content > section + section {
    padding-top: 48px;
  }

  .study-cta-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .study-cta-panel .button {
    width: 100%;
  }
}
