/*====================================================
   Moran Food - History Page
   Ordered CSS
   01. Base / PC
   02. Tablet media query
   03. Mobile media query
====================================================*/


/*------------------------------------
   Header mode
------------------------------------*/

.history_overview .header:not(.is_scroll):not(:hover) .gnb_main {
   color: var(--color-text-light);
}

.history_overview .header:hover .gnb_main {
   color: var(--color-text-primary);
}

.history_overview .header:hover .gnb_item:hover .gnb_main {
   color: var(--color-brand);
}

.history_overview .header.is_scroll .gnb_item:hover .gnb_main {
   color: var(--color-brand);
}

.history_overview .gnb_main {
   transition: color 0.25s ease;
}

.history_overview .header.is_visual_mode:not(.is_scroll) {
   background-color: var(--color-bg-base);
   backdrop-filter: none;
   -webkit-backdrop-filter: none;
   box-shadow: none;
}

.history_overview .header.is_visual_mode:not(.is_scroll) .gnb_main {
   color: var(--color-text-primary);
}

.history_overview .header.is_scroll,
.history_overview .header.is_scroll:hover,
.history_overview .header.is_scroll.is_visual_mode,
.history_overview .header.is_scroll.is_visual_mode:hover {
   background-color: var(--color-surface);
   backdrop-filter: none;
   -webkit-backdrop-filter: none;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.history_overview .header.is_scroll .gnb_main,
.history_overview .header.is_scroll.is_visual_mode .gnb_main {
   color: var(--color-text-primary);
}

.history_overview .header.is_visual_mode:not(.is_scroll):hover {
   background-color: var(--color-bg-base);
}

.history_overview .header.is_visual_mode:hover .gnb_main,
.history_overview .header.is_scroll.is_visual_mode:hover .gnb_main {
   color: var(--color-text-primary);
}

.history_overview .header.is_visual_mode:hover .gnb_item:hover .gnb_main,
.history_overview .header.is_scroll.is_visual_mode:hover .gnb_item:hover .gnb_main {
   color: var(--color-brand);
}


/*------------------------------------
   Common utility
------------------------------------*/

.history_sticky {
   position: sticky;
   top: 0;
   width: 100%;
   height: 100vh;
   overflow: hidden;
   background: #fff;
}


/*------------------------------------
   History year navigation
------------------------------------*/

:root {
   --history-year-nav-height: 86px;
}

.history_year_nav {
   position: sticky;
   top: 0;
   z-index: 60;
   width: 100%;
   height: var(--history-year-nav-height);
   background: #fff;
   box-shadow: inset 0 -1px 0 #e5e5e5;
   overflow: hidden;
}

.history_year_nav.is-click-moving {
   box-shadow: none;
}

.history_year_nav>ul {
   width: 100%;
   max-width: 1400px;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto;
   padding: 0;
   list-style: none;
}

.history_year_nav li {
   height: 100%;
}

.history_year_nav li>a {
   position: relative;
   width: 200px;
   height: 100%;
   padding: 28px 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   font-weight: 400;
   color: var(--color-text-disabled);
   text-decoration: none;
   transition: color 0.25s ease;
}

.history_year_nav li>a::after {
   content: "";
   position: absolute;
   left: 50%;
   bottom: 0;
   width: 40%;
   height: 2px;
   background: var(--color-brand);
   transform: translateX(-50%) scaleX(0);
   transform-origin: center;
   transition: transform 0.3s cubic-bezier(.215, .61, .355, 1);
}

.history_year_nav li>a.is-active {
   color: var(--color-brand);
   font-weight: 500;
}

.history_year_nav li>a.is-active::after {
   transform: translateX(-50%) scaleX(1);
}

.history_year_nav li>a:hover {
   color: var(--color-brand);
}


/*------------------------------------
   History content / records
------------------------------------*/

#history_content {
   position: relative;
   width: 100%;
   background: #fff;
   overflow: visible;
}

.history_chapter {
   position: relative;
   width: 100%;
   height: 430vh;
   background: #fff;
}

.history_chapter_img {
   --history-img-dim: 0.5;
   position: absolute;
   left: 0;
   top: 0;
   z-index: 20;
   width: 100%;
   height: 100vh;
   overflow: hidden;
   pointer-events: none;
   will-change: transform, width, height, opacity;
}

.history_chapter_img::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 2;
   background: rgba(0, 0, 0, var(--history-img-dim));
   pointer-events: none;
}

.history_chapter_img img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center center;
}

.history_chapter_visual {
   position: absolute;
   inset: 0;
   z-index: 30;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: var(--color-text-light);
   overflow: hidden;
}

