/* Home page (live kriv.ai content) in the v9 look.
   Loaded after master.css + kriv.css, only by index-live.html. Every class is prefixed kh-; no template or kriv.css rule is edited.
   The hero, counter strip and "The problem" section use the v9 home markup; the only rules for them here size the hero image and the problem photo. */

/* hero image: a transparent cut-out (1214x1048 WebP, empty band above the monitor trimmed), so no frame, corners or box shadow */
.kh-hero-media{width:100%;height:auto}
.kh-hero-photo{display:block;width:100%;max-width:640px;height:auto;margin-left:auto;
  /* the desk is opaque with straight edges; fade its sides and bottom into the hero background */
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%),linear-gradient(180deg,#000 88%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%),linear-gradient(180deg,#000 88%,transparent 100%);
  mask-composite:intersect}
@media (max-width:1599px){.kh-hero-media{margin-right:0}}
/* below 992px the image sits under the headline, centred and capped so it does not fill a tablet screen; the template would shrink it to 80%. The corner squiggle is hidden so it cannot push the page sideways */
@media (max-width:991px){
  .kh-hero-media .kh-hero-photo{width:100%;max-width:460px;margin-inline:auto}
  .kh-hero-media .home4-shape{display:none}
}
/* The template fixes the hero at 1100px (900px on phones) and pulls the counter card up 130px into it.
   With the image now shown below 992px, let the hero grow with its content and leave room at the bottom for the card.
   Below 768px the template already gives the hero 150px of bottom padding, so less is added there. */
@media (max-width:991px){.kh-hero-wrap{height:auto;padding-bottom:130px}}
@media (max-width:767px){.kh-hero-wrap{padding-bottom:40px}}

/* "The problem" photo. The template keeps the 630px height from the HTML while max-width:100% narrows the width,
   which squashes any photo sideways. Crop to fill the box instead of squashing. */
.kh-problem-photo{object-fit:cover}
/* 992px+: the photo box runs from the template's 100px offset to the column edge and is 630px tall
   (536x630 on large screens); the image file carries its own size, so the height is set here */
@media (min-width:992px){
  .kh-problem-media .home4-about-img-1{right:0}
  .kh-problem-media .kh-problem-photo{width:100%;height:630px}
}
/* 992-1199px: drop the template's 100px left offset, so the photo is 456x630 rather than a 356px strip */
@media (min-width:992px) and (max-width:1199px){.kh-problem-media .home4-about-img-1{left:0}}
/* 768-991px: the template squeezes it to 236x630 inside a shorter box; show it full column width at its own shape instead */
@media (min-width:768px) and (max-width:991px){
  .kh-problem-media{height:auto;margin-bottom:0}
  .kh-problem-media .home4-about-img-1{position:relative;left:0}
  .kh-problem-media .kh-problem-photo{width:100%;height:auto}
}

