.site-footer {
  --footer-light: #f9eee0;
  --footer-line: #e9c3a58a;
  background: #131717;
  border-color: #ad8266;
  color: var(--footer-light);
  padding-top: clamp(45px,8vw,132px);
  perspective: 1200px;
  scroll-margin-top: 77px;
}
.site-footer .footer-lens {
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 1;
  mask-image: none;
  background: #131717;
}
.footer-lens > :is(img,video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 69%;
  scale: 1.1;
}
.footer-lens > video {
  opacity: 0;
  transition: opacity .55s ease;
}
.footer-lens > video[data-film-ready] { opacity: 1; }
.footer-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg,#111516 0%,#151819ef 23%,#141718db 49%,#171b1ac4 67%,#11151520 100%),
    linear-gradient(90deg,#151616bc,#12171640 62%,#13171755);
}
.site-footer > .wrap { position: relative; }
.site-footer .foot-top { border-color: var(--footer-line); align-items: flex-end; }
.site-footer .foot-mark {
  position: relative;
  width: min(61%,540px);
  flex: 0 1 auto;
  transform-style: preserve-3d;
  transform-origin: left center;
}
.site-footer .foot-mark::before,
.site-footer .foot-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  mask: url('/logo/bygge-white.png') center / 100% 100% no-repeat;
  pointer-events: none;
}
.site-footer .foot-mark::before {
  background: linear-gradient(104deg,#51351f,#926448 60%,#3f271c);
  transform: translate3d(2px,4px,-8px);
  opacity: .93;
}
.site-footer .foot-mark::after {
  background: #a36643;
  transform: translate3d(1px,2px,-4px);
}
.site-footer .foot-logo {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  filter: drop-shadow(0 1px 0 #fff2c8c9) drop-shadow(0 12px 19px #0c0907bf);
}
.site-footer .foot-tag,
.site-footer .foot-cols a,
.site-footer .foot-area { color: var(--footer-light); }
.site-footer .foot-h { color: #edba9a; }
.site-footer .foot-cols { border-color: var(--footer-line); }
.site-footer .foot-cols a:hover { color: #ffd7bb; }
.site-footer a:focus-visible { outline: 2px solid #ffd7bb; outline-offset: 3px; }

@supports(animation-timeline:view()) {
  @media(prefers-reduced-motion:no-preference) {
    .site-footer .foot-top { animation: none; }
    .site-footer .foot-mark {
      animation: footer-wordmark-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 43%;
    }
    .site-footer .foot-tag, .site-footer .foot-cols > div {
      animation: footer-type-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 33%;
    }
    @keyframes footer-wordmark-rise {
      from { transform: perspective(660px) translate3d(18px,32px,-42px) rotateX(19deg) rotateY(-10deg); }
      to { transform: perspective(660px) translate3d(0,0,0) rotateX(0deg) rotateY(0deg); }
    }
    @keyframes footer-type-rise {
      from { transform: perspective(1100px) translate3d(9px,22px,-12px) rotateX(6deg); }
      to { transform: none; }
    }
  }
}
html[data-motion-paused] .footer-lens > video { opacity: 0; }
@media(prefers-reduced-motion:reduce) {
  .footer-lens > video { display: none; }
}
@media(max-width:600px) {
  .site-footer .foot-top { display: block; padding-bottom: 23px; }
  .site-footer .foot-mark { width: min(72%,360px); }
  .site-footer .foot-tag { margin: 20px 0 0; text-align: left; }
  .footer-lens > :is(img,video) { object-position: 52% 60%; }
}
