.case-detail-page {
  --case-detail-container: 1720px;
  --case-detail-gutter: clamp(48px, 6vw, 120px);
  --case-detail-half-gutter: clamp(24px, 3vw, 60px);
  --case-blue: #2f80ed;
  --case-blue-dark: #175fc8;
  --case-ink: #14233b;
  --case-muted: #5e718c;
  --case-line: #dceafb;
  --case-surface: #f5f9ff;
}

.case-detail-page main .container,
.case-detail-page .site-footer .container {
  width: min(100% - var(--case-detail-gutter), var(--case-detail-container));
}

.case-detail-page .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.case-detail-page .site-header .nav-shell {
  width: calc(100% - clamp(32px, 3.4vw, 56px));
  max-width: none;
  min-height: 82px;
  gap: clamp(24px, 3vw, 52px);
}

.case-detail-page .brand img {
  width: 150px;
}

.case-detail-page .primary-nav {
  gap: clamp(26px, 2.5vw, 46px);
  color: #27354a;
  font-size: 15px;
  font-weight: 500;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #f4f9ff;
}

.detail-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 88px;
  background: linear-gradient(180deg, rgba(244, 249, 255, 0), #f4f9ff 88%);
  content: "";
  pointer-events: none;
}

.detail-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 560px;
}

@media (min-width: 981px) {
  .case-detail-page main .detail-hero-grid {
    width: calc(100% - max(var(--case-detail-half-gutter), calc(50% - 860px)));
    max-width: none;
    margin-right: 0;
    margin-left: auto;
  }
}

.detail-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 42px 72px 0;
}

