/* xmas273: the Winter Festival ( Christmas ) theme of randessert.com. Loaded only while views/_winter_flag.ejs says "on".
   Colours: ice blue, crimson and warm gold over the dark site. Snow: CSS only, three slow layers moved with transform ( no script ),
   switched off for visitors who ask for reduced motion. Art: /winter/hero.* and /winter/event.* ( partner logos on each ). */
:root{
  --gold:#9fe6ff;--gold2:#e4f7ff;--gold3:#4aa3c7;
  --cyan:#9fe6ff;--magenta:#e8485c;
  --line:rgba(159,230,255,.16);--line2:rgba(159,230,255,.36);
  --goldgrad:linear-gradient(90deg,#e23a4e 0%,#f2c45a 50%,#9fe6ff 100%);
  --wf-red:#d42f45;--wf-red2:#a3202f;--wf-warm:#f2c45a;
}
/* buttons: crimson instead of pink */
.btn{background:rgba(159,230,255,.07)}
.btn:hover{background:rgba(159,230,255,.15);filter:drop-shadow(0 0 14px rgba(159,230,255,.4))}
.btn.primary{background:linear-gradient(90deg,var(--wf-red),var(--wf-red2));filter:drop-shadow(0 6px 22px rgba(212,47,69,.45));text-shadow:0 1px 2px rgba(50,0,8,.5)}
.btn.primary:hover{background:linear-gradient(90deg,#e8485c,#bd2a3b);filter:drop-shadow(0 8px 30px rgba(226,58,78,.7))}
/* hero: the winter gate ( same selector as the site's own hero picture rule; JPEG first for old browsers, then image-set; phones get the small file ) */
.hero-layers .hero-bg{background-position:center 30%;opacity:.74;background-image:linear-gradient(rgba(4,8,16,.22),rgba(4,8,16,.34)),url(/winter/hero.jpg?v=1);
  background-image:linear-gradient(rgba(4,8,16,.22),rgba(4,8,16,.34)),image-set(url(/winter/hero.webp?v=1) type("image/webp"),url(/winter/hero.jpg?v=1) type("image/jpeg"))}
@media (max-width:700px){.hero-layers .hero-bg{background-image:linear-gradient(rgba(4,8,16,.22),rgba(4,8,16,.34)),url(/winter/hero.jpg?v=1);
  background-image:linear-gradient(rgba(4,8,16,.22),rgba(4,8,16,.34)),image-set(url(/winter/hero-sm.webp?v=1) type("image/webp"),url(/winter/hero.jpg?v=1) type("image/jpeg"))}}
.hero::before{background:
  radial-gradient(60% 45% at 50% 38%,rgba(159,230,255,.14),transparent 70%),
  radial-gradient(40% 35% at 62% 60%,rgba(226,58,78,.12),transparent 70%),
  radial-gradient(120% 90% at 50% 40%,transparent 35%,rgba(5,6,10,.82) 75%,var(--bg) 100%)}
.hero-fog{background:
  radial-gradient(38% 30% at 18% 78%,rgba(226,58,78,.20),transparent 70%),
  radial-gradient(42% 34% at 82% 28%,rgba(159,230,255,.18),transparent 70%),
  radial-gradient(60% 30% at 50% 102%,rgba(11,19,34,.95),transparent 72%)}
.logo-glow{background:radial-gradient(closest-side,rgba(159,230,255,.28),rgba(226,58,78,.14) 55%,transparent)}
.hero-flare{background:radial-gradient(closest-side,rgba(255,255,255,.55),rgba(159,230,255,.32) 18%,rgba(226,58,78,.16) 38%,transparent 70%)}
.marquee{background:linear-gradient(90deg,rgba(226,58,78,.08),rgba(11,19,34,.6) 50%,rgba(159,230,255,.07))}
.crest{color:var(--wf-warm)}

/* the partner logos in the hero, under the buttons ( the hero picture is cropped differently on every screen ) */
.hero-content::after{content:"";display:block;height:46px;margin:26px auto 0;background:url(/winter/partners.png?v=1) center/contain no-repeat;animation:fadeIn 1.4s ease 1.2s both}
@media (max-width:560px){.hero-content::after{height:38px;margin-top:20px}}

/* ---- the event block: the picture with the headline over its dark left side, three facts and the buttons under it ---- */
.wf-event{position:relative;padding:86px 0 0}
.wf-card{position:relative;max-width:1180px;margin:0 auto;background:linear-gradient(180deg,rgba(14,22,40,.96),rgba(7,11,22,.98));border:1px solid var(--line2);
  clip-path:polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px);box-shadow:0 40px 90px -40px rgba(0,0,0,.9)}
.wf-card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--goldgrad);z-index:2}
.wf-top{position:relative}
.wf-art{display:block;position:relative}
.wf-art img{display:block;width:100%;height:auto;aspect-ratio:16/7;object-fit:cover}
.wf-top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;background:linear-gradient(180deg,transparent,rgba(9,14,27,.98));pointer-events:none}
.wf-head{position:absolute;left:44px;top:50%;transform:translateY(-46%);width:min(50%,560px);z-index:1}
.wf-head .eyebrow{color:var(--wf-warm);margin-bottom:10px}
.wf-head h2{font-family:var(--display);font-size:clamp(46px,6.2vw,84px);font-weight:600;letter-spacing:.04em;line-height:.9;text-transform:uppercase;margin-bottom:16px;
  background:linear-gradient(180deg,#fff 30%,#bfeaff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 22px rgba(226,58,78,.35))}
.wf-lead{margin:0;color:#d5e0f2;font-size:16.5px;line-height:1.6;text-shadow:0 1px 10px rgba(5,8,17,.9)}
.wf-body{position:relative;padding:14px 44px 42px}
.wf-facts{list-style:none;margin:0 0 30px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.wf-facts li{padding:16px 18px 17px;background:rgba(159,230,255,.045);border:1px solid var(--line);border-left:2px solid var(--wf-red)}
.wf-facts li:nth-child(2){border-left-color:var(--cyan)}
.wf-facts li:nth-child(3){border-left-color:var(--wf-warm)}
.wf-facts b{display:block;font-family:var(--serif);font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#fff;margin-bottom:4px}
.wf-facts span{display:block;color:var(--fg2);font-size:14.5px;line-height:1.55}
.wf-body .ctas{display:flex;flex-wrap:wrap;gap:14px}
@media (max-width:900px){
  .wf-event{padding-top:60px}
  .wf-head{position:static;transform:none;width:auto;padding:18px 22px 0}
  .wf-top::after{display:none}
  .wf-facts{grid-template-columns:1fr}.wf-body{padding:20px 22px 30px}
}
@media (max-width:700px){.wf-art img{aspect-ratio:4/3}}
@media (max-width:560px){.wf-body .ctas .btn{flex:1 1 100%}}

/* ---- snow: three layers of small dots. Each layer is one element twice the screen high, moved down by exactly one tile ( 100vh ): a seamless
   loop on the compositor, nothing is repainted. A slow sideways sway on top ( browsers without the translate property just skip it ). ---- */
.wf-snow{position:fixed;inset:0;z-index:55;overflow:hidden;pointer-events:none;contain:strict}
.wf-snow i{position:absolute;left:-30px;top:-100vh;width:calc(100% + 60px);height:200vh;background-repeat:repeat;will-change:transform;
  animation:wf-fall 38s linear infinite,wf-sway 11s ease-in-out infinite alternate}
.wf-snow i:nth-child(1){opacity:.5;background-size:620px 100vh;background-image:
  radial-gradient(1.2px 1.2px at 7% 4%,#fff 55%,transparent 60%),radial-gradient(1px 1px at 31% 11%,#dff1ff 55%,transparent 60%),
  radial-gradient(1.3px 1.3px at 78% 17%,#fff 55%,transparent 60%),radial-gradient(1px 1px at 52% 26%,#dff1ff 55%,transparent 60%),
  radial-gradient(1.2px 1.2px at 15% 35%,#fff 55%,transparent 60%),radial-gradient(1px 1px at 91% 41%,#fff 55%,transparent 60%),
  radial-gradient(1.3px 1.3px at 40% 49%,#fff 55%,transparent 60%),radial-gradient(1px 1px at 66% 58%,#dff1ff 55%,transparent 60%),
  radial-gradient(1.2px 1.2px at 23% 66%,#fff 55%,transparent 60%),radial-gradient(1px 1px at 84% 73%,#fff 55%,transparent 60%),
  radial-gradient(1.3px 1.3px at 4% 81%,#dff1ff 55%,transparent 60%),radial-gradient(1px 1px at 58% 88%,#fff 55%,transparent 60%),
  radial-gradient(1.2px 1.2px at 36% 95%,#fff 55%,transparent 60%)}
.wf-snow i:nth-child(2){opacity:.62;background-size:940px 100vh;animation-duration:25s,14s;animation-delay:-7s,-3s;background-image:
  radial-gradient(2px 2px at 12% 9%,#fff 55%,transparent 62%),radial-gradient(1.8px 1.8px at 67% 19%,#eaf6ff 55%,transparent 62%),
  radial-gradient(2.2px 2.2px at 38% 37%,#fff 55%,transparent 62%),radial-gradient(1.8px 1.8px at 88% 52%,#eaf6ff 55%,transparent 62%),
  radial-gradient(2px 2px at 21% 64%,#fff 55%,transparent 62%),radial-gradient(2.2px 2.2px at 55% 79%,#fff 55%,transparent 62%),
  radial-gradient(1.8px 1.8px at 79% 93%,#eaf6ff 55%,transparent 62%)}
.wf-snow i:nth-child(3){opacity:.42;background-size:1180px 100vh;animation-duration:16s,9s;animation-delay:-11s,-5s;filter:blur(1.2px);background-image:
  radial-gradient(4px 4px at 17% 21%,#fff 50%,transparent 66%),radial-gradient(3.4px 3.4px at 71% 47%,#eaf6ff 50%,transparent 66%),
  radial-gradient(3.8px 3.8px at 43% 83%,#fff 50%,transparent 66%)}
@keyframes wf-fall{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,100vh,0)}}
@keyframes wf-sway{from{translate:-22px 0}to{translate:22px 0}}
@media (max-width:700px){.wf-snow i:nth-child(3){display:none}.wf-snow i:nth-child(2){opacity:.55}}
@media (prefers-reduced-motion:reduce){.wf-snow{display:none}}
