/*
 * WASIAT4D2 LP v1.0.6 — Responsive desktop banner, ending CTA, footer.
 * Loaded after the existing stylesheets so the design stays maintainable.
 */

/* An HTML <picture> ensures only the suitable banner is downloaded.
   Its absolute layer retains the previous hero dimensions and layout. */
.hero__picture,
.hero__picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__picture > img {
  object-fit: cover;
  object-position: center 12%;
}

@media (min-width: 901px) {
  .hero__picture > img {
    object-position: center 33%;
    transform-origin: 52% 36%;
    animation: desktopBannerDrift 28s ease-in-out infinite alternate;
    will-change: transform;
  }

  .hero__visual-tint {
    background:
      linear-gradient(90deg,
        rgba(9, 9, 12, .89) 0%,
        rgba(9, 9, 12, .67) 29%,
        rgba(9, 9, 12, .23) 57%,
        rgba(9, 9, 12, .14) 100%),
      linear-gradient(0deg,
        rgba(9, 9, 12, .72) 0%,
        transparent 35%,
        transparent 77%,
        rgba(9, 9, 12, .37) 100%);
  }
}

/* Extra-wide monitors crop vertical space; protect the character's head. */
@media (min-width: 901px) and (min-aspect-ratio: 21/10) {
  .hero__picture > img {
    object-position: center top;
    transform-origin: 52% 0;
  }
}

@keyframes desktopBannerDrift {
  from { transform: translate3d(0, 0, 0) scale(1.025); }
  to { transform: translate3d(-.45%, .35%, 0) scale(1.06); }
}

/* Performance and accessibility outrank decorative animation. */
@media (prefers-reduced-motion: reduce) {
  .hero__picture > img {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

body[data-performance="lite"] .hero__picture > img,
body[data-page-hidden="true"] .hero__picture > img {
  animation-play-state: paused;
  will-change: auto;
}

/* Final call to action: balanced two-column desktop composition. */
.end-section {
  position: relative;
  padding-block: clamp(92px, 10vw, 162px);
  border-top: 1px solid rgba(212, 171, 116, .14);
  border-bottom: 1px solid rgba(212, 171, 116, .16);
  background:
    radial-gradient(ellipse at 90% 70%, rgba(102, 68, 40, .22), transparent 55%),
    linear-gradient(135deg, #111115 0%, #0b0b0d 100%);
}

.end-section__inner {
  position: relative;
  isolation: isolate;
  max-width: 1320px;
}

.end-section__inner::after {
  content: 'W4D2';
  top: 45%;
  right: -2%;
  z-index: -1;
  font-size: clamp(170px, 22vw, 330px);
  line-height: 1;
  opacity: .08;
  color: #d4ab74;
}

.end-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(44px, 6vw, 112px);
  margin-top: clamp(44px, 5vw, 78px);
}

.end-section__heading,
.end-section__content {
  min-width: 0;
}

.end-section__eyebrow {
  margin: 0 0 clamp(20px, 2.6vw, 34px);
  color: #d9c4a4;
  font-size: clamp(9px, .8vw, 11px);
  line-height: 1.8;
  letter-spacing: .15em;
  overflow-wrap: break-word;
}

.end-section h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(66px, 7.6vw, 118px);
  line-height: .98;
  overflow-wrap: normal;
}

.end-section h2 em {
  display: block;
  color: #d4ab74;
}

.end-section__content {
  padding-left: clamp(22px, 2.6vw, 42px);
  border-left: 1px solid rgba(212, 171, 116, .26);
}

.end-section .end-section__description {
  max-width: 44ch;
  margin: 0 0 clamp(26px, 3.1vw, 43px);
  color: #d8d1c8;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 450;
  line-height: 1.92;
}

.end-section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  gap: 0;
}

.end-section__primary-cta {
  min-width: min(100%, 240px);
  min-height: 59px;
  justify-content: space-between;
  gap: 25px;
}

/* The footer has its own clear brand, navigation and legal regions. */
.footer {
  padding: clamp(66px, 7vw, 105px) 0 clamp(25px, 3vw, 43px);
  background: #0b0b0d;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 130px);
  padding-bottom: clamp(53px, 6vw, 90px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.footer__brand-link:focus-visible {
  outline: 2px solid #d4ab74;
  outline-offset: 8px;
}

.footer__logo {
  display: block;
  width: clamp(200px, 22vw, 320px);
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer__tagline {
  max-width: 31ch;
  margin: 0;
  color: #bdb3a7;
  font-family: var(--body-font);
  font-size: clamp(11px, .92vw, 13px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .02em;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 64px);
  min-width: 0;
  justify-content: stretch;
}

.footer__links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 15px;
}

.footer__links h3 {
  margin: 0 0 7px;
  color: #d4ab74;
  font-size: 11px;
  line-height: 1.55;
}

.footer__links a {
  display: inline-block;
  max-width: 100%;
  color: #e6dcd0;
  font-size: clamp(10px, .9vw, 12px);
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color .2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #e7b978;
}

.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(24px, 4vw, 66px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top-color: rgba(255, 255, 255, .13);
}

.footer__legal {
  min-width: 0;
  max-width: 780px;
  gap: 10px;
}

.footer__legal p {
  color: #b9b2aa;
  font-size: 11px;
  line-height: 1.85;
}

.footer__bottom .footer__copyright {
  margin: 0;
  max-width: 320px;
  color: #ded4c7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .015em;
  text-align: right;
  white-space: normal;
}

@media (max-width: 1050px) {
  .end-section__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(28px, 4vw, 50px);
  }

  .end-section h2 {
    font-size: clamp(59px, 7vw, 85px);
  }

  .footer__main {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .end-section {
    padding-block: clamp(82px, 14vw, 112px);
  }

  .end-section__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(30px, 6vw, 47px);
    margin-top: clamp(32px, 6vw, 50px);
  }

  .end-section h2 {
    max-width: 12ch;
    font-size: clamp(54px, 11vw, 82px);
  }

  .end-section__content {
    padding-left: 0;
    padding-top: 25px;
    border-left: 0;
    border-top: 1px solid rgba(212, 171, 116, .27);
  }

  .end-section .end-section__description {
    max-width: 58ch;
  }

  .end-section__inner::after {
    display: none;
  }

  .footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 7vw, 64px);
  }

  .footer__links {
    width: min(100%, 550px);
  }

  .footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer__bottom .footer__copyright {
    max-width: none;
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .end-section h2 {
    font-size: clamp(49px, 13vw, 62px);
  }

  .end-section__primary-cta {
    width: 100%;
  }

  .footer__logo {
    width: min(100%, 265px);
  }

  .footer__links {
    gap: 16px;
  }

  .footer__links a {
    font-size: 11px;
    line-height: 1.85;
  }

  .footer__legal p {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .footer__links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