.history_chapter_intro>.history_chapter_text {
   position: absolute;
   inset: 0;
   z-index: 30;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: var(--color-text-light);
}

.history_chapter_text {
   position: relative;
   z-index: 4;
   width: max-content;
   margin: 0 auto;
   overflow: hidden;
   will-change: clip-path;
}

.history_chapter_text_inner {
   will-change: transform;
}

.history_chapter_text h2 {
   margin: 0;
   font-size: 64px;
   font-weight: 700;
   color: var(--color-text-light);
}

.history_chapter_text p {
   margin-top: 40px;
   font-size: 24px;
   line-height: 1.55;
   color: var(--color-text-light);
}

.history_chapter_dim {
   display: none;
}

.history_record_area {
   position: absolute;
   inset: 0;
   z-index: 10;
   width: 100%;
   height: 100%;
   margin-top: 0;
   padding: 0;
   background: #fff;
   opacity: 0;
   visibility: hidden;
}

.mo_history_record_head {
   display: none;
}

.history_chapter_intro {
   position: absolute;
   inset: 0;
   z-index: 20;
   width: 100%;
   height: 100vh;
   overflow: hidden;
   background: transparent;
}

.history_record_inner {
   width: 1400px;
   max-width: calc(100% - 160px);
   height: 100%;
   display: grid;
   grid-template-columns: 40% 1fr;
   column-gap: 60px;
   align-items: center;
   margin: 0 auto;
}

.history_record_thumb_slot {
   position: relative;
   top: auto;
   align-self: center;
   width: 100%;
   height: 60vh;
   background: transparent;
}

.history_record_thumb_img {
   width: 100%;
   height: 100%;
   overflow: hidden;
   opacity: 0;
   visibility: hidden;
}

.history_record_thumb_img.is_visible {
   opacity: 1;
   visibility: visible;
}

.history_record_thumb_img img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center center;
}

.history_record_list {
   width: 100%;
   height: 65vh;
   overflow: visible;
}

