/* ==========================================================================
   Story — SUN. SALT. SKIN. asymmetric editorial composition
   ========================================================================== */

.story {
  --mask-color: var(--ivory-light);
  background: var(--ivory-light);
  padding-block: var(--section-y);
  overflow: hidden;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.story__copy { padding-right: clamp(0rem, 2vw, 2.5rem); }

.story__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: .96;
  color: var(--ink);
  margin: 1.75rem 0 2rem;
}
.story__title span { display: block; }
.story__title .is-caramel { color: var(--caramel); }

.story__text {
  color: var(--text-on-ivory-mute);
  max-width: 40ch;
  margin-bottom: 1.1rem;
}
.story__text strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.story__copy .link-arrow { margin-top: 1.5rem; }

/* --- imagery -------------------------------------------------------------- */
.story__media { position: relative; }
.story__stack { position: relative; }

.story__main { aspect-ratio: 4 / 3.2; }
.story__main img {
  /* slow counter-drift as the section passes through the viewport */
  transform: translate3d(0, calc((var(--p, .5) * 2 - 1) * -2.2%), 0) scale(1.08);
  will-change: transform;
}

.story__inset {
  position: absolute;
  left: clamp(-3.5rem, -4vw, -1rem);
  bottom: clamp(-2.5rem, -3vw, -1rem);
  width: clamp(9rem, 21%, 15rem);
  aspect-ratio: 1 / 1;
  border: 8px solid var(--ivory-light);
  border-radius: calc(var(--radius-sm) + 8px);
  box-shadow: 0 24px 60px -30px rgba(26, 23, 20, .5);
  transform: translate3d(0, calc((var(--p, .5) * 2 - 1) * 3.4%), 0);
  will-change: transform;
}

/* small caption set in the negative space */
.story__caption {
  position: absolute;
  right: 0;
  bottom: clamp(-3.25rem, -3vw, -2rem);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-on-ivory-mute);
}

/* --- values strip --------------------------------------------------------- */
.story__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding-top: clamp(2rem, 3vw, 3rem);
  border-top: 1px solid var(--rule-dark);
}
.story__strip li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-on-ivory-mute);
}
.story__strip .icon { flex: none; color: var(--caramel); }

@media (max-width: 1024px) {
  .story__grid { grid-template-columns: 1fr; gap: clamp(3rem, 8vw, 4rem); }
  .story__copy { padding-right: 0; max-width: 34rem; }
  .story__main { aspect-ratio: 16 / 11; }
  .story__inset { width: clamp(8rem, 24%, 12rem); left: auto; right: clamp(1rem, 4vw, 3rem); bottom: -2rem; }
  .story__caption { position: static; display: block; margin-top: 3.5rem; text-align: right; }
  .story__strip { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; margin-top: 5rem; }
}
@media (max-width: 560px) {
  .story__main { aspect-ratio: 4 / 4.4; }
  .story__inset { width: 42%; border-width: 6px; left: -.75rem; right: auto; bottom: -1.75rem; }
  .story__strip { grid-template-columns: 1fr; }
}
