:root {
  --bc-ref-primary: #ff6a00;
  --bc-ref-bg: #101014;
  --bc-ref-card: #1b1b22;
  --bc-ref-text: #ffffff;
  --bc-ref-muted: rgba(255, 255, 255, 0.72);
  --bc-ref-border: rgba(255, 255, 255, 0.12);
}

.bc-ref-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--bc-ref-primary) 28%, transparent), transparent 38%), var(--bc-ref-bg);
  color: var(--bc-ref-text);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.bc-ref-app-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.bc-ref-eyebrow,
.bc-ref-mode-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-ref-primary);
}

.bc-ref-shell h1,
.bc-ref-shell h2,
.bc-ref-shell h3,
.bc-ref-shell p {
  color: inherit;
}

.bc-ref-shell h1 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
}

.bc-ref-shell h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.bc-ref-shell p,
.bc-ref-shell small {
  margin: 0;
  color: var(--bc-ref-muted);
}

.bc-ref-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bc-ref-border);
}

.bc-ref-tab {
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  background: transparent;
  color: var(--bc-ref-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bc-ref-tab.active {
  background: var(--bc-ref-primary);
  color: #111;
}

.bc-ref-screen {
  display: none;
}

.bc-ref-screen.active {
  display: block;
}

.bc-ref-form,
.bc-ref-card {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--bc-ref-border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(18px);
}

.bc-ref-form-topline,
.bc-ref-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bc-ref-form label {
  display: grid;
  gap: 8px;
  color: var(--bc-ref-text);
  font-weight: 800;
}

.bc-ref-form input[type="text"],
.bc-ref-form input[type="search"],
.bc-ref-form input[type="file"],
.bc-ref-form textarea,
.bc-ref-form select,
.bc-ref-project-filter input,
.bc-ref-project-filter select {
  width: 100%;
  border: 1px solid var(--bc-ref-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bc-ref-text);
  padding: 14px 15px;
  font: inherit;
  box-sizing: border-box;
}

.bc-ref-form input::placeholder,
.bc-ref-form textarea::placeholder,
.bc-ref-project-filter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.bc-ref-form select,
.bc-ref-project-filter select {
  appearance: auto;
}

.bc-ref-button,
.bc-ref-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--bc-ref-primary);
  color: #111;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}

.bc-ref-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bc-ref-text);
  border: 1px solid var(--bc-ref-border);
}

.bc-ref-small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 14px;
  white-space: nowrap;
}

.bc-ref-button:disabled,
.bc-ref-secondary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.bc-ref-ai-box,
.bc-ref-current-media-wrap {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--bc-ref-border);
}

.bc-ref-ai-box {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.bc-ref-status {
  min-height: 24px;
  color: var(--bc-ref-muted);
  word-break: break-word;
}

.bc-ref-status.success {
  color: #8ff0aa;
}

.bc-ref-status.error {
  color: #ff9b9b;
}

.bc-ref-status.loading {
  color: #ffe2a8;
}

.bc-ref-project-filter {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
}

.bc-ref-project-list {
  display: grid;
  gap: 12px;
}

.bc-ref-project-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--bc-ref-border);
  background: rgba(255, 255, 255, 0.055);
}

.bc-ref-project-item img,
.bc-ref-project-item video,
.bc-ref-project-placeholder {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--bc-ref-muted);
  font-size: 12px;
  font-weight: 800;
}

.bc-ref-project-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bc-ref-project-info strong,
.bc-ref-project-info span,
.bc-ref-project-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-ref-project-info span,
.bc-ref-project-info small,
.bc-ref-empty {
  color: var(--bc-ref-muted);
}

