.heritage-page {
  overflow: clip;
}

.heritage-page h1,
.heritage-page h2,
.heritage-page h3 {
  text-wrap: balance;
}

.heritage-page p {
  text-wrap: pretty;
}

.project-eyebrow {
  margin: 0 0 1rem;
  color: var(--brass-dark);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.15rem;
  color: var(--brass-dark);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.chapter-number::after {
  display: block;
  width: 2.75rem;
  height: 1px;
  content: "";
  background: var(--brass);
}

.heritage-hero {
  position: relative;
  min-height: clamp(41rem, 48vw, 50rem);
  background: var(--ivory-50);
  isolation: isolate;
}

.heritage-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ivory-50), transparent 57%);
  opacity: .48;
}

.heritage-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.heritage-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.heritage-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.heritage-hero__frame {
  position: relative;
  display: flex;
  min-height: clamp(41rem, 48vw, 50rem);
  align-items: center;
  border-left: 1px solid var(--line);
}

.heritage-hero__frame > .row {
  width: 100%;
}

.heritage-hero__copy {
  position: relative;
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(8rem, 11vw, 10rem) clamp(1.25rem, 2.5vw, 2.75rem);
}

.heritage-hero__copy .project-eyebrow {
  color: var(--wine-800);
}

.heritage-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--wine-800);
  font-size: clamp(3.45rem, 6.1vw, 6.35rem);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.045em;
}

.heritage-hero__tagline {
  max-width: 26ch;
  margin: 2.4rem 0 0;
  padding-top: 1.6rem;
  color: var(--brass-dark);
  border-top: 1px solid var(--brass);
  font-size: clamp(1.3rem, 2.15vw, 1.9rem);
  font-style: italic;
  line-height: 1.3;
}

.heritage-section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--ivory-50);
}

.heritage-section--tint {
  background: var(--ivory-100);
}

.heritage-section--wine {
  color: var(--ivory-50);
  background: var(--wine-950);
}

.heritage-section--wine .chapter-number,
.heritage-section--wine .project-eyebrow {
  color: var(--brass-light);
}

.heritage-heading {
  max-width: 17ch;
  margin: 0;
  color: var(--wine-800);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}

.heritage-heading--wide {
  max-width: 23ch;
}

.heritage-heading--light {
  color: var(--ivory-50) !important;
}

.heritage-lead {
  max-width: 54rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.8;
}

.editorial-copy {
  font-size: 1.05rem;
  line-height: 1.85;
}

.heritage-quote {
  margin: 2.5rem 0 0;
  padding: 1.6rem 0 0 2rem;
  color: var(--brass-dark);
  border-top: 1px solid var(--brass);
  border-left: 0;
  font-size: clamp(1.35rem, 2.15vw, 1.95rem);
  line-height: 1.4;
}

.heritage-quote i {
  margin-right: .8rem;
  font-size: 1rem;
}

.audience-grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.audience-panel {
  height: 100%;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-panel > span {
  display: block;
  margin-bottom: 2rem;
  color: var(--brass-dark);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.audience-panel h3 {
  max-width: 24ch;
  margin: 0 0 1rem;
  color: var(--wine-800);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
}

.audience-panel p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.heritage-goal {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.heritage-goal p:last-child {
  color: var(--wine-800);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.4;
}

.directions-intro {
  position: sticky;
  top: 2rem;
}

.directions-image {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.directions-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-list {
  border-top: 1px solid var(--line);
}

.direction-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.direction-row__index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: var(--brass-dark);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.direction-row__index i {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  color: var(--wine-800);
  border: 1px solid var(--brass);
  border-radius: 50%;
  font-size: 1rem;
}

.direction-row h3 {
  margin: 0 0 .8rem;
  color: var(--wine-800);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 500;
}

.direction-row p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.process-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list::before {
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  width: 1px;
  content: "";
  background: var(--brass);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  color: var(--wine-800);
  background: var(--ivory-100);
  border: 1px solid var(--brass);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
}

.process-step h3 {
  margin: 0 0 .7rem;
  color: var(--wine-800);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
}

.process-step p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.outcome-grid {
  border-top: 1px solid var(--brass-line);
  border-left: 1px solid var(--brass-line);
}

.outcome-panel {
  height: 100%;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-right: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
}

.outcome-panel i {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--brass-light);
  border: 1px solid var(--brass);
  border-radius: 50%;
}

.outcome-panel h3 {
  margin: 0 0 .8rem;
  color: var(--ivory-50);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 500;
}

.outcome-panel p {
  margin: 0;
  color: var(--ivory-200);
  line-height: 1.72;
}

.heritage-cta {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-actions .btn {
  display: flex;
  min-height: 4.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.back-link-wrap {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--wine-800);
}

@media (max-width: 991.98px) {
  .heritage-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .heritage-hero::before {
    display: none;
  }

  .heritage-hero__frame {
    min-height: 0;
    order: 1;
  }

  .heritage-hero__copy {
    padding: clamp(4.5rem, 10vw, 6.5rem) clamp(1.25rem, 6vw, 4rem);
  }

  .heritage-hero__media {
    position: relative;
    z-index: auto;
    height: clamp(23rem, 58vw, 35rem);
    order: 2;
    border-top: 1px solid var(--line);
  }

  .heritage-hero__image {
    object-position: 73% center;
  }

  .directions-intro {
    position: static;
  }

  .directions-image {
    min-height: 25rem;
  }
}

@media (max-width: 575.98px) {
  .heritage-hero__copy {
    padding: 4.25rem 1.1rem;
  }

  .heritage-hero h1 {
    font-size: clamp(2.3rem, 13vw, 4.5rem)!important;
  }

  .heritage-hero__media {
    height: 25rem;
  }

  .heritage-hero__image {
    width: auto;
    min-width: 100%;
    max-width: none;
    object-position: 73% center;
  }

  .direction-row {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .direction-row__index i {
    width: 2.5rem;
    height: 2.5rem;
  }

  .process-step {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: .75rem;
  }

  .heritage-heading {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
