/* Reference-style projects. All layout and typography stay inside this section. */
.az-bb .az-bb-projects { --az-project-accent: var(--az-color-primary, #d6192b); margin: 36px 0 40px; }
.az-bb-projects__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.az-bb .az-bb-projects__head h2 { margin: 0; color: var(--az-color-secondary, #222222); font-size: calc(var(--az-type-h2, 1px) * 30); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.az-bb .az-bb-projects__all { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 22px; border-radius: 999px; background: var(--az-project-accent); color: #fff; font-size: calc(var(--az-type-body, 1px) * 13); font-weight: 600; line-height: 1.3; }
.az-bb .az-bb-projects__all svg { width: 20px; height: 20px; }
.az-bb-projects__all:hover { filter: brightness(.94); }
.az-bb-projects__slider { position: relative; }
.az-bb .az-bb-projects__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px; margin: -8px; list-style: none; }
.az-bb-projects__track::-webkit-scrollbar { display: none; }
.az-bb-projects__slide { min-width: 0; scroll-snap-align: start; }
.az-bb .az-bb-project { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: .685; min-height: 360px; border-radius: 32px; background: #34424d; color: #fff; }
.az-bb .az-bb-project:focus-visible { outline: 3px solid var(--az-project-accent); outline-offset: 4px; }
.az-bb-project::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .12) 40%, rgb(0 0 0 / .76) 76%, #000 100%); }
.az-bb-project__media { position: absolute; z-index: -2; inset: 0; overflow: hidden; transition: transform .45s ease; }
.az-bb .az-bb-project__image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
/* The fallback atlas stays square, then crops within the portrait card. */
.az-bb .az-bb-project__image.az-bb-art { inset: 0 auto 0 50%; width: auto; aspect-ratio: 1; transform: translateX(-50%); }
.az-bb-project__content { position: absolute; inset: auto 0 0; padding: 24px 22px 28px; }
.az-bb .az-bb-project__eyebrow { display: block; margin-bottom: 4px; font-size: calc(var(--az-type-h3, 1px) * 18); font-weight: 500; line-height: 1.3; }
.az-bb .az-bb-project h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #fff; font-size: calc(var(--az-type-h3, 1px) * 26); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.az-bb .az-bb-project__location { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0; color: #fff; font-size: calc(var(--az-type-body, 1px) * 13); line-height: 1.5; }
.az-bb .az-bb-project__location svg { width: 17px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.az-bb-project__location span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-bb-project__reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .3s ease; }
.az-bb-project__reveal > div { overflow: hidden; min-height: 0; }
.az-bb .az-bb-project__description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 18px 0 0; color: #fff; font-size: calc(var(--az-type-body, 1px) * 13); line-height: 1.6; }
.az-bb .az-bb-project__button { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 18px; padding: 10px 20px; border: 1px solid var(--az-project-accent); border-radius: 999px; background: var(--az-project-accent); color: #fff; font-size: calc(var(--az-type-body, 1px) * 13); font-weight: 600; line-height: 1.3; }
.az-bb .az-bb-project__button svg { width: 20px; height: 20px; }
.az-bb-project:is(:hover, :focus-within) .az-bb-project__reveal { grid-template-rows: 1fr; opacity: 1; }
.az-bb-project:is(:hover, :focus-within) .az-bb-project__media { transform: scale(1.035); }
.az-bb .az-bb-projects__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--az-project-accent); color: #fff; cursor: pointer; transform: translateY(-50%); }
.az-bb-projects__arrow--prev { left: -22px; }
.az-bb-projects__arrow--next { right: -22px; }
.az-bb-projects__arrow:disabled { opacity: .5; cursor: default; }
.az-bb-projects__arrow:not(:disabled):hover { background: color-mix(in srgb, var(--az-project-accent) 88%, #000); }
.az-bb .az-bb-projects__arrow svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .az-bb-projects__head { gap: 16px; margin-bottom: 24px; }
  .az-bb .az-bb-projects__head h2 { font-size: calc(var(--az-type-h2, 1px) * 24); }
  .az-bb .az-bb-projects__track { grid-auto-columns: calc((100% - 16px) / 2); }
  .az-bb .az-bb-project { min-height: 380px; border-radius: 26px; }
}
@media (max-width: 600px) {
  .az-bb .az-bb-projects { margin-block: 28px 32px; }
  .az-bb-projects__head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .az-bb .az-bb-projects__head h2 { font-size: calc(var(--az-type-h2, 1px) * 21); }
  .az-bb .az-bb-projects__all { min-height: 40px; font-size: calc(var(--az-type-body, 1px) * 12); padding: 10px 18px; }
  .az-bb .az-bb-projects__track { grid-auto-columns: 88%; gap: 12px; }
  .az-bb .az-bb-project { min-height: 430px; border-radius: 24px; }
  .az-bb-project__content { padding: 22px 18px 24px; }
  .az-bb .az-bb-project__eyebrow { font-size: calc(var(--az-type-h3, 1px) * 16); }
  .az-bb .az-bb-project h3 { font-size: calc(var(--az-type-h3, 1px) * 23); }
  .az-bb-projects__arrow--prev { left: -8px; }
  .az-bb-projects__arrow--next { right: -8px; }
}
@media (hover: none), (pointer: coarse) {
  .az-bb-project__reveal { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .az-bb-project__media, .az-bb-project__reveal { transition: none; }
  .az-bb-project:is(:hover, :focus-within) .az-bb-project__media { transform: none; }
}
