/*
 * Scent Collection chapter opening.
 * Isolated from the legacy V9 rules so the hierarchy remains intentional.
 */

.scent-v9-intro-refresh {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 2.62fr);
  gap: clamp(38px, 4.4vw, 84px);
  min-height: clamp(430px, 34vw, 610px);
  padding: clamp(54px, 4.5vw, 86px);
  overflow: hidden;
  background: #dce1df;
  color: #26312e;
}

/*
 * The whole Scent Collection uses one broad browser measure.  This is
 * deliberately scoped here so the rest of the V9 prototype is untouched.
 */
.scent-v9 > .page-shell {
  width: 100%;
  max-width: none;
}

.scent-v9-intro-refresh::after {
  position: absolute;
  right: clamp(38px, 4.5vw, 86px);
  bottom: 0;
  width: clamp(100px, 10vw, 190px);
  height: 8px;
  background: #c86f61;
  content: "";
}

.scent-v9-intro-refresh .section-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding-right: clamp(22px, 2.4vw, 44px);
  border-right: 1px solid rgb(38 49 46 / 0.2);
}

.scent-v9-intro-refresh .section-rail .eyebrow {
  margin: 0;
  color: #bc6659;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.scent-v9-intro-refresh .section-rail > span {
  max-width: 15ch;
  color: #52605c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.scent-v9-intro-refresh > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.5fr);
  align-items: end;
  gap: clamp(46px, 5.2vw, 100px);
  min-width: 0;
}

.scent-v9-intro-refresh h2 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #1f2a27;
  font-size: clamp(70px, 6.15vw, 120px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.scent-v9-intro-refresh > div:last-child > p {
  width: 100%;
  max-width: 34ch;
  margin: 0 0 4px;
  padding-top: 22px;
  border-top: 1px solid rgb(38 49 46 / 0.22);
  color: #4e5b57;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1.55;
}

.scent-families-v9-refresh {
  padding-top: clamp(62px, 6vw, 104px);
  padding-bottom: 42px;
  background: #c9786b;
}

.scent-families-v9-refresh > .subsection-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 2.62fr);
  align-items: end;
  gap: clamp(38px, 4.4vw, 84px);
  margin: 0 0 clamp(34px, 3.5vw, 60px);
  padding-bottom: clamp(25px, 2.5vw, 42px);
  border-bottom: 1px solid rgb(255 242 232 / 0.4);
}

.scent-families-v9-refresh > .subsection-heading .eyebrow {
  margin: 0;
  color: #fff2e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scent-families-v9-refresh > .subsection-heading h3 {
  width: 100%;
  max-width: none;
  margin: 0 0 0 auto;
  color: #fff2e8;
  font-size: clamp(58px, 5.15vw, 96px);
  font-weight: 740;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: right;
}

/*
 * Full-width Featured Scent rows still need a human reading margin.
 * The heading and the left-side story copy share the same inset used by
 * "SCENT WITHIN EASY VIEW" instead of touching the browser edge.
 */
.featured-v9 {
  --featured-copy-inset: clamp(52px, 4.4vw, 92px);
}

.featured-v9 > .subsection-heading {
  width: 100%;
  margin-bottom: clamp(40px, 4vw, 72px);
  padding-inline: var(--featured-copy-inset);
}

.featured-v9 > .subsection-heading .eyebrow {
  flex: 0 0 auto;
  margin: 0;
}

.featured-v9 > .subsection-heading h3 {
  width: auto;
  max-width: none;
  margin: 0 0 0 auto;
  font-size: clamp(44px, 3.7vw, 70px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-align: right;
  white-space: nowrap;
}

.featured-v9-card:nth-child(odd) > div {
  box-sizing: border-box;
  padding-left: var(--featured-copy-inset);
}

@media (max-width: 900px) {
  .scent-v9 > .page-shell {
    width: 100%;
  }

  .scent-v9-intro-refresh {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: 0;
    padding: 54px 30px 64px;
  }

  .scent-v9-intro-refresh .section-rail {
    flex-direction: row;
    align-items: baseline;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgb(38 49 46 / 0.2);
  }

  .scent-v9-intro-refresh .section-rail > span {
    max-width: none;
    text-align: right;
  }

  .scent-v9-intro-refresh > div:last-child {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .scent-v9-intro-refresh h2 {
    font-size: clamp(54px, 14vw, 76px);
  }

  .scent-v9-intro-refresh > div:last-child > p {
    max-width: 36ch;
    font-size: 17px;
  }

  .scent-families-v9-refresh {
    padding-top: 58px;
  }

  .scent-families-v9-refresh > .subsection-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scent-families-v9-refresh > .subsection-heading h3 {
    max-width: 100%;
    margin-left: 0;
    font-size: clamp(48px, 13vw, 70px);
    text-align: left;
  }

  .featured-v9 {
    --featured-copy-inset: 20px;
  }

  .featured-v9 > .subsection-heading {
    display: grid;
    gap: 18px;
    padding-inline: var(--featured-copy-inset);
  }

  .featured-v9 > .subsection-heading h3 {
    margin-left: 0;
    font-size: clamp(40px, 10.8vw, 58px);
    text-align: left;
    white-space: normal;
  }

  .featured-v9-card:nth-child(odd) > div {
    padding-right: var(--featured-copy-inset);
  }
}
