/* P-079 premium motion. Progressive enhancement: content remains readable without JS.
   v77: reveals never pass text through partial opacity (which dropped contrast
   below WCAG AA mid-animation). The hero uses a clip-path wipe with a rise, so
   every visible glyph is always at full contrast; later sections only rise. */
/* v78f page intro on every customer page: hero text wipes up through a
   clip-path while rising 14px, staggered 75ms, so it feels unhurried yet is
   complete in ~1.4s. JS adds convio-intro-run on the first frame after fonts
   settle (or after the first consent choice). If the motion script never
   runs, the failsafe animation shows everything after 2.5s. */
html.convio-js:not(.convio-intro-run) :is(main .hero-reveal,main .page-hero > .wrap > *,main .legal-content > :nth-child(-n+4)) {
  clip-path:inset(100% 0 0 0);
  transform:translate3d(0,14px,0);
}
html.convio-js:not(.convio-intro-run):not(.convio-intro-wait) :is(main .hero-reveal,main .page-hero > .wrap > *,main .legal-content > :nth-child(-n+4)) {
  animation:convioIntroFailsafe .6s cubic-bezier(.22,.8,.24,1) 2.5s forwards;
}
html.convio-js.convio-intro-run :is(main .hero-reveal,main .page-hero > .wrap > *,main .legal-content > :nth-child(-n+4)) {
  animation:convioIntro .95s cubic-bezier(.22,.8,.24,1) backwards;
  animation-delay:calc(var(--cv-intro-i,0) * 75ms);
}
main .page-hero > .wrap > :nth-child(2),main .legal-content > :nth-child(2),main .hero-reveal-2{--cv-intro-i:1}
main .page-hero > .wrap > :nth-child(3),main .legal-content > :nth-child(3),main .hero-reveal-3{--cv-intro-i:2}
main .page-hero > .wrap > :nth-child(4),main .legal-content > :nth-child(4),main .hero-reveal-5{--cv-intro-i:3}
main .page-hero > .wrap > :nth-child(5),main .hero-reveal-4{--cv-intro-i:4}
main .page-hero > .wrap > :nth-child(6),main .hero-reveal-6{--cv-intro-i:5}
/* The first section under an inner-page hero only rises; it never hides. */
html.convio-js.convio-intro-run main .page-hero + section {
  animation:convioIntroRise 1.1s cubic-bezier(.22,.8,.24,1) .3s backwards;
}
/* Negative end inset keeps shadows and focus rings unclipped on the final
   frame; with fill-mode "backwards" no clip remains once the animation ends. */
@keyframes convioIntro{
  from{clip-path:inset(100% -40px -40px -40px);transform:translate3d(0,14px,0)}
  to{clip-path:inset(-40px -40px -40px -40px);transform:none}
}
@keyframes convioIntroRise{from{transform:translate3d(0,18px,0)}to{transform:none}}
@keyframes convioIntroFailsafe{to{clip-path:inset(-40px -40px -40px -40px);transform:none}}

/* v79 section reveals: the page-intro wipe and rise applied to section
   headings, copy and cards as they scroll in. JS enrols only units still below
   the fold, never forms or tools, and never uses opacity. */
[data-convio-reveal="pending"] {
  clip-path:inset(100% 0 0 0);
  transform:translate3d(0,14px,0);
}
[data-convio-reveal="run"] {
  animation:convioIntro 1s cubic-bezier(.22,.8,.24,1) backwards;
  animation-delay:var(--convio-reveal-delay,0ms);
}

/* Only off-screen elements explicitly enrolled by JS receive motion. */
[data-convio-motion="pending"] {
  transform:translate3d(0,24px,0);
  transition:transform 1.25s cubic-bezier(.16,.78,.24,1);
}
[data-convio-motion="visible"]{transform:none}
[data-convio-motion-group="pending"] > [data-convio-motion-item="pending"] {
  transform:translate3d(0,20px,0);
  transition:transform 1.22s cubic-bezier(.16,.78,.24,1);
  transition-delay:var(--convio-motion-delay,0ms);
}
[data-convio-motion-item="visible"]{transform:none!important}

