/* hero: the header and the hero text on one light paper band, the approved video behind it,
   and the real figure below the band. Builds on /assets/css/style.css and the pages/nav sheets:
   the same tokens, the same light-section styles (.btn-light, .status, .prod-name, .legend). */

/* ---------- the band: header + hero text, video behind, paper veil over it ---------- */
.hero-paper{position:relative;isolation:isolate;overflow:hidden;min-height:88vh;display:flex;flex-direction:column;background:#EAE5DC;color:#24211E}
.hero-paper>.wrap{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;width:100%}
.hero-video{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:right center}
.hero-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#EAE5DC 0%,#EAE5DCee 45%,#EAE5DC00 78%)}
/* the text column keeps its copy, on the left */
.hero-paper .hero-grid{display:block;max-width:40rem;margin:auto 0;padding:44px 0}

/* ---------- paper: the dark-only variants, restyled from the light-section styles ---------- */
.hero-paper .brand{color:#24211E}
.hero-paper .lede{color:#4a453f}
.hero-paper .lede-big{color:#24211E}
.hero-paper .clients{color:#4a453f}
.hero-paper .clients b{color:#24211E}
.hero-paper .prod-name-dark{color:#24211E}
.hero-paper .status-dark{background:#F7F3EC;color:#4a453f;border-color:rgba(36,33,30,.16)}
.hero-paper .cap-dark{color:#4a453f}
.hero-paper .btn-light{background:#F7F3EC;color:#24211E;border-color:rgba(36,33,30,.14)}
.hero-paper .btn-light:hover{background:#fff}
.hero-paper .top nav a{color:#4a453f}
.hero-paper .top nav a:hover{color:#24211E}
.hero-paper .top nav a[aria-current="page"]{color:#24211E}
.hero-paper .top nav .btn{background:#F7F3EC;border-color:rgba(36,33,30,.2);color:#24211E}
.hero-paper .top nav .btn:hover{background:#fff}
.hero-paper .top nav .menu summary{color:#4a453f}
.hero-paper .top nav .menu summary:hover,.hero-paper .top nav .menu[open] summary{color:#24211E}
/* the menu panel wears the band's own colour, a rule between the items */
.hero-paper .top nav .menu-list{background:#EAE5DC;--menu-rule:rgba(36,33,30,.14)}
/* the focus ring has to read on the paper band: --down (#2E6E8E) on #EAE5DC is 4.5:1,
   while the global --down-d (#5BA3C4) only reaches 2.2:1 there */
.hero-paper :focus-visible{outline-color:var(--down)}

/* ---------- the figure, below the band ---------- */
.real-figure .wrap{max-width:720px}
.real-figure .hero-plot,.real-figure .hero-shot{margin:0 auto}
/* the figure keeps the dark treatment it had inside the hero */
.real-figure .pt-up{fill:var(--up-d)}
.real-figure .pt-down{fill:var(--down-d)}
.real-figure .pt-ns{fill:var(--ns-d);fill-opacity:.5}
.real-figure .ax{stroke:var(--on-dark2)}
.real-figure .grid{stroke:rgba(255,255,255,.09)}
.real-figure .thr{stroke:var(--on-dark2)}
.real-figure .tick,.real-figure .axl{fill:var(--on-dark2)}
.real-figure .lbl{fill:var(--on-dark);stroke:var(--g2)}
.real-figure .lead-ln{stroke:var(--on-dark2)}
.real-figure .legend{color:var(--on-dark2)}
.real-figure .legend i.up{background:var(--up-d)}
.real-figure .legend i.down{background:var(--down-d)}
.real-figure .legend i.ns{background:var(--ns-d)}

/* ---------- the poster each page falls back to when motion is off ---------- */
.hero-home{--hero-poster:url('/assets/media/home.jpg')}
.hero-rnaseq{--hero-poster:url('/assets/media/rnaseq.jpg')}
.hero-orasis{--hero-poster:url('/assets/media/orasis.jpg')}
.hero-pubvia{--hero-poster:url('/assets/media/pubvia.jpg')}

/* ---------- no motion: the poster becomes the background of the band ---------- */
@media (prefers-reduced-motion:reduce){
  .hero-paper .hero-video{display:none}
  .hero-paper{background-image:var(--hero-poster);background-size:cover;background-position:right center;background-repeat:no-repeat}
}

/* ---------- phone: the video stays behind, the veil turns vertical ---------- */
@media (max-width:720px){
  .hero-paper{min-height:auto}
  .hero-video{object-position:70% center}
  .hero-veil{background:linear-gradient(180deg,#EAE5DC 0%,#EAE5DCf2 80%,#EAE5DC00 100%)}
  /* the band ends right under the text here, so the pause control gets a row of its own */
  .hero-paper .hero-grid{padding:28px 0 72px}
}
