.case-body {
  background:
    radial-gradient(circle at top left, rgba(68, 138, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f5f9ff 42%, #f2f7ff 100%);
}

.case-scroll {
  background:
    radial-gradient(circle at right top, rgba(111, 179, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(10, 24, 58, 0.02), rgba(10, 24, 58, 0));
}

.case-body .desktop-nav a.is-active::after {
  background: linear-gradient(90deg, rgba(92, 170, 255, 0), #6cb6ff, rgba(92, 170, 255, 0));
}

.case-body .menu-toggle {
  border: 1px solid rgba(126, 179, 255, 0.2);
  background: rgba(43, 116, 255, 0.18);
}

.case-body .menu-toggle span {
  background: #fff;
}

.case-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 14, 40, 0.98), rgba(8, 27, 71, 0.92) 48%, rgba(3, 15, 39, 0.98)),
    radial-gradient(circle at 78% 22%, rgba(67, 132, 255, 0.18), transparent 24%);
}

.case-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 90, 176, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(38, 90, 176, 0.06) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 100%);
  opacity: 0.5;
}

.case-hero-card {
  align-items: stretch;
  gap: 16px;
  padding: 16px 22px 12px;
}

.case-hero-card::after {
  left: 22px;
  right: 22px;
  bottom: 4px;
}

.case-hero-copy {
  justify-content: center;
  padding: 8px 0;
  min-width: 0;
}

.case-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2.28rem, 3.25vw, 3.72rem);
  line-height: 0.98;
}

.case-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.case-hero-title span {
  display: block;
}

.case-hero-title span+span {
  margin-left: 0;
}

.case-hero-title .title-subline {
  font-size: 0.78em;
  line-height: 1.04;
  letter-spacing: 0;
}

.case-hero-copy .hero-text {
  max-width: 500px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.68;
}

.case-hero-copy .hero-actions {
  margin-top: 16px;
  gap: 12px;
}

.case-hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  align-self: start;
  min-width: 0;
}

.case-hero-main,
.case-hero-badge {
  border: 1px solid rgba(112, 172, 255, 0.16);
  border-radius: 24px;
  overflow: hidden;
}

.case-hero-main {
  min-height: 168px;
  margin-bottom: 12px;
  background: rgba(8, 28, 68, 0.44);
  min-width: 0;
}

.case-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.case-hero-badge {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 74px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(11, 34, 82, 0.88), rgba(6, 22, 58, 0.82)),
    radial-gradient(circle at top right, rgba(72, 139, 255, 0.18), transparent 36%);
  box-shadow: 0 20px 38px rgba(4, 18, 48, 0.22);
  min-width: 0;
}

.case-hero-badge span {
  color: rgba(223, 237, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-hero-badge strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.38;
  word-break: break-word;
}

.case-metric-strip .detail-metric strong {
  font-size: 1.08rem;
}

.case-metric-strip {
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
}

.case-metric-strip .detail-metric {
  gap: 14px;
  padding: 6px 16px;
}

.case-metric-strip .detail-metric i {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.case-metric-strip .detail-metric span {
  margin-top: 4px;
  font-size: 13px;
}

.case-light-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    radial-gradient(circle at right top, rgba(81, 151, 255, 0.08), transparent 16%);
}

.case-light-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left bottom, rgba(90, 162, 255, 0.08), transparent 18%),
    linear-gradient(90deg, rgba(100, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 168, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 100%);
  opacity: 0.5;
}

.case-split-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.case-copy-block,
.case-photo-stack,
.case-results-top {
  position: relative;
  z-index: 1;
}

.case-section-head {
  margin-bottom: 0;
}

.case-section-head h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.58rem);
  line-height: 1.1;
}

.case-section-head p {
  margin-top: 12px;
  font-size: 0.96rem;
}

