/* ═══════════════════════════════════════════════════════
   §3  WORKS  ·  works.css
   Clean state for redesign.
═══════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.works-section {
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 1200vh;
  /* More room for 20 images */
  /* overflow: visible to allow background circle to overlap next section */
  overflow: visible;
}

/* ── Section header ── */
.works-section__header {
  width: 100%;
  padding: var(--pad) var(--pad) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.works-section__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 0.85;
}

.works-section__description {
  margin: 0 auto;
  max-width: 360px;
  font-family: var(--f-body);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  color: var(--c-white);
}

/* ── Sticky Container ── */
.works-section__sticky-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  z-index: 1;
  /* Above background circle */
}

/* ── Left column: Text (Fixed width 520px) ── */
.works-section__text-col {
  width: 520px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 80px;
  /* Offset from left edge */
}

.works-section__text-block {
  position: relative;
  width: 400px;
  height: 300px;
  /* Room for text switching */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.works-section__text-group {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) rotate(-180deg);
  transform-origin: -80px 50%;
  /* Pivot at the Axis (left edge of screen) */
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.works-section__text-group.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) rotate(0deg);
}

.works-section__h3 {
  font-family: var(--f-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: 20px;
}

.works-section__text-divider {
  width: 400px;
  height: 2px;
  background: var(--c-black);
  border: none;
  margin-bottom: 24px;
}

.works-section__h5 {
  font-family: var(--f-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--c-black);
}

/* ── Right column: Images (Flexible) ── */
.works-section__image-col {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-section__image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.works-img {
  position: absolute;
  top: 100%;
  /* Start off-screen bottom */
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  cursor: zoom-in;
  will-change: transform, transform-origin, top, opacity;
}