.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../img/hero-paper-texture.webp") center / cover no-repeat;
  pointer-events: none;
  filter: var(--paper-texture-filter);
  mix-blend-mode: var(--paper-texture-blend-mode);
  opacity: var(--paper-texture-opacity);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(7rem, 18vh, 12rem);
  background: linear-gradient(180deg, rgba(245, 232, 228, 0) 0%, rgba(245, 232, 228, 0.32) 45%, rgba(245, 232, 228, 1) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: calc(100% - 2rem);
  max-width: var(--content);
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 2rem 0 1.5rem;
  gap: 1rem;
  padding-bottom: 0;
}

.hero__topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
}

.brand {
  margin: 0;
  font-family: var(--title-font);
  font-size: 0.95rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand__desktop {
  display: none;
  color: var(--red);
}

.brand__mobile {
  display: inline-flex;
  flex-direction: column;
  color: var(--red);
}

.brand__program {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
}

.hero__utility-nav {
  display: none;
  align-items: center;
  gap: 1rem;
}

.hero__join-button {
  min-height: auto;
  padding: 1.1rem 1.65rem;
  font-size: 1.125rem;
  line-height: 1;
  white-space: nowrap;
}

.hero__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vh, 1rem);
  min-height: 0;
  padding-block: clamp(0.75rem, 2vw, 1.75rem);
  padding-bottom: 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.hero__title-mark {
  width: 100%;
  max-width: 48rem;
  width: min(100%, 48rem);
  height: auto;
}

.hero__brand-desktop {
  display: none;
}

.hero__fist-shell {
  display: none;
}

.hero__fist-mobile-shell {
  display: flex;
  flex: 1 0 clamp(15rem, 36vh, 24rem);
  align-self: center;
  align-items: flex-end;
  justify-content: center;
  width: 100vw;
  max-width: none;
  min-height: 0;
  margin-inline: calc(50% - 50vw);
  overflow: visible;
}

.hero__fist {
  opacity: 0.36;
}

.hero__fist--mobile {
  display: block;
  width: auto;
  height: 100%;
  max-width: min(130vw, 34rem);
  max-height: none;
  opacity: 1;
  flex: 0 0 auto;
  margin-top: 0;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 47.999rem) {
  .hero__fist-mobile-shell {
    flex: 0 0 auto;
    width: min(100vw, 28rem);
    max-height: min(58vh, 30rem);
    margin-top: auto;
  }

  .hero__fist--mobile {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: min(58vh, 30rem);
  }
}

.hero__jump-links {
  display: none;
}

.hero__nav-separator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.hero__nav-rose {
  display: block;
  width: 1.15rem;
  height: auto;
}

.hero__nav-rose--floating {
  width: 1rem;
}

.hero__jump-link {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.hero__jump-link:hover,
.hero__jump-link:focus-visible {
  color: var(--ink);
}

.hero__floating-nav {
  display: none;
}

.mobile-menu {
  --mobile-menu-top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
  position: absolute;
  top: 0;
  right: 0;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__toggle {
  position: relative;
  z-index: 56;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.mobile-menu__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-menu__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.mobile-menu__icon--open {
  display: none;
}

.mobile-menu__panel {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.mobile-menu[open] .mobile-menu__icon--closed {
  display: none;
}

.mobile-menu[open] .mobile-menu__icon--open {
  display: inline-block;
}

.mobile-menu[open] .mobile-menu__toggle {
  position: fixed;
  top: var(--mobile-menu-top);
  right: 1rem;
  color: var(--ink);
}

.mobile-menu[open] .mobile-menu__panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 28rem;
}

.mobile-menu__list a {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--text-fluid-xl);
  line-height: 1.05;
  text-decoration: none;
}

.mobile-menu__item {
  width: 100%;
}

.mobile-menu__item--home {
  margin-bottom: 0;
}

.mobile-menu__item a {
  display: inline-block;
  padding-block: 0.25rem;
  transition: color 160ms ease, opacity 160ms ease;
}

.mobile-menu__separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-block: 0.85rem;
}

.mobile-menu__rose {
  display: block;
  width: 1.4rem;
  height: auto;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
  color: var(--red);
}

.mobile-menu__list a[aria-current="page"] {
  color: var(--red);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 48rem) {
  .brand {
    font-size: 1.5rem;
  }

  .hero__topbar {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }

  .hero__topbar .brand__desktop {
    display: inline;
  }

  .hero__topbar .brand__mobile,
  .mobile-menu,
  .hero__brand-desktop {
    display: none;
  }

  .hero__utility-nav {
    display: flex;
    margin-left: auto;
    align-self: center;
  }

  .hero__inner {
    width: min(calc(100% - 4rem), 76rem);
    padding: 3rem 0 3rem;
  }

  .hero__stage {
    justify-content: space-between;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    padding: clamp(1rem, 2vw, 1.5rem) 0 0;
  }

  .hero__copy {
    gap: 1.15rem;
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(100%, 56rem);
    z-index: 2;
  }

  .hero__title-mark {
    width: 100%;
    max-width: min(100%, 56rem);
  }

  .hero__fist-shell {
    display: none;
  }

  .hero__fist--desktop {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    mix-blend-mode: luminosity;
  }

  .hero__fist--mobile {
    height: 100%;
  }

  .hero__fist-mobile-shell {
    flex-basis: clamp(12rem, 24vh, 18rem);
  }

  .hero__jump-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0.9rem;
    row-gap: 0.55rem;
    width: 100%;
    margin-inline: 0;
    margin-top: auto;
    padding: 1.2rem 0 0.85rem;
    border-top: 1px solid rgba(235, 34, 41, 0.8);
    color: var(--red);
    text-align: center;
  }

  .hero__jump-link {
    color: inherit;
    font-size: var(--text-fluid-sm);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .hero__jump-link:hover,
  .hero__jump-link:focus-visible {
    color: var(--ink);
  }

  .hero__jump-link[aria-current="page"] {
    color: var(--red);
  }

  .hero__floating-nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px) + 0.75rem);
    left: 50%;
    z-index: 58;
    display: block;
    width: min(calc(100% - 4rem), 76rem);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.has-visible-hero-nav .hero__floating-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .hero__floating-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0.85rem;
    row-gap: 0.45rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(235, 34, 41, 0.35);
    border-radius: 9999px;
    background: rgba(245, 232, 228, 0.94);
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    color: var(--ink);
  }

  .hero__floating-link {
    color: inherit;
    font-size: var(--text-fluid-sm);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: color 160ms ease, opacity 160ms ease;
  }

  .hero__floating-link:hover,
  .hero__floating-link:focus-visible {
    color: var(--ink);
  }

  .hero__floating-link[aria-current="page"] {
    color: var(--red);
  }
}

