/* Hero and services: original composition, responsive layout, motion and core-navigation integration. */
.mhz-hero {
  position: relative;
  height: 919px;
  overflow: hidden;
  background: var(--wp--custom--design--black);
}

.mhz-hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mhz-hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mhz-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at 72% 48%,
    rgba(255, 205, 0, 0.16) 0,
    rgba(255, 205, 0, 0.07) 19%,
    transparent 43%
  );
  mix-blend-mode: screen;
  opacity: 0.72;
}

.mhz-hero__layer--person {
  z-index: 2;
}

.mhz-hero__grain {
  position: absolute;
  top: 43px;
  left: calc(50% - 72px);
  width: 936px;
  max-width: none !important;
  opacity: 1;
}

.mhz-hero__person-frame {
  position: absolute;
  bottom: 0;
  left: 65.22%;
  width: clamp(520px, 41.667vw, 720px);
  aspect-ratio: 720 / 824;
  overflow: hidden;
  transform: translateX(-50%);
}

.mhz-hero__person {
  position: absolute;
  top: 10.315%;
  left: -2.5%;
  width: 116.528%;
  max-width: none !important;
}

.mhz-hero__tags {
  position: absolute;
  z-index: 2;
  top: 128px;
  left: max(24px, calc(50% - 700px));
  width: 455px;
  max-width: calc(100% - 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}

.mhz-hero__tags-track {
  display: flex;
  width: max-content;
  animation: mhz-marquee 30s linear infinite;
  will-change: transform;
}

.mhz-hero__tags-group {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: 10px;
}

.mhz-hero__tags .mhz-pill-label {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.84);
  padding: 16px 24px;
}

@keyframes mhz-marquee {
  to {
    transform: translateX(-50%);
  }
}

.mhz-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
}

.mhz-hero__content {
  position: absolute;
  top: 303px;
  left: 0;
  width: 690px;
}

.mhz-hero h1 {
  max-width: 690px;
}

.mhz-hero__intro {
  width: 568px;
  margin-top: var(--wp--custom--design--space-hero-heading-copy);
}

.mhz-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: var(--wp--custom--design--space-hero-copy-actions);
}

.mhz-services {
  height: 1412px;
}

.mhz-services__layout {
  display: grid;
  grid-template-columns: 566px 572px;
  column-gap: 144px;
  padding-top: 150px;
}

.mhz-services__intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.mhz-services__description {
  max-width: 453px;
}

.mhz-services__cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mhz-service-card {
  display: grid;
  height: 540px;
  grid-template-columns: 96px 336px;
  column-gap: 16px;
  border-radius: 16px;
  background: var(--wp--custom--design--black);
  padding: 56px 56px 52px 44px;
}

.mhz-service-card__portrait {
  --wp--custom--design--portrait-shape-rest: rotate(6deg);
  --wp--custom--design--portrait-shape-active: translate3d(-5px, 4px, 0)
    rotate(-7deg) scale(0.96);
  position: relative;
  width: 96px;
  height: 108px;
}

.mhz-service-card__portrait--2 {
  --wp--custom--design--portrait-shape-rest: rotate(6deg);
  --wp--custom--design--portrait-shape-active: translate3d(-5px, 4px, 0)
    rotate(-1deg) scale(0.96);
}

.mhz-service-card__photo {
  position: absolute;
  top: 58px;
  left: 18px;
  width: 77px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  transition: transform 420ms var(--wp--custom--design--ease-spring);
}

.mhz-service-card__portrait--1 .mhz-service-card__photo {
  object-position: 42% 33%;
}

.mhz-service-card__portrait--2 .mhz-service-card__photo {
  object-position: 72% 40%;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mhz-service-card:is(:hover, :focus-within) .mhz-service-card__shape {
    transform: var(--wp--custom--design--portrait-shape-active);
  }

  .mhz-service-card:is(:hover, :focus-within) .mhz-service-card__photo {
    transform: translate3d(7px, -9px, 0) rotate(4deg) scale(1.06);
  }
}