.case-info-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.case-info-card {
  padding: 14px 16px;
  border: 1px solid rgba(111, 175, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(16, 48, 98, 0.05);
}

.case-info-card span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-info-card span::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.case-info-card p {
  margin: 10px 0 0;
  color: var(--text-main);
  line-height: 1.72;
}

.case-photo-stack {
  display: grid;
  gap: 14px;
  width: 78%;
  margin-left: auto;
}

.case-photo-card {
  margin: 0;
  border: 1px solid rgba(111, 175, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 48px rgba(17, 49, 98, 0.08);
}

.case-photo-large img,
.case-photo-small img {
  aspect-ratio: 2.35 / 1;
  width: 100%;
  object-fit: cover;
}

.case-photo-card figcaption {
  padding: 12px 16px 14px;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.62;
}

.case-process-panel .detail-section-head {
  margin-bottom: 22px;
}

.case-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-process-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(111, 175, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.98)),
    radial-gradient(circle at top right, rgba(98, 164, 255, 0.07), transparent 28%);
  box-shadow: 0 18px 44px rgba(16, 48, 98, 0.08);
}

.case-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--primary);
  font-size: 18px;
  background: linear-gradient(180deg, rgba(54, 121, 255, 0.1), rgba(54, 121, 255, 0.03));
}

.case-process-copy span {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-process-copy h3 {
  margin: 8px 0 0;
  color: var(--text-main);
  font-size: 1.15rem;
}

.case-process-copy p {
  margin: 8px 0 0;
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.68;
}

.case-process-card img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 1.8 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.case-results-panel {
  background:
    linear-gradient(180deg, rgba(6, 18, 44, 0.98), rgba(4, 14, 36, 0.98)),
    radial-gradient(circle at right top, rgba(67, 132, 255, 0.18), transparent 24%);
  color: var(--title-light);
}

.case-results-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 73, 156, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 73, 156, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 100%);
  opacity: 0.38;
}

.case-results-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.78fr);
  gap: 28px;
  align-items: center;
}

.case-results-panel .case-section-head h2,
.case-results-panel .case-section-head p,
.case-results-panel .case-section-head span {
  color: var(--title-light);
}

.case-results-panel .case-section-head p {
  color: rgba(242, 247, 255, 0.76);
}

.case-results-visual {
  width: min(560px, 100%);
  margin-left: auto;
  border: 1px solid rgba(112, 172, 255, 0.18);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(9, 28, 68, 0.44);
  box-shadow: 0 24px 54px rgba(4, 18, 48, 0.32);
}

.case-results-visual img {
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
}

.case-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.case-result-card {
  padding: 24px 22px;
  border: 1px solid rgba(120, 177, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.case-result-card strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
}

.case-result-card p {
  margin: 12px 0 0;
  color: rgba(242, 247, 255, 0.74);
  line-height: 1.8;
}

.case-cta-band {
  margin-top: 20px;
  border-color: rgba(126, 179, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(7, 22, 54, 0.82), rgba(5, 17, 42, 0.86)),
    radial-gradient(circle at 18% 50%, rgba(41, 116, 255, 0.16), transparent 18%);
}

.case-cta-band .detail-cta-copy h2 {
  font-size: clamp(1.52rem, 1.9vw, 2.14rem);
  line-height: 1.14;
  white-space: nowrap;
}

.case-cta-band .detail-cta-copy p {
  margin-top: 8px;
  font-size: 0.95rem;
}

.case-cta-band .detail-cta-actions {
  gap: 12px;
  flex-wrap: nowrap;
}

.case-cta-band .detail-cta-actions .primary-btn,
.case-cta-band .detail-cta-actions .detail-ghost-btn {
  min-width: 166px;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .case-hero-panel .detail-breadcrumb {
    margin-bottom: 10px;
  }

  .case-hero-copy {
    padding: 4px 0 0;
  }

  .case-hero-copy .eyebrow {
    margin-bottom: 12px;
  }

  .case-light-panel .detail-section-shell {
    justify-content: center;
  }

  #intro .case-section-head h2 {
    font-size: clamp(1.84rem, 2vw, 2.35rem);
  }

  #results .case-section-head h2 {
    font-size: clamp(1.72rem, 1.82vw, 2.16rem);
    white-space: normal;
  }

  #results .case-section-head p {
    max-width: 620px;
  }
}

