/* ==========================================================================
   PAGE STYLES — capabilities/content-social (Content Marketing)
   Kosh Media Design System
   ========================================================================== */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── PROGRESS BAR ── */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 600;
}
.prog-fill {
  height: 100%;
  background: var(--color-secondary);
  width: 0%;
}

/* ── REVEAL ANIMATIONS ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
}
.rv.in {
  opacity: 1 !important;
  transform: none !important;
}
/* Hero elements visible by default for instant above-the-fold impact */
.cm-hero .rv {
  opacity: 1;
  transform: none;
}
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .15s; }
.rv.d3 { transition-delay: .22s; }
.rv.d4 { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── SHARED SECTION TYPOGRAPHY & SPACING ── */
.cm-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cm-section__hl {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.cm-section__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.cm-section__body {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 16px;
}
.cm-section__body:last-of-type {
  margin-bottom: 0;
}

/* Eyebrows */
.eyebrow {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 16px;
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Arrow link */
.cm-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color .2s, border-color .2s, gap .25s var(--ease);
}
.cm-arrow-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  gap: 14px;
}
.cm-arrow-link svg {
  width: 12px;
  height: 12px;
}

/* ══════════════════════════════════════════════
   01. HERO
══════════════════════════════════════════════ */
.cm-hero {
  padding: clamp(88px, 11vw, 144px) 0 clamp(64px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
}

.cm-hero__hl {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
}
.cm-hero__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.cm-hero__body {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 32px;
}

.cm-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.cm-hero__tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cm-hero__sep {
  color: var(--line);
  font-size: 15px;
}

.cm-hero__action {
  margin-top: 8px;
}
.cm-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 4px;
  text-decoration: none;
  transition: color .2s, border-color .2s, gap .25s var(--ease);
}
.cm-hero__cta:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  gap: 16px;
}
.cm-hero__cta svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════════
   02. CONTENT IS MORE THAN COMMUNICATION
══════════════════════════════════════════════ */
.cm-perspective {
  background: var(--bg-sand);
}
.cm-perspective__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

/* Three Intersections Card */
.cm-intersection-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-img, 5px);
  box-shadow: 0 10px 30px -10px rgba(20, 18, 16, .08);
  overflow: hidden;
}
.cm-intersection-header {
  background: var(--color-primary);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}
.cm-intersection-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
}
.cm-intersection-list {
  display: flex;
  flex-direction: column;
}
.cm-intersection-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color .2s;
}
.cm-intersection-item:last-child {
  border-bottom: none;
}
.cm-intersection-item:hover {
  background: var(--bg-tint);
}
.cm-intersection-num {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-secondary);
  font-weight: 400;
}
.cm-intersection-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cm-intersection-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   03. WHAT WE DO
══════════════════════════════════════════════ */
.cm-services {
  background: var(--bg-page);
}
.cm-services__head {
  margin-bottom: 44px;
}
.cm-services__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.cm-service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color .2s;
}
.cm-service-row:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--bg-tint);
}
.cm-service-row__lead {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cm-service-row__num {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-secondary);
}
.cm-service-row__divider {
  color: var(--line);
  font-size: 14px;
}
.cm-service-row__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.cm-service-row__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-service-row__sub {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.35;
}
.cm-service-row__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}
.cm-service-row__tags {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.cm-service-row__action {
  margin-top: 10px;
}

/* ══════════════════════════════════════════════
   04. WHERE CONTENT MEETS THE REST OF MARKETING
══════════════════════════════════════════════ */
.cm-connected {
  background: var(--bg-sand);
}
.cm-connected__head {
  margin-bottom: 48px;
  max-width: 720px;
}
.cm-connected__lede {
  margin-top: 12px;
}
.cm-connected__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cm-channel-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-img, 5px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cm-channel-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(111, 0, 0, .08);
}
.cm-channel-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.cm-channel-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
  margin: 10px 0 8px;
}
.cm-channel-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.cm-channel-card__action {
  margin-top: auto;
}

