/* ==========================================================
   JUST BLOOD - Homepage + linked pages (v16)
   - Homepage has no top navigation (navigation only at the bottom)
   - Linked pages have a "Back to Home" button in the upper-left
   ========================================================== */

/* Homepage: no fixed header, so anchors need no offset */
html.no-top-nav { scroll-padding-top: 0; }

/* ---------- Placeholders (sections waiting for assets) ---------- */
.ph-section {
  padding: 48px var(--gutter);
  background: #000;
  border-bottom: 1px solid var(--line);
}
.ph-box {
  max-width: 900px; margin: 0 auto; padding: 40px 28px;
  border: 2px dashed #3a5562; text-align: center; color: var(--muted);
}
.ph-tag { font-size: 11px; letter-spacing: .2em; font-weight: 700; color: #ff4b57; margin: 0 0 12px; }
.ph-box h2 { color: var(--white); font-size: clamp(22px, 4vw, 34px); line-height: 1.15; margin: 0 0 12px; }
.ph-box p { margin: 0; font-size: 15px; line-height: 1.6; }
#film-hero .ph-box { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Amplification technology heading ---------- */
.amp-head { background: #000; text-align: center; padding: 64px var(--gutter) 8px; }
.amp-head h2 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
html.no-top-nav .deck-slide { min-height: 0; }
@media (min-width: 900px) { html.no-top-nav .deck-slide { padding-top: 56px; padding-bottom: 64px; } }

/* ---------- Explore (bottom navigation) ---------- */
.explore {
  padding: 72px calc(var(--gutter) + var(--safe-right)) 80px calc(var(--gutter) + var(--safe-left));
  background: radial-gradient(ellipse at 50% 40%, #071f2e 0%, #02070a 60%, #000 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}
.explore .eyebrow { letter-spacing: .16em; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.explore h2 { font-size: clamp(32px, 6vw, 54px); font-weight: 700; margin: 0 0 36px; }
.explore-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px; margin: 0 auto;
}
@media (min-width: 760px) { .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.explore-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 150px; padding: 22px 12px;
  background: linear-gradient(160deg, #06202d, #020b11);
  border: 1px solid #1c4757; border-radius: 14px;
  color: var(--white); text-decoration: none;
  box-shadow: 0 0 0 rgba(41, 197, 214, 0);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.explore-tile:hover, .explore-tile:focus-visible {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 28px rgba(0, 229, 255, .28);
  transform: translateY(-3px);
}
.explore-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  color: var(--cyan-bright);
  background: radial-gradient(circle, rgba(0, 229, 255, .18), rgba(0, 229, 255, 0) 70%);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, .55));
}
.explore-icon svg { width: 40px; height: 40px; }
.explore-label { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
@media (min-width: 760px) { .explore-tile { min-height: 180px; } .explore-icon { width: 76px; height: 76px; } .explore-icon svg { width: 46px; height: 46px; } }

/* ---------- Simple footer ---------- */
.simple-footer {
  background: #000; border-top: 1px solid #0e1b21;
  padding: 36px var(--gutter) calc(30px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.simple-footer .footer-logo { display: inline-flex; margin: 0; }
.simple-footer .logo-img { height: 28px; }
.footer-back { color: var(--cyan); text-decoration: none; font-weight: 700; font-size: 14px; }
.footer-back:hover { color: var(--white); }

/* ---------- Back to Home bar (linked pages) ---------- */
.back-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line);
}
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 12px;
  background: var(--cyan-bright); color: #001116;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: 6px;
  transition: background-color .2s ease;
}
.back-home svg { width: 18px; height: 18px; }
.back-home:hover { background: var(--white); }
.back-logo { display: inline-flex; }
.back-logo .logo-img { height: 22px; }
@media (min-width: 900px) { .back-logo .logo-img { height: 26px; } }

/* Ryan's exact sections: keep their content clear of the fixed bar */
html.has-back-bar .ryan-cancer, html.has-back-bar .ryan-clia { padding-top: calc(var(--header-h) + var(--safe-top)); }
/* Finance / Validation / Nanotainer pages start below the bar */
html.has-back-bar .chapter-page .page-hero { padding-top: calc(var(--header-h) + var(--safe-top) + 40px); }


/* ---------- Footer (same on homepage and all subpages) ---------- */
.foot17 { background:#000; text-align:center; padding:20px 0 0; }
.foot-logo { display:inline-flex; }
.foot-logo .logo-img { height:24px; width:auto; }
.foot-top { display:block; margin:12px auto 32px; width:max-content; color:#2fa8ff; font-size:13px; letter-spacing:.04em; text-decoration:underline; text-underline-offset:3px; }
.foot-top:hover { color:#fff; }
.si-strip { display:block; width:100%; height:auto; }