.bc-ref-current-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.bc-ref-media-item {
  border: 1px solid var(--bc-ref-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bc-ref-media-item img,
.bc-ref-media-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #08080b;
}

.bc-ref-media-item-footer {
  padding: 8px;
  display: grid;
  gap: 6px;
}

.bc-ref-media-item-footer span {
  color: var(--bc-ref-muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bc-ref-remove-media {
  border: 0;
  background: rgba(255, 95, 95, 0.14);
  color: #ffb4b4;
  border-radius: 999px;
  padding: 7px 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bc-ref-grid-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.bc-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bc-ref-card-item {
  overflow: hidden;
  border-radius: 24px;
  background: #15151a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.bc-ref-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.bc-ref-card-item img,
.bc-ref-card-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  background: #111;
}

.bc-ref-card-item:hover img,
.bc-ref-card-item:hover video {
  transform: scale(1.04);
}

.bc-ref-card-body {
  padding: 18px;
}

.bc-ref-card-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.bc-ref-card-body p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}

.bc-ref-card-body span {
  color: var(--bc-ref-primary);
  font-weight: 900;
}

.bc-ref-single-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.bc-ref-single-gallery img,
.bc-ref-single-gallery video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #111;
}

.bc-ref-video-tile video {
  object-fit: contain;
}

@media (max-width: 800px) {
  .bc-ref-shell {
    border-radius: 0;
    padding: 18px;
    margin-left: -16px;
    margin-right: -16px;
  }

  .bc-ref-app-header,
  .bc-ref-form-topline,
  .bc-ref-project-head {
    display: grid;
  }

  .bc-ref-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    border-radius: 18px;
  }

  .bc-ref-form,
  .bc-ref-card {
    padding: 16px;
    border-radius: 20px;
  }

  .bc-ref-ai-box,
  .bc-ref-project-filter,
  .bc-ref-project-item {
    grid-template-columns: 1fr;
  }

  .bc-ref-project-item img,
  .bc-ref-project-item video,
  .bc-ref-project-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .bc-ref-grid,
  .bc-ref-single-gallery {
    grid-template-columns: 1fr;
  }
}

/* Public reference output: cards, single project gallery and lightbox */
.bc-ref-grid-wrap,
.bc-ref-single-media {
  --bc-ref-primary: var(--bc-ref-primary, #ff6a00);
  box-sizing: border-box;
}

.bc-ref-grid-wrap * ,
.bc-ref-single-media * ,
.bc-ref-lightbox-modal * {
  box-sizing: border-box;
}

.bc-ref-grid-wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.bc-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.bc-ref-card-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.bc-ref-card-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
  pointer-events: none;
  z-index: 1;
}

.bc-ref-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
  min-height: 100%;
}

.bc-ref-card-item img,
.bc-ref-card-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
  background: #111;
}

.bc-ref-card-item:hover img,
.bc-ref-card-item:hover video {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.04);
}

.bc-ref-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}

.bc-ref-card-body h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  color: #fff;
}

.bc-ref-card-body p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.bc-ref-card-body span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bc-ref-primary);
  font-weight: 900;
}

.bc-ref-card-body span::after {
  content: "→";
  transition: transform .25s ease;
}

.bc-ref-card-item:hover .bc-ref-card-body span::after {
  transform: translateX(4px);
}

.bc-ref-single-media {
  width: min(1180px, calc(100vw - 32px));
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: clamp(16px, 2vw, 26px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--bc-ref-primary) 26%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.bc-ref-single-media-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.bc-ref-gallery-eyebrow {
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bc-ref-primary);
  margin-bottom: 6px;
}

.bc-ref-single-media-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1;
}

.bc-ref-gallery-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.bc-ref-single-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: 0;
}

.bc-ref-lightbox-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  font: inherit;
  cursor: zoom-in;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 35px rgba(0,0,0,.24);
}

.bc-ref-lightbox-item:focus-visible {
  outline: 3px solid var(--bc-ref-primary);
  outline-offset: 4px;
}

.bc-ref-lightbox-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: #0b0b0d;
}

.bc-ref-lightbox-frame img,
.bc-ref-lightbox-frame video,
.bc-ref-single-gallery img,
.bc-ref-single-gallery video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0b0b0d;
  border-radius: 0;
  transition: transform .35s ease, filter .35s ease;
}

.bc-ref-lightbox-item:hover img,
.bc-ref-lightbox-item:hover video {
  transform: scale(1.055);
  filter: brightness(.88) saturate(1.08);
}

.bc-ref-media-badge,
.bc-ref-play-badge {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.bc-ref-media-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.bc-ref-play-badge {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bc-ref-primary);
  color: #111;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.bc-ref-lightbox-modal[hidden] {
  display: none !important;
}

.bc-ref-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(14px);
}

.bc-ref-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-out;
}

.bc-ref-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 12px;
}

.bc-ref-lightbox-body {
  display: grid;
  place-items: center;
}

.bc-ref-lightbox-body img,
.bc-ref-lightbox-body video {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
}

.bc-ref-lightbox-body video {
  width: min(1180px, 96vw);
}

