/* layout:ridge — enqueue only when cilingir_layout=ridge */

/* ——— ridge: Çayyolu — diagonal ridge hero + angled service rows ——— */
@property --cp-ridge-edge {
  syntax: "<length>";
  inherits: true;
  initial-value: 0.3rem;
}

body.cp-layout-ridge {
  --cp-ridge-ink: color-mix(in srgb, var(--cp-primary, #09090b) 96%, #000);
  --cp-ridge-ink-lift: color-mix(in srgb, var(--cp-primary, #09090b) 84%, #52525b);
  --cp-ridge-cyan: var(--cp-accent, #22d3ee);
  --cp-ridge-cyan-deep: color-mix(in srgb, var(--cp-ridge-cyan) 58%, var(--cp-ridge-ink));
  --cp-ridge-paper: color-mix(in srgb, var(--cp-ridge-cyan) 3%, #fafafa);
  --cp-ridge-paper-deep: color-mix(in srgb, var(--cp-ridge-cyan) 7%, #f1f2f3);
  --cp-ridge-slab: color-mix(in srgb, var(--cp-ridge-ink) 8%, #fff);
  --cp-ridge-muted: color-mix(in srgb, var(--cp-ridge-ink) 64%, #a1a1aa);
  --cp-ridge-soft: color-mix(in srgb, #fafafa 80%, var(--cp-ridge-ink));
  --cp-ridge-line: color-mix(in srgb, var(--cp-ridge-ink) 14%, #e4e4e7);
  --cp-ridge-radius: 3px;
  --cp-ridge-lean: 0.95rem;
  --cp-ridge-display: "Barlow Condensed", "Bahnschrift", "DIN Condensed", "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --cp-ridge-sans: "Figtree", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --cp-font-display: var(--cp-ridge-display);
  --cp-font-body: var(--cp-ridge-sans);
  color: var(--cp-ridge-ink);
  background: var(--cp-ridge-paper);
  font-family: var(--cp-ridge-sans);
}

/*
 * Hero: photo is full-bleed in grid cell 1/1; a carbon plane (same cell, clip-path) covers the lower-left
 * and meets the photo along one sharp diagonal seam. Cyan sliver sits just above the seam.
 * Mobile: ~18deg seam, high plane start so the photo owns the upper portion; desktop: ~12deg.
 */
body.cp-layout-ridge .cp-hero--ridge {
  --cp-ridge-tan: 0.3249;
  /* Taller photo wedge on mobile so the lock reads above the seam. */
  --cp-ridge-y0: 18rem;
  --cp-ridge-y1: calc(var(--cp-ridge-y0) + 100vw * var(--cp-ridge-tan));
  --cp-ridge-reach: 100vw;
  --cp-ridge-edge-w: 0.3rem;
  display: grid;
  grid-template: minmax(40rem, auto) / minmax(0, 1fr);
  background: var(--cp-ridge-ink);
  color: #fafafa;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__stage,
body.cp-layout-ridge .cp-hero--ridge .cp-hero__content {
  grid-area: 1 / 1;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  background: var(--cp-ridge-ink);
}

/* Cyan ridge line: same wedge as the plane, lifted a hair so only a diagonal sliver shows. */
body.cp-layout-ridge .cp-hero--ridge .cp-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--cp-ridge-cyan);
  clip-path: polygon(
    0 calc(var(--cp-ridge-y0) - var(--cp-ridge-edge-w)),
    100% calc(var(--cp-ridge-y1) - var(--cp-ridge-edge-w)),
    100% 100%,
    0 100%
  );
  pointer-events: none;
  animation: cp-ridge-edge 0.8s cubic-bezier(0.22, 0.9, 0.24, 1) 0.05s backwards;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  /* Keep lock/key in the upper photo wedge above the ridge seam. */
  object-position: center 18%;
  filter: brightness(1.08) contrast(1.05);
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__brand {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  color: #fafafa;
  text-align: right;
}

/* The ridge plane. Top padding clears the seam at the right edge of the copy column. */
body.cp-layout-ridge .cp-hero--ridge .cp-hero__content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  align-content: end;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Bottom padding clears the mobile float dock (~5rem). */
  padding: calc(var(--cp-ridge-y0) + var(--cp-ridge-reach) * var(--cp-ridge-tan) + 1.1rem) 1.1rem 5.25rem 1.1rem;
  border: 0;
  background: var(--cp-ridge-ink-lift);
  clip-path: polygon(0 var(--cp-ridge-y0), 100% var(--cp-ridge-y1), 100% 100%, 0 100%);
  animation: cp-ridge-plane 0.95s cubic-bezier(0.22, 0.9, 0.24, 1) 0.1s backwards;
}

/* Second, darker facet parallel to the seam — a stepped ridge, no glow. */
body.cp-layout-ridge .cp-hero--ridge .cp-hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cp-ridge-ink);
  clip-path: polygon(
    0 calc(var(--cp-ridge-y0) + 1.9rem),
    100% calc(var(--cp-ridge-y1) + 1.9rem),
    100% 100%,
    0 100%
  );
  pointer-events: none;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__eyebrow,
body.cp-layout-ridge .cp-hero--ridge .cp-hero__title,
body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede,
body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta {
  animation: cp-ridge-text 0.65s cubic-bezier(0.22, 0.9, 0.24, 1) backwards;
}

/* Brand: hero-level, taut condensed wordmark in cyan. */
body.cp-layout-ridge .cp-hero--ridge .cp-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cp-ridge-cyan);
  font-family: var(--cp-ridge-display);
  font-size: clamp(2.7rem, 13.2vw, 3.6rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-transform: none;
  overflow-wrap: anywhere;
  animation-delay: 0.5s;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__title {
  max-width: 24ch;
  margin: 0 0 0.5rem;
  color: #fafafa;
  font-family: var(--cp-ridge-sans);
  font-size: clamp(1.02rem, 4.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
  text-transform: none;
  animation-delay: 0.6s;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede {
  max-width: 34ch;
  margin: 0;
  color: var(--cp-ridge-soft);
  font-size: 0.93rem;
  line-height: 1.5;
  animation-delay: 0.7s;
}

body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta {
  animation-delay: 0.8s;
}

/* Buttons lean with the ridge. */
body.cp-layout-ridge .cp-hero--ridge .cp-btn {
  min-height: 3.1rem;
  padding: 0 1.7rem;
  border: 0;
  border-radius: var(--cp-ridge-radius);
  clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);
  font-family: var(--cp-ridge-sans);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.cp-layout-ridge .cp-hero--ridge .cp-btn--call {
  background: var(--cp-ridge-cyan);
  color: var(--cp-ridge-ink) !important;
}

body.cp-layout-ridge .cp-hero--ridge .cp-btn--wa {
  background: color-mix(in srgb, #fafafa 16%, var(--cp-ridge-ink));
  color: #fafafa !important;
}

body.cp-layout-ridge .cp-hero--ridge .cp-btn--call:hover,
body.cp-layout-ridge .cp-hero--ridge .cp-btn--call:focus-visible {
  background: color-mix(in srgb, var(--cp-ridge-cyan) 78%, #fff);
  transform: translateX(0.18rem);
}

body.cp-layout-ridge .cp-hero--ridge .cp-btn--wa:hover,
body.cp-layout-ridge .cp-hero--ridge .cp-btn--wa:focus-visible {
  background: color-mix(in srgb, #fafafa 26%, var(--cp-ridge-ink));
  transform: translateX(0.18rem);
}

/* Section chrome */
body.cp-layout-ridge .cp-services--ridge,
body.cp-layout-ridge .cp-posts--ridge {
  background: var(--cp-ridge-paper);
}

body.cp-layout-ridge .cp-services--ridge .cp-section__head h2,
body.cp-layout-ridge .cp-posts--ridge .cp-posts__banner h2,
body.cp-layout-ridge .cp-about--ridge h2 {
  font-family: var(--cp-ridge-display);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.005em;
  line-height: 1;
  text-transform: none;
}

body.cp-layout-ridge .cp-services--ridge .cp-section__head h2 {
  color: var(--cp-ridge-ink);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}

/* Slanted two-tone ridge bar under the heading. */
body.cp-layout-ridge .cp-services--ridge .cp-section__head h2::after {
  content: "";
  display: block;
  width: 4.4rem;
  height: 0.5rem;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--cp-ridge-cyan) 0 62%, var(--cp-ridge-ink) 62% 100%);
  clip-path: polygon(0.55rem 0, 100% 0, calc(100% - 0.55rem) 100%, 0 100%);
}

body.cp-layout-ridge .cp-services--ridge .cp-section__head p,
body.cp-layout-ridge .cp-posts--ridge .cp-posts__lede {
  color: var(--cp-ridge-muted);
  line-height: 1.6;
}

/* Services: parallelogram rows with a slanted cyan edge. */
body.cp-layout-ridge .cp-service-ridges,
body.cp-layout-ridge .cp-service-ridge,
body.cp-layout-ridge .cp-post-ridges,
body.cp-layout-ridge .cp-post-ridge {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.cp-layout-ridge .cp-service-ridge::marker,
body.cp-layout-ridge .cp-post-ridge::marker {
  content: "";
}

body.cp-layout-ridge .cp-service-ridges {
  display: grid;
  gap: 0.5rem;
  padding-right: 0.4rem;
}

body.cp-layout-ridge .cp-service-ridge {
  animation: cp-ridge-slide 0.6s cubic-bezier(0.22, 0.9, 0.24, 1) backwards;
  animation-delay: calc(0.09s * var(--cp-i, 0) + 0.05s);
}

body.cp-layout-ridge .cp-service-ridge__link {
  --cp-ridge-edge: 0.3rem;
  position: relative;
  display: grid;
  gap: 0.2rem 1.5rem;
  align-content: center;
  min-height: 5.6rem;
  padding: 1.05rem calc(var(--cp-ridge-lean) + 1.1rem) 1.05rem calc(var(--cp-ridge-lean) + 1.3rem);
  border-radius: var(--cp-ridge-radius);
  background: var(--cp-ridge-slab);
  color: var(--cp-ridge-ink);
  text-decoration: none;
  clip-path: polygon(var(--cp-ridge-lean) 0, 100% 0, calc(100% - var(--cp-ridge-lean)) 100%, 0 100%);
  transition: --cp-ridge-edge 0.28s ease, transform 0.28s cubic-bezier(0.22, 0.9, 0.24, 1), background 0.22s ease, color 0.22s ease;
}

body.cp-layout-ridge .cp-service-ridge__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--cp-ridge-lean) + var(--cp-ridge-edge));
  background: var(--cp-ridge-cyan);
  clip-path: polygon(
    var(--cp-ridge-lean) 0,
    calc(var(--cp-ridge-lean) + var(--cp-ridge-edge)) 0,
    var(--cp-ridge-edge) 100%,
    0 100%
  );
  pointer-events: none;
}

body.cp-layout-ridge .cp-service-ridge__link:hover,
body.cp-layout-ridge .cp-service-ridge__link:focus-visible {
  --cp-ridge-edge: 0.7rem;
  transform: translateX(0.35rem);
  background: var(--cp-ridge-ink);
  color: #fafafa;
}

body.cp-layout-ridge .cp-service-ridge__title {
  position: relative;
  font-family: var(--cp-ridge-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.08;
  letter-spacing: 0;
}

body.cp-layout-ridge .cp-service-ridge__desc {
  position: relative;
  color: var(--cp-ridge-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: color 0.22s ease;
}

body.cp-layout-ridge .cp-service-ridge__link:hover .cp-service-ridge__desc,
body.cp-layout-ridge .cp-service-ridge__link:focus-visible .cp-service-ridge__desc {
  color: var(--cp-ridge-soft);
}

/* About: slab with a slanted cyan stripe and a chamfered corner. */
body.cp-layout-ridge .cp-about--ridge {
  background: var(--cp-ridge-paper-deep);
}

body.cp-layout-ridge .cp-about__ridge {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 56rem);
  max-width: 56rem;
  margin-right: auto;
  margin-left: auto;
  padding: 1.6rem 1.4rem 1.9rem 1.7rem;
  border-radius: var(--cp-ridge-radius);
  background: linear-gradient(100deg, var(--cp-ridge-cyan) 0 0.32rem, var(--cp-ridge-slab) 0.32rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.6rem), calc(100% - 3.6rem) 100%, 0 100%);
  color: var(--cp-ridge-ink);
  line-height: 1.7;
}

body.cp-layout-ridge .cp-about__ridge h2,
body.cp-layout-ridge .cp-about__ridge h3 {
  color: var(--cp-ridge-ink);
  font-family: var(--cp-ridge-display);
  text-transform: none;
}

body.cp-layout-ridge .cp-about__ridge p {
  color: var(--cp-ridge-muted);
}

/* Hizmet noktaları banner: carbon plane whose bottom edge is the ridge, cyan sliver riding it. */
body.cp-layout-ridge .cp-posts--ridge .cp-posts__banner {
  position: relative;
  padding-bottom: 2.6rem;
  border: 0;
  border-radius: var(--cp-ridge-radius);
  background: var(--cp-ridge-ink);
  box-shadow: none;
  color: #fafafa;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.1rem), 0 100%);
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.4rem;
  background: var(--cp-ridge-cyan);
  clip-path: polygon(0 calc(100% - 0.3rem), 100% 0, 100% 0.3rem, 0 100%);
  pointer-events: none;
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__banner h2 {
  color: #fafafa;
  font-size: clamp(2rem, 6.4vw, 2.9rem);
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__eyebrow {
  color: var(--cp-ridge-cyan);
  letter-spacing: 0.1em;
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__banner .cp-posts__lede {
  color: var(--cp-ridge-soft);
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__phone {
  border: 0;
  border-radius: var(--cp-ridge-radius);
  background: var(--cp-ridge-cyan);
  color: var(--cp-ridge-ink) !important;
  clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

body.cp-layout-ridge .cp-posts--ridge .cp-posts__phone-num {
  font-family: var(--cp-ridge-display);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0;
}

/* Hizmet noktaları: media's lower edge is a diagonal; the carbon body rises to meet it with a cyan seam. */
body.cp-layout-ridge .cp-post-ridges {
  display: grid;
  gap: 2rem 1.5rem;
}

body.cp-layout-ridge .cp-post-ridge {
  --cp-ridge-cut: 1.7rem;
  animation: cp-ridge-rise 0.65s cubic-bezier(0.22, 0.9, 0.24, 1) backwards;
  animation-delay: calc(0.08s * var(--cp-i, 0) + 0.05s);
}

body.cp-layout-ridge .cp-post-ridge__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--cp-ridge-ink);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.24, 1);
}

body.cp-layout-ridge .cp-post-ridge__link:hover,
body.cp-layout-ridge .cp-post-ridge__link:focus-visible {
  transform: translateY(-0.25rem);
}

body.cp-layout-ridge .cp-post-ridge__media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--cp-ridge-radius) var(--cp-ridge-radius) 0 0;
  background: color-mix(in srgb, var(--cp-ridge-ink) 24%, var(--cp-ridge-paper-deep));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cp-ridge-cut)), 0 100%);
  animation: cp-ridge-sweep 0.85s cubic-bezier(0.22, 0.9, 0.24, 1) backwards;
  animation-delay: calc(0.08s * var(--cp-i, 0) + 0.12s);
}

body.cp-layout-ridge .cp-post-ridge__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

body.cp-layout-ridge .cp-post-ridge__link:hover .cp-post-ridge__media img,
body.cp-layout-ridge .cp-post-ridge__link:focus-visible .cp-post-ridge__media img {
  transform: scale(1.04);
}

body.cp-layout-ridge .cp-post-ridge__media--empty {
  background: linear-gradient(150deg, color-mix(in srgb, var(--cp-ridge-ink) 44%, var(--cp-ridge-paper-deep)), color-mix(in srgb, var(--cp-ridge-cyan) 38%, var(--cp-ridge-paper)));
}

body.cp-layout-ridge .cp-post-ridge__body {
  position: relative;
  z-index: 0;
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.4rem;
  margin-top: calc(var(--cp-ridge-cut) * -1);
  padding: calc(var(--cp-ridge-cut) + 0.95rem) 1.2rem 1.25rem;
  border-radius: 0 0 var(--cp-ridge-radius) var(--cp-ridge-radius);
  background: var(--cp-ridge-ink);
  color: #fafafa;
}

/* Cyan sliver tracking the diagonal seam. */
body.cp-layout-ridge .cp-post-ridge__body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--cp-ridge-cut) + 0.3rem);
  background: var(--cp-ridge-cyan);
  clip-path: polygon(0 calc(100% - 0.3rem), 100% 0, 100% 0.3rem, 0 100%);
  pointer-events: none;
}

body.cp-layout-ridge .cp-post-ridge__title {
  color: #fff;
  font-family: var(--cp-ridge-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.1;
}

body.cp-layout-ridge .cp-post-ridge__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cp-ridge-soft);
  font-size: 0.93rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.cp-layout-ridge .cp-post-ridge__more {
  margin-top: 0.2rem;
  color: var(--cp-ridge-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

body.cp-layout-ridge .cp-post-ridge__link:hover .cp-post-ridge__more,
body.cp-layout-ridge .cp-post-ridge__link:focus-visible .cp-post-ridge__more {
  transform: translateX(0.3rem);
}

@media (min-width: 700px) {
  body.cp-layout-ridge .cp-post-ridges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body.cp-layout-ridge .cp-hero--ridge {
    --cp-ridge-tan: 0.2126;
    --cp-ridge-y0: 8rem;
    --cp-ridge-padx: max(1.5rem, calc((100vw - 72rem) / 2 + 1rem));
    --cp-ridge-copy-w: 32rem;
    --cp-ridge-reach: calc(var(--cp-ridge-padx) + var(--cp-ridge-copy-w));
    --cp-ridge-edge-w: 0.38rem;
    grid-template: minmax(clamp(34rem, 74svh, 46rem), auto) / minmax(0, 1fr);
  }

  /* Base ≥768 rule stacks CTAs in a named grid area; ridge keeps them inline. */
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__title,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta {
    grid-area: auto;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__content {
    padding: calc(var(--cp-ridge-y0) + var(--cp-ridge-reach) * var(--cp-ridge-tan) + 1.25rem) var(--cp-ridge-padx) 3rem;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__content::before {
    clip-path: polygon(
      0 calc(var(--cp-ridge-y0) + 2.4rem),
      100% calc(var(--cp-ridge-y1) + 2.4rem),
      100% 100%,
      0 100%
    );
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__eyebrow {
    max-width: var(--cp-ridge-copy-w);
    margin-bottom: 0.7rem;
    font-size: clamp(3.6rem, 6.2vw, 5.6rem);
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__title {
    max-width: var(--cp-ridge-copy-w);
    margin-bottom: 0.7rem;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede {
    max-width: 40ch;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
  }

  body.cp-layout-ridge .cp-service-ridges {
    gap: 0.6rem;
  }

  body.cp-layout-ridge .cp-service-ridge__link {
    --cp-ridge-lean: 1.15rem;
    min-height: 6.2rem;
    padding-right: calc(var(--cp-ridge-lean) + 1.4rem);
    padding-left: calc(var(--cp-ridge-lean) + 1.6rem);
  }

  body.cp-layout-ridge .cp-service-ridge__title {
    font-size: 1.7rem;
  }

  body.cp-layout-ridge .cp-post-ridge {
    --cp-ridge-cut: 2.2rem;
  }
}

@media (min-width: 1000px) {
  body.cp-layout-ridge .cp-hero--ridge {
    --cp-ridge-copy-w: 38rem;
  }

  /* Copy plane splits: brand + headline + CTAs left, lede right on the lower ridge. */
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__content {
    grid-template-columns: minmax(0, var(--cp-ridge-copy-w)) minmax(0, 22rem);
    justify-content: space-between;
    column-gap: 2.5rem;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__title {
    grid-column: 1;
    grid-row: 2;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta {
    grid-column: 1;
    grid-row: 3;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: end;
    margin-bottom: 0.35rem;
  }

  body.cp-layout-ridge .cp-service-ridges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.1rem;
  }

  body.cp-layout-ridge .cp-service-ridge__link {
    height: 100%;
  }
}

@media (min-width: 1100px) {
  body.cp-layout-ridge .cp-post-ridges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@keyframes cp-ridge-plane {
  from {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }

  to {
    clip-path: polygon(0 var(--cp-ridge-y0), 100% var(--cp-ridge-y1), 100% 100%, 0 100%);
  }
}

@keyframes cp-ridge-edge {
  from {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }

  to {
    clip-path: polygon(
      0 calc(var(--cp-ridge-y0) - var(--cp-ridge-edge-w)),
      100% calc(var(--cp-ridge-y1) - var(--cp-ridge-edge-w)),
      100% 100%,
      0 100%
    );
  }
}

@keyframes cp-ridge-text {
  from {
    opacity: 0;
    transform: translate(-0.8rem, 0.9rem);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes cp-ridge-slide {
  from {
    opacity: 0;
    transform: translateX(-1.4rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cp-ridge-rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cp-ridge-sweep {
  from {
    clip-path: polygon(0 0, 0 0, 0 calc(100% - var(--cp-ridge-cut)), 0 100%);
  }

  to {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cp-ridge-cut)), 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__stage::after,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__content,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__eyebrow,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__title,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__lede,
  body.cp-layout-ridge .cp-hero--ridge .cp-hero__cta,
  body.cp-layout-ridge .cp-service-ridge,
  body.cp-layout-ridge .cp-post-ridge,
  body.cp-layout-ridge .cp-post-ridge__media {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  body.cp-layout-ridge .cp-hero--ridge .cp-btn,
  body.cp-layout-ridge .cp-service-ridge__link,
  body.cp-layout-ridge .cp-service-ridge__desc,
  body.cp-layout-ridge .cp-post-ridge__link,
  body.cp-layout-ridge .cp-post-ridge__media img,
  body.cp-layout-ridge .cp-post-ridge__more {
    transition: none;
  }
}

