/* Loop Creativo — Storytelling Scroll 2.0
   A narrative layer only; no override of existing H1/H2 sizes, font metrics or Elementor content. */
body.lc-storytelling-enabled { --lc-story-ink:#0e0c16;--lc-story-lime:#f0ff43;--lc-story-light:#f5f1eb;--lc-story-purple:#7932ee;--lc-story-ease:cubic-bezier(.18,.78,.22,1) }
.lc-story-progress { position:fixed;top:0;left:0;right:0;height:2px;z-index:9997;pointer-events:none;background:rgba(255,255,255,.11) }
.lc-story-progress__fill { display:block;transform:scaleX(0);transform-origin:0 50%;width:100%;height:100%;background:linear-gradient(90deg,#41d9ff,#773eef 37%,#ed4bb0 72%,#ffb75e);box-shadow:0 0 13px rgba(147,76,255,.5);will-change:transform }
.lc-story-hud { position:fixed;z-index:92;right:clamp(16px,2.1vw,38px);bottom:clamp(17px,3vw,44px);display:grid;gap:9px;min-width:166px;padding:14px 17px;color:#f5f1eb;background:rgba(13,11,21,.72);border:1px solid rgba(255,255,255,.17);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 12px 45px rgba(0,0,0,.16);pointer-events:none;opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease }
.lc-story-hud--on {opacity:1;transform:none}
.lc-story-hud__eyebrow{font-size:9px;font-weight:750;letter-spacing:.2em;color:#c2b8d0}
.lc-story-hud__chapter{display:flex;align-items:baseline;gap:12px;font-size:11px;letter-spacing:.07em;font-weight:700}
.lc-story-hud__chapter b{font-size:18px;font-weight:800;color:var(--lc-story-lime)}
.lc-story-hud__ticks{display:flex;gap:4px}
.lc-story-hud__ticks i{height:2px;flex:1;background:#ffffff38}
.lc-story-hud__ticks i:first-child{background:linear-gradient(90deg,#49d6ff,#a64bf0)}
.lc-story-bridge { --lc-story-v:1;--lc-story-show:1;--lc-story-shift:0px;position:relative;height:176svh;min-height:900px;background:#100c1b;color:var(--lc-story-light);isolation:isolate;overflow:clip }
.lc-story-bridge--system{background:#100f18}
.lc-story-bridge__sticky{position:sticky;top:0;height:100svh;min-height:520px;display:grid;grid-template-columns:1fr;align-items:center;overflow:hidden;isolation:isolate;padding:clamp(80px,10vw,150px) max(5vw,calc((100vw - 1440px)/2))}
.lc-story-bridge__ambient{position:absolute;inset:-20%;z-index:-2;pointer-events:none;background:radial-gradient(ellipse 30% 45% at 68% 49%,rgba(106,54,231,.27),transparent 85%),radial-gradient(ellipse 24% 32% at 30% 70%,rgba(219,59,152,.16),transparent 85%);transform:translate3d(0,calc(var(--lc-story-v) * -25px),0)}
.lc-story-bridge__ribbon{position:absolute;width:min(77vw,1030px);height:auto;right:-13%;top:50%;transform:translate3d(calc(var(--lc-story-v)*-30px),-50%,0) rotate(calc((var(--lc-story-v) - .5)*12deg));z-index:-1;opacity:.65;overflow:visible;pointer-events:none}
.lc-story-bridge__ribbon-shadow,.lc-story-bridge__ribbon-draw{fill:none;stroke-linecap:round;stroke-linejoin:round}
.lc-story-bridge__ribbon-shadow{stroke:#28143b;stroke-width:90;opacity:.65}
.lc-story-bridge__ribbon-draw{stroke-width:9;filter:drop-shadow(0 0 19px rgba(136,71,241,.6))}
.lc-story-bridge__copy{position:relative;z-index:1;max-width:1360px;transform:translate3d(0,var(--lc-story-shift),0);opacity:var(--lc-story-show);will-change:opacity}
.lc-story-bridge__index{display:block;margin-bottom:clamp(30px,5vw,70px);font-size:clamp(10px,.88vw,13px);letter-spacing:.18em;font-weight:800;color:var(--lc-story-lime)}
.lc-story-bridge__title{margin:0;font-weight:950;font-size:clamp(3.6rem,7.85vw,9.4rem);letter-spacing:-.082em;line-height:.92;text-transform:uppercase;max-width:14ch;text-wrap:balance}
.lc-story-bridge__title span,.lc-story-bridge__title em{display:block}
.lc-story-bridge__title em{font-style:italic;color:var(--lc-story-lime)}
.lc-story-bridge--system .lc-story-bridge__title em{color:#b684ff}
.lc-story-bridge__description{font-size:clamp(1.01rem,1.28vw,1.35rem);line-height:1.58;max-width:51ch;color:#dfd7e9;margin:clamp(28px,4vw,52px) 0 0}
.lc-story-bridge__foot{position:absolute;left:max(5vw,calc((100vw - 1440px)/2));right:max(5vw,calc((100vw - 1440px)/2));bottom:clamp(23px,3vw,48px);border-top:1px solid #ffffff38;padding-top:15px;display:flex;justify-content:space-between;gap:24px;font-size:10px;font-weight:750;letter-spacing:.13em;color:#b2aabb;z-index:2}
/* Section continuity: a moving chromatic line as the scene enters, without changing headline geometry. */
.lc-story-scene{position:relative}
.lc-story-scene > .lc-story-stage-line{position:absolute;top:0;left:0;width:100%;height:1px;z-index:8;pointer-events:none;background:linear-gradient(90deg,transparent 2%,#9a5ff5 45%,#eeff43 75%,transparent);transform:scaleX(var(--lc-story-focus,0));transform-origin:left center;opacity:.56}
/* Reveals are subtle and limited to media/cards; never shift Elementor section geometry. */
@media (prefers-reduced-motion:no-preference){
  .lc-story-js body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-reveal:not(.lc-story-in){opacity:.45;translate:0 28px}
  .lc-story-js body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-reveal{transition:opacity .85s var(--lc-story-ease),translate 1s var(--lc-story-ease);transition-delay:var(--lc-story-delay,0ms)}
  .lc-story-js body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-reveal.lc-story-in{opacity:1;translate:0 0}
}
/* Inner pages get visual continuity without loading extra 3D models or changing article content. */
body.lc-storytelling-enabled:is(.single-project,.single-post,.page) .lc-editorial-gallery figure{overflow:hidden}
body.lc-storytelling-enabled .lc-editorial-featured{position:relative}
@media(max-width:900px){
  .lc-story-hud{right:14px;bottom:14px;padding:10px 12px;min-width:126px}
  .lc-story-hud__eyebrow{font-size:8px}.lc-story-hud__chapter span{font-size:10px}
  .lc-story-bridge{height:128svh;min-height:740px}
  .lc-story-bridge__sticky{padding:74px 6vw 90px}
  .lc-story-bridge__ribbon{right:-44%;width:120vw;opacity:.35}
  .lc-story-bridge__title{font-size:clamp(3.4rem,11.5vw,6.5rem)}
  .lc-story-bridge__foot{left:6vw;right:6vw}
}
@media(max-width:767px){
  .lc-story-progress{height:2px}
  .lc-story-hud{display:none}
  .lc-story-bridge{height:auto;min-height:0;overflow:hidden}
  .lc-story-bridge__sticky{position:relative;height:auto;min-height:74svh;padding:100px 6vw 104px;display:flex;align-items:center}
  .lc-story-bridge__ribbon{right:-68%;width:150vw;opacity:.25;top:38%}
  .lc-story-bridge__title{font-size:clamp(3.15rem,12vw,6rem);line-height:.92;max-width:12ch}
  .lc-story-bridge__copy{opacity:1;transform:none}
  .lc-story-bridge__index{margin-bottom:33px}
  .lc-story-bridge__description{font-size:clamp(1rem,3.9vw,1.17rem);max-width:32ch;margin-top:28px}
  .lc-story-bridge__foot{font-size:9px;flex-direction:column;gap:7px;bottom:22px}
}
@media(prefers-reduced-motion:reduce){
  .lc-story-bridge__copy{opacity:1!important;transform:none!important}
  .lc-story-bridge__ribbon-draw{stroke-dashoffset:0!important}
  .lc-story-bridge__ribbon,.lc-story-bridge__ambient{transform:none!important}
  .lc-story-reveal{opacity:1!important;translate:none!important;transition:none!important}
  .lc-story-hud{transition:none}
}
body.no-motion.lc-storytelling-enabled .lc-story-bridge__copy,body.lc-story-motion-reduced .lc-story-bridge__copy{opacity:1!important;transform:none!important}
body.no-motion.lc-storytelling-enabled .lc-story-bridge__ribbon-draw,body.lc-story-motion-reduced .lc-story-bridge__ribbon-draw{stroke-dashoffset:0!important}
body.no-motion.lc-storytelling-enabled .lc-story-reveal,body.lc-story-motion-reduced .lc-story-reveal{opacity:1!important;translate:none!important;transition:none!important}
/* Never animate under administrative previews or print. */
@media print{.lc-story-progress,.lc-story-hud,.lc-story-bridge{display:none!important}}

/* v2.1: true reversible scroll choreography, same canonical symbol across all scenes. */
body.lc-storytelling-enabled .lc-story-bridge__ribbon {transform:translate3d(calc(var(--lc-story-camera,0) * -34px),-50%,0) rotate(calc(var(--lc-story-camera,0) * 6deg)) scale(calc(1 + (var(--lc-story-v,0) * .13)));opacity:calc(.25 + var(--lc-story-v,0) * .50)}
body.lc-storytelling-enabled .lc-story-bridge__ribbon-shadow{stroke-width:77}
body.lc-storytelling-enabled .lc-story-bridge__ribbon-draw{stroke-width:77;filter:drop-shadow(0 0 16px rgba(148,66,246,.31))}
body.lc-storytelling-enabled .lc-story-bridge__title span:nth-child(1){opacity:var(--lc-story-line1,1);transform:translateY(calc((1 - var(--lc-story-line1,1)) * 25px))}
body.lc-storytelling-enabled .lc-story-bridge__title span:nth-child(2){opacity:var(--lc-story-line2,1);transform:translateY(calc((1 - var(--lc-story-line2,1)) * 25px))}
body.lc-storytelling-enabled .lc-story-bridge__title em{opacity:var(--lc-story-line3,1);transform:translateY(calc((1 - var(--lc-story-line3,1)) * 25px))}
body.lc-storytelling-enabled .lc-story-scene > .lc-story-stage-line{opacity:calc(.12 + var(--lc-story-scene-progress,.2) * .65)}
body.lc-storytelling-enabled .lc-story-scene .lc-real-project-card .lc-project-artwork-image img{will-change:auto}
@media(max-width:767px) and (prefers-reduced-motion:no-preference){
  body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-bridge{height:165svh;min-height:720px;overflow:clip}
  body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-bridge__sticky{position:sticky;top:0;height:100svh;min-height:600px;overflow:hidden}
  body.lc-storytelling-enabled:not(.no-motion):not(.lc-story-motion-reduced) .lc-story-bridge__ribbon{right:-60%;width:145vw;top:50%;opacity:calc(.12 + var(--lc-story-v,0) * .28)}
}
@media(prefers-reduced-motion:reduce){body.lc-storytelling-enabled .lc-story-bridge__title span,body.lc-storytelling-enabled .lc-story-bridge__title em{opacity:1!important;transform:none!important}}
body.lc-storytelling-enabled:is(.no-motion,.lc-story-motion-reduced) .lc-story-bridge__title span,body.lc-storytelling-enabled:is(.no-motion,.lc-story-motion-reduced) .lc-story-bridge__title em{opacity:1!important;transform:none!important}

/* v2.1: actual photo lighting is scrubbed by scroll (not one-shot, no layout shift). */
body.lc-storytelling-enabled .lc-story-shot img{filter:brightness(var(--lc-story-brightness,1)) saturate(var(--lc-story-saturation,1))}
@media(prefers-reduced-motion:reduce){body.lc-storytelling-enabled .lc-story-shot img{filter:none!important}}
body.lc-story-motion-reduced .lc-story-shot img,body.no-motion.lc-storytelling-enabled .lc-story-shot img{filter:none!important}

/* v2.2: a single story, no duplicate interludes or duplicate progress UI. */
body.lc-storytelling-enabled .lc-story-bridge,
body.lc-storytelling-enabled .lc-story-progress { display:none!important; }
/* The scene boundary itself advances with scrolling; no repeating editorial panels. */
body.lc-storytelling-enabled .lc-story-scene { isolation:isolate; }
