/* AI Data Center & E-MAS Dedicated Styles (2026-11-18) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* AIDC Hero: light sustainability framing + 1920:800 video seamlessly shown below floating header */
.esg.aidc-page .esg-hero:not(.emas-hero-section),
.aidc-page .esg-hero:not(.emas-hero-section) {
  background: linear-gradient(180deg, #e7f1fb 0%, #eef6fd 100%);
}

.esg.aidc-page .esg-hero:not(.emas-hero-section) .esg-hero-video {
  z-index: 2;
  opacity: 1;
  display: block;
}

@media (min-width: 768px) {
  .esg.aidc-page .esg-hero:not(.emas-hero-section),
  .aidc-page .esg-hero:not(.emas-hero-section) {
    height: calc(max(460px, min(800px, 41.6667vw)) + 130px);
    min-height: 0;
  }
  .esg.aidc-page .esg-hero:not(.emas-hero-section) .esg-hero-media,
  .aidc-page .esg-hero:not(.emas-hero-section) .esg-hero-media {
    top: 130px;
    height: calc(100% - 130px);
    width: 100%;
    object-fit: cover;
    object-position: center;
    background: #eaf3fc;
  }
}

@media (max-width: 767px) {
  .esg.aidc-page .esg-hero:not(.emas-hero-section),
  .aidc-page .esg-hero:not(.emas-hero-section) {
    height: auto;
    min-height: 0;
    padding-top: 94px;
    padding-bottom: 8px;
  }
  .esg.aidc-page .esg-hero:not(.emas-hero-section) img.esg-hero-media,
  .aidc-page .esg-hero:not(.emas-hero-section) img.esg-hero-media {
    display: none;
  }
  .esg.aidc-page .esg-hero:not(.emas-hero-section) .esg-hero-media,
  .aidc-page .esg-hero:not(.emas-hero-section) .esg-hero-media {
    position: relative;
    inset: auto;
    top: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 800;
    object-fit: contain;
    background: #eaf3fc;
  }
}

/* Explicit high-specificity rule for E-MAS light hero */
.esg.aidc-page section.emas-hero-section,
.aidc-page section.emas-hero-section {
  height: auto;
  min-height: 0;
  background: radial-gradient(circle at 82% 24%, #cde7ff 0%, rgba(205, 231, 255, 0) 45%),
              linear-gradient(165deg, #eef6fe 0%, #ffffff 78%);
  border-bottom: 1px solid #d9eaf8;
  color: #243447;
}

/* Architecture diagram section */
.aidc-arch-card {
  position: relative;
  border-radius: var(--brand-radius-card, 1.5rem);
  border: 1px solid var(--brand-border, #c4e8f5);
  background: #ffffff;
  box-shadow: var(--brand-shadow-card, 0 8px 24px #12304a1a);
  overflow: hidden;
  padding: clamp(12px, 1.5vw, 24px);
}

.aidc-arch-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.aidc-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #b8d8f5;
  background: #f2f8ff;
  color: #12489e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.aidc-zoom-btn:hover,
.aidc-zoom-btn:focus-visible {
  background: #1959ff;
  border-color: #1959ff;
  color: #ffffff;
}

/* Immersion cooling 3-area section (Slide 9) */
.aidc-cooling-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(235, 246, 255, 0.35) 30%, rgba(226, 241, 254, 0.75) 100%),
    url("/images/solutions/aidc-cooling-bg.webp") top center / cover no-repeat;
}

.aidc-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  margin-top: 32px;
}

.aidc-area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid #dcebfa;
  border-top: 4px solid #1959ff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fe 100%);
  padding: clamp(24px, 2.3vw, 34px);
  box-shadow: 0 12px 32px rgba(18, 48, 74, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .aidc-area-card:hover {
    transform: translateY(-5px);
    border-color: #1959ff;
    box-shadow: 0 16px 36px rgba(22, 76, 155, 0.16);
  }
}

.aidc-area-card::after {
  content: attr(data-order);
  position: absolute;
  top: clamp(14px, 1.8vw, 24px);
  right: clamp(20px, 2vw, 30px);
  font-family: var(--font-brand);
  font-size: clamp(54px, 5.2vw, 86px);
  font-weight: 700;
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1.5px #dce6f2;
  pointer-events: none;
}

.aidc-area-icon {
  width: clamp(76px, 6.2vw, 96px);
  height: clamp(76px, 6.2vw, 96px);
  object-fit: contain;
  margin-bottom: 18px;
}

.aidc-area-eyebrow {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1260b5;
  margin-bottom: 10px;
}

.aidc-area-card h3 {
  font-size: clamp(22px, 1.75vw, 28px);
  font-weight: 700;
  line-height: 1.32;
  color: #122134;
  margin-bottom: 16px;
}

.aidc-area-card p.aidc-area-desc {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.78;
  color: #2c3e52;
  margin-bottom: 24px;
  flex: 1 1 auto;
}

.aidc-area-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 999px;
  border: 1.5px solid #599ee0;
  background: #edf5fd;
  color: #0e4f96;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .aidc-area-grid {
    grid-template-columns: 1fr;
  }
}

