/* Kellerey v7.2: render the WordPress-stored v5/v6 native blocks accurately.
   Do not remove saved sections, move images or mutate editable content.
   This stylesheet is deliberately restricted to the homepage's older block schema.
   New kl7-* blocks retain the current stylesheet. */
.kl7-site.kl7-legacy-home {
  --ka-pink:var(--kl-pink);--ka-ink:var(--kl-ink);--ka-grey:var(--kl-muted);
  --ka-stroke:var(--kl-rule);--ka-display:var(--kl-display);--ka-body:var(--kl-body);
  overflow-x:clip;
}
.kl7-legacy-home .wp-block-group{min-width:0}
.kl7-legacy-home .wp-block-image{margin:0;min-width:0}
.kl7-legacy-home .ka-shell{width:min(1370px,90%);margin-inline:auto}
.kl7-legacy-home #home.ka-hero{width:100%;margin:0;background:var(--kl-paper);overflow:hidden}
.kl7-legacy-home #home .ka-hero-grid{
  width:100%;max-width:1720px;margin:0 auto;min-height:700px;
  display:grid!important;grid-template-columns:minmax(0,53%) minmax(0,47%)!important;
  grid-template-rows:minmax(700px,auto);gap:0!important;align-items:stretch;
}
.kl7-legacy-home #home .ka-hero-grid>.wp-block-group__inner-container {display:contents!important}
.kl7-legacy-home #home .ka-hero-copy{
  display:block!important;grid-column:1;grid-row:1;align-self:center;
  width:100%;max-width:none;min-width:0;
  padding:65px clamp(28px,4vw,78px) 70px clamp(28px,5.6vw,105px);
  margin:0;
}
.kl7-legacy-home #home .ka-hero-image{
  display:block!important;grid-column:2;grid-row:1;width:100%!important;
  max-width:100%!important;min-width:0!important;height:100%;min-height:700px;
  position:relative!important;overflow:hidden;margin:0!important;background:#eee8ec;
}
.kl7-legacy-home #home .ka-hero-image img{
  display:block!important;width:100%!important;height:100%!important;min-height:700px;
  position:absolute;inset:0;object-fit:cover;object-position:50% center;
  transform:none!important;animation:none!important;
}
.kl7-legacy-home #home .ka-eyebrow{
  display:flex;gap:11px;align-items:center;font:800 10px/1.5 var(--kl-body);
  letter-spacing:.14em;text-transform:uppercase;margin:0 0 36px;color:var(--kl-ink);
}
.kl7-legacy-home #home .ka-eyebrow::before{content:"";width:9px;height:9px;flex:none;background:var(--kl-pink)}
.kl7-legacy-home #home h1{
  font:700 clamp(62px,6.7vw,108px)/1.12 var(--kl-display);
  letter-spacing:-.02em;text-transform:uppercase;margin:0 0 28px;color:var(--kl-ink);
}
.kl7-legacy-home #home h1 em,.kl7-legacy-home .ka-section h2 em {color:var(--kl-pink);font-style:normal}
.kl7-legacy-home #home .ka-hero-copy>p{max-width:640px;margin:0 0 16px;font-size:15px;line-height:1.67;color:var(--kl-muted)}
.kl7-legacy-home #home .ka-hero-copy>p.ka-lead{font-size:19px;font-weight:750;line-height:1.48;color:var(--kl-ink)}
.kl7-legacy-home #home .ka-hero-copy>p:has(strong){font-weight:800;color:var(--kl-ink)}
.kl7-legacy-home #home .wp-block-buttons.ka-actions {display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:28px 0 0}
.kl7-legacy-home #home .ka-actions .wp-block-button{margin:0}
.kl7-legacy-home #home .ka-actions .wp-block-button__link{
  display:inline-flex;align-items:center;min-height:48px;padding:15px 21px;
  font:800 11px/1.5 var(--kl-body);letter-spacing:.1em;
  color:white;background:var(--kl-pink);border-radius:0;
}
.kl7-legacy-home #home .ka-actions .ka-outline-btn .wp-block-button__link{
  color:var(--kl-ink);background:transparent;border-bottom:1px solid var(--kl-ink);
  min-height:unset;padding:10px 0 6px;
}
/* Block-editable expertise cards */
.kl7-legacy-home .ka-section{padding:clamp(66px,6vw,105px) 0;border-top:1px solid var(--kl-rule)}
.kl7-legacy-home .ka-section-top{display:flex;justify-content:space-between;gap:20px;margin:0 0 43px}
.kl7-legacy-home .ka-section-top p{font:800 10px/1.5 var(--kl-body);letter-spacing:.14em;text-transform:uppercase;color:var(--kl-pink);margin:0}
.kl7-legacy-home .ka-section-top p:last-child{color:#857f85;text-align:right}
.kl7-legacy-home .ka-section h2{
  font:700 clamp(46px,5.6vw,80px)/1.12 var(--kl-display);
  margin:0 0 24px;letter-spacing:-.013em;text-transform:uppercase;
}
.kl7-legacy-home .ka-section p{color:var(--kl-muted)}
.kl7-legacy-home #expertise .ka-expertise-layout{display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);gap:0;align-items:start}
.kl7-legacy-home #expertise .ka-expertise-intro{padding-right:9%;max-width:none}
.kl7-legacy-home #expertise .ka-expertise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.kl7-legacy-home #expertise .ka-expertise-card{background:#fff;border:1px solid var(--kl-rule);overflow:hidden;min-width:0}
.kl7-legacy-home #expertise .ka-expertise-card .ka-card-img{width:100%;aspect-ratio:1.7;overflow:hidden;margin:0}
.kl7-legacy-home #expertise .ka-expertise-card .ka-card-img img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;transform:none!important;animation:none!important}
.kl7-legacy-home #expertise .ka-expertise-card h3{margin:18px 19px 9px;font:700 18px/1.3 var(--kl-body);text-transform:none;letter-spacing:0}
.kl7-legacy-home #expertise .ka-expertise-card p{margin:0 19px 22px;font-size:13px;line-height:1.6}
/* Advantage and frontier layouts */
.kl7-legacy-home #signal.ka-signal{background:#f1ebed}
.kl7-legacy-home #signal .ka-signal-layout{display:grid;grid-template-columns:minmax(0,47%) minmax(0,53%);gap:0;align-items:start}
.kl7-legacy-home #signal .ka-signal-copy{padding-right:8%}
.kl7-legacy-home #signal .ka-signal-copy p{margin:0 0 17px}
.kl7-legacy-home #signal .ka-signal-copy .ka-pullquote{font-size:clamp(23px,2.7vw,34px);line-height:1.45;color:var(--kl-ink)}
.kl7-legacy-home #signal .ka-pink{color:var(--kl-pink)!important;font-weight:800}
.kl7-legacy-home #signal .ka-signal-line{display:flex;gap:25px;justify-content:space-between;align-items:center;border-top:2px solid var(--kl-pink);padding-top:19px;margin-top:45px}
.kl7-legacy-home #signal .ka-signal-line p{font:800 10px/1.5 var(--kl-body);text-transform:uppercase;letter-spacing:.12em;color:var(--kl-pink);margin:0}
.kl7-legacy-home #next.ka-next{background:var(--kl-ink);color:white}
.kl7-legacy-home #next .ka-section-top p:last-child{color:#bdb6bc}
.kl7-legacy-home #next .ka-next-layout{display:grid;grid-template-columns:minmax(0,51%) minmax(0,49%);gap:0;align-items:center}
.kl7-legacy-home #next .ka-next-copy{padding-right:9%}
.kl7-legacy-home #next .ka-next-layout p{line-height:1.7;color:#d7d0d4}
.kl7-legacy-home #next .ka-next-media{margin:0;overflow:hidden;min-height:0;aspect-ratio:1.25;background:#11161c}
.kl7-legacy-home #next .ka-next-media img{width:100%;height:100%;object-fit:contain;object-position:center;transform:none!important;animation:none!important}
/* Founder model and closing CTA: portrait only here. */
.kl7-legacy-home #model.ka-model{background:#f1eced}
.kl7-legacy-home #model .ka-model-layout{display:grid;grid-template-columns:52% 42%;gap:6%}
.kl7-legacy-home #model .ka-model-copy p{margin:0 0 21px}
.kl7-legacy-home #contact.ka-contact{background:#f4eeee}
.kl7-legacy-home #contact .ka-contact-layout{display:grid;grid-template-columns:minmax(0,56%) minmax(0,40%);gap:4%;align-items:center}
.kl7-legacy-home #contact .ka-contact-copy{padding-right:4%}
.kl7-legacy-home #contact .ka-contact-copy>p{margin:0 0 19px}
.kl7-legacy-home #contact .ka-contact-copy .wp-block-buttons{margin:20px 0}
.kl7-legacy-home #contact .ka-contact-copy .wp-block-button__link{background:var(--kl-pink);color:white;border-radius:0}
.kl7-legacy-home #contact figure.ka-founder-image{width:100%;max-width:100%;margin:0;overflow:hidden;background:#ece6e8}
.kl7-legacy-home #contact figure.ka-founder-image img{display:block;width:100%;height:auto;max-height:575px;object-fit:contain;object-position:center top}
.kl7-legacy-home #contact .ka-contact-email a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--kl-pink)}
/* The portfolio shortcode is rendered by the current theme and remains fully styled. */
@media(max-width:1120px){
  .kl7-legacy-home #expertise .ka-expertise-layout{grid-template-columns:1fr;gap:27px}
  .kl7-legacy-home #expertise .ka-expertise-intro{padding-right:0}
  .kl7-legacy-home #home h1{font-size:clamp(56px,7vw,85px)}
}
@media(max-width:780px){
  .kl7-legacy-home #home .ka-hero-grid{display:flex!important;flex-direction:column;min-height:0;grid-template-rows:auto}
  .kl7-legacy-home #home .ka-hero-copy{order:0;padding:54px 6% 41px;width:100%;min-width:0}
  .kl7-legacy-home #home .ka-hero-image{order:1;height:340px!important;min-height:340px!important;width:100%!important;max-width:100%!important;}
  .kl7-legacy-home #home .ka-hero-image img{height:340px!important;min-height:340px!important;position:absolute;object-position:center}
  .kl7-legacy-home #home h1{font-size:clamp(55px,10vw,79px)}
  .kl7-legacy-home #home .ka-actions{flex-wrap:wrap}
  .kl7-legacy-home .ka-section{padding:62px 0}
  .kl7-legacy-home .ka-section-top p:last-child{display:none}
  .kl7-legacy-home .ka-section h2{font-size:clamp(45px,9vw,73px)}
  .kl7-legacy-home #next .ka-next-layout,.kl7-legacy-home #signal .ka-signal-layout,.kl7-legacy-home #model .ka-model-layout,.kl7-legacy-home #contact .ka-contact-layout{grid-template-columns:1fr;gap:28px}
  .kl7-legacy-home #next .ka-next-copy,.kl7-legacy-home #signal .ka-signal-copy,.kl7-legacy-home #contact .ka-contact-copy{padding-right:0}
  .kl7-legacy-home #next .ka-next-media{aspect-ratio:1.5}
  .kl7-legacy-home #contact figure.ka-founder-image{max-width:510px;margin-inline:auto}
}
@media(max-width:570px){
  .kl7-legacy-home #home h1{font-size:clamp(52px,11.2vw,71px)}
  .kl7-legacy-home #home .ka-hero-copy>p.ka-lead{font-size:18px}
  .kl7-legacy-home #home .ka-hero-image,.kl7-legacy-home #home .ka-hero-image img{height:285px!important;min-height:285px!important}
  .kl7-legacy-home #expertise .ka-expertise-grid{grid-template-columns:1fr}
  .kl7-legacy-home #contact .ka-section h2{font-size:clamp(42px,10vw,58px)}
  .kl7-legacy-home .ka-section{padding:53px 0}
}
@media(prefers-reduced-motion:reduce){.kl7-legacy-home *{animation:none!important;transition:none!important}}
/* Native Gutenberg's optional inner-container wrapper in newer layouts. */
@media(min-width:781px){
 .kl7-modern-home #home .kl7-hero-layout:has(>.wp-block-group__inner-container){display:block!important;max-width:1720px;margin:auto}
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container{
   display:grid!important;grid-template-columns:minmax(0,53%) minmax(0,47%);grid-template-rows:minmax(735px,auto);align-items:stretch;gap:0;max-width:none!important;width:100%!important;
 }
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>.kl7-hero-copy{
   grid-column:1;grid-row:1;align-self:center;padding:85px clamp(32px,6vw,112px) 70px max(5vw,calc((100vw - 1450px)/2));
 }
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture{
   grid-column:2;grid-row:1;position:relative;display:block;width:100%;height:100%;min-height:735px;overflow:hidden;
 }
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture img{
   position:absolute;inset:0;width:100%;height:100%;min-height:735px;object-fit:cover;object-position:center;
 }
}
@media(max-width:780px){
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container{display:flex!important;flex-direction:column;width:100%!important;max-width:none!important}
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>.kl7-hero-copy{width:100%;padding:58px 6% 40px}
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture{height:340px;min-height:340px;width:100%;margin:0}
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
}
@media(max-width:560px){
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture{height:280px;min-height:280px}
 .kl7-modern-home #home .kl7-hero-layout>.wp-block-group__inner-container>figure.kl7-hero-picture img{height:280px}
}
/* Keep expertise and other two-column sections intact when a host inserts block wrappers. */
.kl7-legacy-home :is(.ka-expertise-layout,.ka-expertise-grid,.ka-signal-layout,.ka-next-layout,.ka-model-layout,.ka-contact-layout)>.wp-block-group__inner-container,
.kl7-modern-home :is(.kl7-expertise-layout,.kl7-expertise-cards,.kl7-signal-layout,.kl7-next-layout,.kl7-model-layout,.kl7-contact-layout)>.wp-block-group__inner-container {display:contents!important}
.kl7-site :is(.ka-hero-grid,.ka-expertise-layout,.ka-expertise-grid,.ka-signal-layout,.ka-next-layout,.ka-model-layout,.ka-contact-layout,.kl7-hero-layout,.kl7-expertise-layout,.kl7-expertise-cards,.kl7-signal-layout,.kl7-next-layout,.kl7-model-layout,.kl7-contact-layout)>:where(.wp-block-group,.wp-block-image){max-width:none!important;min-width:0;margin-inline:0!important}
