.hero {
  --persons-hero-content-offset-y: 0rem;
  position: relative;
  display: grid;
  min-height: clamp(42rem, 88svh, 58rem);
  place-items: center;
  overflow: hidden;
  background: var(--persons-cream);
  isolation: isolate;
}

.admin-bar .hero {
  min-height: clamp(40rem, calc(88svh - 32px), 56rem);
}

.hero__media,
.hero__fallback,
.hero__fallback img,
.hero__slides,
.hero__slide,
.hero__slide img,
.hero__slide video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -2;
}

.hero__fallback img,
.hero__slide img,
.hero__slide video {
  max-width: none;
  object-fit: cover;
  object-position: 52% center;
}

.hero__slides {
  background: transparent;
}

.hero__slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 750ms ease, visibility 0s linear 750ms;
}

.hero__slide.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.hero__slide.has-media-error video {
  visibility: hidden;
}

.hero__overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgb(255 255 255 / 74%) 0%, rgb(255 255 255 / 28%) 48%, rgb(255 255 255 / 62%) 100%);
}

.hero__content {
  display: flex;
  width: min(calc(100% - (2 * var(--persons-page-gutter))), 64rem);
  align-items: center;
  flex-direction: column;
  padding-block: calc(var(--persons-header-height) + 2rem) 5rem;
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 0.0625rem 1.25rem rgb(255 255 255 / 95%);
  transform: translateY(var(--persons-hero-content-offset-y));
}

.hero__emblem {
  width: clamp(7rem, 16vw, 11rem);
  aspect-ratio: 1;
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
  object-fit: contain;
  filter: drop-shadow(0 0.5rem 1rem rgb(23 61 40 / 14%));
}

.hero__eyebrow,
.hero__school-name {
  margin: 0;
  color: var(--persons-green-dark);
  font-weight: 700;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
}

.hero__school-name {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero__title {
  max-width: 58rem;
  margin: 0.75rem 0 0;
  color: var(--persons-green-dark);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero__description {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--persons-text);
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 700;
}

.hero__former-name {
  margin: 0.25rem 0 0;
  color: var(--persons-green-dark);
  font-family: var(--persons-font-family);
  font-size: clamp(0.9375rem, 2.4vw, 1.4rem);
  font-weight: 700;
}

.hero__opening-date {
  margin: clamp(0.75rem, 2vh, 1.25rem) 0;
  color: #a93355;
  font-family: var(--persons-font-family);
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero__button {
  min-width: min(100%, 11rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__controls {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.hero__arrow,
.hero__playback,
.hero__dot {
  display: inline-grid;
  min-width: 3rem;
  min-height: 3rem;
  place-items: center;
  border: 0.125rem solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  background: rgb(23 61 40 / 72%);
  color: var(--persons-white);
  cursor: pointer;
  pointer-events: auto;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero__arrow--previous {
  left: clamp(0.5rem, 2vw, 2rem);
}

.hero__arrow--next {
  right: clamp(0.5rem, 2vw, 2rem);
}

.hero__control-tray {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero__dots {
  display: flex;
  gap: 0.375rem;
}

.hero__dot {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.hero__dot::before {
  width: 0.625rem;
  height: 0.625rem;
  border: 0.125rem solid currentcolor;
  border-radius: 50%;
  content: "";
}

.hero__dot[aria-current="true"]::before {
  background: currentcolor;
  box-shadow: 0 0 0 0.1875rem rgb(255 255 255 / 35%);
}

.hero__arrow:hover,
.hero__playback:hover,
.hero__dot:hover {
  background: var(--persons-green-dark);
}

.hero__arrow:focus-visible,
.hero__playback:focus-visible,
.hero__dot:focus-visible {
  outline: 0.1875rem solid var(--persons-pink);
  outline-offset: 0.1875rem;
}

.about-section {
  background: linear-gradient(180deg, var(--persons-white), var(--persons-cream));
}

.about-section__lead {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  color: var(--persons-green);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.02em;
  text-align: center;
}

.about-section__lead::after {
  display: block;
  width: 4rem;
  height: 0.1875rem;
  margin: 1.5rem auto 0;
  background: var(--persons-pink);
  content: "";
}

.about-section__body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 2;
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

.front-page-content {
  background: var(--persons-white);
}

.contact-section {
  scroll-margin-top: calc(var(--persons-header-height) + 1rem);
  background: var(--persons-pink-soft);
  text-align: center;
}

.contact-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-section__text {
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.contact-section__text p:last-child {
  margin-bottom: 0;
}

.contact-section__button {
  min-width: min(100%, 16rem);
}

@media (max-width: 782px) {
  .admin-bar .hero {
    min-height: clamp(38rem, calc(88svh - 46px), 50rem);
  }
}

@media (min-width: 48rem) {
  .hero__content {
    width: min(calc(100% - 8rem), 64rem);
  }
}

@media (min-width: 64rem) {
  .hero__content {
    width: min(calc(100% - 8rem), 70rem);
  }

  .hero__title {
    max-width: 70rem;
    font-size: clamp(2rem, 5vw, 4.125rem);
  }
}

@media (max-width: 47.999rem) {
  .hero {
    min-height: clamp(36rem, 76svh, 46rem);
  }

  .admin-bar .hero {
    min-height: clamp(36rem, calc(76svh - 46px), 44rem);
  }

  .hero__fallback img,
  .hero__slide img,
  .hero__slide video {
    object-position: center 58%;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgb(255 255 255 / 84%) 0%, rgb(255 255 255 / 45%) 54%, rgb(255 255 255 / 68%) 100%);
  }

  .hero__content {
    justify-content: flex-start;
    padding-block: calc(var(--persons-header-height) + 0.75rem) 4.5rem;
  }

  .hero__emblem {
    width: 6rem;
    margin-bottom: 0.5rem;
  }

  .hero__school-name {
    margin-top: 0.1875rem;
  }

  .hero__title {
    margin-top: 0.375rem;
  }

  .hero__description {
    margin-top: 0.625rem;
  }

  .hero__actions {
    gap: 0.375rem;
    margin-top: 0.875rem;
  }

  .hero__button {
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
  }

  .hero__arrow {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .hero__control-tray {
    bottom: 1rem;
    max-width: calc(100% - 8rem);
  }

  .hero__dots {
    min-width: 0;
    overflow-x: auto;
  }

  .desktop-only {
    display: none;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__button {
    width: min(70%, 22rem);
    margin-inline: auto;
  }
}

@media (max-width: 22rem) {
  .site-branding__name {
    display: none;
  }

  .hero__content {
    padding-top: calc(var(--persons-header-height) + 1.25rem);
  }

  .hero__emblem {
    width: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

@media (max-height: 42rem) {
  .hero {
    --persons-hero-content-offset-y: 0rem;
  }

  .hero__content {
    padding-top: calc(var(--persons-header-height) + 2rem);
  }

  .hero__emblem {
    width: clamp(5rem, 18vh, 8rem);
  }
}

@media print {
  .hero {
    min-height: auto;
    padding-block: 3rem;
  }

  .hero__media,
  .hero__overlay,
  .hero__controls {
    display: none;
  }

  .hero__content {
    padding: 0;
  }
}