/* Prefabricated solution section (Slide 10) */
.aidc-prefab-subtitle {
  margin-top: 12px;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 700;
  color: #15499e;
  line-height: 1.45;
}

.aidc-prefab-frame {
  border-radius: var(--brand-radius-card, 1.5rem);
  background: #303747;
  padding: clamp(14px, 2vw, 28px);
  box-shadow: 0 18px 44px rgba(10, 25, 47, 0.22);
  overflow: hidden;
}

.aidc-prefab-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Lightbox dialog */
.aidc-lightbox {
  width: min(94vw, 1440px);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: #0c1829;
  color: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.aidc-lightbox::backdrop {
  background: rgba(5, 16, 34, 0.8);
  backdrop-filter: blur(4px);
}

.aidc-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.aidc-lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.aidc-lightbox-close:hover {
  background: #1959ff;
  border-color: #1959ff;
}

.aidc-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 90px);
  object-fit: contain;
  border-radius: 10px;
}

/* E-MAS Dedicated Styles */
.emas-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(87.5%, 1400px);
  margin-inline: auto;
  padding-top: 150px;
  padding-bottom: 64px;
}

.emas-hero-section {
  background: radial-gradient(circle at 82% 24%, #cde7ff 0%, rgba(205, 231, 255, 0) 45%),
              linear-gradient(165deg, #eef6fe 0%, #ffffff 78%);
  border-bottom: 1px solid #d9eaf8;
}

.emas-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #3d5672;
  margin-bottom: 18px;
}

.emas-breadcrumb a {
  color: #1959ff;
  font-weight: 600;
}

.emas-hero-title {
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 750;
  line-height: 1.2;
  color: #0e2239;
  margin-top: 8px;
}

.emas-hero-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.85;
  color: #243447;
  max-width: 580px;
}

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

.emas-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #1959ff;
  color: #ffffff;
  font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}

.emas-btn-primary:hover {
  background: #0d43d6;
  transform: translateY(-2px);
}

.emas-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid #1959ff;
  background: #ffffff;
  color: #1959ff;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}

.emas-btn-secondary:hover {
  background: #eef5ff;
}

.emas-visual-panel {
  border-radius: 24px;
  background: linear-gradient(145deg, #0b1e38 0%, #102b54 55%, #123e7d 100%);
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(99, 179, 255, 0.35);
  box-shadow: 0 22px 54px rgba(12, 37, 74, 0.22);
}

.emas-visual-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.emas-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: 32px;
}

.emas-feature-card {
  border-radius: 20px;
  border: 1px solid #d9eaf8;
  background: #ffffff;
  padding: clamp(24px, 2.2vw, 34px);
  box-shadow: 0 10px 28px rgba(18, 48, 74, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .emas-feature-card:hover {
    transform: translateY(-5px);
    border-color: #1959ff;
    box-shadow: 0 14px 32px rgba(22, 76, 155, 0.14);
  }
}

.emas-feature-card .emas-card-tag {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1258b5;
  margin-bottom: 10px;
}

.emas-feature-card h3 {
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 700;
  color: #122134;
  margin-bottom: 12px;
}

.emas-feature-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #36495f;
}

.emas-cta-box {
  border-radius: 24px;
  background: linear-gradient(120deg, #0d2b57 0%, #1959ff 100%);
  color: #ffffff;
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.emas-cta-box h2 {
  color: #ffffff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
}

.emas-cta-box p {
  margin-top: 10px;
  color: #e2edff;
  max-width: 640px;
  line-height: 1.75;
}

.emas-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #ffffff;
  color: #123e9b;
  font-weight: 700;
  white-space: nowrap;
}

.emas-cta-btn:hover {
  background: #e9f3ff;
}

@media (max-width: 960px) {
  .emas-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 120px;
    padding-bottom: 44px;
    width: calc(100% - 40px);
  }
  .emas-feature-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes emasPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.emas-pulse {
  animation: emasPulse 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .emas-pulse { animation: none; }
}
