/*
 * Kosh page system — the layout of the service and audience pages (capabilities/*, agencies, businesses),
 * first built for /capabilities/performance-marketing/ (Oct 2026 design). Pages link it via $meta['css'].
 * Layout only: colours, fonts and type sizes come from design-system.css tokens
 * (on inner pages --color-secondary is the brighter maroon from inner-bright.css).
 * Motion lives in assets/js/modules/page-motion.js. Component catalogue: see "COMPONENTS" comments below.
 */

/* ── REVEAL ANIMATION ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.rv.in { opacity: 1 !important; transform: none !important; }
.rv.d1 { transition-delay: .10s; }
.rv.d2 { transition-delay: .20s; }
.rv.d3 { transition-delay: .30s; }
.rv.d4 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
}

/* The whole page sits on the warm tint; sections stay transparent so inner-compact.js
   doesn't turn them into colour bands */
.page-main:has(> .kp-hero) { background: var(--bg-tint); }
/* Body copy, card descriptions, captions: all in ink on these pages (client request — no grey text).
   Dark bands keep their own light text colours. */
.page-main:has(> .kp-hero) { --text-secondary: var(--text-primary); --text-tertiary: var(--text-primary); --fw-body: 400; font-weight: 400; }   /* regular, not light */


/* ── SHARED ── */
.kp-section { padding: var(--section-y) 0; }

.kp-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 8px;
  margin-bottom: 26px;
  background: linear-gradient(var(--color-secondary), var(--color-secondary)) 0 100% / 100% 2px no-repeat;
}

.kp-hl { font-size: var(--fs-h2); }

.kp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.kp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.kp-head__aside {
  max-width: 330px;
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}

.kp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(var(--color-secondary), var(--color-secondary)) 0 100% / 100% 2px no-repeat;
  transition: gap .35s var(--ease), color .3s;
}
.kp-link svg { width: 13px; height: 13px; }
.kp-link:hover { gap: 14px; color: var(--color-secondary); }

