/* ==========================================================================
   MKB CTA COMPONENT — BLACK + RED CORNER BRACKET SYSTEM
   Exact recreation of the Framer/reference MKB button design language.

   Structure:
   <a class="framer-corner-btn hoverable" href="...">
     <span class="btn-edge-tick edge-tl" aria-hidden="true"></span>
     <span class="btn-edge-tick edge-tr" aria-hidden="true"></span>
     <span class="btn-edge-tick edge-bl" aria-hidden="true"></span>
     <span class="btn-edge-tick edge-br" aria-hidden="true"></span>
     <span class="btn-inner-body">
       <span class="btn-flip-wrap">
         <span class="btn-flip-inner">
           <span class="btn-flip-text">LABEL</span>
           <span class="btn-flip-text" aria-hidden="true">LABEL</span>
         </span>
       </span>
     </span>
   </a>
   ========================================================================== */
/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS — overrides the smaller values in style.css
   ───────────────────────────────────────────────────────── */
:root {
  --mkb-black: #111315;
  --mkb-red: #ED1C24;
  --mkb-white: #FFFFFF;
  /* CTA corner geometry — exactly matching the reference screenshot */
  --cta-corner-length: 9px;
  /* Reduced arm length matching image */
  --cta-corner-offset: -4px;
  /* Tight outset from button edge */
  --cta-corner-thickness: 1.2px;
  /* Reduced stroke thickness matching image */
  /* CTA transition */
  --cta-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cta-duration: 260ms;
}

/* ─────────────────────────────────────────────────────────
   PAGE-LOAD & VIEWPORT ENTRANCE: CTA SLIDING COLOR CURTAIN
   A solid signature red (or light grey for secondary) color bar
   slides across the button from left to right, revealing the button.
   ───────────────────────────────────────────────────────── */
/* Hold button hidden while loader is actively running */
body.is-loading .framer-corner-btn,
body.is-loading .error-cta-btn {
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes cta-corner-entrance {

  0% {
    opacity: 0;
    transform: scale(1.3);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }

}

/* Sliding Color Curtain Wipe on Button */
.framer-corner-btn .btn-inner-body::after,
.error-cta-btn .btn-inner-body::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--mkb-red, #ED1C24);
  transform: translateX(-101%);
  transform-origin: left center;
  pointer-events: none;
  z-index: 12;
}

.framer-corner-btn--secondary .btn-inner-body::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, rgba(200, 200, 200, 0.4) 80%, transparent 100%) !important;
}

@keyframes ctaButtonColorCurtain {

  0% {
    transform: translateX(-101%);
  }
  45% {
    transform: translateX(0%);
  }
  55% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(101%);
  }

}

@keyframes ctaButtonTextCurtainReveal {

  0% {
    opacity: 0;
  }
  48% {
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }

}

/* Trigger sliding color curtain */
.framer-corner-btn.btn-wiping .btn-inner-body::after,
.error-cta-btn.btn-wiping .btn-inner-body::after,
body.page-loaded .framer-corner-btn .btn-inner-body::after,
body.page-loaded .error-cta-btn .btn-inner-body::after {
  animation: ctaButtonColorCurtain 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
  animation-delay: 200ms !important;
}

/* Reveal font text in sync with sliding curtain */
.framer-corner-btn.btn-wiping .btn-flip-text,
.error-cta-btn.btn-wiping .btn-flip-text,
body.page-loaded .framer-corner-btn .btn-flip-text,
body.page-loaded .error-cta-btn .btn-flip-text {
  animation: ctaButtonTextCurtainReveal 0.85s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
  animation-delay: 200ms !important;
}

/* Corner brackets snap into position */
.framer-corner-btn.btn-wiping .btn-edge-tick,
.error-cta-btn.btn-wiping .btn-edge-tick,
body.page-loaded .framer-corner-btn .btn-edge-tick,
body.page-loaded .error-cta-btn .btn-edge-tick {
  animation: cta-corner-entrance 450ms var(--cta-ease) both !important;
  animation-delay: 340ms !important;
}

