.cases-page {
  --cases-section-y: clamp(92px, 8vw, 136px);
  --cases-blue: #0070c0;
  --cases-deep: #05264d;
  --cases-green: #28a987;
  --cases-orange: #e9822e;
  background: #fff;
  color: var(--text);
}

.cases-page .container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.js .cases-page .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .64s ease, transform .64s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .cases-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cases-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #dbe8f3;
  color: var(--text);
  background: #eef6fb;
}

.cases-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(244,250,255,.96) 34%, rgba(244,250,255,.80) 58%, rgba(244,250,255,.50) 100%),
    linear-gradient(180deg, rgba(244,250,255,.20) 0%, rgba(244,250,255,.72) 100%),
    url("../images/application-cases/cases-hero-bg.webp") right center / cover no-repeat;
  transform: scale(1.012);
}

.cases-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 82%);
}

.cases-hero .container {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 94px 0 72px;
}

.cases-hero-copy {
  max-width: 760px;
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.cases-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 4.8vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: 0;
}

.cases-hero .lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #244862;
  font-size: clamp(18px, 1.7vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.cases-hero .btn.secondary {
  color: var(--blue);
  border-color: #cfe1f0;
  background: rgba(255,255,255,.78);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #173a58;
  font-size: 15px;
  font-weight: 850;
}

.hero-chips i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe1f0;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(255,255,255,.84);
  font-style: normal;
}

.case-index {
  position: relative;
  z-index: 5;
  margin-top: -42px;
  padding-bottom: 1px;
}

.case-index .container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e6f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(9, 54, 111, .10);
}

.case-index a {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border-right: 1px solid #dfeaf4;
  color: #263f59;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.case-index a:last-child {
  border-right: 0;
}

.case-index a:hover,
.case-index a.is-current {
  color: var(--cases-blue);
  background: linear-gradient(180deg, #fff 0%, #f2f8fe 100%);
}

.case-index a.is-current:after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--cases-blue);
}

.case-index svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-index span {
  display: block;
}

.cases-section {
  --section-accent: var(--cases-blue);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--cases-section-y) 0;
  scroll-margin-top: 190px;
  background: #fff;
}

.conferences-section {
  --section-accent: var(--cases-blue);
  padding-top: clamp(76px, 7vw, 112px);
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.education-section {
  --section-accent: #2464a6;
  background: #fff;
}

.media-section {
  --section-accent: #0c75a8;
  background: linear-gradient(180deg, #eef6fb  0%, #f7fbfe 100%);
}

.data-section {
  --section-accent: var(--cases-blue);
  border-top: 1px solid #dbe8f3;
  background: #fff;
}

.website-section {
  --section-accent: #0b5ea5;
  background: linear-gradient(180deg, #eef6fb  0%, #f7fbfe 100%);
}

.section-head {
  width: min(920px, 100%);
  margin: 0 auto clamp(62px, 5.4vw, 86px);
  padding: 0;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: #0b2238;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.16;
  font-weight: 950;
}

.section-head h2:after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 99px;
  background: var(--section-accent);
}

.section-head p {
  max-width: 880px;
  margin: 18px auto 0;
  color: #435d78;
  font-size: 16px;
  line-height: 1.9;
  text-wrap: balance;
}

.feature-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(82px, 7vw, 112px);
}

.feature-case,
.compact-case,
.edu-card,
.media-list article,
.website-card {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-case,
.compact-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(30px, 4.8vw, 64px);
  align-items: center;
  padding: 0;
  border-radius: 0;
}

.feature-case img,
.compact-case img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(10, 62, 120, .10);
}

.feature-case > div,
.compact-case > div {
  max-width: 520px;
}

.feature-case > div {
  padding-right: clamp(12px, 2vw, 28px);
}

.feature-case h3,
.compact-case h3,
.edu-card h3,
.media-list h3,
.website-card h3 {
  margin: 0;
  color: #102a56;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.28;
  font-weight: 950;
}

.feature-case dl {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.feature-case dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5eef6;
}

.feature-case dt {
  color: var(--cases-blue);
  font-weight: 900;
}

.feature-case dd {
  margin: 0;
  color: #4e6680;
  line-height: 1.8;
}

.compact-case > div {
  margin-right: clamp(12px, 2vw, 28px);
}

.compact-case p,
.edu-card p,
.media-list p,
.website-card p {
  margin-top: 14px;
  color: #5d6f88;
  line-height: 1.9;
}

