/* B2: the established outlined logo on an ivory face, with an asymmetric rail.
   Scoped to this header only; the hologram, floor stickers and portal keep their
   own assets and styling. The carrier is CSS, so every edge stays resolution-independent. */
.site-header .brand.brand--b2 {
  --brand-width: 96px;
  --brand-height: 96px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  flex: none;
  width: var(--brand-width);
  min-width: var(--brand-width);
  height: var(--brand-height);
  min-height: var(--brand-height);
  padding: 0;
  border: 0;
  border-radius: 14%;
  background: none;
  box-shadow: none;
  transform: none;
  overflow: visible;
  pointer-events: auto;
}

.site-header .brand.brand--b2::before,
.site-header .brand.brand--b2::after {
  content: "";
  position: absolute;
  pointer-events: none;
  box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #32125d21,
    1px 2px 3px #30251518, 3px 7px 11px #30251529;
}

/* Rounded purple L, visible at the left and below the face. */
.site-header .brand.brand--b2::before {
  z-index: 1;
  inset: 0 auto 0 0;
  width: 74%;
  border: 1px solid #6b31bf38;
  border-radius: 14% 12% 15% 18%;
  background: linear-gradient(145deg, #9661e4 0%, #8047ce 24%, #7238c3 76%, #7c43ca 100%);
}

/* Yellow extension shares the same baseline and lighting as the purple rail. */
.site-header .brand.brand--b2::after {
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 35.5%;
  border: 1px solid #e6b71440;
  border-radius: 15% 22% 32% 5%;
  background: linear-gradient(135deg, #ffe667 0%, #ffda31 55%, #ffd02a 100%);
}

.site-header .brand.brand--b2 .brand-face {
  position: absolute;
  z-index: 2;
  inset: 0 5.5% 7.3% 8.3%;
  border: 1px solid #fffdf5e8;
  border-bottom-color: #e7ddbd;
  border-radius: 12%;
  background: linear-gradient(145deg, #fffdf4 0%, #faf5e5 56%, #f8f0dc 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #cfc2a32b,
    1px 2px 3px #3521171a, 2px 5px 7px #35211735;
  pointer-events: none;
}

.site-header .brand.brand--b2 img {
  position: relative;
  z-index: 3;
  display: block;
  width: 66%;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: 83%;
  aspect-ratio: 666 / 822;
  object-fit: contain;
  margin: -7.3% 0 0 2.8%;
  transform: none;
  pointer-events: none;
}

.site-header .brand.brand--b2:focus-visible {
  outline: 3px solid #2543ec;
  outline-offset: 5px;
  box-shadow: 0 0 0 5px #fffdf4;
}

/* Keep the detail readable on short desktops without touching scene layouts. */
@media (min-width: 701px) and (max-height: 650px) {
  .site-header .brand.brand--b2 {
    --brand-width: 88px;
    --brand-height: 88px;
  }
}

/* Fit the existing reserved header area and both fallback and 3D controls.
   The narrowest phones keep the original 44px-wide, 54px-tall touch target. */
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .site-header .brand.brand--b2 {
    --brand-width: clamp(44px, calc(100vw - 312px), 60px);
    --brand-height: clamp(54px, calc(100vw - 302px), 64px);
  }
  .site-header .brand.brand--b2 img {
    width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .brand.brand--b2,
  .site-header .brand.brand--b2::before,
  .site-header .brand.brand--b2::after,
  .site-header .brand.brand--b2 .brand-face,
  .site-header .brand.brand--b2 img {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .site-header .brand.brand--b2::before,
  .site-header .brand.brand--b2::after {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
  .site-header .brand.brand--b2 .brand-face {
    forced-color-adjust: none;
    background: #fffdf4;
    border-color: #171719;
    box-shadow: none;
  }
  .site-header .brand.brand--b2:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}