/* Stop text/corner animations re-triggering on hover/active, lock color */
.framer-corner-btn:hover .btn-flip-text,
.framer-corner-btn:active .btn-flip-text,
.error-cta-btn:hover .btn-flip-text,
.error-cta-btn:active .btn-flip-text {
  animation: none !important;
  -webkit-text-fill-color: var(--mkb-white) !important;
  color: var(--mkb-white) !important;
}

.framer-corner-btn:hover .btn-edge-tick,
.framer-corner-btn:active .btn-edge-tick,
.error-cta-btn:hover .btn-edge-tick,
.error-cta-btn:active .btn-edge-tick {
  animation: none !important;
}

/* ─────────────────────────────────────────────────────────
   EYEBROW TAG FIX — ensure no red background bleeds in
   from any conflicting rule on any page
   ───────────────────────────────────────────────────────── */
.eyebrow,
.section-tag,
.strategic-eyebrow,
.depth-eyebrow,
.faq-eyebrow {
  background: transparent !important;
  background-color: transparent !important;
}

/* ─────────────────────────────────────────────────────────
   1. WRAPPER — transparent shell, overflow:visible for brackets
   ───────────────────────────────────────────────────────── */
.framer-corner-btn,
.error-cta-btn {
  position: relative !important;
  display: inline-flex !important;
  width: fit-content !important;
  max-width: fit-content !important;
  height: fit-content !important;
  min-height: auto !important;
  align-self: flex-start !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 1;
  /* Active press-down */
  transition: transform 120ms ease-out;
}

.framer-corner-btn:active,
.error-cta-btn:active {
  transform: scale(0.985);
}

/* ─────────────────────────────────────────────────────────
   2. BLACK BODY — the solid rectangular black surface
   ───────────────────────────────────────────────────────── */
.framer-corner-btn .btn-inner-body,
.error-cta-btn .btn-inner-body {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px;
  min-height: 48px;
  background-color: var(--mkb-black) !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  /* Isolate stacking for the pseudo sweep layer */
  isolation: isolate;
  overflow: hidden;
}

/* Header CTA is slightly more compact */
.site-header .framer-corner-btn {
  height: fit-content !important;
  align-self: flex-start !important;
}

.site-header .framer-corner-btn .btn-inner-body {
  padding: 11px 22px;
  min-height: 44px;
}

/* ─────────────────────────────────────────────────────────
   3. TEXT — white, uppercase, thin weight
   ───────────────────────────────────────────────────────── */
.framer-corner-btn .btn-flip-wrap,
.error-cta-btn .btn-flip-wrap {
  display: block;
  height: 15px;
  line-height: 15px;
  overflow: hidden;
  position: relative;
}

.framer-corner-btn .btn-flip-inner,
.error-cta-btn .btn-flip-inner {
  display: flex;
  flex-direction: column;
  transition: transform var(--cta-duration) var(--cta-ease);
}

.framer-corner-btn:hover .btn-flip-inner,
.error-cta-btn:hover .btn-flip-inner,
.framer-corner-btn.cta-navigating .btn-flip-inner,
.error-cta-btn.cta-navigating .btn-flip-inner {
  transform: translateY(-15px);
}

.framer-corner-btn .btn-flip-text,
.error-cta-btn .btn-flip-text {
  display: block;
  height: 15px;
  line-height: 15px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mkb-white) !important;
}

/* ─────────────────────────────────────────────────────────
   4. FOUR RED L-CORNER BRACKETS
   Delicate 1.2px stroke thickness, 9px arm length, -4px offset
   ───────────────────────────────────────────────────────── */