.history_record_list.is-short {
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.history_record_item {
   display: grid;
   grid-template-columns: 130px 1fr;
   column-gap: 80px;
   padding: 60px 0;
}

.history_record_item:last-child {
   padding-bottom: 0;
}

.history_record_item h3 {
   margin: 0;
   font-size: 40px;
   font-weight: 600;
   line-height: 1;
}

.history_record_item ul {
   display: flex;
   flex-direction: column;
   gap: 18px;
   margin: 0;
   padding: 0;
   list-style: none;
}

.history_record_item li {
   display: grid;
   grid-template-columns: 44px 1fr;
   column-gap: 24px;
   color: var(--color-text-primary);
}

.history_record_item li span {
   font-size: 18px;
   font-weight: 600;
   line-height: 1.55;
   color: var(--color-text-primary);
}

.history_record_item li p {
   margin: 0;
   font-size: 18px;
   line-height: 1.55;
   color: var(--color-text-secondary);
}


/*------------------------------------
   Animations
------------------------------------*/


@keyframes historyScrollArrow {
   0% {
      opacity: 0;
   }

   50% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}

@keyframes historyScrollWheel {
   0% {
      opacity: 0;
      transform: translate(-50%, 0);
   }

   35% {
      opacity: 1;
   }

   100% {
      opacity: 0;
      transform: translate(-50%, 9px);
   }
}


/*------------------------------------
   Tablet: 600px - 1024px
------------------------------------*/
@media screen and (min-width: 600px) and (max-width: 1024px) {
   /*------------------------------------
      Header mode
   ------------------------------------*/

   .history_overview .header.is_visual_mode:not(.is_scroll),
   .history_overview .header.is_visual_mode:not(.is_scroll):hover {
      background-color: var(--color-bg-base);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
   }

   .history_overview .header.is_visual_mode:not(.is_scroll) .menu_btn span {
      background-color: var(--color-text-primary);
   }

   .history_overview .header.is_scroll .menu_btn span,
   .history_overview .header:not(.is_visual_mode) .menu_btn span {
      background-color: var(--color-text-primary);
   }

   /*------------------------------------
      History year navigation
   ------------------------------------*/

   :root {
      --history-year-nav-height: 76px;
   }

   .history_year_nav li {
      width: calc(100% / 4);

      flex: 1 1 0;
   }

   .history_year_nav li>a {
      width: 100%;
      padding: 0;
      font-size: clamp(15px, 2vw, 17px);
   }

   .history_year_nav li>a::after {
      width: 100%;
      height: 2px;
   }

   /*------------------------------------
   History content / records
   ------------------------------------*/

   #history_content {
      position: relative;
      width: 100%;
      overflow: visible;
      background: #fff;
   }

   .history_chapter {
      position: relative;
      width: 100%;
   }

   #history_current.history_chapter {
      height: 560svh;
   }

   #history_growth.history_chapter {
      height: 520svh;
   }

   #history_innovation.history_chapter {
      height: 470svh;
   }

   #history_start.history_chapter {
      height: 360svh;
   }

   .history_sticky {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden;
      background: #fff;
   }

   .history_chapter_intro {
      position: absolute;
      inset: 0;
      z-index: 20;
      width: 100%;
      height: 100dvh;
      min-height: 0;
      max-height: none;
      overflow: hidden;
      background: transparent;
   }

   .history_chapter_img {
      --history-img-dim: 0.45;

      position: absolute;
      left: 0;
      top: 0;
      z-index: 20;

      width: 100%;
      height: 100dvh;

      overflow: hidden;
      pointer-events: none;
      will-change: left, top, width, height, opacity;
   }

   .history_chapter_img::after {
      background: rgba(0, 0, 0, var(--history-img-dim));
   }

   .history_chapter_img img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
   }

   .history_chapter_visual,
   .history_chapter_intro>.history_chapter_text {
      position: absolute;
      inset: 0;
      z-index: 30;

      width: 100%;
      height: 100%;

      display: flex;
      align-items: center;
      justify-content: center;

      text-align: center;
      color: var(--color-text-light);
      overflow: hidden;
   }

   .history_chapter_text {
      position: relative;
      z-index: 4;
      width: max-content;
      margin: 0 auto;
      overflow: hidden;
      will-change: clip-path;
   }

   .history_chapter_text_inner {
      will-change: transform, opacity, clip-path;
   }

   #history_content .history_chapter_text h2 {
      font-size: clamp(48px, 6.25vw, 56px);
   }

   #history_content .history_chapter_text p {
      margin-top: clamp(28px, 3.5vw, 36px);
      font-size: clamp(18px, 2.1vw, 21px);
      line-height: 1.6;
   }

   .history_record_area {
      position: absolute;
      inset: 0;
      z-index: 10;

      width: 100%;
      height: 100%;

      padding: 0;
      background: #fff;
      overflow: hidden;

      opacity: 0;
      visibility: hidden;
   }

   .history_record_inner {
      width: 100%;
      max-width: none;
      height: 100%;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;

      margin: 0 auto;
      padding-top: clamp(84px, 9svh, 120px);
      box-sizing: border-box;
   }

   .history_record_thumb_slot {
      position: relative;
      display: block;

      width: calc(100vw - 48px);
      max-width: 900px;
      height: auto;
      aspect-ratio: 16 / 9;

      margin-bottom: 20px;

      overflow: hidden;
      background: transparent;
   }

   .history_record_thumb_slot::before {
      content: none;
      display: block;
   }

   .history_record_thumb_img {
      display: none;
   }

   .history_record_list {
      position: relative;
      width: calc(100vw - 48px);
      height: calc(100svh - clamp(84px, 11svh, 400px) - 320px);
      min-height: 400px;

      margin: 0 auto;
      overflow: hidden;

      opacity: 0;
      visibility: hidden;
      will-change: transform, opacity;
   }

   .history_record_track {
      position: relative;
      width: 100%;
      will-change: transform;
   }

   .history_record_list.is-short {
      display: block;
   }

   .history_record_item {
      display: grid;
      grid-template-columns: 140px 1fr;
      column-gap: 0px;
      padding: 48px 0;
   }

   .history_record_item:last-child {
      padding-bottom: 80px;
   }

   .history_record_item h3 {
      margin: 0;
      font-size: clamp(26px, 3.6vw, 30px);
      font-weight: 600;
      line-height: 1;
      color: var(--color-text-secondary);
   }

   .history_record_item ul {
      display: flex;
      flex-direction: column;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
   }

   .history_record_item li {
      display: grid;
      grid-template-columns: 30px 1fr;
      column-gap: 14px;
   }

   .history_record_item li span {
      font-size: clamp(15px, 1.9vw, 17px);
      font-weight: 600;
      line-height: 1.55;
      color: var(--color-text-primary);
   }

   .history_record_item li p {
      margin: 0;
      font-size: clamp(15px, 1.9vw, 17px);
      line-height: 1.55;
      color: var(--color-text-secondary);
      word-break: keep-all;
   }
}