/* Round arrow button (services, results, testimonial arrows) */
.kp-circle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 18, 16, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.kp-circle svg { width: 13px; height: 13px; }
button.kp-circle:hover,
a:hover > .kp-circle {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

/* Buttons: design-system .btn with this page's colours */
.kp-btn-red { background: var(--color-secondary); border-color: var(--color-secondary); }
.kp-btn-red:hover { background: #fff; border-color: #fff; color: var(--text-primary); }
.kp-btn-outline { margin-top: 30px; }
.kp-btn-gap { margin-top: 30px; }   /* a button under copy in a section */
/* On light sections a white hover would vanish: the solid buttons go ink instead */
.kp-section .kp-btn-red:not(.kp-dark .kp-btn-red):hover { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.kp-btn-white:hover { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }


/* ══ 01. HERO ══ */
.kp-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark-2);
  padding: clamp(64px, 8vw, 110px) 0 clamp(64px, 7.5vw, 104px);
}
.kp-hero__art { position: absolute; inset: 0; pointer-events: none; }
.kp-hero__watermark {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-38%);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(90px, 10.5vw, 165px);
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 861px) {
  /* desktop: sits low beside the hero paragraph and ends on the content edge, in line with the header
     button (hero bottom padding + part of the actions row below the paragraph) */
  .kp-hero__watermark { top: auto; right: var(--pad); bottom: calc(clamp(64px, 7.5vw, 104px) + 44px - .2em); transform: none; }
}
/* Two-word watermarks ("Performance Marketing"): smaller so the whole phrase fits; two lines on phones */
.kp-hero__watermark--long { font-size: clamp(64px, 8.2vw, 136px); }
@media (max-width: 860px) {
  .kp-hero__watermark--long { white-space: normal; font-size: 15vw; line-height: .95; text-align: right; }
}
.kp-hero__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.kp-hero__copy { max-width: 640px; }
.kp-hero__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
  margin-bottom: 22px;
}
.kp-hero .kp-hero__hl {
  font-size: clamp(46px, 5.6vw, 84px);
  line-height: 1.04;
  color: #fff;
}
.kp-hero .kp-hero__hl em { color: var(--color-secondary); }   /* brand maroon, a shade brighter so it reads on the dark hero (same as the button) */
.kp-hero__body {
  max-width: 500px;
  margin-top: 30px;
  font-size: var(--fs-body);
  color: var(--text-on-dark-2);
}
.kp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 40px;
}
.kp-hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-caption);
  color: #fff;
  transition: color .3s;
}
.kp-hero__play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  transition: background .3s, color .3s;
}
.kp-hero__play svg { width: 14px; height: 14px; margin-left: 2px; }
.kp-hero__watch:hover .kp-hero__play { background: #fff; color: var(--text-primary); }
.kp-hero__badge {
  flex: none;
  margin-top: 6px;
  padding-left: 16px;
  border-left: 2px solid var(--color-secondary);
  font-size: 10px;
  font-weight: var(--fw-medium);
  line-height: 1.8;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
}


/* ══ 02. NUMBERS ══ */
.kp-stats { padding: clamp(36px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.kp-stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
}
.kp-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 28px;
  border-left: 1px solid var(--line);
}
.kp-stat:first-child { padding-left: 0; border-left: 0; }
.kp-stat__n {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  color: var(--text-primary);
}
.kp-stat__label { font-size: 13px; color: var(--text-secondary); }
.kp-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.kp-trust__text {
  font-size: 9px;
  font-weight: var(--fw-medium);
  line-height: 1.7;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.kp-trust__faces { display: flex; align-items: center; }
.kp-trust__faces img,
.kp-trust__plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-tint);
  object-fit: cover;
}
.kp-trust__faces > * + * { margin-left: -10px; }
.kp-trust__plus {
  display: grid;
  place-items: center;
  background: var(--color-secondary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}


/* ══ 03. WHY KOSH MEDIA ══ */
.kp-why .kp-split { align-items: center; }
.kp-why__hl { font-size: clamp(42px, 4.8vw, 68px); line-height: 1.04; }
.kp-why__side { max-width: 440px; justify-self: end; }
.kp-why__side p { color: var(--text-secondary); }


/* ══ 04. OUR SERVICES ══ */
.kp-services { padding-top: 0; }
.kp-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.kp-svc {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 26px;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.kp-svc:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.kp-svc:nth-child(3n + 1) { padding-left: 0; }
.kp-svc:hover { background: rgba(255, 255, 255, .6); }
.kp-svc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(20, 18, 16, .25);
  color: var(--color-secondary);
}
.kp-svc__icon svg { width: 22px; height: 22px; }
.kp-svc__icon--linkedin-brand svg { width: 26px; height: 26px; border-radius: 4px; }
.kp-svc__icon--creative { background: var(--color-secondary-soft); box-shadow: none; }
.kp-svc__text { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kp-svc__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: 1.35;
}
.kp-svc__body { font-size: var(--fs-body); line-height: 1.6; color: var(--text-tertiary); }
.kp-svc .kp-circle { margin-top: 4px; }


/* ══ 05. OUR PROCESS ══ */
/* Painted as an image, not a background colour: inner-compact.js would recolour a tinted section */
.kp-process, .kp-band { background-image: linear-gradient(var(--bg-sand), var(--bg-sand)); }
/* Heading on top, then the steps as a timeline: a hairline that fills maroon as you scroll
   (--kp-line, set by page-motion.js), a dot per step that lights up, and each step on a white card */
.kp-process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
}
.kp-process__grid > :first-child { max-width: none; }   /* room for a one-line heading */
.kp-process__grid > :first-child p { max-width: 640px; }
.kp-steps {
  --kp-line: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 34px 0 0;
  display: grid;
  grid-auto-flow: column;           /* any number of steps sit in one row */
  grid-auto-columns: minmax(0, 1fr);
  gap: 18px;
}
.kp-steps::before,
.kp-steps::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(20, 18, 16, .16);
}
.kp-steps::after {
  height: 2px;
  top: 5.5px;
  background: var(--color-secondary);
  transform: scaleX(var(--kp-line));
  transform-origin: 0 50%;
}
.kp-step {
  position: relative;
  padding: 30px 26px 32px;
  background: #fff;
  border-radius: var(--radius-img);
  box-shadow: 0 22px 44px -30px rgba(20, 18, 16, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* the step's dot on the timeline */
.kp-step::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 26px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-sand);
  border: 2px solid rgba(20, 18, 16, .3);
  z-index: 1;
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.kp-step.is-on::before { background: var(--color-secondary); border-color: var(--color-secondary); transform: scale(1.15); }
/* maroon rule across the top of the card on hover */
.kp-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-img) var(--radius-img) 0 0;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.kp-step:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(20, 18, 16, .42); }
.kp-step:hover::after { transform: scaleX(1); }
.kp-step__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1;
  color: var(--color-secondary);
  margin-bottom: 22px;
}
.kp-step__arrow { display: none; }   /* the timeline carries the sequence now */
.kp-step .kp-step__title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.kp-step__body { font-size: var(--fs-body); line-height: 1.65; color: var(--text-tertiary); }


