/* ============================================================
   WEB VENTURES — HOMEPAGE CHRISTMAS OVERLAY (seasonal layer)
   One self-contained bundle: xmas.css + xmas.js + xmas/stills/.
   The page underneath is untouched. Remove this bundle (and its
   two tags) and the homepage is exactly as it was.
   Modes: Christmas (default) / Bah Humbug (toggle, persisted).
   Auto-expiry: 2027-01-02 (enforced in xmas.js — EXPIRES_UTC).
   Round 2 (2026-11-26): toggle lives in the sticky header;
   Humbug kicker copy shortened (see xmas.js SWAPS note);
   ornaments, transition strands, dividers, footer tree/wreath,
   gift accents, warm card glows, richer snow.
   Round 3 (2026-11-26): the toggle leaves the nav row for its
   own slim tier docked under the header (Tony: "its own
   connected small little toolbar"); the header row returns to
   pristine geometry; the hero/anchor clearances are compensated
   by the tier's exact height; Christmas is peppered through the
   bottom half (dividers, a strand, gifts, a second swag, a warm
   halo on the Business OS dashboard).
   ============================================================ */

/* ---------- toggle tier — a slim second bar docked under the header ----------
   The tier lives INSIDE header.nav, directly beneath .nav-in, so
   the pair reads as one two-tier floating toolbar (same glass,
   shared edge) and rides fixed together. 36px tall: just the
   switch + its full label, never a banner. */
.xmas-togglebar{
  height:36px;display:flex;align-items:center;justify-content:center;gap:14px;
  border-top:1px solid rgba(168,200,255,.12);position:relative;
}
.xmas-bar-star{color:#E8B54D;font-size:11px;line-height:1;pointer-events:none;
  text-shadow:0 0 8px rgba(232,181,77,.8);transition:filter .8s ease}
