/* Averon Health — premium abstract landing directions V3/V4/V5 */

body.site-v3,
body.site-v4,
body.site-v5 {
  --hero-progress: 0;
  --hero-shift: 0px;
  background: var(--porcelain);
  overflow-x: clip;
}

body.site-v3 .fx-chips,
body.site-v4 .fx-chips,
body.site-v5 .fx-chips {
  display: none !important;
}

/* One real image, staged as a scroll-responsive hero. */
body.site-v3 .hero--photo,
body.site-v4 .hero--photo,
body.site-v5 .hero--photo {
  min-height: min(90svh, 860px);
  padding-top: clamp(104px, 14vh, 154px);
  background: var(--deep);
}

body.site-v3 .hero--photo .hero-bg,
body.site-v4 .hero--photo .hero-bg,
body.site-v5 .hero--photo .hero-bg {
  background-size: cover;
  background-position: center;
  filter: none;
  transform: translate3d(0, calc(var(--hero-progress) * 28px), 0) scale(1.035);
  will-change: transform;
}

body.site-v3 .hero--photo .hero-scrim,
body.site-v4 .hero--photo .hero-scrim,
body.site-v5 .hero--photo .hero-scrim {
  background: rgba(13, 34, 46, 0.18);
}

body.site-v3 .hero-copy,
body.site-v4 .hero-copy,
body.site-v5 .hero-copy {
  position: relative;
  z-index: 5;
}

body.site-v3 .hero-title,
body.site-v4 .hero-title,
body.site-v5 .hero-title {
  font-size: clamp(58px, 7.2vw, 104px);
  letter-spacing: -0.018em;
}

body.site-v3 .hero-sub,
body.site-v4 .hero-sub,
body.site-v5 .hero-sub {
  font-size: 17px;
  line-height: 1.72;
}

body.site-v3 .hero-stats,
body.site-v4 .hero-stats {
  background: rgba(6, 24, 34, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* V3 — horizontal refraction slices from the real hero asset. */
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-motion__slice {
  position: absolute;
  left: 38%;
  right: -3%;
  background-size: 100vw min(90svh, 860px);
  background-position: right top;
  opacity: 0.78;
  will-change: transform;
}

.site-v3 .hero-motion__slice--1 { top: 10%; height: 12%; transform: translateX(calc(var(--hero-shift) * -0.35)); }
.site-v3 .hero-motion__slice--2 { top: 25%; height: 10%; transform: translateX(calc(var(--hero-shift) * 0.55)); }
.site-v3 .hero-motion__slice--3 { top: 40%; height: 13%; transform: translateX(calc(var(--hero-shift) * -0.7)); }
.site-v3 .hero-motion__slice--4 { top: 58%; height: 11%; transform: translateX(calc(var(--hero-shift) * 0.45)); }
.site-v3 .hero-motion__slice--5 { top: 74%; height: 12%; transform: translateX(calc(var(--hero-shift) * -0.3)); }

.site-v3 .hero--photo .hero-scrim { background: rgba(6, 24, 34, 0.36); }
.site-v3 .hero--photo .hero-copy { max-width: 600px; }

/* V4 — a single spectral ribbon with deep negative space. */
.site-v4 .hero-motion { display: none; }
.site-v4 .hero--photo .hero-bg {
  background-position: 58% center;
  transform: translate3d(0, calc(var(--hero-progress) * 34px), 0) scale(calc(1.04 + var(--hero-progress) * 0.025));
}
.site-v4 .hero--photo .hero-scrim { background: rgba(5, 25, 36, 0.13); }
.site-v4 .hero--photo .hero-copy { max-width: 590px; }

/* V5 — a light editorial field opening into a vertical aperture. */
.site-v5 .hero--photo {
  background: var(--porcelain);
  color: var(--body);
}
.site-v5 .hero--photo .hero-bg {
  background-position: center;
  transform: translate3d(calc(var(--hero-progress) * 8px), calc(var(--hero-progress) * 20px), 0) scale(1.025);
}
.site-v5 .hero--photo .hero-scrim { background: rgba(248, 248, 248, 0.06); }
.site-v5 .hero-motion { display: none; }
.site-v5 .hero--photo .hero-copy { max-width: 585px; }
.site-v5 .hero-title,
.site-v5 .hero-sub strong { color: var(--ink-deep); }
.site-v5 .hero-sub { color: var(--body); max-width: 43ch; }
.site-v5 .kicker { color: var(--petrol); }
.site-v5 .hero-reg { color: rgba(35, 36, 42, 0.52); }
.site-v5 .text-link--light { color: var(--ink-deep); border-bottom-color: rgba(35, 36, 42, 0.35); }
.site-v5 .nav.on-dark,
.site-v5 .nav.on-dark.is-scrolled { background: rgba(248, 248, 248, 0.94); }
.site-v5 .nav.on-dark .nav-logo-svg,
.site-v5 .nav.on-dark .nav-trigger,
.site-v5 .nav.on-dark .nav-link,
.site-v5 .nav.on-dark .btn-ghost { color: var(--ink-deep); }
.site-v5 .nav.on-dark .btn-ghost { border-color: rgba(35, 36, 42, 0.24); }
.site-v5 .nav.on-dark .nav-burger span { background: var(--ink-deep); }
.site-v5 .hero-stats {
  background: rgba(248, 248, 248, 0.9);
  border-color: rgba(35, 36, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-v5 .hs-num { color: var(--ink-deep); }
.site-v5 .hs-cap { color: rgba(35, 36, 42, 0.62); }
.site-v5 .hs-item + .hs-item { border-color: rgba(35, 36, 42, 0.12); }

/* A calmer content rhythm; the product itself becomes the visual proof. */
body.site-v3 .section,
body.site-v4 .section,
body.site-v5 .section {
  padding-block: clamp(74px, 8vw, 118px);
}

body.site-v3 .marquee-band,
body.site-v4 .marquee-band,
body.site-v5 .marquee-band {
  padding-block: 15px;
}

body.site-v3 #what-you-get .pillar-grid,
body.site-v4 #what-you-get .pillar-grid,
body.site-v5 #what-you-get .pillar-grid {
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 62px);
}

body.site-v3 #what-you-get .pillar-copy,
body.site-v4 #what-you-get .pillar-copy,
body.site-v5 #what-you-get .pillar-copy {
  order: 1;
  max-width: 780px;
}

body.site-v3 #what-you-get .pillar-visual,
body.site-v4 #what-you-get .pillar-visual,
body.site-v5 #what-you-get .pillar-visual {
  order: 2;
}