.framer-corner-btn .btn-edge-tick,
.error-cta-btn .btn-edge-tick {
  position: absolute !important;
  width: var(--cta-corner-length, 9px) !important;
  height: var(--cta-corner-length, 9px) !important;
  pointer-events: none !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  /* Smooth translate on hover */
  transition: transform var(--cta-duration) var(--cta-ease) !important;
}

/* SVGs inside corners are not needed; CSS borders draw the L-shapes */
.framer-corner-btn .btn-edge-tick svg,
.error-cta-btn .btn-edge-tick svg {
  display: none !important;
}

/* — Top Left ─── */
.framer-corner-btn .edge-tl,
.error-cta-btn .edge-tl {
  top: var(--cta-corner-offset, -4px) !important;
  left: var(--cta-corner-offset, -4px) !important;
  right: auto !important;
  bottom: auto !important;
  border-top: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-left: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* — Top Right ─── */
.framer-corner-btn .edge-tr,
.error-cta-btn .edge-tr {
  top: var(--cta-corner-offset, -4px) !important;
  right: var(--cta-corner-offset, -4px) !important;
  left: auto !important;
  bottom: auto !important;
  border-top: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-right: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-left: none !important;
  border-bottom: none !important;
}

/* — Bottom Left ─── */
.framer-corner-btn .edge-bl,
.error-cta-btn .edge-bl {
  bottom: var(--cta-corner-offset, -4px) !important;
  left: var(--cta-corner-offset, -4px) !important;
  top: auto !important;
  right: auto !important;
  border-bottom: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-left: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-top: none !important;
  border-right: none !important;
}

/* — Bottom Right ─── */
.framer-corner-btn .edge-br,
.error-cta-btn .edge-br {
  bottom: var(--cta-corner-offset, -4px) !important;
  right: var(--cta-corner-offset, -4px) !important;
  top: auto !important;
  left: auto !important;
  border-bottom: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-right: var(--cta-corner-thickness, 1.2px) solid var(--mkb-red) !important;
  border-top: none !important;
  border-left: none !important;
}

/* ─────────────────────────────────────────────────────────
   5. HOVER STATE
   Corners shrink INWARD towards button center.
   ───────────────────────────────────────────────────────── */
/* Only animate on real pointer devices (not touch) */
@media (hover: hover) and (pointer: fine) {
  /* Four corners shrink INWARD towards button center on hover */
  .framer-corner-btn:hover .edge-tl,
  .error-cta-btn:hover .edge-tl,
  .framer-corner-btn.cta-navigating .edge-tl,
  .error-cta-btn.cta-navigating .edge-tl {
    transform: translate(2.5px, 2.5px) !important;
  }

  .framer-corner-btn:hover .edge-tr,
  .error-cta-btn:hover .edge-tr,
  .framer-corner-btn.cta-navigating .edge-tr,
  .error-cta-btn.cta-navigating .edge-tr {
    transform: translate(-2.5px, 2.5px) !important;
  }

  .framer-corner-btn:hover .edge-bl,
  .error-cta-btn:hover .edge-bl,
  .framer-corner-btn.cta-navigating .edge-bl,
  .error-cta-btn.cta-navigating .edge-bl {
    transform: translate(2.5px, -2.5px) !important;
  }

  .framer-corner-btn:hover .edge-br,
  .error-cta-btn:hover .edge-br,
  .framer-corner-btn.cta-navigating .edge-br,
  .error-cta-btn.cta-navigating .edge-br {
    transform: translate(-2.5px, -2.5px) !important;
  }

  /* Clamp even tighter inward on active click/press */
  .framer-corner-btn:active .edge-tl,
  .error-cta-btn:active .edge-tl {
    transform: translate(3.5px, 3.5px) !important;
  }

  .framer-corner-btn:active .edge-tr,
  .error-cta-btn:active .edge-tr {
    transform: translate(-3.5px, 3.5px) !important;
  }

  .framer-corner-btn:active .edge-bl,
  .error-cta-btn:active .edge-bl {
    transform: translate(3.5px, -3.5px) !important;
  }

  .framer-corner-btn:active .edge-br,
  .error-cta-btn:active .edge-br {
    transform: translate(-3.5px, -3.5px) !important;
  }

  /* Background remains black — explicit override */
  .framer-corner-btn:hover .btn-inner-body,
  .error-cta-btn:hover .btn-inner-body {
    background-color: var(--mkb-black) !important;
  }

}

/* ─────────────────────────────────────────────────────────
   6. FOCUS-VISIBLE — keyboard accessible, same red language
   ───────────────────────────────────────────────────────── */
.framer-corner-btn:focus-visible,
.error-cta-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Show focus via corner bracket brightening */
.framer-corner-btn:focus-visible .btn-edge-tick,
.error-cta-btn:focus-visible .btn-edge-tick {
  border-color: #FF2D35 !important;
  transform: translate(0, 0) scale(1.15) !important;
}

/* ─────────────────────────────────────────────────────────
   7. RESPONSIVE CORNER SCALING (Preserve compact delicate ticks)
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --cta-corner-length: 9px;
    --cta-corner-offset: -4px;
    --cta-corner-thickness: 1.2px;
  }

}

@media (max-width: 768px) {
  :root {
    --cta-corner-length: 8px;
    --cta-corner-offset: -3.5px;
    --cta-corner-thickness: 1.1px;
  }

  .framer-corner-btn .btn-inner-body,
  .error-cta-btn .btn-inner-body {
    padding: 12px 22px;
    min-height: 44px;
  }

}

/* ─────────────────────────────────────────────────────────
   8. HEADER CTA — specific spacing rules for nav bar
   ───────────────────────────────────────────────────────── */
.header-cta-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 20px;
}

