/* ═══════════════════════════════════════════════════════════
   CSIwild — Cinematic hero intro
   map of the world → four continents survive → they morph into
   the cheetah's spots / landmasses of the logo → full logo
   resolves → the dog springs out of the cheetah's tear-line and
   runs left, gathering its world (background) as it goes → it
   lands on the left, logo on the right: the split hero.
═══════════════════════════════════════════════════════════ */

/* While the intro plays, lock scroll + hide the chrome */
body.intro-lock{overflow:hidden;height:100vh}
body.intro-lock nav{transform:translateY(-120%);opacity:0;pointer-events:none}
nav{transition:transform .9s cubic-bezier(.22,1,.36,1) .15s,opacity .7s ease .15s}

/* The page sits ready underneath; reveal it on resolve */
body.intro-lock .hero,
body.intro-lock .alert-marquee{visibility:hidden}

#intro{
  position:fixed;inset:0;z-index:1200;overflow:hidden;display:block;
  background:#02060a;
  animation:introFade .7s ease both;
  --ease:cubic-bezier(.22,1,.36,1);
}
@keyframes introFade{from{opacity:0}to{opacity:1}}
#intro.gone{display:none}

/* ── INTRO FILM ─────────────────────────────────────────── */
#intro .intro-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  background:#02060a;
}

/* ── SKIP / REPLAY ───────────────────────── */
#intro .skip{
  position:absolute;right:1.6rem;bottom:1.4rem;z-index:5;
  font-family:var(--font-sub);font-size:.66rem;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(255,255,255,.55);background:none;border:none;
  cursor:pointer;padding:.5rem .2rem;transition:color .2s;
}
#intro .skip:hover{color:#fff}

.replay-intro{
  position:fixed;left:1.2rem;bottom:1.2rem;z-index:140;
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-sub);font-size:.62rem;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(70,82,58,.7);
  background:rgba(245,248,242,.82);border:1px solid rgba(40,55,38,.18);border-radius:2px;
  padding:.55rem .85rem;cursor:pointer;backdrop-filter:blur(6px);
  opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease,color .2s,border-color .2s;
}
.replay-intro.show{opacity:1;transform:none}
.replay-intro:hover{color:var(--olive);border-color:rgba(106,125,74,.5)}
.replay-intro svg{width:13px;height:13px}

/* ═══════════════════════════════════════════════════════════
   RESOLVED HERO — SPLIT: dog + its world on the left, the
   wordmark logo on the right. What the intro lands on.
═══════════════════════════════════════════════════════════ */
.hero.hero-cine{
  position:relative;height:100vh;min-height:620px;margin-top:0;overflow:hidden;
  background:#000;display:flex;align-items:flex-end;
}
.hc-photo{position:absolute;inset:-6% 0;background:url(hero-worldmap.jpg) center center/cover no-repeat;will-change:transform}
.hc-black{display:none}
.hc-vignette{display:none}
/* rotating cream emblem: a slow-spinning text ring around the static logo,
   pinned top-right under the header — keeps the cheetah upright + legible */
.hc-emblem{position:absolute;z-index:4;
  top:clamp(74px,11vh,128px);right:clamp(1.2rem,4.5vw,4.6rem);
  width:clamp(150px,17vw,226px);aspect-ratio:1;}
.hc-emblem::before{content:'';position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle,#f6f1e6 0%,#efe7d6 72%,#e6dcc6 100%);
  box-shadow:0 18px 50px rgba(0,0,0,.5), inset 0 0 0 1px rgba(60,40,12,.08);}
.hc-emblem::after{content:none;}
.hc-emblem-ring{position:absolute;inset:0;width:100%;height:100%;
  transform-origin:50% 50%;animation:emblemSpin 22s linear infinite;}
.hc-emblem-txt{font-family:var(--font-sub);font-size:11.3px;font-weight:700;
  letter-spacing:1.4px;fill:var(--alert);}
.hc-emblem-logo{position:absolute;top:50%;left:50%;width:76%;height:auto;
  transform:translate(-50%,-50%);
  filter:drop-shadow(0 4px 10px rgba(60,40,12,.18));}
@keyframes emblemSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hc-emblem-ring{animation:none}}
.hc-body{position:relative;z-index:4;
  padding:0 clamp(1.5rem,6vw,6rem) clamp(2.5rem,7vh,5.5rem);max-width:880px}
