/* RPD image-based case study: the shared case-study framework, adapted for jack-up jacking control. */
.rpd-case-study {
  --accent: #f4bd38;
  --accent-rgb: 244 189 56;
  --rpd-gold: #f4bd38;
}

.rpd-case-study .hero-visual img {
  object-position: 50% 58%;
  filter: saturate(0.82) contrast(1.07) brightness(0.82);
}

.rpd-case-study .hero-visual::after {
  background:
    linear-gradient(90deg, var(--navy) 0%, rgb(4 27 44 / 72%) 11%, transparent 43%),
    linear-gradient(0deg, rgb(2 19 31 / 67%), transparent 51%);
}

.rpd-case-study .hero-grid {
  background-image:
    linear-gradient(rgb(244 189 56 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 189 56 / 18%) 1px, transparent 1px);
}

.rpd-case-study .hero-fact { border-left-color: var(--rpd-gold); }
.rpd-case-study .hero-fact strong { font-size: clamp(1.9rem, 2.8vw, 2.7rem); }

.rpd-case-study .enterprise-note {
  margin-top: 38px !important;
  padding: 3px 0 3px 22px;
  border-left: 3px solid var(--rpd-gold);
  color: #dce6ea !important;
  font-size: 1rem !important;
}

.rpd-case-study .rpd-image-map {
  aspect-ratio: auto;
  min-height: 620px;
  isolation: isolate;
  background:
    radial-gradient(circle at 48% 42%, #e7e2d7 0, #b8c2c7 58%, #091c28 100%);
}

.rpd-case-study .rpd-hardware-image,
.rpd-case-study .rpd-image-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rpd-case-study .rpd-hardware-image {
  z-index: 1;
  display: block;
  padding: clamp(22px, 4vw, 62px);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.76) contrast(1.05) brightness(0.9);
  transition: filter 320ms ease;
}

.rpd-case-study .rpd-image-map:hover .rpd-hardware-image {
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
}

.rpd-case-study .rpd-image-wash {
  z-index: 2;
  background:
    linear-gradient(180deg, rgb(2 19 31 / 5%), transparent 45%, rgb(2 19 31 / 44%)),
    linear-gradient(90deg, rgb(2 19 31 / 23%), transparent 28% 72%, rgb(2 19 31 / 23%));
  pointer-events: none;
}

.rpd-case-study .hotspots-layer { z-index: 3; }
.rpd-case-study .hotspot[data-zone="measurement"] { top: 41%; left: 35%; }
.rpd-case-study .hotspot[data-zone="single_chord"] { top: 59%; left: 63%; }
.rpd-case-study .hotspot[data-zone="operator"] { top: 31%; left: 64%; }
.rpd-case-study .hotspot[data-zone="retrofit"] { top: 74%; left: 37%; }
.rpd-case-study .hotspot-reverse { flex-direction: row-reverse; }

.rpd-case-study .hotspot.is-active span {
  border-color: var(--rpd-gold);
  background: rgb(244 189 56 / 16%);
  color: var(--rpd-gold);
  box-shadow: 0 0 0 2px rgb(244 189 56 / 90%), 0 0 0 7px rgb(244 189 56 / 14%);
}

.rpd-case-study .hotspot.is-active em { border-color: rgb(244 189 56 / 75%); }
.rpd-case-study .view-label span { background: var(--rpd-gold); }
.rpd-case-study .view-label {
  z-index: 4;
  padding: 8px 10px;
  background: rgb(2 19 31 / 68%);
  backdrop-filter: blur(5px);
}

.rpd-case-study .system-panel { min-width: 0; }
.rpd-case-study .system-panel > * { transition: opacity 130ms ease, transform 180ms ease; }
.rpd-case-study .system-panel.is-updating > * { opacity: 0.34; transform: translateY(4px); }
.rpd-case-study .panel-topline span,
.rpd-case-study .system-stat strong,
.rpd-case-study .system-panel li::before { color: var(--rpd-gold); }

.rpd-case-study .system-stat strong {
  white-space: nowrap;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.rpd-case-study .service-bridge {
  padding: clamp(88px, 9vw, 138px) 8vw;
  background: #e9e6de;
  color: #193c4d;
}

.rpd-case-study .service-bridge-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.65fr);
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
  max-width: 1500px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}

.rpd-case-study .service-bridge .section-label {
  margin-bottom: 38px;
  color: #2e5c73;
}

