.abb-case-detail {
  --abb-navy: #08233e;
  --abb-blue: #0d65a5;
  --abb-blue-dark: #0d4b7d;
  --abb-cyan: #16a6c9;
  --abb-ink: #122c42;
  --abb-copy: #4b6477;
  --abb-line: rgba(13, 75, 125, 0.14);
  --abb-soft: #eef5f8;
  --abb-white: #ffffff;
  color: var(--abb-copy);
  background: #fff;
  font-family: "Inter", sans-serif;
}

.abb-case-detail main {
  overflow: hidden;
}

.abb-case-detail h1,
.abb-case-detail h2,
.abb-case-detail h3,
.abb-case-detail h4 {
  color: var(--abb-navy);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  text-transform: none;
}

.abb-case-detail a:focus-visible,
.abb-case-detail button:focus-visible,
.abb-case-detail summary:focus-visible,
.abb-gallery:focus-visible {
  outline: 3px solid #55cae4;
  outline-offset: 4px;
}

.abb-detail-hero {
  position: relative;
  padding: clamp(54px, 7vw, 92px) 0 clamp(70px, 8vw, 108px);
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(22, 166, 201, 0.24),
      transparent 32%
    ),
    linear-gradient(135deg, #061d35 0%, #0a3458 62%, #0d527a 100%);
}

.abb-detail-hero::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.abb-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: #b9d5e5;
  font-size: 13px;
}

.abb-breadcrumb a {
  color: #d9edf6;
  text-decoration: none;
}

.abb-breadcrumb a:hover {
  color: #fff;
}

.abb-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

.abb-eyebrow,
.abb-section-kicker {
  margin: 0 0 13px;
  color: var(--abb-blue);
  font:
    800 13px/1.4 "Plus Jakarta Sans",
    "Inter",
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
}

.abb-hero-copy .abb-eyebrow {
  color: #71d2e7;
}

.abb-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.048em;
}

.abb-hero-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #d6e5ef;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.abb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.abb-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font:
    800 14px/1.2 "Plus Jakarta Sans",
    "Inter",
    sans-serif;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.abb-button:hover {
  transform: translateY(-2px);
}

.abb-button--primary {
  background: var(--abb-blue);
  color: #fff;
}

.abb-button--primary:hover {
  background: #0a568d;
  color: #fff;
}

.abb-button--secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.abb-button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.abb-button--full {
  width: 100%;
}

.abb-button--light {
  min-width: 170px;
  background: #fff;
  color: var(--abb-navy);
}

.abb-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #dbe8ed;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.abb-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.abb-hero-media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(5, 26, 47, 0.86);
  color: #e8f2f7;
  font-size: 13px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.abb-hero-media figcaption strong {
  color: #fff;
}

.abb-proof-band {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.abb-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--abb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(7, 30, 55, 0.13);
}

.abb-proof-grid > div {
  min-height: 122px;
  padding: 25px 23px;
  border-right: 1px solid var(--abb-line);
}

.abb-proof-grid > div:last-child {
  border-right: 0;
}

.abb-proof-grid strong,
.abb-proof-grid span {
  display: block;
}

.abb-proof-grid strong {
  margin-bottom: 8px;
  color: var(--abb-navy);
  font:
    800 clamp(25px, 3vw, 34px) / 1 "Plus Jakarta Sans",
    sans-serif;
}

.abb-proof-grid span {
  color: #5c7384;
  font-size: 13px;
  line-height: 1.45;
}

.abb-story-section {
  padding: clamp(78px, 9vw, 126px) 0;
}

.abb-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(44px, 6vw, 78px);
  align-items: start;
}

.abb-article {
  min-width: 0;
}

.abb-story-block {
  padding-bottom: clamp(54px, 7vw, 82px);
}

.abb-story-block:last-child {
  padding-bottom: 0;
}

.abb-story-block h2,
.abb-faq-section h2,
.abb-gallery-heading h2,
.abb-cta-panel h2 {
  max-width: 820px;
  margin: 0 0 23px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.13;
  letter-spacing: -0.038em;
}

.abb-story-block > p,
.abb-faq-grid > div:first-child > p,
.abb-cta-panel p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.85;
}

.abb-story-callout {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--abb-cyan);
  border-radius: 0 14px 14px 0;
  background: var(--abb-soft);
  color: var(--abb-ink);
  font-size: 16px;
  line-height: 1.7;
}

.abb-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.abb-benefit-grid > div {
  padding: 25px;
  border: 1px solid var(--abb-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 30, 55, 0.07);
}

