/* ─── CASE STUDY — Single post styles ─────────────────────────────────────── */

:root { --red-accent: #C0392B; }

/* ── Nav — always opaque on dark hero pages ────────────────────────────────── */
.single-case_study .nav {
  background: rgba(245,241,232,.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding: .65rem 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cs-hero {
  padding: 9rem 0 4.5rem;
  background: var(--graphite);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(214,192,141,.07);
  pointer-events: none;
}
.cs-hero .container { max-width: 960px; }
.cs-hero__label {
  font-family: var(--font-display);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  color: var(--white);
}
.cs-hero__title em { font-style: normal; color: var(--gold); }
.cs-hero__sub {
  font-size: 1.05rem;
  color: rgba(254,252,248,.6);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cs-hero__meta { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.cs-hero__tag { display: flex; flex-direction: column; gap: .15rem; }
.cs-hero__tag-label {
  font-size: .58rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(254,252,248,.35);
}
.cs-hero__tag-val {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}

/* ── Metrics Strip ─────────────────────────────────────────────────────────── */
.cs-metrics-strip { background: var(--teal); }
.cs-metrics-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  max-width: 100%;
}
.cs-metrics-strip__item {
  padding: 2.25rem 1rem;
  border-right: 1px solid rgba(254,252,248,.1);
}
.cs-metrics-strip__item:last-child { border-right: none; }
.cs-metrics-strip__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
}
.cs-metrics-strip__unit { font-size: 1rem; font-weight: 600; }
.cs-metrics-strip__label {
  font-size: .68rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(254,252,248,.55);
  margin-top: .4rem;
}

/* ── Section Base ──────────────────────────────────────────────────────────── */
.cs-section { padding: 4.5rem 0; }
.cs-section--alt { background: var(--ivory-mid); }
.cs-section--dark { background: var(--graphite); color: var(--white); }
.cs-section .container { max-width: 800px; }
.cs-section--wide .container { max-width: 960px; }
.cs-section__label {
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .65rem;
  display: block;
}
.cs-section--dark .cs-section__label { color: var(--gold); }
.cs-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.cs-section--dark .cs-section__title { color: var(--white); }
.cs-section__body p { margin-bottom: 1.1rem; color: var(--taupe); }
.cs-section__body p:last-child { margin-bottom: 0; }
.cs-section--dark .cs-section__body p { color: rgba(254,252,248,.65); }

/* ── Challenge Cards ───────────────────────────────────────────────────────── */
.cs-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.cs-challenge {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--sand);
}
.cs-challenge__icon { font-size: 1.3rem; color: var(--red-accent); margin-bottom: .65rem; }
.cs-challenge__title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  color: var(--graphite);
  margin-bottom: .4rem;
}
.cs-challenge__text { font-size: .82rem; line-height: 1.65; color: var(--taupe); }

/* ── Pillars ───────────────────────────────────────────────────────────────── */
.cs-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cs-pillar {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(254,252,248,.1);
  position: relative;
}
.cs-pillar__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(214,192,141,.1);
  padding: .25rem .6rem;
}
.cs-pillar__icon { font-size: 1.5rem; color: var(--gold); margin-bottom: .85rem; }
.cs-pillar__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
}
.cs-pillar__text { font-size: .82rem; color: rgba(254,252,248,.5); line-height: 1.7; }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.cs-steps { margin-top: 2.5rem; }
.cs-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.cs-step:last-child { margin-bottom: 0; }
.cs-step__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  padding-top: .2rem;
}
.cs-step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .35rem;
}
.cs-step__text { font-size: .88rem; line-height: 1.75; color: rgba(254,252,248,.55); }

/* ── Timeline ──────────────────────────────────────────────────────────────── */
.cs-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
  border-top: 1px solid rgba(254,252,248,.08);
}
.cs-timeline__item {
  padding: 1.5rem;
  border-right: 1px solid rgba(254,252,248,.1);
}
.cs-timeline__item:last-child { border-right: none; }
.cs-timeline__num {
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.cs-timeline__title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .35rem;
}
.cs-timeline__text { font-size: .78rem; color: rgba(254,252,248,.55); line-height: 1.6; }