.header-cta-wrap .framer-corner-btn {
  align-self: center;
}

/* Mobile header CTA layout */
@media (max-width: 900px) {
  .header-cta-wrap {
    margin-top: 14px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }

}

/* ==========================================================================
   9. SECONDARY CTA BUTTON ("EXPLORE OUR CAPABILITY")
   Matches exact reference design in media_1788775835397.png:
   - Light grey / off-white rectangular body (#EBEBEB) with crisp 1px border
   - Dark black/charcoal uppercase text (#111315)
   - Four light-colored (grey rgb(170,170,170)) L-corner ticks
   - Slightly smaller / decreased arm size (11px, 1.2px stroke, -4px offset)
   - On hover: corner ticks shrink INWARD towards the button inside
   ========================================================================== */
/* Inner body surface: light grey with fine border */
.framer-corner-btn--secondary .btn-inner-body {
  background-color: #EEEEEE !important;
  border: 1px solid rgb(160, 160, 160) !important;
  box-shadow: none !important;
}

/* Text color: solid black #111315 */
.framer-corner-btn--secondary .btn-flip-text {
  color: #111315 !important;
  -webkit-text-fill-color: #111315 !important;
}

/* Stop secondary button text from becoming white on hover/active */
.framer-corner-btn--secondary:hover .btn-flip-text,
.framer-corner-btn--secondary:active .btn-flip-text,
.framer-corner-btn--secondary.cta-navigating .btn-flip-text {
  animation: none !important;
  background: none !important;
  color: #111315 !important;
  -webkit-text-fill-color: #111315 !important;
}

/* Secondary corner tick geometry: smaller size (9px) & light grey color */
.framer-corner-btn--secondary .btn-edge-tick {
  width: 9px !important;
  height: 9px !important;
  pointer-events: none !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  transition: transform var(--cta-duration) var(--cta-ease) !important;
}

/* Hide any SVG inside */
.framer-corner-btn--secondary .btn-edge-tick svg {
  display: none !important;
}

