/* ============================================================
   BIRO 404 — R10 Google Profil video story hero (isolated)
   Page-specific hero for /google-profil/. Two engines share this
   sheet: autoplay (data-gp-mode="autoplay") and scroll-scrub
   (data-gp-mode="scroll"). Reuses the graphite+amber token system.
   Never used as the homepage hero. Reduced-motion / no-JS collapse
   to the dark start poster with copy + CTA fully available.
   Story arc: dark "hidden" start  ->  warm lit "found" finale.
   ============================================================ */

/* ---------- shell ---------- */
.gp-hero{position:relative;background:var(--bg);isolation:isolate}

/* autoplay: single viewport-tall stage, content peeks below */
.gp-hero--autoplay .gp-stage{
  position:relative;overflow:hidden;background:var(--bg);
  height:clamp(560px, calc(100svh - var(--nav-h)), 940px)}

/* scroll: sticky stage driven by a taller track */
.gp-hero--scroll .gp-track{height:250vh;position:relative}
.gp-hero--scroll .gp-stage{
  position:sticky;top:0;height:100svh;min-height:560px;overflow:hidden;background:var(--bg)}

/* ---------- media ---------- */
/* no z-index here on purpose: keep .gp-media out of its own stacking context
   so the nested status panel + progress layer above the scrim/overlay */
.gp-media{position:absolute;inset:0}
.gp-video,.gp-poster{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:66% center;display:block}
.gp-poster{z-index:0}
.gp-video{z-index:1;opacity:0;transition:opacity .6s var(--ease)}
.gp-hero.is-ready .gp-video{opacity:1}
/* reduced-motion / no-js: never show the video element, keep the dark poster */
.gp-hero.is-static .gp-video,html.no-js .gp-video{display:none!important}
/* reduced-motion (JS-driven): drop the moving narrative, keep copy + CTA + poster.
   (no-JS keeps the static message-01 panel, which reads true over the dark poster) */
.gp-hero.is-static .gp-status,
.gp-hero.is-static .gp-progress,
.gp-hero.is-static .gp-cue{display:none}

/* left scrim for legibility + top/bottom depth (keeps the shop visible on the right) */
.gp-scrim{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    linear-gradient(90deg, rgba(16,19,24,.95) 0%, rgba(16,19,24,.74) 32%, rgba(16,19,24,.14) 60%, rgba(16,19,24,.40) 100%),
    linear-gradient(180deg, rgba(16,19,24,.55) 0%, rgba(16,19,24,0) 22%, rgba(16,19,24,0) 50%, rgba(16,19,24,.66) 100%)}

/* ---------- copy overlay ---------- */
.gp-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center}
.gp-copy{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}
.gp-inner{max-width:38rem}
.gp-crumb{font-family:var(--font-mono);font-size:.74rem;color:var(--text-2);margin-bottom:1.1rem}
.gp-crumb a{color:var(--text-2)}.gp-crumb a:hover{color:var(--accent)}
.gp-kicker{display:inline-block;font-family:var(--font-mono);font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);margin-bottom:1rem}
.gp-title{font-family:var(--font-display);text-transform:uppercase;font-weight:400;line-height:.94;
  font-size:clamp(2.6rem,6.6vw,5.1rem);letter-spacing:.01em;color:var(--text);
  text-shadow:0 2px 46px rgba(0,0,0,.55)}
.gp-sub{color:var(--silver);font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.62;margin-top:1.15rem;
  max-width:32rem;text-shadow:0 1px 22px rgba(0,0,0,.55)}
.gp-cta{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;margin-top:1.8rem}
.gp-pkg{margin-top:1.3rem;font-family:var(--font-mono);font-size:.78rem;letter-spacing:.02em;color:var(--text-2)}
.gp-pkg b{color:var(--text);font-weight:500}
.gp-pkg .sep{color:var(--line-2);margin:0 .5rem}

/* ---------- status panel (discrete narrative, opposite the copy) ---------- */
.gp-status{position:absolute;z-index:4;right:clamp(1rem,4vw,2.4rem);bottom:clamp(2.4rem,7vh,4rem);
  width:min(19.5rem,72vw);padding:.85rem 1rem .95rem;border-radius:12px;
  background:rgba(12,15,19,.72);border:1px solid rgba(233,238,247,.10);
  box-shadow:0 18px 44px -22px rgba(0,0,0,.8);
  -webkit-backdrop-filter:saturate(1.05);backdrop-filter:saturate(1.05)}
.gp-status-head{display:flex;align-items:center;gap:.5rem;
  font-family:var(--font-mono);font-size:.66rem;letter-spacing:.12em;color:var(--text-2)}
