/* Reference-led welcome page: staged entry and subtle logo/photo motion. */
.reference-portal{background:#f5f6f8;background-image:linear-gradient(146deg,transparent 0 43%,#ffffff8c 43% 56%,transparent 56%),linear-gradient(326deg,#eaf0f566 0 16%,transparent 16%)}
.reference-welcome.screen-body{display:flex;flex-direction:column;align-items:center;padding:22px 24px 14px;overflow:auto;scrollbar-width:thin}
.reference-content{width:100%;max-width:420px;flex-shrink:0;margin:auto 0;text-align:center}
.reference-content>*{margin:0}
.reference-content .reference-logo-frame{width:202px;height:111px;margin:0 auto 18px;border-radius:19px;background:#142e48;overflow:hidden;box-shadow:0 5px 16px #142e480a;animation:reference-arrive .6s cubic-bezier(.2,.7,.3,1) both}
.reference-content .reference-logo-frame .reference-logo{display:block;width:100%;height:100%;object-fit:contain;margin:0;border-radius:0;background:#142e48;box-shadow:none;transform:scale(1.5);animation:reference-logo-breathe 6.8s ease-in-out .65s infinite}
.portal .reference-content h1{color:#142e48;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-1.05px;margin:0 0 11px;animation:reference-arrive .6s cubic-bezier(.2,.7,.3,1) .08s both}
.reference-subtitle{color:#45566a;font-size:15px;line-height:1.42;font-weight:500;max-width:345px;margin:0 auto;animation:reference-arrive .6s cubic-bezier(.2,.7,.3,1) .14s both}
.reference-tagline{color:#627082;font-size:12px;font-style:italic;line-height:1.5;margin:11px 0 0;animation:reference-arrive .6s cubic-bezier(.2,.7,.3,1) .2s both}
.reference-collage{display:block;width:100%;aspect-ratio:1.5;height:auto;object-fit:contain;margin:15px auto 0;transform-origin:50% 60%;animation:reference-photo-arrive .8s cubic-bezier(.2,.7,.3,1) .24s both,reference-photo-drift 6s ease-in-out 1.04s infinite}
.reference-trust{color:#536478;font-size:11px;line-height:1.6;letter-spacing:.05px;margin:11px 0 0;animation:reference-arrive .55s ease .36s both}
.reference-trust span{color:#c71f36;margin:0 4px;font-weight:800}
.reference-content .reference-start{width:100%;min-height:55px;padding:13px 18px;border-radius:18px;background:linear-gradient(110deg,#c51d35,#cb2439);color:white;font-size:18px;font-weight:750;line-height:1.3;gap:12px;margin:18px 0 0;box-shadow:0 12px 24px #c71f3629;transition:background .15s ease,box-shadow .15s ease;animation:reference-arrive .55s ease .42s both}
.reference-content .reference-start:hover{background:#b91930;box-shadow:0 9px 20px #c71f3630}
.reference-start svg{width:22px;height:22px;stroke-width:2}
.reference-links{display:flex;align-items:center;justify-content:center;gap:15px;margin:9px 0 0;animation:reference-arrive .55s ease .48s both}
.reference-links button{min-height:44px;padding:7px 8px;background:transparent;color:#19344e;font-size:13px;line-height:1.4;font-weight:500}
.reference-links>span{color:#c3ccd5;font-size:16px}
.reference-links button:hover{color:#c71f36}
.reference-content button:focus-visible{outline:3px solid #b57b06;outline-offset:4px}
@keyframes reference-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes reference-photo-arrive{from{opacity:0;transform:translateY(9px) scale(.988)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes reference-photo-drift{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-3px) rotate(-.12deg)}}
@keyframes reference-logo-breathe{0%,100%{transform:scale(1.5) translateY(0)}50%{transform:scale(1.515) translateY(-1px)}}
@media(max-width:350px){
 .reference-welcome.screen-body{padding:18px 19px 10px}
 .reference-content .reference-logo-frame{width:176px;height:97px;margin-bottom:14px;border-radius:17px}
 .portal .reference-content h1{font-size:29px;letter-spacing:-.85px;margin-bottom:10px}
 .reference-subtitle{font-size:13px;line-height:1.45}
 .reference-tagline{font-size:11px;margin-top:10px}
 .reference-collage{margin-top:14px}
 .reference-trust{font-size:10px;margin-top:10px}
 .reference-content .reference-start{font-size:17px;margin-top:14px}
 .reference-links{gap:12px;margin-top:7px}
}
@media(max-height:700px){
 .reference-welcome.screen-body{padding-top:15px;padding-bottom:9px}
 .reference-content .reference-logo-frame{width:174px;height:96px;margin-bottom:13px}
 .portal .reference-content h1{font-size:29px;line-height:1.1;margin-bottom:9px}
 .reference-subtitle{font-size:13px;line-height:1.4}
 .reference-tagline{font-size:11px;margin-top:8px}
 .reference-collage{max-width:330px;margin-top:11px}
 .reference-trust{font-size:10px;margin-top:8px}
 .reference-content .reference-start{min-height:51px;font-size:17px;margin-top:13px}
 .reference-links{margin-top:5px}
}
@media(prefers-reduced-motion:reduce){
 .reference-content,.reference-content *{animation:none!important;transition:none!important}
 .reference-content .reference-logo-frame,.reference-content h1,.reference-content p,.reference-content .reference-collage,.reference-content .reference-start,.reference-content .reference-links{opacity:1;transform:none}
 .reference-content .reference-logo-frame .reference-logo{transform:scale(1.5)}
}
.reference-content .reference-logo-frame{width:208px;height:139px;margin:0 auto 10px;border-radius:0;background:transparent;overflow:visible;box-shadow:none}.reference-content .reference-logo-frame .reference-logo{width:100%;height:100%;background:transparent;border-radius:0;box-shadow:none;object-fit:contain;transform:scale(1);animation:reference-new-logo-breathe 6.8s ease-in-out .65s infinite}@keyframes reference-new-logo-breathe{0%,100%{transform:scale(1) translateY(0)}50%{transform:scale(1.012) translateY(-1px)}}@media(max-width:350px){.reference-content .reference-logo-frame{width:190px;height:127px;margin-bottom:9px}}@media(max-height:700px){.reference-content .reference-logo-frame{width:184px;height:123px;margin-bottom:8px}}@media(prefers-reduced-motion:reduce){.reference-content .reference-logo-frame .reference-logo{animation:none!important;transform:none}}