.capability-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  margin-top: 52px;
  border-top: 1px solid #dbe8f3;
  border-bottom: 1px solid #dbe8f3;
  background: transparent;
  box-shadow: none;
}

.capability-bar article {
  padding: 24px 28px 24px 0;
  border-right: 0;
  transition: background .24s ease;
}

.capability-bar article + article {
  padding-left: 28px;
  border-left: 1px solid #e3edf6;
}

.capability-bar span {
  display: none;
}

.capability-bar h3 {
  margin: 0 0 10px;
  color: #102a56;
  font-size: 20px;
  font-weight: 900;
  transition: color .24s ease;
}

.capability-bar p {
  margin: 0;
  color: #52677f;
  font-size: 14px;
  line-height: 1.78;
  transition: color .24s ease;
}

.education-layout,
.website-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(58px, 5.6vw, 86px);
}

.edu-card,
.website-card,
.media-list article {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 4.8vw, 64px);
  align-items: center;
  min-height: 360px;
  padding: 0;
  border-radius: 0;
}

.edu-card img,
.website-card img,
.media-list img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(10, 62, 120, .10);
}

.edu-card div,
.website-card div,
.media-list div {
  max-width: 520px;
}

.edu-card div,
.website-card div,
.media-list div {
  padding: 0;
}

.education-layout .edu-card,
.website-grid .website-card {
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
}

.education-layout .edu-card img,
.website-grid .website-card img {
  order: 2;
}

.media-list article {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, .95fr);
}

.website-card p {
  margin-bottom: 0;
}

.media-panel {
  display: grid;
  gap: clamp(50px, 4.5vw, 68px);
}

.media-panel .section-head {
  margin-bottom: 0;
}

.media-list {
  display: grid;
  gap: clamp(58px, 5.6vw, 86px);
}

@media (hover: hover) and (pointer: fine) {
  .capability-bar article:hover h3 {
    color: var(--cases-blue);
  }

  .capability-bar article:hover p {
    color: #344f68;
  }
}

.data-case-archive {
  max-width: 1160px;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid rgba(7, 53, 92, .16);
  border-bottom: 1px solid rgba(7, 53, 92, .16);
  background: #fff;
}

.data-case-list {
  padding: 6px clamp(20px, 2.4vw, 34px) 6px clamp(48px, 5.2vw, 76px);
  background: linear-gradient(180deg, #fff 0%, #f8fcfb 100%);
}

.data-case-record {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(240px, .68fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: clamp(28px, 3.2vw, 38px) 0;
  border-bottom: 1px solid rgba(7, 53, 92, .11);
}

.data-case-record:last-child {
  border-bottom: 0;
}

.record-main {
  min-width: 0;
}

.record-title span {
  display: block;
  margin-bottom: 8px;
  color: ##0058a8;
  font-size: 13px;
  font-weight: 900;
}

.record-title h4 {
  margin: 0;
  color: #092f5c;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.42;
  font-weight: 950;
}

.record-main p {
  margin: 12px 0 0;
  color: #2f4d68;
  font-size: 16px;
  line-height: 1.82;
}

.data-case-record dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.data-case-record dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: baseline;
}

.data-case-record dt {
  color: #0058a8;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.data-case-record dd {
  margin: 0;
  color: #435d75;
  font-size: 14px;
  line-height: 1.72;
}

@media (hover: hover) and (pointer: fine) {
  .data-case-record {
    transition: background .22s ease;
  }

  .data-case-record:hover {
    background: rgba(237, 248, 244, .62);
  }
}

.page-cta {
  padding: 0;
  background: #05264d;
}

.page-cta .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, .64fr);
  width: 100%;
  max-width: none;
  min-height: 320px;
  color: #fff;
  overflow: hidden;
}

.page-cta .container:before {
  content: "";
  position: absolute;
  inset: -8px 0 0;
  z-index: 0;
  background: url("../images/home/cta-nanning-bridge.webp") center 44% / cover no-repeat;
  pointer-events: none;
}

.page-cta .container:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 54px;
  background: linear-gradient(180deg, rgba(5,38,77,0) 0%, rgba(5,38,77,.92) 58%, #05264d 100%);
}

.page-cta .cta-copy {
  position: relative;
  z-index: 2;
  padding: 54px calc((100vw - min(var(--max), calc(100vw - 44px))) / 2 + 16px) 50px;
  background: linear-gradient(108deg, rgba(6,42,85,.95) 0%, rgba(7,55,103,.9) 78%, rgba(7,55,103,.34) 78.4%, transparent 100%);
  backdrop-filter: saturate(1.05);
}

