/* Home hero (bottom right): effects for the welcome text and the "Explore the gallery" button.
   Only touches background, box-shadow, pseudo-elements and the separate `scale` property, so the existing
   entrance animation (introUiIn in style.css) keeps working. Desktop only, like the block itself.
   Tuning: durations in the @keyframes below; colours are the site's blues. */

/* --- welcome text: brighter, on a soft dark panel, with a blue line that redraws itself every 5 seconds --- */
.intro__side p{position:relative;padding:.7rem .9rem .7rem 1.15rem;font-size:.88rem;font-weight:500;color:#eaf2ff;
  background:linear-gradient(90deg,rgba(2,8,18,.62),rgba(2,8,18,.34) 75%,rgba(2,8,18,0))}
.intro__side p::before,.ab-moments .lead::before{content:"";position:absolute;left:0;top:.25em;bottom:.25em;width:3px;border-radius:3px;
  background:linear-gradient(180deg,#2f6fe8,#4fb4ff 45%,#a5f3ff 75%,#2f6fe8);transform-origin:top;
  animation:lineCycle 5s ease-out 3.1s infinite both}
.intro__side p::before{top:0;bottom:0}
.intro__shine{
  background:linear-gradient(100deg,#e4eeff 0%,#e4eeff 38%,#ffffff 50%,#e4eeff 62%,#e4eeff 100%);
  background-size:250% 100%;background-position:100% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  animation:introShine 7s ease-in-out 4s infinite}
@keyframes introShine{0%{background-position:100% 0}45%,100%{background-position:0% 0}}
/* the line draws down, glows, holds, then fades; repeats every 5 seconds */
@keyframes lineCycle{
  0%{transform:scaleY(0);opacity:1;box-shadow:0 0 0 rgba(79,180,255,0)}
  22%{transform:scaleY(1);opacity:1;box-shadow:0 0 14px rgba(79,180,255,1)}
  60%{transform:scaleY(1);opacity:1;box-shadow:0 0 6px rgba(79,180,255,.6)}
  88%{transform:scaleY(1);opacity:1;box-shadow:0 0 0 rgba(79,180,255,0)}
  100%{transform:scaleY(1);opacity:0}
}

/* --- "Moments We've Captured" text (About): same brighter text and the same blue line --- */
.ab-moments .lead{position:relative;padding:.35rem 0 .35rem 1.15rem;color:#e4eeff;font-size:1rem;line-height:1.75}
.ab-moments .lead::before{top:0;bottom:0;animation-delay:0s}

/* --- button: glare passes over it, a soft ring pulses, and it lifts with a glow on hover --- */
.intro__pill{position:relative;isolation:isolate;transition:box-shadow .3s ease,background-color .3s ease,scale .3s cubic-bezier(.22,.8,.3,1)}
.intro__pill::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(110deg,transparent 38%,rgba(79,180,255,.55) 50%,transparent 62%);
  background-size:300% 100%;background-position:100% 0;animation:introGlare 5s ease-in-out 4.2s infinite}
.intro__pill::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  animation:introRing 3s ease-out 4.2s infinite}
@keyframes introGlare{0%{background-position:100% 0}35%,100%{background-position:0% 0}}
@keyframes introRing{0%{box-shadow:0 0 0 0 rgba(165,243,255,.55)}70%,100%{box-shadow:0 0 0 14px rgba(165,243,255,0)}}
.intro__arr{display:inline-block;margin-left:.55em;font-style:normal;transition:translate .3s cubic-bezier(.22,.8,.3,1)}
.intro__pill:hover,.intro__pill:focus-visible{background:#ffffff;scale:1.06;
  box-shadow:0 0 0 1px rgba(165,243,255,.85),0 10px 34px -6px rgba(79,180,255,.8)}
.intro__pill:hover .intro__arr,.intro__pill:focus-visible .intro__arr{translate:5px 0}

@media (prefers-reduced-motion:reduce){
  .intro__side p::before,.ab-moments .lead::before,.intro__shine,.intro__pill::before,.intro__pill::after{animation:none}
  .intro__shine{background:none;-webkit-text-fill-color:currentColor;color:inherit}
  .intro__pill{transition:none}
}

/* ===== Section under the opening scene (plays on its own for 5 seconds, see js/intro-type.js) ===== */
/* top edge: flat navy, no gradient. A thin "futuristic" line marks the seam with the opening scene above (see .fx-divider) */
.intro{border-top:0;border-image:none;background:#07162a}

/* --- divider: "shutter opening" line. The hairline opens outward from the centre diamond like a shutter, a soft blue glow
       spreads under it, they hold for a moment, fade, and repeat every 5s. Tune the 5s in the two animations below. --- */
.fx-divider{position:absolute;top:0;left:0;right:0;height:40px;pointer-events:none;z-index:2;clip-path:inset(-12px 0 0 0)}
.fx-divider::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;transform-origin:center;
  background:linear-gradient(90deg,transparent 0,rgba(108,200,255,.6) 10%,#a5f3ff 50%,rgba(108,200,255,.6) 90%,transparent 100%);
  box-shadow:0 0 12px rgba(79,180,255,.55);animation:fxOpen 5s cubic-bezier(.7,0,.2,1) infinite}
.fx-divider::after{content:"";position:absolute;top:1px;left:0;right:0;height:36px;
  background:linear-gradient(rgba(108,200,255,.3),transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);
  clip-path:inset(0 50% 0 50%);opacity:0;animation:fxBand 5s cubic-bezier(.7,0,.2,1) infinite}
.fx-divider i{position:absolute;left:50%;top:-5px;width:11px;height:11px;margin-left:-5.5px;transform:rotate(45deg);
  background:#07162a;border:1px solid #a5f3ff;box-shadow:0 0 14px rgba(108,200,255,.9),inset 0 0 6px rgba(108,200,255,.6);animation:fxNode 2.5s ease-in-out infinite}
.fx-divider b{display:none}
@keyframes fxOpen{0%{transform:scaleX(0);opacity:0}20%{opacity:1}45%,80%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}
@keyframes fxBand{0%{clip-path:inset(0 50% 0 50%);opacity:0}20%{opacity:1}45%,80%{clip-path:inset(0 0 0 0);opacity:1}100%{clip-path:inset(0 0 0 0);opacity:0}}
@keyframes fxNode{0%,100%{box-shadow:0 0 8px rgba(108,200,255,.6),inset 0 0 4px rgba(108,200,255,.4)}50%{box-shadow:0 0 18px rgba(165,243,255,1),inset 0 0 8px rgba(108,200,255,.8)}}
@media (prefers-reduced-motion:reduce){.fx-divider::before,.fx-divider::after,.fx-divider i{animation:none}.fx-divider::before{opacity:1}.fx-divider::after{opacity:1;clip-path:none}}

/* typewriter: typed part, caret, and the rest of the text (invisible, so the line breaks never move) */
.tw-r{visibility:hidden}
.tw-caret{display:inline-block;width:0;height:1em;position:relative;vertical-align:-.15em;visibility:hidden}
.tw-caret.on{visibility:visible}
.tw-caret::after{content:"";position:absolute;left:1px;top:0;width:2px;height:100%;background:#6cc8ff;box-shadow:0 0 8px rgba(108,200,255,.9);animation:twBlink .8s steps(1) infinite}
@keyframes twBlink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* big headline: words come into focus; viewfinder corners lock on (their position follows --lock, set by the script) */
.intro .motto{position:relative;width:fit-content}
.intro .motto span{will-change:opacity,filter}
.intro .motto::before,.intro .motto::after{content:"";display:block;position:absolute;width:1.15rem;height:1.15rem;margin:0;background:none;
  border:0 solid #6cc8ff;pointer-events:none;
  opacity:var(--lock,0);translate:calc((1 - var(--lock,0)) * var(--d) * 18px) calc((1 - var(--lock,0)) * var(--d) * 18px)}
.intro .motto::before{--d:-1;left:-1.05rem;top:-.6rem;border-top-width:2px;border-left-width:2px}
.intro .motto::after{--d:1;right:-1.05rem;bottom:-.6rem;border-bottom-width:2px;border-right-width:2px}

/* "Moments We've Captured" row: grab cursor for mouse dragging (see js/moments.js) */
.ab-moments-row{cursor:grab}
.ab-moments-row.is-dragging{cursor:grabbing;user-select:none}
.ab-moments-row.is-dragging figure{pointer-events:none}