.mhz-service-card__description {
  margin-top: 16px;
}

.mhz-service-card ul {
  margin: 19px 0 20px;
  padding: 0;
  list-style: none;
  font-size: var(--wp--custom--design--type-list-size);
  line-height: var(--wp--custom--design--type-list-line-height);
}

.mhz-service-card li {
  position: relative;
  padding-left: 20px;
}

.mhz-service-card li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 10px;
  background: url("../images/list-arrows.svg") 0 0 / 6px 137px no-repeat;
  content: "";
}

@media (max-width: 1199px) {
  :root,
  .editor-styles-wrapper {
    --wp--custom--design--type-h-1-size: clamp(58px, 11vw, 88px);
    --wp--custom--design--type-header-nav-size: 32px;
  }

  .mhz-hero {
    --wp--custom--design--type-lead-size: 18px;
    --wp--custom--design--type-pill-size: 12px;
    height: auto;
    min-height: 820px;
    padding-block: 90px 0;
  }

  .mhz-hero__grain {
    top: 330px;
    left: 50%;
    width: min(780px, 150vw);
    transform: translateX(-32%);
  }

  .mhz-hero__person-frame {
    position: static;
    width: auto;
    aspect-ratio: auto;
    overflow: visible;
    transform: none;
  }

  .mhz-hero__person {
    top: auto;
    right: auto;
    bottom: -2px;
    left: 50%;
    width: min(418px, 82vw);
    transform: translateX(-84%);
  }

  .mhz-hero__visual {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 84%,
      transparent 100%
    );
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  }

  .mhz-hero__tags {
    top: 32px;
    left: 18px;
    max-width: calc(100% - 36px);
  }

  .mhz-hero__tags .mhz-pill-label {
    padding: 11px 16px;
  }

  .mhz-hero__inner {
    min-height: 730px;
  }

  .mhz-hero__content {
    position: relative;
    top: 0;
    width: min(690px, 100%);
  }

  .mhz-hero__intro {
    width: min(568px, 100%);
  }

  .mhz-work,
  .mhz-services {
    padding-block: 96px;
  }

  .mhz-services__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    padding-top: 0;
  }

  .mhz-services__intro {
    position: static;
    max-width: 690px;
  }

  .mhz-services__cards {
    width: min(100%, 760px);
    margin-left: auto;
  }

  .mhz-service-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}
@media (min-width: 701px) and (max-width: 1199px) {
  .mhz-hero {
    height: 919px;
    min-height: 919px;
  }

  .mhz-hero__visual {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mhz-hero__person-frame {
    position: absolute;
    right: clamp(-160px, calc(64.25vw - 613px), 157px);
    bottom: 0;
    left: auto;
    width: clamp(400px, 46vw, 520px);
    aspect-ratio: 720 / 824;
    overflow: hidden;
    transform: none;
  }

  .mhz-hero__person {
    top: 10.315%;
    right: auto;
    bottom: auto;
    left: -2.5%;
    width: 116.528%;
    transform: none;
  }
}
@media (max-width: 700px) {
  :root,
  .editor-styles-wrapper {
    --wp--custom--design--type-lead-size: 17px;
    --wp--custom--design--type-h-1-size: clamp(56px, 16vw, 70px);
    --wp--custom--design--type-h-1-line-height: 0.92;
    --wp--custom--design--type-h-2-size: 48px;
    --wp--custom--design--type-h-3-size: 32px;
    --wp--custom--design--type-pill-size: 12px;
    --wp--custom--design--type-list-size: 14px;
    --wp--custom--design--type-contact-value-size: clamp(26px, 8vw, 32px);
  }

  .mhz-container {
    width: calc(100% - 36px);
  }

  .mhz-hero {
    --wp--custom--design--type-lead-size: 17px;
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-top: 0;
  }

  .mhz-hero__inner {
    order: 1;
    height: auto;
    min-height: 0;
    padding-top: 94px;
  }

  .mhz-hero h1 {
    max-width: 360px;
  }

  .mhz-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .wp-block-button {
    min-height: 50px;
  }

  .mhz-hero__grain {
    top: -8px;
    left: 50%;
    width: 640px;
    transform: translateX(-50%);
  }

  .mhz-hero__person {
    right: auto;
    bottom: -211px;
    left: 50%;
    width: 500px;
    transform: translateX(-60%);
  }

  .mhz-hero__visual {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 430px;
    margin-top: 32px;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 80%,
      transparent 100%
    );
    mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  }
  .mhz-services__description {
    width: auto;
  }

  .mhz-services__layout {
    gap: 48px;
  }

  .mhz-service-card {
    display: block;
    height: auto;
    min-height: 540px;
    padding: 32px 28px 36px;
  }

  .mhz-service-card__portrait {
    width: 92px;
    height: 138px;
    margin-bottom: 20px;
  }

  .mhz-service-card li::before {
    top: 9px;
  }

  .mhz-services {
    padding-block: 72px;
  }
}

