/* ─── Work / Case Studies Section ─── */
.section-work {
  position: relative;
  z-index: 2;
  background: #111 url('../assets/images/work/background-work.png') center center / cover no-repeat;
  color: #fff;
  padding: 80px 50px;
  box-shadow: 0 -60px 100px rgba(0, 0, 0, 0.9);
}

/* ─── Inner wrapper — full width, matches hero 50px side spacing ─── */
.section-work__inner {
  width: 100%;
}

/* ─── Top: logo + title ─── */
.section-work__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 60px;
}

.section-work__logo {
  width: 64px;
  height: auto;
  opacity: 0.9;
}

.section-work__title {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: right;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 900px;
}

/* ─── List ─── */
.section-work__list {
  width: 100%;
  position: relative;
}

/* ─── Row (also covers <a> variant) ─── */
.section-work__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid rgba(204, 204, 204, 0.25);
  cursor: none;
  transition: opacity 0.3s ease;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

/* Dim inactive rows on hover */
.section-work__row.is-dimmed {
  opacity: 0.35;
}

.section-work__row:last-child {
  border-bottom: 1px solid rgba(204, 204, 204, 0.25);
}

.section-work__list:has(.section-work__row:hover) .section-work__row {
  opacity: 0.3;
}

.section-work__list:has(.section-work__row:hover) .section-work__row:hover {
  opacity: 1;
}

/* ─── Left group: id + industry ─── */
.section-work__row-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.section-work__row-id {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-work__num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  min-width: 20px;
}

.section-work__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
}

.section-work__industry {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Right: services ─── */
.section-work__services {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Footer tagline ─── */
.section-work__footer {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.section-work__footer-text {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

/* ─── Image stack preview ─── */
.section-work__preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 360px;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0;
}

.section-work__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .section-work {
    padding: 60px 30px;
  }

  .section-work__title {
    font-size: 38px;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .section-work {
    padding: 48px 20px;
  }

  .section-work__top {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .section-work__title {
    font-size: 28px;
    text-align: left;
    max-width: none;
  }

  .section-work__row {
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 8px;
  }

  .section-work__row-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .section-work__services {
    display: none;
  }

  .section-work__preview {
    display: none;
  }
}
