/* NeuColl V39: V38 baseline with the confirmed 30 August client revisions. */

.neucoll-v39 {
  --v39-cream: #f1eee4;
  --v39-cream-deep: #e7e1d3;
  --v39-forest: #123b31;
  --v39-blue: #0b55c8;
  --v39-blue-soft: #8cb8e7;
}

.neucoll-v39 .v8-cinema,
.neucoll-v39 .v8-cinema-stage {
  background: var(--v39-cream) !important;
  color: var(--v39-forest);
}

.neucoll-v39 .v8-film-identity {
  background:
    radial-gradient(circle at 78% 46%, rgba(112, 163, 219, .22), transparent 30%),
    radial-gradient(circle at 20% 76%, rgba(255, 255, 255, .64), transparent 34%),
    linear-gradient(122deg, #f7f5ee 0%, var(--v39-cream) 50%, var(--v39-cream-deep) 100%) !important;
}

.neucoll-v39 .v8-cinema-grain {
  opacity: .035;
  mix-blend-mode: multiply;
}

.neucoll-v39 .v8-cinema-vignette {
  background: radial-gradient(ellipse at center, transparent 42%, rgba(87, 77, 57, .05) 82%, rgba(87, 77, 57, .12) 125%);
}

.neucoll-v39 .v8-film-grid {
  opacity: .35;
  background-image:
    linear-gradient(rgba(11, 85, 200, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 85, 200, .075) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, black, transparent 88%);
}

.neucoll-v39 .v8-film-kicker {
  color: rgba(18, 59, 49, .62);
}

.neucoll-v39 .v8-film-kicker span {
  border-color: rgba(11, 85, 200, .28);
  color: var(--v39-blue);
}

.neucoll-v39 .v8-film-title {
  color: var(--v39-forest);
}

/* Keep the lowercase descender in “Collagen” inside the cinematic title mask.
   The negative margin preserves the intentionally tight distance to “Type II.”. */
.neucoll-v39 .v8-film-title > span:first-child {
  line-height: 1;
  padding-bottom: .12em;
  margin-bottom: -.17em;
}

.neucoll-v39 .v8-film-title > span:first-child > i {
  line-height: 1;
}

.neucoll-v39 .v8-film-title .v8-film-title-light {
  color: var(--v39-blue);
}

.neucoll-v39 .v8-film-lead {
  color: rgba(18, 59, 49, .72);
}

.neucoll-v39 .v8-film-routes a {
  border-top-color: rgba(11, 85, 200, .26);
  color: var(--v39-forest);
}

.neucoll-v39 .v8-film-routes a:hover {
  border-top-color: var(--v39-blue);
  color: var(--v39-blue);
}

.neucoll-v39 .v8-film-routes small {
  color: rgba(18, 59, 49, .54);
}

.neucoll-v39 .v8-orbit {
  border-color: rgba(11, 85, 200, .15);
}

.neucoll-v39 .v8-helix {
  filter: none;
}

.neucoll-v39 .v39-foundation-image {
  width: 100%;
  min-height: 650px;
  aspect-ratio: auto;
  background: #e8edf2;
}

.neucoll-v39 .v39-foundation-layout {
  grid-template-columns: minmax(0, 1fr);
}

.neucoll-v39 .v39-foundation-layout > *,
.neucoll-v39 .v39-foundation-layout h2,
.neucoll-v39 .v39-foundation-layout p {
  min-width: 0;
  max-width: 100%;
}

.neucoll-v39 .v39-foundation-image > img {
  position: absolute;
  inset: 0;
}

/* The Font Awesome bone symbol is a filled glyph. The generic navigation
   SVG rule is intentionally stroke-based for the factory illustration, so
   restore fill rendering only for this menu icon. */
.neucoll-v39 .nav-mega-icon > svg.fa-bone,
.neucoll-v39 .nav-mega-icon > svg.fa-bone use {
  fill: currentColor !important;
  stroke: none !important;
}

@media (max-width: 1023px) {
  .neucoll-v39 .v39-foundation-image {
    min-height: 560px;
  }

  .neucoll-v39 #formula > .relative > .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .neucoll-v39 #formula > .relative > .grid > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  /* Keep centered mega menus anchored beneath their trigger while the
     inherited reveal animation changes the vertical offset. */
  .neucoll-v39 .nav-group > .nav-dropdown[class~="left-1/2"] {
    transform: translate(-50%, 12px);
  }

  .neucoll-v39 .nav-group:hover > .nav-dropdown[class~="left-1/2"],
  .neucoll-v39 .nav-group:focus-within > .nav-dropdown[class~="left-1/2"] {
    transform: translate(-50%, 0);
  }

  .neucoll-v39 .v39-foundation-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }
}

@media (max-width: 767px) {
  .neucoll-v39 .v8-film-identity {
    background:
      radial-gradient(circle at 74% 24%, rgba(112, 163, 219, .18), transparent 24%),
      linear-gradient(155deg, #f8f6ef 0%, var(--v39-cream) 58%, #e8e2d5 100%) !important;
  }

  .neucoll-v39 .v8-film-grid {
    opacity: .22;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
  }

  .neucoll-v39 .v8-film-routes {
    gap: .9rem;
    margin-right: .125rem;
    margin-left: .125rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .neucoll-v39 .v39-foundation-image {
    min-height: 0;
    aspect-ratio: 648 / 878;
  }

  .neucoll-v39 .v39-foundation-image > img {
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .neucoll-v39 .v8-helix {
    filter: none;
  }
}
