/* Homepage product-led hero. Scoped to .mt-product-hero only. */

.mt-product-hero,
.mt-product-hero * {
  box-sizing: border-box;
}

.mt-product-hero {
  --mt-hero-bg: color-mix(in srgb, var(--color-ivory-warm) 96%, white 4%);
  --mt-hero-text: var(--color-charcoal);
  --mt-hero-muted: color-mix(in srgb, var(--color-charcoal) 68%, transparent);
  --mt-hero-border: color-mix(in srgb, var(--color-charcoal) 13%, transparent);
  --mt-hero-gold: var(--color-gold);
  position: relative;
  width: 100%;
  min-height: max(610px, calc(100svh - 156px));
  overflow: clip;
  color: var(--mt-hero-text);
  background:
    radial-gradient(circle at 58% 38%, rgba(255, 255, 255, .74), transparent 32%),
    linear-gradient(118deg, color-mix(in srgb, var(--color-ivory) 90%, white 10%) 0%, var(--mt-hero-bg) 48%, color-mix(in srgb, var(--color-stone-beige) 27%, var(--mt-hero-bg)) 100%);
  border-bottom: 1px solid var(--mt-hero-border);
}

.mt-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(105deg, transparent 0 43%, rgba(178, 138, 74, .07) 43.1%, transparent 43.6%),
    radial-gradient(ellipse at 82% 26%, rgba(119, 92, 58, .06), transparent 28%);
}

.mt-product-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(310px, .95fr) minmax(470px, 1.55fr) minmax(218px, .58fr);
  grid-template-areas:
    "copy stage selector"
    "actions stage selector"
    "trust stage selector";
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: clamp(28px, 3.2vw, 62px);
  width: min(calc(100% - 64px), 1480px);
  min-height: inherit;
  margin-inline: auto;
  padding-block: clamp(44px, 6vh, 76px);
}

.mt-product-hero__copy {
  grid-area: copy;
  align-self: end;
  max-width: 520px;
}

.mt-product-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: color-mix(in srgb, var(--mt-hero-text) 78%, transparent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.mt-product-hero__eyebrow-dot,
.mt-product-hero__selector-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mt-hero-gold);
}

.mt-product-hero__heading {
  display: grid;
  gap: 0;
  max-width: 590px;
  margin: clamp(22px, 3.1vh, 34px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 4.2vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.mt-product-hero__heading span {
  display: block;
  white-space: nowrap;
}

.mt-product-hero__gold-rule {
  display: block;
  width: 44px;
  height: 2px;
  margin-top: clamp(26px, 3.5vh, 38px);
  background: var(--mt-hero-gold);
}

.mt-product-hero__description {
  max-width: 490px;
  margin-top: 24px;
  color: var(--mt-hero-muted);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 300;
  line-height: 1.75;
}

.mt-product-hero__actions {
  grid-area: actions;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mt-product-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--mt-hero-text);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mt-product-hero__button--primary {
  color: var(--color-ivory);
  background: var(--mt-hero-text);
}

.mt-product-hero__button--secondary {
  color: var(--mt-hero-text);
  background: transparent;
}

.mt-product-hero__button:hover,
.mt-product-hero__button:focus-visible {
  color: var(--mt-hero-text);
  border-color: var(--mt-hero-gold);
  background: color-mix(in srgb, var(--mt-hero-gold) 14%, transparent);
}

.mt-product-hero__button:focus-visible,
.mt-product-hero__selector-button:focus-visible {
  outline: 2px solid var(--mt-hero-gold);
  outline-offset: 4px;
}

.mt-product-hero__trust {
  grid-area: trust;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 23px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.mt-product-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: color-mix(in srgb, var(--mt-hero-text) 72%, transparent);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mt-product-hero__trust li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--mt-hero-gold);
}

.mt-product-hero__trust svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-product-hero__stage {
  grid-area: stage;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mt-product-hero__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.mt-product-hero__image-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 750px);
  aspect-ratio: 1.15 / 1;
}

.mt-product-hero__image-shell::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 13%;
  bottom: 17%;
  height: 13%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(63, 49, 35, .19);
  filter: blur(26px);
  transform: skewX(-10deg);
}

.mt-product-hero__main-image {
  display: block;
  width: min(100%, 720px);
  height: auto;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 65%;
  opacity: 1;
  transition: opacity 150ms ease, transform 240ms ease;
  will-change: opacity, transform;
}

.mt-product-hero__main-image.is-switching {
  opacity: .12;
  transform: translate3d(0, 4px, 0) scale(.985);
}

.mt-product-hero__caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -4px;
  color: color-mix(in srgb, var(--mt-hero-text) 64%, transparent);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mt-product-hero__caption strong {
  color: var(--mt-hero-text);
  font-weight: 500;
}

.mt-product-hero__selector {
  grid-area: selector;
  align-self: center;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-left: clamp(18px, 2vw, 34px);
  border-left: 1px solid var(--mt-hero-border);
}

