/* Brikc home v2 — 3D brick cube that rolls down a "prumo" rail as the page scrolls. Built by home-v2-cube.js (no markup without JS). */
.hv-cube{--s:34px;--brick:#ff6600;--mortar:#f4f1ea;position:fixed;z-index:40;right:12px;top:104px;bottom:44px;width:var(--s);pointer-events:none;contain:layout style}
.hv-cube__rail{position:absolute;left:50%;top:0;bottom:0;width:0;border-left:1px dashed rgba(255,102,0,.38)}
.hv-cube__rail::before,.hv-cube__rail::after{content:"";position:absolute;left:-6px;width:11px;border-top:1px solid rgba(255,102,0,.6)}
.hv-cube__rail::before{top:0}.hv-cube__rail::after{bottom:0}
.hv-cube__fill{position:absolute;left:50%;top:0;width:2px;margin-left:-1px;height:0;background:var(--brick);border-radius:1px}
.hv-cube__mover{position:absolute;left:0;top:0;width:var(--s);height:var(--s);will-change:transform;filter:drop-shadow(0 8px 10px rgba(23,23,26,.22))}
.hv-cube__view{width:100%;height:100%;perspective:420px}
.hv-cube__tilt{width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(-28deg)}
.hv-cube__body{position:relative;width:100%;height:100%;transform-style:preserve-3d;will-change:transform}
.hv-cube__f{position:absolute;inset:0;backface-visibility:hidden;border-radius:2px;background-color:var(--brick);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M0 20H60M0 40H60M30 0V20M15 20V40M45 20V40M30 40V60' stroke='%23F4F1EA' stroke-width='2.4' fill='none'/%3E%3C/svg%3E");
  background-size:100% 100%;box-shadow:inset 0 0 0 1.5px rgba(168,67,0,.55)}
.hv-cube__f::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--shade,transparent)}
.hv-cube__f--front{transform:translateZ(calc(var(--s)/2))}
.hv-cube__f--back{transform:rotateY(180deg) translateZ(calc(var(--s)/2));--shade:rgba(0,0,0,.18)}
.hv-cube__f--right{transform:rotateY(90deg) translateZ(calc(var(--s)/2));--shade:rgba(0,0,0,.22)}
.hv-cube__f--left{transform:rotateY(-90deg) translateZ(calc(var(--s)/2));--shade:rgba(255,255,255,.08)}
.hv-cube__f--top{transform:rotateX(90deg) translateZ(calc(var(--s)/2));--shade:rgba(255,255,255,.2)}
.hv-cube__f--bottom{transform:rotateX(-90deg) translateZ(calc(var(--s)/2));--shade:rgba(0,0,0,.3)}
/* below 1200px the side gutter is too narrow for the rail: the cube sits in the bottom-right corner and rolls in place */
@media (width<1200px){
  .hv-cube{--s:26px;top:auto;right:7px;bottom:calc(14px + env(safe-area-inset-bottom,0px));height:var(--s)}
  .hv-cube__rail,.hv-cube__fill{display:none}
}
@media print{.hv-cube{display:none}}
