/* =========================
   OUR WORK
   video/image left + text right, alternating
   ========================= */

#work {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

#work .section-inner {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

#work h2 {
  text-align: center;
  margin: 0 0 2.25rem;
}

/* Row layout */
#work .row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* Alternate row: media on right, text on left */
#work .row.alt {
  grid-template-columns: 1fr 1.25fr;
}

#work .row.alt .media {
  order: 2;
}
#work .row.alt .copy {
  order: 1;
}

/* Media card */
#work .media.thumb {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  min-height: 280px;
}

/* Keep consistent ratio */
#work .media.thumb img,
#work .media.thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* If you later swap image for video embed */
#work .media.thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Play pill overlay */
#work .play-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
}

#work .play-pill button {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(12,16,28,.65);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

#work .play-pill button:hover {
  transform: translateY(-1px);
  background: rgba(12,16,28,.78);
  border-color: rgba(255,255,255,.35);
}

/* Copy card */
#work .copy {
  border-radius: 22px;
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}

#work .copy h3 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  font-weight: 900;
}

#work .copy p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

/* CTA under work */
#work .section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Responsive: stack on mobile */
@media (max-width: 860px) {
  #work .row,
  #work .row.alt {
    grid-template-columns: 1fr;
  }

  #work .row.alt .media,
  #work .row.alt .copy {
    order: initial;
  }

  #work .media.thumb {
    min-height: 220px;
  }
}

/* If your reveal JS never runs, at least show the section */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
