/* Animacje landing /intiernationalinvestmentconcierge/ — silnik jak kariera/o-nas (prefiks iic-) */

@keyframes iicMixUp    { from { opacity: 0; transform: translateY(70px); }            to { opacity: 1; transform: none; } }
@keyframes iicMixLeft  { from { opacity: 0; transform: translate3d(-60px,40px,0); }   to { opacity: 1; transform: none; } }
@keyframes iicMixRight { from { opacity: 0; transform: translate3d(60px,40px,0); }    to { opacity: 1; transform: none; } }
@keyframes iicMixZoom  { from { opacity: 0; transform: translateY(45px) scale(.92); } to { opacity: 1; transform: none; } }

html.phg-conc-anim .phgland .iic-reveal { opacity: 0; }
html.phg-conc-anim .phgland .iic-reveal.in { animation: iicMixUp 1.1s cubic-bezier(.16,1,.3,1) both; }
html.phg-conc-anim .phgland .iic-reveal.in.m-left  { animation-name: iicMixLeft; }
html.phg-conc-anim .phgland .iic-reveal.in.m-right { animation-name: iicMixRight; }
html.phg-conc-anim .phgland .iic-reveal.in.m-zoom  { animation-name: iicMixZoom; }

html.phg-conc-anim .phgland .iic-stagger:not(.in) > * { opacity: 0; }
html.phg-conc-anim .phgland .iic-stagger.in > * { opacity: 0; animation: iicMixUp .9s cubic-bezier(.16,1,.3,1) both; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(1) { animation-delay: .05s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(2) { animation-delay: .13s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(3) { animation-delay: .21s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(4) { animation-delay: .29s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(5) { animation-delay: .37s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(6) { animation-delay: .45s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(7) { animation-delay: .53s; }
html.phg-conc-anim .phgland .iic-stagger.in > *:nth-child(8) { animation-delay: .61s; }

/* hero H1 — slowo po slowie */
@keyframes iicWordUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
html.phg-conc-anim .phgland .iic-word { display: inline-block; opacity: 0; animation: iicWordUp .9s cubic-bezier(.16,1,.3,1) both; }

/* wipe zdjec (clip-path — nie koliduje z parallaxem na transform) */
html.phg-conc-anim .phgland .iic-clip { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s cubic-bezier(.25,.74,.22,.99); }
html.phg-conc-anim .phgland .iic-clip.iic-clip-alt { clip-path: inset(0 0 0 100%); }
html.phg-conc-anim .phgland .iic-clip.in { clip-path: inset(0 0 0 0); }

/* founderka: kadr od gory (nie ucinac glowy) */
.phgland .phgland-founder-img img { object-position: 50% 10% !important; }
/* WIDOCZNA OD RAZU: reveal na IntersectionObserver bywal niestabilny dla tego zdjecia
   (clip-path zostawal inset(0 100% 0 0) = ukryte az do 8s bezpiecznika -> wygladalo jak
   dlugie wczytywanie). Zdejmujemy ukrywanie/wipe dla founderki — obraz pokazuje sie natychmiast. */
html.phg-conc-anim .phgland .phgland-founder-img.iic-clip,
html.phg-conc-anim .phgland .phgland-founder-img.iic-clip.in {
    clip-path: none !important;
    transition: none !important;
}

/* pasek postepu scrolla */
.iic-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: linear-gradient(90deg, #b08a3e, #d8b873); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(216,184,115,.5); pointer-events: none; }

.phgland [data-parallax] { will-change: transform; }

/* tilt 3D kart — plynne wyjscie */
.phgland .phgland-scard, .phgland .phgland-mcard { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html.phg-conc-anim .phgland .iic-reveal,
  html.phg-conc-anim .phgland .iic-stagger > *,
  html.phg-conc-anim .phgland .iic-word { opacity: 1 !important; animation: none !important; }
  html.phg-conc-anim .phgland .iic-clip { clip-path: none !important; transition: none !important; }
  .phgland [data-parallax] { transform: none !important; }
  .iic-progress { display: none !important; }
}


/* HERO: kurtynowa odslona zdjec od dolu (sekwencyjna; transition-delay z JS) */
html.phg-conc-anim .phgland .iic-clip-up { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s cubic-bezier(.25,.74,.22,.99); }
html.phg-conc-anim .phgland .iic-clip-up.in { clip-path: inset(0 0 0 0); }
html.phg-conc-anim .phgland .iic-clip-up img { transform: scale(1.08); transition: transform 1.7s cubic-bezier(.25,.74,.22,.99); }
html.phg-conc-anim .phgland .iic-clip-up.in img { transform: scale(1); }
/* scrub: plynne pisanie transform w rAF */
.phgland .phgland-h2, .phgland .phgland-lead, .phgland .phgland-markets-lead,
.phgland .phgland-grid-6, .phgland .phgland-grid-3, .phgland .phgland-founder-img,
.phgland .phgland-hero-imgcols .wp-block-column { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html.phg-conc-anim .phgland .iic-clip-up { clip-path: none !important; transition: none !important; }
  html.phg-conc-anim .phgland .iic-clip-up img { transform: none !important; }
}


/* MOBILE: porzadek odstepow (stack) */
@media (max-width: 781px) {
  /* desktopowy offset drugiej kolumny zdjec hero nie ma sensu na stacku */
  .phgland .phgland-hero-imgcols .wp-block-column.phgland-col-down { margin-top: 0 !important; }
  .phgland .phgland-hero-imgcols .wp-block-column + .wp-block-column { margin-top: 20px !important; }
  .phgland .phgland-hero-imgcols .phgland-img + .phgland-img { margin-top: 20px !important; }
  /* oddech miedzy trescia hero a zdjeciami oraz zdjeciem founderki a tekstem */
  .phgland .phgland-hero-imgcols { margin-top: 40px !important; }
  .phgland .phgland-founder-img { margin-bottom: 32px !important; }
  /* scrub off: zadnych resztek transformow */
  .phgland .phgland-h2, .phgland .phgland-lead, .phgland .phgland-markets-lead,
  .phgland .phgland-grid-6, .phgland .phgland-grid-3, .phgland .phgland-founder-img,
  .phgland .phgland-hero-imgcols .wp-block-column, .phgland .phgland-cta .wp-block-group__inner-container { transform: none !important; }
}
