/* css/page-home.css */
.hp-hero {
  --hero-pad: clamp(3.5rem, 7vw, 6rem);
  background:
    linear-gradient(
      180deg,
      var(--white) 0%,
      var(--bg) 100%);
}
.hp-hero-shell {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--overlay);
}
.hp-hero-image {
  position: absolute;
  inset: 0;
}
.hp-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}
.hp-hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgb(from var(--overlay-deep) r g b / 0.98) 0%,
      rgb(from var(--overlay) r g b / 0.94) 28%,
      rgb(from var(--overlay) r g b / 0.72) 52%,
      rgb(from var(--overlay) r g b / 0.48) 74%,
      rgb(from var(--overlay) r g b / 0.32) 100%);
  pointer-events: none;
}
.hp-hero-copy {
  width: min(var(--max-width), 100%);
  max-width: 40rem;
  margin: 0 auto;
  margin-inline-start: max(var(--page-gutter), calc((100% - var(--max-width)) / 2 + var(--page-gutter)));
  padding: var(--hero-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.hp-hero-copy h1 {
  margin: 0.8rem 0 1.2rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.98;
}
.hp-hero-copy h1 em {
  color: var(--accent);
  font-style: italic;
}
.hp-hero-copy > p {
  max-width: 30rem;
  color: rgb(from var(--white) r g b / 0.78);
  font-size: var(--text-md);
  line-height: 1.6;
  margin-block-end: 1.7rem;
}
.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hp-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hp-upcoming {
  background: var(--bg);
}
.hp-paths {
  background: var(--white);
}
.hp-upcoming-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: 2rem;
}
.hp-upcoming-head > div {
  max-width: 780px;
}
.hp-upcoming-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
.hp-upcoming-head p {
  color: var(--fg-muted);
  font-size: var(--text-md);
  line-height: 1.75;
}
@media (max-width: 760px) {
  .hp-upcoming-head {
    display: block;
  }
  .hp-upcoming-head .hp-text-link {
    display: inline-block;
    margin-block-start: 0.8rem;
  }
}
.hp-section-head {
  max-width: 780px;
  margin-block-end: 2.5rem;
}
.hp-section-head h2 {
  margin: 0.45rem 0 0.8rem;
  font-family: var(--serif);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
.hp-section-head p {
  color: var(--fg-muted);
  font-size: var(--text-md);
  line-height: 1.75;
}
.hp-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hp-path-card {
  min-height: 410px;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  display: block;
}
.hp-path-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hp-path-card:hover img {
  transform: scale(1.025);
}
.hp-path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      transparent 0%,
      transparent 30%,
      rgb(from var(--overlay-card) r g b / 0.75) 62%,
      rgb(from var(--overlay-card) r g b / 0.97) 100%);
}
.hp-path-card-copy {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
}
.hp-path-card h3 {
  margin: 0.35rem 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: var(--heading-lg);
  font-weight: 600;
}
.hp-path-card p {
  color: rgb(from var(--white) r g b / 0.88);
  font-size: var(--text-md);
}
.hp-impact {
  --impact-pad: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  overflow: hidden;
  background: var(--overlay);
}
.hp-impact-image {
  position: absolute;
  inset: 0;
}
.hp-impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      270deg,
      rgb(from var(--overlay-deep) r g b / 0.98) 0%,
      rgb(from var(--overlay) r g b / 0.95) 36%,
      rgb(from var(--overlay) r g b / 0.84) 56%,
      rgb(from var(--overlay) r g b / 0.58) 76%,
      rgb(from var(--overlay) r g b / 0.38) 100%);
  pointer-events: none;
}
.hp-impact-copy {
  width: min(var(--max-width), 100%);
  max-width: 36rem;
  margin: 0 auto;
  margin-inline-end: max(var(--page-gutter), calc((100% - var(--max-width)) / 2 + var(--page-gutter)));
  padding: var(--impact-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.hp-impact-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.hp-impact-copy > p {
  color: rgb(from var(--white) r g b / 0.78);
  font-size: var(--text-md);
  line-height: 1.6;
  margin-block-end: 2rem;
}
.hp-impact-copy .button {
  align-self: flex-start;
}
.hp-journal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: 2.3rem;
}
.hp-journal-head > div {
  max-width: 780px;
}
.hp-journal-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
.hp-journal-head p {
  color: var(--fg-muted);
  font-size: var(--text-md);
  line-height: 1.75;
}
.hp-text-link {
  display: inline-block;
  margin: -0.75rem -0.5rem;
  padding: 0.75rem 0.5rem;
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hp-text-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.hp-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hp-journal-grid .blog-post-card {
  min-width: 0;
}
.hp-journal-grid .blog-card-title {
  font-size: var(--text-lg);
}
.hp-journal-grid .blog-card-meta {
  font-size: var(--text-xs);
}
.hp-give {
  padding: clamp(3.5rem, 8vw, 6rem) var(--page-gutter);
  background: var(--primary);
  color: var(--white);
}
.hp-give-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hp-give-copy {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hp-give-copy h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: 1.1;
}
.hp-give-copy p {
  max-width: 36rem;
  margin: 0;
  color: rgb(from var(--white) r g b / 0.78);
  font-size: var(--text-md);
  line-height: 1.75;
  text-wrap: pretty;
}
.hp-give-copy .button {
  margin-block-start: 2rem;
}
@media (max-width: 980px) {
  .hp-hero {
    --hero-pad: 3.5rem;
  }
  .hp-hero-shell::after {
    background:
      linear-gradient(
        100deg,
        rgb(from var(--overlay-deep) r g b / 0.98) 0%,
        rgb(from var(--overlay) r g b / 0.92) 36%,
        rgb(from var(--overlay) r g b / 0.58) 64%,
        rgb(from var(--overlay) r g b / 0.36) 100%);
  }
  .hp-impact {
    min-height: 0;
    background: var(--bg-muted);
  }
  .hp-impact-image,
  .hp-impact::after {
    display: none;
  }
  .hp-impact-copy {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: none;
    margin: 0 var(--page-gutter);
    padding: 4rem 0;
  }
  .hp-impact-copy h2 {
    color: var(--primary);
  }
  .hp-impact-copy > p {
    color: var(--fg-muted);
  }
  .hp-impact-copy .button {
    background: var(--primary);
    color: var(--white);
  }
  .hp-impact-copy .button:hover:not(:disabled) {
    background: var(--primary-hover);
    color: var(--white);
  }
  .hp-impact-copy .button:focus-visible {
    outline-color: var(--primary);
  }
  .hp-path-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hp-path-card:last-child {
    grid-column: 1 / -1;
  }
  .hp-path-card img {
    position: absolute;
    inset: 0;
    object-position: 0 35%;
  }
  .hp-path-card img.hp-path-card-sessions-img {
    object-position: 0 15%;
  }
  .hp-journal-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .hp-hero {
    --hero-pad: 4rem;
  }
  .hp-hero-shell::after {
    background:
      linear-gradient(
        180deg,
        rgb(from var(--overlay-deep) r g b / 0.8) 0%,
        rgb(from var(--overlay-deep) r g b / 0.88) 42%,
        rgb(from var(--overlay-deep) r g b / 0.96) 100%);
  }
  .hp-hero-copy {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: none;
    margin: 0 var(--page-gutter);
  }
  .hp-hero-image img {
    object-position: 58% 42%;
  }
  .hp-path-grid,
  .hp-journal-grid {
    grid-template-columns: 1fr;
  }
  .hp-path-card:last-child {
    grid-column: auto;
  }
  .hp-path-card {
    min-height: 360px;
  }
  .hp-journal-head {
    display: block;
  }
  .hp-journal-head .hp-text-link {
    display: inline-block;
    margin-block-start: 0.8rem;
  }
}
.hp-path-card {
  border-radius: 12px;
  isolation: isolate;
}
