/* ============================================================
   styles-override.css — THROWAWAY
   Applies v2 visual tokens to v1 case study class names.
   Delete this file when the full v2 rebuild is complete.
   ============================================================ */

/* 1. Tokens — add v2 variables
   ============================================================ */
:root {
  --black:         #1f1f1f;
  --dark-teal-20:  rgba(8, 83, 90, 0.2);
  --dark-teal-10:  rgba(8, 83, 90, 0.1);
}

/* 2. Base — white bg, near-black text
   ============================================================ */
body {
  background-color: #fff;
  color: var(--black);
}

/* 3. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: none;
  padding: 0;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--dark-teal-20);
}

.header-inner {
  max-width: 1160px;
  padding: 20px;
  gap: 0;
}

.work-header-nav {
  padding: 0;
}

.back-btn,
.social-icons a {
  color: var(--dark-teal);
}

.back-btn:hover,
.social-icons a:hover {
  background-color: var(--light-teal);
}

.work-title .h1 {
  color: var(--dark-teal);
}

/* 4. Typography — update text colors
   ============================================================ */
.greeting,
.body,
.body-lg,
.body-bold,
.body-sm,
.caption {
  color: var(--black);
}

/* 5. Section borders — subtle instead of solid
   ============================================================ */
.section {
  border-bottom-color: var(--dark-teal-20);
}

.solution-section {
  border-bottom-color: var(--dark-teal-20);
}

/* 6. MVP container — match v2 tint
   ============================================================ */
.mvp-container {
  background-color: var(--dark-teal-10);
}

.page-chat .mvp-container {
  background: none;
  border-bottom: none;
}

.page-chat .mvp-section {
  padding: 0;
}

.page-chat .cs-row:first-child {
  border-top: none;
}

/* 7. Framed image blocks
   ============================================================ */
.img-block--framed {
  background-color: var(--dark-teal-10);
  border-color: var(--dark-teal-20);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 8. Proto links — v2 style
   ============================================================ */
.proto-link {
  display: inline-flex;
  color: var(--dark-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-skip-ink: none;
}

.proto-link:hover {
  background: var(--light-teal);
  text-decoration: none;
}

.proto-link:hover .proto-link-text {
  text-decoration: none;
}

/* 9. Work title — 2-col header layout
   ============================================================ */
.work-title-wrap {
  border-bottom: 1px solid var(--dark-teal-20);
}

.work-title {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.work-title-left {
  width: 560px;
  flex-shrink: 0;
}

.work-title .h1 {
  font-size: 63px;
  line-height: 1;
  color: var(--dark-teal);
}

.work-title-right {
  width: 520px;
  min-width: 0;
}

.main-content {
  padding-top: 60px;
}

@media (max-width: 768px) {
  .work-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 0;
  }

  .work-title-left,
  .work-title-right {
    width: 100%;
  }

  .work-title .h1 {
    font-size: 44px;
    line-height: 1.1;
  }
}

/* 10. CS body — 2-col row layout
   ============================================================ */
.project-section {
  max-width: 1160px;
  padding: 0 20px 60px;
  gap: 0;
}

.cs-row {
  display: flex;
  gap: 44px;
  border-top: 1px solid var(--dark-teal-20);
  padding: 40px 0;
}

.cs-row-label {
  width: 220px;
  flex-shrink: 0;
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--black);
  text-transform: none;
}

.cs-row-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-row-content .content-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 11. Scrolled state — condensed header
   ============================================================ */
.site-header.scrolled .header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header.scrolled .work-title {
  display: none;
}

.cs-header-title {
  flex: 1;
  padding: 0 20px;
  font-size: 40px;
  font-weight: 800;
  color: var(--dark-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.site-header.scrolled .cs-header-title {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 12. Mobile
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0;
    margin: 0;
  }

  .header-inner {
    max-width: 100%;
    padding: 14px 20px;
  }

  .cs-row {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .cs-row-label {
    width: auto;
  }

  .cs-row-content {
    width: 100%;
  }
}
