/* ==========================================================================
   AVRA - projects grid

   Figma runs a repeating 3 / 2 / 3 rhythm on a 1680 content width: thirds are
   528 and halves are 816, both with a 48px gutter and a 416px image. Card
   height is pinned to 658 so the row rhythm holds whatever the copy length.
   ========================================================================== */

.avra-grid { display: flex; flex-direction: column; gap: 48px; width: 100%; }
.avra-grid__row { display: flex; gap: 48px; width: 100%; }
.avra-grid__row.is-hidden { display: none; }
.avra-grid__row > .avra-card { flex: 1 1 0; min-width: 0; }

.avra-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 658px;
  background: #fff;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.avra-card__figure { position: relative; height: 416px; overflow: hidden; flex: 0 0 416px; }
.avra-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.avra-hover .avra-card:hover .avra-card__figure img { transform: scale(1.04); }

.avra-card__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; }
.avra-card__badge {
  background: #fff;
  color: var(--avra-grey);
  font-family: var(--avra-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .48px;
  text-transform: uppercase;
  padding: 8px 10px;
  white-space: nowrap;
}

.avra-card__body { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 0; }
.avra-card__head { display: flex; flex-direction: column; gap: 6px; }

.avra-card__title {
  margin: 0;
  font-family: var(--avra-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-transform: uppercase;
  color: var(--avra-umbra);
  font-feature-settings: "ss01" 1;
}

.avra-card__specs {
  margin: 0;
  font-family: var(--avra-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--avra-grey);
  opacity: .8;
  font-feature-settings: "salt" 1;
}
.avra-card__specs sup { font-size: 7.74px; vertical-align: super; line-height: 0; }

.avra-card__status {
  margin: 0;
  font-family: var(--avra-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: var(--avra-grey);
  font-feature-settings: "ss01" 1, "ss12" 1;
}
.avra-card__status strong { font-weight: 500; color: var(--avra-accent); }

.avra-card__desc {
  margin: 0;
  font-family: var(--avra-body);
  font-size: 16px;
  font-weight: 350;
  line-height: 22px;
  letter-spacing: .16px;
  color: var(--avra-grey);
  font-feature-settings: "ss01" 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.avra-card__meta {
  margin: 8px 0 0;
  font-family: var(--avra-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .72px;
  text-transform: uppercase;
  color: var(--avra-grey);
  opacity: .6;
  font-feature-settings: "salt" 1;
  margin-top: auto;
}

/* ---- Load more ----------------------------------------------------------- */

.avra-grid__more { display: flex; justify-content: center; width: 100%; margin-top: 48px; }
.avra-loadmore,
.avra-loadmore:hover,
.avra-loadmore:focus,
.avra-loadmore:active {
  background: rgba(92, 91, 90, .1);
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: var(--avra-umbra);
  font-family: var(--avra-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background-color .25s ease;
}
.avra-hover .avra-loadmore:hover { background: rgba(92, 91, 90, .18); }
.avra-loadmore:focus-visible { outline: 2px solid var(--avra-accent); outline-offset: 3px; }
.avra-grid__more.is-done { display: none; }

/* ---- Mobile: single column, 382 wide, 520 tall --------------------------- */

@media (max-width: 1024px) {
  .avra-grid { gap: 48px; }
  .avra-grid__row { flex-direction: column; gap: 48px; }
  .avra-grid__row > .avra-card { flex: 0 0 auto; }
  .avra-card { height: 520px; gap: 24px; }
  .avra-card__figure { flex: 1 1 auto; height: auto; min-height: 0; }
  .avra-card__desc { -webkit-line-clamp: 3; }
  .avra-grid__more { margin-top: 48px; }
  .avra-loadmore { width: 100%; }
}

/* Similar projects: four across on desktop, three stacked on mobile. */
@media (max-width: 1024px) {
  .avra-simsec .avra-grid__row > .avra-card:nth-child(n+4) { display: none; }
}