/* ══════════════════════════════════════════════
   05. THE EDITORIAL THINKING
══════════════════════════════════════════════ */
.cm-thinking {
  background: var(--bg-page);
}
.cm-thinking__head {
  margin-bottom: 48px;
  max-width: 720px;
}
.cm-thinking__quote {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic;
  color: var(--color-secondary);
  margin: 18px 0 20px;
  line-height: 1.25;
}
.cm-thinking__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cm-thinking-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-img, 5px);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color .2s, border-color .2s;
}
.cm-thinking-step:hover {
  background: var(--bg-tint);
  border-color: var(--color-secondary);
}
.cm-thinking-step__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cm-thinking-step__num {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--color-secondary);
}
.cm-thinking-step__divider {
  color: var(--line);
  font-size: 13px;
}
.cm-thinking-step__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.cm-thinking-step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   06. AUTHORITY IS BUILT IN THE DETAILS
══════════════════════════════════════════════ */
.cm-authority {
  background: var(--bg-dark);
  color: var(--text-on-dark-2);
}
.cm-authority__inner {
  max-width: 780px;
}
.cm-authority__statement {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 400;
}
.cm-authority__body {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-on-dark-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   07. CONTENT THAT BUILDS A BODY OF WORK
══════════════════════════════════════════════ */
.cm-body-of-work {
  background: var(--bg-sand);
}
.cm-bow__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.cm-bow__highlight {
  font-family: var(--font-heading);
  font-size: clamp(19px, 1.9vw, 24px);
  font-style: italic;
  color: var(--color-secondary);
  line-height: 1.4;
  margin-top: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--color-secondary);
}

/* ══════════════════════════════════════════════
   08. SELECTED WORK
══════════════════════════════════════════════ */
.cm-work {
  background: var(--bg-page);
}
.cm-work__head {
  margin-bottom: 40px;
}
.cm-work__table {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius-img, 5px);
  overflow: hidden;
  margin-bottom: 28px;
}
.cm-work__table-head {
  display: grid;
  grid-template-columns: 320px 1fr;
  padding: 16px 28px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cm-work__row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color .2s;
}
.cm-work__row:last-child {
  border-bottom: none;
}
.cm-work__row:hover {
  background: var(--bg-tint);
}
.cm-work__client-name {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cm-work__client-cat {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cm-work__pillars-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.cm-work__summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   09. BEFORE WE START (FAQ)
══════════════════════════════════════════════ */
.cm-faq {
  background: var(--bg-page);
}
.cm-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.cm-faq__items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q__title {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 400;
}
.faq-q:hover .faq-q__title {
  color: var(--color-secondary);
}
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .35s var(--ease);
}
.faq-icon svg {
  width: 10px;
  height: 10px;
  color: var(--text-tertiary);
  transition: color .2s;
}
.faq-item.open .faq-icon {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: rotate(45deg);
}
.faq-item.open .faq-icon svg {
  color: #ffffff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding-bottom .3s ease;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding-bottom: 22px;
}
.faq-a__action {
  margin-top: 14px;
}

/* ══════════════════════════════════════════════
   10. FINAL CTA
══════════════════════════════════════════════ */
.cm-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark-2);
  padding: var(--section-y) 0;
}
.cm-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.cm-cta__hl {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 54px);
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 400;
}
.cm-cta__hl em {
  font-style: italic;
  color: var(--color-tertiary);
}
.cm-cta__body {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-on-dark-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}
.cm-cta__btn-wrap {
  margin-top: 8px;
}
.cm-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--btn-pad-y, 16px) var(--btn-pad-x, 28px);
  background: var(--color-secondary);
  color: #ffffff;
  font-size: var(--fs-button, 13px);
  font-weight: 500;
  letter-spacing: var(--btn-ls, .06em);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, gap .25s var(--ease);
}
.cm-cta__btn:hover {
  background: #8b0000;
  gap: 16px;
}
.cm-cta__btn svg {
  width: 14px;
  height: 14px;
}

/* Contact Card */
.cm-contact-card {
  border-left: 1px solid var(--line-on-dark);
  padding-left: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}
.cm-c-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 14px;
}
.cm-c-row:first-child {
  border-top: 1px solid var(--line-on-dark);
}
.cm-c-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
  width: 90px;
  flex-shrink: 0;
}
.cm-c-val,
.cm-c-row a {
  color: #ffffff;
  text-decoration: none;
  transition: color .2s;
}
.cm-c-row a:hover {
  color: var(--color-tertiary);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cm-connected__grid,
  .cm-thinking__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .cm-perspective__grid,
  .cm-bow__grid,
  .cm-faq__grid,
  .cm-cta__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cm-service-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cm-work__table-head {
    display: none;
  }
  .cm-work__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cm-contact-card {
    border-left: none;
    border-top: 1px solid var(--line-on-dark);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .cm-connected__grid,
  .cm-thinking__steps {
    grid-template-columns: 1fr;
  }
  .cm-c-row {
    flex-direction: column;
    gap: 4px;
  }
}
