/* ==========================================================================
   Research hero "Our research is coming soon" (measured on live nafas.com/research)
   Breakpoints: desktop >= 1440, tablet 810-1439.98, phone <= 809.98.
   - Full-bleed photo (cover, 50% 50%) in a clipped frame: 874 / 905 / 919px tall.
   - Content stack: 80% wide, centred; desktop pinned 87px from the bottom, tablet centred at 50%, phone at 52%.
   - Load appear: title, both paragraphs and "Trusted by" rise 50px -> 0 and fade 0 -> 1 together,
     0.6s cubic-bezier(.44,0,.56,1), started ~0.38s after navigation (js/10-hero.js adds .is-in).
   - Framer Ticker: direction left, 50px/s, linear, infinite, gap 80, padding 10, fade mask 25%
     (12.5% each side), paused while out of view (js/10-hero.js).
   ========================================================================== */

/* ---------- base (desktop >= 1440) ---------- */
.nf-res-hero {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; background-color: var(--nf-white); overflow: hidden; position: relative;
}
.nf-res-hero__frame { position: relative; width: 100%; height: 874px; overflow: hidden; flex: 0 0 auto; }
.nf-res-hero__bg { position: absolute; inset: 0; }
.nf-res-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.nf-res-hero__content {
  position: absolute; z-index: 1; left: 50%; bottom: 87px; transform: translateX(-50%);
  width: 80%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 60px;
  overflow: hidden;
}
.nf-res-hero__stack {
  width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 50px;
  overflow: hidden; position: relative;
}
.nf-res-hero__text {
  width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  overflow: hidden; position: relative;
}
.nf-res-hero__title-box, .nf-res-hero__para-box, .nf-res-hero__label-box {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-start;
  word-break: break-word; overflow-wrap: break-word;
}
.nf-res-hero__title-box { width: 100%; }
.nf-res-hero__para-box { width: 60%; }

.nf-res-hero__title {
  white-space: pre-wrap;
  font-family: var(--nf-font-medium); font-weight: 500; font-size: 52px; line-height: 1.1; letter-spacing: normal;
  color: var(--nf-green); text-align: center;
}
.nf-res-hero__para {
  white-space: pre-wrap;
  font-family: var(--nf-font-regular); font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: normal;
  color: var(--nf-white); text-align: left;
}
.nf-res-hero__link { color: var(--nf-green); text-decoration: none; }
@media (hover: hover) {
  .nf-res-hero__link:hover { color: var(--nf-white); text-decoration: underline; }
}
.nf-res-hero__link:focus-visible { color: var(--nf-white); text-decoration: underline; outline: none; }

/* "Trusted by" card */
.nf-res-hero__card {
  width: 100%; height: 254px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0;
  background-color: rgba(255, 255, 255, 0.35); border-radius: 32px; overflow: hidden; position: relative;
}
.nf-res-hero__label-row {
  width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px;
  padding: 0; overflow: clip; position: relative;
}
.nf-res-hero__label-box { width: 691px; }
.nf-res-hero__ticker { width: 100%; height: 162px; position: relative; flex: 0 0 auto; }
.nf-res-hero__clip {
  display: flex; place-items: center;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
}
.nf-res-hero__track {
  position: relative; display: flex; flex-direction: row; place-items: center; gap: 80px;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; list-style: none; text-indent: 0; will-change: transform;
}
.nf-res-hero__logo { position: relative; flex-shrink: 0; height: auto; }
.nf-res-hero__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nf-res-hero__logo--halodoc  { width: 193px; aspect-ratio: 3.99003 / 1; }
.nf-res-hero__logo--kkri     { width: 190px; aspect-ratio: 2.20994 / 1; }
.nf-res-hero__logo--uchicago { width: 215px; aspect-ratio: 2.83333 / 1; }
.nf-res-hero__logo--ui       { width: 222px; aspect-ratio: 3.26115 / 1; }
.nf-res-hero__logo--adb      { width: 296px; aspect-ratio: 4.85308 / 1; }
.nf-res-hero__logo--nihr     { width: 331px; aspect-ratio: 10.0392 / 1; }
.nf-res-hero__logo--ubra     { width: 320px; aspect-ratio: 6.4 / 1; }

/* ---------- tablet 810-1439.98 ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-hero__frame { height: 905px; }
  .nf-res-hero__content { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
  .nf-res-hero__title { font-size: 42px; }
  .nf-res-hero__para { font-size: 16px; }
  .nf-res-hero__label-row { padding: 0 0 0 32px; }
  .nf-res-hero__label-box { flex: 1 0 0px; width: 1px; }
}

/* ---------- phone <= 809.98 ---------- */
@media (max-width: 809.98px) {
  .nf-res-hero__frame { height: 919px; }
  .nf-res-hero__content { bottom: auto; top: 52%; transform: translate(-50%, -50%); }
  .nf-res-hero__para-box { width: 100%; }
  .nf-res-hero__title { font-size: 32px; }
  .nf-res-hero__para { font-size: 16px; }
  .nf-res-hero__label-row { padding: 0 0 0 24px; }
  .nf-res-hero__label-box { flex: 1 0 0px; width: 1px; }
}

/* ---------- load appear (JS adds .is-in) ---------- */
.nf-res-hero [data-res-hero-fade] {
  opacity: 0; transform: translateY(50px); will-change: transform;
  transition: opacity 0.6s cubic-bezier(0.44, 0, 0.56, 1), transform 0.6s cubic-bezier(0.44, 0, 0.56, 1);
}
.nf-res-hero [data-res-hero-fade].is-in { opacity: 1; transform: none; }
@media (scripting: none) { .nf-res-hero [data-res-hero-fade] { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nf-res-hero [data-res-hero-fade] { opacity: 1; transform: none; transition: none; }
}