/* — Secondary Top Left ─── */
.framer-corner-btn--secondary .edge-tl {
  top: -4px !important;
  left: -4px !important;
  right: auto !important;
  bottom: auto !important;
  border-top: 1.2px solid rgb(175, 175, 175) !important;
  border-left: 1.2px solid rgb(175, 175, 175) !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* — Secondary Top Right ─── */
.framer-corner-btn--secondary .edge-tr {
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  bottom: auto !important;
  border-top: 1.2px solid rgb(175, 175, 175) !important;
  border-right: 1.2px solid rgb(175, 175, 175) !important;
  border-left: none !important;
  border-bottom: none !important;
}

/* — Secondary Bottom Left ─── */
.framer-corner-btn--secondary .edge-bl {
  bottom: -4px !important;
  left: -4px !important;
  top: auto !important;
  right: auto !important;
  border-bottom: 1.2px solid rgb(175, 175, 175) !important;
  border-left: 1.2px solid rgb(175, 175, 175) !important;
  border-top: none !important;
  border-right: none !important;
}

/* — Secondary Bottom Right ─── */
.framer-corner-btn--secondary .edge-br {
  bottom: -4px !important;
  right: -4px !important;
  top: auto !important;
  left: auto !important;
  border-bottom: 1.2px solid rgb(175, 175, 175) !important;
  border-right: 1.2px solid rgb(175, 175, 175) !important;
  border-top: none !important;
  border-left: none !important;
}

/* Hover state for secondary button:
   Corner ticks shrink INWARD towards button center */
@media (hover: hover) and (pointer: fine) {
  .framer-corner-btn--secondary:hover .edge-tl,
  .framer-corner-btn--secondary.cta-navigating .edge-tl {
    transform: translate(2.5px, 2.5px) !important;
  }

  .framer-corner-btn--secondary:hover .edge-tr,
  .framer-corner-btn--secondary.cta-navigating .edge-tr {
    transform: translate(-2.5px, 2.5px) !important;
  }

  .framer-corner-btn--secondary:hover .edge-bl,
  .framer-corner-btn--secondary.cta-navigating .edge-bl {
    transform: translate(2.5px, -2.5px) !important;
  }

  .framer-corner-btn--secondary:hover .edge-br,
  .framer-corner-btn--secondary.cta-navigating .edge-br {
    transform: translate(-2.5px, -2.5px) !important;
  }

  /* Active press: tighten inward */
  .framer-corner-btn--secondary:active .edge-tl {
    transform: translate(4px, 4px) !important;
  }

  .framer-corner-btn--secondary:active .edge-tr {
    transform: translate(-4px, 4px) !important;
  }

  .framer-corner-btn--secondary:active .edge-bl {
    transform: translate(4px, -4px) !important;
  }

  .framer-corner-btn--secondary:active .edge-br {
    transform: translate(-4px, -4px) !important;
  }

  /* Background subtle hover */
  .framer-corner-btn--secondary:hover .btn-inner-body {
    background-color: #E2E2E2 !important;
  }

}

/* Page-load runner for secondary button: subtle light sheen */
/* Page-load text color slide for secondary button */
body.page-loaded .framer-corner-btn--secondary .btn-flip-text,
body:not(.is-loading) .framer-corner-btn--secondary .btn-flip-text {
  background: linear-gradient(90deg, #111315 0%, #111315 50%, #777777 65%, rgba(0,0,0,0.15) 85%, transparent 100%) !important;
  background-size: 250% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: cta-text-color-slide 700ms var(--cta-ease) both !important;
  animation-delay: 240ms !important;
}

/* Responsive CTA Button Protections on Mobile (< 900px) */
@media (max-width: 900px) {
  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .framer-corner-btn,
  .error-cta-btn {
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
  }

  .framer-corner-btn .btn-inner-body,
  .error-cta-btn .btn-inner-body {
    width: 100% !important;
    padding: 12px 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .framer-corner-btn .btn-flip-text,
  .error-cta-btn .btn-flip-text {
    font-size: clamp(10px, 3.2vw, 13px) !important;
    letter-spacing: 0.03em !important;
  }
}

