/* ==========================================================================
   Mielovia honey banner 1.0.0 (plugin) · a band of honey between the hero and
   the Honeysphere. A line runs across it, faster while the page scrolls; four
   figures of the site open their rooms. Its colour makes section flow draw both
   edges as threads of honey with drips (into the band at the top, into the
   night of the Honeysphere at the bottom).
   Classes are prefixed mhb-.
   ========================================================================== */

.mhb{
  position:relative;overflow:hidden;isolation:isolate;
  display:grid;gap:clamp(24px,2.8vw,46px);
  padding-block:clamp(54px,5.6vw,94px) clamp(46px,4.6vw,80px);
  color:#1f1206;
  /* the colour section flow reads: a light, saturated amber (honey thread, honey drips) */
  background-color:#e39b32;
  background-image:linear-gradient(180deg,#eeb24e 0%,#e6a23b 34%,#e0962f 68%,#d1842a 100%);
}

/* Light moving through honey: a warm glint that drifts, a deeper amber that
   breathes, and the gloss under the top edge. */
.mhb-glass{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.mhb-glass i{position:absolute;display:block;border-radius:50%}
.mhb-glass i:nth-child(1){
  left:-12%;top:-55%;width:62%;height:190%;
  background:radial-gradient(closest-side,rgba(255,240,206,.55),rgba(255,226,160,.18) 55%,rgba(255,226,160,0));
  animation:mhb-drift-a 26s ease-in-out infinite alternate;
}
.mhb-glass i:nth-child(2){
  right:-16%;bottom:-70%;width:70%;height:200%;
  background:radial-gradient(closest-side,rgba(150,66,6,.34),rgba(150,66,6,0));
  animation:mhb-drift-b 34s ease-in-out infinite alternate;
}
.mhb-glass i:nth-child(3){
  left:0;right:0;top:0;height:42%;border-radius:0;
  background:linear-gradient(180deg,rgba(255,246,222,.26),rgba(255,246,222,0));
}
@keyframes mhb-drift-a{to{transform:translate3d(46%,10%,0) scale(1.08)}}
@keyframes mhb-drift-b{to{transform:translate3d(-38%,-14%,0) scale(.92)}}

.mhb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* The running line. Two identical sets: the track moves by one set and starts again. */
.mhb-run{
  overflow:hidden;padding-block:.06em .14em;
  transform:skewX(var(--mhb-skew,0deg));
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  font-size:clamp(2.6rem,1.25rem + 4.6vw,6.6rem);
}
.mhb-track{
  display:flex;width:max-content;
  animation:mhb-run var(--mhb-dur,64s) linear infinite;
}
.mhb-set{display:flex;align-items:center;flex:none}
@keyframes mhb-run{to{transform:translate3d(-50%,0,0)}}
.mhb-item{
  flex:none;white-space:nowrap;
  font-family:var(--f-display);font-weight:330;line-height:1.04;letter-spacing:-.022em;
  font-variation-settings:"SOFT" 100,"opsz" 144;
}
.mhb-item em{font-style:italic;color:#6a3507;font-variation-settings:"SOFT" 100,"opsz" 144,"WONK" 1}
.mhb-hex{
  flex:none;width:.34em;height:.39em;margin:0 .62em;background:#3f2006;opacity:.82;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100'%3E%3Cpath fill-rule='evenodd' d='M43.3 0 86.6 25v50L43.3 100 0 75V25zM43.3 30c0 0 14.7 20 14.7 30a14.7 14.7 0 0 1-29.4 0c0-10 14.7-30 14.7-30z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100'%3E%3Cpath fill-rule='evenodd' d='M43.3 0 86.6 25v50L43.3 100 0 75V25zM43.3 30c0 0 14.7 20 14.7 30a14.7 14.7 0 0 1-29.4 0c0-10 14.7-30 14.7-30z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Four figures, each opening its room. */
.mhb-wrap{position:relative}
.mhb-facts{
  list-style:none;margin:0 auto;padding:0;max-width:1120px;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid rgba(46,24,4,.3);
}
.mhb-facts li{display:flex;justify-content:center;min-width:0}
.mhb-facts li+li{border-left:1px solid rgba(46,24,4,.2)}
.mhb-fact{
  display:grid;justify-items:center;align-content:start;gap:8px;width:100%;
  padding:clamp(18px,1.9vw,26px) 12px 4px;text-align:center;color:inherit;text-decoration:none;
  border-radius:4px;-webkit-tap-highlight-color:transparent;
}
.mhb-fact b{
  font-family:var(--f-display);font-weight:340;font-size:clamp(2.2rem,1.55rem + 2vw,3.5rem);line-height:1;
  letter-spacing:-.02em;font-variation-settings:"SOFT" 100,"opsz" 144;color:#1f1206;
  transition:transform .45s var(--ease,ease),color .3s;
}
.mhb-fact span{
  font-family:var(--f-mono);font-size:.64rem;line-height:1.55;letter-spacing:.16em;text-transform:uppercase;color:#3b2507;
  max-width:24ch;text-wrap:balance;
  background:linear-gradient(currentColor,currentColor) 50% 100%/0 1px no-repeat;padding-bottom:3px;
  transition:background-size .45s var(--ease,ease);
}
.mhb-fact:hover b{transform:translateY(-3px);color:#5a2c04}
.mhb-fact:hover span{background-size:100% 1px}
.mhb-fact:focus-visible{outline:2px solid #1f1206;outline-offset:4px}

@media (max-width:760px){
  .mhb{gap:26px;padding-block:56px 44px}
  .mhb-run{font-size:clamp(2.2rem,1.4rem + 4vw,3rem)}
  .mhb-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mhb-facts li:nth-child(3){border-left:0}
  .mhb-facts li:nth-child(n+3){border-top:1px solid rgba(46,24,4,.2)}
  .mhb-fact{padding:16px 8px 14px}
  .mhb-fact span{font-size:.6rem;letter-spacing:.13em}
}

/* No motion: the line holds still, on as many lines as it needs. */
@media (prefers-reduced-motion:reduce){
  .mhb-glass i{animation:none}
  .mhb-run{-webkit-mask-image:none;mask-image:none;padding-inline:var(--gutter,24px);font-size:clamp(2rem,1.2rem + 3vw,4.4rem)}
  .mhb-run{transform:none}
  .mhb-track{width:auto;animation:none;transform:none;justify-content:center}
  .mhb-set{flex-wrap:wrap;justify-content:center;row-gap:.12em;flex:1 1 auto}
  .mhb-set+.mhb-set{display:none}
  .mhb-set>.mhb-hex:last-child{display:none}
  .mhb-fact b,.mhb-fact span{transition:none}
}