/*------------------------------------
   Mobile: 360px - 599px
------------------------------------*/
@media screen and (min-width: 300px) and (max-width: 599px) {

   /*------------------------------------
      Header mode
   ------------------------------------*/
   .history_overview .header.is_history_message_mode {
      transform: translateY(-100%);
      pointer-events: none;
   }

   .history_overview .header.is_visual_mode:not(.is_scroll),
   .history_overview .header.is_visual_mode:not(.is_scroll):hover {
      background-color: var(--color-bg-base);
      box-shadow: none;
   }

   .history_overview .header.is_scroll,
   .history_overview .header.is_scroll:hover,
   .history_overview .header.is_scroll.is_visual_mode,
   .history_overview .header.is_scroll.is_visual_mode:hover {
      background-color: var(--color-surface);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
   }

   .history_overview .header .menu_btn span,
   .history_overview .header.is_scroll .menu_btn span,
   .history_overview .header:not(.is_visual_mode) .menu_btn span {
      background-color: var(--color-text-primary);
   }

   /*------------------------------------
      History content / records
   ------------------------------------*/
   .history_year_nav {
      display: none;
   }

   #history_content {
      overflow: hidden;
   }

   .history_chapter {
      height: auto;
      background: #fff;
   }

   .history_sticky {
      position: relative;
      top: auto;
      height: auto;
      overflow: visible;
      background: #fff;
   }

   .history_chapter_intro {
      display: none;
   }

   .history_record_area {
      position: relative;
      inset: auto;
      z-index: 1;
      width: 100%;
      height: auto;
      padding: 100px 20px 50px;
      background: #fff;
      opacity: 1 !important;
      visibility: visible !important;
   }

   .history_record_inner {
      width: 100%;
      max-width: none;
      height: auto;
      display: block;
      margin: 0;
   }

   .history_record_thumb_slot,
   .history_record_thumb_img {
      display: none;
   }

   .history_record_list {
      width: 100%;
      height: auto;
      overflow: visible;
      transform: none !important;
      opacity: 1 !important;
      visibility: visible !important;
   }

   .history_record_list.is-short {
      display: block;
   }

   .history_record_item {
      display: grid;
      grid-template-columns: 1fr;
      row-gap: 24px;
      padding: 34px 0;
      border-top: 1px solid #e6e6e6;
   }

   #history_current .history_record_item:first-child {
      border-top: 0;
      padding-top: 0;
   }

   .history_record_item:last-child {
      padding-bottom: 34px;
      border-bottom: 1px solid #e6e6e6;
   }

   .history_record_item h3 {
      font-size: 28px;
      font-weight: 600;
      line-height: normal;
      color: var(--color-brand);
   }

   .history_record_item ul {
      gap: 12px;
   }

   .history_record_item li {
      grid-template-columns: 32px 1fr;
      column-gap: 16px;
   }

   .history_record_item li span {
      font-size: 15px;
      font-weight: 500;
      line-height: 1.4;
      color: var(--color-text-primary);
   }

   .history_record_item li p {
      font-size: 15px;
      line-height: 1.4;
      color: var(--color-text-secondary);
      word-break: keep-all;
   }

   .mo_history_record_head {
      display: block;
      margin-bottom: 40px;
   }

   .mo_history_record_title_row {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 16px;
   }

   .mo_history_record_title_row h2 {
      margin: 0;
      font-size: 32px;
      font-weight: 600;
      line-height: normal;
      color: var(--color-brand);
   }

   .mo_history_record_title_row span {
      font-size: 14px;
      font-weight: 400;
      line-height: normal;
      color: var(--color-text-muted);
      white-space: nowrap;
   }

   .mo_history_record_head p {
      margin: 0;
      font-size: 15px;
      font-weight: 400;
      line-height: normal;
      color: var(--color-text-secondary);
      word-break: keep-all;
   }
}
/* History visual: independent copy of the overview visual system */
#history_visual {
   position: relative;
   width: 100%;
   height: 260vh;
   background: var(--color-bg-base);
}

#mo_history_visual {
   display: none;
}

.history_visual_sticky {
   position: sticky;
   top: 0;
   width: 100%;
   height: 100vh;
   overflow: hidden;
   background: var(--color-bg-base);
   --history-line-top: clamp(148px, 22vh, 222px);
}

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

.history_visual_line {
   position: absolute;
   display: block;
   background: rgba(102, 155, 69, 0.32);
   will-change: transform, opacity;
}

body.history_overview.is_history_message_scene #top_btn {
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
}

.history_visual_line_h {
   left: 0;
   width: 100%;
   height: 1px;
   transform-origin: left center;
}