/* icon sprite */
.kh-sprite{position:absolute;width:0;height:0;overflow:hidden}
svg.kh-i{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-.125em}
.kh-ico{flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#dbe7ff;color:#1456da;display:flex;align-items:center;justify-content:center;font-size:22px}
.kh-ico svg.kh-i{stroke-width:1.75}

/* shared bits */
.kh-textlink{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#1f4fd8;font-weight:600;font-size:16px;text-decoration:underline;text-underline-offset:3px}
.kh-textlink:hover{color:#0f2d85}
.kh-lede{font-size:20px;line-height:1.6;color:#454a5c;max-width:860px;margin:0}
.kh-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px 40px;margin-bottom:40px}
.kh-head .hadding5{max-width:780px}
.kh-head-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px}
.kh-head-links .theme-btn-18,.kh-cta-row .theme-btn-18,.kh-band .theme-btn-18,.kh-closing .theme-btn-18{height:auto;min-height:60px}

.kh-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.kh-micro{font-size:16px;line-height:1.5;color:#454a5c;margin:14px 0 0}
.kh-center-cta{margin-top:56px;text-align:center}

/* what we offer: three pillars (training, agents, governance) */
.kh-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:50px;align-items:stretch}
.kh-pillar{position:relative;overflow:hidden;background:#fff;border-radius:16px;padding:32px 28px 16px;box-shadow:0 4px 20px rgba(14,18,67,.07)}
.kh-pillar:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#1456da,#7fa9ff)}
.kh-pillar-head{display:flex;align-items:center;gap:16px;padding-bottom:20px;margin-bottom:6px;border-bottom:1px solid #e4e9f5}
.kh-pillar-head .kh-ico{flex-basis:56px;width:56px;height:56px;font-size:26px}
.kh-pillar-head h3{font-family:"Fraunces",serif;font-weight:600;font-size:28px;line-height:1.15;color:#0f182c;margin:0}
.kh-pillar-head small{display:block;margin-top:4px;font-size:16px;font-weight:600;color:#0f2d85}
.kh-pillar ul{list-style:none;margin:0;padding:0}
.kh-pillar li+li{border-top:1px solid #e4e9f5}
.kh-pillar li a{display:grid;grid-template-columns:1fr 40px;align-items:center;gap:14px;padding:18px 12px;margin:4px -12px;border-radius:10px;color:#0f182c;text-decoration:none;transition:background .25s}
.kh-pillar li a:hover,.kh-pillar li a:focus-visible{background:#eef3ff;color:#0f182c}
.kh-pillar h4{font-family:"Fraunces",serif;font-weight:600;font-size:20px;line-height:1.25;color:#0f182c;margin:0 0 4px}
.kh-offer-d{display:block;font-size:16px;line-height:1.5;color:#454a5c}
.kh-pillar-go{width:40px;height:40px;border-radius:50%;border:1px solid #c3d2f2;display:flex;align-items:center;justify-content:center;color:#1456da;font-size:18px;transition:background .25s,color .25s,border-color .25s,transform .25s}
.kh-pillar li a:hover .kh-pillar-go,.kh-pillar li a:focus-visible .kh-pillar-go{background:#1456da;border-color:#1456da;color:#fff;transform:rotate(-45deg)}
.kh-offer .kh-center-cta{margin-top:48px}
.kh-offer .hadding5 h2{text-wrap:balance}
@media (max-width:991px){.kh-pillars{grid-template-columns:1fr;max-width:640px;margin-left:auto;margin-right:auto}}
@media (max-width:575px){.kh-pillar{padding:26px 20px 12px}.kh-pillar-head h3{font-size:24px}}

/* readiness band */
.kh-band-sec{padding:0 0 120px;overflow-x:clip}
.kh-band{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 48px;background:#e7eefb url(../img/bg/home4-service.png) center/cover no-repeat;border-radius:18px;padding:52px 56px}
.kh-band-text{flex:1 1 520px;max-width:720px}
.kh-band-text h2{margin:8px 0 12px !important}
.kh-band-text p{font-size:18px;line-height:1.6;color:#454a5c;margin:0}
.kh-band-cta{flex:0 1 auto}
@media (max-width:767px){.kh-band{padding:32px 24px}.kh-band-sec{padding-bottom:60px}}
.kh-sec-top{padding-top:120px}
@media (max-width:991px){.kh-sec-top{padding-top:60px}}

/* who we serve */
.kh-serve{padding:40px 0 140px;overflow-x:clip}
.kh-serve-row+.kh-serve-row{margin-top:140px}
.kh-visual{position:relative}
.kh-visual-photo{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;display:block;height:auto}
/* photo whose heads sit near the top: when the square is cut to 4:3 on small screens, trim mostly from the bottom */
.kh-visual-photo--top{object-position:50% 20%}
.kh-visual .kh-squiggle{position:absolute;top:-44px;left:-10px;width:auto}
.kh-visual.is-right .kh-squiggle{left:auto;right:-10px}
.kh-serve .core-tags a.core-tag{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;transition:background .2s}
.kh-serve .core-tags a.core-tag:hover{background:#1456da;color:#fff}
.kh-serve .core-list{margin:18px 0 18px}
@media (max-width:991px){.kh-serve{padding-bottom:60px}.kh-serve-row+.kh-serve-row{margin-top:80px}.kh-serve-text{margin-top:48px}.kh-visual-photo{aspect-ratio:4/3}}
@media (max-width:575px){.kh-visual .kh-squiggle{display:none}}

/* buying committee + generic card grids */
.kh-cards .core-card{display:flex;flex-direction:column}
.kh-cards .core-card .kh-ico{margin-bottom:18px}
.kh-cards .core-card .core-cont{margin-top:auto;padding-top:6px}

/* governance & trust (dark) */
.kh-trust p{color:#d5def5}
.kh-govern-eyebrow{display:block;font-family:"Figtree",sans-serif;font-size:16px;line-height:1.4;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#a9c1ff;margin:0 0 12px}
.kh-govern-q{font-family:"Fraunces",serif;font-style:italic;font-weight:500;font-size:28px !important;line-height:1.35 !important;color:#fff !important;margin:0 0 28px}
.kh-badges{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px}
.kh-badges li{display:flex;align-items:center;gap:12px;font-size:18px;line-height:1.4;color:#fff}
.kh-badges .kh-ico{flex-basis:36px;width:36px;height:36px;font-size:18px;background:rgba(127,169,255,.18);color:#a9c1ff}
.kh-gov-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:3px;margin-bottom:22px}
.kh-gov-link:hover{color:#a9c1ff}
.kh-trust .kh-textlink{color:#fff}.kh-trust .kh-textlink:hover{color:#a9c1ff}
/* 4:3 photo: fill the column at its own height (the template's max-width alone would squash it to the HTML height) */
.kh-trust-photo{display:block;width:100%;height:auto}
@media (max-width:767px){.kh-trust .trusted-slider-img{margin:0 0 32px !important}.kh-govern-q{font-size:23px !important}}

/* field notes */
.kh-notes{padding-bottom:70px}
.kh-notes .home4-blog-items,.kh-blog .home4-blog-items{height:calc(100% - 30px);display:flex;flex-direction:column;background:#fff;border-radius:14px}
.kh-notes .home4-blog-hadding,.kh-blog .home4-blog-hadding{flex:1;display:flex;flex-direction:column;border-top:0}
.kh-notes .home4-blog-hadding h3 a,.kh-blog .home4-blog-hadding h3 a{display:block !important;min-height:0 !important}
.kh-notes .home4-blog-items-img img{aspect-ratio:560/378;object-fit:cover}
.kh-notes .kh-excerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 6px}
.kh-notes .home4-blog-btn,.kh-blog .home4-blog-btn{margin-top:auto}

/* our articles (blog) */
.kh-blog{background:#eef3ff url(../img/bg/home4-service.png) center/cover no-repeat;overflow-x:clip}
.kh-blog .home4-blog-items{box-shadow:0 4px 20px rgba(14,18,67,.07)}
.kh-blog .home4-blog-hadding{border:0;border-radius:0 0 14px 14px}
.kh-blog .home4-blog-items-img img{aspect-ratio:560/378;object-fit:cover;border-radius:14px 14px 0 0}
.kh-blog .home4-blog-hadding p{margin:8px 0 6px}
.kh-blog .hadding5 h2{text-wrap:balance}
.kh-read{color:#575d6b;font-weight:400;margin-left:6px}
.kh-feat{display:inline-block;margin-right:8px;padding:1px 10px;border-radius:999px;background:#FDC24C;color:#0f182c;font-weight:700}

/* start smaller */
.kh-smaller{padding:100px 0 120px}
.kh-smaller-h{font-family:"Fraunces",serif;font-weight:600;font-size:24px;line-height:1.3;color:#0f182c;margin:0 0 20px}
.kh-smaller .core-mini{align-items:center;gap:18px}
.kh-smaller .core-mini h3{font-size:20px;margin:0 0 4px}
.kh-smaller .core-mini p{font-size:16px;font-weight:400;color:#454a5c}
.kh-smaller .core-mini .kh-go{margin-left:auto;color:#1456da;font-size:22px}
@media (max-width:991px){.kh-smaller{padding:60px 0}}

/* pipeline */
.kh-state{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:4px 14px;border-radius:999px;font-size:16px;font-weight:700;margin-bottom:14px}
.kh-state:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.kh-state.is-live{background:#e7f6ee;color:#14532d}
.kh-state.is-build{background:#fef3c7;color:#78350f}
.kh-state.is-radar{background:#dbe7ff;color:#0f2d85}
.kh-pipe .core-link{margin:auto 0 0}

/* faq */
.kh-faq .core-acc{margin-top:34px}
.kh-faq .choos-images{margin-top:0}
.kh-faq .choose-img-1 img{width:100%;height:auto;border-radius:18px}
@media (max-width:991px){.kh-faq .choos-images{margin-top:50px}}

/* closing cta */
.kh-closing .heading4{margin-bottom:0}
.kh-closing-eyebrow{display:block;font-size:16px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#0f2d85;margin-bottom:10px}
.kh-contactline{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;margin-top:18px;font-size:16px;color:#0f182c}
.kh-contactline a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#0f182c;text-decoration:underline;text-underline-offset:3px}
.kh-closing-cta{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
@media (max-width:991px){.kh-closing-cta{margin-top:28px}}


/* footer */
.kh-foot .single-footer h3{font-size:20px;margin-bottom:10px}
.kh-foot .footer-menu ul{margin:0;padding:0;list-style:none}
.kh-foot .kh-foot-talk{margin-top:26px;padding:22px;border-radius:12px;background:#fff}
.kh-foot .kh-foot-talk p{margin:0 0 6px}
.kh-foot .kh-foot-talk a,.kh-foot .kh-foot-social a{color:#1456da;font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.kh-foot .kh-foot-social{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:6px}
.kh-foot .kh-legal{display:flex;flex-wrap:wrap;gap:0 20px;margin:0 0 6px;padding:0;list-style:none}
.kh-foot .kh-legal a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;color:#09120E;text-decoration:underline;text-underline-offset:3px}
.kh-foot .copyright p{display:block;line-height:1.6}
.kh-foot .copyright a{color:#09120E;text-decoration:underline}
.kh-foot .copyright strong{font-weight:600}


/* v3 fixes (brand-critic OPS-1213, rulings OPS-1198 24 Nov) */
/* B3: phone menu, every item 4.5:1 or better on a dark panel, visible close control */
.mobile-sidebar{background:#0f182c}
.mobile-sidebar .mobile-nav li a,.mobile-sidebar .mobile-nav-list a{color:#fff}
.mobile-sidebar .mobile-nav-list a[aria-current="page"]{color:#fff;font-weight:700;box-shadow:inset 4px 0 0 #a9c1ff;padding-left:12px}
.mobile-sidebar .foot-h{color:#fff}
.mobile-sidebar .single-contact a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.mobile-sidebar .menu-close{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;min-height:48px;color:#fff;background:#0f182c;border:2px solid #fff;border-radius:50%;right:20px;top:20px;font-size:24px}
.mobile-sidebar .menu-close:focus-visible{outline:3px solid #a9c1ff;outline-offset:3px}
/* B4: closing band paragraph and footer legal lines */
.kh-closing .heading4 p{color:#0f182c}
.kh-foot .copyright p{color:#0f182c;opacity:1}
/* N1: more space above the Claude Select badge (36 px to 44 px) */
.select-badge{margin-top:44px}

/* hero on plain white (OPS-1287 v6): the template paints home4-header-bg.png (blue-yellow wash) behind the hero; remove it, keep the layout */
.home4-full-header.kh-hero-wrap{background-image:none;background-color:#fff}

/* hero spacing (OPS-1287 v7, cdo): less empty space above and below the hero; the counter card keeps its 130 px pull-up.
   After v7 the hero photo was replaced by the dots graphic (.kh-hero-dots); the top padding clears the nav (the header overlays the hero). */
@media (min-width:992px){
.home4-full-header.kh-hero-wrap{height:auto;padding-bottom:200px}
.kh-hero-wrap .welcome-4{height:auto;padding-top:190px;padding-bottom:0}
/* the headline and the dots graphic start on the same line (kriv-dots.js puts the top of the dotted letters level with the headline's) */
.kh-hero-wrap .row.align-items-center{align-items:flex-start!important}
}

/* nav at 992-1199 px: "Claude training" and "Case studies" wrapped onto two lines there, which put the menu out of line
   and made the header 10 px taller. Keep every label on one line and tighten the spacing in that range only. */
@media (min-width:992px) and (max-width:1199px){
.main-menu .menu_list{gap:0}
.main-menu .menu_list a{padding:10px 8px;white-space:nowrap}
}

/* hero graphic in place of the photo: flying dots write a looping sequence of words, drawn by assets/js/kriv-dots.js into this box (3:2) */
.kh-hero-dots{position:relative;width:100%;max-width:640px;aspect-ratio:3/2;margin-left:auto}
.kh-hero-dots canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* below 992px it sits under the button, centred and capped like the photo was */
@media (max-width:991px){.kh-hero-dots{max-width:460px;margin:40px auto 0}}
@media (max-width:767px){
.kh-hero-wrap .welcome-4{padding-top:32px}
}

/* "Where we work" strip after the hero: a centred heading over three slowly scrolling rows of labels with faded edges.
   The rows only move once assets/js/kriv-marquee.js has added .is-moving; without it (no JavaScript, reduced motion)
   they wrap and stay still. Hovering the strip pauses it. */
.kh-reach{background:#f4f7fd;margin-top:100px;padding:90px 0 100px;overflow:hidden}
.kh-reach h2{text-wrap:balance}
.kh-reach-sub{max-width:640px;margin:0 auto;color:#454a5c;font-size:18px;line-height:1.55;text-wrap:balance}
.kh-marquee{position:relative;margin-top:48px;display:flex;flex-direction:column;gap:16px}
.kh-marquee-row{overflow:hidden}
.kh-marquee:not(.is-moving){max-width:1320px;margin-left:auto;margin-right:auto}
.kh-marquee-track{display:flex;justify-content:center}
.kh-marquee-list{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:0;padding:0 16px;list-style:none}
.kh-marquee-list li{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;background:#fff;border:1px solid #e1e8f7;border-radius:999px;box-shadow:0 1px 2px rgba(14,18,67,.04);font-family:"Figtree",sans-serif;font-size:16px;line-height:1.3;font-weight:500;color:#0f182c;white-space:nowrap}
.kh-marquee-list li svg.kh-i{font-size:20px;stroke-width:1.75;color:#1456da}
/* moving: each row is one long line; its track holds four equal copies of the list and slides by half its width */
.kh-marquee.is-moving .kh-marquee-track{justify-content:flex-start;width:max-content;animation:kh-marquee 80s linear infinite}
.kh-marquee.is-moving .kh-marquee-row:nth-child(2) .kh-marquee-track{animation-duration:95s;animation-direction:reverse}
.kh-marquee.is-moving .kh-marquee-row:nth-child(3) .kh-marquee-track{animation-duration:85s}
.kh-marquee.is-moving .kh-marquee-list{flex-wrap:nowrap;padding:0 14px 0 0}
.kh-marquee.is-moving:hover .kh-marquee-track{animation-play-state:paused}
.kh-marquee.is-moving::before,.kh-marquee.is-moving::after{content:"";position:absolute;top:0;bottom:0;width:min(20vw,280px);z-index:2;pointer-events:none}
.kh-marquee.is-moving::before{left:0;background:linear-gradient(90deg,#f4f7fd 20%,rgba(244,247,253,0))}
.kh-marquee.is-moving::after{right:0;background:linear-gradient(270deg,#f4f7fd 20%,rgba(244,247,253,0))}
@keyframes kh-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:767px){
.kh-reach{margin-top:70px;padding:64px 0 72px}
.kh-reach-sub{font-size:16px}
.kh-marquee{margin-top:36px;gap:12px}
.kh-marquee-list{gap:10px}
.kh-marquee.is-moving .kh-marquee-list{padding-right:10px}
.kh-marquee-list li{padding:10px 16px;font-size:15px}
.kh-marquee.is-moving::before,.kh-marquee.is-moving::after{width:48px}
}

/* "What our published work shows" card: on hover a blue gradient ring flows around its edge,
   the shadow deepens and the card lifts slightly. The ring is a 2 px border drawn with a mask, so the content is untouched. */
.home4-counters-all{position:relative;transition:transform .35s ease,box-shadow .35s ease}
.home4-counters-all::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
  background:linear-gradient(90deg,#1456da,#7fa9ff,#1f4fd8,#a9c4ff,#1456da);background-size:300% 100%;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  opacity:0;transition:opacity .35s ease}
.home4-counters-all:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(20,86,218,.16),0 4px 20px rgba(14,18,67,.05)}
.home4-counters-all:hover::before{opacity:1;animation:kh-ring 3s linear infinite}
@keyframes kh-ring{from{background-position:0 0}to{background-position:150% 0}}
@media (prefers-reduced-motion:reduce){
.home4-counters-all{transition:box-shadow .2s ease}
.home4-counters-all:hover{transform:none}
.home4-counters-all:hover::before{animation:none}
}

/* OPS-1287 v10, brand-critic OPS-1293 (Faz 14:31 "Yes"): three design fixes, appended after Faz's rules.
   1) Where we work pills: 14 px corners, no shadow (the 1 px border and the white fill stay). */
.kh-marquee-list li{border-radius:14px;box-shadow:none}
/* 2) strip heading block (label, heading, sentence) left-aligned on the container like the hero; the rows stay full width. */
.kh-reach .row > .col-lg-8.m-auto.text-center{margin-left:0 !important;margin-right:auto !important;text-align:left !important}
.kh-reach-sub{margin-left:0;margin-right:0}
/* 3) numbers card hover: no moving gradient ring and no blue glow; a still 2 px #1456da border, a small neutral shadow and the 4 px lift. Reduced motion: no lift. */
.home4-counters-all::before{background:#1456da}
.home4-counters-all:hover{box-shadow:0 6px 16px rgba(14,18,67,.08)}
.home4-counters-all:hover::before{animation:none}
@media (prefers-reduced-motion:reduce){.home4-counters-all:hover{transform:none}}
