/* Homepage imagery, v1.16. Keep these changes scoped to the two updated sections. */
.company-story .story-map {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 510px;
  background: #061b30;
}
.company-story .story-map > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.company-story .story-map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3,18,33,.96) 0%, rgba(3,18,33,.89) 28%, rgba(3,18,33,.38) 55%, rgba(3,18,33,.04) 100%);
}
.company-story .story-map-copy {
  position: relative;
  z-index: 2;
  width: min(49%, 570px);
  padding: 54px 0 54px 48px;
}
.company-story .story-map-copy > p { color: #d5e2ec; }
.company-story .story-map-copy .eyebrow { color: #a9cee8; }
.company-story .story-map-copy h3 { font-weight: 700; }
.company-story .story-pillars { max-width: 345px; }
.company-story .story-pillars span { color: #e1ebf2; }

.applications .industry-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.applications .industry-photo-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 440px;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #071c2e;
  text-align: start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.applications .industry-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .65s cubic-bezier(.2,.65,.3,1);
}
.applications .industry-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,17,30,.03) 15%, rgba(3,17,30,.12) 38%, rgba(3,17,30,.86) 69%, #03111e 100%);
}
.applications .industry-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 130px 28px 30px;
}
.applications .industry-copy::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 17px;
  background: #9cc8e5;
}
.applications .industry-copy h3 {
  margin: 0 0 12px;
  max-width: none;
  color: #fff;
  font-size: clamp(23px, 2.05vw, 29px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.applications .industry-copy p {
  margin: 0;
  max-width: 34ch;
  color: #e0e9f0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .applications .industry-photo-card:hover .industry-image { transform: scale(1.04); }
}
@media (max-width: 1000px) {
  .applications .industry-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .applications .industry-photo-card { min-height: 400px; }
  .applications .industry-copy h3 { font-size: 26px; }
  .company-story .story-map-copy { width: 56%; padding-left: 34px; }
}
@media (max-width: 600px) {
  .company-story .story-map { min-height: 510px; }
  .company-story .story-map > img { object-position: 57% center; }
  .company-story .story-map::after { background: linear-gradient(180deg, rgba(3,18,33,.66), rgba(3,18,33,.87) 43%, rgba(3,18,33,.95)); }
  .company-story .story-map-copy { width: 100%; padding: 42px 26px; }
  .company-story .story-map-copy h3 { max-width: 390px; font-size: 30px; }
  .applications .industry-photo-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .applications .industry-photo-card { min-height: 400px; }
  .applications .industry-copy { padding: 120px 26px 28px; }
  .applications .industry-copy h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .applications .industry-image { transition: none; }
}

/* Homepage 2-Slide Hero Slider (Slide 0: Hero Banner, Slide 1: 360° Virtual Tour) */
.hero.hero-slider {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
  height: 780px;
  min-height: 780px;
  max-height: 780px;
  box-sizing: border-box;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 780px;
  min-height: 780px;
  max-height: 780px;
  box-sizing: border-box;
}
.hero-slide {
  display: none;
  width: 100%;
  height: 780px;
  min-height: 780px;
  max-height: 780px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-slide[data-hero-slide="0"] {
  padding: 130px 0 90px;
}
.hero-slide.is-active {
  display: flex;
  animation: tmHeroFade .35s ease;
}
@keyframes tmHeroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Background overlay adjustments on active slide */
.hero.hero-slider[data-active-slide="1"]::before {
  opacity: .18;
  filter: blur(5px);
}
.hero.hero-slider[data-active-slide="1"]::after {
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.88) 0%, rgba(8, 10, 13, 0.96) 100%) !important;
}

/* Slide 1: 360° Virtual Tour Layout & Sizing */
.hero-slide-vr {
  padding: 105px 0 55px;
  justify-content: center;
}
.hero-vr-container {
  width: min(var(--max), calc(100% - 112px));
  margin-inline: auto;
}
.hero-slide-vr .hero-vr-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 14px;
  gap: 36px;
}
.hero-slide-vr .hero-vr-heading .eyebrow {
  color: #e3141b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px;
}
.hero-slide-vr .hero-vr-heading h2 {
  color: #ffffff !important;
  font-size: clamp(24px, 2.3vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}
.hero-slide-vr .hero-vr-heading > p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14.5px !important;
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 360 Viewer Card */
.hero-slide-vr .hero-vr-viewer {
  position: relative;
  width: 100%;
  height: 440px !important;
  min-height: 440px !important;
  max-height: 440px !important;
  aspect-ratio: auto !important;
  background: #0b0e12 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  overflow: hidden;
}
.hero-slide-vr .hero-vr-viewer .vr-poster:after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.15) 100%) !important;
}
.hero-slide-vr .hero-vr-viewer .vr-orbit {
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.hero-slide-vr .hero-vr-viewer .vr-poster .button.vr-start {
  background: #e3141b !important;
  border: 1px solid #e3141b !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  padding: 14px 28px !important;
  min-height: 52px !important;
  box-shadow: 0 10px 25px rgba(227, 20, 27, 0.42) !important;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease !important;
}
.hero-slide-vr .hero-vr-viewer .vr-poster .button.vr-start:hover {
  background: #c30e15 !important;
  border-color: #c30e15 !important;
  color: #ffffff !important;
  transform: scale(1.03) !important;
  box-shadow: 0 14px 30px rgba(227, 20, 27, 0.58) !important;
}
.hero-slide-vr .hero-vr-viewer .vr-poster-copy p {
  color: rgba(255, 255, 255, 0.90) !important;
  font-size: 13.5px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75) !important;
  margin-top: 14px;
}