.abb-benefit-grid h3,
.abb-technical-note h3 {
  margin: 0 0 11px;
  font-size: 20px;
  line-height: 1.3;
}

.abb-benefit-grid p,
.abb-technical-note p {
  margin: 0;
  line-height: 1.75;
}

.abb-fact-note {
  padding: 15px 18px;
  border-radius: 12px;
  background: #f6f8f9;
  color: #536876;
  font-size: 14px !important;
}

.abb-timeline {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: abb-step;
}

.abb-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 28px;
  counter-increment: abb-step;
}

.abb-timeline li::before {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--abb-navy);
  color: #fff;
  content: counter(abb-step, decimal-leading-zero);
  font:
    800 13px/1 "Plus Jakarta Sans",
    sans-serif;
}

.abb-timeline li::after {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  width: 1px;
  background: #cbdde7;
  content: "";
}

.abb-timeline li:last-child::after {
  display: none;
}

.abb-timeline h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.abb-timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.abb-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--abb-line);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(7, 30, 55, 0.07);
}

.abb-table-wrap table {
  width: 100%;
  min-width: 630px;
  border-collapse: collapse;
  background: #fff;
}

.abb-table-wrap caption {
  padding: 15px 19px;
  background: var(--abb-soft);
  color: var(--abb-ink);
  font-weight: 700;
  text-align: left;
}

.abb-table-wrap th,
.abb-table-wrap td {
  padding: 16px 19px;
  border-bottom: 1px solid var(--abb-line);
  color: var(--abb-copy);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.abb-table-wrap th {
  background: var(--abb-navy);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.abb-table-wrap tr:last-child td {
  border-bottom: 0;
}

.abb-technical-note {
  padding: 24px;
  border: 1px solid #c8dde8;
  border-radius: 16px;
  background: #f1f7fa;
}

.abb-outcome {
  padding: clamp(30px, 5vw, 48px);
  border-radius: 23px;
  background: var(--abb-navy);
  box-shadow: 0 24px 60px rgba(7, 30, 55, 0.18);
}

.abb-outcome h2,
.abb-outcome p {
  color: #fff;
}

.abb-outcome .abb-section-kicker {
  color: #71d2e7;
}

.abb-check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.abb-check-list li {
  position: relative;
  padding-left: 31px;
  color: #dce9f0;
  line-height: 1.65;
}

.abb-check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #1ea7c5;
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.abb-project-facts {
  position: sticky;
  top: 118px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--abb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(7, 30, 55, 0.1);
}

.abb-project-facts h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

.abb-project-facts dl,
.abb-project-facts dt,
.abb-project-facts dd {
  margin: 0;
}

.abb-project-facts dl {
  margin-bottom: 22px;
}

.abb-project-facts dl > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--abb-line);
}

.abb-project-facts dt {
  margin-bottom: 5px;
  color: #557386;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.abb-project-facts dd {
  overflow-wrap: anywhere;
  color: var(--abb-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.abb-disclaimer {
  margin: 18px 0 0;
  color: #6b7f8d;
  font-size: 11px;
  line-height: 1.6;
}

.abb-gallery-section {
  padding: clamp(70px, 8vw, 108px) 0;
  background: var(--abb-navy);
}

.abb-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.abb-gallery-heading .abb-section-kicker {
  color: #71d2e7;
}

.abb-gallery-heading h2 {
  margin-bottom: 0;
  color: #fff;
}

.abb-gallery-heading > p {
  margin: 0;
  color: #bdd0dc;
  line-height: 1.7;
}

.abb-gallery {
  border-radius: 23px;
  background: #04182b;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.abb-gallery-stage {
  position: relative;
  min-height: min(66vw, 700px);
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background: #020d17;
}

.abb-slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.abb-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.abb-slide img {
  display: block;
  width: 100%;
  height: min(60vw, 650px);
  object-fit: contain;
  background: #020d17;
}

.abb-slide figcaption {
  padding: 16px 22px;
  color: #d7e7ef;
  font-size: 14px;
  line-height: 1.5;
}

.abb-gallery-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.abb-gallery-controls button {
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font:
    750 13px/1.2 "Plus Jakarta Sans",
    sans-serif;
  cursor: pointer;
}

.abb-gallery-controls button:first-child {
  justify-self: start;
}

.abb-gallery-controls button:last-child {
  justify-self: end;
}

.abb-gallery-controls button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.abb-gallery-controls p {
  margin: 0;
  color: #abc4d2;
  font-size: 13px;
  font-weight: 700;
}

.abb-faq-section {
  padding: clamp(74px, 9vw, 118px) 0;
  background: #f4f8fa;
}

.abb-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: start;
}

.abb-faq-list {
  display: grid;
  gap: 12px;
}

.abb-faq-list details {
  overflow: hidden;
  border: 1px solid var(--abb-line);
  border-radius: 14px;
  background: #fff;
}

.abb-faq-list summary {
  position: relative;
  padding: 20px 55px 20px 21px;
  color: var(--abb-navy);
  font:
    800 16px/1.45 "Plus Jakarta Sans",
    sans-serif;
  cursor: pointer;
  list-style: none;
}

.abb-faq-list summary::-webkit-details-marker {
  display: none;
}

.abb-faq-list summary::after {
  position: absolute;
  top: 18px;
  right: 20px;
  content: "+";
  color: var(--abb-blue);
  font-size: 24px;
  line-height: 1;
}

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

.abb-faq-list details p {
  margin: 0;
  padding: 0 21px 22px;
  line-height: 1.75;
}

.abb-cta-section {
  padding: 70px 0;
  background: #fff;
}

.abb-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0d65a5, #0a3e68);
  box-shadow: 0 26px 60px rgba(13, 75, 125, 0.2);
}

