/* =========================================================
   HERO STAGE — layered camera between the two reference frames
   --u = 1 reference pixel (frame is 1672×941; phone frame 390×844)
   ========================================================= */
.scene--hero { background: #020309; overflow: hidden; }
.hs { position: absolute; left: 0; top: 0; width: 100%; height: 100%; --u: 1px; --p: 0; }
.hs__bleed {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 52% 40%, rgba(40, 86, 190, .18), transparent 60%),
    radial-gradient(40% 50% at 80% 45%, rgba(110, 70, 255, .12), transparent 70%),
    #020309;
}

.hl { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hl > .mp { width: 100%; height: 100%; position: relative; }
.hl img, .hl video { display: block; width: 100%; height: 100%; }

/* plate: the blue light column */
.hl--plate img { object-fit: cover; }
.hl--plate::after { /* breathing beam */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(12% 60% at 50.5% 45%, rgba(120, 170, 255, .22), transparent 70%);
  mix-blend-mode: screen; animation: beamBreath 6s ease-in-out infinite;
}
@keyframes beamBreath { 0%,100% { opacity: .55 } 50% { opacity: 1 } }

/* orb video: black → transparent */
.hl--orb { mix-blend-mode: screen; }
.hl--orb video { object-fit: contain; }
.hl--orb .orbit__core {
  position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 10, 50, .0) 40%, rgba(150, 120, 255, .25) 75%, transparent 76%);
}
.hl--orb .orbit__core span {
  font: 800 calc(var(--orbw, 500px) * .085)/1 'Clash Display', 'Sora', sans-serif; color: #fff; letter-spacing: -.02em;
  text-shadow: 0 0 18px rgba(170, 140, 255, .95), 0 0 46px rgba(110, 80, 255, .8);
}

/* person */
.hl--person img { object-fit: contain; object-position: center bottom; }
.hl--person .person__img { position: relative; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%);
  filter: drop-shadow(-6px 0 18px rgba(70, 130, 255, .22)); }
