/* Our Story — loaded only on the /our-story/ page (see functions.php). */

.story-page {
  margin: 0;
}

/* Hero: full-bleed portrait with the headline set over the lower third. */
.story-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 900px);
  overflow: hidden;
}

.story-hero-media,
.story-hero-copy {
  grid-area: 1 / 1;
}

.story-hero-media {
  margin: 0;
  height: 100%;
}

.story-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.story-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  padding-bottom: 72px;
  color: #fff;
}

/* Scrim keeps the type legible over the sand without flattening the photograph. */
.story-hero::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(to top, rgba(58, 46, 42, .62) 0%, rgba(58, 46, 42, .28) 34%, transparent 62%);
}

.story-hero .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.story-hero h1 {
  max-width: 12ch;
  color: #fff;
}

.story-hero-standfirst {
  max-width: 46ch;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

/* Alternating image/copy blocks. */
.story-block {
  padding-block: 118px;
}

.story-block-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
  gap: 7vw;
  align-items: center;
}

.story-block-media {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
}

.story-block-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-block-reverse .story-block-media {
  order: 2;
}

.story-block-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 3.6vw, 50px);
}

.story-block-copy p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.story-block-copy p + p {
  margin-top: 18px;
}

/* Pull quote. */
.story-quote {
  padding-block: 104px;
  background: var(--blush);
  text-align: center;
}

.story-quote blockquote {
  margin: 0 auto;
}

.story-quote p {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.18;
}

/* Two-image diptych. */
.story-horizons {
  padding-block: 118px;
}

.story-horizons-head {
  max-width: 56ch;
  margin-bottom: 54px;
}

.story-horizons-head h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 3.6vw, 50px);
}

.story-horizons-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.story-horizons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.story-horizons-grid figure {
  margin: 0;
}

.story-horizons-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
}

.story-horizons-grid figcaption {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Values triptych. */
.story-values {
  padding-block: 96px;
  border-block: 1px solid var(--line);
  background: rgba(232, 214, 200, .32);
}

.story-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.story-values-grid h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

.story-values-grid p {
  margin: 0;
  color: var(--ink-soft);
}

/* Closing call to action. */
.story-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7vw;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  padding-block: 118px;
}

.story-cta-media {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
}

.story-cta-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-cta-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 3.6vw, 50px);
}

.story-cta-copy p {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.story-cta-copy .button-row {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .story-values-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .story-hero {
    min-height: 76vh;
  }

  .story-hero-copy {
    width: min(100% - 28px, var(--wrap));
    padding-bottom: 46px;
  }

  .story-hero-standfirst {
    margin-top: 20px;
    font-size: 15px;
  }

  .story-block,
  .story-horizons,
  .story-cta {
    padding-block: 66px;
  }

  .story-block-grid,
  .story-cta {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* Photo leads on narrow screens, whichever side it sits on at desktop. */
  .story-block-reverse .story-block-media {
    order: 0;
  }

  .story-cta {
    width: min(100% - 28px, var(--wrap));
  }

  .story-quote {
    padding-block: 62px;
  }

  .story-quote p {
    max-width: none;
  }

  .story-horizons-head {
    margin-bottom: 32px;
  }

  .story-horizons-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story-values {
    padding-block: 60px;
  }
}
