/* LEXVICO | 2026-10-24 | Microsoft Forms + final real-portrait hero corrections.
   All existing approved logos, four cinematic source files, other banners,
   services photos, footer details, and page content remain in place. */

/* Contact dropdown: reuse the exact Services menu behavior and styling. */
body.lex-refined .nav-dropdown-contact > .nav-dropdown-toggle{color:#f8d7a7!important}
body.lex-refined .nav-dropdown-contact .nav-dropdown-menu::before{content:"Get in touch"}
body.lex-refined .nav-dropdown-contact .nav-dropdown-menu a[data-menu-type="contact-general"]::before{content:"Hi";background:#123450}
body.lex-refined .nav-dropdown-contact .nav-dropdown-menu a[data-menu-type="contact-case"]::before{content:"PI";background:#74264e}
body.lex-refined .nav-dropdown-contact .nav-dropdown-menu{min-width:355px}
body.lex-refined .nav-dropdown-contact .nav-dropdown-menu a::after{max-width:270px}

/* Embed frames: keep the approved outer form cards and controlled internal scroll. */
body.lex-refined .lex-microsoft-embed{width:100%;max-width:100%;margin:0 auto;min-width:0}
body.lex-refined .lex-embed-outline{
  overflow:hidden;border:1px solid rgba(104,57,81,.22);border-radius:12px;
  background:#fff;box-shadow:0 12px 32px rgba(16,35,58,.095);min-width:0;
}
body.lex-refined .lex-form-iframe{width:100%;max-width:100%;display:block;border:0;background:#fff;overflow:auto}
body.lex-refined .lex-form-fallback{margin:15px 0 0!important;text-align:center;font-size:13px!important;line-height:1.55!important;color:#485364!important}
body.lex-refined .lex-form-fallback a{color:#74244b!important;text-decoration:underline;text-underline-offset:3px;font-weight:700}
body.lex-refined .lex-microsoft-disclosure{
  margin:23px 0 0;padding:18px 20px;background:#f7f0e9;
  border:1px solid #dfcbb7;border-left:4px solid #d6ac70;border-radius:6px;
  color:#26364b;
}
body.lex-refined .lex-microsoft-disclosure p{font-size:13px!important;line-height:1.65!important;margin:0!important;color:#28344a!important}
body.lex-refined .lex-microsoft-disclosure p + p{margin-top:11px!important}
body.lex-refined .lex-microsoft-disclosure strong{color:#552444}
body.lex-refined .lex-microsoft-disclosure a{color:#74244b!important;text-decoration:underline;text-underline-offset:2px}
body.lex-contact .lex-form-card-heading{margin:0 0 20px;text-align:center;font-size:clamp(31px,2.75vw,42px)!important;color:#23394f!important}
body.lex-contact .form-eyebrow{margin-bottom:5px!important}
body.lex-contact .lex-contact-frame{height:730px!important}
body.lex-start_a_case .lex-evaluation-frame{height:960px!important}
body.lex-contact .contact-layout{
  display:grid!important;
  grid-template-columns:minmax(245px,.73fr) minmax(0,1.35fr)!important;
  grid-template-areas:"details form" "case form"!important;
  align-items:start!important;column-gap:clamp(26px,4.4vw,64px)!important;row-gap:24px!important;
}
body.lex-contact .contact-details{grid-area:details!important;padding:16px 0 0!important}
body.lex-contact .evaluation-card{grid-area:case!important;border-left:0!important;border-top:2px solid #d6ac70!important;
  padding:26px 24px!important;background:#fbf7f1!important;border-radius:9px!important;}
body.lex-contact .form-card{grid-area:form!important;grid-column:auto!important;padding:30px!important;min-width:0!important}
body.lex-start_a_case .form-shell{max-width:1170px!important;margin:0 auto!important;padding:44px clamp(18px,4vw,54px)!important}
body.lex-start_a_case .form-shell .lex-microsoft-embed{max-width:940px!important}
body.lex-start_a_case .form-shell .section-heading{margin-bottom:30px!important}

/* Hero fix 1: the authentic homepage portrait stays upper right, fully clear of copy. */
@media(min-width:901px){
 body.lex-refined.lex-index main>.hero{min-height:700px!important}
 body.lex-refined.lex-index main>.hero>.hero-content{min-height:700px!important;box-sizing:border-box!important;
   width:min(1360px,calc(100% - 100px))!important;max-width:1360px!important;}
 body.lex-refined.lex-index main>.hero .hero-copy-wrap{
   width:min(51%,615px)!important;max-width:615px!important;
   position:relative!important;z-index:4!important;}
 body.lex-refined.lex-index main>.hero h1{font-size:clamp(54px,5.0vw,77px)!important;max-width:580px!important}
 body.lex-refined.lex-index main>.hero .lex-home-portrait{
   position:absolute!important;left:auto!important;right:max(3.5vw,calc((100vw - 1310px)/2))!important;
   top:48%!important;transform:translateY(-50%)!important;z-index:3!important;
   width:clamp(280px,27vw,410px)!important;height:clamp(370px,37vw,500px)!important;margin:0!important;}
}
/* At compact landscape tablet widths, give the copy and portrait separate space. */
@media(min-width:901px) and (max-width:1120px){
 body.lex-refined.lex-index main>.hero .lex-home-portrait{
   right:3vw!important;width:clamp(268px,29vw,350px)!important;height:440px!important;}
 body.lex-refined.lex-index main>.hero .hero-copy-wrap{width:52%!important;max-width:530px!important}
 body.lex-refined.lex-index main>.hero h1{font-size:clamp(53px,5.1vw,67px)!important}
}
/* Mobile hero order is intentionally text followed by the real image. */
@media(max-width:900px){
 body.lex-refined.lex-index main>.hero .lex-home-portrait{
   position:relative!important;top:auto!important;right:auto!important;left:auto!important;
   width:min(455px,89vw)!important;height:420px!important;margin:23px auto 35px!important;
   transform:none!important;}
}

/* Hero fix 2: replace simulated consulting likeness with the real, supplied portrait.
   Photo is displayed unaltered, blended as a CSS layer, never AI synthesized. */
@media(min-width:901px){
 body.lex-refined.lex-consulting main>.consulting-hero>.hero-photo{
   background-image:linear-gradient(90deg,rgba(8,25,43,.58),rgba(12,26,44,.74)),
     url('../assets/refined/adobe-research.jpg')!important;
   background-size:cover!important;background-position:center center!important;}
 body.lex-refined.lex-consulting main>.consulting-hero::before{
   content:"";position:absolute;z-index:1;left:0;top:0;bottom:0;
   width:52%;background-image:url('../assets/refined/portrait-outdoor.png');
   background-repeat:no-repeat;background-size:cover;background-position:center 24%;
   -webkit-mask-image:linear-gradient(to right,#000 0%,#000 73%,transparent 100%);
   mask-image:linear-gradient(to right,#000 0%,#000 73%,transparent 100%);}
 body.lex-refined.lex-consulting main>.consulting-hero>.hero-overlay{
   background:linear-gradient(90deg,rgba(5,18,34,.04) 0%,rgba(5,18,34,.05) 38%,rgba(7,20,37,.7) 57%,rgba(7,20,37,.97) 73%,rgba(7,20,37,.98) 100%)!important;}
 body.lex-refined.lex-consulting main>.consulting-hero>.hero-content{z-index:3!important}
}
@media(max-width:900px){
 body.lex-refined.lex-consulting main>.consulting-hero::before{display:none!important}
 body.lex-refined.lex-consulting main>.consulting-hero>.hero-photo{
   background-image:url('../assets/refined/portrait-outdoor.png')!important;
   background-color:#0b1e33!important;background-position:center 21%!important;
   background-size:cover!important;aspect-ratio:5/4!important;}
}

/* The earlier approved founder bio fix: true vertical portrait at all sizes. */
body.lex-refined.lex-about .founder-photo{aspect-ratio:4/5!important;max-width:435px!important}
body.lex-refined.lex-about .founder-photo img{object-fit:cover!important;object-position:center top!important}

@media(max-width:1020px){
 body.lex-refined .nav-dropdown-contact .nav-dropdown-menu{min-width:0!important}
 body.lex-contact .contact-layout{column-gap:26px!important}
}
@media(max-width:900px){
 body.lex-contact .contact-layout{grid-template-columns:1fr!important;grid-template-areas:"details" "form" "case"!important;row-gap:24px!important}
 body.lex-contact .form-card{padding:24px!important}
 body.lex-contact .evaluation-card{padding:26px 18px!important}
 body.lex-contact .contact-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 23px!important}
 body.lex-contact .contact-details article{margin:0!important}
 body.lex-start_a_case .form-shell{padding:28px 20px!important}
 body.lex-start_a_case .lex-evaluation-frame{height:820px!important}
}
@media(max-width:600px){
 body.lex-contact .contact-layout{gap:22px!important}
 body.lex-contact .contact-details{grid-template-columns:1fr!important}
 body.lex-contact .contact-details article{margin-bottom:0!important}
 body.lex-contact .form-card{padding:16px!important}
 body.lex-contact .lex-contact-frame{height:720px!important}
 body.lex-start_a_case .lex-evaluation-frame{height:800px!important}
 body.lex-start_a_case .form-shell{padding:24px 15px!important}
 body.lex-refined .lex-microsoft-disclosure{padding:15px!important}
 body.lex-refined .lex-microsoft-disclosure p{font-size:12.5px!important}
 body.lex-refined .lex-microsoft-embed{max-width:100%!important}
 body.lex-refined.lex-index main>.hero .lex-home-portrait{height:365px!important;width:min(355px,87vw)!important}
}


/* ===== OCTOBER 24 COMPLETION: FAQ editorial split ===== */
body.lex-faq.lex-refined .faq-section{background:linear-gradient(125deg,#fbf6ef,#f9f2ea)!important;padding:clamp(58px,6vw,98px) 0!important}
body.lex-faq.lex-refined .lex-faq-two-column{display:grid;grid-template-columns:minmax(285px,.83fr) minmax(0,1.42fr);gap:clamp(24px,3.5vw,58px);align-items:start}
body.lex-faq.lex-refined .lex-faq-intro{position:sticky;top:122px;min-width:0;border:1px solid rgba(221,176,115,.48);
 background:linear-gradient(145deg,#0d233b 0%,#122d45 63%,#49243f 100%);
 padding:clamp(30px,3.1vw,50px);box-shadow:0 20px 46px rgba(11,32,55,.16);border-radius:12px}
body.lex-faq.lex-refined .lex-faq-intro .eyebrow{margin:0 0 18px!important;color:#e4bd87!important;font-size:11.5px!important;letter-spacing:.20em!important}
body.lex-faq.lex-refined .lex-faq-intro h2{font-size:clamp(42px,3.6vw,60px)!important;line-height:1.03!important;color:#fff7eb!important;margin:0!important}
body.lex-faq.lex-refined .lex-faq-intro .heading-rule{margin:25px 0 21px!important;background:#d6ac70!important;width:74px!important}
body.lex-faq.lex-refined .lex-faq-intro-copy{font-size:16px!important;line-height:1.76!important;color:#f4e9dd!important;margin:0 0 20px!important}
body.lex-faq.lex-refined .lex-faq-intro-note{font-size:14.5px!important;line-height:1.7!important;color:#e3d8d2!important;margin:0 0 29px!important}
body.lex-faq.lex-refined .lex-faq-intro-action{display:inline-flex!important;align-items:center!important;gap:14px!important;font-size:12px!important}
body.lex-faq.lex-refined .lex-faq-two-column .accordion{width:100%;min-width:0;max-width:none!important;margin:0!important;
 border:1px solid #dfcbb9!important;border-top:4px solid #c99b66!important;border-radius:10px!important;
 background:#fffefa!important;box-shadow:0 18px 40px rgba(21,31,52,.085)!important}
body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger{min-height:83px!important;padding:15px 18px!important;gap:12px!important}
body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger .question-text{font-size:clamp(23px,1.95vw,29px)!important;line-height:1.21!important}
body.lex-faq.lex-refined .lex-faq-two-column .accordion-panel{padding-left:77px!important;padding-right:29px!important}
body.lex-faq.lex-refined .lex-faq-two-column .accordion-panel p{font-size:16px!important;line-height:1.76!important}

/* ===== Free case evaluation: keep the approved real-face case-review banner. ===== */
body.lex-start_a_case.lex-refined main > .hero{min-height:650px!important;align-items:center!important}
body.lex-start_a_case.lex-refined main > .hero > .hero-photo{
 background-image:url('../assets/refined/banner-case-review.png')!important;
 background-size:cover!important;background-position:center 46%!important;
 opacity:1!important;filter:none!important}
body.lex-start_a_case.lex-refined main > .hero > .hero-overlay{
 background:linear-gradient(90deg,rgba(6,20,36,.99) 0%,rgba(7,22,39,.965) 27%,
 rgba(8,22,39,.88) 41%,rgba(8,22,39,.52) 55%,rgba(7,22,39,.12) 72%,rgba(7,22,39,.04) 100%)!important}
body.lex-start_a_case.lex-refined main > .hero > .hero-content{
 width:min(1300px,calc(100% - 90px))!important;max-width:1300px!important;min-height:650px!important;
 padding:64px 0!important;justify-content:center!important}
body.lex-start_a_case.lex-refined main > .hero h1{max-width:615px!important;font-size:clamp(62px,5.45vw,84px)!important;color:#fffaf3!important;
 line-height:.95!important;text-shadow:0 4px 18px rgba(0,0,0,.16)!important}
body.lex-start_a_case.lex-refined main > .hero .hero-lead{max-width:565px!important;color:#fff4df!important;
 font-size:clamp(21px,1.7vw,25px)!important;line-height:1.28!important;margin:4px 0 14px!important}
body.lex-start_a_case.lex-refined main > .hero .hero-copy{max-width:565px!important;color:#f2e9de!important;
 font-size:15px!important;line-height:1.65!important;margin-bottom:0!important}
body.lex-start_a_case.lex-refined main > .hero .heading-rule{margin:19px 0 22px!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust{max-width:565px!important;width:100%;
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:0!important;margin-top:27px!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust article{padding:0 13px!important;
 border-right:1px solid rgba(229,191,141,.40)!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust article:first-child{padding-left:0!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust article:last-child{border-right:0!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust .mini-icon{
 display:grid!important;place-items:center!important;width:47px!important;height:47px!important;
 color:#f6cf93!important;border:1.5px solid #d4a76c!important;
 background:rgba(11,32,53,.48)!important;font-size:24px!important;line-height:1!important}
body.lex-start_a_case.lex-refined main > .hero .hero-trust span{
 display:block!important;margin-top:10px!important;font-size:11.5px!important;line-height:1.42!important;
 color:#fff4e5!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.028em!important}

/* Contact and case embeds fill their original large cards and scroll internally. */
body.lex-contact.lex-refined .form-card .lex-embed-outline,body.lex-start_a_case.lex-refined .form-shell .lex-embed-outline{border-color:#c9ab92!important}
body.lex-contact.lex-refined .form-card .lex-form-iframe{min-height:740px!important}
body.lex-start_a_case.lex-refined .form-shell .lex-form-iframe{min-height:980px!important}

@media(max-width:1120px){
 body.lex-faq.lex-refined .lex-faq-two-column{grid-template-columns:minmax(250px,.8fr) minmax(0,1.35fr)!important;gap:22px!important}
 body.lex-faq.lex-refined .lex-faq-intro{padding:30px!important}
 body.lex-faq.lex-refined .lex-faq-intro h2{font-size:clamp(37px,4.2vw,52px)!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger .question-text{font-size:clamp(23px,2.4vw,27px)!important}
 body.lex-start_a_case.lex-refined main > .hero > .hero-overlay{background:linear-gradient(90deg,rgba(6,20,36,.99),rgba(6,20,36,.9) 37%,rgba(7,22,39,.44) 65%,rgba(7,22,39,.07))!important}
 body.lex-start_a_case.lex-refined main > .hero h1{font-size:clamp(58px,5.9vw,72px)!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-copy{font-size:14.5px!important}
}
@media(max-width:900px){
 body.lex-faq.lex-refined .lex-faq-two-column{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 body.lex-faq.lex-refined .lex-faq-intro{position:static!important;padding:32px 30px!important}
 body.lex-faq.lex-refined .lex-faq-intro h2{font-size:clamp(42px,7vw,54px)!important}
 body.lex-faq.lex-refined .lex-faq-intro-copy{max-width:680px!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger .question-text{font-size:clamp(24px,3.6vw,28px)!important}
 body.lex-start_a_case.lex-refined main > .hero{display:flex!important;flex-direction:column!important;min-height:0!important;align-items:stretch!important;background:#071a2f!important}
 body.lex-start_a_case.lex-refined main > .hero > .hero-content{order:1!important;align-self:center!important;width:calc(100% - 50px)!important;
  min-height:0!important;margin:0 auto!important;padding:51px 0 34px!important}
 body.lex-start_a_case.lex-refined main > .hero > .hero-photo{order:2!important;position:relative!important;inset:auto!important;
  width:100%!important;height:clamp(255px,54vw,440px)!important;aspect-ratio:auto!important;
  background-position:67% 42%!important;flex:0 0 auto!important}
 body.lex-start_a_case.lex-refined main > .hero > .hero-overlay{display:none!important}
 body.lex-start_a_case.lex-refined main > .hero h1{font-size:clamp(56px,8.2vw,73px)!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-lead{font-size:23px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-copy{font-size:15px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-trust{max-width:690px!important}
 body.lex-start_a_case.lex-refined .form-shell .lex-form-iframe{min-height:850px!important}
}
@media(max-width:620px){
 body.lex-faq.lex-refined .faq-section{padding:42px 0!important}
 body.lex-faq.lex-refined .lex-faq-intro{padding:25px 21px!important}
 body.lex-faq.lex-refined .lex-faq-intro h2{font-size:clamp(39px,11vw,51px)!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger{min-height:73px!important;padding:13px 12px!important;gap:10px!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-trigger .question-text{font-size:clamp(21px,5.7vw,25px)!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-panel{padding-left:20px!important;padding-right:20px!important}
 body.lex-faq.lex-refined .lex-faq-two-column .accordion-panel p{font-size:16px!important}
 body.lex-start_a_case.lex-refined main > .hero > .hero-content{width:calc(100% - 36px)!important;padding:43px 0 30px!important}
 body.lex-start_a_case.lex-refined main > .hero h1{font-size:clamp(55px,11.8vw,65px)!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-lead{font-size:20px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-copy{font-size:14px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-trust article{padding:0 7px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-trust span{font-size:10px!important}
 body.lex-start_a_case.lex-refined main > .hero .hero-trust .mini-icon{width:42px!important;height:42px!important;font-size:21px!important}
 body.lex-contact.lex-refined .form-card .lex-form-iframe{min-height:720px!important}
 body.lex-start_a_case.lex-refined .form-shell .lex-form-iframe{min-height:810px!important}
}

/* Mobile finishing touch: no empty 200px vertical spacer before the home headline. */
@media(max-width:900px){
 body.lex-index.lex-refined main>.hero{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   justify-content:flex-start!important;min-height:0!important;padding:0!important;
 }
 body.lex-index.lex-refined main>.hero>.hero-content{
   order:1!important;min-height:0!important;width:calc(100% - 44px)!important;
   max-width:680px!important;align-self:center!important;display:flex!important;
   align-items:flex-start!important;justify-content:flex-start!important;
   padding:44px 0 10px!important;margin:0 auto!important;
 }
 body.lex-index.lex-refined main>.hero .hero-copy-wrap{
   width:100%!important;max-width:680px!important;margin:0!important;
 }
 body.lex-index.lex-refined main>.hero .lex-home-portrait{
   order:2!important;position:relative!important;display:block!important;left:auto!important;
   right:auto!important;top:auto!important;transform:none!important;
   margin:26px auto 40px!important;width:min(405px,calc(100% - 48px))!important;
   height:clamp(345px,110vw,450px)!important;
 }
}
@media(max-width:620px){
 body.lex-index.lex-refined main>.hero>.hero-content{padding-top:32px!important}
 body.lex-index.lex-refined main>.hero .hero-copy-wrap h1{font-size:clamp(45px,12.2vw,60px)!important;line-height:1.02!important}
 body.lex-index.lex-refined main>.hero .lex-home-portrait{height:365px!important;width:min(355px,calc(100% - 48px))!important}
}
@media(max-width:900px){
 body.lex-index.lex-refined main>.hero>.hero-image{
   position:absolute!important;inset:0!important;order:0!important;display:block!important;
   height:100%!important;width:100%!important;min-height:0!important;aspect-ratio:auto!important;
   opacity:.11!important;pointer-events:none!important;
 }
}