.gp-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;
  box-shadow:0 0 9px 1px rgba(247,168,27,.7)}
.gp-idx{color:var(--accent)}
.gp-arrow{margin-left:auto;color:var(--text-2);opacity:.6}
.gp-msgwrap{position:relative;min-height:2.5em;margin-top:.5rem}
.gp-msg{margin:0;font-family:var(--font-body);font-weight:600;text-transform:uppercase;
  font-size:.92rem;line-height:1.28;letter-spacing:.02em;color:var(--text);
  transition:opacity .26s var(--ease),transform .26s var(--ease)}
.gp-msg.is-swap{opacity:0;transform:translateY(4px)}
.gp-status-bar{position:relative;height:2px;margin-top:.85rem;border-radius:2px;
  background:rgba(233,238,247,.10);overflow:hidden}
.gp-status-bar>span{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent-hi));
  box-shadow:0 0 10px rgba(247,168,27,.55);transition:width .2s linear}

/* ---------- bottom hairline progress ---------- */
.gp-progress{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:5;background:rgba(233,238,247,.07)}
.gp-progress>span{display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--accent),var(--accent-hi));box-shadow:0 0 12px rgba(247,168,27,.55)}

/* ---------- scroll cue (scroll mode only) ---------- */
.gp-cue{position:absolute;left:clamp(1.15rem,4vw,2.4rem);bottom:1.5rem;z-index:4;
  display:inline-flex;align-items:center;gap:.55rem;font-family:var(--font-mono);
  font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-2);pointer-events:none}
.gp-mouse{width:19px;height:30px;border:1.6px solid var(--line-2);border-radius:11px;position:relative;flex:none}
.gp-mouse::after{content:"";position:absolute;left:50%;top:6px;width:3px;height:6px;border-radius:2px;
  background:var(--accent);transform:translateX(-50%);animation:gpWheel 1.8s var(--ease) infinite}
@keyframes gpWheel{0%{opacity:0;transform:translate(-50%,0)}35%{opacity:1}70%{opacity:0;transform:translate(-50%,9px)}100%{opacity:0}}
.gp-hero--autoplay .gp-cue{display:none}

/* ============================================================
   MOBILE SPLIT (<=767px): top opaque copy block, bottom video
   panel. No H1/CTA over the moving street. Status lives in the
   video panel. Reserves room for the fixed contact callbar.
   ============================================================ */
@media (max-width:767px){
  .gp-hero--autoplay .gp-stage,
  .gp-hero--scroll .gp-stage{
    height:100svh;min-height:0;display:flex;flex-direction:column;
    padding-bottom:var(--callbar-space)} /* R24C: bilo 58px */
  .gp-hero--scroll .gp-track{height:200vh}

  /* TOP — copy (opaque, no video behind) */
  .gp-overlay{position:relative;inset:auto;order:1;flex:1 1 52%;min-height:0;
    display:flex;align-items:center;background:var(--bg);padding-top:calc(var(--nav-h) + 1.2vh)}
  .gp-inner{max-width:100%}
  .gp-title{font-size:clamp(2.15rem,9.6vw,3.2rem);line-height:.98}
  .gp-sub{max-width:100%;font-size:.98rem;line-height:1.55;margin-top:.8rem}
  .gp-cta{margin-top:1.3rem;gap:.7rem}
  .gp-cta .btn-lg{width:100%;justify-content:center}
  .gp-pkg{margin-top:1rem}

  /* BOTTOM — video panel (clear) */
  .gp-media{position:relative;inset:auto;order:2;flex:1 1 48%;min-height:0;width:100%;overflow:hidden}
  .gp-video,.gp-poster{object-position:64% center}
  .gp-scrim{background:linear-gradient(180deg,var(--bg) 0%,rgba(16,19,24,0) 20%,rgba(16,19,24,0) 66%,rgba(16,19,24,.45) 100%)}
  .gp-status{right:.7rem;left:.7rem;bottom:.7rem;width:auto;padding:.7rem .85rem .8rem}
  .gp-msg{font-size:.86rem}
  .gp-msgwrap{min-height:1.4em}
  .gp-cue{display:none}
  .gp-progress{z-index:6}
}
@media (max-width:400px){
  .gp-overlay{flex-basis:55%}.gp-media{flex-basis:45%}
  .gp-title{font-size:clamp(1.95rem,9vw,2.8rem)}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .gp-video{display:none!important}
  .gp-cue,.gp-progress{display:none}
  .gp-msg{transition:none}
  .gp-mouse::after{animation:none}
}