.history_visual_line_h01 {
   top: var(--history-line-top);
}

.history_visual_line_h02 {
   bottom: clamp(96px, 13vh, 140px);
}

.history_visual_line_v {
   top: 0;
   height: 100%;
   width: 1px;
   transform-origin: center top;
}

.history_visual_line_v01 {
   left: clamp(72px, 8vw, 150px);
}

.history_visual_line_v02 {
   left: clamp(560px, 43vw, 820px);
}

.history_visual_line_v03 {
   right: clamp(40px, 4vw, 72px);
}

.history_visual_bg {
   position: absolute;
   left: clamp(560px, 43vw, 820px);
   right: clamp(40px, 4vw, 72px);
   top: clamp(130px, 18vh, 190px);
   bottom: clamp(96px, 13vh, 140px);
   z-index: 3;
   overflow: hidden;
   background: var(--color-line);
   clip-path: inset(0 0 0 0);
   will-change: left, right, top, bottom, clip-path;
   --visual-dim: 0.06;
}

.history_visual_bg::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 2;
   background: rgba(0, 0, 0, var(--visual-dim));
   pointer-events: none;
}

.history_visual_bg img {
   width: 100%;
   height: 100%;
   display: block;
   object-fit: cover;
   object-position: center center;
   transform-origin: center center;
   will-change: filter, transform;
}

.history_visual_panel {
   position: absolute;
   left: clamp(72px, 8vw, 152px);
   top: clamp(150px, 21vh, 220px);
   z-index: 6;

   width: min(52vw, 900px);
   height: auto;

   background: transparent;
   overflow: visible;

   color: var(--color-text-primary);
   will-change: opacity, transform;
}

.history_visual_title {
   width: max-content;
   max-width: 100%;
}

.history_visual_title h2 {
   margin: 0;

   font-family: "Bahnschrift", "Pretendard", sans-serif;
   font-size: clamp(92px, 8.8vw, 178px);
   font-weight: 500;
   font-stretch: condensed;
   line-height: 0.88;
   letter-spacing: 0;

   white-space: nowrap;
   color: var(--color-text-primary);

   -webkit-font-smoothing: antialiased;
   text-rendering: geometricPrecision;
}

.history_visual_title h2>span {
   display: block;
   overflow: hidden;
}

.history_visual_title h2>span>span {
   display: block;
   will-change: transform;
}

.history_visual_message {
   position: absolute;
   inset: 0;
   z-index: 6;

   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;

   opacity: 0;
   visibility: hidden;

   color: var(--color-text-light);
   will-change: opacity, transform;
}

.history_visual_message_inner {
   position: relative;
   width: min(900px, calc(100% - 120px));
   padding: 0;
   text-align: center;
}

.history_visual_message_body {
   margin-top: clamp(38px, 5.5vh, 56px);
}

.history_visual_message_body .history_visual_message_title {
   font-family: "Noto Serif KR", "Batang", serif;
   font-size: clamp(38px, 3.1vw, 56px);
   font-weight: 400;
   line-height: 1.45;
   letter-spacing: -0.06em;
   word-break: keep-all;
   overflow-wrap: normal;
   color: var(--color-text-light);
}

.history_visual_message_body .history_visual_message_desc {
   margin-top: clamp(28px, 3vh, 44px);
   font-size: clamp(15px, 1vw, 18px);
   font-weight: 300;
   line-height: 1.8;
   letter-spacing: -0.035em;
   word-break: keep-all;
   overflow-wrap: normal;
   color: rgba(255, 255, 255, 0.82);
}

.history_visual_message_body p+p {
   margin-top: 0;
}

.history_visual_period {
   display: flex;
   align-items: center;
   justify-content: center;
}

.history_visual_period span {
   font-size: clamp(11px, 0.78vw, 13px);
   font-weight: 600;
   line-height: 1;
   letter-spacing: 0.08em;
   color: var(--color-brand-light);
}

/*------------------------------------ Company Visual ------------------------------------*/


/*------------------------------------
   Company Visual Scroll Guide
------------------------------------*/
.history_scroll_guide {
   position: absolute;
   left: calc(clamp(72px, 8vw, 152px) + 0.2%);
   bottom: clamp(110px, 16vh, 150px);
   z-index: 8;

   display: inline-flex;
   align-items: center;
   gap: clamp(12px, 1vw, 16px);

   transform: none;

   text-decoration: none;
   color: rgba(34, 34, 34, 0.42);

   opacity: 0;
   visibility: hidden;

   will-change: opacity, transform;
}

.history_scroll_guide:hover {
   color: rgba(34, 34, 34, 0.68);
}