.bc-ref-lightbox-close {
  justify-self: end;
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.bc-ref-lightbox-caption {
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

body.bc-ref-lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .bc-ref-grid-wrap,
  .bc-ref-single-media {
    width: min(100%, calc(100vw - 22px));
  }

  .bc-ref-card-body {
    position: relative;
    background: #15151a;
  }

  .bc-ref-card-item::after {
    display: none;
  }

  .bc-ref-single-media {
    border-radius: 22px;
  }

  .bc-ref-single-media-head {
    display: grid;
    align-items: start;
  }

  .bc-ref-single-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bc-ref-lightbox-frame img,
  .bc-ref-lightbox-frame video,
  .bc-ref-single-gallery img,
  .bc-ref-single-gallery video {
    aspect-ratio: 1 / 1;
  }

  .bc-ref-play-badge {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .bc-ref-single-gallery {
    grid-template-columns: 1fr;
  }
}

/* v0.2.3: category selector and clean lightbox output */
.bc-ref-category-new[hidden] {
  display: none !important;
}

.bc-ref-form select option,
.bc-ref-project-filter select option {
  color: #111;
}

.bc-ref-lightbox-caption {
  display: none !important;
}


/* v0.2.4: Reference overview as dark stacked project cards, max 3 per row */
.bc-ref-grid-wrap {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
}

.bc-ref-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.2vw, 30px) !important;
  align-items: stretch !important;
}

.bc-ref-card-item.bc-ref-stack-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(22,22,22,.98), rgba(8,8,8,.98)) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: none !important;
  isolation: isolate !important;
  min-height: 100% !important;
  transition: border-color .25s ease, transform .25s ease, background .25s ease !important;
}

.bc-ref-card-item.bc-ref-stack-card::after {
  display: none !important;
}