.rpd-case-study .service-bridge h2 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 78px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.rpd-case-study .service-bridge-heading > p {
  max-width: 420px;
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--rpd-gold);
  color: #3e5867;
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.75;
}

.rpd-case-study .service-bridge-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-width: 1500px;
  margin: 0 auto;
  border: 1px solid #bdc4c5;
  background: #f3f0e8;
}

.rpd-case-study .service-image {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #081c29;
}

.rpd-case-study .service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.82) contrast(1.04) brightness(0.84);
}

.rpd-case-study .service-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 19 31 / 76%), transparent 45%);
  content: "";
  pointer-events: none;
}

.rpd-case-study .service-image figcaption {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 22px;
  left: 26px;
  color: #f5f9fb;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rpd-case-study .service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #bdc4c5;
}

.rpd-case-study .service-grid article {
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid #bdc4c5;
  border-bottom: 1px solid #bdc4c5;
}

.rpd-case-study .service-grid article:nth-child(2n) { border-right: 0; }
.rpd-case-study .service-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
.rpd-case-study .service-grid span {
  color: #7d601e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rpd-case-study .service-grid h3 {
  margin: 38px 0 16px;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.rpd-case-study .service-grid p {
  margin: 0;
  color: #526a77;
  font-size: 0.94rem;
  line-height: 1.62;
}

.rpd-case-study .rpd-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 7px;
  border-bottom: 1px solid #193c4d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rpd-case-study .rpd-link span { margin-left: 7px; color: #a8750f; }
.rpd-case-study .metrics-grid strong { white-space: nowrap; }

.rpd-case-study .noscript-systems {
  width: min(100%, 1500px);
  margin: 28px auto 0;
  padding: 26px 30px;
  border: 1px solid #294351;
  border-left: 3px solid var(--rpd-gold);
  background: #061b27;
  color: #b8cad3;
  line-height: 1.7;
}

.rpd-case-study .noscript-systems .section-label { margin-bottom: 12px; color: var(--rpd-gold); }
.rpd-case-study .noscript-systems p:last-child { margin: 0; }

@media (max-width: 1200px) {
  .rpd-case-study .explorer-stage { grid-template-columns: 1fr; }
  .rpd-case-study .rpd-image-map { aspect-ratio: 3 / 2; min-height: 0; }
  .rpd-case-study .system-panel { min-height: 520px; border-top: 1px solid #294351; border-left: 0; }
  .rpd-case-study .service-bridge-content { grid-template-columns: 1fr; }
  .rpd-case-study .service-image { min-height: 430px; }
  .rpd-case-study .service-grid { border-top: 1px solid #bdc4c5; border-left: 0; }
}

@media (max-width: 900px) {
  .rpd-case-study .service-bridge,
  .rpd-case-study .service-bridge-heading { display: block; }
  .rpd-case-study .service-bridge { padding: 90px 7vw; }
  .rpd-case-study .service-bridge-heading > p { margin-top: 38px; }
}

@media (max-width: 700px) {
  .rpd-case-study .hotspot[data-zone="measurement"] { left: 30%; }
  .rpd-case-study .hotspot[data-zone="retrofit"] { left: 30%; }
  .rpd-case-study .service-bridge { padding: 72px 0 0; }
  .rpd-case-study .service-bridge-heading { padding: 0 24px; }
  .rpd-case-study .service-bridge-content { border-right: 0; border-left: 0; }
  .rpd-case-study .service-image { min-height: 300px; }
  .rpd-case-study .service-grid { grid-template-columns: 1fr; }
  .rpd-case-study .service-grid article,
  .rpd-case-study .service-grid article:nth-child(2n) { min-height: 0; border-right: 0; border-bottom: 1px solid #bdc4c5; }
  .rpd-case-study .service-grid article:last-child { border-bottom: 0; }
  .rpd-case-study .rpd-link { margin: 30px 24px 72px; }
}

@media (max-width: 560px) {
  .rpd-case-study .hero h1 { font-size: 58px; }
  .rpd-case-study .hotspot em { display: none; }
  .rpd-case-study .hotspot span { flex-basis: 40px; width: 40px; height: 40px; font-size: 0.68rem; }
  .rpd-case-study .metrics-grid strong { font-size: clamp(31px, 10vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  .rpd-case-study .rpd-hardware-image,
  .rpd-case-study .system-panel > * { transition: none; }
  .rpd-case-study .system-panel.is-updating > * { opacity: 1; transform: none; }
}