/* Desktop: the steps are a row of fixed-width cards wider than the page, slid sideways by the scroll
   (page-motion.js), like the reference "Creative Stack" testimonial row */
@media (min-width: 861px) {
  .kp-process { overflow: hidden; }
  /* no timeline line or dots above the cards on desktop; card titles on one line */
  .kp-steps::before, .kp-steps::after, .kp-step::before { display: none; }
  .kp-step .kp-step__title { white-space: nowrap; }
  .kp-steps {
    padding-top: 0;
    width: max-content;
    grid-auto-columns: clamp(300px, 27vw, 380px);
    gap: 24px;
    will-change: transform;
  }
}


/* ══ 06. CAMPAIGN RESULTS ══ */
.kp-results__aside { max-width: 380px; }
.kp-results__aside .kp-action { margin-top: 24px; }

/* Pinned horizontal row (after the reference "services-wellness" page): on desktop the stage sticks under
   the header and the cards slide sideways while the page scrolls (page-motion.js sizes the wrapper) */
.kp-hscroll { position: relative; margin-top: clamp(40px, 5vw, 64px); }
/* placed inside a .container: break out to the full window width (the track keeps content on the grid) */
.container .kp-hscroll { width: 100vw; margin-left: calc(50% - 50vw); }
/* cards too tall to pin under the header: a plain sideways-scrolling row instead */
.kp-hscroll.is-native .kp-hscroll__stage { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.kp-hscroll.is-native .kp-feature { scroll-snap-align: center; }
.kp-hscroll__stage { overflow: hidden; }
.kp-hscroll.is-pinned .kp-hscroll__stage { position: sticky; }   /* top is set by page-motion.js */
.kp-hscroll__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}
.kp-feature {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1080px, 80vw);
  min-height: clamp(440px, 64vh, 580px);   /* grows with longer content */
  border-radius: 5px;
  overflow: hidden;   /* the photo and the panel follow the rounded corners */
}
.kp-feature__media { position: relative; overflow: hidden; background: var(--bg-sand); }
.kp-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }   /* absolute: a portrait photo never stretches the card */
.kp-feature__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.2vw, 48px);
  background: #F3E4E0;                    /* blush, steel and sand panels in turn */
}
.kp-feature:nth-child(3n + 2) .kp-feature__panel { background: #E3E9F0; }
.kp-feature:nth-child(3n) .kp-feature__panel { background: #ECE5DA; }
.kp-feature__tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.kp-feature__n {
  margin-top: 22px;
  font-family: var(--font-heading);
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--color-secondary);
}
.kp-feature .kp-feature__title {
  margin-top: 14px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15;
  color: var(--text-primary);
}
.kp-feature__panel > :first-child { margin-top: 0; }
.kp-feature__body { margin-top: 16px; max-width: 420px; font-size: var(--fs-body); line-height: 1.65; color: var(--text-primary); }
.kp-feature__tags { margin-top: 14px; max-width: 420px; font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--text-primary); opacity: .75; }
/* rich content inside a card panel: lists, small labels, inline links */
.kp-feature__body ul, .kp-feature__list { list-style: none; margin: 14px 0 0; padding: 0; }
.kp-feature__body li, .kp-feature__list li { position: relative; padding: 5px 0 5px 20px; font-size: var(--fs-body); line-height: 1.5; }
.kp-feature__body li::before, .kp-feature__list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 10px; height: 1px; background: var(--color-secondary); }
.kp-feature__label { display: block; margin-top: 18px; font-size: 11px; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase; color: var(--color-secondary); }
.kp-feature__panel a:not(.kp-action) { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
/* cards inside a dark band keep their light panels: ink text, maroon emphasis */
.kp-dark .kp-feature__panel :is(p, li, strong, h3, .kp-feature__title, .kp-feature__body, .kp-feature__tags) { color: var(--text-primary); }
.kp-dark .kp-feature__panel em { color: var(--color-secondary); }
.kp-dark .kp-feature__panel .kp-feature__n, .kp-dark .kp-feature__panel .kp-feature__label { color: var(--color-secondary); }
.kp-feature .kp-action { margin-top: auto; }
.kp-feature__panel > .kp-action { position: relative; top: 0; }
.kp-feature__panel { gap: 0; }
.kp-feature__panel > :nth-last-child(2) { margin-bottom: 28px; }   /* room above the button */


/* Action button (the reference "Discover More" button): on hover the label rolls up, the colours invert and
   it presses in. Sharp corners, label only.
   The class name avoids the words "btn" and "cta": reset.css paints any such link maroon on hover with !important. */
.kp-action {
  --kp-adv-bg: #fff;
  --kp-adv-fg: var(--text-primary);
  --kp-adv-ease: cubic-bezier(.25, .45, .4, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: var(--btn-radius);
  background: var(--kp-adv-bg);
  color: var(--kp-adv-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  transition: background .4s var(--kp-adv-ease), color .4s var(--kp-adv-ease), transform .4s var(--kp-adv-ease);
}
.kp-action--ink { --kp-adv-bg: var(--text-primary); --kp-adv-fg: #fff; }
.kp-action:hover { --kp-adv-bg: var(--text-primary); --kp-adv-fg: #fff; transform: scale(.975); }
.kp-action--ink:hover { --kp-adv-bg: var(--color-secondary); }
.kp-action__text { position: relative; display: flex; overflow: hidden; padding-inline-end: .075em; }
.kp-action__text > span { transition: transform .4s var(--kp-adv-ease); }
.kp-action__text > span::after {
  content: attr(data-content);
  position: absolute;
  left: 0;
  bottom: -120%;
  transition: transform .4s var(--kp-adv-ease);
}
.kp-action:hover .kp-action__text > span { transform: translateY(-100%); }
.kp-action:hover .kp-action__text > span::after { transform: translateY(-20%); }


/* ══ 07. TESTIMONIALS ══ */
.kp-testi { padding-top: 0; }
.kp-testi__box { position: relative; padding-top: 4px; min-height: 180px; }
.kp-testi__nav { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.kp-testi__nav .kp-circle { width: 30px; height: 30px; }
.kp-quote { margin: 0; padding: 18px 90px 0 0; }
.kp-quote[hidden] { display: none; }
.kp-quote.is-active { animation: kp-fade .5s var(--ease); }
@keyframes kp-fade { from { opacity: 0; transform: translateY(8px); } }
.kp-quote__mark { float: left; width: 26px; height: 20px; margin: 4px 18px 0 0; color: var(--color-secondary); }
.kp-quote__text {
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-secondary);
}
.kp-quote__by {
  clear: both;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0 0 44px;
}
.kp-quote__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.kp-quote__by > span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-tertiary); }
.kp-quote__by strong { font-size: 13px; }


/* ══ 08. FAQS ══ */
.kp-testi + .kp-faq { padding-top: 0; }   /* flush only when it follows the testimonial, as on the reference page */
.kp-faq__list { background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
.kp-faq-item + .kp-faq-item { border-top: 1px solid var(--line); }
.kp-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .3s;
}
.kp-faq-q:hover, .kp-faq-item.open .kp-faq-q { color: var(--text-primary); }
.kp-faq-icon { flex: none; display: inline-flex; color: var(--text-primary); transition: transform .4s var(--ease), color .3s; }
.kp-faq-icon svg { width: 14px; height: 14px; }
.kp-faq-item.open .kp-faq-icon { transform: rotate(45deg); color: var(--color-secondary); }
.kp-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.kp-faq-a > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 18px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-tertiary);
}
.kp-faq-item.open .kp-faq-a { grid-template-rows: 1fr; }
.kp-faq-item.open .kp-faq-a > p { padding-bottom: 18px; }


/* ══ 09. FINAL CTA ══ */
/* data-dark gives it the dark background colour on inner pages; the maroon gradient is painted over it */
.kp-final {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 80px) 0;
  background-image:
    radial-gradient(120% 140% at 85% 0%, rgba(111, 0, 0, .5) 0%, rgba(111, 0, 0, 0) 60%),
    linear-gradient(100deg, var(--color-secondary-deep) 0%, var(--color-secondary) 55%, var(--color-secondary) 100%);
  color: var(--text-on-dark-2);
}
.kp-final__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.kp-final__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 18px;
}
.kp-final .kp-final__hl { font-size: clamp(32px, 3.4vw, 48px); color: #fff; }
.kp-final__side p { max-width: 420px; font-size: var(--fs-body); color: rgba(255, 255, 255, .85); }
.kp-final__side .btn { margin-top: 22px; }

/* ══ SCHEDULE A CALL — slim band under the hero: heading left, Calendly button right ══ */
.kp-book { padding: clamp(28px, 3.5vw, 44px) 0; }
.kp-book__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.kp-book .kp-final__eyebrow { margin-bottom: 10px; }
/* Own class, not .kp-final__hl, so the heading doesn't get the scroll drift (page-motion.js) */
.kp-book__hl { font-size: clamp(24px, 2.4vw, 34px); color: #fff; }

/* ══ MORE COMPONENTS (for pages whose content isn't shaped like performance marketing) ══ */

/* Points strip — like the numbers strip, but a short title + line per item (e.g. hero pillars) */
.kp-points { padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.kp-points__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.kp-point { padding: 4px 28px; border-left: 1px solid var(--line); }
.kp-point:first-child { padding-left: 0; border-left: 0; }
.kp-point .kp-point__title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-primary);
}
.kp-point__body { font-size: var(--fs-body); line-height: 1.6; color: var(--text-tertiary); }

/* Card grid variants: .kp-svc cards with a number instead of an icon, plain (non-link) cards, 2 or 4 columns */
.kp-svc__num {
  flex: none;
  min-width: 34px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  color: var(--color-secondary);
}
div.kp-svc:hover, article.kp-svc:hover { background: none; }
.kp-svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kp-svc-grid--2 .kp-svc:nth-child(n) { padding-left: 26px; border-right: 0; }
.kp-svc-grid--2 .kp-svc:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
.kp-svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp-svc-grid--4 .kp-svc:nth-child(n) { padding-left: 22px; border-right: 1px solid var(--line); }
.kp-svc-grid--4 .kp-svc:nth-child(4n + 1) { padding-left: 0; }
.kp-svc-grid--4 .kp-svc:nth-child(4n) { border-right: 0; }
.kp-svc-grid--stack .kp-svc { flex-direction: column; gap: 14px; }   /* number/icon above the text */

/* Rows — numbered list rows: number | title | description | tags */
.kp-rows { border-top: 1px solid var(--line); }
.kp-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr);
  gap: 12px 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.kp-row--3 { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr); }   /* no tags column */