.page-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  font-weight: 950;
}

.page-cta p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.85;
}

.page-cta .btn.primary {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.page-cta .btn.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.68);
}

.page-cta .cta-img {
  position: relative;
  z-index: 2;
  min-height: 320px;
}

@media (max-width: 1120px) {
  .case-index {
    position: static;
    margin-top: 22px;
    pointer-events: auto;
  }

  .case-index .container {
    grid-template-columns: 1fr;
  }

  .case-index a {
    min-height: 64px;
    justify-content: flex-start;
    padding: 0 24px;
    border-right: 0;
    border-bottom: 1px solid #dfeaf4;
  }

  .case-index a:last-child {
    border-bottom: 0;
  }

  .feature-case,
  .compact-case,
  .edu-card,
  .website-card,
  .media-list article {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .education-layout .edu-card img,
  .website-grid .website-card img {
    order: initial;
  }


  .capability-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-bar article {
    padding: 22px 20px 22px 0;
  }

  .capability-bar article + article {
    padding-left: 20px;
  }

  .capability-bar article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .capability-bar article:nth-child(n + 3) {
    border-top: 1px solid #e3edf6;
  }

  .page-cta .container {
    grid-template-columns: 1fr;
  }

  .page-cta .cta-copy {
    padding: 48px 28px;
    background: rgba(6,42,85,.9);
  }
}

@media (max-width: 720px) {
  .cases-page .container {
    width: min(100% - 28px, var(--max));
  }

  .cases-hero-bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 46%, rgba(255,255,255,.70) 100%),
      url("../images/application-cases/cases-hero-bg.webp") center / cover no-repeat;
  }

  .cases-hero .container {
    min-height: 420px;
    padding: 60px 0 56px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .cases-hero h1 {
    font-size: 42px;
  }

  .cases-hero .lead {
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-chips {
    gap: 12px;
    margin-top: 22px;
  }

  .hero-chips span {
    font-size: 13px;
  }

  .hero-chips i {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .cases-section {
    padding: clamp(68px, 13vw, 88px) 0;
    scroll-margin-top: 88px;
  }

  .case-index {
    margin-top: 14px;
  }

  .case-index .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }

  .case-index a {
    min-height: 54px;
    gap: 10px;
    padding: 10px 12px;
    border-right: 1px solid #dfeaf4;
    font-size: 13px;
  }

  .case-index a:nth-child(2n) {
    border-right: 0;
  }

  .case-index a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .case-index svg {
    width: 20px;
    height: 20px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .feature-case-grid,
  .education-layout,
  .media-list,
  .website-grid {
    gap: 42px;
  }

  .feature-case,
  .compact-case,
  .edu-card,
  .website-card,
  .media-list article {
    padding: 0;
    border-radius: 0;
    gap: 22px;
  }

  .feature-case img,
  .compact-case img,
  .edu-card img,
  .website-card img,
  .media-list img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .feature-case h3,
  .compact-case h3,
  .edu-card h3,
  .media-list h3,
  .website-card h3 {
    font-size: 24px;
  }

  .feature-case dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .capability-bar {
    grid-template-columns: 1fr;
  }

  .capability-bar article,
  .capability-bar article:nth-child(2) {
    padding: 18px 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #e3edf6;
  }

  .capability-bar article:last-child {
    border-bottom: 0;
  }

  .data-case-list {
    padding: 6px 18px;
  }

  .data-case-record {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .record-title span {
    margin-bottom: 6px;
  }

  .data-case-record > p {
    font-size: 15px;
    line-height: 1.78;
  }

  .data-case-record dl div {
    grid-template-columns: 72px 1fr;
  }

  .page-cta .cta-copy {
    padding: 40px 22px;
  }

  .page-cta h2 {
    font-size: 29px;
  }

  .page-cta p {
    font-size: 14px;
    line-height: 1.74;
  }

  .page-cta .cta-img {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .cases-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-case,
  .compact-case,
  .edu-card,
  .media-list article,
  .website-card,
  .feature-case > div,
  .compact-case > div,
  .edu-card div,
  .website-card div,
  .media-list div,
  .feature-case img,
  .compact-case img,
  .edu-card img,
  .website-card img,
  .media-list img {
    transform: none;
    transition: none;
  }
}
