/* ICT Forex Academy — pinned editorial story text over the existing cinematic video */
.ifa-scroll-story{
  position:relative;
  height:500vh;
  isolation:isolate;
  z-index:3;
}
.ifa-scroll-story-stage{
  position:sticky;
  top:0;
  height:100vh;
  height:100svh;
  min-height:560px;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(4,12,20,.18),rgba(7,10,18,.42));
}
.ifa-story-scene{
  position:absolute;
  inset:0;
  display:grid;
  align-items:end;
  padding:clamp(36px,7.5vw,112px) clamp(24px,8vw,128px);
  pointer-events:none;
}
.ifa-story-backdrop{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  mix-blend-mode:screen;
}
.ifa-story-bg-global{background:radial-gradient(ellipse at 78% 25%,rgba(36,153,190,.26),transparent 48%),linear-gradient(110deg,rgba(3,12,24,.10),rgba(5,18,28,.42))}
.ifa-story-bg-candles{background:radial-gradient(ellipse at 76% 48%,rgba(16,185,129,.23),transparent 48%),linear-gradient(110deg,rgba(3,14,19,.20),rgba(4,12,20,.45))}
.ifa-story-bg-levels{background:radial-gradient(ellipse at 72% 32%,rgba(228,92,104,.22),transparent 50%),linear-gradient(110deg,rgba(18,8,16,.12),rgba(8,12,20,.45))}
.ifa-story-bg-structure{background:radial-gradient(ellipse at 78% 42%,rgba(65,112,180,.24),transparent 48%),linear-gradient(110deg,rgba(4,10,22,.16),rgba(8,12,20,.48))}
.ifa-story-bg-academy{background:radial-gradient(ellipse at 78% 30%,rgba(193,145,70,.24),transparent 48%),linear-gradient(110deg,rgba(12,10,16,.12),rgba(8,12,20,.5))}
.ifa-story-copy{
  position:relative;
  z-index:2;
  width:min(790px,82vw);
  opacity:0;
  transform:translate3d(0,30px,0);
  pointer-events:auto;
  will-change:opacity,transform;
  text-shadow:0 3px 28px rgba(0,0,0,.55);
}
.ifa-story-scene:first-child .ifa-story-copy{opacity:1;transform:none}
.ifa-story-kicker{
  margin:0 0 18px;
  color:#8ce8c5;
  font:700 10px/1.4 Inter,Arial,sans-serif;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.ifa-story-copy h2{
  max-width:780px;
  margin:0 0 20px;
  color:#f8fafc;
  font:500 clamp(42px,7.1vw,96px)/.99 'Playfair Display',Georgia,serif;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.ifa-story-copy h2 span{font-weight:500}
.ifa-story-copy h2 em{font-weight:700;font-style:italic;color:#fff}
.ifa-story-copy>p:not(.ifa-story-kicker){
  max-width:590px;
  margin:0;
  color:rgba(235,243,247,.88);
  font:400 clamp(14px,1.25vw,17px)/1.8 Inter,Arial,sans-serif;
  letter-spacing:.005em;
}
.ifa-story-cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:26px;
  padding:12px 19px;
  border:1px solid rgba(133,232,195,.5);
  border-radius:999px;
  background:rgba(5,20,24,.46);
  color:#d9fff0;
  font:700 12px/1 Inter,Arial,sans-serif;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.ifa-story-cta:hover{background:rgba(16,185,129,.2);border-color:#8ce8c5;transform:translateY(-2px)}
.ifa-story-progress{
  position:absolute;
  z-index:4;
  right:clamp(24px,5vw,72px);
  bottom:clamp(34px,6vw,70px);
  width:74px;
  height:2px;
  background:rgba(255,255,255,.25);
  overflow:hidden;
}
.ifa-story-progress span{display:block;width:20%;height:100%;background:#8ce8c5;transform-origin:left center}
.ifa-story-scroll-hint{
  position:absolute;
  z-index:4;
  right:clamp(24px,5vw,72px);
  bottom:clamp(48px,8vw,92px);
  color:rgba(235,243,247,.72);
  font:600 8px/1.4 Inter,Arial,sans-serif;
  letter-spacing:.18em;
  writing-mode:vertical-rl;
}
.ifa-story-scroll-hint span{display:inline-block;margin-top:9px;color:#8ce8c5;font-size:14px}
@media(max-width:760px),(pointer:coarse){
  .ifa-story-scene{padding:30px 24px 104px}
  .ifa-story-copy{width:min(100%,620px)}
  .ifa-story-kicker{font-size:9px;margin-bottom:14px;letter-spacing:.17em}
  .ifa-story-copy h2{font-size:clamp(39px,11vw,64px);line-height:1.02;margin-bottom:15px}
  .ifa-story-copy>p:not(.ifa-story-kicker){font-size:13px;line-height:1.7;max-width:95%}
  .ifa-story-progress{right:24px;bottom:34px;width:58px}
  .ifa-story-scroll-hint{right:24px;bottom:48px;font-size:7px}
  .ifa-story-cta{margin-top:20px}
}
@media(max-height:620px) and (min-width:761px){
  .ifa-story-scene{padding-top:35px;padding-bottom:48px}
  .ifa-story-copy h2{font-size:clamp(38px,6vw,66px)}
  .ifa-story-copy>p:not(.ifa-story-kicker){font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .ifa-scroll-story{height:auto}
  .ifa-scroll-story-stage{position:relative;height:auto;min-height:0;overflow:visible}
  .ifa-story-scene{position:relative;min-height:80vh;opacity:1!important;display:grid}
  .ifa-story-backdrop{opacity:.5!important}
  .ifa-story-copy{opacity:1!important;transform:none!important}
  .ifa-story-progress,.ifa-story-scroll-hint{display:none}
}


/* Text-only interaction: keep the editorial copy free of any visible card/panel. */
.ifa-story-copy{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:0!important;
}
.ifa-story-copy h2,
.ifa-story-kicker,
.ifa-story-copy>p:not(.ifa-story-kicker){
  transition:transform .38s cubic-bezier(.2,.75,.25,1),text-shadow .38s ease,color .38s ease;
}
.ifa-story-copy:hover h2,
.ifa-story-copy:focus-within h2{
  transform:translate3d(0,-4px,0);
  text-shadow:0 8px 34px rgba(0,0,0,.62),0 0 24px rgba(140,232,197,.16);
}
.ifa-story-copy:hover .ifa-story-kicker,
.ifa-story-copy:focus-within .ifa-story-kicker{
  color:#b7ffe0;
  transform:translate3d(3px,0,0);
}
.ifa-story-copy:hover>p:not(.ifa-story-kicker),
.ifa-story-copy:focus-within>p:not(.ifa-story-kicker){
  transform:translate3d(0,-2px,0);
  text-shadow:0 4px 22px rgba(0,0,0,.62);
}
@media(hover:none){
  .ifa-story-copy:hover h2,
  .ifa-story-copy:hover .ifa-story-kicker,
  .ifa-story-copy:hover>p:not(.ifa-story-kicker){transform:none;text-shadow:inherit}
}


/* Hard reset any inherited card/article styling inside the pinned story.
   The story text must sit directly on the cinematic footage. */
.ifa-scroll-story .ifa-scroll-story-stage,
.ifa-scroll-story .ifa-story-scene,
.ifa-scroll-story article.ifa-story-scene,
.ifa-scroll-story .ifa-story-copy{
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-color:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.ifa-scroll-story .ifa-story-copy::before,
.ifa-scroll-story .ifa-story-copy::after,
.ifa-scroll-story .ifa-story-scene::before,
.ifa-scroll-story .ifa-story-scene::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