.abb-cta-panel .abb-section-kicker {
  color: #c0eef7;
}

.abb-cta-panel h2,
.abb-cta-panel p {
  color: #fff;
}

.abb-cta-panel h2 {
  margin-bottom: 14px;
}

.abb-cta-panel p {
  max-width: 800px;
  margin: 0;
}

.abb-case-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
  padding-bottom: 76px;
}

.abb-case-navigation a {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--abb-line);
  border-radius: 16px;
  background: #fff;
  color: var(--abb-navy);
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(7, 30, 55, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.abb-case-navigation a:last-child {
  align-items: flex-end;
  text-align: right;
}

.abb-case-navigation a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(7, 30, 55, 0.12);
}

.abb-case-navigation span {
  margin-bottom: 7px;
  color: var(--abb-blue);
  font-size: 12px;
  font-weight: 800;
}

.abb-case-navigation strong {
  max-width: 430px;
  font:
    800 17px/1.4 "Plus Jakarta Sans",
    sans-serif;
}

@media (max-width: 1050px) {
  .abb-hero-grid {
    grid-template-columns: 1fr;
  }

  .abb-hero-media {
    max-width: 780px;
  }

  .abb-content-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 38px;
  }
}

@media (max-width: 860px) {
  .abb-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abb-proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .abb-proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--abb-line);
  }

  .abb-content-layout,
  .abb-faq-grid,
  .abb-gallery-heading {
    grid-template-columns: 1fr;
  }

  .abb-project-facts {
    position: static;
  }

  .abb-cta-panel {
    grid-template-columns: 1fr;
  }

  .abb-button--light {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .abb-detail-hero {
    padding-top: 42px;
  }

  .abb-hero-copy h1 {
    font-size: clamp(35px, 11vw, 48px);
  }

  .abb-hero-actions,
  .abb-hero-actions .abb-button {
    width: 100%;
  }

  .abb-proof-band {
    margin-top: -24px;
  }

  .abb-proof-grid {
    border-radius: 16px;
  }

  .abb-proof-grid > div {
    min-height: 102px;
    padding: 19px 16px;
  }

  .abb-proof-grid strong {
    font-size: 24px;
  }

  .abb-benefit-grid,
  .abb-case-navigation {
    grid-template-columns: 1fr;
  }

  .abb-story-block h2,
  .abb-faq-section h2,
  .abb-gallery-heading h2,
  .abb-cta-panel h2 {
    font-size: 31px;
  }

  .abb-story-block > p,
  .abb-faq-grid > div:first-child > p,
  .abb-cta-panel p {
    font-size: 16px;
  }

  .abb-timeline li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .abb-timeline li::before {
    width: 40px;
    height: 40px;
  }

  .abb-timeline li::after {
    top: 40px;
    left: 19px;
  }

  .abb-outcome,
  .abb-project-facts,
  .abb-cta-panel {
    padding: 25px;
  }

  .abb-gallery-stage {
    min-height: 78vw;
  }

  .abb-slide img {
    height: 72vw;
  }

  .abb-gallery-controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .abb-gallery-controls p {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .abb-gallery-controls button:first-child,
  .abb-gallery-controls button:last-child {
    width: 100%;
    justify-self: stretch;
  }

  .abb-case-navigation a:last-child {
    align-items: flex-start;
    text-align: left;
  }
}

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