@media (max-width: 1199px) {

  .case-split-shell,
  .case-results-top {
    grid-template-columns: 1fr;
  }

  .case-process-grid,
  .case-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-photo-stack {
    width: 100%;
    margin-left: 0;
  }

  .case-results-visual {
    width: 100%;
  }

  .case-photo-stack {
    width: 100%;
  }

  .case-hero-card {
    gap: 18px;
  }

  .case-metric-strip {
    margin-top: 14px;
  }
}

@media (max-width: 899px) {
  .case-cta-band {
    gap: 18px;
  }

  .case-cta-band .detail-cta-copy,
  .case-cta-band .detail-cta-actions {
    width: 100%;
    min-width: 0;
  }

  .case-cta-band .detail-cta-copy h2 {
    white-space: normal;
    font-size: clamp(1.4rem, 5.1vw, 1.88rem);
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .case-cta-band .detail-cta-copy p {
    max-width: none;
  }

  .case-cta-band .detail-cta-actions {
    gap: 10px;
    flex-wrap: wrap;
  }

  .case-cta-band .detail-cta-actions .primary-btn,
  .case-cta-band .detail-cta-actions .detail-ghost-btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .case-hero-card {
    grid-template-columns: 1fr;
  }

  .case-hero-card {
    gap: 16px;
    padding: 18px 18px 14px;
  }

  .case-hero-card::after {
    left: 18px;
    right: 18px;
    bottom: 6px;
  }

  .case-hero-copy {
    justify-content: flex-start;
    padding: 0;
  }

  .case-hero-copy h1 {
    max-width: none;
    padding-right: 0;
    font-size: clamp(1.56rem, 5.8vw, 2.08rem);
    line-height: 1.06;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .case-hero-title span {
    display: block;
  }

  .case-hero-title span+span {
    margin-left: 0;
    margin-top: 0;
  }

  .case-hero-title .title-subline {
    font-size: 0.76em;
    line-height: 1.04;
    letter-spacing: 0.18em;
    opacity: 0.92;
  }

  .case-hero-copy .hero-text {
    max-width: none;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.72;
  }

  .case-hero-copy .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .case-hero-copy .hero-actions .primary-btn,
  .case-hero-copy .hero-actions .detail-ghost-btn {
    width: 100%;
  }

  .case-hero-main {
    min-height: 220px;
    margin-bottom: 0;
  }

  .case-hero-side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-hero-badge {
    min-height: auto;
    padding: 12px 14px;
  }

  .case-metric-strip {
    margin-top: 16px;
  }

  .case-process-grid,
  .case-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .case-cta-band .detail-cta-copy h2 {
    font-size: clamp(1.28rem, 6vw, 1.56rem);
  }

  .case-cta-band .detail-cta-actions .primary-btn,
  .case-cta-band .detail-cta-actions .detail-ghost-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .case-hero-card {
    padding: 16px 14px 12px;
  }

  .case-hero-card::after {
    left: 14px;
    right: 14px;
  }

  .case-hero-copy h1 {
    font-size: clamp(1.42rem, 6.8vw, 1.78rem);
    line-height: 1.04;
  }

  .case-hero-title {
    gap: 3px;
  }

  .case-hero-title .title-subline {
    font-size: 0.74em;
  }

  .case-hero-main {
    min-height: 188px;
  }

  .case-hero-badge {
    min-height: auto;
    padding: 12px 14px;
  }

  .case-metric-strip {
    margin-top: 14px;
  }

  .case-process-card,
  .case-info-card,
  .case-result-card {
    padding: 18px;
  }

  .case-process-copy h3 {
    font-size: 1.18rem;
  }
}
