/* Fellowship Finder Map — first-load intro (session-only; html.map-intro).  v2
   Mirrors the watchman144.com/calendar first-load pattern (cinematic-hero.css):
   #090d18 backing, sky fade 800ms ease-out, hero object fade 800ms ease-out @800ms, verses smoothstep in,
   ease-out-cubic out, 1580ms smoothstep crossfade onto the live canvas, then the UI (menu bar glides in, 120ms stagger).
   Scoped to html.map-intro so it is inert afterwards. */
#ffIntro{display:none}
html.map-intro,html.map-intro body.proto{background:#090d18!important}
html.map-intro #ffIntro{display:block;position:fixed;inset:0;z-index:100;background:#090d18;overflow:hidden;
  opacity:1;cursor:default;-webkit-tap-highlight-color:transparent;touch-action:none}

/* Hide the map UI until the live map is taking over (same idea as calendar's html.first-load-reveal). */
html.map-intro:not(.ffi-ui) .pbar,
html.map-intro:not(.ffi-ui) .pmode-stack,
html.map-intro:not(.ffi-ui) .pmap-tl,
html.map-intro:not(.ffi-ui) .plegend,
html.map-intro:not(.ffi-ui) .pseg,
html.map-intro:not(.ffi-ui) .pbtns,
html.map-intro:not(.ffi-ui) #mapwelcome,
html.map-intro:not(.ffi-ui) #ptip,
html.map-intro:not(.ffi-ui) #youdot,
html.map-intro:not(.ffi-ui) .ol-scale-line{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
@keyframes ffiFade{from{opacity:0}}
@keyframes ffiGlide{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}
html.map-intro.ffi-ui .ffi-cascade{animation:ffiFade 450ms ease-out var(--ffi-delay,0ms) both!important}
/* the menu bar glides down from above as part of the same continuous motion */
html.map-intro.ffi-ui .pbar.ffi-cascade{animation:ffiGlide 900ms cubic-bezier(.16,.84,.24,1) var(--ffi-delay,0ms) both!important}

/* ---- sky: clean deep space (no corner glow, no rays) ---- */
.ffi-sky{position:absolute;inset:0;opacity:0;transition:opacity 800ms ease-out}
#ffIntro.ffi-run .ffi-sky{opacity:1}
.ffi-sky::before{content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 85% 75% at 50% 52%,#0c1424 0%,#090d18 62%,#070a14 100%)}
#ffiStars{position:absolute;inset:0;width:100%;height:100%;display:block}

/* ---- the earth (calendar .moon-stage): fades 800ms ease-out after an 800ms delay ---- */
#ffiEarth{position:absolute;left:0;top:0;width:0;height:0;opacity:0;transition:opacity 800ms ease-out 800ms}
#ffIntro.ffi-run #ffiEarth{opacity:1}
#ffiEarth .ffi-fit{position:absolute;left:0;top:0;width:0;height:0;will-change:transform}
.ffi-tex,.ffi-clouds,.ffi-cshadow{position:absolute;left:0;top:0;display:block;max-width:none;transform-origin:50% 50%;will-change:transform;
  -webkit-user-drag:none;user-select:none;pointer-events:none}
.ffi-disc{position:absolute;border-radius:50%;pointer-events:none}
.ffi-box{position:absolute;pointer-events:none}
/* thin pale-blue Rayleigh limb + soft scattering halo outside the rim */
.ffi-atmo{box-shadow:0 0 calc(var(--R)*.010) calc(var(--R)*.004) rgba(200,230,255,.85),0 0 calc(var(--R)*.045) calc(var(--R)*.012) rgba(110,170,255,.50),0 0 calc(var(--R)*.15) calc(var(--R)*.03) rgba(60,110,230,.20)}
/* directional light (sun upper-right), far-side falloff, limb brightening + inner haze */
.ffi-light{background:
   radial-gradient(circle closest-side,rgba(0,0,0,0) 84%,rgba(120,175,255,.10) 92%,rgba(176,216,255,.34) 98%,rgba(214,236,255,.50) 100%),
   radial-gradient(circle at 74% 22%,rgba(255,238,210,.20) 0%,rgba(255,228,190,.07) 34%,rgba(255,228,190,0) 60%),
   radial-gradient(circle at 24% 82%,rgba(2,5,14,.46) 0%,rgba(2,5,14,.16) 46%,rgba(2,5,14,0) 76%);
  box-shadow:inset 0 0 calc(var(--R)*.05) calc(var(--R)*.004) rgba(110,165,255,.26)}
.ffi-rim{background:radial-gradient(circle at 76% 20%,rgba(255,244,222,.62) 0%,rgba(255,236,205,.22) 20%,rgba(255,236,205,0) 42%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px),#000 100%);mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px),#000 100%)}
/* ocean sun-glint: masked by the ocean map (rotates with the disc), the glint itself stays fixed to the light */
.ffi-glintwrap{-webkit-mask-image:url("brand/intro/earth-ocean-mask-1000.webp?v=2");mask-image:url("brand/intro/earth-ocean-mask-1000.webp?v=2");-webkit-mask-size:100% 100%;mask-size:100% 100%;will-change:transform}
.ffi-glint{position:absolute;inset:0;will-change:transform;
  background:
   radial-gradient(ellipse 5.5% 9% at 66.5% 35.5%,rgba(255,250,236,.78) 0%,rgba(255,244,222,.36) 38%,rgba(255,240,215,0) 100%),
   radial-gradient(ellipse 15% 21% at 66.5% 35.5%,rgba(255,236,200,.24) 0%,rgba(255,236,200,0) 100%)}
/* cloud shadows: same cloud map, darkened, offset away from the sun */
.ffi-cshadowwrap{transform:translate(calc(var(--R)*-.020),calc(var(--R)*.026))}
.ffi-cshadow{filter:brightness(0) blur(2.5px);opacity:.34}

/* ---- verses (calendar #introPsalm): same type recipe, fixed, no layout shift ---- */
#ffiVerse,#ffiPsalm{position:absolute;left:50%;top:0;transform:translateX(-50%);width:min(820px,88vw);text-align:center;margin:0;
  padding:20px 30px 18px;opacity:0;pointer-events:none;z-index:3;will-change:opacity}
#ffiPsalm{width:min(700px,88vw)}
#ffiVerse::before,#ffiPsalm::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:170%;height:200%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 70% 66% at 50% 52%,rgba(4,7,14,.80) 0%,rgba(4,7,14,.52) 40%,rgba(4,7,14,.2) 66%,transparent 82%)}
#ffiVerse blockquote,#ffiPsalm blockquote{margin:0;font:italic 400 clamp(.98rem,2.15vw,1.36rem)/1.5 "Exo 2",Oxanium,system-ui,sans-serif;color:#efe9da;
  text-wrap:balance;letter-spacing:normal;text-shadow:none;text-transform:uppercase}
#ffiVerse cite,#ffiPsalm cite{display:block;margin-top:.7rem;font:600 .8rem/1.3 Oxanium,system-ui,-apple-system,"Segoe UI",sans-serif;font-style:normal;
  letter-spacing:.16em;text-transform:uppercase;color:#d4a62a;text-shadow:none}
@media(max-width:640px){
  #ffiVerse,#ffiPsalm{width:min(380px,92vw);padding:10px 12px 8px}
  #ffiVerse::before,#ffiPsalm::before{width:150%;height:170%;background:radial-gradient(ellipse 78% 70% at 50% 50%,rgba(4,7,14,.6) 0%,rgba(4,7,14,.3) 48%,transparent 78%)}
  #ffiVerse blockquote,#ffiPsalm blockquote{font-size:clamp(.8rem,3.5vw,.98rem);line-height:1.45}
  #ffiVerse cite,#ffiPsalm cite{margin-top:.4rem;font-size:.66rem}
}
/* skip */
.ffi-skip{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:4;opacity:0;pointer-events:none;
  font:600 .72rem/1 Oxanium,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#d4a62a;background:rgba(4,7,14,.55);
  border:1px solid rgba(212,166,42,.4);border-radius:999px;padding:11px 16px;cursor:pointer;transition:opacity .6s ease-out,background .2s,border-color .2s}
#ffIntro.ffi-skipok .ffi-skip{opacity:.85;pointer-events:auto}
.ffi-skip:hover,.ffi-skip:focus-visible{background:rgba(212,166,42,.18);border-color:#f5d47a;outline:0}
@media(prefers-reduced-motion:reduce){html.map-intro #ffIntro{display:none}}
