/* Static-site fixes */
html { scroll-behavior: smooth; }
#contact { scroll-margin-top: 120px; }
.custom-header {
  position: fixed !important;
  top: 22px !important;
  left: 2.5% !important;
  width: 95% !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 9999 !important;
}
.et_pb_section_0_tb_header.custom-header.et_pb_section {
  background-color: #fff !important;
  background-image: none !important;
}
.custom-menu-row {
  position: relative;
  min-height: 86px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-menu-row > .et_pb_column {
  display: flex;
  align-items: center;
  width: auto !important;
  margin-right: 0 !important;
}
.custom-menu-row .et_pb_column_0_tb_header {
  order: 1;
  justify-content: flex-start;
  position: absolute !important;
  left: 25px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.custom-menu-row .et_pb_column_1_tb_header {
  order: 2;
  justify-content: flex-end;
  position: absolute !important;
  right: 25px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.custom-menu-row .et_pb_image_0_tb_header {
  width: 200px !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.custom-menu-row .et_pb_image_0_tb_header .et_pb_image_wrap,
.custom-menu-row .et_pb_image_0_tb_header img {
  display: block;
  width: 200px !important;
  height: auto !important;
}
/* Keep every chart row on the same five-column grid. The Divi export
   incorrectly offsets the third row by 482px on desktop. */
.et_pb_row_9.et_pb_row {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Original animated grid and orbit background, limited to the hero. */
body.home .entry-content div.et_pb_section.et_pb_section_0 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f4f8fb !important;
  background-image: none !important;
}
.home .entry-content .et_pb_section_0 > .et_pb_row {
  position: relative;
  z-index: 3;
}
.home .entry-content .et_pb_row_0.et_pb_row {
  padding-top: 0 !important;
  transform: translateY(18px);
}
.home .entry-content .et_pb_text_0 {
  display: none !important;
}
.home .entry-content .et_pb_text_1 .hero-title {
  margin: 22px 0 30px;
  padding: 0;
  color: #07111f !important;
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: clamp(50px, 4vw, 76px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.03em;
}
.home .entry-content .hero-title > span {
  display: block;
}
.home .entry-content .hero-title em {
  color: #188d92;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
.home .entry-content .et_pb_text_2 {
  color: #526678 !important;
  max-width: 680px;
  margin-top: 0 !important;
  font-size: clamp(16px, 1.05vw, 19px) !important;
  line-height: 1.55em !important;
  letter-spacing: .01em !important;
}
.home .entry-content .et_pb_text_2 p {
  padding-bottom: 0;
}
.home .entry-content .et_pb_button_0_wrapper {
  margin-top: 18px !important;
  margin-bottom: 18px !important;
}
.home .entry-content .et_pb_image_0 {
  padding-top: 28px !important;
}
.hero-grid-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid-motion::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 50% 50%, rgba(52,191,193,.17), transparent 34%),
    conic-gradient(from 0deg at 50% 50%, transparent, rgba(52,191,193,.12), transparent 26%, rgba(101,168,255,.10), transparent 52%);
  animation: ambientRotate 16s linear infinite;
}
.grid-plane {
  position: absolute;
  left: 50%;
  width: 180%;
  height: 150%;
  transform-origin: center;
  background-image:
    linear-gradient(rgba(52,191,193,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,191,193,.24) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 22%, rgba(0,0,0,.95) 58%, transparent 86%);
  mask-image: radial-gradient(ellipse at center, black 22%, rgba(0,0,0,.95) 58%, transparent 86%);
  filter: drop-shadow(0 0 12px rgba(52,191,193,.18));
}
.grid-plane--back {
  top: -70%;
  transform: translateX(-50%) rotateX(68deg) scale(1.42);
  background-size: 52px 52px;
  opacity: .55;
  animation: gridBack 7s linear infinite;
}
.grid-plane--front {
  bottom: -92%;
  transform: translateX(-50%) rotateX(66deg) scale(1.72);
  background-size: 72px 72px;
  opacity: .72;
  animation: gridFront 5.5s linear infinite;
}
.grid-orbit {
  position: absolute;
  left: 67%;
  top: 50%;
  border: 2px solid rgba(52,191,193,.36);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 28px rgba(52,191,193,.13), inset 0 0 22px rgba(52,191,193,.08);
}
.grid-orbit--one {
  width: 50%;
  aspect-ratio: 1;
  animation: orbitOne 8s ease-in-out infinite;
}
.grid-orbit--two {
  width: 70%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbitTwo 11s linear infinite;
}
@keyframes ambientRotate { to { transform: rotate(360deg); } }
@keyframes gridBack {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 52px, 52px 0; }
}
@keyframes gridFront {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}
@keyframes orbitOne {
  0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .35; }
  50% { transform: translate(-50%, -50%) scale(1.07); opacity: .9; }
}
@keyframes orbitTwo {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid-motion::before,
  .grid-plane,
  .grid-orbit {
    animation: none;
  }
}
@media (max-width: 980px) {
  .home .entry-content .et_pb_row_0.et_pb_row {
    transform: translateY(12px);
  }
  .home .entry-content .et_pb_text_1 .hero-title {
    font-size: clamp(42px, 7vw, 62px);
  }
}

/* Remove the fixed gallery height and reduce its lower whitespace by 60%. */
.home .entry-content .et_pb_section_4 {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.home .entry-content .et_pb_section_4.et_pb_section {
  padding-bottom: 36px !important;
}
@media (max-width: 767px) {
  .home .entry-content .et_pb_row_0.et_pb_row {
    transform: none;
  }
  .home .entry-content .et_pb_text_1 .hero-title {
    margin-top: 12px;
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.04em;
  }
  .home .entry-content .hero-title > span:nth-child(3) {
    white-space: nowrap;
  }
}

/* Statistics card: keep it below the hero and align every item evenly. */
.home .entry-content .et_pb_section_0.et_pb_section {
  margin-bottom: -76px !important;
}
.home .entry-content .et_pb_section_1 {
  position: relative !important;
  top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 42px !important;
  margin-bottom: 46px !important;
  padding: 38px 0 !important;
  transform: none !important;
}
.home .entry-content .et_pb_row_1.et_pb_row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 24px !important;
}
.home .entry-content .et_pb_row_1 > .et_pb_column {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 18px 24px !important;
  text-align: center !important;
  border-right: 1px solid #222 !important;
}
.home .entry-content .et_pb_row_1 > .et_pb_column:last-child {
  border-right: 0 !important;
}
.home .entry-content .et_pb_row_1 .et_pb_text {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
.home .entry-content .et_pb_row_1 .et_pb_text_3,
.home .entry-content .et_pb_row_1 .et_pb_text_5,
.home .entry-content .et_pb_row_1 .et_pb_text_7,
.home .entry-content .et_pb_row_1 .et_pb_text_9 {
  font-size: clamp(38.4px, 3.2vw, 57.6px) !important;
  line-height: 1 !important;
  margin-bottom: 20px !important;
}
.home .entry-content .et_pb_row_1 .et_pb_text_3 p,
.home .entry-content .et_pb_row_1 .et_pb_text_5 p,
.home .entry-content .et_pb_row_1 .et_pb_text_7 p,
.home .entry-content .et_pb_row_1 .et_pb_text_9 p {
  white-space: nowrap;
  padding: 0 !important;
}
.home .entry-content .et_pb_row_1 .et_pb_text_4,
.home .entry-content .et_pb_row_1 .et_pb_text_6,
.home .entry-content .et_pb_row_1 .et_pb_text_8,
.home .entry-content .et_pb_row_1 .et_pb_text_10 {
  font-size: clamp(17px, 1.4vw, 23px) !important;
  line-height: 1.45 !important;
}

@media (max-width: 980px) {
  .home .entry-content .et_pb_row_1.et_pb_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .entry-content .et_pb_row_1 > .et_pb_column:nth-child(2) {
    border-right: 0 !important;
  }
}

@media (max-width: 600px) {
  .home .entry-content .et_pb_row_1.et_pb_row {
    grid-template-columns: 1fr;
  }
  .home .entry-content .et_pb_row_1 > .et_pb_column {
    border-right: 0 !important;
    border-bottom: 1px solid #d3d3d3 !important;
  }
  .home .entry-content .et_pb_row_1 > .et_pb_column:last-child {
    border-bottom: 0 !important;
  }
}

/* Second-section headline, matched to the compact two-line reference. */
.home .entry-content .et_pb_text_12 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.home .entry-content .et_pb_text_12 h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #242424 !important;
  font-size: clamp(42px, 3.25vw, 60px) !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1.02em !important;
  white-space: nowrap;
}
.home .entry-content .et_pb_text_12 h2 i {
  font-weight: 300 !important;
}
.home .entry-content .et_pb_text_13 {
  display: none !important;
}
.home .entry-content .et_pb_text_14 {
  margin-top: 34px !important;
  max-width: 720px;
  color: #777 !important;
  font-size: clamp(16px, 1.15vw, 19px) !important;
  line-height: 1.65em !important;
  letter-spacing: .025em !important;
}

@media (max-width: 980px) {
  .home .entry-content .et_pb_text_12 h2 {
    font-size: clamp(38px, 6vw, 52px) !important;
    white-space: normal;
  }
}

/* WHY VELAN ACUITY: smaller image and safe text spacing. */
.home .entry-content .et_pb_row_2 {
  height: auto !important;
  max-height: none !important;
  align-items: center;
}
.home .entry-content .et_pb_image_1 {
  width: 70% !important;
  max-width: 70% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.home .entry-content .et_pb_image_1 .et_pb_image_wrap,
.home .entry-content .et_pb_image_1 .et_pb_image_wrap img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.home .entry-content .et_pb_column_7 {
  padding-left: clamp(24px, 3vw, 60px) !important;
  padding-right: clamp(40px, 6vw, 120px) !important;
}
.home .entry-content .et_pb_column_7 .et_pb_text,
.home .entry-content .et_pb_column_7 .et_pb_button_module_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 980px) {
  .home .entry-content .et_pb_image_1 {
    width: 82% !important;
    max-width: 82% !important;
  }
  .home .entry-content .et_pb_column_7 {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Compact feature cards: wider, shorter rectangles like the reference. */
.home .entry-content .et_pb_row_3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px !important;
  width: 86% !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}
.home .entry-content .et_pb_row_3 > .et_pb_column {
  display: flex !important;
  flex-direction: column;
  gap: 28px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.home .entry-content .et_pb_row_3 .et_pb_blurb {
  display: flex;
  align-items: center;
  width: 100% !important;
  height: auto !important;
  min-height: 215px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 24px 28px !important;
  border-radius: 0 22px 0 22px !important;
  font-size: 15px !important;
  line-height: 1.35em !important;
}
.home .entry-content .et_pb_row_3 .et_pb_blurb_content {
  width: 100%;
  max-width: none !important;
}
.home .entry-content .et_pb_row_3 .et_pb_main_blurb_image {
  margin-bottom: 16px !important;
}
.home .entry-content .et_pb_row_3 .et_pb_main_blurb_image .et_pb_image_wrap {
  width: 42px !important;
  max-width: 42px !important;
}
.home .entry-content .et_pb_row_3 .et_pb_module_header {
  padding-bottom: 10px !important;
  font-size: 18px !important;
  line-height: 1.15em !important;
}
.home .entry-content .et_pb_row_3 .et_pb_blurb_description,
.home .entry-content .et_pb_row_3 .et_pb_blurb_description p {
  font-size: 15px !important;
  line-height: 1.35em !important;
}

@media (max-width: 980px) {
  .home .entry-content .et_pb_row_3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 90% !important;
  }
}

@media (max-width: 640px) {
  .home .entry-content .et_pb_row_3 {
    grid-template-columns: 1fr;
  }
}

/* Terms & Conditions: clear the fixed navigation. */
body.page-id-1344 #main-content > article > .entry-content > .et-l--post > .et_builder_inner_content > .et_pb_section_0 {
  padding-top: clamp(170px, 12vw, 210px) !important;
}

/* Device-control gallery: rounded outer frame like the reference. */
.home .entry-content .et_pb_gallery_0,
.home .entry-content .et_pb_gallery_0 .et_pb_gallery_items {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Rounded corners for every chart popup opened from the icon grid. */
.area-outer-wrap .et_pb_section.popup,
.area-outer-wrap [id^="popup-"] {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Clinical testing heading: halve the empty space above it. */
.home .entry-content .et_pb_section_5.et_pb_section {
  margin-top: 42px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.home .entry-content .et_pb_section_5 .et_pb_row_6 {
  width: 90% !important;
  max-width: 1050px !important;
}
.home .entry-content .et_pb_section_5 .et_pb_text_18 h2 {
  font-size: clamp(44px, 4.2vw, 58px) !important;
  line-height: 1.08em !important;
  letter-spacing: 0 !important;
}
.home .entry-content .et_pb_section_5 .et_pb_text_18 h2:first-child {
  white-space: nowrap;
}

/* Reduce the empty area below the final row of clinical-test icons. */
.home .entry-content .et_pb_section_6 {
  max-height: 500px !important;
  overflow: visible !important;
}
.home .entry-content .et_pb_section_6 .et_pb_row_7,
.home .entry-content .et_pb_section_6 .et_pb_row_8,
.home .entry-content .et_pb_section_6 .et_pb_row_9 {
  transform: translateY(-45px);
}

/* Align the Devices image with the "A premium" heading. */
.home .entry-content .et_pb_image_29 {
  padding-top: 60px !important;
}

/* Contact section typography and bottom-row alignment. */
.home .entry-content .et_pb_text_69 h3 {
  font-size: 48px !important;
  line-height: 1.08em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.home .entry-content #contact .et_contact_bottom_container {
  transform: translateY(40px);
}

/* Keep every popup description centered inside its half of the window. */
.area-outer-wrap .popup .et_pb_row {
  display: flex !important;
  align-items: center !important;
}
.area-outer-wrap .popup .et_pb_column:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.area-outer-wrap .popup .et_pb_column:last-child .et_pb_text,
.area-outer-wrap .popup .et_pb_column:last-child .et_pb_text_inner,
.area-outer-wrap .popup .et_pb_column:last-child p {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.area-outer-wrap .popup .et_pb_column:last-child .et_pb_text {
  max-width: 320px !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.3em !important;
  transform: translateY(-24px);
}
.area-outer-wrap .popup .et_pb_column:last-child p {
  font-size: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 980px) {
  .home .entry-content .et_pb_image_29 {
    padding-top: 0 !important;
  }
  .home .entry-content .et_pb_section_5 .et_pb_text_18 h2:first-child {
    white-space: normal;
  }
  .home .entry-content .et_pb_section_6 {
    max-height: none !important;
  }
  .home .entry-content .et_pb_section_6 .et_pb_row_7,
  .home .entry-content .et_pb_section_6 .et_pb_row_8,
  .home .entry-content .et_pb_section_6 .et_pb_row_9 {
    transform: none;
  }
  .home .entry-content #contact .et_contact_bottom_container {
    transform: none;
  }
  .area-outer-wrap .popup .et_pb_row {
    display: block !important;
  }
  .area-outer-wrap .popup .et_pb_column:last-child .et_pb_text {
    max-width: 90% !important;
    transform: none;
  }
  body.page-id-1344 #main-content > article > .entry-content > .et-l--post > .et_builder_inner_content > .et_pb_section_0 {
    padding-top: 130px !important;
  }
}
