/* EMRY feature showcase */

.features-section {
  position: relative;
  background: #f4eee6;
  color: var(--ink);
  padding: 72px 0 86px;
  overflow: hidden;
}

.features-inner {
  width: min(100% - 36px, 1240px);
  margin: 0 auto;
}

.features-intro {
  max-width: 660px;
  margin: 0 auto 46px;
  text-align: center;
}

.features-kicker,
.feature-eyebrow {
  margin: 0 0 13px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .32em;
  font-weight: 600;
  color: #a18d80;
}

.features-intro h2,
.feature-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.028em;
}

.features-intro h2 {
  font-size: clamp(44px, 11vw, 60px);
  line-height: .94;
}

.features-intro > p:last-child {
  margin: 16px auto 0;
  max-width: 48ch;
  color: #81756d;
  font-size: 15px;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 64px;
}

.feature-row {
  display: grid;
  gap: 22px;
}

.feature-copy {
  position: relative;
  z-index: 5;
  max-width: 390px;
}

.feature-copy h3 {
  font-size: clamp(42px, 12vw, 58px);
  line-height: .92;
}

.feature-copy > p:last-child {
  margin: 14px 0 0;
  max-width: 34ch;
  color: #81756d;
  font-size: 14px;
  line-height: 1.65;
}

.feature-visual {
  position: relative;
  width: 100%;
  height: clamp(460px, 124vw, 610px);
  isolation: isolate;
}

.feature-photo,
.feature-app {
  position: absolute;
  display: block;
  height: auto;
  object-fit: cover;
}

.feature-photo {
  z-index: 1;
  width: 72%;
  border-radius: 4px;
  box-shadow: 0 24px 54px rgba(70, 51, 38, .12);
}

.feature-app {
  z-index: 3;
  width: 48%;
  border-radius: 14px;
  box-shadow: 0 30px 64px rgba(46, 33, 25, .22);
}

.feature-stickers .feature-photo {
  right: 0;
  top: 2%;
}

.feature-stickers .feature-app {
  left: 1%;
  top: 28%;
  transform: rotate(-5deg);
}

.feature-beauty .feature-copy {
  margin-left: auto;
  text-align: right;
}

.feature-beauty .feature-photo {
  left: 0;
  top: 1%;
}

.feature-beauty .feature-app {
  right: 1%;
  top: 27%;
  transform: rotate(5deg);
}

.feature-effects .feature-photo {
  right: 0;
  top: 1%;
}

.feature-effects .feature-app {
  left: 1%;
  top: 27%;
  transform: rotate(-5deg);
}

@media (max-width: 719px) {
  .features-section {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .features-inner {
    width: calc(100% - 36px);
  }

  .features-intro {
    margin-bottom: 38px;
  }

  .feature-list {
    gap: 54px;
  }

  .feature-row {
    gap: 16px;
  }

  .feature-copy {
    padding-inline: 2px;
  }

  .feature-visual,
  .feature-visual * {
    touch-action: auto;
  }

  .feature-beauty .feature-copy {
    text-align: left;
    margin-left: 0;
  }

  .feature-beauty .feature-photo {
    width: 71%;
    left: 0;
  }

  .feature-beauty .feature-app {
    width: 47%;
    right: 0;
    top: 28%;
  }

  .feature-stickers .feature-photo,
  .feature-effects .feature-photo {
    width: 72%;
    right: 0;
  }

  .feature-stickers .feature-app,
  .feature-effects .feature-app {
    width: 47%;
    left: 0;
  }
}

@media (max-width: 380px) {
  .features-inner {
    width: calc(100% - 28px);
  }

  .features-intro h2 {
    font-size: clamp(41px, 11vw, 48px);
  }

  .feature-copy h3 {
    font-size: 45px;
  }

  .feature-visual {
    height: 500px;
  }
}

@media (min-width: 720px) {
  .features-section {
    padding-top: 96px;
    padding-bottom: 110px;
  }

  .features-intro {
    margin-bottom: 68px;
  }

  .features-intro h2 {
    font-size: 68px;
  }

  .feature-list {
    gap: 88px;
  }

  .feature-row {
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 48px;
  }

  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr);
  }

  .feature-row:nth-child(even) .feature-copy {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    margin-left: 0;
  }

  .feature-row:nth-child(even) .feature-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .feature-copy h3 {
    font-size: 62px;
  }

  .feature-copy > p:last-child {
    font-size: 15px;
  }

  .feature-visual {
    height: min(65vw, 600px);
  }

  .feature-photo {
    width: 64%;
  }

  .feature-app {
    width: 39%;
  }
}

@media (min-width: 980px) {
  .preset-mobile-extra {
    display: none !important;
  }

  .preset-cherry {
    order: 1;
  }

  .preset-autumn-road-card {
    order: 2;
  }

  .preset-city {
    order: 3;
  }
}

@media (min-width: 1080px) {
  .features-section {
    padding-top: 104px;
    padding-bottom: 112px;
  }

  .features-inner {
    width: min(100% - 90px, 1180px);
  }

  .features-intro {
    margin-bottom: 70px;
  }

  .features-intro h2 {
    font-size: 74px;
  }

  .feature-list {
    gap: 76px;
  }

  .feature-row {
    grid-template-columns: .78fr 1.22fr;
    gap: 58px;
  }

  .feature-row:nth-child(even) {
    grid-template-columns: 1.22fr .78fr;
  }

  .feature-copy {
    max-width: 420px;
  }

  .feature-copy h3 {
    font-size: 66px;
  }

  .feature-copy > p:last-child {
    max-width: 36ch;
    font-size: 16px;
    line-height: 1.7;
  }

  .feature-visual {
    height: 540px;
  }

  .feature-stickers .feature-photo,
  .feature-effects .feature-photo {
    width: 56%;
  }

  .feature-stickers .feature-app,
  .feature-effects .feature-app {
    width: 32%;
  }

  .feature-stickers .feature-app,
  .feature-effects .feature-app {
    top: 25%;
  }

  .feature-beauty .feature-photo {
    width: 61%;
  }

  .feature-beauty .feature-app {
    width: 36%;
  }
}
