/* ═══════════ KEETA CASE STUDY ═══════════ */

/* Hero logos: MASH × Keeta */
.case-hero__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.case-hero__logo-mash {
  height: 32px;
  width: auto;
}
.case-hero__x {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--orange);
  font-weight: 300;
}
.case-hero__logo-client {
  height: 40px;
  width: auto;
  filter: invert(1);
}

/* Keeta brand hero image frame */
.case-img__frame--keeta {
  background: #ffd600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-img__brand-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffd600 0%, #ffab00 50%, #ff6d00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-img__brand-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/keeta.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 280px auto;
  opacity: .15;
}

/* ─── CHANNEL PERFORMANCE ─── */
.case-channels {
  padding: 80px var(--pad) 100px;
}
.case-channels__head {
  margin-bottom: 48px;
}
.case-channels__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.channel-card {
  padding: 28px;
  border: 1px solid var(--rule-light);
  border-radius: 12px;
  transition: border-color .3s, transform .3s var(--e-out);
}
.channel-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}
.channel-card__icon {
  width: 36px; height: 36px;
  color: var(--ink);
  margin-bottom: 20px;
}
.channel-card__icon svg { width: 100%; height: 100%; }
.channel-card__name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 8px;
}
.channel-card__metric {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.channel-card__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: 4px;
  margin-bottom: 20px;
}
.channel-card__bar {
  height: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.channel-card__fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 1.2s var(--e-out);
}
.channel-card__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.4;
}
.channel-card__stats strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .case-channels__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .case-channels__grid { grid-template-columns: 1fr; }
}

/* ─── GROWTH CHART ─── */
.case-growth {
  padding: 80px var(--pad) 100px;
  border-top: 1px solid var(--rule-light);
}
.case-growth__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.case-growth__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.case-growth__legend {
  display: flex;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--subtle);
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot--orange { background: var(--orange); }
.dot--grey { background: var(--grey-blue); }

.case-growth__chart {
  margin-bottom: 40px;
}
.chart-bar-group {
  position: relative;
}
.chart-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 280px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-light);
}
.chart-col {
  display: flex;
  gap: 4px;
  align-items: end;
  height: 100%;
}
.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  height: 0 !important;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-bars.is-animated .bar {
  height: var(--h) !important;
}
/* Stagger each column */
.chart-col:nth-child(1) .bar  { transition-delay: 0s; }
.chart-col:nth-child(2) .bar  { transition-delay: .07s; }
.chart-col:nth-child(3) .bar  { transition-delay: .14s; }
.chart-col:nth-child(4) .bar  { transition-delay: .21s; }
.chart-col:nth-child(5) .bar  { transition-delay: .28s; }
.chart-col:nth-child(6) .bar  { transition-delay: .35s; }
.chart-col:nth-child(7) .bar  { transition-delay: .42s; }
.chart-col:nth-child(8) .bar  { transition-delay: .49s; }
.chart-col:nth-child(9) .bar  { transition-delay: .56s; }
.chart-col:nth-child(10) .bar { transition-delay: .63s; }
.chart-col:nth-child(11) .bar { transition-delay: .7s; }
.chart-col:nth-child(12) .bar { transition-delay: .77s; }
.bar--dl { background: var(--orange); }
.bar--dau { background: var(--grey-blue); opacity: .6; }
.chart-labels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
}

.case-growth__callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.callout {
  padding: 24px;
  border-left: 3px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 4%, transparent);
  border-radius: 0 8px 8px 0;
}
.callout__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.callout__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--subtle);
}
.callout__text strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 700px) {
  .chart-bars { height: 200px; }
  .case-growth__callouts { grid-template-columns: 1fr; }
}

/* ─── INSTAGRAM EMBED SECTION ─── */
.case-embed {
  padding: 80px var(--pad) 100px;
  border-top: 1px solid var(--rule-light);
}
.case-embed__head {
  margin-bottom: 48px;
}
.case-embed__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.case-embed__title .em { color: var(--orange); font-style: normal; }

.case-embed__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.case-embed__post {
  min-width: 0;
}
.case-embed__insights {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}
.embed-insight {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule-light);
}
.embed-insight:last-of-type { border-bottom: 0; padding-bottom: 0; }
.embed-insight__num {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.embed-insight__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--subtle);
}
.embed-insight__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--subtle);
  padding: 20px;
  background: color-mix(in srgb, var(--orange) 5%, transparent);
  border-radius: 8px;
  border-left: 3px solid var(--orange);
}
.embed-insight__note strong {
  color: var(--ink);
  font-weight: 600;
}

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