/* ── Work page ─────────────────────────────── */

.work-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 158px 0px 0px;
}

/* ── Case Studies Section ──────────────────── */

.case-studies-section {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-label-row {
  padding: 0 20px;
}

.section-label {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Case Study List ───────────────────────── */

.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Case Study Row ────────────────────────── */

.case-study {
  display: flex;
  align-items: flex-start;
}

.case-study-info {
  flex: 0 0 540px;
  padding: 60px 40px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
}

.case-study-meta {
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
}

.case-study-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-study-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  line-height: 1.2;
}

.case-study-desc {
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 500px;
}

.case-study-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-label {
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.5;
}

.role-value {
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  line-height: 1.2;
}

/* ── Custom view cursor ────────────────────── */

.work-cursor {
  position: fixed;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  font-family: var(--font-slab);
  font-size: 0.85rem;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.03em;
  white-space: nowrap;
  user-select: none;
  mix-blend-mode: difference;
}

.work-cursor.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.case-study-image:hover {
  cursor: none;
}

.work-cursor.is-soon {
  background: #f59e0b;
  color: #000;
}

/* ── Coming soon ───────────────────────────── */

.is-coming-soon .case-study-image {
  cursor: none;
}

.coming-soon-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #f59e0b;
  color: #000;
  font-family: var(--font-slab);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  pointer-events: none;
}

/* ── Case Study Image ──────────────────────── */

.case-study-image {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  position: relative;
  height: 55vh;
  min-height: 600px;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-image:hover img {
  transform: scale(1.03);
}

/* ── Skeleton ──────────────────────────────── */

.case-study-skeleton {
  display: flex;
  align-items: flex-start;
}

.case-study-skeleton .sk-info {
  flex: 0 0 540px;
  padding: 60px 40px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study-skeleton .sk-meta   { height: 14px; width: 110px; }
.case-study-skeleton .sk-title  { height: 36px; width: 78%; margin-top: 4px; }
.case-study-skeleton .sk-desc   { height: 14px; width: 92%; }
.case-study-skeleton .sk-desc2  { height: 14px; width: 68%; }
.case-study-skeleton .sk-rlabel { height: 13px; width: 36px; margin-top: 4px; }
.case-study-skeleton .sk-rval   { height: 14px; width: 150px; }

.case-study-skeleton .sk-image {
  flex: 1;
  min-width: 0;
  height: 55vh;
  min-height: 600px;
  border-radius: 0;
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 1024px) {
  .case-study-info {
    flex: 0 0 400px;
  }

  .case-study-skeleton .sk-info {
    flex: 0 0 400px;
  }
}

@media (max-width: 768px) {
  .work-main {
    padding-top: 140px;
  }

  .case-studies-list {
    gap: 40px;
  }

  .case-study {
    flex-direction: column;
    padding: 0px 20px;
    gap: 20px;
  }

  .case-study-info {
    flex: none;
    width: 100%;
    padding: 0px;
    position: static;
  }

  .case-study-image {
    height: 340px;
    flex: none;
    width: 100%;
  }

  .case-studies-section {
    gap: 48px;
  }

  .case-study-skeleton {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }

  .case-study-skeleton .sk-info {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .case-study-skeleton .sk-image {
    flex: none;
    width: 100%;
    height: 340px;
    min-height: auto;
  }
}

@media (max-width: 480px) {

  .case-study-image {
    height: auto;
    min-height: auto;
  }

  .case-study-desc {
    max-width: 100%;
  }
}