html.xmas-humbug .xmas-bar-star{filter:saturate(.2) brightness(.55);text-shadow:none}
.xmas-toggle{
  display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;white-space:nowrap;
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;font-size:12.5px;letter-spacing:.01em;
  color:#FFF6E8;background:linear-gradient(135deg,#B3271E 0%,#D43D2F 55%,#B3271E 100%);
  border:1.5px solid rgba(255,214,150,.85);border-radius:999px;padding:5px 12px;cursor:pointer;
  box-shadow:0 3px 10px rgba(90,10,0,.35),inset 0 1px 0 rgba(255,255,255,.35);
  transition:background .5s ease,border-color .5s ease,color .5s ease,transform .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.xmas-toggle:hover{transform:translateY(-1px)}
.xmas-toggle:active{transform:scale(.97)}
.xmas-toggle:focus-visible{outline:3px solid #A8C8FF;outline-offset:2px}
.xmas-sw{position:relative;width:26px;height:16px;border-radius:999px;flex:0 0 auto;
  background:rgba(255,246,232,.30);box-shadow:inset 0 1px 3px rgba(0,0,0,.35);transition:background .4s ease}
.xmas-knob{position:absolute;top:2px;left:12px;width:12px;height:12px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#FFFFFF 0%,#FFD98A 60%,#E8B54D 100%);
  box-shadow:0 0 8px 2px rgba(255,217,138,.65);
  transition:left .35s ease,background .4s ease,box-shadow .4s ease;
  animation:xmasPulse 2.2s ease-in-out infinite}
@keyframes xmasPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}
html.xmas-humbug .xmas-toggle{
  background:linear-gradient(135deg,#20301A 0%,#2E4A1E 60%,#20301A 100%);
  border-color:rgba(140,190,90,.7);color:#D8EBC0;
  box-shadow:0 4px 14px rgba(10,30,0,.4),inset 0 1px 0 rgba(255,255,255,.14);
}
html.xmas-humbug .xmas-sw{background:rgba(216,235,192,.18)}
html.xmas-humbug .xmas-knob{left:2px;background:#A8C63F;box-shadow:0 0 6px 1px rgba(168,198,63,.5);animation:none}
/* ---------- toolbar compensation (overlay-active only) ----------
   The docked tier grows the fixed unit by 36px, so the hero's top
   padding and the sections' anchor scroll-margin grow by the same
   36px: every clearance the page was designed with is preserved
   exactly, and nothing slides under the two-tier toolbar. (The
   round-2 phone accommodations — hidden logo tagline, tightened
   nav gaps — are gone; the header row is pristine again.) */
html.xmas-on .hero2,html.xmas-humbug .hero2{padding-top:74px}
html.xmas-on section[id],html.xmas-humbug section[id]{scroll-margin-top:120px}
/* the page's own later inline rule pins these seven anchor targets
   at 96px with ID-level specificity — they get 96 + 36 = 132px */
html.xmas-on #websites,html.xmas-humbug #websites,
html.xmas-on #services,html.xmas-humbug #services,
html.xmas-on #business-os,html.xmas-humbug #business-os,
html.xmas-on #get-started,html.xmas-humbug #get-started,
html.xmas-on .search-sec,html.xmas-humbug .search-sec,
html.xmas-on .price-cards,html.xmas-humbug .price-cards,
html.xmas-on #scDevice,html.xmas-humbug #scDevice{scroll-margin-top:132px}

/* ---------- snow ---------- */
#xmasSnow{position:fixed;inset:0;width:100%;height:100%;z-index:40;pointer-events:none;
  transition:opacity 1.1s ease}
html.xmas-humbug #xmasSnow{opacity:0}

/* ---------- light strands (top fixed / footer / section transitions) ---------- */
.xmas-strand{position:fixed;top:0;left:0;right:0;height:48px;z-index:60;pointer-events:none;overflow:visible}
.xmas-strand-foot{position:relative;height:42px;overflow:visible;pointer-events:none;margin-top:6px}
.xmas-strand-sec{position:relative;height:54px;overflow:visible;pointer-events:none}
.xmas-strand svg.wire,.xmas-strand-foot svg.wire,.xmas-strand-sec svg.wire{position:absolute;inset:0;width:100%;height:100%}
.xmas-bulb{position:absolute;width:9px;height:9px;border-radius:50%;transform:translate(-50%,0);
  transition:background 0.45s ease,box-shadow 0.45s ease}
.xmas-bulb::before{content:"";position:absolute;left:50%;top:-5px;width:3.5px;height:6px;margin-left:-1.75px;
  background:#3A4149;border-radius:1.5px}
.xmas-bulb{animation:xmasTwinkle 2.6s ease-in-out infinite alternate}
@keyframes xmasTwinkle{from{filter:brightness(.82)}to{filter:brightness(1.28)}}
html.xmas-humbug .xmas-bulb{animation:none;background:#3E4A26!important;box-shadow:none!important;filter:brightness(.7)}
.xmas-strand-foot .xmas-bulb,.xmas-strand-sec .xmas-bulb{animation-duration:3.1s}
/* baubles hanging from the strands */
.xmas-orn{position:absolute;border-radius:50%;transform:translate(-50%,0);
  box-shadow:inset -2px -3px 5px rgba(0,0,0,.35),0 2px 5px rgba(0,0,0,.3);
  transition:filter .8s ease}
.xmas-orn::before{content:"";position:absolute;left:50%;bottom:100%;width:1.5px;height:var(--hang,8px);
  margin-left:-.75px;background:rgba(180,195,210,.55)}
html.xmas-humbug .xmas-orn{filter:saturate(.25) brightness(.55)}

/* ---------- garland swag (over the AI showcase stage) ---------- */
.xmas-swag{position:absolute;left:5%;right:5%;top:-16px;height:34px;z-index:6;pointer-events:none;
  transition:transform 1s ease,filter 1s ease;transform-origin:50% 0}
html.xmas-humbug .xmas-swag{transform:rotate(1.6deg) translateY(3px);filter:saturate(.35) brightness(.62)}

/* ---------- festive divider flourishes between sections ---------- */
.xmas-divider{display:flex;align-items:center;justify-content:center;height:30px;pointer-events:none;
  transition:filter .8s ease}
html.xmas-humbug .xmas-divider{filter:saturate(.25) brightness(.6)}

/* ---------- footer vignette: tree + wreath + gifts ---------- */
.xmas-vignette{position:relative;height:104px;pointer-events:none;transition:filter .8s ease}
.xmas-tree{position:absolute;right:4%;bottom:0;width:74px}
.xmas-wreath{position:absolute;left:50%;top:0;width:58px;transform:translateX(-50%);transform-origin:50% 0;
  transition:transform .8s ease}
html.xmas-humbug .xmas-vignette{filter:saturate(.25) brightness(.55)}
html.xmas-humbug .xmas-wreath{transform:translateX(-50%) rotate(5deg)}
.xmas-vignette .xmas-gift{position:absolute;bottom:2px}

/* ---------- gift accents (pricing link, closing CTAs, vignette) ---------- */
.xmas-gift{display:inline-flex;align-self:center;margin:0 9px;vertical-align:-4px;line-height:0;
  transition:filter .8s ease}
.cta-btns .xmas-gift{margin:0 2px}
html.xmas-humbug .xmas-gift{filter:saturate(.25) brightness(.6)}

/* ---------- warm festive glows on key cards (Christmas only) ---------- */
html.xmas-on .ma-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:4;
  box-shadow:inset 0 0 0 1px rgba(255,196,100,.28),inset 0 0 70px rgba(255,130,60,.09),0 0 46px rgba(255,150,60,.10)}
html.xmas-on .pc-card{border:1px solid transparent;
  background:linear-gradient(#ffffff,#ffffff) padding-box,
             linear-gradient(120deg,#B3271E,#E8B54D,#2E7D5B,#8CF0FF,#B3271E) border-box;
  box-shadow:0 10px 30px rgba(7,17,31,.07),0 0 22px rgba(255,160,60,.13)}
html.xmas-on .pc-featured{
  box-shadow:0 14px 36px rgba(30,110,255,.13),0 0 0 1px rgba(46,140,255,.18),
             0 0 24px rgba(56,160,255,.12),0 0 26px rgba(255,160,60,.16)}
/* bottom-half pepper: a warm halo joins the Business OS dashboard's
   own blue glow (its full shadow stack is preserved, plus the gold) */
html.xmas-on .bos3-dash{box-shadow:-30px 34px 70px rgba(0,0,0,.6),0 0 44px rgba(59,130,246,.38),
  0 0 46px rgba(255,150,60,.16),inset 0 1px 0 rgba(186,220,255,.28),
  inset 0 0 50px rgba(56,89,246,.10),inset 0 0 0 1px rgba(255,196,100,.25)}

/* ---------- Humbug guard: the swapped Alex kicker may wrap ----------
   The page styles .ma-kicker nowrap with wide letter-spacing; the
   bundle's grumpy line must never be able to inflate the card grid. */
html.xmas-humbug .ma-kicker{white-space:normal}

/* ---------- hats on artwork ---------- */
.logo{position:relative}
.xmas-logo-hat{position:absolute;width:27px;left:-5px;top:-14px;transform:rotate(-14deg);z-index:3;
  pointer-events:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));transition:opacity .6s ease,transform .6s ease}
html.xmas-humbug .xmas-logo-hat{opacity:0;transform:rotate(-30deg) translateY(6px)}
.ma-orb-stack{position:relative}
.xmas-orb-hat{position:absolute;width:64%!important;left:20%;top:-12%;transform:rotate(-8deg);z-index:6;
  pointer-events:none;filter:drop-shadow(0 4px 8px rgba(0,0,0,.3));transition:opacity .6s ease,transform .6s ease}
html.xmas-humbug .xmas-orb-hat{opacity:0;transform:rotate(-24deg) translateY(10px)}

/* ---------- hatted stills in the AI Employees strip ---------- */
#services .hps-slide{position:relative}
.xmas-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
  opacity:0;transition:opacity .7s ease;pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 86% 92% at 50% 48%,#000 52%,transparent 97%);
  mask-image:radial-gradient(ellipse 86% 92% at 50% 48%,#000 52%,transparent 97%);
  animation:xmasFloat 7s ease-in-out infinite alternate}
#services .hps-slide[data-role="coordinator"] .xmas-still{
  -webkit-mask-image:radial-gradient(ellipse 88% 95% at 50% 50%,#000 60%,transparent 97%);
  mask-image:radial-gradient(ellipse 88% 95% at 50% 50%,#000 60%,transparent 97%)}
#services .hps-slide:nth-child(2n) .xmas-still{animation-delay:-2.4s}
#services .hps-slide:nth-child(3n) .xmas-still{animation-delay:-4.6s}
@keyframes xmasFloat{from{transform:translateY(0) scale(1)}to{transform:translateY(-7px) scale(1.014)}}
html.xmas-on .xmas-still{opacity:1}
html.xmas-on #services .hps-slide video{visibility:hidden}

/* ---------- humbug grouch cast ---------- */
#xmasTint{position:fixed;inset:0;z-index:39;pointer-events:none;opacity:0;transition:opacity 1.2s ease;
  background:rgba(58,102,18,.16);mix-blend-mode:multiply}
html.xmas-humbug #xmasTint{opacity:1}

/* ---------- festive button shimmer (Christmas only) ---------- */
html.xmas-on .h2-btn.primary,html.xmas-on .hps-btn{position:relative;overflow:hidden}
html.xmas-on .h2-btn.primary::after,html.xmas-on .hps-btn::after{
  content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,226,160,.5),transparent);
  transform:skewX(-18deg);animation:xmasShine 4.2s ease-in-out infinite}
@keyframes xmasShine{0%,55%{left:-70%}90%,100%{left:130%}}

/* ---------- sleigh dash ---------- */
.xmas-sleigh{position:absolute;top:12%;left:0;width:120px;z-index:3;pointer-events:none;opacity:0}
.xmas-sleigh.fly{animation:xmasSleigh 7.5s linear forwards}
@keyframes xmasSleigh{
  0%{transform:translateX(-15vw) translateY(0);opacity:0}
  8%{opacity:.85}
  50%{transform:translateX(45vw) translateY(-26px)}
  92%{opacity:.85}
  100%{transform:translateX(108vw) translateY(4px);opacity:0}}

/* ---------- reduced motion: decorated but still ---------- */
@media (prefers-reduced-motion: reduce){
  .xmas-bulb,.xmas-still,.xmas-knob,
  html.xmas-on .h2-btn.primary::after,html.xmas-on .hps-btn::after{animation:none!important}
  .xmas-sleigh{display:none}
}
