html.home-scroll { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
body.home-page { display: block; padding: 0 clamp(22px, 5vw, 64px); color: #242723; }
.home-page main, .home-footer { max-width: 800px; margin-inline: auto; }
.home-intro { padding: 24px 0 34px; text-align: center; scroll-snap-align: start; scroll-snap-stop: always; min-height: 100svh; display: grid; align-items: center; }
.home-intro .portrait { position: relative; width: min(100%, 560px); margin: 24px auto 0; }
.slideshow-images { aspect-ratio: 40 / 31; }
.slideshow-images .slideshow-image { width: 100%; height: 100%; object-fit: contain; }
.hero-candidacy { color: #073f5e; margin: 12px 0 0; font-size: 16px; line-height: 1.5; }
.hero-candidacy strong { display: block; font-weight: 500; }
.slideshow-controls { position: absolute; inset: 0 8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none; }
.slideshow-controls[hidden] { display: none; }
.slideshow-control { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #62665f; cursor: pointer; pointer-events: auto; }
.slideshow-control svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;  }
.slideshow-control:hover, .slideshow-control:focus-visible { color: #073f5e; background: #fff; }
.slideshow-control:focus-visible { outline: 2px solid #073f5e; outline-offset: 0; }
.slideshow-pause:focus-visible { position: static; width: 44px; height: 44px; margin: 0; clip-path: none; overflow: visible; border: 0; background: #fff; color: #242723; outline: 2px solid #073f5e; cursor: pointer; pointer-events: auto; }
.profile-document { width: 100%; font-size: var(--text-size); line-height: 1.7; }
.profile-topic, .profile-section { min-height: 100svh; padding: 44px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.profile-intro { text-align: center; }
.profile-document h2 { text-align: center; margin-bottom: 30px; }
.profile-prose { max-width: 650px; margin-inline: auto; text-align: left; }
.profile-document p { margin: 0 0 20px; }
.profile-prose p:last-child { margin-bottom: 0; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; max-width: 650px; margin: 32px auto 0; text-align: left; }
.profile-summary > div { min-width: 0; }
.profile-summary dt { font-size: var(--small-size); color: #62665f; margin-bottom: 4px; }
.profile-summary dd { margin: 0; font-size: var(--text-size); line-height: 1.7; overflow-wrap: anywhere; }
.profile-prose a, .profile-summary a { text-decoration: underline; text-underline-offset: 5px; }
.priority-grid { display: grid; gap: 28px; max-width: 720px; margin: 36px auto 0; }
.priority { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.5fr); gap: 24px; }
.priority p { font-size: var(--text-size); line-height: 1.7; margin: 0; }
.priority p + p { margin-top: 20px; }
.priority-subtitle { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #62665f; line-height: 1.5; margin-top: 9px; }
.section-next { display: block; text-align: center; color: #073f5e; font-size: 14px; padding: 12px; margin: 32px auto 0; }
.profile-section > .section-next { width: fit-content; max-width: 100%; min-height: 44px; overflow-wrap: anywhere; }
.profile-section > .section-previous { margin: 0 auto 20px; color: #62665f; }
.intro-chapters { width: 100%; margin-top: 10px; color: #073f5e; font-size: var(--small-size); }
.intro-chapters ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 14px; padding: 0; margin: 0; list-style: none; }
.intro-chapters li { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100%; }
.intro-chapters a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
.intro-chapters-separator { color: #62665f; }
.home-footer { max-width: 650px; scroll-snap-align: end; border-top: 1px solid #dedfd9; padding: 24px 0; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: var(--small-size); line-height: 1.5; color: #62665f; }
.home-footer > * { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.home-footer a { text-decoration: underline; text-underline-offset: 5px; }
.profile-button { display: inline-block; border: 1px solid #62665f; padding: 10px 20px; margin-top: 24px; }
@media (max-width: 700px) {
  html.home-scroll { scroll-snap-type: none; }
  .home-intro { min-height: 0; padding: 24px 0 28px; }
  .profile-topic, .profile-section { min-height: 0; padding: 34px 0; }
  .priority { grid-template-columns: 1fr; gap: 0; }
  .priority-grid { gap: 30px; }
  .profile-summary { gap: 20px; }
  .section-next { margin-top: 20px; }
}
@media (max-width: 480px) {
  .intro-chapters ul { flex-direction: column; align-items: center; }
  .intro-chapters-separator { display: none; }
  .profile-summary { grid-template-columns: 1fr; }
}
.home-contact { max-width: 650px; margin: 48px auto 0; text-align: center; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; max-width: 100%; padding: 10px 24px; border: 1px solid currentColor; color: #073f5e; font-size: var(--text-size); line-height: 1.5; text-decoration: none; }
.profile-prose p, .priority p { text-align: left; }
@media (max-width: 600px) {
  .home-contact { margin-top: 48px; }
  .home-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .home-footer-note, .home-footer-back { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) { html.home-scroll { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html.home-scroll { scroll-snap-type: none; } }
