/* Case-study overrides — built on top of the Xpovio template's own tokens
   (--primary-color, --tertiary-color, etc. from assets/css/main.min.css).
   No new visual system is introduced; this only fills gaps the template
   doesn't already style for a single anonymized case-study page. */

#context, #pillars, #outcome, #top {
  scroll-margin-top: 120px;
}

.brand-mark {
  font-family: var(--theme-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  white-space: nowrap;
}
.brand-mark:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(255, 116, 37, 0.45);
}
.brand-mark--footer {
  font-size: 30px;
  font-weight: 700;
  white-space: normal;
}

/* ---- screenshot carousel (template poster slider, framed for product screenshots) ---- */
.shot-carousel { margin-bottom: 0; overflow: visible; }
.shot-frame {
  aspect-ratio: 16 / 10;
  background: var(--tertiary-color);
  border: 1px solid #414141;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shot-caption {
  color: var(--quinary-color);
  font-size: 16px;
  margin: 18px 0 0;
  max-width: 720px;
}
.shot-caption strong { color: var(--white); font-weight: 600; }
.shot-carousel .poster__slider-single { padding: 0 6px; }
.shot-carousel .slick-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.shot-carousel .slick-dots li button {
  font-size: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #757575;
  background: transparent;
}
.shot-carousel .slick-dots li.slick-active button {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
@media (max-width: 767px) {
  .shot-frame { aspect-ratio: 16 / 10; }
}

.diagram-caption {
  color: var(--secondary-color);
  font-size: 14px;
  margin: 16px 0 0;
}

/* ---- live demo ---- */
.demo-lead { margin-top: 8px; color: var(--quinary-color); }
.demo-frame {
  border: 1px solid #414141;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tertiary-color);
  margin-top: 40px;
}
.demo-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #414141;
}
.demo-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #414141;
}
.demo-frame__bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--secondary-color);
}
.demo-frame__body { position: relative; height: 680px; background: #fff; }
.demo-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.demo-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
}
.demo-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  filter: saturate(0.9);
}
.demo-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}
.demo-poster:hover::after { background: rgba(0, 0, 0, 0.5); }
.demo-poster__cta {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 34px;
  border-radius: 100px;
  background: var(--primary-color);
  color: #000;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.folks-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.folks-text:hover { color: var(--primary-color); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px dashed #414141;
}
.cta-band p {
  font-size: 22px;
  color: var(--white);
  margin: 0;
}

.details-group { margin-top: 60px; }
.details-group p { color: var(--quinary-color); }
.details-group ul { color: var(--quinary-color); }

/* ---- equal-height info cards (Sector / Role / Stack) ----
   The template's card is a row-flex with wrap, so a longer paragraph
   pushed the icon onto its own line and made that card taller than its
   siblings. Forcing column direction plus a bootstrap-stretched parent
   keeps every card the same height regardless of copy length. */
.project-d-o__single {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.project-d-o__single .thumb { margin-top: 24px; }
