/* White-hole edition: the existing layout and dark palette remain untouched. */
body .nav .public-theme-toggle{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:44px;padding:0 12px;border:1px solid #d4a47b55;border-radius:7px;background:#141311;color:#eadfd3;font:500 12px 'DM Sans',sans-serif;cursor:pointer;order:7}
.public-theme-toggle>span:first-child{font-size:20px;line-height:1}
.public-theme-toggle:focus-visible{outline:2px solid #98704c;outline-offset:4px}
html[data-public-theme=light]{color-scheme:light;background:#e9edf3}
html:root[data-public-theme=light] body:is(.landing-page,.public-detail){--ink:#242c38;--paper:#e9edf3;--white:#ffffff;--muted:#455467;--line:#a8b5c666;--copper:#885c36;--bronze:#885c36;background:#e9edf3;color:#242c38;color-scheme:light}
html:root[data-public-theme=light] body::before{background:radial-gradient(ellipse at 65% 55%,#ffffff,#e9edf3 70%)}
html:root[data-public-theme=light] body :is(h1,h2,h3,h4,.hero-content h1 em,.section h2,.section h3,.navigation-statement){color:#242c38}
html:root[data-public-theme=light] body :is(p,li,label,legend,small,.hero-copy,.cta-note,.section-intro,.world-feature-copy>p,.case-caption,.metric-label,.navigation-note,.export-note,.disclaimer,.footer-company,.footer-legal,.form-note,.form-foot){color:#455467}
html:root[data-public-theme=light] body :is(h1 em,h2 em,h3 em,.eyebrow,.eyebrow.dark,.card-number,.card-number span,.method-number,.method-label,.navigation-kicker,.navigation-number,.world-rail a,.metric-overline,.metrics strong){color:#885c36}
html:root[data-public-theme=light] body :is(.section,.studio-intro,.journey,.journey-stage,.case-section,.expertise-card,.expertise-card:hover,.service-hero,.service-cta,.hero,.automation){background:transparent;border-color:var(--line);color:#242c38}
html:root[data-public-theme=light] body :is(.hero-content,.world-intro-stage,.expertise .section-heading){background:transparent}
html:root[data-public-theme=light] body :is(.nav,.nav.is-scrolled,.public-header){background:#e9edf3eb;border-color:var(--line);box-shadow:0 1px 0 #a8b5c625}
html:root[data-public-theme=light] body .nav :is(a,.secure-access),html:root[data-public-theme=light] body .navigation-bottom>a{color:#67513e}
html:root[data-public-theme=light] body :is(.navigation-toggle,.public-theme-toggle,.language-switch,.navigation-close,.navigation-motion,.world-motion,.detail-motion){background:#ffffff;color:#67513e;border-color:#a8b5c688}
html:root[data-public-theme=light] body .navigation-dialog{background:#e9edf3;color:#242c38;border-color:#a8b5c688;box-shadow:0 30px 100px #59412833;scrollbar-color:#b49a7e #e9edf3}
html[data-public-theme=light] .navigation-dialog::backdrop{background:#4c423959}
html:root[data-public-theme=light] body :is(.navigation-links>a,.navigation-languages a,.mobile-dock>a,.mobile-dock>button){color:#51483f;border-color:#a8b5c666}
html:root[data-public-theme=light] body :is(.mobile-dock,.navigation-panel){background:#ffffffb8;box-shadow:0 10px 40px #59412814}
html:root[data-public-theme=light] body .mobile-dock [aria-current]{background:#eadbc9;color:#654323}
html:root[data-public-theme=light] body :is(.button,.nav .nav-cta,.hero-actions .button,.navigation-contact,.language-switch a[aria-current=page],.navigation-languages a[aria-current=page],.demo-toolbar .primary){background:#d4a47b;border-color:#b68860;color:#241a13}
html:root[data-public-theme=light] body :is(.button,.nav-cta,.navigation-contact) span{color:inherit}
html:root[data-public-theme=light] body :is(.button:hover,.nav-cta:hover,.navigation-contact:hover){background:#dfb68f;color:#241a13}
html:root[data-public-theme=light] body :is(.hero-proof,.case-panel,.case-metric,.privacy-principles article,.diagnostic :where(#lead-form),.demo-shell,.metrics article,.needs,.process,.callout,.legal-table,.editorial-card,.project-card){background:#ffffffe0;color:#242c38;border-color:#a8b5c666;box-shadow:0 14px 45px #5941280a}
html:root[data-public-theme=light] body :is(.hero-proof strong,.hero-proof span,.case-story h2,.case-metric strong,.journey-flow,.journey-flow li,.case-capabilities span,.footer-brand p){color:#51483f}
html:root[data-public-theme=light] body :is(.journey-link,.card-foot,.service-page-links a,.legal-nav a,.legal-page article a,.footer-legal a,.footer-company a){color:#885c36;border-color:#a8b5c666}
html:root[data-public-theme=light] body :is(.card-foot,.service-page-links,.legal-nav a,.demo-toolbar button,.fake-badge){background:#e8edf3;color:#67513e;border-color:#a8b5c688}
html:root[data-public-theme=light] body :is(.method,.privacy-commitment,.diagnostic,.disclaimer,footer,.public-footer),html:root[data-public-theme=light] body.world-ready.world-finale-active footer{background:#e9edf3cf;border-color:#a8b5c666;color:#51483f}
html:root[data-public-theme=light] body :is(input,textarea,select,.table-wrap input){background:#ffffff;color:#242c38;border-color:#b09b82;color-scheme:light}
html:root[data-public-theme=light] body :is(input,textarea)::placeholder{color:#647185;opacity:1}
html:root[data-public-theme=light] body :is(th,.table-wrap th){background:#e8edf3;color:#51483f;border-color:#a8b5c666}
html:root[data-public-theme=light] body :is(td,.table-wrap td){background:#ffffff;color:#242c38;border-color:#a8b5c666}
html:root[data-public-theme=light] body :is(.positive,.form-success){color:#286348}
html:root[data-public-theme=light] body :is(.negative,.form-error){color:#a0352d}
html:root[data-public-theme=light] body .detail-atmosphere::after{background:linear-gradient(90deg,#e9edf3bb,transparent 85%)}
html:root[data-public-theme=light] body .world-feature-copy::before{background:radial-gradient(ellipse,#e9edf3dd,transparent 75%)}
html:root[data-public-theme=light] body ::selection{background:#dfc29f;color:#242c38}
@media(max-width:767px){
 html:root[data-public-theme=light] body :is(.hero-copy,.cta-note){background:linear-gradient(90deg,#e9edf3d9,#e9edf399 75%,transparent);border-radius:8px;padding:8px 10px;text-shadow:none}
 body.navigation-ready .nav{grid-template-columns:minmax(112px,1fr) 44px 44px!important;gap:8px!important}
 body.navigation-ready .nav .language-switch,body.navigation-ready .nav .secure-access{display:none}
 body.navigation-ready .nav .brand img{width:132px!important;max-width:100%!important}
 body.navigation-ready .nav .public-theme-toggle{grid-column:2;grid-row:1;width:44px;min-height:44px;padding:0}
 body.navigation-ready .nav .public-theme-toggle>span:last-child{display:none}
 body.navigation-ready .nav .navigation-toggle{grid-column:3;width:44px;min-height:44px}
 body .navigation-languages a{width:44px;height:44px}
 html:root[data-public-theme=light] body :is(.world-feature-copy,.world-ready .world-feature-copy){background:linear-gradient(#e9edf3f5,#e9edf3fc);box-shadow:0 -16px 28px #e9edf3d9}
 html:root[data-public-theme=light] body .detail-atmosphere::after{background:#e9edf370}
}
@media(prefers-reduced-motion:reduce){html:root[data-public-theme=light] body::before{background:radial-gradient(ellipse at 70% 30%,#f4f7fa 5%,#cad9e5 30%,#e9edf3 75%)}}

html:root[data-public-theme=light] body :is(.brand,.footer-brand,.navigation-top) img[src$="karvanis-wordmark-clean.svg"]{content:url('/assets/karvanis-wordmark-light.svg')}
html:root[data-public-theme=light] body.landing-page .nav .language-switch,html:root[data-public-theme=light] body.public-detail .nav .language-switch{background:#ffffff;border-color:#a8b5c688}
html:root[data-public-theme=light] body :is(.landing-project,.landing-client,.work-card,.project-intro,.project-scope,.project-note,.contact-panel,.contact-direct-panel){background:#ffffffe0;color:#242c38;border-color:#a8b5c666}
html:root[data-public-theme=light] body :is(.landing-project-kind,.work-category,.landing-project a,.landing-client a,.landing-projects-more,.journey-bottom,.journey-bottom span,.footer-bottom,.footer-bottom a,.contact-meta span){color:#885c36}
html:root[data-public-theme=light] body :is(.landing-project p,.landing-client p,.work-features li,.work-external){color:#455467}
html:root[data-public-theme=light] body :is(.landing-project h3,.landing-project h4,.landing-client h3){color:#242c38}

html:root[data-public-theme=light] body.public-detail :where(.editorial-section,.service-editorial,.hero-grid aside,.editorial-contact #lead-form,.need-copy){background:#ffffffe0;color:#242c38;border-color:#a8b5c666}
html:root[data-public-theme=light] body.public-detail :is(p,.lead,.editorial-note,.public-footer-bottom,.public-footer-columns a,.public-footer-columns strong,summary,.editorial-facts strong,.editorial-facts span){color:#455467}
html:root[data-public-theme=light] body.public-detail :is(.work-section-nav a,.editorial-section a:not(.button),.service-editorial a:not(.button),.public-header nav a[aria-current=page]){color:#885c36}
html:root[data-public-theme=light] body.public-detail :is(.hero-grid>div,.demo-hero){background:transparent}
html:root[data-public-theme=light] body .nav.nav-scroll-aware{background:#e9edf3}
html:root[data-public-theme=light] body :is(.form-heading,.copy-request,.form-heading span,.contact-direct-note a,.privacy-note summary){color:#885c36}
html:root[data-public-theme=light] body .public-footer-top img[src$="karvanis-wordmark-clean.svg"]{content:url('/assets/karvanis-wordmark-light.svg')}
html:root[data-public-theme=light] body #lead-form :is(p,label,legend,summary,a,.copy-request,.form-heading,.form-heading span){color:#67513e}
html:root[data-public-theme=light] body :is(.journey-location,.journey-bottom span,.contact-benefits span,.privacy-principles article>span,.footer-company span,.footer-company strong,.footer-cta,.footer-cta span){color:#67513e}
html:root[data-public-theme=light] body.public-detail.legal-page :is(.hero>div,.legal-nav a[aria-current=page]){color:#67513e}
html:root[data-public-theme=light] body #lead-form :is(input,textarea){background:#ffffff;color:#242c38;border-color:#b09b82;color-scheme:light}
html:root[data-public-theme=light] body #lead-form :is(input,textarea)::placeholder{color:#647185}
html:root[data-public-theme=light] body .contact-details span{background:#e8edf3;color:#67513e;border-color:#a8b5c688}
html:root[data-public-theme=light] body footer :is(strong,span){color:#67513e}

/* Clear glass navigation stays translucent in both scroll states. */
/* Light surfaces retain contrast without stark white blocks over the nebula. */
html:root[data-public-theme=light] body :is(.hero-proof,.privacy-principles article,.diagnostic :where(#lead-form),.landing-project,.landing-client,.contact-panel,.contact-direct-panel){background:linear-gradient(135deg,#edf2f5e8,#dbe5ecdb);border-color:#ffffff88;box-shadow:inset 0 1px 0 #ffffff80,0 16px 40px #23344b0c;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html:root[data-public-theme=light] body #lead-form :is(input,textarea){background:#f1f5f7d9;border-color:#8c9da980;color:#242c38}
html:root[data-public-theme=light] body :is(footer,.public-footer),html:root[data-public-theme=light] body.world-ready.world-finale-active footer{background:linear-gradient(160deg,#e5edf2eb,#cddbe6f5);color:#354355;border-color:#91a5b566}
html:root[data-public-theme=light] body :is(.footer-signature,.public-footer-signature){opacity:.72;filter:none;border-color:#91a5b54d;text-shadow:none}
html:root[data-public-theme=light] body :is(.footer-signature,.public-footer-signature) img{content:url('/assets/karvanis-wordmark-light.svg');width:min(100%,1200px);height:auto;object-fit:contain;filter:none;mix-blend-mode:normal}
html:root[data-public-theme=light] body footer .brand img{filter:none}
html:root[data-public-theme=light] body .footer-top :is(p,a){color:#354355}
html:root[data-public-theme=light] body .footer-bottom{background:transparent;border-color:#91a5b54d}
html:root[data-public-theme=light] body :is(.nav,.nav.is-scrolled,.nav.nav-scroll-aware,.public-header){background:#f3f6fa80;backdrop-filter:blur(16px) saturate(115%);-webkit-backdrop-filter:blur(16px) saturate(115%);border-color:#ffffff80;box-shadow:0 1px 16px #23344b0a}
html:root[data-public-theme=light] body .world-feature-copy{background:#f1f5f9db;border:1px solid #ffffff70;border-radius:18px;padding:24px;backdrop-filter:blur(10px)}
@media(max-width:767px){
 html:root[data-public-theme=light] body :is(.hero-copy,.cta-note){background:#f2f6fae8;color:#354355}
 html:root[data-public-theme=light] body .hero-content h1{text-shadow:0 1px 12px #ffffffcc}
}

/* Reading areas remain legible regardless of the moving source's position. */
html:root[data-public-theme=light] body{--light-surface:linear-gradient(135deg,#edf2f5f5,#dce6edf0)}
html:root[data-public-theme=light] body :is(.landing-project-heading,.method-heading,.privacy-heading,.contact-copy){background:var(--light-surface);border:1px solid #ffffff80;border-radius:18px;padding:clamp(22px,3vw,40px);box-sizing:border-box}
html:root[data-public-theme=light] body :is(.world-intro-stage,.expertise .section-heading){background:linear-gradient(180deg,transparent 18%,#e7eef4eb 43%,#e7eef4fa 100%)}
html:root[data-public-theme=light] body.public-detail .detail-canvas{opacity:.45}
html:root[data-public-theme=light] body.public-detail :is(.editorial-section,.service-editorial,.work-section,.editorial-contact,.project-section,.process,.needs,.automation,.service-cta){background:linear-gradient(180deg,#e7eef400,#e7eef4e6 90px,#e7eef4e6 calc(100% - 90px),#e7eef400)}
html:root[data-public-theme=light] body :is(.work-card,.editorial-card,.project-card,.demo-shell,.metrics article,.hero-grid aside,.editorial-contact :where(#lead-form),.need-copy,.project-intro,.project-scope,.project-note){background:var(--light-surface);border-color:#99aaba66;border-radius:16px;box-shadow:0 12px 35px #23344b08}
html:root[data-public-theme=light] body .hero-grid aside{padding:26px}
html:root[data-public-theme=light] body :is(.metrics span,.neutral,.demo-message,.breadcrumb,.journey-bottom,.scroll-note){color:#455467}
html:root[data-public-theme=light] body :is(.status.ok){background:#e0eee6;color:#20583d}
html:root[data-public-theme=light] body .status.warning{background:#f3e6cd;color:#704716}
html:root[data-public-theme=light] body .avatar{background:#dfc9b5;color:#513923}
html:root[data-public-theme=light] body :is(.button,.nav .nav-cta,.navigation-contact,.demo-toolbar button,.copy-request){border-radius:12px}
html:root[data-public-theme=light] body :is(.detail-motion,.world-motion){left:auto;right:22px;bottom:18px;border-radius:12px;min-height:40px;font-size:12px}
html:root[data-public-theme=light] body :is(a,button,input,textarea,summary):focus-visible{outline:2px solid #76502f;outline-offset:4px}
@media(max-width:767px){
 html:root[data-public-theme=light] body.landing-page .hero-content{background:linear-gradient(180deg,#e7eef4f2 0%,#e7eef4eb 62%,#e7eef4b3 82%,transparent 100%)}
 html:root[data-public-theme=light] body :is(.hero-copy,.cta-note){background:transparent;padding:0;box-shadow:none}
 html:root[data-public-theme=light] body .hero-content h1{text-shadow:none}
 html:root[data-public-theme=light] body :is(.contact-copy,.method-heading,.privacy-heading,.landing-project-heading){padding:22px 18px}
 html:root[data-public-theme=light] body :is(.detail-motion,.world-motion){bottom:96px;right:16px}
}
html:root[data-public-theme=light] body #lead-form[data-direct=true] #prepare-request{background:transparent;color:#51483f;border:1px solid #8c9da980;box-shadow:none}


html:root[data-public-theme=light] body #lead-form{background:var(--light-surface);border:1px solid #99aaba66;border-radius:16px;box-shadow:0 12px 35px #23344b08}


/* Official navigation wordmark, with its bronze mark intact in every footer. */
html:root body :is(.footer-signature,.public-footer-signature){opacity:.72;filter:none}
html:root body :is(.footer-signature,.public-footer-signature) img{width:min(100%,1200px);height:auto;object-fit:contain;filter:none;mix-blend-mode:normal}
html:root body footer .brand img{filter:none;mix-blend-mode:normal}

/* Phone calibration: protect small labels and keep the action reachable in short stages. */
@media(max-width:767px){
 html:root[data-public-theme=light] body.landing-page .world-canvas{filter:brightness(.94) saturate(.88)}
 html:root[data-public-theme=light] body .studio-intro{padding-inline:0}
 html:root[data-public-theme=light] body .world-intro-stage{padding-inline:7%;background:linear-gradient(180deg,transparent 12%,#e7eef4e8 38%,#e7eef4f5 88%,transparent 100%)}
 html:root[data-public-theme=light] body .landing-projects .case-head>.eyebrow{display:table;padding:8px 12px;border-radius:8px;background:#e7eef4f5;color:#684426}
 html:root[data-public-theme=light] body.world-ready .world-feature-copy{padding:16px;border-radius:14px;background:#e7eef4f5;border-color:#b4c3cf;box-shadow:0 6px 24px #23344b12;scroll-padding-block:16px 72px}
 html:root[data-public-theme=light] body.world-ready .expertise-card h3{font-size:clamp(26px,7.4vw,31px);margin-bottom:12px}
 html:root[data-public-theme=light] body.world-ready .expertise-card .card-number{margin-bottom:12px;color:#684426}
 html:root[data-public-theme=light] body.world-ready .expertise-card .card-foot{position:sticky;bottom:-16px;z-index:1;margin:0 -16px -16px;padding:14px 16px;min-height:48px;background:#dce6ee;border-top:1px solid #a4b7c6;color:#684426;box-shadow:0 -8px 12px #e7eef4e8}
 html:root[data-public-theme=light] body .scroll-note{color:#354355;background:#e7eef4ed;padding:8px 12px;border-radius:8px}
 html:root[data-public-theme=light] body .mobile-dock{background:#f0f5f9f2;border-color:#b4c3cf;box-shadow:0 4px 18px #23344b20}
}
