/* AB House — /businesscard premium plate (single business card) */

main#content:has(.page--business-card) {
  width: 100%;
  padding: 0;
  margin: 0;
}

body#abHousePortal:has(.page--business-card) {
  background: #050608;
}

body#abHousePortal .page--business-card {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 85% 45% at 50% 28%, rgba(237, 126, 45, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(20, 24, 32, 0.9) 0%, transparent 55%),
    linear-gradient(180deg, #0c0e14 0%, #050608 100%);
  color: #f4f7fb;
}

body#abHousePortal .bc-shell {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(100dvh - 3.25rem);
}

/* ISO 7810 ID-1 (~85.6 × 54 mm) — landscape card */
body#abHousePortal .bc-plate {
  --bc-aspect: 1.586;
  position: relative;
  container-type: inline-size;
  container-name: bc-plate;
  width: min(94vw, 38rem);
  aspect-ratio: var(--bc-aspect) / 1;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(237, 126, 45, 0.07) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(168deg, #161820 0%, #0b0c10 42%, #040405 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.65) inset,
    0 0 0 1px rgba(237, 126, 45, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.72),
    0 10px 24px rgba(0, 0, 0, 0.48);
}

@media (min-width: 768px) {
  body#abHousePortal .bc-plate {
    width: min(90vw, 44rem);
  }
}

body#abHousePortal .bc-plate__sheen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 18%,
    transparent 42%,
    transparent 100%
  );
  z-index: 1;
}

body#abHousePortal .bc-plate__stripe {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(237, 126, 45, 0.1) 0%,
    rgba(237, 126, 45, 0.95) 32%,
    rgba(255, 196, 140, 0.9) 50%,
    rgba(237, 126, 45, 0.95) 68%,
    rgba(237, 126, 45, 0.1) 100%
  );
  z-index: 2;
}

body#abHousePortal .bc-plate__body {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(0, 0.54fr);
  gap: 0;
  box-sizing: border-box;
  padding: 5.75% 5% 5.75% 5.75%;
  align-items: stretch;
}

body#abHousePortal .bc-plate__details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding-right: 4.5%;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

body#abHousePortal .bc-plate__details-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

body#abHousePortal .bc-plate__head {
  flex-shrink: 0;
  padding-bottom: 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(237, 126, 45, 0.22);
}

body#abHousePortal .bc-plate__qr {
  container-type: size;
  container-name: bc-plate-qr;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding-left: 3.5%;
}

body#abHousePortal .bc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  font-weight: 800;
  font-size: clamp(1.2rem, 8cqi, 1.65rem);
  letter-spacing: 0.025em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

body#abHousePortal .bc-brand:hover,
body#abHousePortal .bc-brand:focus-visible {
  color: #fff;
}

body#abHousePortal .bc-brand i {
  color: var(--ab-primary, #ed7e2d);
  filter: drop-shadow(0 0 10px rgba(237, 126, 45, 0.45));
  font-size: 0.95em;
  line-height: 1;
}

body#abHousePortal .bc-brand-row {
  width: 100%;
  min-width: 0;
  margin: 0 0 0.35rem;
  line-height: 1;
}

body#abHousePortal .bc-eyebrow {
  font-size: clamp(0.56rem, 3.25cqi, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 180, 120, 0.95);
  margin: 0;
  line-height: 1.25;
  max-width: 100%;
}

body#abHousePortal .bc-services {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.28rem 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  width: 100%;
  min-width: 0;
}

body#abHousePortal .bc-services__item {
  position: relative;
  min-width: 0;
  padding-left: 0.9rem;
  font-size: clamp(0.74rem, 4cqi, 0.94rem);
  line-height: 1.25;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

body#abHousePortal .bc-services__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb070 0%, var(--ab-primary, #ed7e2d) 100%);
  box-shadow: 0 0 8px rgba(237, 126, 45, 0.5);
}

/* Square QR — side length = min(column width, column height), never full-height strip */
body#abHousePortal .bc-plate__qr-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(237, 126, 45, 0.12);
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
}

@supports not (width: 100cqh) {
  body#abHousePortal .bc-plate__qr-link {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

body#abHousePortal .bc-plate__qr-link:focus-visible {
  outline: 2px solid var(--ab-primary, #ed7e2d);
  outline-offset: 3px;
}

body#abHousePortal .bc-plate__qr-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
}

@media (max-width: 639.98px) {
  body#abHousePortal .bc-shell {
    padding: 0.65rem 0.45rem;
    min-height: calc(100dvh - 3rem);
  }

  body#abHousePortal .bc-plate {
    width: min(96vw, 24rem);
  }
}
