/* Castle loader: a golden line draws the castle while the home page downloads its stills, loops and entry film. */
.castle-loader{position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:hidden;color:#f1dcae;background:radial-gradient(ellipse at 50% 42%,#18233c 0,#0b1220 52%,#05080f 100%);transition:opacity .9s ease,visibility 0s linear .9s}
.castle-loader.is-done{opacity:0;visibility:hidden}
html:not(.is-loading) .castle-loader:not(.is-done){display:none}
.loader-sky{position:absolute;inset:0;pointer-events:none;background:radial-gradient(1.5px 1.5px at 12% 22%,#fff9 50%,transparent 51%),radial-gradient(1px 1px at 28% 12%,#fff8 50%,transparent 51%),radial-gradient(1.5px 1.5px at 71% 18%,#fffa 50%,transparent 51%),radial-gradient(1px 1px at 86% 34%,#fff7 50%,transparent 51%),radial-gradient(1px 1px at 58% 8%,#fff8 50%,transparent 51%),radial-gradient(1.5px 1.5px at 40% 30%,#fff6 50%,transparent 51%),radial-gradient(1px 1px at 92% 12%,#fff8 50%,transparent 51%),radial-gradient(1px 1px at 6% 44%,#fff6 50%,transparent 51%);animation:loader-twinkle 4s ease-in-out infinite alternate}
@keyframes loader-twinkle{from{opacity:.55}to{opacity:1}}
.loader-stage{position:relative;display:grid;justify-items:center;gap:6px;width:min(560px,86vw);text-align:center}
.loader-castle{width:100%;height:auto;overflow:visible}
.loader-castle .line{fill:none;stroke:url(#loader-gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.loader-castle .ground{stroke-width:1.2;opacity:.7}
.loader-castle .window{fill:#ffcf7a;opacity:0;transition:opacity .6s ease}
.loader-castle .glow{filter:drop-shadow(0 0 0 #e9c27a00);transition:filter 1s ease}
.loader-star{opacity:0;transition:opacity .3s}
.loader-star.is-on{opacity:1}
.loader-star circle{fill:#fff6dd}
.loader-star path{fill:#fff1c9}
.loader-star .halo{fill:url(#loader-halo)}
.loader-count{margin:8px 0 0;font:500 clamp(40px,7vw,64px)/1 'Cinzel',Georgia,serif;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:#f6e3b8;text-shadow:0 0 24px #e9c27a40}
.loader-count small{margin-left:.15em;font-size:.42em;letter-spacing:0;color:#d9bd8a}
.loader-note{margin:6px 0 0;font:500 12px/1.5 'Cinzel',Georgia,serif;letter-spacing:.32em;text-transform:uppercase;color:#cdb98f}
.castle-loader.is-complete .window{opacity:.95}
.castle-loader.is-complete .glow{filter:drop-shadow(0 0 6px #e9c27a99)}
.castle-loader.is-complete .loader-note{color:#f3dcae}
/* The scene waits behind the loader and eases in once the gate is drawn. */
html.is-loading .castle-home .exterior .intro-copy,html.is-loading .castle-home .castle-header{opacity:0}
.castle-home .exterior .intro-copy,.castle-home .castle-header{transition:opacity 1.1s ease .25s}
@media(prefers-reduced-motion:reduce){.loader-sky{animation:none}.castle-loader{transition-duration:.3s}.loader-star{display:none}}
@media(max-width:760px){.loader-stage{width:min(420px,88vw)}.loader-note{font-size:10px;letter-spacing:.24em}}
.loader-castle .moon{stroke-width:1.3;opacity:.85}
.loader-castle .spark{stroke-width:1.2;opacity:.8}
