/* ==========================================================================
   Design refinement layer (loaded last on every case-study page)
   Removes generic template tells: coloured glows, traffic-light window dots,
   glowing buttons, hover lifts, numbered chapter labels and pill tag clouds.
   ========================================================================== */

/* Decorative glows */
.ambient-glow,
.showcase::before,
.bento-visual::before,
.cta-banner::before {
  display: none !important;
}

/* Browser frames: keep the address, drop the coloured dots */
.window-dots {
  display: none;
}

/* Flat buttons */
.btn-primary,
.primary-btn,
.btn-secondary,
.secondary-btn,
.nav-cta {
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .primary-btn:hover,
  .btn-secondary:hover,
  .secondary-btn:hover,
  .nav-cta:hover,
  .bento-card:hover .bento-window {
    transform: none !important;
  }
}

/* Showcase chapters: titles only */
.chapter-num {
  display: none;
}

/* Tech stack as a plain line of text, not a pill cloud */
.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tech-pill {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
}

.tech-pill:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--text-muted);
}

/* ==========================================================================
   Website case study (replaces "See how it works" on website projects)
   ========================================================================== */
.cs {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}


.cs-text .section-title {
  margin-bottom: 16px;
}

.cs-overview {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.cs-facts div {
  min-width: 0;
}

.cs-facts dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cs-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}

.cs-facts dd a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-facts .cs-wide {
  grid-column: 1 / -1;
}

.cs-subtitle {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.cs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cs-steps .cs-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-muted);
}

.cs-steps strong {
  color: var(--text);
  font-weight: 600;
}

.cs-pages {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-page {
  margin: 0;
}

.cs-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.cs-page figcaption {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cs-page figcaption span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cs {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .cs-facts {
    grid-template-columns: 1fr;
  }
}