.bc-ref-card-item.bc-ref-stack-card:hover {
  transform: translateY(-4px) !important;
  border-color: color-mix(in srgb, var(--bc-ref-primary, #ff6a00) 70%, rgba(255,255,255,.18)) !important;
  background: linear-gradient(180deg, rgba(30,30,30,.98), rgba(10,10,10,.98)) !important;
}

.bc-ref-stack-link {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

.bc-ref-stack-media {
  position: relative !important;
  overflow: hidden !important;
  background: #090909 !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.bc-ref-card-item.bc-ref-stack-card .bc-ref-stack-media img,
.bc-ref-card-item.bc-ref-stack-card .bc-ref-stack-media video {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  display: block !important;
  background: #090909 !important;
  transition: transform .35s ease, filter .35s ease !important;
}

.bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-media img,
.bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-media video {
  transform: scale(1.045) !important;
  filter: saturate(1.08) contrast(1.05) !important;
}

.bc-ref-stack-placeholder {
  aspect-ratio: 16 / 10 !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(255,255,255,.42) !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--bc-ref-primary, #ff6a00) 18%, transparent), transparent 38%),
    #0c0c0c !important;
}

.bc-ref-stack-count,
.bc-ref-stack-media-tag {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.66) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px) !important;
}

.bc-ref-stack-media-tag {
  left: 12px !important;
  right: auto !important;
  color: var(--bc-ref-primary, #ff6a00) !important;
}

.bc-ref-card-body.bc-ref-stack-body {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: clamp(20px, 2vw, 28px) !important;
  background: transparent !important;
  min-height: 250px !important;
}

.bc-ref-stack-kicker {
  margin: 0 0 12px !important;
  color: var(--bc-ref-primary, #ff6a00) !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}

.bc-ref-card-body.bc-ref-stack-body h3 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: .95 !important;
  letter-spacing: -.04em !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

.bc-ref-card-body.bc-ref-stack-body p {
  margin: 0 !important;
  color: rgba(255,255,255,.80) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-short {
  color: rgba(255,255,255,.92) !important;
  font-weight: 650 !important;
  margin-bottom: 12px !important;
}

.bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-text {
  color: rgba(255,255,255,.70) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin-top: auto !important;
  padding-top: 22px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-more::after {
  content: "→" !important;
  color: var(--bc-ref-primary, #ff6a00) !important;
  transition: transform .25s ease !important;
}

.bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-more::after {
  transform: translateX(5px) !important;
}

@media (max-width: 1024px) {
  .bc-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .bc-ref-grid-wrap {
    width: min(100%, calc(100vw - 22px)) !important;
  }

  .bc-ref-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .bc-ref-card-body.bc-ref-stack-body {
    min-height: auto !important;
    padding: 20px !important;
  }
}

/* v0.2.5: Softer full-width reference section + hero header */
.bc-ref-overview {
  --bc-ref-primary: var(--bc-ref-primary, #ff5a00);
  position: relative !important;
  isolation: isolate !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(70px, 8vw, 120px) 16px clamp(70px, 8vw, 110px) !important;
  overflow: hidden !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 34% -8%, color-mix(in srgb, var(--bc-ref-primary, #ff5a00) 22%, transparent), transparent 58%),
    radial-gradient(ellipse at 90% 8%, rgba(255,255,255,.045), transparent 42%),
    linear-gradient(90deg, rgba(255, 77, 0, .12) 0%, rgba(255, 77, 0, .055) 38%, rgba(0,0,0,0) 72%),
    #030303 !important;
}

.bc-ref-overview::before,
.bc-ref-overview::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.bc-ref-overview::before {
  inset: 0 !important;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.22) 10%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,.48) 88%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 75%, rgba(0,0,0,.82) 100%) !important;
}

.bc-ref-overview::after {
  width: min(920px, 70vw) !important;
  height: min(520px, 52vw) !important;
  right: -18vw !important;
  top: -12vw !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--bc-ref-primary, #ff5a00) 18%, transparent), transparent 68%) !important;
  filter: blur(34px) !important;
  opacity: .8 !important;
}

.bc-ref-overview-hero {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin: 0 auto clamp(42px, 6vw, 78px) !important;
  padding: 0 0 clamp(32px, 4vw, 54px) !important;
  border-bottom: 1px solid rgba(255,255,255,.13) !important;
}

.bc-ref-overview-eyebrow {
  margin-bottom: 18px !important;
  color: var(--bc-ref-primary, #ff5a00) !important;
  font-size: clamp(12px, 1.1vw, 15px) !important;
  font-weight: 950 !important;
  letter-spacing: .15em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.bc-ref-overview-hero h2 {
  max-width: 980px !important;
  margin: 0 0 24px !important;
  color: #fff !important;
  font-size: clamp(42px, 6vw, 86px) !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
  text-transform: uppercase !important;
  font-weight: 950 !important;
}

.bc-ref-overview-hero h2 span {
  color: var(--bc-ref-primary, #ff5a00) !important;
  white-space: nowrap !important;
}

.bc-ref-overview-hero p {
  max-width: 880px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.82) !important;
  font-size: clamp(18px, 1.6vw, 25px) !important;
  line-height: 1.45 !important;
}

.bc-ref-overview .bc-ref-grid-wrap {
  position: relative !important;
  z-index: 1 !important;
}

/* Zusätzlich einsetzbar, falls auf anderen Seiten harte Kanten durch eigene Sektionen entstehen:
   Die Klasse bc-soft-fade-section kann im Gutenberg-Block unter "Zusätzliche CSS-Klasse(n)" gesetzt werden. */
.bc-soft-fade-section {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse at 32% -10%, rgba(255, 90, 0, .18), transparent 58%),
    linear-gradient(90deg, rgba(255,90,0,.10), rgba(0,0,0,0) 72%),
    #030303 !important;
}

.bc-soft-fade-section::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, rgba(0,0,0,.34) 0%, transparent 18%, transparent 72%, rgba(0,0,0,.72) 100%) !important;
}

.bc-soft-fade-section > * {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 800px) {
  .bc-ref-overview {
    padding: 58px 11px 70px !important;
  }

  .bc-ref-overview-hero {
    width: min(100%, calc(100vw - 22px)) !important;
    margin-bottom: 30px !important;
    padding-bottom: 28px !important;
  }

  .bc-ref-overview-hero h2 {
    font-size: clamp(38px, 13vw, 58px) !important;
  }

  .bc-ref-overview-hero h2 span {
    white-space: normal !important;
  }

  .bc-ref-overview-hero p {
    font-size: 17px !important;
  }
}

/* v0.2.6: rebuilt reference page + standalone/importable hero */
.bc-ref-overview,
.bc-ref-standalone-hero,
.bc-ref-import-hero,
.bc-ref-import-references {
  --bc-ref-primary: var(--bc-ref-primary, #ff5a00);
  box-sizing: border-box !important;
}

.bc-ref-overview *,
.bc-ref-standalone-hero *,
.bc-ref-import-hero *,
.bc-ref-import-references * {
  box-sizing: border-box !important;
}

body .bc-ref-overview {
  position: relative !important;
  isolation: isolate !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(56px, 7vw, 96px) 16px clamp(70px, 8vw, 120px) !important;
  overflow: hidden !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 30% -10%, rgba(255, 90, 0, .22), rgba(255, 90, 0, 0) 56%),
    radial-gradient(ellipse at 84% 4%, rgba(255,255,255,.05), rgba(255,255,255,0) 42%),
    linear-gradient(90deg, rgba(255, 90, 0, .12) 0%, rgba(255, 90, 0, .055) 34%, rgba(0,0,0,0) 72%),
    #030303 !important;
}

body .bc-ref-overview::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 8%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 70%, rgba(0,0,0,.54) 88%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 72%, rgba(0,0,0,.92) 100%) !important;
}

body .bc-ref-overview::after {
  content: "" !important;
  position: absolute !important;
  right: -22vw !important;
  top: -18vw !important;
  width: min(900px, 74vw) !important;
  height: min(620px, 56vw) !important;
  z-index: -1 !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  background: radial-gradient(circle, rgba(255, 90, 0, .16), rgba(255,90,0,0) 68%) !important;
  filter: blur(28px) !important;
}

body .bc-ref-standalone-hero,
body .bc-ref-import-hero {
  position: relative !important;
  isolation: isolate !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(86px, 11vw, 150px) 16px clamp(72px, 9vw, 120px) !important;
  overflow: hidden !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 30% -12%, rgba(255, 90, 0, .30), rgba(255, 90, 0, 0) 56%),
    radial-gradient(ellipse at 92% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 40%),
    linear-gradient(90deg, rgba(255, 90, 0, .18) 0%, rgba(255, 90, 0, .08) 36%, rgba(0,0,0,0) 78%),
    #030303 !important;
}

body .bc-ref-standalone-hero::before,
body .bc-ref-import-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.45) 9%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 72%, rgba(0,0,0,.62) 90%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.90) 100%) !important;
}

