/* ============================================================
   GENTLY WORK — Experiencias Destacadas
   Full-screen scroll-driven immersive experience sections
   Port of scroll-trigger-gsap-gently (Webflow)
   ============================================================ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.wk-outer {
  position: relative;
  background: var(--bg, #F0F8F8);
}

/* ── Section header zone ────────────────────────────────────── */
.wk-header-zone {
  padding: var(--section-y, 80px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

/* ── Work section — provides scroll height via ghost items ──── */
.wk-section {
  position: relative;
  /* height = sum of ghost items (300vh × n), added by JS */
}

/* ── Ghost container (JS-generated) ────────────────────────── */
.wk-ghost-container {
  position: relative;
  z-index: 0;
}

/* ── Work item — GSAP overrides to position:fixed ───────────── */
.wk-item {
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  position: relative; /* pre-JS fallback */
}

/* ── Inner container ────────────────────────────────────────── */
.wk-item-container {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

/* ── Background media ───────────────────────────────────────── */
.wk-item-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wk-item-bg img,
.wk-item-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}

/* Per-item tint shows through when image darkens on exit */
.wk-item[data-color="delfines"] { background: #0a1832; }
.wk-item[data-color="biolumin"] { background: #06101a; }
.wk-item[data-color="tortugas"] { background: #0d1f10; }

/* ── Content wrapper ────────────────────────────────────────── */
.wk-item-wrapper {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  padding: 5rem 4vw 2.5rem;
}

/* ── Floating photo cards ───────────────────────────────────── */
.wk-images {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.wk-image {
  width: 21vw;
  height: 100%;
  position: relative;
}

.wk-image-inner {
  aspect-ratio: 4 / 5;
  width: 25vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.70);
  padding: 0.38em;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.wk-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Text block ─────────────────────────────────────────────── */
.wk-text {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.wk-text-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* cluster both lines toward the bottom */
  gap: 0.6rem;
  height: 100%;
  padding-bottom: 1.5rem;
  color: #FFFFFF;
  position: relative;
}

.wk-line-wrap {
  overflow: hidden;
}

/* Line 1 — TAN Kindred UPPERCASE: compact eyebrow label ("DELFINES", "LAGUNA"…)
   Bigger than before so it reads well at full-screen scale,
   but still clearly subordinate to the Bangond line below. */
.wk-line-wrap:first-child .wk-line {
  font-family: 'TAN Kindred', Georgia, serif;
  text-transform: uppercase;
  font-size: clamp(6vw, 8.5vw, 10vw);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.08em;
  position: relative;
  will-change: transform;
}

/* Line 2 — Bangond: dominant display text ("en libertad", "al amanecer"…) */
.wk-line-wrap:last-child .wk-line {
  font-family: 'Bangond', Georgia, serif;
  text-transform: none;
  font-size: clamp(9vw, 13vw, 14vw);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  position: relative;
  will-change: transform;
}

/* ── DELFINES: "DELFINES" Bangond + "EN LIBERTAD" Bebas Neue ── */
.wk-item[data-color="delfines"] .wk-line-wrap:first-child .wk-line {
  font-family: 'Bangond', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: -10px;
}
.wk-item[data-color="delfines"] .wk-line-wrap:last-child .wk-line {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(6vw, 8.5vw, 10vw);
}

/* ── BIOLUMIN: "LAGUNA" Bebas Neue + "BIOLUMINISCENTE" Bangond ── */
.wk-item[data-color="biolumin"] .wk-line-wrap:first-child .wk-line {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: -10px;
}
.wk-item[data-color="biolumin"] .wk-line-wrap:last-child .wk-line {
  font-family: 'Bangond', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(6.5vw, 9.5vw, 11vw);
}

/* ── TORTUGAS: "TORTUGAS" Bangond + "AL AMANECER" Bebas Neue ── */
.wk-item[data-color="tortugas"] .wk-line-wrap:first-child .wk-line {
  font-family: 'Bangond', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: -10px;
}
.wk-item[data-color="tortugas"] .wk-line-wrap:last-child .wk-line {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(6vw, 8.5vw, 10vw);
}

.wk-line--right  { text-align: right;  }
.wk-line--center { text-align: center; }

.wk-accent { color: #83C1C6; } /* brand aqua */

/* ── Overlay (exit darkener) ────────────────────────────────── */
.wk-item-overlay {
  position: absolute;
  inset: 0;
  width: 105%;
  height: 105%;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}

/* ── Info panel (bottom-right) ──────────────────────────────── */
.wk-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.wk-info-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.5;
}

.wk-info-meta strong {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.wk-info-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(131,193,198,0.14);
  border: 1px solid rgba(131,193,198,0.48);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.28s, border-color 0.28s, transform 0.28s;
  white-space: nowrap;
}

.wk-info-cta:hover {
  background: rgba(131,193,198,0.28);
  border-color: rgba(131,193,198,0.72);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .wk-image { width: 16vw; }
  .wk-image-inner { width: 20vw; }
  /* TAN Kindred label stays compact on mobile */
  .wk-line-wrap:first-child .wk-line { font-size: clamp(5vw, 7vw, 8vw); }
  /* Bangond display stays dominant */
  .wk-line-wrap:last-child .wk-line  { font-size: clamp(11vw, 14vw, 16vw); }
  .wk-info { gap: 8px; }
  .wk-info-cta { padding: 9px 16px; font-size: 0.72rem; }
}

@media (max-width: 479px) {
  .wk-text {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
  .wk-text-title { font-size: 12.5vw; }
  .wk-info { align-items: flex-start; }
}
