/* Leadom v5.18: UPT-referenced award gallery behavior, existing brand artwork only */
:root{--ld18-ink:#0D142B;--ld18-azure:#0044FF;--ld18-white:#FFFFFF}
.ld17-about-conclusion h2 span{color:var(--ld17-fg,var(--ld-fg,#0D142B))!important}
/* Academy masterclass gallery: two independent rows, no fabricated laurel art. */
.ld-page .ld18-showcase{margin:clamp(38px,6vw,76px) 0 76px; padding:clamp(27px,3.8vw,57px);background:#0D142B;border-radius:28px;color:#FFFFFF}
.ld-page .ld18-showcase .ld-course-label{font-size:13px;color:#FFFFFF!important;letter-spacing:.14em;border-color:rgba(255,255,255,.2);margin-bottom:30px}
.ld-page .ld18-showcase .ld-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(13px,1.6vw,24px);align-items:stretch;perspective:1200px}
.ld-page .ld18-showcase .ld-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:550px;overflow:hidden;padding:clamp(17px,2vw,26px)!important;
 background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.015) 54%,rgba(0,68,255,.035));
 border:1px solid rgba(255,255,255,.23)!important;border-radius:22px!important;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 10px 24px rgba(0,0,0,.06);
 color:#FFFFFF!important;transform-origin:center 70%;
 transform:perspective(1200px) rotateX(var(--ld18-rx,0deg)) rotateY(var(--ld18-ry,0deg)) translateY(var(--ld18-lift,0px)) rotate(var(--ld18-spin,0deg)) scale(var(--ld18-scale,1));
 transition:transform .58s cubic-bezier(.2,.78,.16,1),border-color .28s,box-shadow .3s,background .3s;
 will-change:auto;backface-visibility:hidden}
.ld-page .ld18-showcase .ld-card[hidden]{display:none!important}
.ld-page .ld18-showcase .ld-card:nth-child(3n + 1){--ld18-spin:-.7deg}
.ld-page .ld18-showcase .ld-card:nth-child(3n + 2){--ld18-spin:.6deg}
.ld-page .ld18-showcase .ld-card:nth-child(3n + 3){--ld18-spin:-.3deg}
.ld-page .ld18-showcase .ld-card:hover,.ld-page .ld18-showcase .ld-card:focus-within{--ld18-lift:-17px;--ld18-scale:1.035;--ld18-spin:0deg;z-index:3;border-color:#0044FF!important;box-shadow:0 28px 64px rgba(0,0,0,.34),0 0 0 1px rgba(0,68,255,.34)}
.ld-page .ld18-showcase .ld-card-grid:has(.ld-card:hover) .ld-card:not(:hover){--ld18-scale:.983}
.ld-page .ld18-showcase .ld-card-image-link{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:clamp(225px,22vw,315px);flex:0 0 auto;min-width:0;margin:0 auto clamp(18px,2vw,27px);text-decoration:none!important}
.ld-page .ld18-showcase .ld-card img.ld-card-cert-preview{display:block!important;position:static!important;top:auto!important;right:auto!important;width:auto!important;max-width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;filter:drop-shadow(0 16px 16px rgba(0,0,0,.16));transition:transform .6s cubic-bezier(.2,.78,.16,1);image-rendering:auto}
.ld-page .ld18-showcase .ld-card:hover img.ld-card-cert-preview,.ld-page .ld18-showcase .ld-card:focus-within img.ld-card-cert-preview{transform:translateY(-5px) rotate(-1deg)}
.ld-page .ld18-showcase .ld-card h3{color:#FFFFFF!important;padding-right:0!important;margin:0 0 12px!important;font:700 clamp(20px,2vw,27px)/1.11 'Space Grotesk',sans-serif;letter-spacing:-.045em}
.ld-page .ld18-showcase .ld-card p{color:rgba(255,255,255,.74)!important;font-size:13px!important;line-height:1.57!important;margin:0 0 15px!important}
.ld-page .ld18-showcase .ld-card .ld-cert{color:rgba(255,255,255,.56)!important;font-size:10px!important;letter-spacing:.03em;margin:0 0 15px!important}
.ld-page .ld18-showcase .ld-card .ld18-explore{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.24);font:700 13px 'DM Sans',sans-serif;color:#FFFFFF!important;text-decoration:none!important}
.ld-page .ld18-showcase .ld-card .ld18-explore span{color:#0044FF;font-size:21px;transition:transform .25s}
.ld-page .ld18-showcase .ld-card:hover .ld18-explore span{transform:translate(4px,-3px)}
.ld-page .ld18-showcase .ld-card.ld18-dealt{animation:ld18DealIn .72s cubic-bezier(.18,.75,.2,1) backwards;animation-delay:calc(var(--ld18-index,0) * 100ms)}
@keyframes ld18DealIn{from{opacity:.45;transform:translateY(42px) rotate(calc(var(--ld18-spin,0deg) * 3)) scale(.95)}to{opacity:1;transform:translateY(0) rotate(var(--ld18-spin,0deg)) scale(1)}}
/* Corporate training remains separate. No Masterclass completion badge displayed for it. */
.ld-page .ld18-corporate{margin-top:0!important}
.ld-page .ld18-corporate .ld-card{min-height:0;padding:26px}
/* Homepage signature Academy teaser: approved teaser in front; approved ribbon badges behind, opening like a hand of cards. */
#academy .ld18-home-deck{position:relative!important;display:block!important;align-self:center;justify-self:center!important;width:min(100%,560px)!important;height:clamp(330px,38vw,510px)!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important;margin:0 auto!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important;isolation:isolate;outline-offset:8px}
#academy .ld18-home-deck:before,#academy .ld18-home-deck:after{display:none!important;content:none!important}
#academy .ld18-home-deck .ld18-home-front{position:absolute;z-index:9;top:50%;left:50%;height:min(91%,470px);width:auto!important;max-width:83%;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 20px 22px rgba(0,0,0,.19));transition:transform .7s cubic-bezier(.2,.74,.15,1);pointer-events:none}
#academy .ld18-home-deck .ld18-home-card{position:absolute;display:block;top:50%;left:50%;height:67%;width:42%;max-width:180px;z-index:2;opacity:1;transform-origin:50% 88%;transform:translate(-50%,-50%) translateX(var(--ld18-base-x,0px)) rotate(var(--ld18-base-r,0deg)) scale(.93);transition:transform .7s cubic-bezier(.2,.8,.15,1),filter .45s,opacity .4s;outline-offset:5px;border:0;box-shadow:none;text-decoration:none}
#academy .ld18-home-deck .ld18-home-card img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 12px 15px rgba(0,0,0,.14));pointer-events:none}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-base-x:-28px;--ld18-base-r:-13deg;--ld18-fan-x:-205px;--ld18-fan-y:-18px;--ld18-fan-r:-24deg;z-index:4}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-base-x:-13px;--ld18-base-r:-7deg;--ld18-fan-x:-114px;--ld18-fan-y:-48px;--ld18-fan-r:-13deg;z-index:5}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(3){--ld18-base-x:4px;--ld18-base-r:4deg;--ld18-fan-x:0px;--ld18-fan-y:-62px;--ld18-fan-r:0deg;z-index:6}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-base-x:17px;--ld18-base-r:8deg;--ld18-fan-x:117px;--ld18-fan-y:-48px;--ld18-fan-r:13deg;z-index:5}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-base-x:29px;--ld18-base-r:13deg;--ld18-fan-x:206px;--ld18-fan-y:-18px;--ld18-fan-r:24deg;z-index:4}
#academy .ld18-home-deck:hover .ld18-home-front,#academy .ld18-home-deck:focus-within .ld18-home-front{transform:translate(-50%,-50%) translateY(44px) scale(.82)}
#academy .ld18-home-deck:hover .ld18-home-card,#academy .ld18-home-deck:focus-within .ld18-home-card{transform:translate(-50%,-50%) translate(var(--ld18-fan-x),var(--ld18-fan-y)) rotate(var(--ld18-fan-r)) scale(1.03)}
#academy .ld18-home-deck .ld18-home-card:hover,#academy .ld18-home-deck .ld18-home-card:focus-visible{z-index:12;filter:brightness(1.12);transform:translate(-50%,-50%) translate(var(--ld18-fan-x),calc(var(--ld18-fan-y) - 18px)) rotate(0deg) scale(1.2)}
#academy .ld18-home-deck .ld18-deck-prompt{position:absolute;bottom:-22px;left:0;right:0;text-align:center;font:700 11px/1.4 'DM Sans',sans-serif;letter-spacing:.12em;color:rgba(255,255,255,.75);pointer-events:none}
#academy .ld18-home-deck .ld18-deck-prompt::before{content:'↗';color:#0044FF;margin-right:10px;font-size:17px}
@media(max-width:1200px){#academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-fan-x:-138px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-fan-x:-78px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-fan-x:78px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-fan-x:138px}}
@media(max-width:940px){#academy .academy-refined-layout{grid-template-columns:1fr!important;gap:55px!important}#academy .ld18-home-deck{max-width:520px!important;height:440px!important}#academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-fan-x:-170px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-fan-x:-93px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-fan-x:93px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-fan-x:170px}}
@media(max-width:750px){.ld-page .ld18-showcase{padding:24px 18px}.ld-page .ld18-showcase .ld-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ld-page .ld18-showcase .ld-card{min-height:505px}.ld-page .ld18-showcase .ld-card-image-link{height:260px}#academy .ld18-home-deck{height:390px!important}}
@media(max-width:520px){.ld-page .ld18-showcase{margin:30px 0 56px;border-radius:17px;padding:25px 16px}.ld-page .ld18-showcase .ld-card-grid{grid-template-columns:1fr;gap:16px}.ld-page .ld18-showcase .ld-card{min-height:460px}.ld-page .ld18-showcase .ld-card-image-link{height:230px}.ld-page .ld18-showcase .ld-card h3{font-size:23px}#academy .ld18-home-deck{height:340px!important}#academy .ld18-home-deck .ld18-home-card{max-width:120px;height:61%}#academy .ld18-home-deck .ld18-home-front{max-width:74%;height:81%}#academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-fan-x:-117px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-fan-x:-62px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-fan-x:62px}#academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-fan-x:117px}}
@media(hover:none){#academy .ld18-home-deck .ld18-home-front{transform:translate(-50%,-50%) translateY(33px) scale(.79)}#academy .ld18-home-deck .ld18-home-card{transform:translate(-50%,-50%) translate(var(--ld18-fan-x),var(--ld18-fan-y)) rotate(var(--ld18-fan-r)) scale(.98)}}
@media(prefers-reduced-motion:reduce){.ld-page .ld18-showcase .ld-card,.ld-page .ld18-showcase .ld-card img,.ld-page .ld18-showcase .ld-card.ld18-dealt,#academy .ld18-home-deck *,#academy .ld18-home-deck .ld18-home-front{animation:none!important;transition:none!important}.ld-page .ld18-showcase .ld-card:hover{transform:none!important}}

/* v5.18 final polish: keep the card fan inside the approved Academy composition */
#academy .ld18-home-deck{width:min(100%,490px)!important;height:clamp(340px,35vw,455px)!important;max-width:100%!important}
#academy .ld18-home-deck .ld18-home-card{width:35%;max-width:156px;height:64%}
#academy .ld18-home-deck .ld18-home-front{height:85%;max-width:72%}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-fan-x:-119px;--ld18-fan-y:-25px;--ld18-fan-r:-17deg}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-fan-x:-60px;--ld18-fan-y:-47px;--ld18-fan-r:-9deg}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(3){--ld18-fan-x:0px;--ld18-fan-y:-58px;--ld18-fan-r:0deg}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-fan-x:60px;--ld18-fan-y:-47px;--ld18-fan-r:9deg}
#academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-fan-x:119px;--ld18-fan-y:-25px;--ld18-fan-r:17deg}
#academy .ld18-home-deck:hover .ld18-home-front,
#academy .ld18-home-deck:focus-within .ld18-home-front{z-index:2;transform:translate(-50%,-50%) translateY(104px) scale(.71)}
#academy .ld18-home-deck:hover .ld18-home-card,
#academy .ld18-home-deck:focus-within .ld18-home-card{transform:translate(-50%,-50%) translate(var(--ld18-fan-x),var(--ld18-fan-y)) rotate(var(--ld18-fan-r)) scale(1)}
#academy .ld18-home-deck .ld18-home-card:hover,
#academy .ld18-home-deck .ld18-home-card:focus-visible{z-index:12;transform:translate(-50%,-50%) translate(var(--ld18-fan-x),calc(var(--ld18-fan-y) - 13px)) rotate(0deg) scale(1.12)}
#academy .ld18-home-deck .ld18-deck-prompt{bottom:-10px;color:rgba(255,255,255,.82)}
/* Preserve responsive touch interaction. Each exposed badge links to the correct masterclass. */
@media (max-width:940px){#academy .ld18-home-deck{height:440px!important;width:min(100%,490px)!important}}
@media (max-width:520px){
 #academy .ld18-home-deck{height:395px!important;width:min(100%,340px)!important;margin:0 auto!important}
 #academy .ld18-home-deck .ld18-home-card{top:27%;height:46%;width:24%;max-width:83px;transform-origin:50% 87%;z-index:4}
 #academy .ld18-home-deck .ld18-home-card:nth-of-type(1){--ld18-fan-x:-117px;--ld18-fan-y:-12px;--ld18-fan-r:-10deg}
 #academy .ld18-home-deck .ld18-home-card:nth-of-type(2){--ld18-fan-x:-59px;--ld18-fan-y:-28px;--ld18-fan-r:-5deg}
 #academy .ld18-home-deck .ld18-home-card:nth-of-type(3){--ld18-fan-x:0px;--ld18-fan-y:-36px;--ld18-fan-r:0deg}
 #academy .ld18-home-deck .ld18-home-card:nth-of-type(4){--ld18-fan-x:59px;--ld18-fan-y:-28px;--ld18-fan-r:5deg}
 #academy .ld18-home-deck .ld18-home-card:nth-of-type(5){--ld18-fan-x:117px;--ld18-fan-y:-12px;--ld18-fan-r:10deg}
 #academy .ld18-home-deck .ld18-home-front{top:70%;height:57%;width:auto!important;max-width:64%;z-index:2;transform:translate(-50%,-50%)!important}
 #academy .ld18-home-deck .ld18-home-card,#academy .ld18-home-deck .ld18-home-card:hover,#academy .ld18-home-deck .ld18-home-card:focus-visible{transform:translate(-50%,-50%) translate(var(--ld18-fan-x),var(--ld18-fan-y)) rotate(var(--ld18-fan-r)) scale(1);z-index:4}
 #academy .ld18-home-deck .ld18-deck-prompt{font-size:10px;letter-spacing:.08em;bottom:-3px}
 #academy .ld18-home-deck .ld18-deck-prompt .ld18-prompt-desktop{display:none}
}
@media (min-width:521px){#academy .ld18-home-deck .ld18-deck-prompt .ld18-prompt-mobile{display:none}}
@media (hover:none){
 #academy .ld18-home-deck .ld18-home-card{transform:translate(-50%,-50%) translate(var(--ld18-fan-x),var(--ld18-fan-y)) rotate(var(--ld18-fan-r)) scale(1)}
 #academy .ld18-home-deck .ld18-home-front{z-index:2}
}
@media (prefers-reduced-motion:reduce){#academy .ld18-home-deck .ld18-home-card,#academy .ld18-home-deck .ld18-home-front{transition:none!important}}
/* Keep the instruction visible below the animated deck, not behind its folded front. */
#academy .ld18-home-deck .ld18-deck-prompt{bottom:-60px}
@media(max-width:520px){#academy .ld18-home-deck .ld18-deck-prompt{bottom:-30px}}


/* v5.19: keep about-us conclusion copy uniformly strong in both themes */
.ld17-about-conclusion h2,.ld17-about-conclusion h2 span{color:var(--ld17-fg,var(--ld-fg,#0D142B))!important;opacity:1!important}
html[data-theme="space-ink"] .ld17-about-conclusion h2,html[data-theme="space-ink"] .ld17-about-conclusion h2 span{color:#FFFFFF!important}
