
/* Shared homepage and portfolio hero alignment */
body.home-restored,
body.portfolio-restored {
  --hero-copy-top: clamp(180px, 32svh, 360px);
  --portfolio-header-height: 79px;
}
body.home-restored main #hjem .hs-slide {
  align-items: flex-start;
}
body.home-restored main #hjem .hs-content {
  margin-top: 0;
  padding-top: var(--hero-copy-top);
}

body.portfolio-restored .p2-main .p22-hero {
  padding-top: calc(var(--hero-copy-top) - var(--portfolio-header-height));
  min-height: calc(100svh - var(--portfolio-header-height));
}
body.portfolio-restored .p2-main .p22-hero .p22-hero-inner {
  width: 90%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
}
body.portfolio-restored main .p22-hero .p22-eyebrow {
  font-size: 12px;
  font-weight: 750;
  line-height: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 1;
  margin: 0 0 22px;
}
body.portfolio-restored main .p22-hero h1 {
  font-size: clamp(34px, 4.4vw, 70px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: normal;
  max-width: 1100px;
  margin: 0 0 26px;
  overflow-wrap: anywhere;
}
body.portfolio-restored main .p22-hero-description {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  white-space: pre-line;
  max-width: 780px;
  margin: 0 0 30px;
}
@media(max-width:900px) {
  body.portfolio-restored {
    --portfolio-header-height: 66px;
  }
}
@media(max-width:760px) {
  body.home-restored,
  body.portfolio-restored {
    --hero-copy-top: 150px;
  }
  body.portfolio-restored main .p22-hero h1 {
    font-size: clamp(30px, 7.6vw, 44px);
  }
}

/* Lower portfolio logos */
body.portfolio-restored .p2-main .p22-hero .p22-brands {
  margin-top: 40px;
}

/* Lower homepage hero text on mobile */
@media (max-width: 760px) {
  body.home-restored {
    --hero-copy-top: clamp(230px, 32svh, 340px);
  }
}

/* Mobile hero text in lower portion */
@media (max-width: 760px) {
  body.home-restored main #hjem .hs-content {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: max(300px, 48svh);
    padding-bottom: 110px;
  }
}

/* Lower homepage hero text on desktop */
@media (min-width: 761px) {
  body.home-restored main #hjem .hs-content {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(165px, 31svh, 320px);
    padding-bottom: 110px;
  }
}
