html, body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ─── WORKS PAGE LAYOUT ─── */
.works-page {
    display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav-height));
  padding: 2.31vw;
  /* remove justify-content: space-between */
  overflow: visible;
  position: relative;
}

/* ─── CAROUSEL AREA ─── */
.works-carousel-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 0 -2.31vw;
  padding: 0 2.31vw;
}

.works-track-wrapper {
  overflow: hidden;
  width: calc(100% + 4.63vw);
  margin-left: -2.31vw;
  padding-left: 2.31vw;
}

.works-track {
  display: flex;
  gap: 1.157vw;
  will-change: transform;
  cursor: default;
  user-select: none;
  transform: translateZ(0);
}

.works-track:active {
  cursor: grabbing;
}

.work-slide {
  flex-shrink: 0;
}

.work-thumb-wrapper {
  overflow: hidden;
  border-radius: 0.694vw;
}

.work-thumb {
  width: min(34.375vw, 55vh);
  height: min(34.375vw, 55vh);
  border-radius: 0.694vw;
  flex-shrink: 0;
  pointer-events: none;
  display: block;
  object-fit: cover;
}

/* ─── SLIDE NAME ─── */
.work-slide-name-wrapper {
  overflow: hidden;
}

.work-slide-name {
  margin-top: 0.694vw;
  font-size: clamp(14px, 1.157vw, 20px);
  font-weight: 480;
  color: #000000;
  display: block;
  transform: translateY(100%);
}

/* ─── BOTTOM BAR ─── */
.works-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 0.926vw;
  margin-top: auto; /* this now controls the gap naturally */
}

.works-big-title {
  font-size: clamp(60px, 7.407vw, 160px);
  font-weight: 800;
  line-height: 1;
  color: #090909;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ─── BOTTOM CENTER ─── */
.works-bottom-center {
  display: flex;
  flex-direction: column;
  gap: 0.463vw;
  flex-shrink: 0;
  white-space: nowrap;
}

.works-progress-row {
  display: flex;
  align-items: baseline;
  gap: 1.389vw;
}

.works-scroll-label {
  font-size: clamp(12px, 1.157vw, 20px);
  font-weight: 480;
  color: #1e1e1e;
}

.works-progress {
  font-size: clamp(12px, 1.157vw, 20px);
  font-weight: 480;
  color: #1e1e1e;
}

.works-progress-bar-track {
  width: 112%;
  height: 1.5px;
  background: rgba(9, 9, 9, 0.15);
  position: relative;
  overflow: hidden;
}

.works-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #1e1e1e;
}

/* ─── BOTTOM RIGHT ─── */
.works-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.116vw;
  font-size: clamp(12px, 1.157vw, 20px);
  font-weight: 480;
  color: #1e1e1e;
}

/* ─── PROGRESS NUMBER ─── */
#worksProgressNum {
  display: inline-block;
  width: 2ch;
  margin-left: -8px;
  white-space: nowrap;
}

.paren {
  margin: 0 -3px;
}

.progress-inner {
  display: inline-flex;
  width: 52px;
  justify-content: center;
}

.works-big-title-wrapper,
.works-bottom-center-wrapper,
.works-bottom-right-wrapper {
  overflow: hidden;
}

.works-bottom-center-wrapper {
  overflow: hidden;
  padding-right: 2.31vw;
  margin-right: -2.31vw;
}

.work-current-name {
  color: #FAFAFA;
}

.works-name-bar {
  display: none;
}

/* ─── HOVER VIDEO EFFECT ─── */
.work-thumb-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0.694vw;
  overflow: hidden;
}

.work-thumb {
  width: min(34.375vw, 55vh);
  height: min(34.375vw, 55vh);
  border-radius: 0.694vw;
  flex-shrink: 0;
  pointer-events: none;
  display: block;
  object-fit: cover;
}

.work-slide-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 0.694vw;
  pointer-events: none;
  clip-path: inset(100% 0 0 0 round 0.694vw);
  transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

.work-thumb-wrapper:hover .work-slide-video {
  clip-path: inset(0% 0 0 0 round 0.694vw);
  transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

.work-slide-name {
  opacity: 0;
  transform: translateY(40px);
}