/* Pandula's visual identity around the supplied working canvas hero. */
.reference-story{position:relative;height:auto;min-height:0;background:#03060f;color:#f4f7ff}
.reference-story #loader{position:fixed;inset:0;z-index:1000;overflow:hidden;isolation:isolate;display:grid;place-items:center;padding:clamp(28px,5vw,76px);background:radial-gradient(circle at 76% 40%,#12326f55,transparent 32%),radial-gradient(circle at 18% 82%,#081d493d,transparent 29%),#02040a;color:#f4f7ff;transition:opacity .85s cubic-bezier(.65,0,.35,1),visibility .85s}
.reference-story #loader::before{content:"";position:absolute;inset:0;z-index:-2;opacity:.22;background-image:linear-gradient(#8bb6ff17 1px,transparent 1px),linear-gradient(90deg,#8bb6ff17 1px,transparent 1px);background-size:70px 70px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
.reference-story #loader::after{content:"";position:absolute;z-index:-1;inset:-30% 0 auto;height:46%;background:linear-gradient(transparent,#669cff1a,transparent);animation:loaderScan 3.8s linear infinite;will-change:transform;pointer-events:none}
.reference-story #loader.done{opacity:0;visibility:hidden;pointer-events:none}
.reference-story .loader-content{width:min(820px,88vw);display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:clamp(35px,7vw,94px);position:relative}
.reference-story .loader-heading p{margin:0 0 16px;color:#8fb4ee;font-size:11px;letter-spacing:.24em;font-weight:600}
.reference-story .loader-heading h2{margin:0;font-family:var(--font);font-size:clamp(42px,7vw,92px);line-height:.88;letter-spacing:-.065em;font-weight:500}
.reference-story .loader-heading em{font-family:Instrument Serif,Georgia,serif;font-size:1.12em;font-weight:400;color:#a9caff;letter-spacing:-.03em}
.reference-story .loader-optic{width:clamp(100px,12vw,148px);aspect-ratio:1;border:1px solid #79a8ee58;border-radius:50%;position:relative;align-self:center;box-shadow:0 0 70px #2266d62e,inset 0 0 35px #1f61ce24;animation:opticBreathe 2.8s ease-in-out infinite}
.reference-story .loader-optic::before,.reference-story .loader-optic::after{content:"";position:absolute;border-radius:50%}
.reference-story .loader-optic::before{inset:15%;border:1px solid #91b9f849;background:conic-gradient(from 20deg,#538fff18,#bad7ff42,#538fff14,#bad7ff3b,#538fff18)}
.reference-story .loader-optic::after{inset:38%;background:#7aadff;box-shadow:0 0 24px #4b8fff,0 0 75px #2f6bff88}
.reference-story .loader-optic span,.reference-story .loader-optic i{position:absolute;left:50%;top:-8%;height:116%;width:1px;background:linear-gradient(transparent,#8eb9ff5c 21%,#8eb9ff5c 79%,transparent);transform-origin:center}
.reference-story .loader-optic i{transform:rotate(90deg)}
.reference-story .loader-readout{grid-column:1/-1;margin-top:clamp(58px,9vh,110px);display:flex;justify-content:space-between;align-items:end;gap:35px;border-bottom:1px solid #8eb3ec30;padding-bottom:18px}
.reference-story #pct{font-size:clamp(58px,8vw,104px);line-height:.75;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-.065em}
.reference-story .loader-status{display:flex;gap:30px;padding-bottom:2px;color:#93a8c9;font-size:10px;letter-spacing:.16em}
.reference-story .loader-status span:last-child{color:#b9cff2;font-variant-numeric:tabular-nums}
.reference-story #bar{grid-column:1/-1;width:100%;height:2px;background:#ffffff12;overflow:hidden}
.reference-story #bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#285eff,#82b8ff,#eff7ff);box-shadow:0 0 20px #619dff;transition:width .18s linear}
.reference-story .loader-footer{grid-column:1/-1;display:flex;justify-content:space-between;padding-top:15px;color:#607494;font-size:9px;letter-spacing:.18em}
.reference-story .loader-focus{position:absolute;inset:clamp(20px,3vw,45px);pointer-events:none}
.reference-story .loader-focus i{position:absolute;width:25px;height:25px;border-color:#76a5ee7d}
.reference-story .loader-focus i:nth-child(1){left:0;top:0;border-left:1px solid;border-top:1px solid}.reference-story .loader-focus i:nth-child(2){right:0;top:0;border-right:1px solid;border-top:1px solid}.reference-story .loader-focus i:nth-child(3){left:0;bottom:0;border-left:1px solid;border-bottom:1px solid}.reference-story .loader-focus i:nth-child(4){right:0;bottom:0;border-right:1px solid;border-bottom:1px solid}
.reference-story #track{position:relative;height:500vh}
.reference-story #stage{position:sticky;top:0;height:100vh;height:100svh;min-height:0;overflow:hidden;background:#03060f}
.reference-story #cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.reference-story .ch{position:absolute;z-index:5;max-width:min(520px,86vw);opacity:0;pointer-events:none;will-change:opacity}
.reference-story .ch::before{content:"";position:absolute;inset:-60px -70px;z-index:-1;background:radial-gradient(closest-side,#02050ccc,#02050c00)}
.reference-story .ch h1,.reference-story .ch h2{font-family:var(--font),system-ui,sans-serif;font-size:clamp(32px,4.6vw,68px);line-height:1.02;font-weight:500;letter-spacing:-.035em;text-wrap:balance;margin:0}
.reference-story .ch p{margin-top:16px;font-size:clamp(15px,1.25vw,18px);line-height:1.5;color:#d1dbed;max-width:40ch}
.reference-story .ch a{display:inline-block;margin-top:24px;padding:13px 26px;border-radius:99px;background:#f4f7ff;color:#05091a;font-weight:500;text-decoration:none;pointer-events:auto}
.reference-story .c1{right:clamp(24px,7vw,110px);top:38%}
.reference-story .c2{left:clamp(24px,6vw,100px);bottom:11%}
.reference-story .c3{right:clamp(24px,6vw,100px);bottom:9%;text-align:right}
.reference-story .c3 p{margin-left:auto}
.reference-story .c4{left:50%;bottom:8%;transform:translateX(-50%);text-align:center}
.reference-story .c4 p{margin-inline:auto}
.reference-story .c5{left:clamp(24px,6vw,100px);top:32%}
.reference-story #nav{position:fixed;right:clamp(14px,2.4vw,34px);top:50%;transform:translateY(-50%);z-index:42;display:flex;flex-direction:column;gap:3px;transition:opacity .4s}
.reference-story #nav button{width:44px;height:44px;background:none;border:0;cursor:pointer;display:grid;place-items:center;padding:0;color:#fff}
.reference-story #nav button i{width:8px;height:8px;border-radius:50%;border:1.5px solid #ffffffa0;transition:.3s}
.reference-story #nav button.on i{background:#4d8dff;border-color:#4d8dff;transform:scale(1.5)}
.reference-story #nav.hide{opacity:0;pointer-events:none}
.reference-story #hint{position:absolute;z-index:6;left:50%;bottom:26px;transform:translateX(-50%);font-size:13px;color:#a9b6d6;display:flex;flex-direction:column;align-items:center;gap:8px;transition:opacity .4s;pointer-events:none}
.reference-story #hint::after{content:"";width:1px;height:34px;background:linear-gradient(#a9b6d6,transparent)}
.reference-story #snd{position:absolute;top:106px;right:clamp(18px,4vw,48px);z-index:8;background:#0a1226aa;border:1px solid #ffffff2e;border-radius:99px;padding:10px 16px;min-height:44px;font-size:13px;cursor:pointer;backdrop-filter:blur(8px)}
.reference-story #snd[aria-pressed=true]{border-color:#4d8dff;color:#fff}
.reference-story #snd:disabled{opacity:.5}
.reference-story .art-label{position:absolute;right:clamp(18px,4vw,48px);bottom:26px;z-index:6;color:#a9b6d6;font-size:12px;pointer-events:none}
.reference-story :focus-visible{outline:2px solid #4d8dff;outline-offset:3px}
.motion-paused .reference-story #track{height:100svh}
.mobile-menu:not([hidden]) ~ main .reference-story #nav{opacity:0;pointer-events:none}
@media(max-width:760px){
 .reference-story #loader{padding:28px 24px;background:radial-gradient(circle at 68% 32%,#12326f66,transparent 32%),#02040a}
 .reference-story #loader::before{background-size:44px 44px;opacity:.18}
 .reference-story .loader-content{width:100%;display:block}
 .reference-story .loader-heading p{font-size:9px;margin-bottom:13px}
 .reference-story .loader-heading h2{font-size:clamp(42px,14vw,66px)}
 .reference-story .loader-optic{width:95px;position:absolute;right:0;top:112%;opacity:.68}
 .reference-story .loader-readout{margin-top:clamp(112px,21vh,165px);display:block;padding-bottom:14px}
 .reference-story #pct{font-size:clamp(70px,24vw,106px)}
 .reference-story .loader-status{justify-content:space-between;margin-top:28px;gap:10px;font-size:8px}
 .reference-story .loader-footer{font-size:7px;gap:12px}
 .reference-story #stage::after{content:"";position:absolute;inset:48% 0 0;background:linear-gradient(transparent,#03060fbf 48%,#03060ff0);pointer-events:none;z-index:3}
 .reference-story .ch{left:20px!important;right:20px!important;top:auto!important;bottom:13%!important;transform:none!important;text-align:left!important;max-width:none}
 .reference-story .ch p{margin-left:0!important}
 .reference-story #nav{right:4px}
 .reference-story #snd{right:20px;top:92px}
 .reference-story .art-label{display:none}
}
@media(max-height:650px){.reference-story .ch{bottom:13%!important}.reference-story .ch h1,.reference-story .ch h2{font-size:clamp(28px,6vh,46px)}.reference-story .ch p{font-size:14px;margin-top:8px}.reference-story .ch a{margin-top:10px}}
@keyframes loaderScan{to{transform:translateY(310%)}}
@keyframes opticBreathe{0%,100%{transform:scale(.96);opacity:.72}50%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.reference-story #loader,.reference-story #nav,.reference-story #hint,.reference-story #bar i{transition:none}.reference-story #loader::after,.reference-story .loader-optic{animation:none}}