.history_scroll_mouse {
   position: relative;
   flex: 0 0 auto;
   display: block;
   width: clamp(23px, 1.65vw, 28px);
   height: clamp(34px, 2.45vw, 42px);
   border: 1.5px solid currentColor;
   border-radius: 999px;
   box-sizing: border-box;
}

.history_scroll_wheel {
   position: absolute;
   left: 50%;
   top: 8px;
   display: block;
   width: 3px;
   height: 7px;
   border-radius: 999px;
   background: currentColor;
   transform: translateX(-50%);
   animation: historyScrollWheel 1.65s cubic-bezier(.215, .61, .355, 1) infinite;
}

.history_scroll_text {
   display: block;
   font-size: clamp(11px, 0.78vw, 13px);
   font-weight: 500;
   line-height: 1;
   letter-spacing: 0.13em;
   color: currentColor;
   white-space: nowrap;
}

@media screen and (min-width: 1025px) and (max-width: 1600px) {
   .history_visual_sticky {
      --history-line-top: clamp(124px, 20vh, 176px);
   }

   .history_visual_line_h02 {
      bottom: clamp(78px, 11vh, 110px);
   }

   .history_visual_line_v01,
   .history_visual_panel {
      left: clamp(64px, 7vw, 112px);
   }

   .history_scroll_guide {
      left: calc(clamp(64px, 7vw, 112px) + 0.2%);
      bottom: clamp(88px, 13vh, 124px);
   }

   .history_visual_line_v02,
   .history_visual_bg {
      left: clamp(520px, 42vw, 700px);
   }

   .history_visual_bg {
      right: clamp(36px, 4vw, 64px);
      top: clamp(116px, 16vh, 160px);
      bottom: clamp(78px, 11vh, 110px);
   }

   .history_visual_panel {
      top: clamp(132px, 19vh, 174px);
      width: min(50vw, 760px);
   }

   .history_visual_title h2 {
      font-size: clamp(86px, 8.2vw, 136px);
   }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
   .history_visual_line_v01,
   .history_visual_panel {
      left: clamp(56px, 6vw, 86px);
   }

   .history_scroll_guide {
      left: calc(clamp(56px, 6vw, 86px) + 0.2%);
   }

   .history_visual_line_v02,
   .history_visual_bg {
      left: clamp(470px, 41vw, 590px);
   }

   .history_visual_panel {
      width: min(52vw, 680px);
   }

   .history_visual_title h2 {
      font-size: clamp(78px, 8vw, 116px);
   }
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
   #history_visual {
      display: block;
      height: 380svh;
   }

   #mo_history_visual {
      display: none;
   }

   .history_visual_sticky {
      height: 100vh;
      height: 100dvh;
      min-height: 100svh;
      --tab-visual-side: clamp(24px, 4vw, 40px);
      --tab-image-left: clamp(276px, 46vw, 470px);
      --tab-image-top: clamp(112px, 15dvh, 150px);
      --tab-image-bottom: clamp(88px, 11dvh, 122px);
      --tab-intro-line-top: clamp(148px, 21dvh, 190px);
      --tab-title-gap: clamp(18px, 2.5dvh, 28px);
      --tab-title-top: calc(var(--tab-intro-line-top) + var(--tab-title-gap));
      --tab-title-size: clamp(66px, 10.5vw, 96px);
      --history-line-top: var(--tab-intro-line-top);
   }

   .history_overview .header.is_visual_mode:not(.is_scroll),
   .history_overview .header.is_visual_mode:not(.is_scroll):hover {
      background-color: var(--color-bg-base);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
   }

   .history_visual_line_h01 {
      top: var(--tab-intro-line-top);
      transition: top 0.45s cubic-bezier(.215, .61, .355, 1);
   }

   .history_visual_line_h02 {
      bottom: var(--tab-image-bottom);
   }

   .history_visual_line_v01,
   .history_visual_panel {
      left: var(--tab-visual-side);
   }

   .history_visual_line_v02,
   .history_visual_bg {
      left: var(--tab-image-left);
   }

   .history_visual_line_v03,
   .history_visual_bg {
      right: var(--tab-visual-side);
   }

   .history_visual_bg {
      top: var(--tab-image-top);
      bottom: var(--tab-image-bottom);
   }

   .history_visual_bg img {
      object-position: 56% center;
   }

   .history_visual_panel {
      top: var(--tab-title-top);
      width: calc(var(--tab-image-left) - var(--tab-visual-side) - clamp(20px, 3vw, 32px));
   }

   .history_visual_title h2 {
      font-size: var(--tab-title-size);
      font-weight: 600;
      line-height: 0.9;
   }

   .history_visual_message {
      inset: 0;
   }

   .history_visual_message_inner {
      width: min(760px, 100%);
      max-width: 100%;
      padding: 0 clamp(40px, 6vw, 64px);
   }

   .history_visual_message_body .history_visual_message_title {
      font-size: clamp(30px, 4vw, 38px);
      line-height: 1.44;
   }

   .history_visual_message_body .history_visual_message_desc {
      margin-top: clamp(20px, 2.7dvh, 28px);
      font-size: clamp(15px, 1.9vw, 17px);
      line-height: 1.7;
   }

   .history_visual_period {
      margin-top: 0;
   }

   .history_scroll_guide {
      left: calc(var(--tab-visual-side) + 8px);
      bottom: calc(var(--tab-image-bottom) + 4px);
      display: block;
      width: 32px;
      height: 42px;
      transform: none;
      color: var(--color-text-secondary);
      pointer-events: auto;
   }

   .history_scroll_mouse {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: 0;
   }

   .history_scroll_mouse::before,
   .history_scroll_mouse::after,
   .history_scroll_wheel {
      position: absolute;
      left: 50%;
      display: block;
      width: 16px;
      height: 16px;
      margin-left: -8px;
      border: 0;
      border-left: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      border-radius: 0;
      background: transparent;
      transform: rotate(-45deg);
      animation: historyScrollArrow 2s infinite;
      opacity: 0;
      box-sizing: border-box;
   }

   .history_scroll_mouse::before,
   .history_scroll_mouse::after {
      content: "";
   }

   .history_scroll_mouse::before {
      top: 0;
      animation-delay: 0s;
   }

   .history_scroll_wheel {
      top: 10px;
      animation-delay: 0.15s;
   }

   .history_scroll_mouse::after {
      top: 20px;
      animation-delay: 0.3s;
   }

   .history_scroll_text {
      display: none;
   }

}

