:root {
  --med-xp-gold: #C9A84C;
}
.med-xp-unit {
  --gold: var(--med-xp-gold);
  position: relative;
  width: 100%;
  background: #0a0a0a;
}
.med-xp-unit .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.med-xp-head {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.25rem;
  background: linear-gradient(180deg, #0c2834 0%, #0a0a0a 100%);
  color: #fff;
}
.med-xp-case-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-ar, "Tajawal", sans-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #f5c84d;
  letter-spacing: 0;
}
html[lang="en"] .med-xp-case-label,
html[dir="ltr"] .med-xp-case-label {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}
.med-xp-head .container { max-width: 1100px; }
.med-xp-head .svc-tag { color: rgba(201,168,76,0.95); }
.med-xp-head .font-headline-xl { color: #fff; margin: 0.4rem 0 0.75rem; }
.med-xp-head .font-body-md { color: rgba(255,255,255,0.72); max-width: 42rem; }
.med-xp-head-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}
.med-xp-head-meta a { color: var(--med-xp-gold); text-decoration: underline; text-underline-offset: 3px; }
.med-xp-unit .s2-play-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}
.med-xp-unit .s2-play-btn .material-symbols-outlined {
  font-size: 42px;
  color: #C9A84C;
}
.med-xp-unit .case-content {
  background: #f7fbfd;
}
.med-xp-unit .highlight-item {
  background: #eef5f8;
  border-inline-start-color: #0a5570;
}
.med-xp-unit .highlight-item .icon { color: #0a5570; }
.med-xp-credit {
  padding: 1.5rem 1.25rem 2.75rem;
  text-align: center;
  background: #f7fbfd;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(12,40,52,0.65);
  max-width: 44rem;
  margin-inline: auto;
}
.med-xp-credit a { color: #0a5570; font-weight: 600; }

.med-xp-unit .s2-hero-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}html[dir="rtl"] .med-xp-unit .s2-hero-wrap { direction: rtl; }html[dir="ltr"] .med-xp-unit .s2-hero-wrap { direction: ltr; }.med-xp-unit .s2-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}.med-xp-unit .s2-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}.med-xp-unit .s2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}.med-xp-unit .s2-hero-inner {
  position: absolute;
  top: 64%;
  z-index: 5;
  max-width: 620px;
  pointer-events: none;
}html[dir="rtl"] .med-xp-unit .s2-hero-inner {
  /* Reading side (right in RTL); the gallery and watch button sit opposite */
  inset-inline-start: 40px;
  text-align: right;
  padding: 20px 60px 20px 48px;
}html[dir="ltr"] .med-xp-unit .s2-hero-inner {
  inset-inline-start: 40px;
  text-align: left;
  padding: 20px 48px 20px 60px;
}.med-xp-unit .s2-hero-inner::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 55%;
  background: rgba(201,168,76,0.4);
  border-radius: 1px;
}.med-xp-unit .s2-hero-inner * { pointer-events: auto; }.med-xp-unit .s2-hero-title {
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}.med-xp-unit .s2-hero-title em {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}.med-xp-unit .s2-hero-desc {
  font-size: clamp(13px, 1vw, 16px);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 14px 0 0;
  line-height: 1.7;
  font-weight: 400;
}.med-xp-unit /* Hotspots */
.hotspot {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}.med-xp-unit .hotspot-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.9);
  box-shadow: 0 0 20px rgba(201,168,76,0.4), 0 0 0 4px rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.1,1);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(2px);
  border: 2px solid rgba(255,255,255,0.2);
}.med-xp-unit .hotspot-dot .material-symbols-outlined {
  font-size: 18px;
  color: #fff;
}.med-xp-unit .hotspot:hover .hotspot-dot {
  transform: scale(1.25);
  background: #C9A84C;
  box-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 0 6px rgba(201,168,76,0.2);
}.med-xp-unit .hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(201,168,76,0.7);
  animation: hotspot-pulse 2.5s ease-out infinite;
  z-index: 1;
  pointer-events: none;
}.med-xp-unit .hotspot-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  animation: hotspot-pulse 2.5s ease-out 0.4s infinite;
}.med-xp-unit .hotspot-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.2);
  animation: hotspot-pulse 2.5s ease-out 0.8s infinite;
}.med-xp-unit .hotspot-2 .hotspot-pulse { animation-delay: 0.4s; }.med-xp-unit .hotspot-2 .hotspot-pulse::before { animation-delay: 0.8s; }.med-xp-unit .hotspot-2 .hotspot-pulse::after { animation-delay: 1.2s; }.med-xp-unit .hotspot-3 .hotspot-pulse { animation-delay: 0.8s; }.med-xp-unit .hotspot-3 .hotspot-pulse::before { animation-delay: 1.2s; }.med-xp-unit .hotspot-3 .hotspot-pulse::after { animation-delay: 1.6s; }.med-xp-unit .hotspot-4 .hotspot-pulse { animation-delay: 1.2s; }.med-xp-unit .hotspot-4 .hotspot-pulse::before { animation-delay: 1.6s; }.med-xp-unit .hotspot-4 .hotspot-pulse::after { animation-delay: 2.0s; }@keyframes hotspot-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}.med-xp-unit /* Tooltip */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 22px;
  min-width: 240px;
  max-width: 300px;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25,0.1,0.1,1);
  pointer-events: none;
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}.med-xp-unit .hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}.med-xp-unit .hotspot-tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(10,10,10,0.92);
  border-right: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}.med-xp-unit .hotspot-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  margin-bottom: 8px;
}.med-xp-unit .hotspot-tooltip h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 700;
}.med-xp-unit .hotspot-tooltip p {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}.med-xp-unit /* Watch Video button */
.s2-watch-btn {
  position: absolute;
  inset-inline-end: 60px;
  top: 55%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}.med-xp-unit .s2-watch-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
  box-shadow: 0 4px 30px rgba(201,168,76,0.2);
}.med-xp-unit .s2-watch-btn .material-symbols-outlined {
  color: var(--gold);
  font-variation-settings: 'FILL' 1;
}.med-xp-unit /* Play button */
.s2-hero-wrap .s2-play-btn {
  z-index: 5;
}.med-xp-unit .s2-hero-wrap .s2-play-btn::before {
  border-color: rgba(201,168,76,0.3);
}.med-xp-unit .s2-hero-wrap .s2-play-icon {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.3);
}.med-xp-unit /* Thumbnail gallery */
.s2-hero-gallery {
  position: absolute;
  inset-inline-end: 60px;
  top: 68%;
  z-index: 5;
  max-height: 36vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}.med-xp-unit /* Float widgets are pinned to the physical left,
.med-xp-unit which is this side in RTL */
html[dir="rtl"] .s2-hero-gallery,
html[dir="rtl"] .med-xp-unit .s2-watch-btn {
  inset-inline-end: 100px;
}.med-xp-unit .s2-hero-gallery::-webkit-scrollbar { width: 3px; }.med-xp-unit .s2-hero-gallery::-webkit-scrollbar-track { background: transparent; }.med-xp-unit .s2-hero-gallery::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 2px; }.med-xp-unit .s2-hero-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: none;
}html[dir="rtl"] .med-xp-unit .s2-hero-gallery-grid { direction: rtl; }.med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  position: relative;
  pointer-events: auto;
}.med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb:hover {
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
  z-index: 2;
}.med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}.med-xp-unit /* Content Section */
.case-content {
  padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  background: #f7fbfd;
}html[dir="rtl"] .med-xp-unit .case-content { direction: rtl; }html[dir="ltr"] .med-xp-unit .case-content { direction: ltr; }.med-xp-unit .case-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}.med-xp-unit .case-content h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  color: #0A0A0A;
  margin-bottom: 30px;
  line-height: 1.3;
}.med-xp-unit .case-content p {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 400;
  color: rgba(12, 40, 52, 0.78);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 42rem;
}.med-xp-unit /* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}.med-xp-unit .highlight-item {
  background: #eef5f8;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  border-inline-start: 3px solid #0a5570;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}.med-xp-unit .highlight-item .icon {
  color: var(--gold);
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}.med-xp-unit .highlight-item .text {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.7;
}.med-xp-unit /* Client project block (Anan Eskan) */
.case-content--client {
  border-top: 1px solid rgba(201,168,76,0.18);
  padding-top: 72px;
}.med-xp-unit .case-client-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}.med-xp-unit .case-client-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}.med-xp-unit .case-client-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}.med-xp-unit .case-client-header h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  color: #0A0A0A;
  margin: 0;
  line-height: 1.25;
}.med-xp-unit .case-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}.med-xp-unit .case-project-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: #E8E7E2;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}.med-xp-unit .case-project-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}.med-xp-unit .case-project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}.med-xp-unit .case-project-item:hover img { transform: scale(1.04); }.med-xp-unit .case-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
}.med-xp-unit .case-project-item:hover .case-project-overlay { opacity: 1; }.med-xp-unit .case-project-location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}.med-xp-unit .case-project-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}.med-xp-unit .case-project-video .case-project-overlay { opacity: 1; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.55) 100%); }.med-xp-unit .case-project-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}.med-xp-unit .case-project-play .material-symbols-outlined {
  font-size: 56px;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}.med-xp-unit .case-project-video:hover .case-project-play .material-symbols-outlined { transform: scale(1.08); }.med-xp-unit /* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}.med-xp-unit .video-modal.is-open { display: flex; }.med-xp-unit .video-modal-inner {
  width: 100%;
  /* Keep the 16:9 frame inside the viewport height, not just its width */
  max-width: min(1100px, calc((100dvh - 120px) * 16 / 9));
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}.med-xp-unit #medVideoModalPlayer {
  position: absolute;
  inset: 0;
}.med-xp-unit #medVideoModalPlayer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}.med-xp-unit .video-modal-close {
  /* Fixed to the overlay so the round frame does not clip it */
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s, background 0.3s;
}.med-xp-unit .video-modal-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.75);
}.med-xp-unit /* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}.med-xp-unit .image-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}.med-xp-unit .image-lightbox img {
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 85vh;
  display: block;
  border-radius: 8px;
}.med-xp-unit .image-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}.med-xp-unit .image-lightbox-close:hover { opacity: 1; }



/* Engagement modes */
.page-hub--med .med-paths {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  background: #fff;
}
.page-hub--med .med-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.page-hub--med .med-path-card {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 85, 112, 0.12);
  background: linear-gradient(165deg, #f7fbfd, #eef5f8);
}
.page-hub--med .med-path-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(10, 85, 112, 0.55);
  margin-bottom: 0.55rem;
}
.page-hub--med .med-path-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0c2834;
}
.page-hub--med .med-path-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(12,40,52,0.7);
}
.page-hub--med .med-path-card--focus {
  background: linear-gradient(165deg, #0a5570, #0c2834);
  border-color: transparent;
  color: #fff;
}
.page-hub--med .med-path-card--focus,
.page-hub--med .med-path-card--focus h3,
.page-hub--med .med-path-card--focus p,
.page-hub--med .med-path-card--focus span,
.page-hub--med .med-path-card--focus strong {
  color: #fff !important;
}
.page-hub--med .med-path-card--focus p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.page-hub--med .med-path-card--focus .med-path-num {
  color: rgba(183, 214, 230, 0.85) !important;
}

.page-hub--med .med-xp-services {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  background: linear-gradient(180deg, #f5f9fb, #eef5f8);
}
.page-hub--med .med-xp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.page-hub--med .med-xp-card {
  padding: 1.25rem 1.2rem 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 85, 112, 0.1);
}
.page-hub--med .med-xp-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0c2834;
}
.page-hub--med .med-xp-card .med-gets { margin-top: 0.35rem; }
.page-hub--med .med-xp-partner {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(12,40,52,0.68);
  max-width: 40rem;
}