/* 360 Viewer Toolbar */
.hero-slide-vr .hero-vr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.hero-slide-vr .hero-vr-toolbar p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  line-height: 1.4;
  margin: 0;
}
.hero-slide-vr .hero-vr-toolbar a,
.hero-slide-vr .hero-vr-toolbar .vr-close {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 6px 14px !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}
.hero-slide-vr .hero-vr-toolbar a:hover,
.hero-slide-vr .hero-vr-toolbar .vr-close:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

/* Navigation Controls: Arrows & Dots */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(12, 15, 19, 0.82) !important;
  color: #ffffff !important;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.hero-slider-arrow:hover {
  background: #e3141b !important;
  border-color: #e3141b !important;
  color: #ffffff !important;
}
.hero-slider-arrow.prev { left: 22px; }
.hero-slider-arrow.next { right: 22px; }

.hero-slider .hero-rule {
  z-index: 6;
  bottom: 24px;
  gap: 12px;
}
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  height: 26px;
  min-width: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .22s ease;
}
.hero-dot[data-hero-dot="0"] {
  width: 26px;
  padding: 0;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}
.hero-dot.is-active {
  background: #e3141b !important;
  border-color: #e3141b !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(227, 20, 27, 0.35) !important;
}

/* Responsive Viewport Equalization */
@media (min-width: 1700px) {
  .hero.hero-slider,
  .hero-slides,
  .hero-slide {
    height: 850px;
    min-height: 850px;
    max-height: 850px;
  }
  .hero-slide[data-hero-slide="0"] {
    padding: 150px 0 100px;
  }
  .hero-slide-vr {
    padding: 120px 0 70px;
  }
  .hero-slide-vr .hero-vr-viewer {
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
  }
}

@media (max-width: 1200px) {
  .hero-slider-arrow.prev { left: 14px; }
  .hero-slider-arrow.next { right: 14px; }
  .hero.hero-slider .hero-copy {
    padding-left: 32px;
  }
}

@media (max-width: 1150px) and (min-width: 901px) {
  .hero.hero-slider,
  .hero-slides,
  .hero-slide {
    height: 680px;
    min-height: 680px;
    max-height: 680px;
  }
  .hero-slide[data-hero-slide="0"] {
    padding: 110px 0 80px;
  }
  .hero-slide-vr {
    padding: 95px 0 45px;
  }
  .hero-slide-vr .hero-vr-heading {
    gap: 24px;
    margin-bottom: 12px;
  }
  .hero-slide-vr .hero-vr-viewer {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }
}

@media (max-width: 1024px) {
  .hero-slider-arrow { width: 40px; height: 40px; font-size: 24px; }
  .hero-slider-arrow.prev { left: 10px; }
  .hero-slider-arrow.next { right: 10px; }
  .hero.hero-slider .hero-copy {
    padding-left: 38px;
    max-width: 560px;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .hero.hero-slider,
  .hero-slides,
  .hero-slide {
    height: 650px;
    min-height: 650px;
    max-height: 650px;
  }
  .hero-slide[data-hero-slide="0"] {
    padding: 95px 0 60px;
  }
  .hero-slide-vr {
    padding: 85px 0 40px;
  }
  .hero-slide-vr .hero-vr-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .hero-slide-vr .hero-vr-heading h2 {
    font-size: 24px !important;
  }
  .hero-slide-vr .hero-vr-heading > p {
    font-size: 13px !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-vr .hero-vr-viewer {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
  }
  .hero-slider-arrow { width: 38px; height: 38px; font-size: 22px; }
  .hero-slider-arrow.prev { left: 10px; }
  .hero-slider-arrow.next { right: 10px; }
}

@media (max-width: 600px) {
  .hero.hero-slider,
  .hero-slides,
  .hero-slide {
    height: auto;
    min-height: 740px;
    max-height: none;
  }
  .hero-slide[data-hero-slide="0"] {
    padding: 105px 0 85px;
  }
  .hero-slide-vr {
    padding: 85px 0 70px;
  }
  .hero-vr-container {
    width: calc(100% - 32px);
  }
  .hero-slide-vr .hero-vr-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }
  .hero-slide-vr .hero-vr-heading h2 {
    font-size: 22px !important;
  }
  .hero-slide-vr .hero-vr-heading > p {
    font-size: 13px !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-vr .hero-vr-viewer {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }
  .hero-slide-vr .hero-vr-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-slider-arrow { top: auto; bottom: 20px; transform: none; }
}
