.ax-bento { padding: var(--ax-sec-pad-s) 0 var(--ax-sec-pad-m); }
.ax-bento__inner { max-width: var(--ax-maxw); margin: 0 auto; padding: 0 var(--ax-gutter); }
.ax-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(20px, 2.4vw, 34px);
  align-items: stretch;
}
/* Reference: only hero (16/10) and wide (32/11) set aspect-ratio; stack stretches to hero row. */
.ax-bento__tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ax-sand-deep);
  display: block;
  color: var(--ax-paper);
  text-decoration: none;
}
.ax-bento__tile--hero { grid-column: span 7; aspect-ratio: 16 / 10; }
.ax-bento__stack {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
.ax-bento__tile--stack {
  flex: 1 1 0;
  min-height: 0;
  aspect-ratio: auto;
}
.ax-bento__tile--wide { grid-column: span 12; aspect-ratio: 32 / 11; }
.ax-bento__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) {
.ax-bento__tile:hover img { transform: scale(1.05); }
}
.ax-bento__tile:active img { transform: scale(1.03); }
.ax-bento__tile span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(14, 18, 38, 0.46);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 241, 235, 0.22);
  color: var(--ax-paper);
  padding: 8px 13px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  /* Nested divider owns top air — don't stack with section S-pad. */
  .ax-bento:has(.ax-divider) {
    padding-top: 0;
  }

  /* Pull up into contact bottom pad so eyebrow isn't stranded in a void. */
  .ax-contact-team + .ax-bento {
    margin-top: -40px;
  }

  /* Contact already left a short void — keep eyebrow air modest. */
  .ax-bento .ax-divider__row {
    padding-top: 36px;
    padding-bottom: 12px;
  }

  .ax-bento__grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }

  .ax-bento__tile--hero,
  .ax-bento__tile--wide {
    grid-column: 1 / -1;
  }

  /* Grid not flex — Safari often collapses flex+aspect-ratio stack rows to 0 height. */
  .ax-bento__stack {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .ax-bento__tile--stack {
    aspect-ratio: 4 / 3;
    flex: none;
    min-height: 120px;
  }

  /* 32/11 is almost a hairline on phone — use readable 16/9 so the 4th frame shows. */
  .ax-bento__tile--wide {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 180px;
  }
}
