/* ==========================================================================
   Page Styles — Agency Partnerships (/agencies/)
   Luxury editorial aesthetic for Kosh Media white-label agency partnerships.
   ========================================================================== */

/* Reading progress bar */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999;
  pointer-events: none;
}
.prog-fill {
  height: 100%;
  width: 0;
  background: var(--cr, var(--color-secondary));
  transition: width 0.1s linear;
}

/* Ensure hero content is immediately visible */
.ap-hero .rv {
  opacity: 1 !important;
  transform: none !important;
}

/* Section primitives */
.ap-section {
  padding: clamp(72px, 8vw, 120px) 0;
  position: relative;
  border-bottom: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
}
.ap-section--sand {
  background: var(--snd, #F0EDE8);
}
.ap-section--white {
  background: var(--wh, #FFFFFF);
}
.ap-section--dark {
  background: var(--dk, #141210);
  color: var(--wh, #FFFFFF);
  border-bottom-color: rgba(247, 246, 243, 0.08);
}

/* Eyebrows */
.eyebrow {
  display: inline-block;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cr, var(--color-secondary));
  margin-bottom: 16px;
}
.eyebrow--blush {
  color: var(--rs, #C4938A);
}

/* Typography tokens */
.ap-section__header {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ap-section__hl {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink, #141210);
  margin: 0 0 16px;
}
.ap-section__hl em {
  font-style: italic;
  color: var(--cr, var(--color-secondary));
}
.ap-section__hl--light {
  color: var(--wh, #FFFFFF);
}
.ap-section__hl--light em {
  color: var(--rs, #C4938A);
}
.ap-section__lead {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.68;
  color: var(--mid, var(--text-tertiary));
  margin: 0 0 12px;
}
.ap-section__sublead {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cr, var(--color-secondary));
  color: var(--wh, #FFFFFF) !important;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  border: 1px solid var(--cr, var(--color-secondary));
  text-decoration: none;
  transition: all 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.btn-primary:hover {
  background: #500000;
  border-color: #500000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(111, 0, 0, 0.22);
}
.btn-primary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   01. HERO
══════════════════════════════════════════════ */
.ap-hero {
  background: var(--bg-page, #FDFCFB);
  padding: clamp(96px, 12vw, 140px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
}
.ap-hero__bg-word {
  position: absolute;
  right: -20px;
  top: 8%;
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(140px, 24vw, 360px);
  color: rgba(20, 18, 16, 0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ap-hero__content {
  max-width: 840px;
  margin-bottom: clamp(48px, 6vw, 72px);
  position: relative;
  z-index: 2;
}
.ap-hero__hl {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink, #141210);
  margin: 0 0 32px;
}
.ap-hero__hl em {
  font-style: italic;
  color: var(--cr, var(--color-secondary));
}
.ap-hero__action {
  margin-top: 12px;
}

/* Hero Pillars */
.ap-hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rul, rgba(20, 18, 16, 0.1));
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.1));
  position: relative;
  z-index: 2;
}
.ap-hero-pillar {
  background: var(--wh, #FFFFFF);
  padding: clamp(28px, 3.5vw, 40px) clamp(20px, 2.8vw, 32px);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}
.ap-hero-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cr, var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease, ease);
}
.ap-hero-pillar:hover {
  background: var(--snd, #F0EDE8);
}
.ap-hero-pillar:hover::before {
  transform: scaleX(1);
}
.ap-hero-pillar__title {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink, #141210);
  margin: 0 0 10px;
  line-height: 1.35;
}
.ap-hero-pillar__desc {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* ══════════════════════════════════════════════
   02. MORE WORK. MORE CAPABILITY.
══════════════════════════════════════════════ */
.ap-scale__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ap-scale__lead {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 350;
  line-height: 1.5;
  color: var(--ink, #141210);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════
   03. SIMPLE. SEAMLESS. SILENT.
══════════════════════════════════════════════ */
.ap-model__pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(36px, 4vw, 56px);
}
.ap-process-card {
  background: var(--bg-page, #FAF8F5);
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.8vw, 34px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ap-process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 0, 0, 0.28);
  box-shadow: 0 14px 32px rgba(20, 18, 16, 0.05);
}
.ap-process-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.ap-process-card__num {
  font-family: var(--serif, Georgia, serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--cr, var(--color-secondary));
}
.ap-process-card__line {
  flex: 1;
  height: 1px;
  background: var(--rul, rgba(20, 18, 16, 0.12));
}
.ap-process-card__title {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #141210);
  margin: 0 0 12px;
}
.ap-process-card__desc {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* ══════════════════════════════════════════════
   04. WHAT WE CAN SUPPORT
══════════════════════════════════════════════ */
.ap-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.ap-support-card {
  background: var(--wh, #FFFFFF);
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
  padding: clamp(28px, 3.2vw, 40px) clamp(22px, 2.5vw, 32px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ap-support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cr, var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.ap-support-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 0, 0, 0.22);
  box-shadow: 0 12px 28px rgba(20, 18, 16, 0.04);
}
.ap-support-card:hover::before {
  transform: scaleX(1);
}
.ap-support-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ap-support-card__num {
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-style: italic;
  color: rgba(20, 18, 16, 0.3);
}
.ap-support-card__divider {
  flex: 1;
  height: 1px;
  background: var(--rul, rgba(20, 18, 16, 0.08));
}
.ap-support-card__title {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink, #141210);
  margin: 0 0 10px;
  line-height: 1.35;
}
.ap-support-card__desc {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* ══════════════════════════════════════════════
   05. HOW WE WORK (PRINCIPLES)
══════════════════════════════════════════════ */
.ap-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}
.ap-principle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ap-principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rs, #C4938A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.ap-principle-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 147, 138, 0.35);
  transform: translateY(-3px);
}
.ap-principle-card:hover::before {
  transform: scaleX(1);
}
.ap-principle-card__num {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(38px, 4.5vw, 54px);
  font-style: italic;
  font-weight: 300;
  color: var(--rs, #C4938A);
  display: block;
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.9;
}
.ap-principle-card__title {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wh, #FFFFFF);
  margin: 0;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════
   06. YOUR CLIENTS, WHEREVER THEY ARE (MARKETS)
══════════════════════════════════════════════ */
.ap-markets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.ap-market-card {
  background: var(--bg-page, #FAF8F5);
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
  padding: clamp(26px, 3vw, 36px) clamp(18px, 2.2vw, 26px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ap-market-card:hover {
  background: var(--snd, #F0EDE8);
  border-color: rgba(111, 0, 0, 0.25);
  transform: translateY(-3px);
}
.ap-market-card__tag {
  display: inline-block;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr, var(--color-secondary));
  margin-bottom: 14px;
}
.ap-market-card__title {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--ink, #141210);
  margin: 0 0 10px;
  line-height: 1.25;
}
.ap-market-card__desc {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* ══════════════════════════════════════════════
   07. IN PRACTICE (TESTIMONIAL)
══════════════════════════════════════════════ */
.ap-practice__content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.ap-practice__quote {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(26px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink, #141210);
  margin: 20px 0 24px;
  padding: 0;
}
.ap-practice__author {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr, var(--color-secondary));
}

/* ══════════════════════════════════════════════
   08. CONFIDENTIALITY & 09. CLIENT INVOLVEMENT
══════════════════════════════════════════════ */
.ap-terms__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
}
.ap-term-card {
  background: var(--bg-page, #FAF8F5);
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
  padding: clamp(36px, 4.5vw, 60px) clamp(28px, 3.5vw, 48px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ap-term-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 0, 0, 0.28);
  box-shadow: 0 16px 36px rgba(20, 18, 16, 0.05);
}
.ap-term-card__hl {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink, #141210);
  margin: 0 0 16px;
}
.ap-term-card__hl em {
  font-style: italic;
  color: var(--cr, var(--color-secondary));
}
.ap-term-card__desc {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  color: var(--mid, var(--text-tertiary));
  margin: 0;
}

/* ══════════════════════════════════════════════
   10. HAVE A PROJECT IN MIND? (FINAL CTA)
══════════════════════════════════════════════ */
.ap-cta {
  background: var(--bg-page, #FDFCFB);
  border-bottom: none;
}
.ap-cta__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.ap-cta__hl {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink, #141210);
  margin: 0 0 32px;
}
.ap-cta__hl em {
  font-style: italic;
  color: var(--cr, var(--color-secondary));
}
.ap-cta__contact-card {
  background: var(--wh, #FFFFFF);
  border: 1px solid var(--rul, rgba(20, 18, 16, 0.09));
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(20, 18, 16, 0.04);
}
.ap-cta__contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--rul, rgba(20, 18, 16, 0.08));
  gap: 16px;
}
.ap-cta__contact-row:first-child {
  border-top: none;
  padding-top: 0;
}
.ap-cta__contact-row:last-child {
  padding-bottom: 0;
}
.ap-cta__contact-label {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid, var(--text-tertiary));
  font-weight: 500;
}
.ap-cta__contact-value {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  color: var(--ink, #141210);
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: right;
}
a.ap-cta__contact-value:hover {
  color: var(--cr, var(--color-secondary));
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
══════════════════════════════════════════════ */
@media (max-width: 980px) {
  .ap-hero__pillars,
  .ap-support__grid,
  .ap-principles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-markets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-scale__grid,
  .ap-cta__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .ap-hero__pillars,
  .ap-model__pipeline,
  .ap-support__grid,
  .ap-principles__grid,
  .ap-markets__grid,
  .ap-terms__grid {
    grid-template-columns: 1fr;
  }
  .ap-section {
    padding: 64px 0;
  }
  .ap-hero {
    padding: 80px 0 48px;
  }
}
