/* ══════════════════════════════════════════════════════════════════════════════
   CASE STUDY — complete design system
   Site palette: --dark #0E100F  --dark-2 #161816  --dark-3 #1C1F1C  --dark-4 #232623
                 --accent #E83A1A  --cream #F5E6D3  --green #22C55E  --border rgba(245,230,211,.08)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Root tokens ─────────────────────────────────────────────────────────────── */
:root {
  --cs-dark:        #0E100F;
  --cs-dark-2:      #161816;
  --cs-dark-3:      #1C1F1C;
  --cs-dark-4:      #232623;
  --cs-accent:      #E83A1A;
  --cs-accent-h:    #cc3217;
  --cs-cream:       #F5E6D3;
  --cs-cream-dim:   rgba(245,230,211,0.55);
  --cs-cream-faint: rgba(245,230,211,0.18);
  --cs-green:       #22C55E;
  --cs-border:      rgba(245,230,211,0.08);
  --cs-border-2:    rgba(245,230,211,0.12);
}

/* ── Base reset for the page ──────────────────────────────────────────────── */
.cs-page { background: var(--cs-dark); color: var(--cs-cream); }

/* ════════════════════════════════════════════════════════════════════════════
   1. HERO
   ════════════════════════════════════════════════════════════════════════════ */
.cs-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cs-dark-2);
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,16,15,0.25) 0%,
    rgba(14,16,15,0.45) 40%,
    rgba(14,16,15,0.85) 75%,
    rgba(14,16,15,0.97) 100%
  );
}

/* No-image fallback pattern */
.cs-hero--no-image .cs-hero__bg {
  background: var(--cs-dark-2);
}
.cs-hero--no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(232,58,26,0.03) 0px,
    rgba(232,58,26,0.03) 1px,
    transparent 1px,
    transparent 60px
  );
  pointer-events: none;
  z-index: 1;
}

.cs-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 0 0 0;
}

.cs-hero__breadcrumb {
  padding: 1.5rem 0 0;
}

.cs-hero__breadcrumb a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-cream-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.cs-hero__breadcrumb a:hover { color: var(--cs-cream); }
.cs-hero__breadcrumb span {
  font-size: 0.72rem;
  color: var(--cs-cream-faint);
  margin: 0 0.5rem;
}
.cs-hero__breadcrumb .bc-current {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cs-cream-dim);
}

.cs-hero__spacer { flex: 1; }

.cs-hero__content {
  padding-bottom: 0;
}

.cs-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cs-hero__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}
.cs-hero__tag--cs    { background: rgba(232,58,26,0.18); color: var(--cs-accent); border: 1px solid rgba(232,58,26,0.35); }
.cs-hero__tag--ind   { background: rgba(34,197,94,0.12);  color: var(--cs-green);  border: 1px solid rgba(34,197,94,0.3); }
.cs-hero__tag--year  { background: rgba(245,230,211,0.07); color: var(--cs-cream-dim); border: 1px solid var(--cs-border); }

.cs-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cs-cream);
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

/* Stats bar — full bleed inside the hero bottom */
.cs-hero__stats-wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: rgba(14,16,15,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cs-border-2);
}

.cs-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 1.5rem 0;
}

.cs-hero__stat {
  padding: 0.5rem 1.5rem 0.5rem 0;
  border-right: 1px solid var(--cs-border);
  text-align: left;
}
.cs-hero__stat:first-child { padding-left: 0; }
.cs-hero__stat:last-child  { border-right: none; }

.cs-hero__stat-num {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--cs-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cs-hero__stat-label {
  font-size: 0.72rem;
  color: var(--cs-cream-dim);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════════════════
   2. OVERVIEW STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.cs-overview {
  background: var(--cs-dark-3);
  border-bottom: 1px solid var(--cs-border);
}

.cs-overview__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

@media (max-width: 991px) {
  .cs-overview__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .cs-overview__grid { grid-template-columns: repeat(2, 1fr); }
}

.cs-overview__cell {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--cs-border);
}
.cs-overview__cell:last-child { border-right: none; }

.cs-overview__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-cream-dim);
  margin-bottom: 0.45rem;
}
.cs-overview__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-cream);
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════════════════
   3. SECTION SHARED UTILITIES
   ════════════════════════════════════════════════════════════════════════════ */
.cs-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
.cs-section--dark-2 { background: var(--cs-dark-2); }
.cs-section--dark   { background: var(--cs-dark);   }
.cs-section--dark-3 { background: var(--cs-dark-3); }
.cs-section--cream  { background: var(--cs-cream);  }

/* Watermark section number */
.cs-section__num {
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(245,230,211,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cs-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.cs-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cs-cream);
  margin-bottom: 1.25rem;
}

