/* ============================================================
   ARCHIVE CASE STUDIES — shared overrides
   Used by: cloudfinity, mbank, places case-study pages.
   Loads AFTER style.css and vinst-case-study.css.
============================================================ */

/* Archive pill — amber, sits first in the hero role-pill row */
.vi-role-pill--archive {
  background: rgba(230, 176, 80, 0.18);
  border: 1px solid rgba(230, 176, 80, 0.45);
  color: #f5d08a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 12px;
}

/* Hero wordmark — replaces the case-study logo image for archive projects */
.cs-hero-wordmark {
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.4px;
  color: #fff;
  opacity: 0.92;
  line-height: 1;
}

/* Text-card body copy — re-used inside vi-text-inner for paragraphs + lists */
.vi-text-body + .vi-text-body {
  margin-top: 16px;
}

.vi-text-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
}

.vi-text-list li {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.vi-text-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* Beige text card variant — dark text on beige bg */
.vi-card--beige .vi-text-inner .vi-text-heading { color: var(--dark); }
.vi-card--beige .vi-text-inner .vi-text-body    { color: var(--body); opacity: 0.8; }
.vi-card--beige .vi-text-inner .vi-text-list li { color: var(--body); opacity: 0.8; }
.vi-card--beige .vi-text-inner .vi-text-list li::before { color: rgba(38, 20, 7, 0.3); }

/* ============================================================
   NEXT-PROJECT CARD
============================================================ */

.cs-next-project {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 120px);
}

.cs-next-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px);
  border-radius: 36px;
  background: #111111;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

.cs-next-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

.cs-next-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cs-next-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.05;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-next-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #86b58f;
}

.cs-next-link:hover .cs-next-arrow {
  transform: translateX(10px);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  .cs-hero-wordmark { font-size: 22px; }
}

@media (max-width: 480px) {
  .vi-role-pill--archive { font-size: 10px; padding: 3px 10px; }
  .cs-hero-wordmark      { font-size: 20px; }

  .cs-next-project       { padding: 32px 0 48px; }
  .cs-next-link          { border-radius: 24px; padding: 28px 24px; gap: 8px; }
  .cs-next-title         { font-size: 28px; letter-spacing: -0.5px; gap: 10px; }
}
