.mar-project-explorer {
  --mar-navy: #07243a;
  --mar-cyan: #18b8f2;
  --mar-border: #d4e0e7;
  --mar-muted: #607384;
  color: var(--mar-navy);
}

.mar-project-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mar-border);
  box-shadow: 0 22px 55px rgb(3 31 50 / 8%);
}

.mar-project-search,
.mar-project-filters {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mar-project-filters { flex-wrap: wrap; align-items: flex-end; }
.mar-project-filters label { display: grid; gap: .4rem; flex: 1 1 140px; min-width: 0; }
.mar-project-filters .mar-project-client-filter { flex: 1.35 1 210px; }
.mar-project-filter-label { color: var(--mar-navy); font-size: .75rem; font-weight: 600; line-height: 1.4; }
.mar-project-filters__icon { margin-bottom: 13px; }

.mar-project-search > svg,
.mar-project-filters__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  color: #188aba;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.mar-project-search input,
.mar-project-filters select {
  min-height: 44px;
  color: var(--mar-navy);
  background: #fff;
  border-radius: 0;
  opacity: 1;
}

.mar-project-search input {
  width: 100%;
  padding: .65rem .15rem;
  border: 0;
  box-shadow: none;
}

.mar-project-filters select {
  width: 100%;
  max-width: 100%;
  padding: .55rem 2.2rem .55rem .7rem;
  border: 1px solid var(--mar-border);
}

.mar-project-filters label:last-of-type { flex: 1.2 1 190px; }

.mar-project-search input:focus,
.mar-project-filters select:focus {
  border-color: var(--mar-cyan);
  outline: 2px solid rgb(24 184 242 / 20%);
  outline-offset: 1px;
}

.mar-project-filters label { margin: 0; }

.mar-project-results-meta {
  margin: 2.5rem 0 1.2rem;
  color: var(--mar-muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mar-project-results-meta strong {
  margin-right: .35rem;
  color: var(--mar-navy);
  font-size: 1.15rem;
}

.mar-project-reset { margin-left: 1rem; color: #0089b7; letter-spacing: 0; text-transform: none; }
.mar-project-reset[hidden], .mar-project-grid[hidden] { display: none; }

.mar-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.mar-project-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--mar-border);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.mar-project-card:hover,
.mar-project-card:focus-within {
  border-color: rgb(24 184 242 / 60%);
  box-shadow: 0 24px 60px rgb(5 35 55 / 13%);
  transform: translateY(-4px);
}

.mar-project-card > a {
  display: flex;
  height: 100%;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
}

.mar-project-card__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce9ef;
}

.mar-project-card__image img,
.mar-project-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.mar-project-card:hover .mar-project-card__image img { transform: scale(1.035); }

.mar-project-card__image > strong {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .35rem .55rem;
  color: #fff;
  background: rgb(2 22 36 / 76%);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.mar-project-card[data-status="ongoing"] .mar-project-card__image > strong {
  background: rgb(0 135 187 / 92%);
  box-shadow: 0 8px 24px rgb(0 113 157 / 28%);
}

.mar-project-card__copy {
  position: relative;
  display: flex;
  min-height: 230px;
  padding: 1.5rem;
  flex: 1;
  flex-direction: column;
}

.mar-project-card__copy small {
  color: #287596;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mar-project-card__copy h2 {
  margin: .7rem 2rem .8rem 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.mar-project-card__copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #5e6f7e;
  font-size: .82rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mar-project-card__copy > span:last-child {
  position: absolute;
  top: 1.4rem;
  right: 1.35rem;
  color: var(--mar-cyan);
  font-size: 1.05rem;
}

.mar-project-empty {
  padding: 4rem 2rem;
  color: var(--mar-muted);
  text-align: center;
  background: #eef8fd;
}

.mar-project-empty[hidden] { display: none; }

.mar-project-filter-toggle { display: none; }
.mar-project-active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.4rem 0 1.25rem; }
.mar-project-active-filters[hidden], .mar-project-load-more[hidden] { display: none; }
.mar-project-active-filters button { min-height: 44px; max-width: 100%; padding: .5rem .8rem; border: 1px solid #c5dce7; border-radius: 22px; background: #eaf7fc; color: var(--mar-navy); font: inherit; font-size: .8rem; text-align: start; cursor: pointer; }
.mar-project-active-filters button:hover { background: #d8f1fc; }
.mar-project-load-more { display: grid; justify-items: center; gap: .75rem; padding-top: 2rem; }
.mar-project-load-more p { margin: 0; font-size: .9rem; color: var(--mar-muted); }
.mar-project-explorer :is(button, a):focus-visible { outline: 2px solid #0089b7; outline-offset: 4px; }

@media (max-width: 1050px) {
  .mar-project-toolbar { grid-template-columns: 1fr; }
  .mar-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mar-project-filters select { width: 100%; }
}

@media (max-width: 720px) {
  .is-enhanced .mar-project-filter-toggle:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .6rem 1rem; border: 1px solid #c5dce7; border-radius: 6px; color: var(--mar-navy); background: #eef8fc; font: inherit; cursor: pointer; }
  .is-enhanced:not(.filters-open) .mar-project-filters { display: none; }
  .mar-project-toolbar { gap: .65rem; }
  .mar-project-results-meta { margin-top: 1.5rem; }
  .mar-project-filters { display: grid; grid-template-columns: 1fr; }
  .mar-project-filters__icon { display: none; }
  .mar-project-filters label:last-of-type select { width: 100%; }
  .mar-project-grid { grid-template-columns: 1fr; }
  .mar-project-card__copy { min-height: 200px; }
}
