/* ============================================================================
   TONIDEV — Projects "Case Study Cards" section
   Add this AFTER main.css (or paste at the end of main.css).
   Strictly monochrome. 1rem = 10px (matches the site's 62.5% base).
   ============================================================================ */

/* Stack of cards (overrides the old .grid-block grid for this block) */
.cs-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ---- Card shell ---- */
.cs-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

/* ---- Head: index number inline + baseline-aligned with the title ---- */
.cs-card__head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  padding: 3.4rem 3.6rem 0;
}
.cs-card__num {
  flex-shrink: 0;
  font: 800 3rem/1.05 "Montserrat", sans-serif;
  letter-spacing: -.08rem;
  color: #c4c7c8;
}
.cs-card__headmain { flex: 1; }
.cs-card__title {
  margin: 0;
  font: 800 3rem/1.05 "Montserrat", sans-serif;
  letter-spacing: -.06rem;
  color: #1d2021;
}
.cs-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.3rem;
}
.cs-chip {
  font: 700 1rem/1 "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #313637;
  background: #f2f2f2;
  border-radius: 999px;
  padding: .7rem 1.1rem;
}
.cs-chip--nda { background: #24262B; color: #fff; }
.cs-chip--time { background: transparent; border: 1px solid #d8dadb; }

/* ---- Media: featured shot + thumbnail strip ---- */
.cs-card__media { padding: 3rem 3.6rem 0; }

.cs-frame {
  border: 1px solid #e3e5e6;
  border-radius: 8px;
  overflow: hidden;
}
.cs-frame__bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: #f2f2f2;
  border-bottom: 1px solid #e6e6e6;
}
.cs-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d5d6; }
.cs-frame__url {
  margin-left: 14px;
  flex: 1;
  height: 18px;
  max-width: 340px;
  border-radius: 4px;
  background: #e6e8e9;
}
/* real screenshot */
.cs-frame__shot {
  display: block;
  width: 100%;
  height: auto;
}
/* placeholder used until a real screenshot is dropped in */
.cs-shot {
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #eef0f1 0 16px, #f7f8f8 16px 32px);
}
.cs-shot span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #9a9d9e;
  background: rgba(255,255,255,.75);
  padding: 5px 11px;
  border-radius: 3px;
}

.cs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.cs-strip img,
.cs-strip .cs-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e6e8e9;
  border-radius: 6px;
}
.cs-strip .cs-thumb {
  display: flex;
  align-items: flex-end;
  padding: 8px;
  background: repeating-linear-gradient(135deg, #eef0f1 0 11px, #f7f8f8 11px 22px);
}
.cs-strip .cs-thumb span {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #a7aaab;
  line-height: 1.25;
}

/* ---- NDA / confidential banner (replaces the media for anonymized work) ---- */
.cs-nda {
  margin: 3rem 3.6rem 0;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2.6rem 3rem;
  background: #fafbfb;
  border: 1px dashed #cfd2d3;
  border-radius: 8px;
}
.cs-nda i { font-size: 2.4rem; color: #b3b6b7; flex-shrink: 0; }
.cs-nda p { margin: 0; font: 500 1.3rem/1.6 "Montserrat", sans-serif; color: #6f7273; }

/* ---- Story: Problem / What I did / Result (result = solid dark block) ---- */
.cs-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.4rem;
  border-top: 1px solid #ececec;
}
.cs-col {
  padding: 3rem 3.6rem;
  border-left: 1px solid #ececec;
}
.cs-col:first-child { border-left: 0; }
.cs-col__label {
  font: 700 1.05rem/1 "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9a9d9e;
  margin-bottom: 1.3rem;
}
.cs-col__text { margin: 0; font: 400 1.45rem/1.6 "Montserrat", sans-serif; color: #313637; }

.cs-col--result { background: #1d2021; }
.cs-col--result .cs-col__label { color: #9a9d9e; }
.cs-col--result .cs-col__text { color: #fff; font-weight: 600; font-size: 1.6rem; line-height: 1.5; }

/* ---- Foot: tech stack + live link ---- */
.cs-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.6rem 3.6rem 3.2rem;
  border-top: 1px solid #ececec;
}
.cs-tech { display: flex; flex-wrap: wrap; gap: .7rem; }
.cs-tech span {
  font: 600 1.15rem/1 "Montserrat", sans-serif;
  color: #313637;
  background: #f2f2f2;
  border-radius: 4px;
  padding: .8rem 1.1rem;
}
.cs-live {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: 700 1.3rem/1 "Montserrat", sans-serif;
  color: #1d2021;
  text-decoration: none;
  border-bottom: 2px solid #1d2021;
  padding-bottom: .4rem;
  transition: color .25s ease, border-color .25s ease;
}
.cs-live i { font-size: 1.2rem; }
.cs-live:hover { color: #6f7273; border-color: #6f7273; }

/* ---- Responsive ---- */
@media only screen and (max-width: 991px) {
  .cs-card__head,
  .cs-card__media { padding-left: 2.4rem; padding-right: 2.4rem; }
  .cs-nda { margin-left: 2.4rem; margin-right: 2.4rem; }
  .cs-story { grid-template-columns: 1fr; }
  .cs-col { border-left: 0; border-top: 1px solid #ececec; }
  .cs-col:first-child { border-top: 0; }
  .cs-card__foot { padding-left: 2.4rem; padding-right: 2.4rem; }
}
