/* LEKSO Systems - style.css v5.0 */
:root{--bg:#0c1017;--panel:rgba(20,27,38,.88);--line:#263244;--tx:#e8eef7;--mut:#8b9bb2;--cy:#35e6ff;--vi:#8a6bff;--am:#ffb347;--hd:'Chakra Petch','Segoe UI',sans-serif;--hh:76px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;background:var(--bg);color:var(--tx);font:500 16px/1.65 Manrope,system-ui,sans-serif;overflow-x:hidden;min-width:320px}
h1,h2,h3,h4{font-family:var(--hd);margin:0;line-height:1.12;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--cy);outline-offset:3px}
img{max-width:100%}
.container{max-width:1180px;margin:0 auto;padding:0 24px}
.hidden{display:none!important}
#net{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
main,.site-footer{position:relative;z-index:1}

/* Header: logo is larger than the bar and bleeds over its bottom edge */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--hh);background:rgba(12,16,23,.8);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-flex{display:flex;align-items:center;justify-content:space-between;height:100%}
.brand-logo{position:relative;display:block;width:310px;height:100%}
.full-logo-img{position:absolute;left:0;top:16px;height:118px;width:auto;max-width:none;filter:brightness(1.2) contrast(1.05) drop-shadow(0 10px 16px rgba(0,0,0,.6))}

/* Desktop: Hide the compact mobile logo */
.mobile-brand-logo {
    display: none;
}

