/* Why Garmour: four photo cards, using the existing brand colours. */
.why-section {
  padding: 88px clamp(24px, 5vw, 80px) 96px;
  overflow: hidden;
  background: #f0ebe2;
  color: #302b28;
  letter-spacing: 0.02em;
  word-spacing: 0;
}

.why-inner {
  max-width: 1370px;
  margin: 0 auto;
}

.why-heading {
  margin-bottom: 48px;
}

.why-heading h2 {
  margin: 0;
  color: #a13a33;
  font-size: clamp(32px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.why-card {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 450px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 44px);
  background: #302b28;
  color: #fffef3;
}

/* Keep each card's text above its photo and dark overlay. */
.why-card > :not(.why-photo):not(.why-photo-shade) {
  position: relative;
  z-index: 2;
}

.why-card h3 {
  margin: 0 0 18px;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: 0;
}

.why-card p,
.why-minimum-number span {
  margin: 0;
  color: #eee5dc;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Garment pattern archive frames the brand trust card. */
.why-card-trust {
  grid-column: span 7;
}

.why-trust-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.why-stat {
  position: relative;
  align-self: center;
  font-size: clamp(100px, 11vw, 166px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.why-stat-star {
  --star-size: 24px;
  position: absolute;
  top: -12px;
  right: -10px;
  width: var(--star-size);
  height: var(--star-size);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.why-stat-star::after {
  position: absolute;
  inset: 0;
  background: inherit;
  transform: rotate(45deg);
  content: '';
}

.why-trust-content h3 {
  font-size: clamp(25px, 2.2vw, 32px);
}

/* Fabric rolls illustrate the materials behind production. */
.why-card-experience {
  grid-column: span 5;
}

.why-photo,
.why-photo-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.why-photo {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.why-photo-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(24, 17, 13, 0.78), rgba(24, 17, 13, 0.56) 62%, rgba(24, 17, 13, 0.30));
}

.why-card-trust .why-photo {
  object-position: center 17%;
}

.why-card-trust .why-photo-shade {
  background: rgb(0 0 0 / 60%);
}

.why-card-experience .why-photo {
  object-position: center 68%;
}

.why-card-experience .why-photo-shade {
  background: linear-gradient(90deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 60%) 62%, rgb(0 0 0 / 35%));
}

.why-card-guidance .why-photo {
  object-position: 65% center;
}

.why-card-guidance .why-photo-shade {
  background: linear-gradient(90deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 60%) 68%, rgb(0 0 0 / 40%));
}

.why-experience-content {
  max-width: 330px;
}

.why-experience-content .why-since {
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.why-experience-content h3 {
  margin-bottom: 18px;
  font-size: clamp(66px, 7vw, 100px);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Keep the order quantity visually prominent. */
.why-card-minimums {
  grid-column: span 5;
  gap: 24px;
}

.why-card-minimums .why-photo-shade {
  background: rgb(0 0 0 / 60%);
}

.why-minimum-number {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fffef3;
  font-size: clamp(82px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.why-minimum-copy h3 {
  font-size: clamp(26px, 2.2vw, 32px);
}

/* A dress form accompanies the designer support card. */
.why-card-guidance {
  grid-column: span 7;
  container-type: inline-size;
}

.why-guidance-copy h3 {
  font-size: min(clamp(30px, 3vw, 44px), 10cqi);
}

.why-guidance-copy p {
  max-width: 33ch;
}

/* Content is visible by default, including when JavaScript is unavailable. */
.why-card[data-reveal="left"] {
  --reveal-shift: -44px;
}

.why-card[data-reveal="right"] {
  --reveal-shift: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .why-section.reveal-ready .why-card {
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.25, 1);
  }

  .why-section.reveal-ready .why-card:not(.is-visible) {
    opacity: 0;
    transform: translateX(var(--reveal-shift));
  }
}

@media (max-width: 1100px) {
  .why-trust-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .why-stat {
    max-width: 160px;
  }

  .why-trust-content h3 br {
    display: none;
  }

  .why-trust-content p {
    max-width: 40ch;
  }

  .why-minimum-number {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .why-section {
    padding: 64px 24px;
  }

  .why-heading {
    margin-bottom: 32px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-card {
    grid-column: auto;
    min-height: 400px;
    padding: 28px;
  }

  .why-trust-content {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .why-stat {
    font-size: 116px;
  }

  .why-stat-star {
    --star-size: 18px;
    right: -6px;
  }

  .why-minimum-number {
    font-size: 116px;
  }

  .why-card-guidance .why-photo-shade {
    background: rgb(0 0 0 / 60%);
  }

  .why-guidance-copy h3 {
    font-size: min(34px, 10cqi);
  }

  .why-guidance-copy p {
    max-width: 34ch;
  }
}

@media (max-width: 440px) {
  .why-trust-content {
    grid-template-columns: 1fr;
  }

  .why-stat {
    max-width: 155px;
    font-size: 124px;
  }

  .why-minimum-number {
    gap: 14px;
    font-size: 104px;
  }

}
