.fx-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate
}

.fx-stage>.uk-section {
  position: absolute !important;
  inset: 0;
  height: 100%;
  min-height: 0 !important;
  margin: 0;
  visibility: hidden;
}

.fx-stage>.uk-section.is-active {
  visibility: visible
}

#section-1 {
  z-index: 1
}

#section-2 {
  z-index: 2;
  background: transparent !important;
  pointer-events: none;
  will-change: transform
}

#section-3 {
  z-index: 3;
  overflow: hidden;
  transform: translateY(100%);
  will-change: transform
}

#section-4 {
  z-index: 4;
  transform: translateY(100%);
  will-change: transform
}

#section-5 {
  z-index: 5;
  background: #000 !important;
  overflow: hidden;
  transform: scale(0);
  will-change: transform
}

#section-5>.uk-container {
  display: none
}

/* #section-6 {
  z-index: 7;
  transform: translateY(100%);
  will-change: transform;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
} */

#section-6 {
  z-index: 7;
  transform: translateY(100%);
  will-change: transform;
  overflow-x: hidden;
  overflow: hidden; 
  scrollbar-width: none;

  bottom: auto;
  height: auto !important;
  max-height: none !important;
}

#section-6::-webkit-scrollbar {
  display: none
}

/* Gallery section 1: luôn hiện (intro điều khiển bằng JS), transform áp lên thẻ con */
#section-1 .click-to-slide {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important
}

#section-1 .click-to-slide>.uk-position-relative {
  will-change: transform, opacity
}

/* Heading overlay (section 1) */
.fx-title {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fx-title h1 {
  margin: 0;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Heading overlay (section 4) */
.fx-title2 {
  z-index: 6;
  mix-blend-mode: difference
}

.fx-title2 h1 {
  color: #fff
}

.fx-title .zz {
  display: inline-block;
  will-change: transform, opacity
}

.fx-stage .line1,
.fx-stage .line2,
.fx-stage .w-l,
.fx-stage .w-r {
  display: inline-block;
  will-change: transform, opacity
}

/* Section 2 */
#section-2 .uk-inline-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden
}

#section-2 .uk-inline-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0);
  will-change: transform
}

#section-2 .uk-position-center {
  width: 100%;
  max-width: 1100px;
  text-align: center
}

.fx-s2wrap {
  transform-origin: 50% 50%;
  will-change: transform
}

.fx-sw {
  display: inline-block;
  will-change: opacity
}

/* Section 3 */
#section-3 [uk-grid] {
  align-items: flex-start
}

#section-3 .fx-w {
  display: inline-block;
  white-space: nowrap
}

#section-3 .fx-c {
  color: #D9D9D9;
  will-change: color
}

#section-3 .list-project {
  will-change: transform
}

/* Section 5: project circle */
.pc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  --pc-gap: 49px
}

.pc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity
}

.pc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .35))
}

.pc-names,
.pc-thumbs,
.pc-ui {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.pc-names {
  will-change: clip-path
}

.pc-name {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  line-height: 0.85;
  font-size: 80px;
  will-change: transform, opacity;
}

.pc-thumb {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  will-change: transform, opacity;
  width:135px !important;
  height:95px !important;
}

.pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.pc-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible
}

.pc-lines line {
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke
}

.pc-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  color: #fff;
  text-decoration: none;
  font-size: clamp(13px, 1.05vw, 20px);
  white-space: nowrap;
  will-change: transform;
}

/* 
#section-7 {
  z-index: 9;
  transform: translateY(100%);
  will-change: transform;
  overflow: hidden;

  bottom: auto;
  height: auto !important;
  max-height: 100%;
} */

#section-7 {
  z-index: 9;
  transform: translateY(100%);
  will-change: transform;
  overflow: hidden;
  bottom: auto;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 0 !important;
  max-height: none;
}

.fx-stage>#footer.uk-section {
  inset: 0 0 auto 0;      /* đổi: neo từ đỉnh thay vì đáy */
  height: auto;
  max-height: 100%;
  z-index: 11;
  transform: translateY(100%);
  will-change: transform;
  overflow-y: auto;
  scrollbar-width: none;
}

.fx-stage>#footer.uk-section::-webkit-scrollbar {
  display: none
}
.pc-label:hover 
{
  font-weight:700;
  color:#FED507 !important;
}

@media (max-width:1023px) {

  .pc-label 
  {
    font-size: 20px;
    font-weight: 400;
  }
  .pc-name
  {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
  }
  .pc-thumb
  {
    height:80px !important;
    width:135px !important;
  }
  .fx-title:not(.fx-title2) h1 {
      font-size: 30px;
      line-height: 1.2;
  }

  #section-3{--lp-h:clamp(200px,40vh,420px);padding-top:72px}
  #section-3 > .uk-container{height:100%;display:flex;flex-direction:column;}
  #section-3 > .uk-container > [uk-grid]{
    flex-direction:column;
    flex-wrap:nowrap;
    flex: 1;
    min-width: 1px;
  }
  #section-3 [uk-grid] > .uk-width-expand\@m{align-self:auto;height:auto;display:block}

  #section-3 .list-project{max-width:none;width:max-content}
  #section-3 .list-project > .uk-grid{
      display:flex;flex-wrap:nowrap;margin-left:0;
      height:auto;align-items:flex-start;
  }
  #section-3 .list-project > .uk-grid > *{
      flex:0 0 auto;
      width:calc(var(--lp-h) * .7864);
      height:auto;                      /* bỏ var(--lp-h) */
      padding-left:0;
      margin:0 16px 0 0!important;
  }
  #section-3 .list-project .el-item{display:block;width:100%;height:auto}
  #section-3 .list-project .el-image{display:block;width:100%;height:auto;max-width:none}

  .pc{--pc-gap-x:64px}
 
}

@media (max-width:639px) {
  .pc-name
  {
    font-size: 30px;
  }
}