.breadcrumbs {
  position: absolute;
  top: 26px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #6680a1;
  font-size: 13px;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a + a::before,
.breadcrumbs span::before {
  margin-right: 8px;
  color: #9bb0c8;
  content: ">";
}

.case-labels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.case-labels small {
  color: #94a5ba;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.case-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e6f1ff;
  color: var(--case-blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.detail-hero h1 {
  margin: 0 0 8px;
  color: var(--case-ink);
  font-size: clamp(38px, 3vw, 54px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--case-blue);
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.35;
  font-weight: 800;
}

.hero-text {
  max-width: 660px;
  margin: 0 0 30px;
  color: #445873;
  font-size: 15px;
  line-height: 1.85;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  margin: 0;
}

.hero-metrics div {
  position: relative;
  min-width: 0;
  padding: 0 20px;
}

.hero-metrics div:first-child {
  padding-left: 0;
}

.hero-metrics div + div::before {
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: #d7e7fa;
  content: "";
}

.hero-metrics img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.hero-metrics dt {
  color: var(--case-blue);
  font-size: clamp(22px, 1.65vw, 32px);
  line-height: 1.12;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-metrics dd {
  margin: 7px 0 0;
  color: #546983;
  font-size: 12px;
}

.detail-hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.detail-hero-visual::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 46%;
  background: linear-gradient(90deg, #f4f9ff 0%, rgba(244, 249, 255, 0.94) 28%, rgba(244, 249, 255, 0.55) 62%, rgba(244, 249, 255, 0) 100%);
  content: "";
}

.detail-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.case-facts {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -42px;
  padding: 18px 26px;
  border: 1px solid var(--case-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(51, 100, 157, 0.1);
  backdrop-filter: blur(12px);
}

.meta-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0 24px;
}

.meta-item + .meta-item {
  border-left: 1px solid #e4eef9;
}

.meta-item img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.meta-item strong,
.meta-item span {
  display: block;
}

.meta-item strong {
  margin-bottom: 4px;
  color: #2e425f;
  font-size: 13px;
}

.meta-item span {
  color: #5c708a;
  font-size: 12px;
  line-height: 1.5;
}

.quote-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px auto 48px;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 36px;
  min-height: 112px;
  padding: 18px 30px;
  border: 1px solid #dceafb;
  border-radius: 14px;
  background: linear-gradient(90deg, #f5f9ff 0%, #eef6ff 100%);
  box-shadow: 0 12px 30px rgba(50, 100, 160, 0.08);
  text-align: center;
}

.quote-band:only-child {
  grid-column: 1 / -1;
}

.principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.principal img {
  width: 70px;
  height: 70px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(36, 79, 128, 0.14);
}

.principal strong {
  display: block;
  color: #1b3151;
  font-size: 16px;
}

.principal span {
  display: block;
  margin-top: 5px;
  color: #687b91;
  font-size: 12px;
}

.quote-band blockquote {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 34px;
  color: #263a59;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 700;
  text-align: center;
}

.quote-band blockquote::before,
.quote-band blockquote::after {
  position: absolute;
  color: #b8d7ff;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.quote-band blockquote::before {
  top: -8px;
  left: 0;
  content: "“";
}

.quote-band blockquote::after {
  right: 0;
  bottom: -22px;
  content: "”";
}

.detail-main {
  padding: 0 0 42px;
}

.case-story {
  display: grid;
  gap: 54px;
}

.story-section {
  min-width: 0;
}

.story-section.reconstruction {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid #dce9f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 16px 42px rgba(46, 94, 149, 0.09);
}

.reconstruction-rich-content {
  max-width: 1120px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  color: #52667f;
  font-size: 15px;
  line-height: 1.85;
}

.reconstruction-rich-content > :first-child {
  margin-top: 0;
}

.reconstruction-rich-content > :last-child {
  margin-bottom: 0;
}

.reconstruction-rich-content h2,
.reconstruction-rich-content h3 {
  color: var(--case-ink);
  line-height: 1.45;
}

.reconstruction-rich-content h2 {
  margin: 30px 0 16px;
  font-size: 24px;
}

.reconstruction-rich-content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}

.reconstruction-rich-content p {
  margin: 0 0 16px;
}

.reconstruction-rich-content ul,
.reconstruction-rich-content ol {
  margin: 0 0 18px;
  padding-left: 28px;
}

.reconstruction-rich-content li + li {
  margin-top: 7px;
}

.reconstruction-rich-content > blockquote:not(.closing-quote) {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--case-blue);
  border-radius: 0 8px 8px 0;
  background: #f2f7ff;
  color: #50637a;
}

.reconstruction-rich-content > img,
.reconstruction-rich-content p > img,
.reconstruction-rich-content div > img {
  display: block;
  width: min(100%, 820px);
  max-height: 580px;
  height: auto;
  margin: 24px auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(40, 87, 142, 0.12);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;
}

.section-title .line {
  position: relative;
  width: 44px;
  height: 1px;
  background: #bcd8f8;
}

.section-title .line:first-child::after,
.section-title .line:last-child::before {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--case-blue);
  content: "";
  transform: translateY(-50%);
}

.section-title .line:first-child::after {
  right: 0;
}

.section-title .line:last-child::before {
  left: 0;
}

.challenge-grid {
  display: grid;
  gap: 16px;
}

.challenge-card,
.method-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 116px;
  padding: 22px 34px;
  border: 1px solid #dce9f8;
  border-radius: 13px;
  background: linear-gradient(100deg, #f4f8ff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(46, 94, 149, 0.045);
}

.challenge-card {
  grid-template-columns: 64px minmax(0, 900px);
  justify-content: center;
}

.challenge-card > div {
  text-align: center;
}

.story-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f0ff;
}