/* ── Tech Tags ─────────────────────────────────────────────────────────────── */
.cs-tech-tags { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.cs-tech-tag {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  background: rgba(27,107,98,.08);
  color: var(--teal);
  border: 1px solid rgba(27,107,98,.15);
}

/* ── Before / After ────────────────────────────────────────────────────────── */
.cs-ba {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
  margin-top: 2.5rem;
}
.cs-ba__col { padding: 2rem; background: var(--ivory-mid); border: 1px solid var(--sand); }
.cs-ba__col--after { background: var(--teal); border-color: var(--teal); }
.cs-ba__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
}
.cs-ba__label {
  font-family: var(--font-display);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 1rem;
}
.cs-ba__col--after .cs-ba__label { color: var(--gold); }
.cs-ba__item {
  padding: .65rem 0;
  border-bottom: 1px solid rgba(201,186,162,.35);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--taupe);
}
.cs-ba__col--after .cs-ba__item { color: rgba(254,252,248,.8); border-color: rgba(254,252,248,.15); }
.cs-ba__item:last-child { border-bottom: none; }
.cs-ba__item strong { color: var(--graphite); }
.cs-ba__col--after .cs-ba__item strong { color: var(--white); }

/* ── Quote ─────────────────────────────────────────────────────────────────── */
.cs-quote-block { padding: 4rem 0; text-align: center; background: var(--ivory-mid); }
.cs-quote-block .container { max-width: 760px; }
.cs-quote-block__mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--gold);
  line-height: .8;
  margin-bottom: .5rem;
}
.cs-quote-block__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--graphite);
  max-width: 620px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
  letter-spacing: -.01em;
}
.cs-quote-block__author { font-size: .82rem; color: var(--taupe); }
.cs-quote-block__author strong { color: var(--graphite); font-weight: 700; }

/* ── CTA Section ───────────────────────────────────────────────────────────── */
.cs-cta-section { background: var(--teal); padding: 4.5rem 0; text-align: center; }
.cs-cta-section .container { max-width: 640px; }
.cs-cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.cs-cta-section__sub {
  font-size: .95rem;
  color: rgba(254,252,248,.65);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cs-cta-section__btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .9rem 2.25rem;
  background: var(--white);
  color: var(--teal);
  text-decoration: none;
  transition: all .3s;
}
.cs-cta-section__btn:hover { background: var(--gold); color: var(--graphite); }

/* ── Post Navigation ───────────────────────────────────────────────────────── */
.cs-post-nav { border-top: 1px solid rgba(201,186,162,.3); padding: 2.5rem 0; }
.cs-post-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.cs-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-decoration: none;
}
.cs-post-nav__link--next { text-align: right; }
.cs-post-nav__dir {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--taupe);
}
.cs-post-nav__title {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--graphite);
  transition: color .3s;
}
.cs-post-nav__link:hover .cs-post-nav__title { color: var(--teal); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-pillars { gap: 1rem; }
}

@media (max-width: 768px) {
  .cs-hero { padding: 7rem 0 3rem; }
  .cs-hero__meta { gap: 1.5rem; }
  .cs-metrics-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-metrics-strip__item { border-bottom: 1px solid rgba(254,252,248,.1); }
  .cs-challenges { grid-template-columns: 1fr; }
  .cs-pillars { grid-template-columns: 1fr; }
  .cs-step { grid-template-columns: 44px 1fr; }
  .cs-timeline { grid-template-columns: 1fr 1fr; }
  .cs-ba { grid-template-columns: 1fr; }
  .cs-ba__arrow { padding: 1rem; writing-mode: horizontal-tb; }
  .cs-post-nav__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cs-timeline { grid-template-columns: 1fr; }
  .cs-timeline__item { border-right: none; border-bottom: 1px solid rgba(254,252,248,.1); }
  .cs-timeline__item:last-child { border-bottom: none; }
}