@media (min-width: 48rem) and (max-width: 95.999rem) {
  .hero__topbar {
    gap: 1.5rem;
  }

  .hero__topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero__utility-nav {
    flex: 0 0 auto;
  }

  .hero__jump-links {
    width: 100%;
    padding-top: 0.9rem;
    padding-bottom: 1rem;
  }

  .hero__jump-link {
    font-size: var(--text-fluid-md);
  }

  .hero__floating-nav {
    width: min(calc(100% - 2rem), 76rem);
  }

  .hero__floating-nav-inner {
    padding-inline: 1rem;
  }

  .hero__floating-link {
    font-size: var(--text-fluid-sm);
  }
}

@media (min-width: 48rem) and (max-width: 95.999rem) and (max-height: 840px) {
  .hero__inner {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .hero__topbar .brand {
    font-size: 1.2rem;
  }

  .hero__join-button {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }

  .hero__stage {
    min-height: 0;
    gap: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0;
  }

  .hero__fist-mobile-shell {
    flex-basis: clamp(8rem, 16vh, 10rem);
  }

  .hero__title-mark {
    width: min(100%, 40rem);
    max-width: min(100%, 40rem);
  }

  .hero__jump-links {
    width: 100%;
    padding-top: 0.45rem;
    padding-bottom: 0.5rem;
  }

  .hero__jump-link {
    font-size: 1rem;
  }
}

@media (min-width: 64rem) and (max-width: 95.999rem) and (orientation: landscape) {
  .hero__stage {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: clamp(18rem, 26vw, 24rem);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero__copy {
    align-items: flex-end;
    width: auto;
    max-width: min(100%, 42rem);
  }

  .hero__title-mark {
    width: min(100%, 42rem);
    max-width: min(100%, 42rem);
  }

  .hero__fist-shell {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 clamp(10rem, 16vw, 14rem);
    width: clamp(10rem, 16vw, 14rem);
    aspect-ratio: 445 / 592;
    min-width: 10rem;
    pointer-events: none;
  }

  .hero__fist--desktop {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    mix-blend-mode: luminosity;
  }

  .hero__fist-mobile-shell {
    display: none;
  }

  .hero__jump-links {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 96rem) {
  .hero__inner {
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
  }

  .hero__stage {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.75rem, 3vw, 4rem);
    min-height: clamp(30rem, 56vh, 42rem);
    padding: 0 0 2rem;
  }

  .hero__copy {
    align-items: flex-end;
    flex: 1 1 0;
    width: auto;
    max-width: min(100%, 58rem);
  }

  .hero__title-mark {
    width: min(100%, 58rem);
    max-width: min(100%, 58rem);
  }

  .hero__fist-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 clamp(15rem, 22vw, 25rem);
    width: clamp(15rem, 22vw, 25rem);
    aspect-ratio: 445 / 592;
    min-width: 15rem;
    pointer-events: none;
  }

  .hero__fist--desktop {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    mix-blend-mode: luminosity;
  }

  .hero__fist-mobile-shell {
    display: none;
  }

  .hero__jump-links {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}
@media (max-width: 47.999rem) {
  .hero__inner {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .hero__topbar,
  .hero__copy {
    width: 100%;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .hero__fist-mobile-shell {
    align-self: stretch;
    width: 100%;
    margin-inline: 0;
  }

  .hero__floating-nav {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    right: 1rem;
    top: var(--mobile-menu-top);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
  }

  .mobile-menu__toggle {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--paper);
    border: 1px solid rgba(35, 31, 32, 0.12);
    box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.14);
  }

  .mobile-menu--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease, visibility 0s;
  }

  .mobile-menu__panel {
    padding: 5.5rem 1.25rem 1.25rem;
  }

  .mobile-menu__list a {
    font-size: var(--text-fluid-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu__toggle,
  .mobile-menu__panel,
  .hero__floating-nav {
    transition: none;
  }
}
