/* Birlikte reference: project card, project page. Only the logo and app screenshots carry Birlikte colours. */

.project-visual.apmatik,
.project-visual.birlikte {
  position: relative;
  background: linear-gradient(160deg, #f4ebe1, var(--latte));
}

.bb-badge {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bb-badge img {
  width: auto;
  height: 20px;
}

.bb-phone {
  width: 150px;
  height: 224px;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--white);
  box-shadow: 0 -8px 30px -12px rgba(58, 31, 17, 0.35);
}

.bb-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.bb-logo {
  width: auto;
  height: 44px;
  margin: 6px 0 22px;
}

.bb-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 500px;
  margin: 0;
}

.bb-stage .bb-device {
  position: absolute;
  bottom: 40px;
  width: min(31%, 178px);
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow), 0 30px 50px -30px rgba(58, 31, 17, 0.5);
  transition: transform 0.4s var(--ease);
}

.bb-stage .bb-device img {
  width: 100%;
  height: auto;
}

.bb-stage .d1 {
  inset-inline-start: 6%;
  transform: rotate(-7deg) translateY(10px);
}

.bb-stage .d2 {
  z-index: 2;
  bottom: 60px;
  width: min(37%, 210px);
}

.bb-stage .d3 {
  inset-inline-end: 6%;
  transform: rotate(7deg) translateY(10px);
}

.bb-stage:hover .d1 {
  transform: rotate(-4deg) translateY(0);
}

.bb-stage:hover .d3 {
  transform: rotate(4deg) translateY(0);
}

.bb-stage figcaption {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
}

.bb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bb-stats div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.bb-stats strong {
  display: block;
  font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--font-head);
  letter-spacing: -0.02em;
  color: var(--coffee);
}

.bb-stats span {
  font-size: 14px;
  color: var(--muted);
}

.bb-source {
  margin-top: 12px;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--muted);
}

.bb-source::before {
  content: '// ';
}

.bb-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.bb-phase {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.bb-phase .mono {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--coffee);
}

.bb-phase h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bb-phase p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.bb-phase ul,
.bb-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-phase li,
.bb-feats li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--milk-deep);
  color: var(--coffee);
  font: 600 14px/1.2 var(--font-body);
}

.bb-feats {
  margin-top: 22px;
}

.bb-feats li {
  border: 1px solid var(--line);
  background: var(--white);
}

.bb-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.bb-gallery figure {
  margin: 0;
}

.bb-gallery .bb-device {
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}

.bb-gallery figure:hover .bb-device {
  transform: translateY(-6px);
}

.bb-gallery img {
  width: 100%;
  height: auto;
}

.bb-gallery figcaption {
  margin-top: 12px;
  font: 600 15px/1.3 var(--font-head);
  text-align: center;
}

.bb-app .bb-logo {
  height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  box-sizing: content-box;
}

.bb-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.bb-stores a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font: 600 16px/1.1 var(--font-body);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.bb-stores a:hover {
  transform: translateY(-2px);
}

.bb-stores svg {
  width: 22px;
  height: 22px;
}

.bb-stores small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.bb-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.bb-more .icon {
  width: 16px;
  height: 16px;
}

.bb-more:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .bb-phases {
    grid-template-columns: 1fr;
  }

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

  .bb-stage {
    min-height: 400px;
    margin-top: 20px;
  }
}

.project-visual.apmatik .bb-badge img {
  height: 26px;
}

.apx-card-shot {
  width: 84%;
  height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--white);
  box-shadow: 0 -8px 30px -12px rgba(58, 31, 17, 0.35);
}

.apx-card-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--milk);
}

.apx-card-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-lighter);
}

.apx-card-shot img {
  width: 175%;
  max-width: none;
  height: auto;
}
