/* Ucademy — short program certificate (paid). Prefix ucsc-. Fonts: Cormorant Garamond 500/600/700 (+italic 500), Cinzel 600/700, Great Vibes, Inter. */
.ucsc{--ucsc-serif:"Cormorant Garamond",Georgia,serif;--ucsc-caps:Cinzel,"Cormorant Garamond",Georgia,serif;--ucsc-script:"Great Vibes",cursive;--ucsc-sans:Inter,system-ui,sans-serif;position:relative;perspective:1400px;padding:18px 26px 34px 10px;container:ucsc/inline-size}
.ucsc *{box-sizing:border-box}.ucsc p{margin:0}.ucsc em{font-style:normal}
.ucsc::before{content:"";position:absolute;inset:6% 4% 2% 8%;background:radial-gradient(closest-side,rgba(226,184,88,.36),rgba(213,43,30,.14) 62%,rgba(213,43,30,0));filter:blur(22px);z-index:0;animation:ucsc-glow 6s ease-in-out infinite alternate}
.ucsc-float{position:relative;z-index:1;animation:ucsc-float 6s ease-in-out 1.4s infinite alternate}
.ucsc-tilt{--rx:4deg;--ry:-8deg;position:relative;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry));transition:transform .5s cubic-bezier(.2,.8,.2,1);animation:ucsc-in 1.2s cubic-bezier(.2,.8,.2,1) backwards}
.ucsc-back{position:absolute;inset:0;border-radius:4px;background:linear-gradient(135deg,#253862,#111A30);box-shadow:inset 0 0 0 1px rgba(226,201,138,.55),inset 0 0 0 5px #1B2A4A,inset 0 0 0 6px rgba(226,201,138,.3),0 20px 50px rgba(0,0,0,.4);transform:translate(16px,14px) rotate(4deg) translateZ(-30px);animation:ucsc-back 1.4s cubic-bezier(.2,.8,.2,1) both}
.ucsc-doc{position:relative;aspect-ratio:1.414;overflow:hidden;container-type:inline-size;border-radius:2px;color:#3B4458;background:repeating-linear-gradient(0deg,rgba(140,106,34,.03) 0 1px,transparent 1px 3px),radial-gradient(120% 95% at 50% 42%,#FFFCF5 0,#FAF3E3 55%,#F0E3C8 100%);box-shadow:0 30px 70px rgba(4,10,26,.55),0 0 0 1px rgba(140,106,34,.3)}
.ucsc-orn{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}
.ucsc-dr{stroke-dasharray:100;stroke-dashoffset:100;animation:ucsc-draw 2.4s cubic-bezier(.45,0,.2,1) .3s forwards}
.ucsc-dr2{stroke-dasharray:100;stroke-dashoffset:100;animation:ucsc-draw 3s cubic-bezier(.45,0,.2,1) .7s forwards}
.ucsc-wm{position:absolute;left:50%;top:50%;z-index:1;transform:translate(-50%,-50%) rotate(-18deg);font:700 13cqw/1 var(--ucsc-caps);letter-spacing:.24em;color:rgba(179,36,26,.055);white-space:nowrap;pointer-events:none}
.ucsc-tag{position:absolute;z-index:3;font:700 1.05cqw/1 var(--ucsc-sans);letter-spacing:.2em;text-transform:uppercase;color:#B3241A;border:.12cqw solid currentColor;border-radius:.3cqw;padding:.45cqw .6cqw .4cqw .8cqw}
.ucsc-in{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;font:400 1.9cqw/1.35 var(--ucsc-sans)}
.ucsc-k{display:flex;align-items:center;gap:1cqw;font:600 1.35cqw/1 var(--ucsc-sans);letter-spacing:.3em;text-transform:uppercase;color:#8A6A1F}
.ucsc-mk{display:grid;place-items:center;width:2.6cqw;height:2.6cqw;border-radius:.5cqw;background:#D52B1E;flex:none}.ucsc-mk svg{width:66%;height:66%;fill:#fff}
.ucsc-h{display:block;margin-top:1.8cqw;font:600 6cqw/1 var(--ucsc-serif);letter-spacing:.01em;color:#1B2A4A}
.ucsc-div{display:block;width:30cqw;height:1.4cqw;margin:1.2cqw 0 .8cqw;overflow:visible}
.ucsc-p{font:italic 500 2.3cqw/1.2 var(--ucsc-serif);color:#4A5568}
.ucsc-name{position:relative;display:block;margin-top:.6cqw;padding:0 5cqw .4cqw;font:400 7.2cqw/1.15 var(--ucsc-script);color:#1B2A4A}
.ucsc-name span{display:inline-block;padding:0 1.5cqw;clip-path:inset(-60% 100% -60% 0);animation:ucsc-write 1.1s cubic-bezier(.6,.1,.3,1) 1s forwards}
.ucsc-name::after{content:"";position:absolute;left:0;right:0;bottom:0;height:.2cqw;background:linear-gradient(90deg,rgba(176,138,52,0),#B08A34 14%,#B08A34 86%,rgba(176,138,52,0));transform:scaleX(0);animation:ucsc-line .8s ease-out .8s forwards}
.ucsc-name+.ucsc-p{margin-top:1.4cqw}
.ucsc-prog{display:grid;place-items:center;width:100%;max-width:72cqw;min-height:7cqw;margin-top:.6cqw;font:700 3.4cqw/1.12 var(--ucsc-serif);color:#1B2A4A;text-wrap:balance}
.ucsc-prog span,.ucsc-meta{transition:opacity .4s,transform .4s,filter .4s}
.ucsc .is-out{opacity:0;transform:translateY(-1.4cqw);filter:blur(3px)}
.ucsc-meta{display:block;margin-top:.4cqw;font:600 1.3cqw/1 var(--ucsc-sans);letter-spacing:.2em;text-transform:uppercase;color:#8A6A1F}
.ucsc-foot{display:grid;grid-template-columns:1fr 20cqw 1fr;width:100%;margin-top:auto;padding-top:3.8cqw}
.ucsc-f{position:relative;display:grid;gap:.4cqw;border-top:.15cqw solid #1B2A4A;padding-top:.8cqw;font:600 1.25cqw/1.2 var(--ucsc-sans);letter-spacing:.16em;text-transform:uppercase;color:#5B6577}
.ucsc-f b{position:absolute;left:0;right:0;bottom:100%;margin-bottom:.8cqw;font:600 2.3cqw/1 var(--ucsc-serif);letter-spacing:0;text-transform:none;color:#1B2A4A}
.ucsc-f small{font:400 1.1cqw/1.3 var(--ucsc-sans);letter-spacing:.02em;text-transform:none}
.ucsc-sig{position:absolute;left:0;right:0;bottom:100%;margin-bottom:-.5cqw;font:400 4.6cqw/1.1 var(--ucsc-script);letter-spacing:0;text-transform:none;color:#1B2A4A;clip-path:inset(-60% 100% -60% 0);animation:ucsc-write 1.2s ease-in-out 1.9s forwards}
.ucsc-bot{display:grid;grid-template-columns:1fr 20cqw 1fr;align-items:center;width:100%;margin-top:1.6cqw;font:400 1.15cqw/1.4 var(--ucsc-sans);color:#5B6577;text-align:left}
.ucsc-idw{display:flex;align-items:center;gap:1.2cqw}
.ucsc-bot b{font-weight:600;letter-spacing:.04em;color:#1B2A4A;white-space:nowrap}.ucsc-bot span{white-space:nowrap}
.ucsc-org{text-align:right}
.ucsc-qr{display:block;width:5.6cqw;height:5.6cqw;padding:.4cqw;background:#fff;box-shadow:0 0 0 .12cqw #C9B98F;flex:none}.ucsc-qr svg{display:block;width:100%;height:100%}
.ucsc-seal{position:absolute;z-index:4;--sz:0px;--sr:0deg;transform:translateZ(var(--sz)) rotate(var(--sr));filter:drop-shadow(0 6px 10px rgba(60,40,0,.35));animation:ucsc-stamp .7s cubic-bezier(.3,1.6,.5,1) 2.5s both}
.ucsc-seal svg{display:block;width:100%;height:auto;overflow:visible}
.ucsc-ring{transform-origin:60px 60px;animation:ucsc-spin 30s linear infinite}
.ucsc-burst{position:absolute;left:50%;top:40%;width:0;height:0}
.ucsc-burst i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:2px;background:#F3DD98;opacity:0;transform:rotate(var(--a)) translateY(0);animation:ucsc-burst .9s ease-out 2.75s forwards}
.ucsc-burst i:nth-child(3n){background:#fff}.ucsc-burst i:nth-child(3n+1){background:#FF8A80;border-radius:50%}
.ucsc-shine{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,250,232,.8) 48%,rgba(255,255,255,0) 60%);transform:translateX(-120%);animation:ucsc-shine 7s ease-in-out 2.6s infinite}
.ucsc-chip{position:absolute;z-index:6;display:inline-flex;align-items:center;gap:8px;padding:9px 14px 9px 10px;border-radius:999px;background:#fff;color:#1B2A4A;font:600 13.5px/1 Inter,sans-serif;box-shadow:0 12px 28px rgba(4,10,26,.35);white-space:nowrap;transform:translateZ(60px)}
.ucsc-chip svg{width:22px;height:22px;padding:4px;border-radius:50%;flex:none}
.ucsc-chip--1{left:-30px;bottom:-20px;animation:ucsc-pop .6s cubic-bezier(.3,1.5,.5,1) 3.1s both,ucsc-bob 5s ease-in-out 3.8s infinite alternate}.ucsc-chip--1 svg{background:#E3F4EA;color:#1B7F4B}
.ucsc-chip--2{right:-14px;top:-18px;animation:ucsc-pop .6s cubic-bezier(.3,1.5,.5,1) 3.4s both,ucsc-bob 5.6s ease-in-out 4.1s infinite alternate-reverse}.ucsc-chip--2 svg{background:#E6EEFB;color:#2C5BB8}
/* A — heritage frame */
.ucsc--a .ucsc-in{inset:8.4cqw 9.5cqw 6.6cqw}
.ucsc--a .ucsc-tag{top:7.4cqw;right:8cqw}
.ucsc--a .ucsc-seal{left:50%;bottom:4.4cqw;width:13cqw;margin-left:-6.5cqw}
/* B — navy panel */
.ucsc--b .ucsc-in{inset:6.4cqw 6.6cqw 5.4cqw 36.5cqw;align-items:flex-start;text-align:left}
.ucsc--b .ucsc-h{font-size:5.4cqw;margin-top:1.6cqw}
.ucsc--b .ucsc-div{width:24cqw;margin-left:-.2cqw}
.ucsc--b .ucsc-name{padding-left:0;font-size:6.8cqw}.ucsc--b .ucsc-name span{padding-left:0}
.ucsc--b .ucsc-name::after{background:linear-gradient(90deg,#B08A34 0,#B08A34 70%,rgba(176,138,52,0));transform-origin:left}
.ucsc--b .ucsc-prog{place-items:center start;max-width:none;font-size:3.1cqw;min-height:7cqw}
.ucsc--b .ucsc-foot{grid-template-columns:1fr 1fr;gap:4cqw}
.ucsc--b .ucsc-bot{display:flex;align-items:center;gap:1.2cqw;margin-top:1.4cqw}
.ucsc--b .ucsc-tag{top:3.6cqw;right:3.8cqw}
.ucsc--b .ucsc-wm{left:66%}
.ucsc--b .ucsc-seal{left:6.5cqw;top:26.1cqw;width:18cqw;filter:drop-shadow(0 6px 12px rgba(0,0,0,.45))}
.ucsc-pan{position:absolute;z-index:2;left:0;top:0;bottom:0;width:31cqw;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5.2cqw 2cqw 4.6cqw;text-align:center}
.ucsc-pan-t{display:flex;align-items:center;gap:1.1cqw;font:700 2cqw/1 var(--ucsc-caps);letter-spacing:.28em;color:#fff}
.ucsc-pan-b{font:600 1.15cqw/1.7 var(--ucsc-sans);letter-spacing:.26em;text-transform:uppercase;color:#E2C98A}
/* C — engraved frame */
.ucsc--c .ucsc-in{inset:9.2cqw 10cqw 7.2cqw}
.ucsc--c .ucsc-h{font:600 4.1cqw/1.1 var(--ucsc-caps);letter-spacing:.06em;margin-top:1.4cqw}
.ucsc--c .ucsc-foot{grid-template-columns:1fr 1fr 15cqw;gap:4cqw}
.ucsc--c .ucsc-bot{display:flex;align-items:center;gap:1.2cqw}
.ucsc--c .ucsc-tag{top:8cqw;right:8.6cqw}
.ucsc--c .ucsc-seal{right:-3%;bottom:-9%;width:21%;--sz:40px;--sr:-10deg;filter:drop-shadow(0 10px 18px rgba(4,10,26,.45))}
.ucsc-car{position:absolute;z-index:3;left:50%;top:4.1cqw;transform:translate(-50%,-50%);display:flex;align-items:center;gap:.9cqw;padding:.9cqw 2.4cqw .9cqw 1.4cqw;border:.15cqw solid #1B2A4A;border-radius:99px;background:#F8F0DE;box-shadow:0 0 0 .55cqw #F8F0DE,0 0 0 .68cqw #B08A34;font:700 1.6cqw/1 var(--ucsc-caps);letter-spacing:.3em;color:#1B2A4A}
.ucsc-car .ucsc-mk{width:2.2cqw;height:2.2cqw}
@keyframes ucsc-in{from{opacity:0;transform:translateY(40px) rotateX(24deg) rotateY(-26deg) scale(.92)}}
@keyframes ucsc-back{from{opacity:0;transform:translate(0,0) rotate(0) translateZ(-30px)}}
@keyframes ucsc-float{to{transform:translateY(-10px)}}
@keyframes ucsc-glow{to{opacity:.6;transform:scale(1.08)}}
@keyframes ucsc-draw{to{stroke-dashoffset:0}}
@keyframes ucsc-write{to{clip-path:inset(-60% -10% -60% -10%)}}
@keyframes ucsc-line{to{transform:scaleX(1)}}
@keyframes ucsc-shine{0%{transform:translateX(-120%)}18%,100%{transform:translateX(120%)}}
@keyframes ucsc-stamp{0%{opacity:0;transform:translateZ(var(--sz)) scale(2.4) rotate(calc(var(--sr) - 28deg))}60%{opacity:1;transform:translateZ(var(--sz)) scale(.9) rotate(calc(var(--sr) + 4deg))}100%{transform:translateZ(var(--sz)) scale(1) rotate(var(--sr))}}
@keyframes ucsc-spin{to{transform:rotate(360deg)}}
@keyframes ucsc-burst{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4)}}
@keyframes ucsc-pop{from{opacity:0;transform:translateZ(60px) scale(.6) translateY(10px)}}
@keyframes ucsc-bob{to{translate:0 -7px}}
.ucsc--wait,.ucsc--wait::before,.ucsc--wait *,.ucsc--wait *::before,.ucsc--wait *::after{animation-play-state:paused!important}
@container ucsc (max-width:480px){.ucsc-chip{font-size:12px;padding:7px 11px 7px 7px;gap:6px}.ucsc-chip svg{width:20px;height:20px}.ucsc-chip--1{left:50%;bottom:-30px;margin-left:-118px}.ucsc-chip--2{right:4px;top:-14px}}
@media(prefers-reduced-motion:reduce){.ucsc *,.ucsc::before,.ucsc *::before,.ucsc *::after{animation:none!important;transition:none!important}.ucsc-name span,.ucsc-sig{clip-path:none}.ucsc-name::after{transform:none}.ucsc-dr,.ucsc-dr2{stroke-dashoffset:0}.ucsc-shine,.ucsc-burst{display:none}}
