/* V3 — Case Study: monks-inspired — spacious, editorial */

/* ── Hero — full-bleed background image ── */
.cs-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
}
.cs-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.cs-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,42,51,.35) 0%,
    rgba(9,42,51,.55) 40%,
    rgba(9,42,51,.88) 75%,
    rgba(9,42,51,.96) 100%
  );
  z-index: 1;
}
.cs-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 200px;
  padding-bottom: 80px;
}
.cs-hero .eyebrow { color: rgba(255,255,255,.45); }
.cs-hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 0.95;
  margin-top: 16px;
}
.cs-hero h1 em { font-style: italic; font-weight: 400; color: rgba(255,255,255,.5); }
.cs-hero__lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 580px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}
.cs-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.4);
  margin-bottom: 32px;
  transition: color .2s;
  text-decoration: none;
}
.cs-hero__back:hover { color: white; }

/* Stats row inside hero */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cs-stat {
  padding: 32px 0;
  opacity: 0; transform: translateY(12px);
  animation: cs-stat-in .6s var(--ease-out) forwards;
}
.cs-stat + .cs-stat { border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
.cs-stat:nth-child(2) { animation-delay: .1s; }
.cs-stat:nth-child(3) { animation-delay: .2s; }
.cs-stat:nth-child(4) { animation-delay: .3s; }
@keyframes cs-stat-in { to { opacity: 1; transform: none; } }
.cs-stat__n {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.cs-stat__l { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 8px; }

/* ── Overview — full-width with horizontal metadata row ── */
.cs-overview { padding-top: 120px; padding-bottom: 120px; }
.cs-overview h2 { font-size: var(--fs-h2); font-weight: 500; margin-bottom: 24px; }
.cs-overview h2 em { font-style: italic; color: var(--ink-soft); }
.cs-overview__body {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
  max-width: 780px;
}
.cs-overview__body p + p { margin-top: 16px; }

/* Horizontal metadata row */
.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-meta-item {
  flex: 1 1 auto;
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--rule);
  min-width: 140px;
}
.cs-meta-item:last-child { border-right: none; padding-right: 0; }
.cs-meta-item:first-child { padding-left: 0; }
.cs-meta-item__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cs-meta-item__val { font-size: 14px; font-weight: 500; }
.cs-meta-item__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-meta-chip {
  display: inline-block; padding: 4px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 500;
  background: var(--paper-subtle); color: var(--ink-soft);
}

/* ── Sections ── */
.cs-section { padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--rule); }
.cs-section--dark {
  background: var(--mash-dusk-blue); color: white; border-bottom: 0;
}
.cs-section--dark .eyebrow { color: rgba(255,255,255,.3); }
.cs-section__head { margin-bottom: 48px; }
.cs-section__head h2 { font-size: var(--fs-h1); font-weight: 500; margin-top: 12px; }
.cs-section__head h2 em { font-style: italic; color: var(--ink-soft); }
.cs-section__body {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft); max-width: 640px; margin-bottom: 48px;
}
.cs-section--dark .cs-section__body { color: rgba(255,255,255,.45); }
.cs-section--dark .cs-section__head h2 em { color: rgba(255,255,255,.35); }