/* One authoritative screen plane, two genuine product states. */
.product-theatre {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--deep);
  box-shadow: 0 34px 80px -42px rgba(7, 26, 36, 0.58);
  opacity: 1;
  transform: none;
}

.product-theatre.is-in { opacity: 1; transform: none; }

.product-theatre__bar {
  min-height: 64px;
  padding: 12px clamp(16px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-theatre__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.product-theatre__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.product-tab:hover,
.product-tab:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .24); }
.product-tab.is-active { color: var(--deep); background: #fff; }

.product-theatre__screen {
  position: relative;
  height: clamp(430px, 57vw, 690px);
  overflow: hidden;
  background: #f7f7f6;
}

.product-theatre__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .22s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.product-theatre:hover .product-theatre__screen img { transform: scale(1.012); }
.product-theatre__screen img.is-switching { opacity: 0; }

.product-theatre__caption {
  padding: 13px clamp(16px, 2.6vw, 32px) 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
}

.site-v4 .product-theatre {
  box-shadow: 0 40px 100px -46px rgba(6, 29, 42, .72);
}

.site-v5 .product-theatre {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(13, 34, 46, .08), 0 36px 82px -48px rgba(13, 34, 46, .42);
}

/* A second authentic UI crop, treated as an editorial object. */
.advice-frame {
  margin: 0;
  background: var(--deep);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 74px -42px rgba(7, 26, 36, .54);
}

.advice-frame img {
  display: block;
  width: 100%;
  height: clamp(380px, 43vw, 560px);
  object-fit: cover;
  object-position: 58% top;
}

.advice-frame figcaption {
  padding: 12px 16px 15px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* Remove the remaining stock-photo panel and the tech-network canvas. */
body.site-v3 .consult-grid-v2,
body.site-v4 .consult-grid-v2,
body.site-v5 .consult-grid-v2 {
  grid-template-columns: 1fr;
}

body.site-v3 .consult-grid-v2 > .photo-panel,
body.site-v4 .consult-grid-v2 > .photo-panel,
body.site-v5 .consult-grid-v2 > .photo-panel,
body.site-v3 .atlas-stage,
body.site-v4 .atlas-stage,
body.site-v5 .atlas-stage {
  display: none;
}

body.site-v3 .atlas-grid,
body.site-v4 .atlas-grid,
body.site-v5 .atlas-grid {
  grid-template-columns: 1fr;
}

/* Closing image echoes the hero, keeping the page to three visual moments. */
body.site-v3 .final,
body.site-v4 .final,
body.site-v5 .final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center 70%;
  padding-block: clamp(88px, 10vw, 144px);
}

body.site-v3 .final::before,
body.site-v4 .final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 248, 248, .84);
}