.mt-product-hero__selector-button {
  display: grid;
  grid-template-columns: 34px minmax(76px, 116px) minmax(72px, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  color: color-mix(in srgb, var(--mt-hero-text) 60%, transparent);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: .76;
  transition: color 180ms ease, opacity 180ms ease;
}

.mt-product-hero__selector-button:hover,
.mt-product-hero__selector-button:focus-visible,
.mt-product-hero__selector-button.is-active {
  color: var(--mt-hero-text);
  opacity: 1;
}

.mt-product-hero__selector-number {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  padding-top: 13px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
}

.mt-product-hero__selector-dot {
  width: 0;
  height: 0;
  opacity: 0;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.mt-product-hero__selector-button.is-active .mt-product-hero__selector-dot {
  width: 6px;
  height: 6px;
  opacity: 1;
}

.mt-product-hero__selector-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, .38);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.mt-product-hero__selector-button.is-active .mt-product-hero__selector-thumb {
  border-color: var(--mt-hero-gold);
  background: rgba(255, 255, 255, .58);
}

.mt-product-hero__selector-thumb img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.mt-product-hero__selector-name {
  max-width: 112px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .13em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .mt-product-hero__container {
    grid-template-columns: minmax(285px, .88fr) minmax(410px, 1.42fr) minmax(200px, .54fr);
    column-gap: 28px;
  }

  .mt-product-hero__heading {
    font-size: clamp(42px, 4.5vw, 58px);
  }

  .mt-product-hero__button {
    padding-inline: 22px;
  }

  .mt-product-hero__selector {
    padding-left: 18px;
  }

  .mt-product-hero__selector-button {
    grid-template-columns: 28px minmax(68px, 94px) minmax(64px, 1fr);
    gap: 9px;
  }
}

@media (max-width: 1080px) {
  .mt-product-hero {
    min-height: max(660px, calc(100svh - 156px));
  }

  .mt-product-hero__container {
    grid-template-columns: minmax(300px, .92fr) minmax(420px, 1.18fr);
    grid-template-areas:
      "copy stage"
      "actions stage"
      "trust selector";
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 24px 34px;
    padding-block: 48px;
  }

  .mt-product-hero__selector {
    align-self: start;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 0 0;
    border-top: 1px solid var(--mt-hero-border);
    border-left: 0;
  }

  .mt-product-hero__selector-button {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 0;
    text-align: center;
  }

  .mt-product-hero__selector-number {
    justify-self: center;
    align-self: auto;
    padding-top: 0;
  }

  .mt-product-hero__selector-name {
    justify-self: center;
    max-width: 100%;
    font-size: 8.5px;
    line-height: 1.45;
  }

  .mt-product-hero__trust {
    margin-top: 10px;
  }

  .mt-product-hero__image-shell {
    width: min(100%, 630px);
  }
}

@media (max-width: 820px) {
  .mt-product-hero {
    min-height: auto;
  }

  .mt-product-hero__container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "stage"
      "selector"
      "actions"
      "trust";
    width: min(calc(100% - 40px), 680px);
    min-height: 0;
    gap: 0;
    padding-block: 48px 52px;
  }

  .mt-product-hero__copy {
    max-width: 620px;
  }

  .mt-product-hero__heading {
    max-width: 640px;
    margin-top: 19px;
    font-size: clamp(43px, 9vw, 66px);
  }


  .mt-product-hero__heading span {
    white-space: normal;
  }

  .mt-product-hero__gold-rule {
    margin-top: 24px;
  }

  .mt-product-hero__description {
    max-width: 580px;
    margin-top: 19px;
  }

  .mt-product-hero__stage {
    min-height: 330px;
    margin-top: 10px;
  }

  .mt-product-hero__image-shell {
    width: min(100%, 610px);
    aspect-ratio: 1.42 / 1;
  }

  .mt-product-hero__main-image {
    width: min(92%, 570px);
  }

  .mt-product-hero__image-shell::after {
    bottom: 12%;
  }

  .mt-product-hero__caption {
    margin-top: -14px;
  }

  .mt-product-hero__selector {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 28px;
    padding-top: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mt-product-hero__selector::-webkit-scrollbar {
    display: none;
  }

  .mt-product-hero__selector-button {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  .mt-product-hero__selector-thumb {
    aspect-ratio: 1.55 / 1;
  }

  .mt-product-hero__selector-name {
    min-height: 25px;
  }

  .mt-product-hero__actions {
    margin-top: 32px;
  }

  .mt-product-hero__trust {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .mt-product-hero__container {
    width: min(calc(100% - 32px), 520px);
    padding-block: 38px 44px;
  }

  .mt-product-hero__eyebrow {
    font-size: 8.5px;
    letter-spacing: .16em;
  }

  .mt-product-hero__heading {
    font-size: clamp(40px, 12.5vw, 58px);
    line-height: .98;
  }

  .mt-product-hero__description {
    font-size: 14px;
    line-height: 1.68;
  }

  .mt-product-hero__stage {
    min-height: 280px;
    margin-top: 8px;
  }

  .mt-product-hero__image-shell {
    aspect-ratio: 1.25 / 1;
  }

  .mt-product-hero__main-image {
    width: 100%;
  }

  .mt-product-hero__selector {
    margin-top: 20px;
  }

  .mt-product-hero__selector-button {
    flex-basis: 118px;
    min-height: 44px;
  }

  .mt-product-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .mt-product-hero__button {
    min-height: 50px;
    padding-inline: 12px;
    font-size: 8.8px;
  }

  .mt-product-hero__trust {
    gap: 12px 16px;
  }

  .mt-product-hero__trust li {
    font-size: 8.5px;
  }

  .mt-product-hero__trust li::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .mt-product-hero__container {
    width: calc(100% - 28px);
  }

  .mt-product-hero__heading {
    font-size: clamp(37px, 12vw, 44px);
  }

  .mt-product-hero__stage {
    min-height: 245px;
  }

  .mt-product-hero__selector-button {
    flex-basis: 106px;
  }

  .mt-product-hero__actions {
    grid-template-columns: 1fr;
  }

  .mt-product-hero__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-product-hero__main-image,
  .mt-product-hero__button,
  .mt-product-hero__selector-button,
  .mt-product-hero__selector-dot,
  .mt-product-hero__selector-thumb {
    transition-duration: .01ms;
  }
}