.hc-kicker{font-family:var(--font-sub);font-size:clamp(.62rem,.74vw,.74rem);font-weight:700;letter-spacing:.34em;text-transform:uppercase;color:var(--lime);display:block;margin-bottom:1rem}
.hc-h1{font-family:var(--font-head);font-weight:800;font-size:clamp(2.2rem,4.8vw,4.8rem);line-height:.96;text-transform:uppercase;color:#fff;letter-spacing:-.02em;margin-bottom:1.1rem;text-wrap:balance;text-shadow:0 4px 40px rgba(0,0,0,.7)}
.hc-h1 .grn{color:var(--lime)}
.hc-sub{font-family:var(--font-accent);font-style:italic;font-weight:500;font-size:clamp(1rem,1.5vw,1.35rem);color:rgba(238,244,232,.94);max-width:46ch;line-height:1.5;margin-bottom:1.8rem;text-shadow:0 2px 22px rgba(0,0,0,.85)}
.hc-h1{color:#fff}
.hc-btns{display:flex;gap:1rem;flex-wrap:wrap}
.hr-scroll{position:absolute;bottom:1.8rem;left:clamp(1.5rem,6vw,6rem);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;z-index:5}
.hr-scroll span{font-family:var(--font-sub);font-size:.6rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:rgba(220,232,210,.6)}
.hr-scroll-line{width:1px;height:38px;background:linear-gradient(to bottom,rgba(220,232,210,.6),transparent);animation:hrScroll 1.8s ease-in-out infinite}
@keyframes hrScroll{0%,100%{opacity:.3;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1)}}

/* btn-ghost — outline on dark imagery */
.btn-ghost{display:inline-flex;align-items:center;gap:.6rem;padding:.95rem 2.4rem;border-radius:1px;font-family:var(--font-sub);font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;border:1.5px solid rgba(255,255,255,.5);color:#fff;background:rgba(0,0,0,.2);transition:border-color .2s,background .2s,transform .2s}
.btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.12);transform:translateY(-2px)}

/* hero content visible by default; intro hides via .intro-prehide then reveals */
.hero-cine .hc-kicker,
.hero-cine .hc-h1,
.hero-cine .hc-sub,
.hero-cine .hc-btns,
.hero-cine .hc-emblem,
.hero-cine .hr-scroll{opacity:1}
.hero-cine .hc-kicker,
.hero-cine .hc-h1,
.hero-cine .hc-sub,
.hero-cine .hc-btns,
.hero-cine .hc-emblem,
.hero-cine .hr-scroll{transition:opacity .9s ease, transform 1s cubic-bezier(.22,1,.36,1)}
.hero-cine .hc-h1{transition-delay:.12s}
.hero-cine .hc-sub{transition-delay:.26s}
.hero-cine .hc-btns{transition-delay:.4s}
.hero-cine .hc-emblem{transition-delay:.05s}
.hero-cine .hr-scroll{transition-delay:.6s}
.hero-cine.intro-prehide .hc-kicker,
.hero-cine.intro-prehide .hc-h1,
.hero-cine.intro-prehide .hc-sub,
.hero-cine.intro-prehide .hc-btns{opacity:0;transform:translateY(26px)}
.hero-cine.intro-prehide .hc-emblem{opacity:0;transform:translateY(-18px) scale(.92)}
.hero-cine.intro-prehide .hr-scroll{opacity:0}

@media (max-width:860px){
  .hero.hero-cine{min-height:100svh}
  .hc-photo{background-position:center 60%}
  .hc-black{background:linear-gradient(to top,rgba(0,0,0,.96) 0%,rgba(0,0,0,.45) 38%,rgba(0,0,0,.2) 64%),linear-gradient(to bottom,rgba(0,0,0,.6),transparent 30%)}
  .hc-emblem{top:70px;right:1rem;width:min(34vw,140px)}
  .hc-body{padding:0 1.4rem 3rem;max-width:none}
  .hc-h1{font-size:clamp(2.4rem,11vw,3.6rem)}
  .hc-btns .btn-red,.hc-btns .btn-ghost{flex:1;justify-content:center;min-width:160px}
  .hero-cine.intro-prehide .hc-emblem{transform:translateY(-12px) scale(.92)}
}

.btn-dark-outline{display:inline-flex;align-items:center;gap:.6rem;padding:.95rem 2.4rem;border-radius:1px;font-family:var(--font-sub);font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;border:1.5px solid rgba(232,240,226,.55);color:#fff;background:none;transition:border-color .2s,color .2s,transform .2s,background .2s}
.btn-dark-outline:hover{border-color:#fff;background:rgba(255,255,255,.1);transform:translateY(-2px)}
@media (max-width:860px){
  .btn-dark-outline{border-color:rgba(20,40,18,.32);color:#1b2a18}
  .btn-dark-outline:hover{border-color:var(--olive);color:#000;background:rgba(20,40,18,.05)}
}

@media (prefers-reduced-motion:reduce){
  #intro{display:none}
}
@media (max-width:768px){
  #intro .mapwrap{width:96vw}
  #intro .logo-final{width:min(88vw,52vh)}
}
