/* BaitFever layout polish: composition rhythm, linked KPI palette and compact
   product studies. Loaded after the case repair stylesheet on purpose. */
@media (min-width: 1051px) {
  body.case-page.case-baitfever .bf-evidence-card--reversed > img {
    grid-column: 2;
    grid-row: 1;
  }

  body.case-page.case-baitfever .bf-evidence-card--reversed > figcaption {
    grid-column: 1;
    grid-row: 1;
  }
}

body.case-page.case-baitfever .bf-capability-strip > * {
  --bf-strip-accent: #ffc400;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bf-strip-accent) 15%, #241a17), rgba(18, 14, 19, .9)) !important;
  border-bottom: 2px solid var(--bf-strip-accent) !important;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--bf-strip-accent) 24%, transparent),
    inset 0 -12px 24px color-mix(in srgb, var(--bf-strip-accent) 5%, transparent) !important;
}

body.case-page.case-baitfever .bf-capability-strip > *:nth-child(2) { --bf-strip-accent: #ff6500 !important; }
body.case-page.case-baitfever .bf-capability-strip > *:nth-child(3) { --bf-strip-accent: #ff1f73 !important; }
body.case-page.case-baitfever .bf-capability-strip > *:nth-child(4) { --bf-strip-accent: #b277ff !important; }

body.case-page.case-baitfever .bf-capability-strip > *:nth-child(1) { border-bottom-color: #ffc400 !important; }
body.case-page.case-baitfever .bf-capability-strip > *:nth-child(2) { border-bottom-color: #ff6500 !important; }
body.case-page.case-baitfever .bf-capability-strip > *:nth-child(3) { border-bottom-color: #ff1f73 !important; }
body.case-page.case-baitfever .bf-capability-strip > *:nth-child(4) { border-bottom-color: #b277ff !important; }

body.case-page.case-baitfever .bf-capability-strip > * strong {
  color: var(--bf-strip-accent) !important;
}

body.case-page.case-baitfever .bf-product-development__packaging {
  max-width: none;
}

body.case-page.case-baitfever .bf-packaging-grid {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
}

body.case-page.case-baitfever .bf-packaging-grid figure {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 206px;
}

body.case-page.case-baitfever .bf-packaging-grid img {
  height: 152px;
  justify-self: center;
  padding: 12px 16px 4px;
}

body.case-page.case-baitfever .bf-packaging-grid figcaption {
  align-items: center;
  border-left: 0;
  border-top: 1px solid rgba(255, 241, 225, .11);
  display: flex;
  font-size: .69rem;
  justify-content: flex-start;
  letter-spacing: .08em;
  max-width: none;
  min-height: 37px;
  padding: 9px 13px;
  writing-mode: horizontal-tb;
}

@media (max-width: 820px) {
  body.case-page.case-baitfever .bf-product-development__packaging { max-width: none; }

  body.case-page.case-baitfever .bf-packaging-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.case-page.case-baitfever .bf-packaging-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.case-page.case-baitfever .bf-packaging-grid figure { min-height: 177px; }

  body.case-page.case-baitfever .bf-packaging-grid img {
    height: 128px;
    padding: 10px 10px 2px;
  }

  body.case-page.case-baitfever .bf-packaging-grid figcaption {
    font-size: .61rem;
    min-height: 34px;
    padding: 8px 9px;
  }
}

/* The packaging gallery has one job: introduce the visual product family.
   The product-in-hand study now belongs to its own duo-colour explanation,
   where the image has narrative value instead of competing with seven packs. */
body.case-page.case-baitfever .bf-product-development__stage {
  display: block;
}

body.case-page.case-baitfever .bf-product-development__copy {
  border-left: 0;
  border-top: 2px solid #ff6500;
  margin: 0 auto 26px;
  max-width: 66ch;
  padding: 16px 0 0;
  text-align: center;
}

body.case-page.case-baitfever .bf-product-development__copy .fact-label {
  margin-bottom: 10px;
}

body.case-page.case-baitfever .bf-packaging-material {
  align-items: stretch;
  background: linear-gradient(112deg, rgba(255, 101, 0, .1), rgba(14, 10, 14, .92));
  border: 1px solid rgba(255, 101, 0, .36);
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr);
  margin: 0 auto 20px;
  max-width: 760px;
  overflow: hidden;
}

body.case-page.case-baitfever .bf-packaging-material img {
  display: block;
  height: 144px;
  object-fit: cover;
  object-position: 50% 56%;
  width: 100%;
}

body.case-page.case-baitfever .bf-packaging-material figcaption {
  align-content: center;
  display: grid;
  gap: 7px;
  padding: 18px 22px;
}

body.case-page.case-baitfever .bf-packaging-material strong {
  color: var(--bf-cream, #f6ece3);
  font-family: var(--font-display, inherit);
  line-height: 1.25;
}

body.case-page.case-baitfever .bf-packaging-grid {
  margin-inline: auto;
  max-width: 1120px;
}

/* The product family reads as a centred 4 + 3 catalogue instead of a
   leftover column at the left edge. */
@media (min-width: 821px) {
  body.case-page.case-baitfever .bf-packaging-grid figure:nth-child(5),
  body.case-page.case-baitfever .bf-packaging-grid figure:nth-child(6),
  body.case-page.case-baitfever .bf-packaging-grid figure:nth-child(7) {
    transform: translateX(50%);
  }
}

body.case-page.case-baitfever .bf-duo-colour-story {
  background:
    radial-gradient(ellipse 56% 88% at 6% 50%, rgba(178, 119, 255, .12), transparent 70%),
    radial-gradient(ellipse 55% 82% at 96% 8%, rgba(255, 196, 0, .11), transparent 72%),
    #0b0a0f;
}

body.case-page.case-baitfever .bf-duo-colour-story__stage {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 4vw, 62px);
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  margin-inline: auto;
  max-width: 1240px;
}

body.case-page.case-baitfever .bf-duo-colour-story__image {
  background: linear-gradient(155deg, rgba(36, 25, 45, .96), rgba(7, 7, 10, .98));
  border: 1px solid rgba(178, 119, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 48px rgba(0,0,0,.28);
  display: grid;
  align-self: start;
  grid-template-rows: 320px auto;
  margin: 0;
  overflow: hidden;
}

body.case-page.case-baitfever .bf-duo-colour-story__image img {
  height: 320px;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 54%;
  width: 100%;
}

body.case-page.case-baitfever .bf-duo-colour-story__image figcaption {
  border-top: 1px solid rgba(255, 241, 225, .12);
  display: grid;
  gap: 7px;
  padding: 17px 19px 19px;
}

body.case-page.case-baitfever .bf-duo-colour-story__image strong {
  color: var(--bf-cream, #f6ece3);
  font-family: var(--font-display, inherit);
  line-height: 1.25;
}

body.case-page.case-baitfever .bf-duo-colour-story__copy > p:first-child {
  color: rgba(246, 236, 227, .82);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.62;
  margin: 2px 0 22px;
  max-width: 65ch;
}

body.case-page.case-baitfever .bf-duo-colour-story__principles {
  display: grid;
  gap: 12px;
}

body.case-page.case-baitfever .bf-duo-colour-story__principles article {
  --bf-story-accent: #ffc400;
  background: linear-gradient(115deg, color-mix(in srgb, var(--bf-story-accent) 10%, #171015), rgba(10, 9, 13, .98));
  border: 1px solid color-mix(in srgb, var(--bf-story-accent) 50%, transparent);
  border-left: 3px solid var(--bf-story-accent);
  isolation: isolate;
  overflow: hidden;
  padding: 18px 20px 19px;
  position: relative;
}

body.case-page.case-baitfever .bf-duo-colour-story__principles article:nth-child(2) { --bf-story-accent: #ff6500; }
body.case-page.case-baitfever .bf-duo-colour-story__principles article:nth-child(3) { --bf-story-accent: #ff1f73; }

body.case-page.case-baitfever .bf-duo-colour-story__principles .fact-label {
  color: var(--bf-story-accent);
}

body.case-page.case-baitfever .bf-duo-colour-story__principles h3 {
  color: var(--bf-cream, #f6ece3);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  margin: 7px 0 7px;
}

body.case-page.case-baitfever .bf-duo-colour-story__principles p {
  color: rgba(246, 236, 227, .72);
  font-size: .94rem;
  line-height: 1.55;
  margin: 0;
  max-width: calc(100% - 92px);
  position: relative;
  z-index: 1;
}

body.case-page.case-baitfever .bf-duo-colour-story__principles .fact-label,
body.case-page.case-baitfever .bf-duo-colour-story__principles h3 {
  position: relative;
  z-index: 1;
}

body.case-page.case-baitfever .bf-duo-colour-story__cutout {
  bottom: -34px;
  filter: drop-shadow(0 13px 15px rgba(0, 0, 0, .45));
  opacity: .34;
  pointer-events: none;
  position: absolute;
  right: -36px;
  width: 168px;
  z-index: 0;
}

body.case-page.case-baitfever .bf-duo-colour-story__field-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(30px, 4vw, 52px) auto 0;
  max-width: 1240px;
}

body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure {
  border: 1px solid rgba(255, 241, 225, .16);
  height: 188px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

body.case-page.case-baitfever .bf-duo-colour-story__field-gallery img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure:nth-child(1) img { object-position: 50% 48%; }
body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure:nth-child(2) img { object-position: 50% 52%; }
body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure:nth-child(3) img { object-position: 50% 46%; }
body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure:hover img { transform: scale(1.045); }

body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figcaption {
  background: linear-gradient(90deg, rgba(7, 7, 10, .9), rgba(7, 7, 10, .03));
  bottom: 0;
  color: var(--bf-cream, #f6ece3);
  font-size: .67rem;
  font-weight: 800;
  left: 0;
  letter-spacing: .1em;
  padding: 11px 13px;
  position: absolute;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  body.case-page.case-baitfever .bf-packaging-material {
    grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr);
    max-width: 620px;
  }

  body.case-page.case-baitfever .bf-duo-colour-story__stage { grid-template-columns: 1fr; }

  body.case-page.case-baitfever .bf-duo-colour-story__image {
    grid-template-columns: minmax(200px, .74fr) minmax(0, 1.26fr);
    grid-template-rows: 260px;
  }

  body.case-page.case-baitfever .bf-duo-colour-story__image figcaption {
    align-content: center;
    border-left: 1px solid rgba(255, 241, 225, .12);
    border-top: 0;
  }

  body.case-page.case-baitfever .bf-duo-colour-story__image img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  body.case-page.case-baitfever .bf-packaging-material {
    grid-template-columns: 1fr;
    max-width: none;
  }

  body.case-page.case-baitfever .bf-packaging-material img { height: 148px; }
  body.case-page.case-baitfever .bf-packaging-material figcaption { padding: 14px 16px 16px; }

  body.case-page.case-baitfever .bf-duo-colour-story__image {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 230px auto;
  }

  body.case-page.case-baitfever .bf-duo-colour-story__image img {
    height: 230px;
    min-height: 0;
  }

  body.case-page.case-baitfever .bf-duo-colour-story__image figcaption {
    border-left: 0;
    border-top: 1px solid rgba(255, 241, 225, .12);
  }

  body.case-page.case-baitfever .bf-duo-colour-story__principles article { padding: 16px; }
  body.case-page.case-baitfever .bf-duo-colour-story__principles p { max-width: calc(100% - 62px); }
  body.case-page.case-baitfever .bf-duo-colour-story__cutout { bottom: -22px; right: -30px; width: 126px; }
  body.case-page.case-baitfever .bf-duo-colour-story__field-gallery { gap: 8px; margin-top: 24px; }
  body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figure { height: 94px; }
  body.case-page.case-baitfever .bf-duo-colour-story__field-gallery figcaption { font-size: .51rem; padding: 8px; }
}