.story-icon img {
  width: 38px;
  height: 38px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.challenge-card h3,
.method-card h3,
.article-copy h3 {
  margin: 0 0 8px;
  color: var(--case-blue-dark);
  font-size: 18px;
  line-height: 1.45;
}

.challenge-card p,
.method-card p,
.article-copy p {
  margin: 0;
  color: #52667f;
  font-size: 14px;
  line-height: 1.8;
}

.section-lead {
  max-width: 960px;
  margin: -4px auto 22px;
  color: #50637b;
  text-align: center;
  font-size: 14px;
  line-height: 1.85;
}

.method-card {
  max-width: 1120px;
  margin: 0 auto 22px;
  background: #fff;
}

.article-copy {
  max-width: 1000px;
  margin: 0 auto;
}

.article-copy h3 {
  margin-top: 24px;
  color: var(--case-ink);
  text-align: center;
  font-size: 22px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 24px auto 18px;
}

.result-grid article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 18px;
  min-height: 112px;
  padding: 20px 24px;
  border: 1px solid #dce9f8;
  border-radius: 12px;
  background: linear-gradient(105deg, #f5f9ff 0%, #edf5ff 100%);
}

.result-grid span {
  grid-column: 1 / -1;
  color: #314865;
  font-size: 13px;
  font-weight: 700;
}

.result-grid strong {
  color: var(--case-blue);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.result-grid strong small {
  color: #1c8d64;
  font-size: 18px;
}

.result-grid em {
  color: var(--case-blue-dark);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
}

.closing-quote {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 22px;
  border-left: 4px solid var(--case-blue);
  border-radius: 0 8px 8px 0;
  background: #f2f7ff;
  color: #50637a;
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  min-height: 172px;
  padding: 24px 68px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8f5ff 0%, #dff0ff 55%, #d8ebff 100%);
}

.cta-copy {
  position: relative;
  z-index: 2;
}

.cta-copy h2 {
  margin: 0 0 6px;
  color: var(--case-blue);
  font-size: 25px;
  line-height: 1.25;
}

.cta-copy p {
  margin: 0 0 16px;
  color: #556a86;
  font-size: 14px;
}

.cta-actions {
  display: flex;
  gap: 14px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 28px;
  border: 1px solid #d0e0f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #33516f;
  font-size: 14px;
  font-weight: 700;
}

.cta-visual {
  position: relative;
  align-self: stretch;
  min-height: 172px;
  margin: -24px -68px -24px 0;
}

.cta-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 24%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 24%, #000 48%);
}

@media (max-width: 1100px) {
  .detail-hero-grid {
    grid-template-columns: minmax(430px, 0.95fr) minmax(420px, 1.05fr);
  }

  .hero-metrics div {
    padding: 0 12px;
  }

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

  .meta-item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-hero-copy {
    padding: 82px 0 60px;
  }

  .detail-hero-visual {
    order: -1;
    min-height: 320px;
  }

  .detail-hero-visual::before {
    inset: auto 0 0;
    width: auto;
    height: 46%;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0), #f4f9ff 92%);
  }

  .detail-hero-visual img {
    min-height: 320px;
  }

  .breadcrumbs {
    top: 34px;
  }

  .case-facts {
    margin-top: -28px;
  }

  .quote-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 28px 28px 0;
  }

  .cta-visual {
    width: calc(100% + 56px);
    min-height: 210px;
    margin: 24px -28px 0;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .case-detail-page .site-header .nav-shell {
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 70px;
    padding: 0;
  }

  .case-detail-page .brand img {
    width: 118px;
  }

  .case-detail-page .primary-nav {
    order: initial;
    justify-content: center;
    width: auto;
    gap: 24px;
    overflow: visible;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .case-detail-page {
    --case-detail-gutter: 28px;
  }

  .case-detail-page .site-header .nav-shell {
    min-height: 70px;
  }

  .case-detail-page .brand img {
    width: 118px;
  }

  .case-detail-page .primary-nav {
    gap: 18px;
    overflow-x: auto;
    font-size: 15px;
    scrollbar-width: none;
  }

  .case-detail-page .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .detail-hero-copy {
    padding-bottom: 48px;
  }

  .detail-hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }

  .hero-metrics div:nth-child(3) {
    padding-left: 0;
  }

  .hero-metrics div:nth-child(3)::before {
    display: none;
  }

  .case-facts {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .meta-item {
    padding: 0;
  }

  .meta-item + .meta-item {
    padding-top: 16px;
    border-top: 1px solid #e4eef9;
    border-left: 0;
  }

  .quote-grid {
    margin-bottom: 36px;
  }

  .quote-band {
    padding: 20px;
  }

  .quote-band blockquote {
    padding: 0 24px;
    font-size: 14px;
  }

  .case-story {
    gap: 42px;
  }

  .story-section.reconstruction {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .reconstruction-rich-content {
    font-size: 14px;
  }

  .reconstruction-rich-content h2 {
    font-size: 21px;
  }

  .reconstruction-rich-content h3 {
    font-size: 18px;
  }

  .reconstruction-rich-content > img,
  .reconstruction-rich-content p > img,
  .reconstruction-rich-content div > img {
    max-height: 70vh;
    border-radius: 8px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .challenge-card,
  .method-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .story-icon {
    width: 48px;
    height: 48px;
  }

  .story-icon img {
    width: 28px;
    height: 28px;
  }

  .challenge-card h3,
  .method-card h3 {
    font-size: 16px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .cta-copy h2 {
    font-size: 22px;
  }

  .cta-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-detail-page *,
  .case-detail-page *::before,
  .case-detail-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