.site-v5 .final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 248, 248, .66);
}

@media (max-width: 900px) {
  body.site-v3 .hero--photo,
  body.site-v4 .hero--photo,
  body.site-v5 .hero--photo {
    min-height: 760px;
    padding-top: 96px;
  }

  body.site-v3 .hero--photo .hero-bg,
  body.site-v4 .hero--photo .hero-bg { background-position: 64% center; }
  body.site-v5 .hero--photo .hero-bg { background-position: 68% center; }

  .site-v3 .hero-motion__slice {
    left: 18%;
    right: -20%;
    background-size: auto 760px;
  }

  .site-v5 .hero--photo .hero-scrim { background: rgba(248, 248, 248, .54); }

  .product-theatre__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-theatre__tabs {
    width: 100%;
    overflow-x: auto;
  }

  .product-theatre__screen { height: clamp(300px, 73vw, 480px); }
  .advice-frame img { height: clamp(320px, 76vw, 470px); }
}

@media (max-width: 560px) {
  body.site-v3 .hero--photo,
  body.site-v4 .hero--photo,
  body.site-v5 .hero--photo {
    min-height: 720px;
    padding-top: 82px;
  }

  body.site-v3 .hero-title,
  body.site-v4 .hero-title,
  body.site-v5 .hero-title { font-size: clamp(50px, 14.5vw, 68px); }

  body.site-v3 .hero-sub,
  body.site-v4 .hero-sub,
  body.site-v5 .hero-sub { font-size: 15px; }

  body.site-v3 .hero--photo > .container,
  body.site-v4 .hero--photo > .container,
  body.site-v5 .hero--photo > .container,
  body.site-v3 .hero-copy,
  body.site-v4 .hero-copy,
  body.site-v5 .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.site-v3 .kicker,
  body.site-v4 .kicker,
  body.site-v5 .kicker {
    display: block;
    max-width: 100%;
    line-height: 1.7;
    white-space: normal;
  }

  body.site-v3 .hero-sub,
  body.site-v4 .hero-sub,
  body.site-v5 .hero-sub,
  body.site-v3 .hero-reg,
  body.site-v4 .hero-reg,
  body.site-v5 .hero-reg {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.site-v3 .hero-ctas,
  body.site-v4 .hero-ctas,
  body.site-v5 .hero-ctas {
    display: grid;
    width: 100%;
    max-width: 100%;
    justify-items: start;
  }

  body.site-v3 .hero-ctas .btn,
  body.site-v4 .hero-ctas .btn,
  body.site-v5 .hero-ctas .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  body.site-v3 .nav-inner,
  body.site-v4 .nav-inner,
  body.site-v5 .nav-inner { position: relative; gap: 12px; }

  body.site-v3 .nav-logo-svg,
  body.site-v4 .nav-logo-svg,
  body.site-v5 .nav-logo-svg {
    width: min(190px, 58vw);
    height: auto;
  }

  body.site-v3 .nav-burger,
  body.site-v4 .nav-burger,
  body.site-v5 .nav-burger {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: 20px;
    margin-left: 0;
    transform: translateY(-50%);
    flex: 0 0 auto;
  }

  .site-v3 .hero--photo .hero-scrim,
  .site-v4 .hero--photo .hero-scrim { background: rgba(6, 24, 34, .52); }
  .site-v5 .hero--photo .hero-scrim { background: rgba(248, 248, 248, .68); }

  .product-tab { flex: 1 0 auto; }
  .product-theatre__screen { height: 300px; }
  .product-theatre__screen img { object-position: 48% top; }
  .advice-frame img { height: 320px; object-position: 58% top; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--photo .hero-bg,
  .hero-motion__slice,
  .product-theatre,
  .product-theatre__screen img {
    transform: none !important;
    transition: none !important;
  }
  .product-theatre { opacity: 1; }
}
