/* Our Work page — Figma 173:2279 */
.page-our-work {
  margin: 0;
  background: #f6f8fb;
}

.ow {
  background: #f6f8fb;
}

.ow .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.ow-hero {
  position: relative;
  min-height: 604px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.ow-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ow-hero__media img {
  /* Match Figma crop: tall asset positioned with large top offset */
  position: absolute;
  left: 0;
  top: -205.8%;
  width: 100%;
  height: 357.49%;
  max-width: none;
  object-fit: cover;
}

.ow-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 27.5%),
    linear-gradient(128deg, rgb(49, 0, 22) 11.8%, rgba(151, 0, 67, 0) 75.1%);
}

.ow-hero .lp-nav {
  position: relative;
  z-index: 2;
}

.ow-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px 0 120px;
}

.ow-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 70px;
  background: linear-gradient(180deg, #a61153 0%, #400720 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.96px;
  line-height: 1.2;
}

.ow-hero__inner h1 {
  max-width: 420px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 61px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -2.44px;
}

/* Filter toolbar */
.ow-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: -48px;
  margin-bottom: 40px;
  padding: 15px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.11);
}

.ow-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 17px;
  background: #eee;
  border-radius: 999px;
}

.ow-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: #272727;
}

.ow-search input::placeholder {
  color: #272727;
  opacity: 0.85;
}

.ow-search img {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
}

.ow-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ow-filter {
  border: 0;
  cursor: pointer;
  padding: 9px 28px;
  border-radius: 999px;
  background: #eee;
  color: #272727;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.ow-filter:hover {
  background: #e4e4e4;
}

.ow-filter.is-active {
  background: #a61153;
  color: #fff;
}

/* Grid */
.ow-grid-section {
  padding-bottom: 80px;
}

.ow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 23px;
}

.ow-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 328px;
  padding: 21px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.ow-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 0;
}

.ow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 14, 44, 0) 33%, #0e0e2c 100%);
  z-index: 1;
  pointer-events: none;
}

.ow-card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.ow-card__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.ow-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #a61153;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.ow-card__tag--green {
  background: #37b160;
}

.ow-card__copy p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.16px;
  line-height: 1.25;
}

.ow-card__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.ow-card__arrow img {
  display: block;
  width: 42px;
  height: 42px;
}

.ow-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.ow-card[hidden] {
  display: none;
}

.ow-empty {
  margin: 40px 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

.ow .lp-footer {
  background: #fff;
}

@media (max-width: 1100px) {
  .ow-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 28px;
  }

  .ow-filters {
    justify-content: flex-start;
  }

  .ow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ow-hero {
    min-height: 480px;
  }

  .ow-hero__badge {
    font-size: 16px;
    padding: 8px 16px;
  }

  .ow-hero__inner {
    padding-bottom: 90px;
  }

  .ow-toolbar {
    margin-top: -36px;
    border-radius: 22px;
  }

  .ow-filter {
    padding: 8px 16px;
    font-size: 13px;
  }

  .ow-grid {
    grid-template-columns: 1fr;
  }

  .ow-card {
    min-height: 300px;
  }
}
