/* ============================================================
   Cyberry - Christmas layer (concept, Oct 2026)
   Loaded AFTER style.css, only on pages whose <body> has .christmas (every page since 17 Nov 2026; the
   "has moved" stub pages redirect straight away and are left alone).
   The brand red stays, the dark bands go pine green, and gold picks out the details.
   Decorations (snow caps, light strings, presents, Santa, the sleigh) are aria-hidden extras that
   christmas.js draws. Every rule is prefixed with .christmas so it outranks the `.bh-box > *` style child rules.
   ============================================================ */

body.christmas{
  --pine:#0f4a32;
  --pine-deep:#08261b;
  --pine-2:#0f3d2b;
  --gold:#f2c14e;
  --gold-deep:#b9861a;
  --navy:#08261b;
  --navy-2:#0f3d2b;
  --dark:#0a231a;
  --dark-2:#0f3326;
  --bg:#f5f8f5;
  --bg-2:#ebf1ec;
}

/* ---------- snow caps: christmas.js draws each one to its button's or card's own outline ---------- */
.christmas .btn,.christmas .tabbar [role=tab],.christmas .rate,.christmas .quote,.christmas .plan-card,.christmas .rp-card{position:relative}
.christmas .xm-cap{position:absolute;z-index:3;pointer-events:none;line-height:0}
.christmas .xm-cap svg,.christmas .btn .xm-cap svg,.christmas .btn:hover .xm-cap svg{display:block;width:100%;height:100%;overflow:visible;transform:none;
  filter:drop-shadow(0 1px 1.2px rgba(20,40,70,.18))}

/* ---------- accents ---------- */
.christmas .dark-sec .eyebrow,.christmas .cta-band .eyebrow,.christmas .navy-sec .mk-num,.christmas .navy-sec .f-list li svg,.christmas .navy-sec .textlink{color:var(--gold)}
.christmas .navy-sec .mk-num i{background:var(--gold);color:var(--pine-deep)}
.christmas .stat .num em{color:var(--gold)}
.christmas .rate.feature-rate{background:var(--pine-deep);border-color:var(--pine-deep)}
.christmas .rate .pop{background:var(--gold);color:var(--pine-deep)}
.christmas .plan-back{background:linear-gradient(135deg,var(--pine),var(--berry))}
.christmas .plan-row.xm-row .when{color:var(--berry)}
.christmas .xm-tag{display:inline-flex;align-items:center;gap:.5em;margin:0 0 1.1rem;padding:.45em 1em;border-radius:100px;
  background:rgba(15,74,50,.09);color:var(--pine);font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}