@media screen and (min-width: 600px) and (max-width: 1024px) and (max-height: 900px) {
   .history_visual_sticky {
      --tab-image-left: clamp(260px, 44vw, 430px);
      --tab-image-top: clamp(94px, 13dvh, 118px);
      --tab-image-bottom: clamp(64px, 8dvh, 82px);
      --tab-intro-line-top: clamp(126px, 18dvh, 154px);
      --tab-title-gap: clamp(14px, 2dvh, 20px);
      --tab-title-size: clamp(60px, 15vw, 96px);
   }
}

@media screen and (min-width: 600px) and (max-width: 1024px) and (min-height: 1000px) {
   .history_visual_sticky {
      --tab-image-top: clamp(138px, 14dvh, 170px);
      --tab-image-bottom: clamp(112px, 11dvh, 142px);
      --tab-intro-line-top: clamp(180px, 18dvh, 220px);
      --tab-title-size: clamp(72px, 10.8vw, 102px);
   }
}

@media screen and (max-width: 599px) {

   #history_visual {
      display: none;
   }

   #mo_history_visual {
      position: relative;
      display: block;
      width: 100%;
      height: 360svh;
      background: var(--color-bg-base);
   }

   .mo_history_visual_sticky {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden;
      background: var(--color-bg-base);

      --mo-img-bottom: 90px;
      --mo-img-h: max(180px, calc((100vw - 40px) * 0.6));
      --mo-img-min-h: 180px;
      --mo-title-gap: 25px;
   }

   .history_overview .header.is_visual_mode:not(.is_scroll) .menu_btn span {
      background-color: var(--color-text-primary);
   }

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

   .mo_history_visual_line {
      position: absolute;
      display: block;
      background: rgba(102, 155, 69, 0.32);
      will-change: transform, opacity;
   }

   .mo_history_visual_line_h {
      left: 0;
      top: calc(100dvh - var(--mo-img-bottom) - var(--mo-img-h) - var(--mo-title-gap));
      width: 100%;
      height: 1px;
      transform-origin: left center;
   }

   .mo_history_visual_line_v {
      left: 20px;
      top: 0;
      width: 1px;
      height: 100%;
      transform-origin: center top;
   }


   /* Mobile visual copy */
   .mo_history_visual_copy {
      position: absolute;
      left: 20px;
      right: 20px;
      top: auto;
      bottom: calc(var(--mo-img-bottom) + var(--mo-img-h) + var(--mo-title-gap));
      z-index: 5;

      width: auto;

      will-change: transform, opacity;
   }

   .mo_history_visual_title h2 {
      margin: 0;

      font-family: "Bahnschrift", "Pretendard", sans-serif;
      font-size: clamp(58px, 16vw, 84px);
      font-weight: 600;
      font-stretch: condensed;
      line-height: 0.94;
      letter-spacing: 0;
      color: var(--color-text-primary);
   }

   .mo_history_visual_title h2>span {
      display: block;
      overflow: hidden;
   }

   .mo_history_visual_title h2>span>span {
      display: block;
      white-space: nowrap;
      will-change: transform;
   }

   /* Initial mobile image frame */
   .mo_history_visual_img {
      position: absolute;
      left: 20px;
      top: auto;
      bottom: auto;
      z-index: 3;

      width: calc(100% - 40px);
      height: var(--mo-img-h);
      min-height: var(--mo-img-min-h);

      overflow: hidden;
      clip-path: inset(0 0 0 0);

      will-change: left, top, width, height, clip-path;
   }

   /* Short mobile screens keep the same image ratio */
   @media screen and (max-width: 390px) and (max-height: 700px) and (min-aspect-ratio: 9 / 16) {
      .mo_history_visual_sticky {
         --mo-img-bottom: 80px;
         --mo-img-h: max(180px, calc((100vw - 40px) * 0.6));
         --mo-img-min-h: 180px;
         --mo-title-gap: 18px;
      }
   }

   .mo_history_visual_img::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;

      background: rgba(0, 0, 0, 0.09);
      pointer-events: none;
   }

   .mo_history_visual_img img {
      width: 100%;
      height: 100%;
      display: block;

       object-fit: cover;
       object-position: center center;
       transform-origin: center center;
       will-change: filter, transform;
   }

   .mo_history_scroll_guide {
      position: absolute;
      left: 50%;
      bottom: 25px;
      z-index: 4;

      display: block;
      width: 32px;
      height: 42px;

      transform: translateX(-50%);

      opacity: 1;
      visibility: visible;

      pointer-events: none;
      will-change: opacity, transform;
   }

   .mo_history_scroll_guide span {
      position: absolute;
      left: 50%;
      top: 0;

      width: 16px;
      height: 16px;
      margin-left: -8px;

      border-left: 1.5px solid var(--color-text-secondary);
      border-bottom: 1.5px solid var(--color-text-secondary);

      transform: rotate(-45deg);

      animation: historyScrollArrow 2s infinite;
      opacity: 0;
      box-sizing: border-box;
   }

   .mo_history_scroll_guide span:nth-of-type(1) {
      animation-delay: 0s;
   }

   .mo_history_scroll_guide span:nth-of-type(2) {
      top: 10px;
      animation-delay: 0.15s;
   }

   .mo_history_scroll_guide span:nth-of-type(3) {
      top: 20px;
      animation-delay: 0.3s;
   }


   /* Full-screen dim layer */
   .mo_history_visual_dim {
      position: absolute;
      inset: 0;
      z-index: 4;

      background: rgba(0, 0, 0, 0.58);

      opacity: 0;
      visibility: hidden;

      pointer-events: none;
      will-change: opacity;
   }


   /* Mobile intro message */
   .mo_history_visual_message {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 6;

      width: calc(100% - 56px);

      transform: translate(-50%, -50%);

      opacity: 0;
      visibility: hidden;

      color: var(--color-text-light);
      text-align: center;

      will-change: opacity, transform;
   }

   .mo_history_visual_message_inner {
      position: relative;
      width: 100%;
      padding: 0;
      transform: translateY(20px);
      will-change: transform;
   }

   .mo_history_visual_message_body {
      margin-top: clamp(28px, 7.5vw, 36px);
   }

   .mo_history_visual_message_body .mo_history_visual_message_title {
      font-family: "Noto Serif KR", "Batang", serif;
      font-size: clamp(25px, 7.2vw, 31px);
      font-weight: 500;
      line-height: 1.28;
      letter-spacing: -0.06em;
      word-break: keep-all;
      overflow-wrap: normal;
      color: var(--color-text-light);
   }

   .mo_history_visual_message_body .mo_history_visual_message_desc {
      margin-top: clamp(16px, 4.2vw, 20px);
      font-size: clamp(12px, 3.35vw, 14px);
      font-weight: 300;
      line-height: 1.65;
      letter-spacing: -0.03em;
      word-break: keep-all;
      overflow-wrap: normal;
      color: rgba(255, 255, 255, 0.82);
   }

   .mo_history_visual_period {
      display: flex;
      align-items: center;
      justify-content: center;
   }

   .mo_history_visual_period span {
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0.08em;
      color: var(--color-brand-light);
   }
}
