.em-site-footer {
  --em-footer-orange: #ff4d00;
  --em-footer-ink: #151514;
  --em-footer-line: #dadada;
  padding-block: clamp(36px, 5vw, 72px) 12px;
  border-top: 0;
  color: var(--em-footer-ink);
  background: #fff;
  font-family: Outfit, sans-serif;
  text-transform: uppercase;
}

.em-site-footer a { color: inherit; text-decoration: none; }
.em-site-footer .em-footer-banner { color: #fff; }
.em-site-footer :focus-visible {
  outline: 2px solid var(--em-footer-orange);
  outline-offset: 4px;
}

.em-footer-wordmark { display: block; }
.em-footer-wordmark img { display: block; width: 100%; height: auto; }

.em-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 22px clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(30px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.em-footer-group h2, .em-footer-group p, .em-footer-meta {
  color: #717171;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.em-site-footer .em-footer-group h2 { margin: 0 0 8px; }
.em-footer-group p { margin-block: 24px 2px; }
.em-footer-group ul { margin: 0; padding: 0; list-style: none; word-spacing: normal; }
.em-footer-group address { margin: 0; font-style: normal; }

.em-footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-block: 5px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.em-footer-group address a { display: flex; width: fit-content; }

.em-footer-group a:hover, .em-footer-meta :is(a, button):hover {
  text-decoration: underline;
  text-decoration-color: var(--em-footer-orange);
  text-underline-offset: 4px;
}

.em-footer-banner {
  --laptop-overhang: clamp(18px, calc(10vw - 85px), 64px);
  --laptop-offset: calc(var(--laptop-overhang) * -.45);
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  width: clamp(200px, 18vw, 250px);
  aspect-ratio: 5 / 6;
  padding: clamp(16px, 1.4vw, 22px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(107 17 0 / 41%) 42px, transparent 100px),
    linear-gradient(155deg, transparent 30%, rgb(109 22 0 / 24%)),
    var(--em-footer-orange);
  transition: background-color .25s ease;
}

.em-footer-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: url("../assets/em-footer-hypercon-signet-white.svg") no-repeat right -26px center / 91% auto;
  opacity: .1;
  pointer-events: none;
}

.em-footer-banner-title {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.em-footer-banner-visual {
  container-type: size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
}

.em-footer-banner-laptop {
  display: block;
  width: min(calc(100% + 30px + var(--laptop-overhang)), 390px);
  width: min(calc(100% + 30px + var(--laptop-overhang)), 390px, 165cqb);
  filter: drop-shadow(0 14px 11px rgb(77 18 0 / 42%));
  transform: translateX(var(--laptop-offset)) perspective(600px) rotateY(-14deg) rotate(-11deg);
  transition: transform .35s ease;
}

.em-footer-banner-screen {
  display: block;
  width: 84%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  padding: 4px;
  border: 1px solid #5d6064;
  border-radius: 7px 7px 2px 2px;
  background: #18191b;
}

.em-footer-banner-screen img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.em-footer-banner-laptop::after {
  content: "";
  display: block;
  height: clamp(10px, 6cqi, 18px);
  background:
    repeating-linear-gradient(90deg, #48494d 0 4px, #929398 4px 5px) center 14% / 54% 38% no-repeat,
    linear-gradient(#b7b9bf, #b7b9bf) center 61% / 20% 17% no-repeat,
    linear-gradient(180deg, #a1a3a8, #e7e8eb 68%, #85878e 71%, #52545a);
  clip-path: polygon(8% 0, 92% 0, 100% 72%, 97% 100%, 3% 100%, 0 72%);
}

.em-footer-banner-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.em-footer-banner-bottom img { width: 91px; height: auto; filter: invert(1); }

.em-footer-banner-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color .25s ease, background-color .25s ease;
}

.em-footer-banner-arrow svg { transition: transform .3s ease; }
.em-footer-banner:is(:hover, :focus-visible, :active) { background-color: #e54500; }
.em-footer-banner:is(:hover, :focus-visible, :active) .em-footer-banner-arrow { color: var(--em-footer-ink); background: #fff; border-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .em-footer-banner:is(:hover, :focus-visible, :active) .em-footer-banner-laptop {
    transform: translate(var(--laptop-offset), -5px) perspective(600px) rotateY(-5deg) rotate(-5deg);
  }
  .em-footer-banner:is(:hover, :focus-visible, :active) .em-footer-banner-arrow svg { transform: translate(2px, -2px); }
}

.em-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--em-footer-line);
}

.em-footer-meta p { margin: 0; color: inherit; }
.em-footer-meta nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.em-footer-meta .em-footer-meta-legal { justify-content: flex-end; }
.em-footer-meta :is(a, button) { display: inline-flex; align-items: center; min-height: 36px; }
.em-footer-meta button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .em-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-footer-banner {
    --laptop-overhang: clamp(23px, 4vw, 40px);
    --laptop-offset: calc(-14px - var(--laptop-overhang) * .8);
    width: min(100%, 280px);
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .em-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    padding-block-start: 36px;
  }
  .em-footer-group a { min-height: 38px; }

  .em-footer-banner {
    --laptop-offset: 0px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    min-height: 132px;
    aspect-ratio: auto;
    background-image:
      linear-gradient(105deg, rgb(107 17 0 / 52%) 42%, transparent 88%),
      linear-gradient(155deg, transparent 30%, rgb(109 22 0 / 24%));
  }
  .em-footer-banner::before { background-size: 62% auto; }
  .em-footer-banner-title { grid-area: 1 / 1; font-size: clamp(16px, 4.5vw, 18px); }
  .em-footer-banner-bottom { grid-area: 2 / 1; justify-content: flex-start; gap: 6px; }
  .em-footer-banner-bottom img { width: clamp(64px, 19vw, 91px); min-width: 0; }
  .em-footer-banner-arrow { width: 32px; height: 32px; flex: none; }
  .em-footer-banner-visual { grid-area: 1 / 2 / 3; container-type: inline-size; }
  .em-footer-banner-laptop { width: min(100%, 240px); }

  .em-footer-meta :is(a, button) { min-height: 42px; }
  .em-footer-meta .em-footer-meta-legal { flex-basis: 100%; justify-content: flex-start; }
}

@media (max-width: 450px) {
  .em-footer-meta { justify-content: flex-start; }
  .em-footer-meta p { flex-basis: 100%; margin-top: 6px; }
}

@media (max-width: 350px) {
  .em-footer-meta .em-footer-meta-legal { column-gap: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-footer-banner, .em-footer-banner * { transition: none; }
}