/* ---------- pine-green nights: hero box, navy + dark bands, CTA ---------- */
.christmas .bh-box:not(.bh-cai),.christmas .cta-band{
  background:radial-gradient(60% 90% at 88% 112%,rgba(225,20,54,.72),transparent 62%),
             radial-gradient(50% 70% at 6% -12%,rgba(242,193,78,.26),transparent 62%),
             linear-gradient(135deg,#071f16 0%,#0f3d2b 55%,#3b0d1c 100%)}
.christmas .navy-sec{background:radial-gradient(55% 80% at 100% 100%,rgba(225,20,54,.3),transparent 65%),linear-gradient(160deg,#071f16 0%,#0f3d2b 60%,#2a0f1a 100%)}
.christmas .dark-sec{background:radial-gradient(60% 70% at 50% 125%,rgba(225,20,54,.4),transparent 70%),linear-gradient(180deg,#06190f,#0c2c20)}

/* home hero keeps its red spotlight; a moon and a few stars go up behind the logo */
.christmas .xm-sky{position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(1.4px 1.4px at 12% 18%,rgba(255,255,255,.75),transparent),radial-gradient(1px 1px at 22% 9%,rgba(255,255,255,.6),transparent),
    radial-gradient(1.2px 1.2px at 34% 26%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 63% 7%,rgba(255,255,255,.6),transparent),
    radial-gradient(1.4px 1.4px at 71% 31%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 88% 40%,rgba(255,255,255,.6),transparent),
    radial-gradient(1.2px 1.2px at 6% 42%,rgba(255,255,255,.5),transparent),radial-gradient(1.3px 1.3px at 95% 12%,rgba(255,255,255,.6),transparent)}
.christmas .xm-moon{position:absolute;right:9%;top:9%;width:clamp(64px,8.5vw,136px);aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(16% 16% at 62% 58%,rgba(170,186,210,.45),transparent 70%),
             radial-gradient(11% 11% at 34% 66%,rgba(170,186,210,.4),transparent 70%),
             radial-gradient(8% 8% at 56% 28%,rgba(170,186,210,.35),transparent 70%),
             radial-gradient(circle at 38% 34%,#ffffff,#f4f6fb 50%,#dfe5ef 80%,#cfd7e5);
  box-shadow:0 0 50px 10px rgba(255,255,255,.28),0 0 150px 46px rgba(255,235,220,.14)}
@media(max-width:760px){.christmas .shero .xm-moon{right:7%;top:8%;width:56px}}
/* hero boxes: the moon is tucked into the top-right corner, clear of long two-line headings */
.christmas .bh-box > .xm-moon{position:absolute;z-index:0;right:4.5%;top:7%;width:clamp(50px,6vw,96px);opacity:.92}
@media(max-width:760px){.christmas .bh-box > .xm-moon{right:6%;top:4%;width:46px}}

/* Santa hats on the logos (christmas.js draws the hat; positions are % of the logo). On the hero it hangs off
   .sh-logo, not .sh-logo-in: main.js clips .sh-logo-in for the wordmark wipe, which would cut the hat off */
.christmas .xm-hat{position:absolute;pointer-events:none;line-height:0}
.christmas .xm-hat svg{width:100%;height:auto;display:block;overflow:visible}
.christmas .sh-logo .xm-hat{left:6.4%;top:-29%;width:15%;rotate:-12deg;animation:shIn .3s ease-out both}
.christmas .brand{position:relative}
.christmas .brand .xm-hat{left:calc(14.2% - 10px);top:-4px;width:20px;rotate:-14deg}

/* ---------- Santa's sleigh: crosses the sky now and then ---------- */
.christmas .xm-sleigh{position:absolute;left:0;top:var(--y,15%);width:clamp(150px,17vw,250px);color:#2b0710;pointer-events:none;
  animation:xmSleigh var(--d,24s) linear var(--dl,2s) infinite;transform:translateX(-120%)}
.christmas .xm-sleigh i{display:block;animation:xmBob 2.6s ease-in-out infinite alternate}
.christmas .xm-sleigh svg{display:block;width:100%;height:auto;overflow:visible}
.christmas .bh-box .xm-sleigh{z-index:0;color:#04140d;--y:7%}
.christmas .xm-leg{animation:xmGallopA .44s linear var(--off,0s) infinite}
.christmas .xm-leg.b{animation-name:xmGallopB}
@keyframes xmGallopA{0%,49.9%{opacity:1}50%,100%{opacity:0}}
@keyframes xmGallopB{0%,49.9%{opacity:0}50%,100%{opacity:1}}
@keyframes xmSleigh{0%{transform:translateX(-120%)}55%,100%{transform:translateX(calc(100vw + 20%))}}
@keyframes xmBob{from{transform:translateY(-6px) rotate(-3deg)}to{transform:translateY(8px) rotate(1deg)}}

/* ---------- presents ---------- */
.christmas .xm-gifts{position:absolute;z-index:4;display:flex;align-items:flex-end;pointer-events:none}
.christmas .xm-gifts .xm-gift + .xm-gift{margin-left:calc(var(--s) * -.12)}
.christmas .xm-gift{display:block;width:var(--s,60px);line-height:0;flex:none}
.christmas .xm-gift svg{width:100%;height:auto;display:block;overflow:visible;filter:drop-shadow(0 6px 8px rgba(0,0,0,.22))}
.christmas .xm-sit{bottom:calc(100% - 4px)}
.christmas .xm-floor{bottom:-4px}
.christmas .rp-card .xm-gift{--s:clamp(34px,5.4vw,78px)}
.christmas .rp-card .xm-gift.sm{--s:clamp(24px,3.6vw,50px)}
.christmas .bh-box .xm-gift,.christmas .cta-band .xm-gift{--s:clamp(38px,5.2vw,76px)}
.christmas .bh-box .xm-gift.sm,.christmas .cta-band .xm-gift.sm{--s:clamp(26px,3.5vw,50px)}
.christmas .xm-gift.xm-inline{display:inline-block;width:18px;vertical-align:-2px;margin-left:6px}
.christmas .xm-gift.xm-inline svg{filter:none}
.christmas .float-ic .xm-gift{width:34px}
.christmas .float-ic .xm-gift svg{width:34px;height:auto;filter:none}

/* ---------- Santa peeks over the top edge of the CTA boxes, gloves hooked over the edge ----------
   The artwork's box edge is 132/150 of its height (= 9% of its width above its bottom), so that is where it sits.
   He rises from behind the edge when the box scrolls in (main.js adds .in). The box no longer clips, so he can stand out. */
.christmas .cta-band{overflow:visible}
.christmas .cta-band .xm-floor{bottom:0;clip-path:inset(-60px -40px 0 -40px)}   /* the box no longer clips, so stop the gift shadows spilling under it */
.christmas .xm-santa{--sw:clamp(118px,13vw,184px);position:absolute;z-index:4;left:7%;width:var(--sw);bottom:calc(100% - var(--sw) * .09);
  pointer-events:none;line-height:0}
.christmas .xm-santa svg{width:100%;height:auto;display:block;overflow:visible}
.christmas .xm-santa .xm-head{transform:translateY(105px);transition:transform .9s cubic-bezier(.22,1.15,.36,1) .35s}
.christmas .xm-santa .xm-hands{opacity:0;transform:translateY(5px);transition:opacity .35s ease .15s,transform .45s ease .15s}
.christmas .cta-band.in .xm-santa .xm-head,.christmas .cta-band.in .xm-santa .xm-hands,
.christmas .cta-band:not(.reveal) .xm-santa .xm-head,.christmas .cta-band:not(.reveal) .xm-santa .xm-hands{transform:none;opacity:1}
.christmas .xm-eyes{transform-box:fill-box;transform-origin:center;animation:xmBlink 5.5s 2.4s infinite}
@keyframes xmBlink{0%,93%,100%{transform:none}95.5%{transform:scaleY(.12)}}
/* his tricks (christmas.js adds .wave or .gift for one go). The arms rise from behind the edge; the gripping glove on
   that side lets go while the arm is up, and his head tilts towards what he's doing. Hover = wave, click/tap = present */
.christmas .xm-santa svg{pointer-events:auto;cursor:pointer}
.christmas .xm-arm{transform-box:view-box;transform:translateY(110px)}
.christmas .xm-arm.r{transform-origin:176px 140px}
.christmas .xm-arm.l{transform-origin:34px 140px}
.christmas .xm-tilt{transform-box:view-box;transform-origin:100px 124px}
.christmas .xm-grip{transform-box:view-box}
.christmas .xm-spark{transform-box:fill-box;transform-origin:center;transform:scale(0)}
.christmas .xm-santa.wave .xm-arm.r{animation:xmArmWave 2.4s ease-in-out both}
.christmas .xm-santa.wave .xm-grip.r{animation:xmLetGo 2.4s ease both}
.christmas .xm-santa.wave .xm-tilt{animation:xmTiltR 2.4s ease-in-out both}
.christmas .xm-santa.gift .xm-arm.l{animation:xmArmGift 2.8s ease-in-out both}
.christmas .xm-santa.gift .xm-grip.l{animation:xmLetGo 2.8s ease both}
.christmas .xm-santa.gift .xm-tilt{animation:xmTiltL 2.8s ease-in-out both}
.christmas .xm-santa.gift .xm-spark{animation:xmSpark 2.8s ease-out both}
.christmas .xm-santa.gift .xm-sparks g:nth-child(2n) .xm-spark{animation-delay:.08s}
.christmas .xm-santa.gift .xm-sparks g:nth-child(3n) .xm-spark{animation-delay:.16s}
@keyframes xmArmWave{
  0%{transform:translateY(110px) rotate(12deg)}16%{transform:translateY(0) rotate(14deg)}28%{transform:translateY(0) rotate(9deg)}
  40%{transform:translateY(0) rotate(22deg)}52%{transform:translateY(0) rotate(9deg)}64%{transform:translateY(0) rotate(20deg)}
  78%{transform:translateY(0) rotate(12deg)}100%{transform:translateY(110px) rotate(12deg)}}
@keyframes xmArmGift{
  0%{transform:translateY(110px) rotate(-7deg)}17%{transform:translateY(-7px) rotate(-10deg)}25%{transform:translateY(0) rotate(-3deg)}
  37%{transform:translateY(-2px) rotate(-12deg)}49%{transform:translateY(0) rotate(-2deg)}61%{transform:translateY(-2px) rotate(-11deg)}
  74%{transform:translateY(0) rotate(-7deg)}100%{transform:translateY(110px) rotate(-7deg)}}
@keyframes xmLetGo{0%{opacity:1;transform:none}9%,88%{opacity:0;transform:translateY(-5px)}100%{opacity:1;transform:none}}
@keyframes xmTiltR{0%,100%{transform:none}20%,74%{transform:rotate(5deg)}}
@keyframes xmTiltL{0%,100%{transform:none}20%,72%{transform:rotate(-6deg)}}
@keyframes xmSpark{0%,15%{transform:scale(0) rotate(0)}24%{transform:scale(1.15) rotate(45deg)}34%{transform:scale(.5) rotate(70deg)}
  42%{transform:scale(1) rotate(90deg)}56%,100%{transform:scale(0) rotate(135deg)}}
@media(max-width:560px){
  .christmas .xm-santa{left:5%}
  .christmas .cta-band .xm-floor{right:max(4%,22px) !important}
  .christmas .cta-band .xm-gift.sm,.christmas .bh-box .xm-gift.sm{display:none}
}

/* ---------- Rudolph peeks over the top edge of the Best Value rate card (no lights or snow on that card, so it reads) ----------
   Same artwork frame as Santa: the card edge is 9% of his width above his bottom. He rises when the card scrolls in.
   His nose glows on a slow pulse, he blinks, his ears twitch now and then; hover = ears wiggle, click/tap = nose flash.
   The rates get more room above (and between rows when they wrap) so his antlers never touch anything. */
.christmas .rates{margin-top:clamp(92px,9vw,118px) !important}
@media(max-width:920px){.christmas .rates{row-gap:clamp(84px,12vw,104px)}}
@media(max-width:520px){.christmas .rates{row-gap:16px}.christmas .rates > .feature-rate{margin-top:76px}}
.christmas .xm-rudolph{--rw:clamp(104px,9.6vw,138px);position:absolute;z-index:4;left:9%;width:var(--rw);bottom:calc(100% - var(--rw) * .09);
  pointer-events:none;line-height:0}
.christmas .xm-rudolph svg{width:100%;height:auto;display:block;overflow:visible;pointer-events:auto;cursor:pointer}
.christmas .xm-rudolph .xm-head{transform:translateY(105px);transition:transform .9s cubic-bezier(.22,1.15,.36,1) .45s}
.christmas .xm-rudolph .xm-hands{opacity:0;transform:translateY(5px);transition:opacity .35s ease .25s,transform .45s ease .25s}
.christmas .feature-rate.in .xm-rudolph .xm-head,.christmas .feature-rate.in .xm-rudolph .xm-hands,
.christmas .feature-rate:not(.reveal) .xm-rudolph .xm-head,.christmas .feature-rate:not(.reveal) .xm-rudolph .xm-hands{transform:none;opacity:1}
.christmas .xm-rudolph .xm-glow{transform-box:fill-box;transform-origin:center;animation:xmNose 2.2s ease-in-out infinite alternate}
@keyframes xmNose{from{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1.1)}}
.christmas .xm-ear{transform-box:view-box}
.christmas .xm-ear.l{transform-origin:72px 74px;animation:xmEar 5.2s ease-in-out 1.4s infinite}
.christmas .xm-ear.r{transform-origin:72px 74px;animation:xmEar 5.2s ease-in-out 4s infinite}
@keyframes xmEar{0%,86%,100%{transform:none}89%{transform:rotate(-16deg)}92%{transform:rotate(5deg)}95%{transform:rotate(-9deg)}}
.christmas .xm-rudolph.wiggle .xm-ear{animation:xmWiggle .9s ease-in-out}
@keyframes xmWiggle{0%,100%{transform:none}20%{transform:rotate(-18deg)}45%{transform:rotate(8deg)}70%{transform:rotate(-12deg)}}
.christmas .xm-rudolph .xm-bob,.christmas .xm-rudolph .xm-nose{transform-box:view-box}
.christmas .xm-rudolph .xm-nose{transform-origin:100px 100px}
.christmas .xm-rudolph.boop .xm-nose{animation:xmBoop 1.3s ease-out}
.christmas .xm-rudolph.boop .xm-glow{animation:xmBoopGlow 1.3s ease-out}
.christmas .xm-rudolph.boop .xm-bob{animation:xmBob2 1.3s ease-out}
@keyframes xmBoop{0%,100%{transform:none;filter:none}12%{transform:scale(.8)}30%{transform:scale(1.28);filter:brightness(1.35)}55%{transform:scale(1.1);filter:brightness(1.2)}}
@keyframes xmBoopGlow{0%{opacity:.5;transform:scale(1)}30%{opacity:1;transform:scale(1.9)}60%{opacity:1;transform:scale(1.4)}100%{opacity:.6;transform:scale(1)}}
@keyframes xmBob2{0%,100%{transform:none}14%{transform:translateY(3px)}34%{transform:translateY(-5px)}58%{transform:translateY(1px)}}

/* ---------- light strings round a box (christmas.js draws a wire with real bulbs that follows the box's rounded edge) ---------- */
.christmas .xm-rope{position:absolute;left:0;top:0;z-index:2;pointer-events:none;overflow:visible}
.christmas .xm-rope .wire{fill:none;stroke:#1d3b2a;stroke-width:1.3;stroke-linejoin:round}
.christmas .xm-rope.on-dark .wire{stroke:rgba(0,0,0,.55)}

/* ---------- a string of bulbs hanging under the nav ---------- */
.christmas .xm-festoon{position:absolute;z-index:1;left:0;right:0;top:100%;height:40px;pointer-events:none;overflow:visible}
.christmas .nav .menu{z-index:5}   /* the dropdowns open over the bulbs, not under them */
.christmas .xm-festoon svg{display:block;overflow:visible}
/* the bulbs flicker: each one mostly steady, with a quick stutter now and then. Three patterns, each bulb on its own
   random length and start (christmas.js sets --t and --td), so they never flicker together */
.christmas .xm-bulb .glass{animation:xmFlA var(--t,3s) linear var(--td,0s) infinite}
.christmas .xm-bulb .glow{animation:xmFlAg var(--t,3s) linear var(--td,0s) infinite}
.christmas .xm-bulb:nth-child(3n+2) .glass{animation-name:xmFlB}.christmas .xm-bulb:nth-child(3n+2) .glow{animation-name:xmFlBg}
.christmas .xm-bulb:nth-child(3n) .glass{animation-name:xmFlC}.christmas .xm-bulb:nth-child(3n) .glow{animation-name:xmFlCg}
.christmas .xm-rope:not(.on-dark) .glow{fill-opacity:.45}
@keyframes xmFlA{0%,11%,13%,15.5%,58%,61%,100%{opacity:1}12%{opacity:.4}14%{opacity:.6}59%{opacity:.45}}
@keyframes xmFlAg{0%,11%,13%,15.5%,58%,61%,100%{opacity:.85}12%{opacity:.08}14%{opacity:.25}59%{opacity:.1}}
@keyframes xmFlB{0%,30%,32%,34.5%,76%,84%,100%{opacity:1}31%{opacity:.4}33%{opacity:.5}78%,82%{opacity:.55}}
@keyframes xmFlBg{0%,30%,32%,34.5%,76%,84%,100%{opacity:.85}31%{opacity:.08}33%{opacity:.15}78%,82%{opacity:.2}}
@keyframes xmFlC{0%,45%,47%,90%,92.5%,100%{opacity:1}46%{opacity:.4}91%{opacity:.5}}
@keyframes xmFlCg{0%,45%,47%,90%,92.5%,100%{opacity:.85}46%{opacity:.08}91%{opacity:.12}}

/* ---------- falling snow ---------- */
.xm-snow{position:fixed;inset:0;z-index:55;pointer-events:none;width:100vw;height:100vh}
.xm-toggle{position:fixed;left:16px;bottom:16px;z-index:70;display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 10px;
  border-radius:100px;border:1px solid rgba(255,255,255,.18);background:rgba(8,38,27,.92);color:#fff;cursor:pointer;
  font:700 .78rem/1 "Montserrat",system-ui,sans-serif;letter-spacing:.02em;box-shadow:0 12px 28px -14px rgba(0,0,0,.6)}
.xm-toggle:hover{border-color:rgba(242,193,78,.7)}
.xm-toggle svg{width:18px;height:18px}
.xm-toggle[aria-pressed=false] svg{opacity:.4}
.xm-calm .xm-snow{display:none}
@media(max-width:560px){.xm-toggle{padding:9px}.xm-toggle span{display:none}}

@media(prefers-reduced-motion:reduce){
  .christmas .xm-sleigh{display:none}
  .christmas .xm-eyes,.christmas .xm-bulb .glass,.christmas .xm-bulb .glow,.christmas .xm-leg{animation:none}
  .christmas .xm-leg.b{opacity:0}
  .christmas .xm-santa .xm-head,.christmas .xm-santa .xm-hands{transform:none;opacity:1;transition:none}
  .christmas .xm-santa.gift .xm-arm.l{animation:none;transform:none}
  .christmas .xm-santa.gift .xm-grip.l{animation:none;opacity:0}
  .christmas .xm-santa.gift .xm-tilt,.christmas .xm-santa.gift .xm-spark{animation:none}
  .christmas .xm-rudolph .xm-head,.christmas .xm-rudolph .xm-hands{transform:none;opacity:1;transition:none}
  .christmas .xm-rudolph .xm-glow,.christmas .xm-ear,.christmas .xm-rudolph.boop .xm-nose,.christmas .xm-rudolph.boop .xm-bob{animation:none}
  .christmas .xm-rudolph.boop .xm-glow{animation:none;opacity:1;transform:scale(1.5)}
}

/* ============================================================
   The rest of the site (17 Nov 2026): About, Technology, Solutions, cAIdence, case studies,
   Community Stories, Know-How and the 404 page. Same pine nights, same gold; these are the
   bits those pages use that Home and Marketing don't.
   ============================================================ */
/* About: the values numbers on the navy band */
.christmas .navy-sec .value .v-n{color:var(--gold)}
/* Community Stories is a dark page and stays dark; stars and a moon over its hero. The right-hand side
   is full of floating icons, so the moon sits just right of centre, above the copy */
.christmas .st-hero > .xm-sky{z-index:0}
.christmas .st-hero > .xm-moon{z-index:0;top:7%;right:auto;left:66%;width:clamp(56px,6.4vw,100px)}
@media(max-width:900px){.christmas .st-hero > .xm-moon{top:22px;width:52px}}
@media(max-width:560px){.christmas .st-hero > .xm-moon{top:16px;left:auto;right:24%;width:40px}}
/* phones: boxes with a light string get wider side padding, so the bulbs never sit over the copy */
@media(max-width:600px){.christmas .bh-box[data-rope],.christmas .cta-band[data-rope]{padding-left:36px;padding-right:36px}}