@media (max-width: 900px) {
  .page-hub--med .med-paths-grid { grid-template-columns: 1fr; }
  .page-hub--med .med-xp-grid { grid-template-columns: 1fr; }
}

.med-xp-unit button.s2-hero-thumb {
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font: inherit;
}
.med-xp-unit .video-modal,
.med-xp-unit.video-modal {
  background: rgba(0,0,0,0.93);
}

/* Tasami Group trust band on MedMotion */
.page-hub--med .med-group-trust {
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
  background: linear-gradient(180deg, #0c2834 0%, #0a3d52 100%);
  color: #f4f8fa;
}
.page-hub--med .med-group-trust-inner {
  display: grid;
  gap: 1.35rem;
}
.page-hub--med .med-group-trust-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(183, 214, 230, 0.9);
}
html[dir="rtl"] .page-hub--med .med-group-trust-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.page-hub--med .med-group-trust-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.page-hub--med .med-group-trust-body {
  margin: 0;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(244, 248, 250, 0.72);
}
.page-hub--med .med-group-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.page-hub--med .med-group-chip {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(183, 214, 230, 0.18);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.page-hub--med a.med-group-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(255, 255, 255, 0.09);
}
.page-hub--med .med-group-chip--active {
  background: rgba(10, 85, 112, 0.35);
  border-color: rgba(183, 214, 230, 0.35);
}
.page-hub--med .med-group-chip .eco-logo-stage {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.page-hub--med .med-group-chip strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.page-hub--med .med-group-chip span,
.page-hub--med .med-group-chip .eco-card-role {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(244, 248, 250, 0.88);
  text-align: center;
}
.page-hub--med .med-group-trust-link {
  justify-self: start;
  color: #c9a84c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-hub--med .med-group-trust-link:hover {
  color: #e0c06a;
}
@media (max-width: 720px) {
  .page-hub--med .med-group-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Fixed modal layer — ID selectors (scoped descendant rules were broken) */
body.med-xp-modal-open {
  overflow: hidden;
}
#medVideoModal,
#medImageLightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
#medVideoModal.is-open,
#medImageLightbox.is-open {
  display: flex !important;
}
#medImageLightbox {
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#medImageLightbox.is-visible {
  opacity: 1;
}
#medVideoModal .video-modal-inner {
  width: 100%;
  max-width: min(1100px, calc((100dvh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
#medVideoModalPlayer {
  position: absolute;
  inset: 0;
}
#medVideoModalPlayer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
#medVideoModal .video-modal-close,
#medImageLightbox .image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10060;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#medImageLightbox .image-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}
#medImageLightboxImg {
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 85vh;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}
.med-xp-unit .s2-hero-gallery,
.med-xp-unit .s2-watch-btn,
.med-xp-unit .s2-play-btn,
.med-xp-unit .hotspot {
  pointer-events: auto;
  z-index: 8;
}
.med-xp-unit .s2-hero-gallery {
  z-index: 9;
}
.med-xp-unit .s2-watch-btn {
  z-index: 9;
}

/* Restructure: merged frame + compact method strip */
.page-hub--med .med-frame {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  background: #fff;
}
.page-hub--med .med-frame-define {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}
.page-hub--med .med-frame-define .font-headline-xl {
  margin: 0.35rem 0 0.75rem;
}
.page-hub--med .med-method-strip {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0.85rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-radius: 14px;
  background: linear-gradient(165deg, #f5f9fb, #eef5f8);
  border: 1px solid rgba(10, 85, 112, 0.1);
}
.page-hub--med .med-how {
  margin: 0 0 1.75rem;
}
.page-hub--med .med-how .svc-tag {
  margin-bottom: 0.65rem;
}
.page-hub--med .med-method-strip li {
  margin: 0;
  padding: 0.45rem 0.4rem;
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 700;
  color: #0c2834;
  text-align: center;
  border-inline-end: 1px solid rgba(10, 85, 112, 0.1);
  position: relative;
}
.page-hub--med .med-method-strip li:last-child {
  border-inline-end: 0;
}
.page-hub--med .med-outcomes {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 85, 112, 0.1);
}
.page-hub--med .med-outcomes .svc-tag {
  margin-bottom: 0.35rem;
}
.page-hub--med .med-outcomes-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.page-hub--med .med-outcomes-grid li {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(165deg, #f5f9fb, #eef5f8);
  border: 1px solid rgba(10, 85, 112, 0.08);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: #0c2834;
}
.page-hub--med .med-flagship-proof {
  list-style: none;
  margin: 1rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.page-hub--med .med-flagship-proof li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(12, 40, 52, 0.72);
}
.page-hub--med .med-flagship-proof strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a5570;
  min-width: 3.2rem;
}
.page-hub--med .med-pillar--lead {
  border-color: rgba(10, 85, 112, 0.28);
  box-shadow: 0 10px 28px rgba(8, 40, 55, 0.08);
}
.page-hub--med .med-pillar-badge {
  display: inline-block;
  margin: 0.2rem 0 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a5570;
  background: rgba(10, 85, 112, 0.1);
}
html[dir="rtl"] .page-hub--med .med-pillar-badge {
  letter-spacing: 0;
}
.page-hub--med .med-frame-paths-title {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #0c2834;
}
.page-hub--med .med-series--compact {
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}
.page-hub--med .med-series--compact .med-series-grid {
  gap: 0.75rem;
}
.page-hub--med .med-series--compact .med-series-body {
  padding: 0.85rem 0.9rem 1rem;
}
.page-hub--med .med-series--compact .med-series-body h3 {
  font-size: 0.95rem;
}
.page-hub--med .med-group-trust--compact {
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
  border-top: 1px solid rgba(183, 214, 230, 0.12);
}
.page-hub--med .med-group-trust--compact .med-group-trust-inner {
  gap: 1.5rem;
}
.page-hub--med .med-group-trust--compact .med-group-trust-title {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  margin-bottom: 0.65rem;
}
.page-hub--med .med-group-trust--compact .med-group-trust-body {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 40rem;
}
.page-hub--med .med-group-trust--compact .med-group-trust-grid {
  gap: 0.85rem;
}
.page-hub--med .med-group-trust--compact .med-group-chip {
  padding: 1.05rem 1.1rem;
}
.page-hub--med .med-group-trust--compact .med-group-trust-link {
  margin-top: 0.15rem;
}
.page-hub--med .lp-enquire--med {
  padding: clamp(3rem, 5.5vw, 4.25rem) 0;
}
.page-hub--med .med-flagship {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}
.page-hub--med .med-xp-services {
  padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.page-hub--med .med-xp-grid {
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.page-hub--med .med-xp-partner {
  margin-top: 1.5rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .page-hub--med .med-method-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-hub--med .med-method-strip li:nth-child(3n) {
    border-inline-end: 0;
  }
  .page-hub--med .med-outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .page-hub--med .med-method-strip {
    grid-template-columns: 1fr 1fr;
  }
  .page-hub--med .med-method-strip li:nth-child(2n) {
    border-inline-end: 0;
  }
  .page-hub--med .med-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* MedMotion hero: clear Bees Motion (no TM / no middot / no harsh uppercase) */
.page-hub--med .hub-hero--bleed .hub-hero-kicker {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.page-hub--med .hub-hero--bleed .hub-brand {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.page-hub--med .hub-hero--bleed .lp-hero-offer {
  color: #fff;
}
.page-hub--med .lp-mega-item--logo {
  align-content: center;
  justify-items: start;
  gap: 0.55rem;
}
.page-hub--med .lp-mega-logo {
  display: block;
  width: min(148px, 100%);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: start center;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.page-hub--med .lp-mega-item--logo span {
  max-width: 11rem;
}
@media (max-width: 720px) {
  .page-hub--med .lp-mega-logo {
    max-height: 64px;
    width: min(132px, 70%);
  }
}

/* ===== Mobile-first restack: experience unit + MedMotion density ===== */
.med-xp-unit .hotspot.is-active .hotspot-tooltip,
.med-xp-unit .hotspot:focus-within .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.med-xp-unit .hotspot.is-active .hotspot-dot {
  transform: scale(1.15);
  background: #C9A84C;
}
.med-xp-unit .hotspot-tooltip {
  max-width: min(300px, calc(100vw - 2rem));
}

@media (max-width: 900px) {
  .med-xp-unit .s2-hero-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: #0a0a0a;
  }

  .med-xp-unit .s2-hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: min(52vh, 420px);
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .med-xp-unit .s2-hero-inner {
    position: relative;
    top: auto;
    inset: auto !important;
    max-width: none;
    width: 100%;
    padding: 1.15rem 1.25rem 0.35rem !important;
    text-align: start !important;
    background: #0a0a0a;
  }

  .med-xp-unit .s2-hero-inner::before {
    display: none;
  }

  .med-xp-unit .s2-hero-title {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }

  .med-xp-unit .s2-hero-desc {
    font-size: 0.92rem;
    margin-top: 0.65rem;
    max-width: none;
  }

  /* Keep hotspots over the image only */
  .med-xp-unit .hotspot {
    position: absolute;
    z-index: 6;
  }

  .med-xp-unit .hotspot-1 { top: 58% !important; left: 62% !important; }
  .med-xp-unit .hotspot-2 { top: 40% !important; left: 78% !important; }
  .med-xp-unit .hotspot-3 { top: 34% !important; left: 48% !important; }
  .med-xp-unit .hotspot-4 { top: 36% !important; left: 26% !important; }

  .med-xp-unit .hotspot-dot {
    width: 40px;
    height: 40px;
  }

  .med-xp-unit .hotspot-tooltip {
    min-width: 0;
    width: min(240px, calc(100vw - 2.5rem));
    padding: 12px 14px;
    bottom: calc(100% + 12px);
  }

  .med-xp-unit .s2-play-btn {
    position: absolute;
    bottom: auto;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
  }

  .med-xp-unit .s2-watch-btn {
    position: relative;
    inset: auto !important;
    top: auto !important;
    transform: none;
    margin: 0.65rem 1.25rem 0.35rem;
    align-self: flex-start;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .med-xp-unit .s2-hero-gallery {
    position: relative;
    inset: auto !important;
    top: auto !important;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 1rem 1.25rem;
    background: #0a0a0a;
  }

  .med-xp-unit .s2-hero-gallery::-webkit-scrollbar {
    display: none;
  }

  .med-xp-unit .s2-hero-gallery-grid {
    display: flex;
    width: max-content;
    gap: 8px;
    padding: 0;
    grid-template-columns: none;
  }

  .med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
  }

  .med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  /* Hotspots become hard to use; highlights below cover the story */
  .med-xp-unit .hotspot {
    display: none;
  }

  .med-xp-unit .s2-hero-bg {
    min-height: min(46vh, 360px);
    max-height: 420px;
  }

  .page-hub--med .med-method-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding: 0.75rem;
    grid-template-columns: none;
    scrollbar-width: none;
  }

  .page-hub--med .med-method-strip::-webkit-scrollbar {
    display: none;
  }

  .page-hub--med .med-method-strip li {
    flex: 0 0 auto;
    min-width: 7.5rem;
    border-inline-end: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
  }

  .page-hub--med .hub-hero--bleed .hub-hero-lead {
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-hub--med .hub-hero--bleed .hub-hero-ctas {
    width: 100%;
  }

  .page-hub--med .hub-hero--bleed .hub-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hub--med .lp-enquire-actions {
    width: 100%;
    flex-direction: column;
  }

  .page-hub--med .lp-enquire-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hub--med .med-frame {
    padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  }

  .page-hub--med .med-outcomes {
    padding: 1.1rem 1rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .med-xp-unit .s2-play-btn {
    width: 56px;
    height: 56px;
  }

  .med-xp-unit .s2-hero-gallery-grid .s2-hero-thumb {
    width: 64px;
    height: 64px;
  }
}