.cs-section__intro {
  font-size: 1.05rem;
  color: var(--cs-cream-dim);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════════════════════
   4. CHALLENGE SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.cs-challenge__body p {
  font-size: 1rem;
  color: var(--cs-cream-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cs-challenge__body p:last-child { margin-bottom: 0; }

.cs-challenge__points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-challenge__point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cs-border);
}
.cs-challenge__point:first-child { border-top: 1px solid var(--cs-border); }

.cs-challenge__point-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(232,58,26,0.12);
  border: 1px solid rgba(232,58,26,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--cs-accent);
  letter-spacing: 0.05em;
}

.cs-challenge__point-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cs-cream);
  margin-bottom: 0.3rem;
}
.cs-challenge__point-body {
  font-size: 0.875rem;
  color: var(--cs-cream-dim);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   5. GALLERY MOSAIC
   ════════════════════════════════════════════════════════════════════════════ */
.cs-gallery {
  background: var(--cs-dark);
  padding: 0;
  overflow: hidden;
}

.cs-gallery__mosaic {
  display: grid;
  grid-template-columns: 55fr 45fr;
  grid-template-rows: 250px 250px;
  height: 500px;
  gap: 3px;
}

.cs-gallery__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.cs-gallery__item--tall {
  grid-row: span 2;
}

.cs-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cs-gallery__item:hover .cs-gallery__img {
  transform: scale(1.04);
}

.cs-gallery__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(14,16,15,0.9) 0%, transparent 100%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-cream);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.cs-gallery__item:hover .cs-gallery__label {
  opacity: 1;
  transform: translateY(0);
}

.cs-gallery__placeholder {
  width: 100%;
  height: 100%;
  background: var(--cs-dark-3);
  border: 1px solid var(--cs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--cs-cream-dim);
}
.cs-gallery__placeholder i { font-size: 2rem; opacity: 0.3; }

@media (max-width: 767px) {
  .cs-gallery__mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 180px 180px;
    height: auto;
  }
  .cs-gallery__item--tall { grid-row: span 1; }
}

/* ════════════════════════════════════════════════════════════════════════════
   6. APPROACH SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.cs-approach__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 767px) {
  .cs-approach__cards { grid-template-columns: 1fr; }
}

.cs-approach__card {
  background: var(--cs-dark-3);
  border: 1px solid var(--cs-border);
  border-top: 3px solid var(--cs-accent);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  z-index: 1;
}
.cs-approach__card:hover {
  border-color: var(--cs-accent);
  background: rgba(28,31,28,0.95);
}

.cs-approach__card-num {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-approach__card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cs-border);
}

.cs-approach__card-icon {
  font-size: 1.75rem;
  color: var(--cs-cream-dim);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.cs-approach__card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cs-cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.cs-approach__card-body {
  font-size: 0.875rem;
  color: var(--cs-cream-dim);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════════════════════
   7. RESULTS SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.cs-results__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--cs-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}
@media (min-width: 992px) {
  .cs-results__metrics { grid-template-columns: repeat(4, 1fr); }
}

.cs-metric {
  padding: 3rem 2.5rem;
  background: var(--cs-dark-2);
  display: flex;
  flex-direction: column;
}

.cs-metric__value {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 900;
  color: var(--cs-cream);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cs-metric__suffix {
  font-size: 0.55em;
  font-weight: 900;
  color: var(--cs-accent);
  vertical-align: super;
  line-height: 1;
}
.cs-metric__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245,230,211,0.45);
  line-height: 1.5;
  flex: 1;
}
.cs-metric__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cs-green);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cs-border);
}
.cs-metric__delta--down { color: var(--cs-accent); }

/* Before/After — clean comparison cards */
.cs-ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--cs-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1px;
}

.cs-ba__item {
  background: var(--cs-dark);
  padding: 1.75rem 2rem;
}

.cs-ba__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,230,211,0.4);
  margin-bottom: 0.85rem;
}

.cs-ba__compare {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cs-ba__val {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.cs-ba__val--before {
  color: rgba(245,230,211,0.25);
  text-decoration: line-through;
  text-decoration-color: rgba(245,230,211,0.15);
}
.cs-ba__val--after { color: var(--cs-green); }
.cs-ba__arrow {
  color: rgba(245,230,211,0.2);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   8. WIDE IMAGE BREAK
   ════════════════════════════════════════════════════════════════════════════ */
.cs-wide-image {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--cs-dark-3);
}

.cs-wide-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-wide-image__overlay-l {
  position: absolute;
  inset: 0 60% 0 0;
  background: linear-gradient(90deg, rgba(14,16,15,0.7) 0%, transparent 100%);
  pointer-events: none;
}
.cs-wide-image__overlay-r {
  position: absolute;
  inset: 0 0 0 60%;
  background: linear-gradient(270deg, rgba(14,16,15,0.7) 0%, transparent 100%);
  pointer-events: none;
}

.cs-wide-image__caption {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-cream-dim);
  background: rgba(14,16,15,0.75);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--cs-border);
}