.hl--person .ghost { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.hl--person .ghost--r { filter: url(#f-r); }
.hl--person .ghost--c { filter: url(#f-c); }
.hl--person.glitching .ghost--r { animation: ghR .38s steps(2) both; }
.hl--person.glitching .ghost--c { animation: ghC .38s steps(2) both; }
.hl--person.glitching .person__img { animation: slice .38s steps(3) both; }
@keyframes ghR { 0% { opacity: .9; transform: translate(-14px, 2px) } 50% { opacity: .7; transform: translate(9px, -3px) } 100% { opacity: 0; transform: none } }
@keyframes ghC { 0% { opacity: .9; transform: translate(12px, -2px) } 50% { opacity: .7; transform: translate(-8px, 3px) } 100% { opacity: 0; transform: none } }
@keyframes slice {
  0% { clip-path: inset(12% 0 70% 0) } 25% { clip-path: inset(48% 0 30% 0) } 50% { clip-path: inset(0 0 55% 0) }
  75% { clip-path: inset(70% 0 4% 0) } 100% { clip-path: none }
}

/* stones (one full-frame transparent image, split into two depths) */
.hl--stoneL img { clip-path: inset(0 40% 0 0); object-fit: fill; }
.hl--stoneR img { clip-path: inset(0 0 0 88%); object-fit: fill; }
.hl--stoneL::after { /* violet edge pulse along the block's top edge */
  content: ""; position: absolute; left: 23%; top: 79.4%; width: 10%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #b18cff, #6e7bff, transparent); filter: blur(1px);
  animation: edgeRun 4.5s ease-in-out infinite; opacity: .9;
}
@keyframes edgeRun { 0% { transform: translateX(-120%); opacity: 0 } 30%, 70% { opacity: 1 } 100% { transform: translateX(160%); opacity: 0 } }

/* ---------- copy ---------- */
.hl--copy { pointer-events: none; }
.hl--copy a { pointer-events: auto; }
.hc__eyebrow {
  margin: 0; font: 600 calc(var(--u) * 14.6)/1 'Sora', 'Poppins', sans-serif; letter-spacing: .4em; text-transform: uppercase;
  color: #c4c7d6;
}
.hc__eyebrow s, .hc__stack s { text-decoration: none; color: #7d8199; margin: 0 .45em; }
.hc__title { margin: calc(var(--u) * 20) 0 0; font: 900 calc(var(--u) * 109)/calc(var(--u) * 97) 'Unbounded', 'Clash Display', sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
.hc__title .ln { display: block; white-space: nowrap; width: max-content; transform: scaleX(.77); transform-origin: 0 50%; }
.ln--silver {
  background: linear-gradient(178deg, #ffffff 0%, #f1f2f7 38%, #c4c8d6 62%, #f4f5fa 74%, #9fa4b6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 calc(var(--u) * 6) calc(var(--u) * 18) rgba(0, 0, 0, .55));
}
.ln--grad {
  background: linear-gradient(92deg, #a44dff 0%, #8a4dff 30%, #6f55ff 62%, #5b66ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(var(--u) * 26) rgba(130, 80, 255, .45));
  background-size: 200% 100%; animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 0 } to { background-position: 100% 0 } }
.hc__sub { margin: calc(var(--u) * 30) 0 0; font: 400 calc(var(--u) * 16.6)/1.28 'Sora', 'Poppins', sans-serif; color: #d2d5e4; max-width: none; }
.hc__sub em { font-style: normal; font-weight: 600; color: #7a6dff; background: linear-gradient(90deg, #8f6bff, #5f7bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hc__cta { display: inline-flex; align-items: center; gap: calc(var(--u) * 20); margin-top: calc(var(--u) * 42); color: #fff; text-decoration: none;
  font: 600 calc(var(--u) * 14)/1 'Sora', sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.hc__line { width: calc(var(--u) * 58); height: 1px; background: linear-gradient(90deg, #c9c9ff, #8b5cf6); }
.hc__ring { width: calc(var(--u) * 38); height: calc(var(--u) * 38); border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #7c5cff; color: #fff; font-size: calc(var(--u) * 17); box-shadow: 0 0 18px rgba(124, 92, 255, .55), inset 0 0 12px rgba(124, 92, 255, .35);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.hc__cta:hover .hc__ring { transform: rotate(-45deg) scale(1.08); background: rgba(124, 92, 255, .25); }
.hc__stack { margin-top: calc(var(--u) * 100); font: 500 calc(var(--u) * 13.4)/1.6 'Sora', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #cdd0de; }
.hc__stack p { margin: calc(var(--u) * 8) 0 0; }
.hc__stack s { margin: 0 .55em; }

/* ---------- glass cards ---------- */
.hl--card { z-index: 6; }
.hl--card > .mp { container-type: inline-size; }
.hs .hcard {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 7cqw; padding: 0 7cqw 0 8cqw;
  border-radius: 5cqw; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, rgba(48, 50, 72, .62), rgba(12, 13, 24, .78) 55%, rgba(18, 16, 40, .8));
  border: 1px solid rgba(220, 225, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(140, 110, 255, .35), 0 24px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(110, 80, 255, .16);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  transform: perspective(700px) rotateY(calc(var(--tilt, 0) * 1deg));
}
.hcard::before { /* sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%);
  transform: translateX(-100%); animation: sheen 6s ease-in-out infinite;
}
.hcard::after { /* glowing bottom edge like the reference */
  content: ""; position: absolute; left: 22%; right: 6%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #6f5bff, #8c6bff, transparent); box-shadow: 0 0 14px #7a5cff;
}
@keyframes sheen { 0%, 60% { transform: translateX(-100%) } 100% { transform: translateX(100%) } }
.hcard__ico {
  flex: 0 0 auto; width: 21cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 12cqw;
  color: #c7b5ff; border: 1px solid rgba(160, 130, 255, .45);
  background: radial-gradient(120% 120% at 30% 20%, rgba(139, 92, 246, .35), rgba(20, 16, 50, .9) 70%);
  box-shadow: 0 0 22px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.hcard__ico .ph-duotone::before { opacity: .45; }
.hcard__txt { flex: 1; min-width: 0; }
.hs .hcard h3 { margin: 0; font: 600 7.4cqw/1.15 'Sora', sans-serif; letter-spacing: -.01em; color: #fff; }
.hs .hcard p { margin: 2.6cqw 0 0; font: 400 5.2cqw/1.4 'Sora', sans-serif; color: #b9bdd0; }
.hcard__go {
  flex: 0 0 auto; align-self: flex-end; margin-bottom: 9cqw; width: 9.5cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 5cqw; color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  opacity: calc((var(--p) - .55) * 3); transform: translateX(calc((1 - var(--p)) * 10cqw));
}

.hs__caption { display: none; }

/* ---------- phone ---------- */
.hs.is-phone .hc__eyebrow { font-size: calc(var(--u) * 9.6); letter-spacing: .26em; }
.hs.is-phone .hc__title { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 50); line-height: calc(var(--u) * 44); }
.hs.is-phone .hc__sub { margin-top: calc(var(--u) * 16); font-size: calc(var(--u) * 13.4); line-height: 1.5; max-width: calc(var(--u) * 300); }
.hs.is-phone .hc__sub .d-only { display: none; }
.hs.is-phone .hc__cta { margin-top: calc(var(--u) * 18); font-size: calc(var(--u) * 11.5); gap: calc(var(--u) * 12); }
.hs.is-phone .hc__line { width: calc(var(--u) * 26); }
.hs.is-phone .hc__ring { width: calc(var(--u) * 34); height: calc(var(--u) * 34); font-size: calc(var(--u) * 15); }
.hs.is-phone .hc__stack { display: none; }
.hs.is-phone .hl--stoneR { display: none; }
.hs.is-phone .hcard { --tilt: 0 !important; gap: 6cqw; padding: 0 6cqw; }
.hs.is-phone .hs .hcard h3 { font-size: 9cqw; }
.hs.is-phone .hs .hcard p { font-size: 7cqw; }
.hs.is-phone .hcard__ico { width: 24cqw; font-size: 13cqw; }
.hs.is-phone .hcard__go { display: none; }

/* hide the legacy HUD scroll cue while the hero shows its own pillar cue */
@media (prefers-reduced-motion: reduce) { .hl--plate::after, .hcard::before, .ln--grad, .hl--stoneL::after { animation: none; } }

/* HUD stays out of the reference composition while the hero is on screen */
body:not(.past-hero) .hud__chapter, body:not(.past-hero) .hud__meta, body:not(.past-hero) .hud__progress { opacity: 0; transition: opacity .5s; }
.hs.is-phone .hl--plate { opacity: .85; }
