* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #17191d;
  background:
    radial-gradient(circle at 14% 0%, rgba(30, 102, 232, 0.1), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(43, 167, 132, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fa 42%, #ffffff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(30, 102, 232, 0.28);
  outline-offset: 3px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(210, 220, 234, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 32px rgba(42, 68, 105, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 860;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #1e66e8;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.brand-name {
  font-size: 18px;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #53627c;
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: #1e66e8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: #1e66e8;
  color: #fff;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover {
  background: #1552ba;
  box-shadow: 0 12px 24px rgba(30, 102, 232, 0.18);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid #d7e2f0;
  background: rgba(255, 255, 255, 0.84);
  color: #1e66e8;
}

.button.secondary:hover {
  background: #f4f8ff;
  box-shadow: 0 12px 24px rgba(30, 102, 232, 0.08);
}

.hero {
  padding: 54px 0 34px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6a7890;
  font-size: 13px;
}

.crumbs a {
  color: #1e66e8;
  font-weight: 760;
}

.eyebrow,
.page-kicker {
  margin-bottom: 14px;
  color: #1e66e8;
  font-size: 13px;
  font-weight: 820;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 740;
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  max-width: 820px;
  margin-bottom: 24px;
  color: #53627c;
  font-size: clamp(16px, 1.7vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 6px 10px;
  border: 1px solid rgba(30, 102, 232, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #516177;
  font-size: 12px;
  font-weight: 700;
}

.answer-box {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid #cfe0f5;
  border-left: 3px solid #1e66e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(37, 78, 137, 0.07);
}

.answer-box b {
  display: block;
  margin-bottom: 8px;
  color: #1e66e8;
  font-size: 13px;
}

.answer-box p {
  margin-bottom: 0;
  color: #273245;
  font-size: clamp(15.5px, 1.55vw, 18px);
  font-weight: 680;
  line-height: 1.68;
}

.section {
  padding: 44px 0;
}

.section + .section {
  padding-top: 24px;
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 24px;
  color: #65748b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card {
  display: block;
  min-width: 0;
  min-height: 118px;
  padding: 20px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a.card:hover {
  border-color: #b9d0ef;
  box-shadow: 0 14px 30px rgba(37, 78, 137, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 760;
}

.card p {
  margin-bottom: 0;
  color: #617086;
  font-size: 14px;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.metric-list strong {
  display: block;
  color: #1e66e8;
  font-size: 24px;
}

.metric-list span {
  color: #617086;
  font-size: 13px;
}

.metric-note {
  max-width: 920px;
  margin: 16px 0 0;
  color: #6a7890;
  font-size: 13px;
  line-height: 1.72;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 10px;
  padding: 16px 18px 16px 56px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #edf4ff;
  color: #1e66e8;
  content: counter(step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

.insight-panel,
.evidence-panel,
.boundary-panel,
.process-panel {
  padding: 24px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.insight-panel h3,
.evidence-panel h3,
.boundary-panel h3,
.process-panel h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.insight-panel p,
.evidence-panel p,
.boundary-panel p,
.process-panel p {
  margin-bottom: 12px;
  color: #53627c;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #315780;
  font-size: 13px;
  font-weight: 720;
}

.fact-list {
  margin: 0;
  padding: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eef6;
}

.fact-list div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: #1e66e8;
  font-weight: 820;
}

.fact-list dd {
  margin: 0;
  color: #53627c;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 58px;
  padding: 14px 16px 14px 42px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #344056;
}

.check-list li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #1e66e8;
  content: "✓";
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6edf6;
  text-align: left;
  vertical-align: top;
}

th {
  color: #233047;
  font-weight: 820;
}

td {
  color: #53627c;
}

tr:last-child td {
  border-bottom: 0;
}

.quote {
  padding: 24px;
  border-radius: 8px;
  background: #edf4ff;
  color: #28354a;
  font-size: 18px;
  font-weight: 700;
}

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

.customer-case-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.customer-case-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(29, 29, 31, 0.055);
}

.customer-case-label {
  color: #0057ff;
  font-size: 13px;
  font-weight: 850;
}

.customer-case-card h3 {
  margin-bottom: 0;
  color: #20242b;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 820;
  line-height: 1.25;
}

.customer-case-card p {
  margin-bottom: 0;
  color: #5f6d82;
}

.customer-case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-case-metrics li {
  padding: 14px;
  border: 1px solid rgba(0, 87, 255, 0.12);
  border-radius: 8px;
  background: rgba(244, 248, 255, 0.72);
}

.customer-case-metrics strong {
  display: block;
  color: #0057ff;
  font-size: 22px;
  line-height: 1.2;
}

.customer-case-metrics span {
  display: block;
  margin-top: 5px;
  color: #617086;
  font-size: 13px;
  line-height: 1.45;
}

.customer-case-points {
  margin: 0;
  padding-left: 18px;
  color: #53627c;
}

.customer-case-points li + li {
  margin-top: 6px;
}

.customer-case-quote {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid #0057ff;
  border-radius: 8px;
  background: #edf4ff;
  color: #28354a;
  font-weight: 740;
  line-height: 1.72;
}

body.case-minimal .customer-case-image {
  overflow: hidden;
  margin: 1em 40px;
  border-radius: 8px;
  background: #eef3f8;
}

body.case-minimal .customer-case-image img {
  display: block;
  width: min(760px, 100%);
  aspect-ratio: 760 / 428;
  object-fit: cover;
  object-position: center;
}

.faq details {
  border-top: 1px solid #dbe3ee;
}

.faq details:last-child {
  border-bottom: 1px solid #dbe3ee;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 760;
}

.faq summary::after {
  color: #1e66e8;
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  max-width: 820px;
  margin-bottom: 18px;
  color: #617086;
}

.related {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), #fff);
}

.related a {
  display: block;
  padding: 15px 0;
  border-top: 1px solid #e6edf6;
  color: #1e66e8;
  font-weight: 760;
}

.cta {
  padding: 52px 0;
  background: #1e66e8;
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.cta .button {
  background: #fff;
  color: #1e66e8;
}

.footer {
  padding: 28px 0;
  background: #fff;
  color: #728099;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: #1e66e8;
  font-weight: 700;
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .grid,
  .grid.two,
  .metric-list,
  .insight-grid,
  .check-list,
  .customer-case-grid,
  .customer-case-grid.single,
  .customer-case-metrics {
    grid-template-columns: 1fr;
  }

  body.case-minimal .customer-case-image {
    margin-right: 0;
    margin-left: 0;
  }

  .hero {
    padding-top: 40px;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Case detail pages aligned with the main GEO homepage */
body.case-detail {
  color: #20242b;
  background:
    radial-gradient(circle at 14% 0%, rgba(30, 102, 232, 0.1), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(43, 167, 132, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fa 42%, #ffffff 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.case-compact .container {
  width: min(980px, calc(100% - 56px));
}

body.case-compact .hero {
  padding: clamp(58px, 6vw, 84px) 0 clamp(38px, 5vw, 58px);
}

body.case-compact h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(34px, 3.8vw, 50px);
}

body.case-compact .lead {
  max-width: 720px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.68;
}

body.case-compact .answer-box {
  max-width: 780px;
  margin-top: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.045);
}

body.case-compact .answer-box p {
  font-size: clamp(15px, 1.35vw, 16px);
  line-height: 1.62;
}

body.case-compact .section {
  padding: clamp(32px, 4.5vw, 52px) 0;
}

body.case-compact .section + .section {
  padding-top: clamp(20px, 3.4vw, 34px);
}

body.case-compact .section h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.8vw, 34px);
}

body.case-compact .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.case-compact .card,
body.case-compact .boundary-panel,
body.case-compact .insight-panel,
body.case-compact .evidence-panel,
body.case-compact .steps li {
  min-height: 0;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.04);
}

body.case-compact .card h3,
body.case-compact .boundary-panel h3,
body.case-compact .evidence-panel h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

body.case-compact .card p,
body.case-compact .boundary-panel p,
body.case-compact .insight-panel p,
body.case-compact .evidence-panel p {
  font-size: 13px;
  line-height: 1.62;
}

body.case-compact .steps li {
  margin-bottom: 8px;
  padding: 14px 16px 14px 52px;
  font-size: 14px;
}

body.case-compact .steps li::before {
  top: 14px;
  left: 16px;
}

body.case-compact .customer-case-grid {
  gap: 14px;
}

body.case-compact .customer-case-grid.single {
  max-width: 820px;
}

body.case-compact .customer-case-card {
  gap: 14px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.045);
}

body.case-compact .customer-case-card h3 {
  font-size: clamp(18px, 2vw, 24px);
}

body.case-compact .customer-case-image {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 8px;
  background: #eef3f8;
}

body.case-compact .customer-case-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

body.case-compact .customer-case-grid--image-led .customer-case-image {
  order: -1;
  aspect-ratio: 533 / 247;
  margin: -20px -20px 2px;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 7px 7px 0 0;
}

body.case-compact .customer-case-grid--image-led .customer-case-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

body.case-compact .customer-case-card p,
body.case-compact .customer-case-points {
  font-size: 13px;
  line-height: 1.62;
}

body.case-compact .customer-case-metrics {
  gap: 8px;
}

body.case-compact .customer-case-metrics li {
  padding: 11px;
}

body.case-compact .customer-case-metrics strong {
  font-size: 20px;
}

body.case-compact .customer-case-metrics span {
  font-size: 12px;
}

body.case-compact .customer-case-quote {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.62;
}

body.case-compact .faq summary {
  padding: 14px 0;
}

body.case-compact .cta {
  padding: 46px 0;
}

body.case-compact .cta h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

@media (max-width: 1100px) {
  body.case-compact .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.case-compact .grid,
  body.case-compact .grid.two,
  body.case-compact .insight-grid,
  body.case-compact .customer-case-grid {
    grid-template-columns: 1fr;
  }
}

.case-detail .container {
  width: min(1120px, calc(100% - 56px));
}

.case-detail .topbar {
  z-index: 60;
  border-bottom: 1px solid rgba(29, 29, 31, 0.035);
  background: rgba(251, 251, 253, 0.58);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.case-detail .topbar.nav-scrolled {
  border-bottom-color: rgba(29, 29, 31, 0.085);
  background: rgba(251, 251, 253, 0.9);
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.07);
}

.case-detail .nav.container {
  width: min(100% - 88px, 1810px);
}

.case-detail .nav {
  min-height: 58px;
}

.case-detail .brand {
  min-width: 178px;
}

.case-detail .brand-image {
  display: block;
  width: 136px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.case-detail .brand-mark,
.case-detail .brand-name {
  display: none;
}

.case-detail .nav-links {
  gap: 28px;
  color: #3f4e67;
  font-size: 13px;
}

.case-detail .nav-links a {
  position: relative;
  padding: 20px 0;
}

.case-detail .nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #0057ff;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.case-detail .nav-links a:hover {
  color: #0057ff;
}

.case-detail .nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.case-detail .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 7vw, 104px) 0 clamp(56px, 6vw, 86px);
  background: transparent;
}

.case-detail .hero .container {
  position: relative;
  z-index: 1;
}

.case-detail .crumbs {
  margin-bottom: 20px;
  color: #66758d;
  font-size: 13px;
}

.case-detail .crumbs a,
.case-detail .page-kicker {
  color: #0057ff;
  font-weight: 850;
}

.case-detail .page-kicker {
  margin-bottom: 16px;
}

.case-detail h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: #20242b;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 820;
  line-height: 1.12;
}

.case-detail .lead {
  max-width: 840px;
  color: #536071;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
}

.case-detail .hero-meta {
  gap: 10px;
  margin-bottom: 26px;
}

.case-detail .hero-meta li {
  min-height: 31px;
  padding: 6px 12px;
  border-color: rgba(0, 87, 255, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: #40506a;
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.case-detail .answer-box {
  max-width: 960px;
  margin-top: 26px;
  padding: 22px 24px;
  border-color: rgba(0, 87, 255, 0.16);
  border-left-color: #0057ff;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(29, 29, 31, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-detail .answer-box b {
  color: #0057ff;
  font-size: 12px;
  font-weight: 900;
}

.case-detail .answer-box p {
  color: #20242b;
  font-size: clamp(16px, 1.55vw, 18px);
  font-weight: 720;
  line-height: 1.72;
}

.case-detail .section {
  padding: clamp(54px, 6vw, 76px) 0;
  background: transparent;
}

.case-detail .section + .section {
  padding-top: clamp(34px, 4.6vw, 58px);
}

.case-detail .section h2 {
  margin-bottom: 22px;
  color: #20242b;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.14;
}

.case-detail .metric-list {
  gap: 14px;
}

.case-detail .metric-list li,
.case-detail .card,
.case-detail .insight-panel,
.case-detail .evidence-panel,
.case-detail .boundary-panel,
.case-detail .process-panel,
.case-detail .steps li {
  border-color: rgba(29, 29, 31, 0.07);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(29, 29, 31, 0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-detail .metric-list li {
  padding: 20px 18px;
}

.case-detail .metric-list strong {
  color: #0057ff;
  font-size: 26px;
  line-height: 1.2;
}

.case-detail .metric-list span,
.case-detail .metric-note,
.case-detail .card p,
.case-detail .insight-panel p,
.case-detail .evidence-panel p,
.case-detail .boundary-panel p,
.case-detail .process-panel p,
.case-detail .fact-list dd {
  color: #5f6d82;
}

.case-detail .card,
.case-detail .boundary-panel {
  min-height: 138px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-detail .card:hover,
.case-detail .boundary-panel:hover,
.case-detail .metric-list li:hover {
  border-color: rgba(0, 87, 255, 0.18);
  box-shadow: 0 22px 54px rgba(29, 29, 31, 0.075);
  transform: translateY(-3px);
}

.case-detail .card h3,
.case-detail .boundary-panel h3,
.case-detail .evidence-panel h3 {
  color: #20242b;
  font-size: 18px;
  font-weight: 800;
}

.case-detail .fact-list dt,
.case-detail .steps li::before,
.case-detail .faq summary::after,
.case-detail .related a,
.case-detail .footer a {
  color: #0057ff;
}

.case-detail .steps li {
  margin-bottom: 12px;
}

.case-detail .steps li::before {
  background: #eef5ff;
}

.case-detail .faq details {
  border-top-color: rgba(29, 29, 31, 0.08);
}

.case-detail .faq details:last-child {
  border-bottom-color: rgba(29, 29, 31, 0.08);
}

.case-detail .faq summary {
  color: #20242b;
  transition: color 180ms ease;
}

.case-detail .faq summary:hover,
.case-detail .faq details[open] summary {
  color: #0057ff;
}

.case-detail .related {
  background: transparent;
}

.case-detail .related a {
  border-top-color: rgba(29, 29, 31, 0.08);
}

.case-detail .cta {
  padding: 64px 0;
  color: #20242b;
  background:
    linear-gradient(120deg, rgba(237, 246, 255, 0.88), rgba(248, 251, 255, 0.9) 58%, rgba(255, 255, 255, 0.96));
}

.case-detail .cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.case-detail .cta h2 {
  max-width: 700px;
  margin-bottom: 10px;
  color: #20242b;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
}

.case-detail .cta p {
  margin-bottom: 0;
  color: #6e6e73;
}

.case-detail .cta .button {
  flex: 0 0 auto;
  color: #fff;
  background: #0057ff;
  box-shadow: 0 16px 34px rgba(0, 87, 255, 0.22);
}

.case-detail .cta .button:hover {
  background: #0047d6;
  box-shadow: 0 20px 38px rgba(0, 87, 255, 0.26);
}

.case-detail .footer {
  border-top: 1px solid rgba(29, 29, 31, 0.055);
  background: rgba(251, 251, 253, 0.72);
}

@media (max-width: 980px) {
  .case-detail .container,
  .case-detail .nav.container {
    width: min(100% - 40px, 760px);
  }

  .case-detail .hero {
    padding: 80px 0 62px;
  }

  .case-detail .cta .container {
    display: block;
  }

  .case-detail .cta .button {
    margin-top: 24px;
  }
}

@media (max-width: 860px) {
  .case-detail .grid,
  .case-detail .grid.two,
  .case-detail .metric-list,
  .case-detail .insight-grid,
  .case-detail .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .case-detail .container,
  .case-detail .nav.container {
    width: min(100% - 32px, 600px);
  }

  .case-detail .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 14px 0;
  }

  .case-detail .brand {
    min-width: 0;
  }

  .case-detail .brand-image {
    width: 132px;
  }

  .case-detail .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
  }

  .case-detail .nav-links a {
    padding: 0;
  }

  .case-detail .nav-links a::after {
    bottom: -4px;
  }

  .case-detail .hero {
    padding: 64px 0 52px;
  }

  .case-detail h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .case-detail .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .case-detail .answer-box {
    padding: 20px;
  }

  .case-detail .section h2,
  .case-detail .cta h2 {
    font-size: 28px;
    line-height: 1.18;
  }
}

/* Customer practice pages: present the work itself, not product slogans. */
body.case-practice {
  --case-accent: #196cb4;
  --case-soft: #eef7ff;
  color: #1e2e43;
  background: #f8fafc;
}

body.case-cable-practice {
  --case-accent: #be4d35;
  --case-soft: #fff1ed;
}

body.case-construction-practice {
  --case-accent: #196cb4;
  --case-soft: #eef7ff;
}

body.case-water-practice {
  --case-accent: #087f85;
  --case-soft: #eaf8f8;
}

.case-practice .container {
  width: min(1120px, calc(100% - 56px));
}

.case-practice-hero {
  padding: 86px 0 38px;
  border-bottom: 1px solid #dce6ef;
  background: #f8fafc;
}

.case-practice-back {
  margin: 0 0 16px;
}

.case-practice-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d6f82;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.case-practice-back a:hover {
  color: #1e66e8;
}

.case-practice-kicker,
.case-practice-label {
  margin: 0;
  color: var(--case-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.case-practice h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  color: #1d2c3f;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
}

.case-practice-lead {
  max-width: 780px;
  margin: 0;
  color: #5b6c80;
  font-size: 17px;
  line-height: 1.72;
}

.case-practice-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 34px 0 0;
  border-top: 1px solid #dce6ef;
  border-bottom: 1px solid #dce6ef;
}

.case-practice-meta div {
  min-width: 0;
  padding: 14px 20px 14px 0;
}

.case-practice-meta div + div {
  padding-left: 20px;
  border-left: 1px solid #dce6ef;
}

.case-practice-meta dt {
  margin-bottom: 4px;
  color: #77879a;
  font-size: 12px;
  font-weight: 700;
}

.case-practice-meta dd {
  margin: 0;
  color: #26384d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.case-practice-section {
  padding: 46px 0 86px;
  background: #fff;
}

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

.case-practice-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6e2ed;
  border-radius: 6px;
  background: #edf2f6;
}

.case-practice-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.case-practice-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.case-practice-context {
  padding-left: 18px;
  border-left: 3px solid var(--case-accent);
}

.case-practice-context p:last-child {
  margin: 12px 0 0;
  color: #54657a;
  font-size: 15px;
  line-height: 1.78;
}

.case-practice-work h2 {
  margin: 8px 0 16px;
  color: #223449;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

.case-practice-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid #dce6ef;
  list-style: none;
}

.case-practice-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #dce6ef;
}

.case-practice-steps li > span {
  color: var(--case-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.case-practice-steps h3 {
  margin: 0 0 6px;
  color: #26384d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.case-practice-steps p {
  margin: 0;
  color: #64758a;
  font-size: 14px;
  line-height: 1.65;
}

.case-practice-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--case-accent);
  border-bottom: 1px solid #dce6ef;
}

.case-practice-note span {
  color: var(--case-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.case-practice-note p {
  margin: 0;
  color: #33475c;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.72;
}

@media (max-width: 780px) {
  .case-practice .container {
    width: min(100% - 36px, 680px);
  }

  .case-practice-hero {
    padding: 64px 0 30px;
  }

  .case-practice h1 {
    font-size: 34px;
    line-height: 1.24;
  }

  .case-practice-lead {
    font-size: 16px;
  }

  .case-practice-meta,
  .case-practice-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-practice-meta div,
  .case-practice-meta div + div {
    padding: 12px 0;
    border-left: 0;
  }

  .case-practice-meta div + div {
    border-top: 1px solid #dce6ef;
  }

  .case-practice-layout {
    gap: 34px;
  }

  .case-practice-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