@media (max-width: 767px) { .cs-wide-image { height: 280px; } }

/* ════════════════════════════════════════════════════════════════════════════
   9. PROCESS TIMELINE
   ════════════════════════════════════════════════════════════════════════════ */
.cs-process__timeline {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

.cs-process__line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cs-border-2);
  z-index: 0;
}

.cs-process__step {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-right: 1rem;
}

.cs-process__dot {
  position: absolute;
  top: 11px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid var(--cs-border-2);
  background: var(--cs-dark);
  transform: translateX(-50%);
}
.cs-process__step:first-child .cs-process__dot { left: 9px; transform: none; }

.cs-process__dot--done   { background: var(--cs-accent); border-color: var(--cs-accent); }
.cs-process__dot--active {
  background: transparent;
  border-color: var(--cs-green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}
.cs-process__dot--pending { background: var(--cs-dark-3); border-color: var(--cs-border-2); }

.cs-process__phase {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 0.3rem;
}
.cs-process__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cs-cream);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}
.cs-process__duration {
  font-size: 0.75rem;
  color: var(--cs-cream-dim);
}

@media (max-width: 767px) {
  .cs-process__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .cs-process__line { display: none; }
  .cs-process__step {
    padding: 0 0 1.5rem 2.5rem;
    border-left: 1px solid var(--cs-border-2);
  }
  .cs-process__dot {
    left: -9px;
    top: 2px;
    transform: none;
  }
  .cs-process__step:first-child .cs-process__dot { left: -9px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   10. TECH STACK  —  pixel-perfect match of service page tech-section
   ════════════════════════════════════════════════════════════════════════════ */
.cs-tech {
  background: var(--cs-cream);
  padding: 6rem 0;
}

/* Left column — kicker + heading + note */
.cs-tech .cs-kicker { color: var(--cs-accent); }

.cs-tech__heading {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #0E100F;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.cs-tech__note {
  font-size: 0.95rem;
  color: rgba(14,16,15,0.55);
  line-height: 1.85;
}

/* Tag cloud — identical to service.css .tech-tag */
.cs-tech__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,16,15,0.06);
  border: 1px solid rgba(14,16,15,0.14);
  color: #0E100F;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0.25rem;
  transition: all 0.2s;
  cursor: default;
}
.cs-tech__tag::before {
  content: '◆';
  font-size: 0.35rem;
  color: var(--cs-accent);
  transition: color 0.2s;
}
.cs-tech__tag:hover {
  background: var(--cs-accent);
  color: #fff;
  border-color: var(--cs-accent);
  transform: translateY(-2px);
}
.cs-tech__tag:hover::before { color: rgba(255,255,255,0.6); }

/* Highlighted tag (dark pill for primary/main tech) */
.cs-tech__tag--hl {
  background: #0E100F;
  color: var(--cs-cream);
  border-color: #0E100F;
}
.cs-tech__tag--hl::before { color: var(--cs-accent); }
.cs-tech__tag--hl:hover {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #fff;
}

@media (max-width: 767px) {
  .cs-tech { padding: 4rem 0; }
  .cs-tech__heading { font-size: 1.9rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   11. TESTIMONIAL  —  supports video + text OR text only
   ════════════════════════════════════════════════════════════════════════════ */
.cs-testimonial {
  background: var(--cs-cream);
  padding: 6rem 0;
}

/* Video embed — 16:9 responsive wrapper */
.cs-testimonial__video-wrap {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(14,16,15,0.22);
  background: var(--cs-dark);
}
.cs-testimonial__video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.cs-testimonial__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cs-testimonial__mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.6;
  color: rgba(14,16,15,0.12);
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.cs-testimonial__quote {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--cs-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.cs-testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cs-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cs-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-testimonial__initials {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--cs-cream);
  letter-spacing: 0.05em;
}

.cs-testimonial__name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cs-dark);
  line-height: 1.3;
}
.cs-testimonial__role {
  font-size: 0.78rem;
  color: rgba(14,16,15,0.55);
}

.cs-testimonial__stars {
  color: var(--cs-accent);
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 0.3rem;
}