body .bc-ref-standalone-hero::after,
body .bc-ref-import-hero::after {
  content: "" !important;
  position: absolute !important;
  right: -16vw !important;
  top: -10vw !important;
  width: min(940px, 72vw) !important;
  height: min(520px, 48vw) !important;
  z-index: -1 !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  background: radial-gradient(circle, rgba(255, 90, 0, .18), rgba(255,90,0,0) 68%) !important;
  filter: blur(36px) !important;
}

body .bc-ref-overview > .bc-ref-standalone-hero {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin: 0 auto clamp(38px, 6vw, 76px) !important;
  padding: 0 0 clamp(30px, 4vw, 54px) !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.13) !important;
  overflow: visible !important;
}

body .bc-ref-overview > .bc-ref-standalone-hero::before,
body .bc-ref-overview > .bc-ref-standalone-hero::after {
  display: none !important;
}

body .bc-ref-standalone-hero-inner,
body .bc-ref-import-hero__inner {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
}

body .bc-ref-overview > .bc-ref-standalone-hero .bc-ref-standalone-hero-inner {
  width: 100% !important;
}

body .bc-ref-overview-eyebrow,
body .bc-ref-import-hero__eyebrow {
  margin-bottom: 18px !important;
  color: var(--bc-ref-primary, #ff5a00) !important;
  font-size: clamp(12px, 1.1vw, 15px) !important;
  font-weight: 950 !important;
  letter-spacing: .16em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body .bc-ref-standalone-hero h1,
body .bc-ref-import-hero h1 {
  max-width: 1040px !important;
  margin: 0 0 24px !important;
  color: #fff !important;
  font-size: clamp(48px, 7vw, 108px) !important;
  line-height: .86 !important;
  letter-spacing: -.06em !important;
  text-transform: uppercase !important;
  font-weight: 950 !important;
  text-wrap: balance !important;
}

body .bc-ref-overview > .bc-ref-standalone-hero h1 {
  font-size: clamp(42px, 6vw, 86px) !important;
}

body .bc-ref-standalone-hero h1 span,
body .bc-ref-import-hero h1 span {
  color: var(--bc-ref-primary, #ff5a00) !important;
  white-space: nowrap !important;
}

body .bc-ref-standalone-hero p,
body .bc-ref-import-hero p {
  max-width: 900px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.82) !important;
  font-size: clamp(18px, 1.7vw, 26px) !important;
  line-height: 1.45 !important;
}

body .bc-ref-hero-button,
body .bc-ref-import-hero__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 30px !important;
  min-height: 48px !important;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  background: var(--bc-ref-primary, #ff5a00) !important;
  color: #111 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body .bc-ref-overview .bc-ref-grid-wrap {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}

body .bc-ref-overview .bc-ref-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.2vw, 30px) !important;
  align-items: stretch !important;
}

body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card {
  position: relative !important;
  display: flex !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(20,20,20,.98), rgba(7,7,7,.99)) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.20) !important;
  min-height: 100% !important;
  transition: border-color .25s ease, transform .25s ease, background .25s ease !important;
}