.kp-row__num { font-family: var(--font-heading); font-size: 22px; line-height: 1; color: var(--color-secondary); }
.kp-row .kp-row__title { font-size: var(--fs-h4); line-height: 1.25; }
.kp-row__desc { font-size: var(--fs-body); line-height: 1.7; color: var(--text-secondary); }
.kp-row__tags { font-size: 12px; line-height: 1.7; color: var(--text-tertiary); text-align: right; }

/* Dark band — one per page at most, like the hero (data-dark keeps it dark on inner pages) */
.kp-dark { background: var(--bg-dark); color: var(--text-on-dark-2); }
.kp-dark .kp-kicker, .kp-dark .kp-hl, .kp-dark h2, .kp-dark h3,
.kp-dark .kp-svc__title, .kp-dark .kp-row__title, .kp-dark .kp-step__title, .kp-dark .kp-point__title { color: #fff; }
.kp-dark p, .kp-dark .kp-svc__body, .kp-dark .kp-row__desc, .kp-dark .kp-step__body,
.kp-dark .kp-head__aside, .kp-dark .kp-point__body, .kp-dark .kp-row__tags { color: var(--text-on-dark-3); }
.kp-dark .kp-svc-grid, .kp-dark .kp-svc, .kp-dark .kp-rows, .kp-dark .kp-row,
.kp-dark .kp-points, .kp-dark .kp-point, .kp-dark .kp-list li { border-color: var(--line-on-dark) !important; }
.kp-dark .kp-svc__num, .kp-dark .kp-row__num, .kp-dark .kp-step__num { color: var(--color-tertiary); }
.kp-dark a.kp-svc:hover { background: rgba(255, 255, 255, .04); }
.kp-dark .kp-circle { border-color: rgba(255, 255, 255, .35); color: #fff; }
.kp-dark .kp-link { color: #fff; }

/* Statement — one big quote or line, with its source */
.kp-statement { max-width: 920px; }
.kp-statement__mark { display: block; width: 34px; height: 26px; margin-bottom: 26px; color: var(--color-secondary); }
.kp-statement__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.kp-statement__text em { font-style: italic; color: var(--color-secondary); }
.kp-statement__by {
  display: block;
  margin-top: 26px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Pair — two short blocks side by side, split by a hairline */
.kp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.kp-pair__item { padding: 40px 48px 8px 0; }
.kp-pair__item + .kp-pair__item { padding: 40px 0 8px 48px; border-left: 1px solid var(--line); }
.kp-pair__item p { margin-top: 18px; max-width: 460px; color: var(--text-secondary); }

/* List — short points with a maroon dash, optionally in two columns */
.kp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kp-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.kp-list li::before { content: ''; position: absolute; left: 0; top: 1.55em; width: 14px; height: 2px; background: var(--color-secondary); }
.kp-list strong { color: var(--text-primary); }
.kp-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* Media — a photo block that opens from a mask as it scrolls in (page-motion.js) */
.kp-media { position: relative; overflow: hidden; border-radius: var(--radius-img); aspect-ratio: 16 / 10; background: var(--bg-sand); }
.kp-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--kp-py, 0%), 0) scale(calc(var(--kp-zoom, 1) * 1.14)); }

/* Plain body copy block inside a split (lead paragraph + more) */
.kp-copy > * + * { margin-top: 18px; }
.kp-copy p { color: var(--text-secondary); }
.kp-copy .kp-lead { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--text-primary); }