@media (max-width: 767px) {
  .cs-testimonial { padding: 4rem 0; }
  .cs-testimonial__video-wrap { margin-bottom: 2.5rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   12. CTA  —  matches homepage design exactly
   ════════════════════════════════════════════════════════════════════════════ */
.cs-cta {
  background: var(--cs-dark);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--cs-border);
}

/* Ghost word background — identical to homepage */
.cs-cta .cta-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(245,230,211,0.025);
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cs-cta__inner { position: relative; z-index: 1; }

/* Accent bar */
.cs-cta .cta-line {
  width: 56px;
  height: 3px;
  background: var(--cs-accent);
  margin: 0 auto 2.25rem;
}

/* Headline — matches .cta-section h2 */
.cs-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

/* Sub copy — matches .cta-section p */
.cs-cta p {
  color: rgba(245,230,211,0.5);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

/* Trust row — matches .cta-trust */
.cs-cta .cta-trust {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.cs-cta .cta-trust span {
  font-size: 0.78rem;
  color: rgba(245,230,211,0.35);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.cs-cta .cta-trust i { color: var(--cs-accent); }

/* Button styles — match home.css exactly */
.cs-cta .btn-white-sharp {
  background: #fff;
  color: var(--cs-accent);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 1rem 2.4rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.22s;
  letter-spacing: 0.02em;
}
.cs-cta .btn-white-sharp:hover {
  background: var(--cs-cream);
  color: var(--cs-accent);
  transform: translateY(-2px);
}

.cs-cta .btn-ghost-white {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 1rem 2.4rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.22s;
}
.cs-cta .btn-ghost-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

@media (max-width: 767px) {
  .cs-cta { padding: 5rem 0; }
  .cs-cta h2 { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -1px; }
  .cs-cta .cta-trust { gap: 1.25rem; flex-direction: column; align-items: center; }
  .cs-cta .cta-bg-word { font-size: 42vw; }
  .cs-cta .btn-white-sharp,
  .cs-cta .btn-ghost-white { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════════════
   13. PREV / NEXT NAV
   ════════════════════════════════════════════════════════════════════════════ */
.cs-nav {
  background: var(--cs-dark);
  border-top: 1px solid var(--cs-border);
}

.cs-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 575px) { .cs-nav__grid { grid-template-columns: 1fr; } }

.cs-nav__item {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  text-decoration: none;
  border-right: 1px solid var(--cs-border);
  transition: background 0.2s;
}
.cs-nav__item:last-child { border-right: none; }
.cs-nav__item:hover { background: rgba(245,230,211,0.02); }
.cs-nav__item--next { align-items: flex-end; text-align: right; }

.cs-nav__arrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cs-nav__item--next .cs-nav__arrow { justify-content: flex-end; }
.cs-nav__industry {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-cream-dim);
  margin-bottom: 0.4rem;
}
.cs-nav__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cs-cream);
  line-height: 1.35;
}

/* ════════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE  —  comprehensive mobile / tablet overrides
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991px) {
  .cs-section { padding: 5rem 0; }

  .cs-hero__title { max-width: 100%; }

  .cs-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cs-hero__stat { padding: 0.75rem 1rem; border-right: 1px solid var(--cs-border); }
  .cs-hero__stat:nth-child(2n) { border-right: none; }
  .cs-hero__stat:nth-child(n+3) { border-top: 1px solid var(--cs-border); }

}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .cs-section { padding: 3.5rem 0; }

  /* Hero */
  .cs-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .cs-hero__stat {
    padding: 1rem;
    border-right: 1px solid var(--cs-border);
  }
  .cs-hero__stat:nth-child(2n) { border-right: none; }
  .cs-hero__stat:nth-child(n+3) { border-top: 1px solid var(--cs-border); }
  .cs-hero__stat-num { font-size: 1.5rem; }

  /* Overview strip */
  .cs-overview__cell { padding: 1.25rem 1rem; }
  .cs-overview__value { font-size: 0.88rem; }

  /* Challenge */
  .cs-challenge__point { gap: 0.85rem; }

  /* Approach */
  .cs-approach__card { padding: 1.5rem; }
  .cs-approach__card-title { font-size: 0.98rem; }

  /* Results */
  .cs-metric { padding: 2rem 1.5rem; }
  .cs-metric__value { font-size: clamp(2.25rem, 8vw, 3.25rem); }

  /* BA items */
  .cs-ba { grid-template-columns: 1fr; }
  .cs-ba__item { padding: 1.25rem 1.5rem; }

  /* Process */
  .cs-process__step { padding: 0 0 1.25rem 2.25rem; }

  /* Prev/Next nav */
  .cs-nav__item { padding: 1.5rem 1rem; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .cs-hero__stats { grid-template-columns: 1fr; }
  .cs-hero__stat { border-right: none !important; border-top: 1px solid var(--cs-border); }
  .cs-hero__stat:first-child { border-top: none; }

  .cs-overview__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-overview__cell:nth-child(2n) { border-right: none; }
  .cs-overview__cell:nth-child(n+3) { border-top: 1px solid var(--cs-border); }

  .cs-results__metrics { grid-template-columns: 1fr; }
  .cs-metric { padding: 1.75rem 1.5rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   15. ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.s2 { transition-delay: 0.12s; }
.fade-up.s3 { transition-delay: 0.24s; }
.fade-up.s4 { transition-delay: 0.36s; }
.fade-up.s5 { transition-delay: 0.48s; }