/* Insight cards */
.cs-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-insight {
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 32px; background: white;
  transition: transform .3s var(--ease-out);
}
.cs-insight:hover { transform: translateY(-3px); }
.cs-insight__icon { width: 32px; height: 32px; margin-bottom: 20px; color: var(--ink); }
.cs-insight h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.cs-insight p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Gallery */
.cs-gallery { display: grid; gap: 20px; }
.cs-gallery--hero { grid-template-columns: 1fr; }
.cs-gallery--pair { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.cs-gallery__img {
  border-radius: 8px; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.cs-gallery--hero .cs-gallery__img { aspect-ratio: 21 / 9; }
.cs-gallery--pair .cs-gallery__img { aspect-ratio: 4 / 3; }
.cs-gallery__img img { position: absolute; width: 35%; filter: drop-shadow(0 8px 20px rgba(0,0,0,.12)); }
.cs-gallery__caption {
  position: absolute; bottom: 12px; left: 16px;
  font-size: 11px; color: white;
  background: rgba(0,0,0,.3); padding: 4px 10px;
  border-radius: 4px; backdrop-filter: blur(6px);
}

/* Bar chart */
.cs-bar-chart { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.cs-bar-chart__title { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.cs-bar { display: grid; grid-template-columns: 80px 1fr 50px; gap: 14px; align-items: center; }
.cs-bar__label { font-size: 13px; font-weight: 500; text-align: right; }
.cs-bar__track { height: 28px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.cs-section:not(.cs-section--dark) .cs-bar__track { background: var(--paper-subtle); }
.cs-bar__fill { height: 100%; border-radius: 4px; background: white; width: 0; transition: width 1.2s var(--ease-out); }
.cs-section:not(.cs-section--dark) .cs-bar__fill { background: var(--ink); }
.reveal.in .cs-bar__fill { width: var(--val); }
.reveal.in .cs-bar:nth-child(2) .cs-bar__fill { transition-delay: .1s; }
.reveal.in .cs-bar:nth-child(3) .cs-bar__fill { transition-delay: .2s; }
.reveal.in .cs-bar:nth-child(4) .cs-bar__fill { transition-delay: .3s; }
.cs-bar__fill--accent { background: var(--mash-teal); }
.cs-bar__val { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .4s .5s; }
.reveal.in .cs-bar__val { opacity: 1; }

/* Metrics */
.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.cs-metric {
  padding: 28px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.reveal.in .cs-metric { opacity: 1; transform: none; }
.reveal.in .cs-metric:nth-child(2) { transition-delay: .1s; }
.reveal.in .cs-metric:nth-child(3) { transition-delay: .2s; }
.reveal.in .cs-metric:nth-child(4) { transition-delay: .3s; }
.cs-section:not(.cs-section--dark) .cs-metric { border-color: var(--rule); background: white; }
.cs-metric__n { font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.cs-metric__l { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 6px; }
.cs-section:not(.cs-section--dark) .cs-metric__l { color: var(--ink-soft); }

/* Week chart */
.cs-week-chart { margin-top: 16px; }
.cs-week-chart__title { font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.cs-week-chart__bars {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 10px; align-items: end; height: 180px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cs-section:not(.cs-section--dark) .cs-week-chart__bars { border-bottom-color: var(--rule); }
.cs-week-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.cs-week-bar__col {
  width: 100%; border-radius: 4px 4px 0 0;
  background: white; height: 0;
  transition: height 1s var(--ease-out);
}
.cs-section:not(.cs-section--dark) .cs-week-bar__col { background: var(--ink); }
.reveal.in .cs-week-bar__col { height: var(--h); min-height: 6px; }
.reveal.in .cs-week-bar:nth-child(2) .cs-week-bar__col { transition-delay: .08s; }
.reveal.in .cs-week-bar:nth-child(3) .cs-week-bar__col { transition-delay: .16s; }
.reveal.in .cs-week-bar:nth-child(4) .cs-week-bar__col { transition-delay: .24s; }
.reveal.in .cs-week-bar:nth-child(5) .cs-week-bar__col { transition-delay: .32s; }
.reveal.in .cs-week-bar:nth-child(6) .cs-week-bar__col { transition-delay: .40s; }
.reveal.in .cs-week-bar:nth-child(7) .cs-week-bar__col { transition-delay: .48s; }
.reveal.in .cs-week-bar:nth-child(8) .cs-week-bar__col { transition-delay: .56s; }
.cs-week-bar__col--alt { background: var(--mash-teal); }
.cs-week-bar__val { font-size: 11px; font-weight: 500; opacity: 0; transition: opacity .4s; }
.reveal.in .cs-week-bar__val { opacity: 1; transition-delay: .7s; }
.cs-week-chart__labels {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 10px; margin-top: 8px;
}
.cs-week-chart__labels span { text-align: center; font-size: 11px; color: rgba(255,255,255,.3); }
.cs-section:not(.cs-section--dark) .cs-week-chart__labels span { color: var(--ink-soft); }

/* Social posts */
.cs-social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.cs-social-post {
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  overflow: hidden; background: rgba(255,255,255,.03);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.cs-section:not(.cs-section--dark) .cs-social-post { border-color: var(--rule); background: white; }
.reveal.in .cs-social-post { opacity: 1; transform: none; }
.reveal.in .cs-social-post:nth-child(2) { transition-delay: .1s; }
.reveal.in .cs-social-post:nth-child(3) { transition-delay: .2s; }
.cs-social-post__head { display: flex; align-items: center; gap: 8px; padding: 14px; }
.cs-social-post__icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
}
.cs-social-post__icon--ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cs-social-post__icon--yt { background: #FF0000; }
.cs-social-post__icon--tw { background: #000; }
.cs-social-post__acct { font-size: 12px; font-weight: 500; }
.cs-social-post__handle { font-size: 11px; color: rgba(255,255,255,.35); }
.cs-section:not(.cs-section--dark) .cs-social-post__handle { color: var(--ink-soft); }
.cs-social-post__media { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.cs-social-post__media img { width: 40%; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }
.cs-social-post__body { padding: 14px; }
.cs-social-post__caption {
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.45);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-section:not(.cs-section--dark) .cs-social-post__caption { color: var(--ink-soft); }
.cs-social-post__eng {
  display: flex; gap: 16px; padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11px; color: rgba(255,255,255,.3);
}
.cs-section:not(.cs-section--dark) .cs-social-post__eng { border-top-color: var(--rule); }
.cs-social-post__eng strong { color: white; font-weight: 500; margin-right: 3px; }
.cs-section:not(.cs-section--dark) .cs-social-post__eng strong { color: var(--ink); }

/* Channels */
.cs-channels { margin-top: 16px; }
.cs-channels__title { font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.cs-channel { display: grid; grid-template-columns: 80px 1fr 40px; gap: 14px; align-items: center; padding: 8px 0; }
.cs-channel__name { font-size: 13px; font-weight: 500; }
.cs-channel__track { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.cs-section:not(.cs-section--dark) .cs-channel__track { background: var(--paper-subtle); }
.cs-channel__fill { height: 100%; border-radius: 4px; width: 0; transition: width 1s var(--ease-out); }
.reveal.in .cs-channel__fill { width: var(--val); }
.cs-channel__fill--ig { background: #e6683c; }
.cs-channel__fill--yt { background: #FF0000; }
.cs-channel__fill--tw { background: #1DA1F2; }
.cs-channel__fill--tk { background: #000; }
.cs-channel__fill--ooh { background: var(--mash-teal); }
.cs-channel__pct { font-size: 13px; font-weight: 500; text-align: right; }

/* Quote */
.cs-quote { padding-top: 60px; padding-bottom: 60px; position: relative; }
.cs-quote__mark { font-size: 80px; line-height: 0.6; color: var(--rule); position: absolute; top: 40px; left: -8px; font-weight: 700; }
.cs-quote blockquote {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4; font-weight: 500;
  max-width: 700px; margin: 0;
  padding-left: 32px;
  border-left: 2px solid var(--ink);
}
.cs-quote__cite { margin-top: 20px; padding-left: 32px; font-size: 14px; }
.cs-quote__name { font-weight: 500; }
.cs-quote__role { color: var(--ink-soft); margin-top: 2px; }

/* ── Next project — full-width dark teaser ── */
.cs-next {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cs-next__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform .6s var(--ease-out);
}
.cs-next:hover .cs-next__bg { transform: scale(1.04); }
.cs-next__overlay {
  position: absolute; inset: 0;
  background: rgba(9,42,51,.82);
  z-index: 1;
  transition: background .4s;
}
.cs-next:hover .cs-next__overlay { background: rgba(9,42,51,.72); }
.cs-next__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 80px;
  padding-bottom: 80px;
  text-decoration: none;
  color: white;
  width: 100%;
}
.cs-next__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
}
.cs-next__title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cs-next__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mash-orange, #f74f04);
  transition: gap .3s var(--ease-out);
}
.cs-next:hover .cs-next__cta { gap: 14px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cs-hero { min-height: 70vh; }
  .cs-hero__inner { padding-top: 140px; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-stat + .cs-stat { border-left: 0; padding-left: 0; }
  .cs-stat:nth-child(odd) + .cs-stat { border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
  .cs-meta-row { flex-direction: column; }
  .cs-meta-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .cs-meta-item:last-child { border-bottom: none; }
  .cs-meta-item:first-child { padding-left: 0; }
  .cs-insights { grid-template-columns: 1fr; }
  .cs-gallery--pair { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-social-grid { grid-template-columns: 1fr; }
  .cs-week-chart__bars { height: 140px; }
}
@media (max-width: 640px) {
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-metrics { grid-template-columns: 1fr 1fr; }
  .cs-bar { grid-template-columns: 60px 1fr 40px; }
  .cs-next__title { font-size: 28px; }
}