body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 90, 0, .78) !important;
  background: linear-gradient(180deg, rgba(28,28,28,.99), rgba(9,9,9,.99)) !important;
}

body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card::after {
  display: none !important;
}

body .bc-ref-overview .bc-ref-stack-link {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

body .bc-ref-overview .bc-ref-stack-media {
  position: relative !important;
  overflow: hidden !important;
  background: #090909 !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

body .bc-ref-overview .bc-ref-stack-media img,
body .bc-ref-overview .bc-ref-stack-media video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  display: block !important;
  background: #090909 !important;
  transition: transform .35s ease, filter .35s ease !important;
}

body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-media img,
body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-media video {
  transform: scale(1.045) !important;
  filter: saturate(1.08) contrast(1.05) !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 260px !important;
  padding: clamp(20px, 2vw, 28px) !important;
  background: transparent !important;
}

body .bc-ref-overview .bc-ref-stack-kicker {
  margin: 0 0 12px !important;
  color: var(--bc-ref-primary, #ff5a00) !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body h3 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: .92 !important;
  letter-spacing: -.045em !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body p {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-short {
  margin-bottom: 12px !important;
  color: rgba(255,255,255,.94) !important;
  font-weight: 700 !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-text {
  color: rgba(255,255,255,.70) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin-top: auto !important;
  padding-top: 22px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body .bc-ref-stack-more::after {
  content: "→" !important;
  color: var(--bc-ref-primary, #ff5a00) !important;
  transition: transform .25s ease !important;
}

body .bc-ref-overview .bc-ref-card-item.bc-ref-stack-card:hover .bc-ref-stack-more::after {
  transform: translateX(5px) !important;
}

body .bc-ref-import-references {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  background: #030303 !important;
}

body .bc-ref-import-references .bc-ref-overview {
  padding-top: clamp(42px, 5vw, 78px) !important;
}

@media (max-width: 1024px) {
  body .bc-ref-overview .bc-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body .bc-ref-overview,
  body .bc-ref-standalone-hero,
  body .bc-ref-import-hero {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  body .bc-ref-standalone-hero-inner,
  body .bc-ref-import-hero__inner,
  body .bc-ref-overview .bc-ref-grid-wrap,
  body .bc-ref-overview > .bc-ref-standalone-hero {
    width: min(100%, calc(100vw - 22px)) !important;
  }

  body .bc-ref-standalone-hero h1,
  body .bc-ref-import-hero h1,
  body .bc-ref-overview > .bc-ref-standalone-hero h1 {
    font-size: clamp(38px, 13vw, 62px) !important;
  }

  body .bc-ref-standalone-hero h1 span,
  body .bc-ref-import-hero h1 span {
    white-space: normal !important;
  }

  body .bc-ref-standalone-hero p,
  body .bc-ref-import-hero p {
    font-size: 17px !important;
  }

  body .bc-ref-overview .bc-ref-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body .bc-ref-overview .bc-ref-card-body.bc-ref-stack-body {
    min-height: auto !important;
    padding: 20px !important;
  }
}


/* v0.2.7: bc_references is cards only by default. Keep imported/custom hero separate. */
body .bc-ref-overview.bc-ref-overview--cards-only {
  padding-top: clamp(38px, 5vw, 72px) !important;
  background:
    radial-gradient(ellipse at 28% -12%, rgba(255, 90, 0, .16), rgba(255, 90, 0, 0) 58%),
    linear-gradient(90deg, rgba(255, 90, 0, .08) 0%, rgba(255, 90, 0, .03) 32%, rgba(0,0,0,0) 74%),
    #030303 !important;
}

body .bc-ref-overview.bc-ref-overview--cards-only::before {
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.42) 10%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, rgba(0,0,0,.54) 90%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, rgba(0,0,0,.70) 100%) !important;
}

body .bc-ref-overview.bc-ref-overview--cards-only .bc-ref-grid-wrap {
  padding-top: 0 !important;
}

body .bc-ref-overview.bc-ref-overview--cards-only .bc-ref-card-item.bc-ref-stack-card {
  background: linear-gradient(180deg, rgba(18,18,18,.98), rgba(4,4,4,.99)) !important;
}
