/* ==========================================================================
   December on softbnb.com (owner, 22 Nov 2026). Loaded only while a December look is on (App\Support\WebTheme,
   partials/december/head); <body> then carries .dec-on and .dec--bulbs | .dec--gift | .dec--crossover.
   The season lives in the home hero, the header and the footer. Cards, prices, the search box and every button are
   today's and are never touched here. Motion is transform and opacity only; Reduce Motion shows the resting frame.
   Self-contained colours (the design's): pages without softbnb-ds.css use this file too.
   ========================================================================== */

/* ── Motion of the drawings (the design's classes, scoped to the December drawings) ─────────────────────── */
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-band, .dec-fsky) .dl { animation: dec-lit .5s cubic-bezier(.2,.8,.2,1) both; }
:is(.dec-art, .dec-hstr, .dec-fstr) .s0{animation-delay:.25s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s1{animation-delay:.32s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s2{animation-delay:.39s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s3{animation-delay:.46s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s4{animation-delay:.53s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s5{animation-delay:.60s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s6{animation-delay:.67s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s7{animation-delay:.74s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s8{animation-delay:.81s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s9{animation-delay:.88s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s10{animation-delay:.95s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s11{animation-delay:1.02s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s12{animation-delay:1.09s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s13{animation-delay:1.16s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s14{animation-delay:1.23s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s15{animation-delay:1.30s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s16{animation-delay:1.37s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s17{animation-delay:1.44s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s18{animation-delay:1.51s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s19{animation-delay:1.58s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s20{animation-delay:1.65s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s21{animation-delay:1.72s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s22{animation-delay:1.79s}
:is(.dec-art, .dec-hstr, .dec-fstr) .s23{animation-delay:1.86s}
@keyframes dec-lit { from { opacity: 0; } }

:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .dt { animation: dec-tw 3.4s ease-in-out infinite; }
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k0{animation-delay:-.3s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k1{animation-delay:-.8s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k2{animation-delay:-1.4s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k3{animation-delay:-1.9s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k4{animation-delay:-2.3s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k5{animation-delay:-2.8s}
:is(.dec-art, .dec-hstr, .dec-fstr, .dec-fsky) .k6{animation-delay:-3.1s}
@keyframes dec-tw { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.dec-fsky .dwin { animation: dec-win 6s steps(1) infinite; }
@keyframes dec-win { 0% { opacity: .2; } 12%, 100% { opacity: 1; } }

:is(.dec-art, .dec-fsky) .dbu { animation: dec-boom 7s cubic-bezier(.15,.7,.3,1) infinite both; }
:is(.dec-art, .dec-fsky) .dbu.b1 { animation-delay: 1.2s; }
:is(.dec-art, .dec-fsky) .dbu.b2 { animation-delay: 2.1s; }
:is(.dec-art, .dec-fsky) .dbu.b3 { animation-delay: 3.6s; }
@keyframes dec-boom {
  0% { transform: scale(.15); opacity: 0; }
  4% { opacity: 1; }
  24% { transform: scale(1); opacity: 1; }
  46%, 100% { transform: scale(1.06); opacity: 0; }
}

.dec-art .dsweep { animation: dec-sweep 6.5s cubic-bezier(.45,0,.55,1) 1.6s infinite; }
@keyframes dec-sweep { 0% { transform: skewX(-18deg) translateX(0); } 60%, 100% { transform: skewX(-18deg) translateX(180%); } }
:is(.dec-art, .dec-band) .dunroll { transform-box: fill-box; transform-origin: 0 50%; animation: dec-unroll 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
.dec-art .dunrollv { transform-box: fill-box; transform-origin: 50% 0; animation: dec-unrollv 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dec-unroll { from { transform: scaleX(0); } }
@keyframes dec-unrollv { from { transform: scaleY(0); } }
.dec-art .dbow { transform-box: fill-box; transform-origin: 50% 30%; animation: dec-bow .9s cubic-bezier(.3,1.6,.5,1) 1.05s both; }
@keyframes dec-bow { from { transform: translateY(-36px) scale(.5); opacity: 0; } }
.dec-art .dsw { transform-box: view-box; transform-origin: 0 0; animation: dec-swing 4.4s ease-in-out 2s infinite alternate; }
@keyframes dec-swing { from { transform: rotate(-5deg); } to { transform: rotate(4deg); } }

/* Off screen (js/december.js): the drawings hold still, so a page scrolled past the hero costs nothing */
.dec-paused :is(.dec-art, .dec-fstr, .dec-fsky) *,
.dec-paused.dec-foot * { animation-play-state: paused !important; }

/* ── Home hero ────────────────────────────────────────────────────────────────────────────────────────────── */
.dec-stage { background: #14100E; overflow: hidden; }
.dec-stage--gift { background: #1F5C45; }
.dec-stage .dec-poster,
.dec-stage .dec-poster img,
.dec-stage .dec-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.dec-stage img { animation: none; }
.dec-stage .dec-video { opacity: 0; transition: opacity 900ms cubic-bezier(.2,.8,.2,1); }
.dec-stage .dec-video.is-on { opacity: 1; }
.dec-stage .dec-video[data-still] { display: none; }
.dec-draw { position: absolute; inset: 0; pointer-events: none; }
.dec-art { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
@media (min-width: 1200px) { .dec-art--d { display: block; } }
@media (min-width: 601px) and (max-width: 1199.98px) { .dec-art--t { display: block; } }
@media (max-width: 600px) { .dec-art--p { display: block; } }

/* The scrim: the words always readable; the top stays clear so the bulbs and bursts glow */
.dec-hero .sb-hero__overlay {
  background:
    linear-gradient(to top, rgba(20,16,14,.88) 0%, rgba(20,16,14,.55) 30%, rgba(20,16,14,0) 60%),
    linear-gradient(to right, rgba(20,16,14,.7) 0%, rgba(20,16,14,.36) 40%, rgba(20,16,14,0) 66%);
}
.dec-hero--gift .sb-hero__overlay {
  background:
    linear-gradient(to top, rgba(8,26,19,.9) 0%, rgba(8,26,19,.58) 30%, rgba(8,26,19,0) 62%),
    linear-gradient(to right, rgba(8,26,19,.86) 0%, rgba(10,34,25,.6) 40%, rgba(10,34,25,0) 66%);
}
@media (max-width: 600px) {
  .dec-hero .sb-hero__overlay {
    background: linear-gradient(180deg, rgba(20,16,14,.12) 0%, rgba(20,16,14,.2) 30%, rgba(20,16,14,.66) 58%, rgba(20,16,14,.86) 100%);
  }
  .dec-hero--crossover .sb-hero__overlay {
    background: linear-gradient(180deg, rgba(20,16,14,.3) 0%, rgba(20,16,14,.5) 22%, rgba(20,16,14,.72) 50%, rgba(20,16,14,.88) 100%);
  }
  .dec-hero--gift .sb-hero__overlay {
    background: linear-gradient(180deg, rgba(8,26,19,.5) 0%, rgba(8,26,19,0) 18%, rgba(8,26,19,.62) 46%, rgba(8,26,19,.88) 100%);
  }
}

.dec-hero .dec-eyebrow { color: #FFE2A0; }
.dec-hero--gift .dec-eyebrow { color: #F3D08A; }
.dec-hero--crossover .dec-eyebrow { color: #E9B44C; }
.dec-hero .sb-hero__title { color: #FBF7F2; }

/* C · the year, the knot as its 0 and the last digit rolling on (right of the words; above them on a phone) */
.dec-hero--crossover .sb-hero__inner { position: relative; }
.dec-year {
  display: flex; align-items: center;
  font-family: Ubuntu, system-ui, sans-serif; font-weight: 700; line-height: 1; letter-spacing: -.02em;
  color: #FBF7F2; font-size: 150px; gap: 6px;
  position: absolute; right: var(--sb-5, 24px); top: clamp(24px, 6vh, 72px);
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.dec-year__knot { display: grid; place-items: center; width: .62em; height: .82em; }
.dec-year__knot svg { width: .7em; height: .7em; display: block; }
.dec-roll { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; vertical-align: top; }
.dec-roll > span { display: block; transform: translateY(-1em); animation: dec-roll 8s cubic-bezier(.6,0,.2,1.25) .8s infinite; }
.dec-year.is-past .dec-roll > span { animation: none; transform: translateY(-1em); }
@keyframes dec-roll { 0%, 18% { transform: translateY(0); } 28%, 100% { transform: translateY(-1em); } }
@media (max-width: 1199.98px) { .dec-year { font-size: 96px; } }
@media (max-width: 991.98px) {
  .dec-hero--crossover .sb-hero__copy { display: flex; flex-direction: column; }
  .dec-hero--crossover .dec-year { position: static; order: -1; font-size: 72px; gap: 3px; margin-bottom: 20px; }
  /* the year sits above the words: start below the header bar, which overlaps the hero's top */
  .dec-hero--crossover .sb-hero__inner { padding-top: 120px; }
}
@media (max-width: 600px) { .dec-hero--crossover .dec-year { font-size: 64px; margin-bottom: 14px; } }

/* C · the countdown */
.dec-cd { display: flex; gap: 10px; margin-top: 26px; }
.dec-cd > div {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 84px; border-radius: 12px;
  background: rgba(251,247,242,.08); border: 1px solid rgba(233,180,76,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dec-cd b { font-family: Ubuntu, system-ui, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.1; color: #FBF7F2; font-variant-numeric: tabular-nums; }
.dec-cd small { margin-top: 4px; font-family: Poppins, Ubuntu, sans-serif; font-size: 11px; color: #D8CFC7; letter-spacing: .06em; text-transform: uppercase; }
.dec-cd__note { margin: 10px 0 0; font-family: Poppins, Ubuntu, sans-serif; font-size: 14px; color: #D8CFC7; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.dec-cd__note--done { color: #F3D08A; }
@media (max-width: 767.98px) {
  .dec-cd { gap: 8px; margin-top: 18px; }
  .dec-cd > div { width: 64px; height: 58px; border-radius: 10px; }
  .dec-cd b { font-size: 22px; }
  .dec-cd small { font-size: 9px; margin-top: 3px; }
  .dec-cd__note { font-size: 12px; }
}

/* The words above the Handpicked row (the cards are today's) */
.dec-seceb--bulbs::after {
  content: ""; display: inline-block; width: 9px; height: 12px; margin-left: 10px; vertical-align: -1px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 42% 36%, #FFE2A0 0, #E9B44C 70%);
  box-shadow: 0 0 10px 2px rgba(233,180,76,.55);
  animation: dec-tw 3.4s ease-in-out infinite;
}
.dec-seceb--gift {
  display: inline-flex !important; align-items: center; position: relative;
  height: 30px; padding: 0 14px 0 24px !important;
  background: #1F5C45; color: #FBF7F2 !important;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  transform-origin: 50% 0; animation: dec-tag 4s ease-in-out 1.5s infinite alternate;
}
.dec-seceb--gift::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #FBF7F2; }
.dec-seceb--gift::after { display: none !important; }
@keyframes dec-tag { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* ── Header (both headers; inside nav.site-topnav) ───────────────────────────────────────────────────────── */
.dec-nav { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.dec-nav svg { display: block; width: 100%; height: 100%; }
.dec-nav--bulbs { top: calc(100% - 8px); height: 60px; overflow: hidden; }
.dec-hstr--p { display: none !important; }
@media (max-width: 600px) {
  .dec-nav--bulbs { height: 40px; top: calc(100% - 6px); }
  .dec-hstr--d { display: none !important; }
  .dec-hstr--p { display: block !important; }
}
.dec-nav--gift { top: 0; height: 8px; overflow: hidden; }
@media (max-width: 600px) { .dec-nav--gift { height: 6px; } }
.dec-nav--crossover {
  bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(233,180,76,0) 0%, #E9B44C 50%, rgba(233,180,76,0) 100%);
  animation: dec-glow 5s ease-in-out infinite alternate;
}
@keyframes dec-glow { to { opacity: .55; } }

/* C · "3d 14h to 2027" beside Search */
.dec-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; margin-right: 6px;
  border-radius: 999px; white-space: nowrap;
  background: rgba(233,180,76,.14); border: 1px solid rgba(233,180,76,.55);
  color: #F3D08A; font-family: Ubuntu, system-ui, sans-serif; font-size: 13px; font-weight: 500;
}
.site-topnav:not(.at-top) .dec-chip, .dec-chip.dec-chip--onlight { color: #7A4E07; background: rgba(233,180,76,.16); border-color: rgba(185,128,30,.55); }
body.dark-mode .site-topnav .dec-chip { color: #F3D08A; }
@media (max-width: 991.98px) { .dec-chip { display: none; } }

/* ── Footer (common/footer_plate: the art sits on the plate's top rim, css/footer-plate.css) ────────────────────────────────────────────────────────────────────────────────── */
.dec-on #footer { position: relative; }
.dec-foot { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; pointer-events: none; }
.dec-foot svg { display: block; width: 100%; height: 100%; }
.dec-foot--bulbs { height: 56px; }
.dec-foot--gift { height: 24px; }
.dec-foot--crossover { height: 86px; }
.dec-fline {
  margin: 16px 0 6px !important;
  font-family: Ubuntu, system-ui, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.4;
  color: #FFE2A0 !important;
}
.dec-fline--gift { color: #F3D08A !important; }
.dec-fline--crossover { color: #E9B44C !important; }

/* ── Reduce Motion: the resting frame, everywhere ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :is(.dec-art, .dec-hstr, .dec-fstr, .dec-band, .dec-fsky) *,
  .dec-roll > span, .dec-nav--crossover, .dec-seceb--bulbs::after, .dec-seceb--gift {
    animation: none !important; transition: none !important;
  }
  .dec-stage .dec-video { display: none; }
}

/* C · the chip steps aside while the header's compact search bar is showing (home page, scrolled) */
.site-topnav:has(#nav-search-bar.nsb-visible) .dec-chip { display: none; }
/* C · the eyebrow stays readable where the video's moon sits behind it */
.dec-hero--crossover .dec-eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.85); }
