/* Hero background loop (added 14 Nov 2026). Loaded after site.css. */
.hero.has-media { isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0A0A0A; }
.hero-media picture, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media img, .hero-media video { left: 22%; width: 78%; object-fit: cover; object-position: 100% 50%; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media.playing video { opacity: 1; }
/* Keeps the area behind the headline and buttons dark and even; fades into the page at the bottom. */
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0A0A0A 0%, #0A0A0A 24%, rgba(10,10,10,.93) 43%, rgba(10,10,10,.5) 58%, rgba(10,10,10,.1) 78%, rgba(10,10,10,.2) 100%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 16%, rgba(10,10,10,0) 74%, #0A0A0A 100%); }
.hero.has-media .wrap { position: relative; }
.hero.has-media .hero-copy { max-width: 620px; }
.hero.has-media .lead { color: #B9B6B1; }

/* Real projects -> Digital securities -> Investor access */
.hero-path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 38px 0 0; padding: 0; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8A8A8A; }
.hero-path li { display: inline-flex; align-items: center; gap: 14px; transition: color .6s ease; }
.hero-path li + li::before { content: ""; width: 22px; height: 1px; background: #3A3A3A; }
.hero-path li i { width: 6px; height: 6px; border-radius: 50%; background: #3A3A3A; transition: background .6s ease, box-shadow .6s ease; margin-right: -6px; }
.hero-path li.on { color: #EDEAE6; }
.hero-path li.on i { background: #FF8A3D; box-shadow: 0 0 0 4px rgba(226,101,15,.18); }

/* Pause control and image credit */
.hero-foot { position: absolute; right: clamp(20px,5vw,48px); bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.hero-credit { font-size: .74rem; color: #8A8A8A; margin: 0; text-align: right; max-width: 34ch; line-height: 1.35; }
.hero-toggle { display: inline-flex; align-items: center; gap: 8px; flex: none; background: rgba(10,10,10,.72); border: 1px solid #262626; color: #EDEAE6; border-radius: 999px; padding: 8px 14px; font-size: .8rem; cursor: pointer; }
.hero-toggle:hover { border-color: #E2650F; color: #FF8A3D; }
.hero-toggle:focus-visible, .btn:focus-visible, .navlink:focus-visible { outline: 2px solid #FF8A3D; outline-offset: 3px; }
.hero-toggle[hidden] { display: none; }

/* Small hover lift on primary buttons */
.btn { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }

/* Phones and narrow tablets: the loop becomes a framed panel under the text, so nothing sits behind the copy. */
@media (max-width: 820px) {
  .hero.has-media { flex-direction: column; align-items: stretch; gap: 28px; padding-bottom: 28px; }
  .hero-media { position: relative; inset: auto; z-index: 0; order: 2; width: auto; margin: 0 clamp(20px,5vw,48px); aspect-ratio: 1 / 1; border: 1px solid #1E1E1E; border-radius: 16px; }
  .hero-media img, .hero-media video { left: 0; width: 100%; object-position: 50% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10,10,10,.18) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 70%, rgba(10,10,10,.55) 100%); }
  .hero-foot { position: static; order: 3; margin: 0 clamp(20px,5vw,48px); justify-content: space-between; }
  .hero-credit { text-align: left; }
  .hero-path { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .hero-toggle { display: none; }
  .hero-path li, .hero-path li i, .btn { transition: none; }
  .btn:hover { transform: none; }
}