.nav-links{display:flex;align-items:center;gap:30px;font-size:14.5px;color:var(--mut)}
.nav-links a:hover{color:var(--cy)}
.nav-links .nav-cta{color:#04070c;font-weight:700;padding:11px 22px;background:linear-gradient(100deg,var(--cy),var(--vi));clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
.nav-links .nav-cta:hover{color:#04070c;filter:brightness(1.15)}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;padding:10px}
.nav-toggle .bar{display:block;height:2px;background:var(--tx);margin:6px 0;transition:.25s}
.nav-toggle.toggle-active .bar:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle.toggle-active .bar:nth-child(2){opacity:0}
.nav-toggle.toggle-active .bar:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* Buttons */
.btn{display:inline-block;font:700 15px/1 Manrope,sans-serif;padding:16px 28px;border:0;cursor:pointer;color:#04070c;background:linear-gradient(100deg,var(--cy),var(--vi));clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);transition:filter .2s,transform .2s}
.btn:hover{filter:brightness(1.15);transform:translateY(-2px)}
.btn:disabled{opacity:.6;cursor:wait;transform:none}
.btn-outline{background:var(--line);color:var(--tx)}.btn-outline:hover{background:#34445c}

/* Hero */
.hero-section{position:relative;
	min-height:100svh;
	display:flex;
	align-items:center;
	padding:150px 0 90px;
	overflow:hidden
}

.hero-content{position:relative;z-index:2;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center}
.hero-tagline{font:500 13px 'JetBrains Mono',monospace;color:var(--cy);margin:0 0 18px}
h1{font-size:clamp(34px,4.8vw,66px);font-weight:600}
h1 .soft{display:block;background:linear-gradient(100deg,#e9eff8,#8396b2);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:500}
.hero-subtext{max-width:580px;color:var(--mut);font-size:18px;margin:24px 0 32px}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:38px;font:500 12.5px 'JetBrains Mono',monospace;color:var(--mut)}
.tags span{border:1px solid var(--line);padding:6px 12px;background:rgba(20,27,38,.6)}
.hero-visual{position:relative;display:flex;justify-content:center;perspective:900px}
.hero-emblem{width:90%;max-width:430px;height:auto;filter:drop-shadow(0 0 50px rgba(53,230,255,.25)) drop-shadow(0 24px 30px rgba(0,0,0,.6));will-change:transform}
.hud{position:absolute;left:-2%;bottom:2%;background:rgba(20,27,38,.92);border:1px solid var(--line);padding:14px 18px;clip-path:polygon(10px 0,100% 0,100% 100%,0 100%,0 10px)}
.hud b{font:700 28px var(--hd);color:var(--cy)}.hud small{display:block;color:var(--mut);font-size:12px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3dff9a;margin-right:8px;box-shadow:0 0 10px #3dff9a;animation:p 1.6s infinite}@keyframes p{50%{opacity:.3}}

/* Sections */
.section{padding:110px 0}
.section-header{max-width:720px;margin-bottom:54px}
.section-tagline{font:500 13px 'JetBrains Mono',monospace;color:var(--cy);margin:0 0 14px}
.section-header h2,.about-content h2{font-size:clamp(28px,3.8vw,46px)}
.section-subtext{color:var(--mut);margin:16px 0 0;font-size:18px}
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.service-card,.highlight-card{--x:50%;--y:50%;position:relative;background:var(--panel);overflow:hidden;transition:transform .3s}
.service-card{padding:36px;clip-path:polygon(26px 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%,0 26px)}
.service-card::before{content:"";position:absolute;inset:0;background:radial-gradient(340px circle at var(--x) var(--y),rgba(53,230,255,.16),transparent 60%);opacity:0;transition:opacity .3s}
.service-card:hover::before{opacity:1}.service-card:hover{transform:translateY(-4px)}
.service-card .ic{width:50px;height:50px;color:var(--cy)}
.service-card:nth-child(2) .ic{color:var(--vi)}.service-card:nth-child(3) .ic{color:var(--am)}.service-card:nth-child(4) .ic{color:#3dff9a}
.service-card h3{font-size:21px;margin:18px 0 10px}.service-card p{margin:0;color:var(--mut)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.about-text-lead{font-size:19px;margin:22px 0 14px}.about-text{color:var(--mut);margin:0}
.about-highlights{display:grid;gap:16px}
.highlight-card{display:flex;gap:20px;padding:26px 28px;border:1px solid var(--line);clip-path:polygon(18px 0,100% 0,100% 100%,0 100%,0 18px)}
.highlight-number{font:700 26px var(--hd);background:linear-gradient(135deg,var(--cy),var(--vi));-webkit-background-clip:text;background-clip:text;color:transparent}
.highlight-card h3{font-size:18px;margin-bottom:6px}.highlight-card p{margin:0;color:var(--mut);font-size:15px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.steps div{padding:30px 26px 6px 0;margin-right:26px;border-right:1px solid var(--line)}.steps div:last-child{border:0;margin:0}
.steps i{font:500 13px 'JetBrains Mono',monospace;color:var(--cy);font-style:normal}
.steps h3{font-size:19px;margin:10px 0}.steps p{margin:0;color:var(--mut);font-size:15px}

/* Contact + form */
.contact-wrapper{display:block}
.contact-info a{display:block;padding:18px 0;border-bottom:1px solid var(--line);font-size:18px}
.contact-info small{display:block;color:var(--mut);font-size:13px}.contact-info a:hover span{color:var(--cy)}
.inquiry-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.full-width,.questionnaire-fields{grid-column:1/-1}
.questionnaire-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group label,.form-label{display:block;font-size:13.5px;color:var(--mut);margin-bottom:6px}
input[type=text],input[type=email],select,textarea{width:100%;background:rgba(20,27,38,.9);border:1px solid var(--line);color:var(--tx);padding:14px 16px;font:inherit;font-size:15px;border-radius:0}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--cy);box-shadow:0 0 0 3px rgba(53,230,255,.15)}
textarea{min-height:140px;resize:vertical}select option{background:#141b26}
.radio-group{display:flex;gap:12px;flex-wrap:wrap}
.radio-option{position:relative;cursor:pointer}
.radio-option input{position:absolute;opacity:0}
.radio-option span{display:block;padding:12px 20px;border:1px solid var(--line);background:rgba(20,27,38,.9);color:var(--mut);font-size:14.5px;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
.radio-option input:checked+span{color:#04070c;font-weight:700;background:linear-gradient(100deg,var(--cy),var(--vi));border-color:transparent}
.radio-option input:focus-visible+span{outline:2px solid var(--cy);outline-offset:2px}
.btn-submit{width:100%}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Modal */
.modal-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(6,9,14,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:.25s}
.modal-overlay.active{opacity:1;visibility:visible}
.modal-card{max-width:460px;width:100%;padding:36px;background:#141b26;border:1px solid var(--line);text-align:center;clip-path:polygon(24px 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%,0 24px)}
.modal-title{font-size:24px;margin-bottom:12px}.modal-message{color:var(--mut);margin:0 0 24px}

/* Footer */
.site-footer{border-top:1px solid var(--line);padding:56px 0 28px;background:rgba(10,13,19,.85)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px}
.footer-logo-img{height:84px;width:auto;filter:brightness(1.15)}
.footer-tagline{color:var(--mut);max-width:360px;font-size:14.5px;margin:14px 0 0}
.footer-col h4{font-size:15px;margin-bottom:14px}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14.5px;color:var(--mut)}.footer-links a:hover{color:var(--cy)}
.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid var(--line);color:var(--mut);font-size:13.5px}.footer-bottom p{margin:0}

/* Tablet / mobile */
@media(max-width:900px){
  :root{--hh:68px}
  
  /* Hide desktop bleeding logo on mobile */
  .brand-logo {
    display: none !important;
  }

  /* Show and style compact mobile logo on mobile screens */
  .mobile-brand-logo {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
  }

  .mobile-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.15) contrast(1.05);
  }

  .nav-toggle{display:block; z-index: 70;}
  
  .site-header {
    z-index: 60;
  }

  .nav-links{
    position:fixed;
    top:var(--hh);
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:24px;
    background:rgba(12,16,23,.98);
    border-bottom:1px solid var(--line);
    transform:translateY(-130%);
    transition:transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index:55;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }
  .nav-links.nav-active{transform:none}
  .nav-links a{padding:14px 0;border-bottom:1px solid var(--line)}.nav-links .nav-cta{margin-top:14px;text-align:center;border:0}
  .hero-content,.about-grid,.contact-wrapper,.footer-grid,.services-grid{grid-template-columns:1fr}
  .hero-section{padding:150px 0 70px}.hero-visual{order:-1}.hero-emblem{max-width:230px}.hud{left:0}
  .steps{grid-template-columns:1fr 1fr}.steps div{border:0;margin:0;border-top:1px solid var(--line)}
  .section{padding:76px 0}.inquiry-form,.questionnaire-fields{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Widescreen: wider layout, 4 cards across, soft blurred side frames */
@media(min-width:1500px){
  .container{max-width:1560px;padding:0 48px}
  h1{font-size:clamp(52px,3.7vw,76px)}
  .hero-content{gap:60px}.hero-emblem{max-width:500px}
  .hero-subtext{max-width:660px;font-size:19px}
  .section{padding:130px 0}
  .services-grid{grid-template-columns:repeat(4,1fr);gap:22px}
  .service-card{padding:34px 30px}
}
@media(min-width:1700px){
  .container{max-width:1680px}
  body::before,body::after{content:"";position:fixed;top:0;bottom:0;z-index:5;pointer-events:none;width:calc((100vw - 1680px)/2 + 60px);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:linear-gradient(90deg,rgba(12,16,23,.62),rgba(12,16,23,0));-webkit-mask-image:linear-gradient(90deg,#000 55%,transparent);mask-image:linear-gradient(90deg,#000 55%,transparent)}
  body::before{left:0}body::after{right:0;transform:scaleX(-1)}
}

/* ==========================================
   LINEAGE MODAL OVERLAY (LIVING BACKGROUND)
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    padding: 1rem; 
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Frosted Glass Container */
.modal-container {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(14, 20, 29, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 14px;
    padding: 2.5rem 2rem; 
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
    transform: translateY(15px) scale(0.98) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

@media (min-width: 768px) {
    .modal-container {
        padding: 3.5rem 4rem;
        width: 92%;
    }
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 6px;
}
.modal-container::-webkit-scrollbar-track {
    background: rgba(10, 14, 20, 0.4);
}
.modal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.35);
    border-radius: 3px;
}
.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.7);
}

/* Ensure the modal header or top wrapper has relative positioning to anchor the sticky element */
.modal-header, 
.modal-content-wrapper {
    position: relative;
}

/* Sticky Close Button - stays pinned at the top right while scrolling */
.modal-close-btn {
    position: sticky;
    top: 1rem;          /* Distance from the top edge as it stays stuck during scroll */
    float: right;
    z-index: 30;
    background: rgba(14, 20, 29, 0.9);
    border: none;
    color: var(--text-titanium-muted, #8a99ad);
    font-size: 2rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    
    {/* Clean coordinate shift without broken negative margins */}
    margin-top: 0;
    margin-right: 0;
    margin-bottom: -40px; /* Pulls subsequent content up so it sits cleanly in the corner */
}

.modal-close-btn:hover {
    color: var(--accent-cyan-line, #00f0ff);
    background: rgba(20, 28, 40, 1);
    transform: scale(1.1);
}

/* Typography & Content Layout */
.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-header h2 {
        font-size: 2rem;
    }
}

.modal-divider {
    width: 48px;
    height: 2px;
    background: var(--accent-cyan-line, #00f0ff);
    margin: 0.75rem 0 1.5rem 0;
    box-shadow: 0 0 10px var(--accent-cyan-line, #00f0ff);
}

.modal-body p {
    color: var(--text-titanium-muted, #a0aec0);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .modal-body p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.35rem;
    }
}

.modal-body .modal-lead {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .modal-body .modal-lead {
        font-size: 1.15rem;
    }
}

/* Operational Scope List */
.lineage-scope {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .lineage-scope {
        margin-top: 2.25rem;
        padding-top: 1.75rem;
    }
}

.lineage-scope h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .lineage-scope h3 {
        font-size: 1.15rem;
        margin-bottom: 1.15rem;
    }
}

.lineage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lineage-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-titanium-muted, #a0aec0);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .lineage-list li {
        padding-left: 1.6rem;
        margin-bottom: 0.95rem;
        font-size: 1rem;
        line-height: 1.65;
    }
}

.lineage-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-cyan-line, #00f0ff);
    font-size: 1.1rem;
    top: -2px;
}

.lineage-list li strong {
    color: #e2e8f0;
}
/* Chat panel (replaces the contact form) */
.chat-panel{position:relative;padding:36px}
.chat-panel::before{content:"";position:absolute;inset:0;background:var(--panel);clip-path:polygon(26px 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%,0 26px);z-index:0}
.chat-panel h3{margin:0 0 10px;font-size:22px}
.chat-panel p{color:var(--mut);line-height:1.55;margin:0 0 12px}
.chat-panel .badge{position:absolute;top:18px;right:18px;padding:3px 10px;border:1px solid var(--cy);color:var(--cy);font-size:11px;letter-spacing:1.5px;font-weight:600}

/* Route-1 depth for the hero emblem: tilt (existing JS) + specular sheen + travelling shadow */
.emblem-wrap{position:relative;width:90%;max-width:430px;will-change:transform;filter:drop-shadow(0 0 50px rgba(53,230,255,.22)) drop-shadow(var(--shx,0px) var(--shy,26px) 28px rgba(0,0,0,.6))}
.emblem-wrap .hero-emblem{width:100%;max-width:none;display:block;filter:none}
.emblem-sheen{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(420px circle at var(--mx,50%) var(--my,42%),rgba(190,245,255,.30),rgba(120,200,255,.10) 34%,transparent 66%);-webkit-mask-image:url(emblem.png);mask-image:url(emblem.png);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
@media(max-width:900px){.emblem-wrap{max-width:230px}}
@media(min-width:1500px){.emblem-wrap{max-width:500px}}

.chat-avatar{position:absolute;bottom:-8px;right:-10px;height:112%;width:auto;max-width:none;opacity:.5;z-index:1;pointer-events:none;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 40%),linear-gradient(to bottom,#000 84%,transparent 99%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 40%),linear-gradient(to bottom,#000 84%,transparent 99%);mask-composite:intersect}
.chat-panel h3,.chat-panel p{position:relative;z-index:2}
.chat-panel .badge{z-index:3}
.chat-contacts{position:relative;z-index:2;display:flex;gap:40px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.chat-contacts a{display:block}
.chat-contacts span{font-size:16px;color:var(--tx)}
.chat-contacts a:hover span{color:var(--cy)}
.chat-contacts small{display:block;color:var(--mut);font-size:12px;margin-top:2px}
@media(min-width:641px){.chat-panel p{max-width:66%}}
@media(max-width:900px){.chat-avatar{right:auto;left:50%;transform:translateX(-50%);height:320px;opacity:.18}}
@media(max-width:640px){.chat-panel{padding-top:196px}.chat-avatar{top:8px;bottom:auto;right:auto;left:50%;transform:translateX(-50%);height:188px;opacity:.92;-webkit-mask-image:linear-gradient(to bottom,#000 68%,transparent 97%);mask-image:linear-gradient(to bottom,#000 68%,transparent 97%)}.chat-panel .badge{top:14px;right:14px;left:auto}.chat-contacts{flex-direction:column;gap:14px}.chat-contacts span{font-size:15px}}

/* Shared: fade scrolling content out under the fixed header; keep anchored sections clear of the overhanging logo */
.top-fade{position:fixed;top:var(--hh,76px);left:0;right:0;height:130px;background:linear-gradient(to bottom,rgba(12,16,23,.99) 0%,rgba(12,16,23,.88) 42%,rgba(12,16,23,0) 100%);pointer-events:none;z-index:40}
section[id]{scroll-margin-top:148px}

@media(min-device-width:768px){body{min-width:480px}}
@media(max-width:480px){.chat-panel{padding-top:166px}.chat-avatar{height:150px}}