/* Final CTA: small contact rows under the button */
.kp-final__list { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.kp-final__list span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.kp-final__list a, .kp-final__list strong { display: block; margin-top: 4px; font-size: var(--fs-caption); font-weight: 400; color: #fff; }
.kp-final__list a:hover { color: var(--color-tertiary); }

/* Copy blocks, lists and emphasis inside the dark band (these components set their own light-mode colours above) */
.kp-dark .kp-copy p, .kp-dark .kp-list li, .kp-dark .kp-pair__item p { color: var(--text-on-dark-2); }
.kp-dark .kp-pair, .kp-dark .kp-pair__item, .kp-dark .kp-list { border-color: var(--line-on-dark) !important; }
.kp-dark .kp-copy .kp-lead, .kp-dark .kp-list strong { color: #fff; }
.kp-dark em { color: var(--color-tertiary); }
.kp-final em { color: #fff; }   /* italic white on the red band (maroon would vanish) */
.kp-hero strong, .kp-dark strong, .kp-final strong { color: #fff; }
.kp-dark .kp-statement__text, .kp-dark .kp-stat__n { color: #fff; }
.kp-dark .kp-stat__label, .kp-dark .kp-statement__by { color: var(--text-on-dark-3); }

/* Hero without a badge, or with points under the copy, keeps the same rhythm */
.kp-hero__copy--wide { max-width: 760px; }


/* ══ MOTION (modules/page-motion.js, after the reference "Creative Stack") ══ */
/* Curtain: covers the page at first paint and lifts off; .kp-curtain rises again before leaving */
@media (prefers-reduced-motion: no-preference) {
  body:has(.kp-hero)::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--color-secondary);
    transform-origin: 50% 100%;
    animation: kp-curtain-off .95s .05s cubic-bezier(.76, 0, .24, 1) forwards;
    pointer-events: none;
  }
}
@keyframes kp-curtain-off { to { transform: scaleY(0); } }
.kp-curtain {
  position: fixed;
  inset: 0;
  z-index: 2001;
  background: var(--color-secondary);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  pointer-events: none;
}

/* Rolling button labels */
.kp-roll { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0; margin: -.12em 0; }
.kp-roll__in { display: inline-block; position: relative; transition: transform .55s var(--ease); }
.kp-roll__in::after { content: attr(data-text); position: absolute; left: 0; top: calc(100% + .12em); }
a:hover .kp-roll__in { transform: translateY(calc(-100% - .12em)); }

/* Arrow circles: the arrow slides out and comes back in */
.kp-circle { overflow: hidden; }
@keyframes kp-arrow-loop {
  45% { transform: translateX(140%); opacity: 0; }
  55% { transform: translateX(-140%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
button.kp-circle:hover svg, a:hover > .kp-circle svg { animation: kp-arrow-loop .6s var(--ease); }



/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .kp-stats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .kp-trust { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .kp-process__grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .kp-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-svc:nth-child(n) { padding-left: 22px; border-right: 0; }
  .kp-svc:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .kp-hero__inner { flex-direction: column-reverse; gap: 28px; }
  .kp-hero__watermark { top: auto; right: 4vw; bottom: 8%; transform: none; }   /* fully on screen on phones */
  .kp-split, .kp-final__grid { grid-template-columns: 1fr; }
  .kp-why__side { justify-self: start; }
  .kp-head { flex-direction: column; align-items: flex-start; gap: 18px; }

  .kp-stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-stat { padding: 0 0 0 20px; }
  .kp-stat:nth-child(odd) { padding-left: 0; border-left: 0; }

  .kp-svc-grid { grid-template-columns: 1fr; }
  .kp-svc:nth-child(n) { padding: 22px 0; border-right: 0; }

  /* phones: the timeline runs down the left */
  .kp-steps { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 0 0 30px; }   /* one step per row (the base rule flows steps into columns) */
  .kp-steps::before, .kp-steps::after { display: block; top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .kp-steps::after { width: 2px; left: 5.5px; transform: scaleY(var(--kp-line)); transform-origin: 50% 0; }
  .kp-step { padding: 24px 22px 26px; }
  .kp-step::before { display: block; top: 28px; left: -30px; }
  .kp-step__num { font-size: 32px; margin-bottom: 14px; }

  /* Feature cards stack on phones (no pinned row) */
  .kp-hscroll__track { display: grid; width: auto; gap: 16px; padding: 0 var(--gutter); }
  .kp-feature { width: auto; height: auto; grid-template-columns: 1fr; }
  .kp-feature__media { aspect-ratio: 4 / 3; }
  .kp-feature__panel { min-height: 300px; }
  .kp-feature .kp-action { margin-top: 28px; }
  .kp-results__aside { max-width: none; }

  .kp-quote { padding-right: 0; padding-top: 52px; }
}

/* More components — tablet and phone */
@media (max-width: 960px) {
  .kp-svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-svc-grid--4 .kp-svc:nth-child(n) { padding-left: 22px; border-right: 0; }
  .kp-svc-grid--4 .kp-svc:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .kp-row { grid-template-columns: 48px minmax(0, 1fr); }
  .kp-row__desc, .kp-row__tags { grid-column: 2; }
  .kp-row__tags { text-align: left; }
}
@media (max-width: 860px) {
  .kp-points__row { grid-auto-flow: row; grid-template-columns: 1fr; }
  .kp-point:nth-child(n) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .kp-point:first-child { padding-top: 0; border-top: 0; }
  .kp-svc-grid--2, .kp-svc-grid--4 { grid-template-columns: 1fr; }
  .kp-svc-grid--2 .kp-svc:nth-child(n), .kp-svc-grid--4 .kp-svc:nth-child(n) { padding: 22px 0; border-right: 0; }
  .kp-pair { grid-template-columns: 1fr; }
  .kp-pair__item:nth-child(n) { padding: 32px 0 8px; border-left: 0; }
  .kp-pair__item + .kp-pair__item { border-top: 1px solid var(--line); }
  .kp-list--2 { grid-template-columns: 1fr; }
  .kp-final__list { grid-template-columns: 1fr; }
}
