.nd-about-story {
  color: #171412;
  background: #ded5ca;
  border-top: 1px solid rgb(23 20 18 / 24%);
}

.nd-about-story__chapter {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(680px, 84svh, 880px);
  padding: clamp(28px, 5vw, 76px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgb(23 20 18 / 24%);
}

.nd-about-story__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-width: 0;
  overflow: hidden;
  background: #cfc4b8;
}

.nd-about-story__media::before,
.nd-about-story__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.nd-about-story__media::before {
  z-index: 1;
  background: linear-gradient(90deg, rgb(15 12 10 / 30%), rgb(15 12 10 / 4%) 58%, rgb(15 12 10 / 14%));
}

.nd-about-story__chapter--lounge .nd-about-story__media::before {
  background: linear-gradient(270deg, rgb(15 12 10 / 28%), rgb(15 12 10 / 3%) 58%, rgb(15 12 10 / 12%));
}

.nd-about-story__media::after {
  z-index: 2;
  background: #c8bcaf;
  transform: scaleX(0);
  transform-origin: right center;
}

.nd-about-story__chapter--lounge .nd-about-story__media::after {
  transform-origin: left center;
}

.nd-about-story__media.is-prepared::after {
  transform: scaleX(1);
}

.nd-about-story__media.is-prepared.is-visible::after {
  transform: scaleX(0);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nd-about-story__media img,
.nd-about-story__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.nd-about-story__chapter--lounge .nd-about-story__media img,
.nd-about-story__chapter--lounge .nd-about-story__media svg {
  object-position: center 30%;
}

.nd-about-story__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(620px, 48vw);
  min-width: 0;
  padding: clamp(38px, 5vw, 76px);
  background: rgb(247 243 237 / 94%);
  border: 1px solid rgb(23 20 18 / 34%);
  box-shadow: 0 24px 70px rgb(18 14 11 / 16%);
}

.nd-about-story__chapter--lounge .nd-about-story__copy {
  margin-inline-start: auto;
}

.nd-about-story__eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.nd-about-story h1,
.nd-about-story h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--sort-title-font);
  font-size: clamp(48px, 5.2vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.nd-about-story__copy > p:not(.nd-about-story__eyebrow) {
  max-width: 570px;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.72;
}

.nd-about-story__action {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px 0 20px;
  margin-top: 32px;
  color: #171412;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  background: #f7f3ed;
  border: 1px solid #171412;
}

.nd-about-story__action--primary {
  color: #fff;
  background: #7d2636;
  border-color: #7d2636;
}

.nd-about-story__action-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  color: currentColor;
  border: 1px solid currentColor;
}

.nd-about-story__action-icon svg {
  width: 16px;
  height: 16px;
}

.nd-about-story__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 540px;
  margin-top: 32px;
}

.nd-about-story__actions .nd-about-story__action {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .nd-about-story__action {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  }

  .nd-about-story__action--primary:hover {
    color: #fff;
    background: #5f1928;
    border-color: #5f1928;
  }

  .nd-about-story__action--secondary:hover {
    color: #fff;
    background: #171412;
  }
}

@media (max-width: 699px) {
  .nd-about-story__chapter {
    align-items: flex-end;
    min-height: 720px;
    padding: 18px 14px;
  }

  .nd-about-story__media::before,
  .nd-about-story__chapter--lounge .nd-about-story__media::before {
    background: linear-gradient(180deg, rgb(15 12 10 / 4%) 26%, rgb(15 12 10 / 22%) 62%, rgb(15 12 10 / 44%));
  }

  .nd-about-story__media img,
  .nd-about-story__media svg,
  .nd-about-story__chapter--lounge .nd-about-story__media img,
  .nd-about-story__chapter--lounge .nd-about-story__media svg {
    object-position: center 24%;
  }

  .nd-about-story__copy,
  .nd-about-story__chapter--lounge .nd-about-story__copy {
    width: 100%;
    margin: 0;
    padding: 28px 22px 24px;
    background: rgb(247 243 237 / 96%);
    box-shadow: 0 16px 42px rgb(18 14 11 / 18%);
  }

  .nd-about-story h1,
  .nd-about-story h2 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .nd-about-story__copy > p:not(.nd-about-story__eyebrow) {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.62;
  }

  .nd-about-story__action {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
  }

  .nd-about-story__actions {
    margin-top: 24px;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .nd-about-story__chapter {
    min-height: 720px;
    padding: 32px;
  }

  .nd-about-story__copy {
    width: min(520px, 62vw);
    padding: 42px;
  }

  .nd-about-story h1,
  .nd-about-story h2 {
    font-size: clamp(44px, 6.2vw, 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-about-story__media::after,
  .nd-about-story__media.is-prepared::after,
  .nd-about-story__media.is-prepared.is-visible::after {
    transform: scaleX(0);
    transition: none;
  }
}
