/* ============================================================
   Kahchunk — shared case-study template
   Matches the Figma case-study frames (1280px content column).
   ============================================================ */

.cs {
  --cs-max: 1280px;
  --cs-inset: clamp(20px, 4.4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs > * { width: 100%; max-width: var(--cs-max); }
.cs section,
.cs .cs-section { padding-left: var(--cs-inset); padding-right: var(--cs-inset); }

/* ---- Nav ---- */
.cs-nav {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 12px;
}
.cs-nav__logo img { height: 91px; width: auto; }

/* ---- Hero ---- */
.cs-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 56px;
  padding-bottom: 36px;
}
.cs-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.64px;
  text-transform: uppercase;
  color: var(--orange-300);
}
.cs-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--orange-100);
  max-width: 880px;
}
.cs-hero__title .hl { color: var(--orange-300); }
.cs-hero__sub {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--orange-100);
  opacity: 0.85;
  max-width: 760px;
}
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* ---- Visual hero ---- */
.cs-visual { padding-top: 8px; padding-bottom: 8px; }
.cs-visual__media {
  width: 100%;
  aspect-ratio: 1168 / 600;
  border-radius: 14px;
  overflow: hidden;
  background: #e0d3bf;
  box-shadow: 0 2px 4px 3px rgba(0,0,0,0.18);
}
.cs-visual__media img,
.cs-visual__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Meta bar ---- */
.cs-meta { padding-top: 12px; }
.cs-meta__row {
  display: flex;
  gap: 24px;
  padding-bottom: 22px;
}
.cs-meta__cell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-meta__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange-100);
  opacity: 0.55;
}
.cs-meta__value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--orange-100);
}
.cs-rule {
  height: 0.5px;
  background: var(--blue-100);
  opacity: 0.25;
  border-radius: 2px;
}

/* ---- Stats ---- */
.cs-stats {
  display: flex;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cs-stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 52px);
  letter-spacing: -1.3px;
  color: var(--orange-300);
  line-height: 1;
}
.cs-stat__label {
  font-family: "Inter", var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--orange-100);
  opacity: 0.8;
}

/* ---- Context ---- */
.cs-context {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.cs-eyebrow {
  font-family: "Inter", var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.42px;
  text-transform: uppercase;
  color: var(--orange-300);
}
.cs-context__body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--orange-100);
  opacity: 0.9;
  max-width: 820px;
}
.cs-context__body strong { font-weight: 600; opacity: 1; }

/* ---- Approach / steps ---- */
.cs-approach {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.cs-approach__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--orange-100);
}
.cs-approach__intro { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.cs-approach__intro p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--orange-100);
  opacity: 0.9;
}

.cs-steps { display: flex; flex-direction: column; gap: 72px; padding-top: 24px; }
.cs-step { display: flex; flex-direction: column; gap: 20px; }
.cs-step__head { display: flex; gap: 16px; align-items: baseline; }
.cs-step__num {
  flex: 0 0 auto;
  width: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--orange-300);
}
.cs-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.13px;
  line-height: 1.2;
  color: var(--orange-100);
}
.cs-step__body {
  margin: 0;
  padding-left: 72px;
  max-width: 820px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--orange-100);
  opacity: 0.78;
}
.cs-step__body + .cs-step__body { margin-top: -8px; }
.cs-step__body ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.cs-step__body li { margin-bottom: 4px; }

/* Step visual / divider photo — rounded 12px on ALL corners (comment[4]) */
.cs-divider {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-100);
}
.cs-divider img,
.cs-divider video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-divider--green { background: var(--green-100); }
.cs-divider--yellow { background: #f6bc02; }
.cs-divider--art { background: #e0d3bf; }

/* Scroll-scrub: a tall image scrubbed vertically as the block passes the
   viewport (comment[5] — "goes to each section then rolls back to top"). */
.cs-divider--scrub img {
  height: auto;
  object-fit: cover;
  will-change: transform;
}
.cs-divider--scrub { display: block; }

/* Centered brand-logo block (step 01) */
.cs-divider--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
  padding: 8%;
}
.cs-divider--logo img { width: auto; height: auto; max-height: 46%; object-fit: contain; }
.cs-divider--logo .cs-logo-mark { max-height: 24%; }
.cs-divider__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  color: #000;
  opacity: 0.7;
}

/* ---- Prev / Next ---- */
.cs-prevnext {
  display: flex;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 56px;
}
.cs-prevnext__side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-prevnext__side--next { text-align: right; }
.cs-prevnext__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orange-100);
  opacity: 0.55;
}
.cs-prevnext__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.09px;
  color: var(--orange-100);
}
.cs-prevnext__company {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--orange-100);
  opacity: 0.6;
}
.cs-prevnext__side a:hover .cs-prevnext__title { color: var(--orange-300); }

/* ---- Footer (shared markup with homepage) ---- */
.site-footer {
  width: 100%;
  max-width: var(--cs-max);
  padding: 56px var(--cs-inset) 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.site-footer__top { display: flex; gap: 32px; align-items: flex-start; }
.site-footer__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.site-footer__lead { gap: 18px; }
.site-footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 52px);
  letter-spacing: -1.3px;
  color: var(--orange-100);
}
.site-footer__blurb {
  margin: 0;
  font-family: var(--font-museo);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
  color: var(--orange-100);
  opacity: 0.7;
  max-width: 36ch;
}
.site-footer__actions { display: flex; gap: 10px; padding-top: 4px; }
.site-footer__col-head {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2.42px;
  text-transform: uppercase;
  color: var(--orange-200);
  margin-bottom: 12px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 4px; }
.site-footer__list a,
.site-footer__list span {
  font-size: 13px;
  line-height: 1.8;
  color: var(--orange-100);
  opacity: 0.78;
}
.site-footer__list a:hover { opacity: 1; text-decoration: underline; }
.site-footer__rule { height: 0.5px; background: var(--orange-100); opacity: 0.18; }
.site-footer__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--orange-100);
}
.site-footer__meta span { opacity: 0.55; }

@media (max-width: 760px) {
  .site-footer__top { flex-direction: column; gap: 28px; }
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .cs-meta__row { flex-wrap: wrap; gap: 18px 24px; }
  .cs-meta__cell { flex: 1 1 40%; }
  .cs-stats { flex-direction: column; gap: 24px; }
  .cs-step__head { flex-direction: column; gap: 6px; }
  .cs-step__body { padding-left: 0; }
}
