/** @format */

/* FOOTER ONLY */
footer.dw {
  height: 100vh;
  background: #000;
  color: #fff;
  position: relative;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  font-family: "Instrument Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dw__inner {
  width: 100%;
  margin: 0;
  padding: 9vh 7vw 48px;
  position: relative;
  z-index: 2;
}

/* === FLEX LAYOUT === */
.dw__frame {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6vw;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dw__home,
.dw__insta,
.dw__left {
  min-width: 0;
}

.dw__home {
  order: 1;
  flex: 0 1 calc((100% - (2 * 6vw)) * 0.2);
}
.dw__insta {
  order: 2;
  flex: 0 1 calc((100% - (2 * 6vw)) * 0.3);
}
.dw__left {
  order: 3;
  flex: 0 1 calc((100% - (2 * 6vw)) * 0.5);
}

.dw__motto {
  margin: 0 0 12px 0;
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: 0.5px;
  font-size: 36px;
}
.dw__kicker {
  margin: 0 0 14px 0;
  color: #808080;
  font-size: 16px;
  letter-spacing: 0.4px;
}

/* smooth link underline */
.ink {
  position: relative;
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  color: #fff;
}
.ink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.ink:hover::after,
.ink:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dw__title {
  margin: 0 0 14px 0;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #808080;
}
.dw__menu,
.dw__ext {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dw__menu li + li,
.dw__ext li + li {
  margin-top: 10px;
}
.dw__link {
  font-size: 16.3px;
  line-height: 1.15;
}

/* Email/newsletter */
.dw__news {
  margin-top: 36px;
  width: 100%;
  max-width: none;
}

.dw__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 100%;
}
.dw__form::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.9;
  pointer-events: none;
}
.dw__form:focus-within {
  border-bottom-color: transparent;
}
.dw__form:focus-within::after {
  transform: scaleX(1);
}

.dw__input {
  flex: 1;
  min-width: 0;
  padding: 12px 0 14px 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 16px;
}
.dw__input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.dw__arrow {
  position: static;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px 2px 2px;
  line-height: 1;
}

/* Gucci message under email */
.dw__note {
  margin-top: 10px;
  font-size: 12px;
  color: #808080;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dw__note.is-visible {
  opacity: 1;
}

/* Bottom: logos + copyright line below */
.dw__bottom {
  margin-top: 6vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #808080;
  font-size: 14px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.dw__brands {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.dw__brand {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.dw__brand.insta_logo {
  border-radius: 5px;
}

.dw__legal-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.dw__legal-line a {
  color: #fff;
}

.dw__word {
  position: absolute;
  left: 7vw; /* same as footer side padding on desktop */
  right: 7vw;
  bottom: 20px; /* exactly 20px up from bottom of footer */
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.dw__word img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile */
@media (max-width: 860px) {
  footer.dw {
    height: auto;
    min-height: 95dvh;
    max-height: 95dvh;
  }
  .dw__inner {
    padding: 54px 16px 48px;
  }
  .dw__news {
    margin-top: 7vh;
  }
  .dw__bottom {
    margin-top: 1vh;
  }
  .dw__frame {
    flex-wrap: wrap;
    gap: 6vw;
  }
  .dw__link {
    font-size: 16.3px;
  }
  .dw__kicker {
    margin: 2vh 0 12px 0;
  }
  .dw__title {
    font-weight: 500;
  }

  .dw__home {
    order: 1;
    flex: 0 1 calc((100% - 6vw) / 2);
  }
  .dw__insta {
    order: 2;
    flex: 0 1 calc((100% - 6vw) / 2);
  }
  .dw__left {
    order: 3;
    flex: 0 1 100%;
  }

  .dw__brand {
    width: 32px;
    height: 32px;
  }
  .dw__brand.insta_logo {
    border-radius: 5px;
  }

  /* wordmark: same 16px padding as footer on mobile, 20px up from bottom */
  .dw__word {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink::after,
  .dw__form::after {
    transition: none !important;
  }
  .dw__note {
    transition: none !important;
  }
}
