/* Flowing menu embed (about page) */
.flowing-menu-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
}

.flowing-menu-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background: transparent;
}

.flowing-menu-embed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.flowing-menu-text {
  display: none;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.flowing-menu-text h1 {
  margin: 0;
  line-height: 1.5;
  word-break: keep-all;
  font-size: var(--fs-h1);
  text-align: center;
}

.flowing-menu-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  text-align: center;
}

.flowing-menu-text.is-ready .char {
  animation: char-reveal 0.55s ease forwards;
  animation-delay: calc(var(--char-index, 0) * 0.07s);
}

.flowing-menu-section .menu-wrap {
  width: 100%;
  overflow: hidden;
}

.flowing-menu-section .menu {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
  align-items: center;
}

.flowing-menu-section .menu__item {
  position: relative;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  margin: 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flowing-menu-section .menu.menu--ready .menu__item {
  animation: menu-fade-in 1s ease forwards;
  animation-delay: var(--item-delay, 0s);
}

.flowing-menu-section .menu__item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Oagothic", "Noto Sans KR", "Helvetica Neue";
  font-weight: 800;
  color: #111111;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  padding: 0;
  width: 100%;
  border: none;
  background: transparent;
  transition: color 0.3s ease;
}

.flowing-menu-section .menu__item-label {
  display: inline-block;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.flowing-menu-section .menu__item-link:hover .menu__item-label {
  opacity: 0;
}

.flowing-menu-section .menu__item-link:hover {
  color: #060010;
}

.flowing-menu-section .menu__item-link:focus-visible {
  outline: 2px solid #060010;
  outline-offset: 4px;
}

.flowing-menu-section .menu__item-link:focus:not(:focus-visible) {
  color: #111111;
}

.flowing-menu-section .marquee {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.flowing-menu-section .marquee__inner-wrap {
  height: 100%;
  width: 200%;
  display: flex;
  transform: translateX(0);
}

.flowing-menu-section .marquee__inner {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: 200%;
  will-change: transform;
  animation: marquee 15s linear infinite;
  animation-play-state: paused;
}

.flowing-menu-section .marquee span {
  color: #060010;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: "Oagothic", "Noto Sans KR", "Helvetica Neue";
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1.2;
  padding: 0 1vw;
  display: flex;
  align-items: center;
}

.flowing-menu-section .marquee__img {
  width: clamp(140px, 18vw, 320px);
  height: clamp(5.5rem, 5vw, 8.5rem);
  margin: 0 2vw;
  border-radius: 999px;
  background-size: cover;
  background-position: 50% 50%;
}

.flowing-menu-section .menu__item-link:hover + .marquee {
  opacity: 1;
}

.flowing-menu-section .marquee.is-active .marquee__inner {
  animation-play-state: running;
}

.flowing-menu-section .menu__item-link span {
  display: inline-block;
}

.flowing-menu-section .menu__item-label .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}

.flowing-menu-section .menu.menu--ready .menu__item-label .char {
  animation: char-reveal 0.55s ease forwards;
  animation-delay: calc(var(--item-delay, 0s) + var(--char-index, 0) * var(--char-stagger, 0.07s));
}

@media (max-width: 1200px) {
  .flowing-menu-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .flowing-menu-embed {
    display: none;
  }

  .flowing-menu-text {
    display: block;
  }

  .flowing-menu-section .menu__item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .flowing-menu-section .menu {
    gap: 0;
  }

  .flowing-menu-section .menu__item-link {
    padding: 0;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    width: auto;
  }

  .flowing-menu-section .menu__item-link span,
  .flowing-menu-section .menu__item-label .char {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .flowing-menu-section .marquee {
    display: none;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .flowing-menu-embed {
    display: flex !important;
  }

  .flowing-menu-text {
    display: none !important;
  }

  .flowing-menu-section .menu__item-link {
    padding: 0;
    font-size: clamp(3.8rem, 4.5vw, 4.2rem);
  }
}

@media (max-width: 768px) {
  .flowing-menu-section {
    width: 100%;
    margin-left: 0;
  }

  .flowing-menu-section .menu__item:nth-child(3) .menu__item-link span {
    display: block;
    white-space: normal;
    line-height: 1.4;
  }
}

@media (min-width: 721px) {
  .flowing-menu-text h1 {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
  }
}

@keyframes menu-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes char-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