@media (min-width: 1200px) and (max-width: 1329px) {
  .mhz-services__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
  }
  .mhz-service-card {
    grid-template-columns: 80px minmax(0, 1fr);
    padding-inline: 28px;
    height: auto;
    min-height: 540px;
  }
}
@media (max-width: 1199px) {
  .mhz-header {
    height: 68px;
    padding-inline: 20px;
  }
  .mhz-header__logo {
    width: 150px;
  }
  nav.mhz-nav {
    top: 9px;
    font-size: 22px;
  }
  .mhz-nav .wp-block-navigation-item__content {
    padding-inline: 18px;
  }
  .mhz-nav__contact {
    display: none;
  }
  .mhz-services {
    height: auto;
  }
}
@media (min-width: 701px) {
  .mhz-nav .wp-block-navigation__responsive-container-open {
    display: none;
  }
  .mhz-nav
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block;
  }
}
@media (max-width: 700px) {
  .wp-block-button .wp-block-button__link,
  .wp-block-button.is-style-mhz-secondary .wp-block-button__link {
    min-height: 50px;
  }
  .mhz-hero > .mhz-hero__visual {
    margin-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mhz-hero__tags-track {
    animation: none;
  }
  .mhz-hero__tags-group[aria-hidden] {
    display: none;
  }
  .wp-block-button .wp-block-button__link,
  .mhz-nav a,
  .mhz-service-card__portrait::before {
    transition: none;
  }
}
.editor-styles-wrapper .mhz-hero__tags-track {
  animation: none;
}
.editor-styles-wrapper .mhz-services__intro {
  position: static;
}
@media (prefers-reduced-motion: no-preference) {
  .mhz-hero__layer--grain {
    animation: mhz-grain-in var(--wp--custom--design--motion-hero-reveal)
      cubic-bezier(0.45, 0, 0.2, 1) both;
  }
  .mhz-hero__visual::before {
    animation: mhz-light-in 1500ms 300ms var(--wp--custom--design--ease-out)
      both;
  }
  .mhz-hero__tags {
    animation: mhz-rise-in 700ms 120ms var(--wp--custom--design--ease-out) both;
  }
  .mhz-hero h1 {
    animation: mhz-rise-in 800ms 180ms var(--wp--custom--design--ease-out) both;
  }
  .mhz-hero__intro {
    animation: mhz-rise-in 750ms 310ms var(--wp--custom--design--ease-out) both;
  }
  .mhz-hero .mhz-actions {
    animation: mhz-rise-in 750ms 430ms var(--wp--custom--design--ease-out) both;
  }
  .mhz-reveal {
    opacity: 0;
    translate: 0 42px;
    transition:
      opacity 600ms var(--wp--custom--design--ease-out),
      translate 600ms var(--wp--custom--design--ease-out);
  }
  .mhz-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes mhz-rise-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mhz-grain-in {
  from {
    opacity: 0;
    transform: translate(-64px, 64px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes mhz-light-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.72;
  }
}