/* The original five-stage customer journey remains in this same #funnel section. */
#funnel .convio-journey-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:clamp(32px,5vw,72px);align-items:start;position:relative;z-index:1;margin-top:34px}
#funnel .funnel-grid.convio-journey-stages{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none;min-width:0}
#funnel .funnel-step{display:grid;grid-template-columns:40px 1fr;column-gap:16px;align-items:start;min-height:166px;padding:24px 26px;background:var(--palette-279);border-color:var(--palette-24);border-radius:16px;transition:background .35s ease,border-color .35s ease,box-shadow .35s ease}
#funnel .funnel-step small{grid-row:1 / span 2;width:36px;height:36px;margin:0}
#funnel .funnel-step strong{margin:0 0 8px;font-size:clamp(16px,1.6vw,19px)}
#funnel .funnel-step span{grid-column:2;color:var(--palette-45);font-size:14px;line-height:1.65}
#funnel .funnel-step.is-current{background:var(--palette-24);border-color:var(--palette-28);box-shadow:0 12px 38px rgba(16,10,8,.13)}
#funnel .funnel-step.is-current small{background:var(--palette-280)}
#funnel .convio-journey-visual{position:sticky;top:clamp(88px,12vh,128px);align-self:start;min-height:470px;padding:clamp(26px,3vw,40px);background:var(--palette-281);color:#40291f;border-radius:26px;box-shadow:0 30px 70px rgba(17,9,5,.23);overflow:hidden}
#funnel .convio-journey-visual:before{content:"";position:absolute;inset:auto -40px -85px;bottom:-120px;height:230px;border-radius:50%;background:rgba(123,79,51,.055);pointer-events:none}
#funnel .convio-journey-visual-header{position:relative;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:30px;font-size:12px;letter-spacing:.08em;font-weight:800;text-transform:uppercase;color:var(--palette-282)}
#funnel .convio-journey-visual-header .convio-journey-mark{display:inline-flex;border:1px solid var(--palette-283);padding:7px 12px;border-radius:99px;letter-spacing:.05em}
#funnel .convio-journey-map{display:flex;flex-direction:column;gap:0;position:relative;z-index:1}
#funnel .convio-journey-link{width:2px;height:28px;margin:0 0 0 21px;background:var(--palette-283);position:relative}
#funnel .convio-journey-link:after{content:"";position:absolute;inset:0;background:#86593d;transform:scaleY(0);transform-origin:top;transition:transform .45s ease}
#funnel .convio-journey-node{display:flex;align-items:center;gap:17px;min-height:53px;color:var(--palette-284);transition:color .45s ease}
#funnel .convio-journey-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;border:1px solid var(--palette-285);background:var(--palette-150);transition:background .4s ease,border-color .4s ease,transform .4s ease}
#funnel .convio-journey-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linejoin:round;stroke-linecap:round}
#funnel .convio-journey-node strong{font-size:14px;color:inherit;line-height:1.35}
#funnel .convio-journey-node small{display:block;font-size:12px;margin-top:4px;line-height:1.4;color:var(--palette-286)}
#funnel .convio-journey-visual[data-step="1"] .convio-journey-node:nth-of-type(1),
#funnel .convio-journey-visual[data-step="2"] .convio-journey-node:nth-of-type(1),
#funnel .convio-journey-visual[data-step="3"] .convio-journey-node:nth-of-type(1),
#funnel .convio-journey-visual[data-step="4"] .convio-journey-node:nth-of-type(1),
#funnel .convio-journey-visual[data-step="5"] .convio-journey-node:nth-of-type(1){color:#4f3325}
#funnel .convio-journey-visual[data-step] .convio-journey-node.is-active{color:#40291f}
#funnel .convio-journey-node.is-active .convio-journey-icon{background:var(--palette-287);border-color:#a27854;transform:scale(1.04)}
#funnel .convio-journey-node.is-complete .convio-journey-icon{background:var(--palette-288);border-color:var(--palette-289)}
#funnel .convio-journey-link.is-complete:after{transform:scaleY(1)}
#funnel .convio-journey-visual-footer{margin-top:26px;border-top:1px solid var(--palette-290);padding-top:22px;position:relative}
#funnel .convio-journey-visual-footer strong{display:block;font-size:19px;line-height:1.25}
#funnel .convio-journey-visual-footer span{display:block;font-size:13px;line-height:1.6;color:var(--palette-291);margin-top:6px}
#funnel .funnel-result{position:relative;z-index:1;margin-top:26px!important}
@media(max-width:1020px){
  #funnel .convio-journey-layout{grid-template-columns:1fr;gap:28px}
  #funnel .convio-journey-visual{position:static;order:-1;min-height:0;padding:26px}
  #funnel .convio-journey-map{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  #funnel .convio-journey-node{display:flex;flex-direction:column;text-align:center;gap:7px;min-width:0}
  #funnel .convio-journey-node strong{font-size:12px}
  #funnel .convio-journey-node small{font-size:11px}
  #funnel .convio-journey-link{display:none}
  #funnel .funnel-grid.convio-journey-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  #funnel .funnel-step{min-height:0}
}
@media(max-width:640px){
  #funnel .convio-journey-visual{padding:22px 17px;border-radius:18px}
  #funnel .convio-journey-visual-header{flex-wrap:wrap;margin-bottom:18px}
  #funnel .convio-journey-map{gap:4px}
  #funnel .convio-journey-icon{width:34px;height:34px;border-radius:10px}
  #funnel .convio-journey-icon svg{width:19px;height:19px}
  #funnel .convio-journey-node strong{font-size:11px;overflow-wrap:normal;letter-spacing:-.01em}
  #funnel .convio-journey-node small{display:none}
  #funnel .funnel-grid.convio-journey-stages{grid-template-columns:1fr}
  #funnel .funnel-step{padding:19px;grid-template-columns:36px 1fr;min-height:0}
}
@media(max-width:360px){
  #funnel .convio-journey-visual{padding:20px 12px}
  #funnel .convio-journey-map{gap:2px}
  #funnel .convio-journey-node strong{font-size:10px}
}
@media(min-width:1021px){
  #funnel .convio-journey-stages .funnel-step{min-height:196px}
  #funnel .convio-journey-visual{overflow:clip}
}
@media(prefers-reduced-motion:reduce){
  html.convio-js :is(main .hero-reveal,main .page-hero > .wrap > *,main .legal-content > :nth-child(-n+4)),
  html.convio-js main .page-hero + section,
  [data-convio-reveal],
  [data-convio-motion="pending"],[data-convio-motion="visible"],
  [data-convio-motion-group="pending"] > [data-convio-motion-item="pending"] {
    opacity:1!important;transform:none!important;clip-path:none!important;transition:none!important;animation:none!important;
  }
  #funnel .convio-journey-visual{position:static}
  #funnel .convio-journey-node,#funnel .convio-journey-icon,#funnel .convio-journey-link:after,#funnel .funnel-step{transition:none!important}
}
@media print{
  [data-convio-reveal]{clip-path:none!important;transform:none!important;animation:none!important}
}
