/* Sminetech Solutions - Homepage Styles */

/* --- UTILS --- */
.section-inner{max-width:1180px;margin:0 auto;padding:0 2rem}
.tag{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan);font-weight:600;margin-bottom:.6rem;display:block}
.section-h{font-family:var(--serif);font-size:clamp(28px,3vw,44px);line-height:1.15;margin-bottom:.8rem}
.section-sub{font-size:16px;color:var(--muted);max-width:580px;line-height:1.75;font-weight:300;margin-bottom:2.5rem}
.grad-text{background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.btn-primary{display:inline-block;padding:12px 28px;background:var(--grad);color:#fff;border:none;border-radius:var(--r-sm);font-size:15px;font-weight:600;cursor:pointer;font-family:var(--sans);transition:opacity .2s;white-space:nowrap}
.btn-primary:hover{opacity:.85}
.btn-outline{display:inline-block;padding:11px 26px;background:transparent;color:var(--text);border:1px solid var(--border2);border-radius:var(--r-sm);font-size:15px;font-weight:500;cursor:pointer;font-family:var(--sans);transition:all .2s;white-space:nowrap}
.btn-outline:hover{background:var(--card-h);border-color:var(--blue2)}

/* --- NAV --- */
nav{position:fixed;top:0;left:0;right:0;z-index:200;height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 2.5rem;backdrop-filter:blur(24px);background:rgba(4,9,26,.88);border-bottom:1px solid var(--border)}
.logo{display:inline-flex;align-items:center;cursor:pointer;line-height:1}.logo svg{display:block}
.nav-links{display:flex;gap:1.8rem;list-style:none}
.nav-links a{color:var(--muted);font-size:14.5px;font-weight:400;transition:color .2s}
.nav-links a:hover{color:var(--text)}
.nav-cta{padding:8px 20px;background:var(--blue);color:#fff;border:none;border-radius:var(--r-sm);font-size:14px;font-weight:600;cursor:pointer;font-family:var(--sans);transition:background .2s}
.nav-cta:hover{background:var(--blue2)}
.menu-toggle{display:none;background:none;border:none;color:var(--text);font-size:24px;cursor:pointer;z-index:201}
.nav-right-actions{display:flex;gap:10px;align-items:center}
.careers-link{color:var(--muted);font-size:14px;font-weight:400;transition:color .2s;text-decoration:none}
.careers-link:hover{color:var(--text)}
.get-in-touch-btn{padding:8px 16px;background:transparent;color:var(--text);border:1px solid var(--border2);border-radius:var(--r-sm);font-size:14px;font-weight:500;cursor:pointer;font-family:var(--sans);transition:all .2s}
.get-in-touch-btn:hover{background:var(--card-h)}

/* --- HERO --- */
.hero{min-height:100vh;display:flex;align-items:center;padding:7rem 0 4rem;position:relative;overflow:hidden}
.hero .section-inner{width:100%}
.hero-glow1{position:absolute;top:-180px;left:-80px;width:680px;height:680px;background:radial-gradient(circle,rgba(27,110,243,.13) 0%,transparent 68%);border-radius:50%;pointer-events:none}
.hero-glow2{position:absolute;bottom:-80px;right:80px;width:480px;height:480px;background:radial-gradient(circle,rgba(0,200,240,.08) 0%,transparent 68%);border-radius:50%;pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:4rem;align-items:center}
.hero-eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:1.2rem;opacity:0;animation:fadeUp .5s .15s forwards}
.hero-dot{width:7px;height:7px;background:var(--cyan);border-radius:50%;animation:pulse 2s infinite}
.hero-eyebrow span{font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan);font-weight:600}
h1.hero-h{font-family:var(--serif);font-size:clamp(38px,4.2vw,60px);line-height:1.08;margin-bottom:1.4rem;opacity:0;animation:fadeUp .55s .28s forwards}
h1.hero-h em{font-style:italic;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-p{font-size:17px;color:var(--muted);line-height:1.8;max-width:500px;margin-bottom:2rem;font-weight:300;opacity:0;animation:fadeUp .55s .42s forwards}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;opacity:0;animation:fadeUp .55s .55s forwards;margin-bottom:2.5rem}
.hero-kpis{display:flex;gap:2.2rem;padding-top:2rem;border-top:1px solid var(--border);opacity:0;animation:fadeUp .55s .68s forwards}
.kpi-num{font-family:var(--serif);font-size:34px;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;display:block}
.kpi-lbl{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.hero-right{opacity:0;animation:fadeUp .6s .38s forwards;margin-top:-12rem}
.service-pills-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sp{background:var(--card);border:1px solid var(--border);border-radius:var(--r-md);padding:14px 16px;transition:all .25s;cursor:default;display:grid;grid-template-columns:20px 1fr;grid-template-areas:"icon name" "icon sub";column-gap:11px;row-gap:2px;align-items:start}
.sp:hover{background:var(--card-h);border-color:var(--border2);transform:translateY(-3px)}
.sp-icon{grid-area:icon;width:20px;height:20px;color:var(--blue2);margin-top:1px}
.sp-icon svg{width:100%;height:100%;display:block}
.sp-name{grid-area:name;font-size:13.5px;font-weight:600;color:var(--text)}
.sp-sub{grid-area:sub;font-size:12px;color:var(--muted);line-height:1.45}

/* --- TRUST BAR --- */
.trust-bar{padding:1.2rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--bg2);position:relative;z-index:1}
.trust-inner{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;justify-content:center}
.trust-label{font-size:12px;color:var(--muted2);text-transform:uppercase;letter-spacing:.1em;white-space:nowrap}
.trust-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.tc{padding:4px 13px;border-radius:999px;border:1px solid var(--border);font-size:12.5px;color:var(--muted);background:transparent;font-weight:500}
.tc.hl{color:var(--blue2);border-color:var(--border2)}

/* --- ABOUT --- */
.about-section{padding:5rem 0;position:relative;z-index:1}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.about-story{font-size:15.5px;color:var(--muted);line-height:1.8;font-weight:300;margin-bottom:1.5rem}
.about-story strong{color:var(--text);font-weight:600}
.about-pillars{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ap{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r-md);padding:1rem 1.1rem;border-left:3px solid var(--blue);display:grid;grid-template-columns:18px 1fr;grid-template-areas:"icon title" "icon desc";column-gap:11px;row-gap:3px;align-items:start}
.ap.span-2{grid-column:span 2}
.ap-icon{grid-area:icon;width:18px;height:18px;color:var(--blue2);margin-top:2px}
.ap-icon svg{width:100%;height:100%;display:block}
.ap-title{grid-area:title;font-size:13.5px;font-weight:600;color:var(--text)}
.ap-desc{grid-area:desc;font-size:12.5px;color:var(--muted);line-height:1.5}
.founded-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid var(--border2);border-radius:999px;font-size:13px;color:var(--blue2);font-weight:500;margin-bottom:1.5rem}
.founded-badge .ico{width:14px;height:14px;color:var(--blue2)}
.about-diff-h{font-family:var(--serif);font-size:22px;margin-bottom:1.25rem;color:var(--text)}

/* --- SERVICES --- */
.services-section{padding:5rem 0;background:var(--bg2);position:relative;z-index:1}
.svc-tabs{display:flex;gap:4px;background:rgba(255,255,255,.04);padding:4px;border-radius:var(--r-md);width:fit-content;flex-wrap:wrap;margin-bottom:2.5rem}
.stab{padding:9px 20px;border-radius:var(--r-sm);font-size:14px;font-weight:500;cursor:pointer;color:var(--muted);border:none;background:transparent;font-family:var(--sans);transition:all .2s;display:inline-flex;align-items:center;gap:8px}
.stab .ico{width:16px;height:16px;color:currentColor}
.stab.active{background:var(--blue);color:#fff}
.svc-pane{display:none}
.svc-pane.active{display:block}
.svc-hero{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;margin-bottom:2rem}
.svc-title-big{font-family:var(--serif);font-size:clamp(24px,2.5vw,36px);line-height:1.2;margin-bottom:.75rem}
.svc-desc-big{font-size:15px;color:var(--muted);line-height:1.75;font-weight:300;margin-bottom:1.5rem}
.svc-features{display:flex;flex-direction:column;gap:8px}
.sf{display:flex;gap:12px;align-items:flex-start;padding:10px 14px;background:var(--bg3);border-radius:var(--r-sm);border:1px solid var(--border)}
.sf-dot{width:6px;height:6px;background:var(--blue);border-radius:50%;margin-top:6px;flex-shrink:0}
.sf-text{font-size:14px;color:var(--text);line-height:1.5}
.sf-text span{color:var(--muted);font-weight:300;font-size:13px;display:block}
.svc-stack{background:var(--bg3);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.5rem;margin-top:1.25rem}
.svc-stack-title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:1rem}
.stack-chips{display:flex;gap:6px;flex-wrap:wrap}
.schip{padding:5px 12px;border-radius:999px;background:rgba(27,110,243,.1);color:var(--blue2);border:1px solid var(--border2);font-size:12.5px;font-weight:500}
.svc-approach{display:flex;gap:0;margin-top:1.5rem}
.sa-step{flex:1;text-align:center;padding:.75rem .5rem;background:var(--bg);border:1px solid var(--border);border-right:none;font-size:13.5px;font-weight:600;color:var(--text);position:relative}
.sa-step:first-child{border-radius:var(--r-sm) 0 0 var(--r-sm)}
.sa-step:last-child{border-right:1px solid var(--border);border-radius:0 var(--r-sm) var(--r-sm) 0}
.sa-step.hl{background:var(--blue);color:#fff;border-color:var(--blue)}
.sa-step.hl .sa-num{color:var(--cyan)}
.sa-num{font-size:11px;color:var(--blue2);display:block;font-weight:400;margin-bottom:2px}

/* --- TECHNOLOGY --- */
.tech-section{padding:5rem 0;position:relative;z-index:1}
.tech-tabs{display:flex;gap:4px;background:rgba(255,255,255,.04);padding:4px;border-radius:var(--r-md);width:fit-content;flex-wrap:wrap;margin-bottom:2rem}
.ttab{padding:8px 18px;border-radius:var(--r-sm);font-size:14px;font-weight:500;cursor:pointer;color:var(--muted);border:none;background:transparent;font-family:var(--sans);transition:all .2s}
.ttab.active{background:var(--blue);color:#fff}
.tech-pane{display:none;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:10px}
.tech-pane.active{display:grid}
.tc-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-md);padding:14px 15px;transition:all .25s;cursor:default}
.tc-card:hover{background:var(--card-h);border-color:var(--border2);transform:translateY(-2px)}
.tc-name{font-size:14px;font-weight:600;color:var(--text);margin-bottom:4px}
.tc-sub{font-size:12px;color:var(--muted);line-height:1.5}
.tc-bar{height:2px;border-radius:999px;background:rgba(255,255,255,.06);margin-top:10px}
.tc-fill{height:100%;border-radius:999px;background:var(--grad)}

/* --- CLIENTS --- */
.clients-section{padding:4.5rem 0;background:var(--bg2);position:relative;z-index:1}
.clients-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:2rem}
.client-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--r-md);padding:1.1rem 1.25rem;transition:all .25s;cursor:default}
.client-card:hover{background:var(--bg3);border-color:var(--border2)}
.cc-sector{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--cyan);font-weight:600;margin-bottom:5px}
.cc-name{font-size:14.5px;font-weight:600;color:var(--text);margin-bottom:3px}
.cc-desc{font-size:12.5px;color:var(--muted);line-height:1.5}

/* --- SUCCESS STORIES --- */
.stories-section{padding:5rem 0;position:relative;z-index:1}
.story-tabs{display:flex;gap:4px;background:rgba(255,255,255,.04);padding:4px;border-radius:var(--r-md);width:fit-content;margin-bottom:2.5rem}
.story-tab{padding:9px 22px;border-radius:var(--r-sm);font-size:14px;font-weight:500;cursor:pointer;color:var(--muted);border:none;background:transparent;font-family:var(--sans);transition:all .2s}
.story-tab.active{background:var(--blue);color:#fff}
.story-pane{display:none}
.story-pane.active{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.story-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;margin-bottom:.6rem;display:block;color:var(--cyan)}
.story-title{font-family:var(--serif);font-size:clamp(22px,2.2vw,32px);line-height:1.2;margin-bottom:1.5rem}
.story-detail{margin-bottom:1.2rem;background:var(--bg2);border-radius:var(--r-md);border:1px solid var(--border);padding:1rem 1.2rem;border-left:3px solid transparent}
.story-detail.challenge{border-left-color:var(--amber)}
.story-detail.solution{border-left-color:var(--blue)}
.story-detail.impact{border-left-color:var(--green)}
.sd-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;margin-bottom:5px}
.story-detail.challenge .sd-label{color:var(--amber)}
.story-detail.solution .sd-label{color:var(--blue2)}
.story-detail.impact .sd-label{color:var(--green)}
.sd-text{font-size:14px;color:var(--text);line-height:1.6;font-weight:300}
.story-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:1.5rem}
.metric-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r-md);padding:1.1rem;text-align:center}
.metric-box.span-2{grid-column:span 2}
.metric-num{font-family:var(--serif);font-size:32px;display:block;line-height:1;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.metric-num-lg{font-size:22px;font-family:var(--sans);font-weight:700;display:block;line-height:1;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.metric-lbl{font-size:12px;color:var(--muted);margin-top:4px;display:block;line-height:1.4}
.story-tech-list{margin-top:1.5rem}
.stl-title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:.75rem}
.stl-chips{display:flex;gap:6px;flex-wrap:wrap}
.stl-chip{padding:4px 11px;border-radius:999px;background:rgba(27,110,243,.1);color:var(--blue2);border:1px solid var(--border2);font-size:12px;font-weight:500}
.story-client-box{margin-top:1.5rem;padding:1rem 1.25rem;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r-md)}
.story-client-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600;margin-bottom:.4rem}
.story-client-name{font-size:15px;font-weight:600;color:var(--text)}

/* --- WHY SMINETECH --- */
.why-section{padding:5rem 0;background:var(--bg2);position:relative;z-index:1}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.why-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.5rem;transition:all .25s;position:relative;overflow:hidden}
.why-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad);opacity:0;transition:opacity .25s}
.why-card:hover::before{opacity:1}
.why-card:hover{background:var(--bg3);border-color:var(--border2)}
.why-icon{width:42px;height:42px;border-radius:var(--r-sm);background:rgba(27,110,243,.1);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;color:var(--blue2);margin-bottom:1rem}
.why-icon svg{width:20px;height:20px;display:block}
.why-title{font-size:16px;font-weight:600;color:var(--text);margin-bottom:.5rem}
.why-desc{font-size:14px;color:var(--muted);line-height:1.6;font-weight:300}

/* --- INDUSTRIES --- */
.ind-section{padding:5rem 0;position:relative;z-index:1}
.ind-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ind-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-md);padding:1.25rem 1.1rem;text-align:center;transition:all .25s;cursor:default}
.ind-card:hover{background:var(--card-h);border-color:var(--border2);transform:translateY(-3px)}
.ind-icon{width:32px;height:32px;color:var(--blue2);margin:0 auto .6rem}
.ind-icon svg{width:100%;height:100%;display:block}
.ind-name{font-size:14.5px;font-weight:700;color:var(--text);margin-bottom:4px}
.ind-desc{font-size:12.5px;color:var(--muted);line-height:1.5}

/* --- ENGAGEMENT --- */
.engage-section{padding:5rem 0;background:var(--bg2);position:relative;z-index:1}
.engage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.engage-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.75rem;position:relative;overflow:hidden;transition:border-color .25s}
.engage-card:hover{border-color:var(--border2)}
.engage-card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px}
.engage-card:nth-child(1)::after{background:linear-gradient(90deg,var(--blue),var(--blue2))}
.engage-card:nth-child(2)::after{background:linear-gradient(90deg,var(--cyan),var(--blue))}
.engage-card:nth-child(3)::after{background:linear-gradient(90deg,var(--blue2),var(--cyan))}
.engage-badge{display:inline-block;padding:4px 11px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:1rem;background:rgba(27,110,243,.1);color:var(--blue2);border:1px solid var(--border2)}
.engage-title{font-family:var(--serif);font-size:22px;margin-bottom:.65rem;color:var(--text)}
.engage-desc{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:1.25rem;font-weight:300}
.engage-list{list-style:none;display:flex;flex-direction:column;gap:7px}
.engage-list li{font-size:13.5px;color:var(--muted);display:flex;gap:8px;align-items:flex-start;line-height:1.5}
.el-dot{width:5px;height:5px;background:var(--blue);border-radius:50%;margin-top:6px;flex-shrink:0}

/* --- OUTCOMES --- */
.outcomes-section{padding:4rem 0;position:relative;z-index:1}
.outcomes-section .section-h{margin-bottom:2rem}
.outcomes-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:3rem}
.out-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r-md);padding:1.5rem;text-align:center}
.out-num{font-family:var(--serif);font-size:44px;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;display:block}
.out-unit{font-size:18px}
.out-lbl{font-size:13px;color:var(--muted);margin-top:6px;display:block;line-height:1.45}
.process-bar{display:grid;grid-template-columns:repeat(4,1fr);position:relative}
.process-bar::before{content:'';position:absolute;top:21px;left:12.5%;right:12.5%;height:1px;background:var(--border2);z-index:0}
.pstep{text-align:center;padding:0 .75rem;position:relative;z-index:1}
.pstep-n{width:42px;height:42px;border-radius:50%;background:var(--bg2);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--blue2);margin:0 auto 1rem}
.pstep-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:.4rem}
.pstep-desc{font-size:13px;color:var(--muted);line-height:1.5}

/* --- CTA --- */
.cta-section{padding:5rem 0;background:linear-gradient(135deg,rgba(27,110,243,.1),rgba(0,200,240,.05));border-top:1px solid var(--border);border-bottom:1px solid var(--border);position:relative;z-index:1}
.cta-inner{max-width:780px;margin:0 auto;text-align:center;padding:0 2rem}
.cta-h{font-family:var(--serif);font-size:clamp(28px,3vw,44px);line-height:1.15;margin-bottom:.9rem}
.cta-p{font-size:16px;color:var(--muted);line-height:1.75;margin-bottom:2rem;font-weight:300}
.cta-form{display:flex;gap:10px;max-width:460px;margin:0 auto 1rem;flex-wrap:wrap;justify-content:center}
.cta-input{flex:1;min-width:180px;padding:11px 16px;background:rgba(255,255,255,.05);border:1px solid var(--border);border-radius:var(--r-sm);color:var(--text);font-size:15px;font-family:var(--sans);outline:none;transition:border-color .2s}
.cta-input:focus{border-color:var(--blue2)}
.cta-input::placeholder{color:var(--muted)}
.cta-note{font-size:13.5px;color:var(--muted)}
.cta-note a{color:var(--blue2)}

/* --- FOOTER --- */
footer{padding:3rem 0 0;border-top:1px solid var(--border);background:var(--bg);position:relative;z-index:1}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;padding:0 2rem;max-width:1180px;margin:0 auto;margin-bottom:2.5rem}
.footer-desc{font-size:14px;color:var(--muted);line-height:1.75;margin:1rem 0;font-weight:300}
.footer-contact-line{font-size:13.5px;color:var(--muted);line-height:1.9}
.footer-contact-line a{color:var(--blue2)}
.footer-col-title{font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text);margin-bottom:1rem}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer-links a{font-size:14px;color:var(--muted);transition:color .2s}
.footer-links a:hover{color:var(--text)}
.footer-bottom{border-top:1px solid var(--border);padding:1.25rem 2rem;max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-bottom-txt{font-size:13px;color:var(--muted2)}
.footer-socials{display:flex;gap:10px}
.fsoc{width:32px;height:32px;border-radius:var(--r-sm);background:var(--card);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--muted);transition:all .2s}
.fsoc:hover{background:var(--card-h);border-color:var(--border2);color:var(--blue2)}
.footer-tagline{font-family:var(--serif);font-size:12px;color:var(--muted2);font-style:italic;margin-top:.25rem}

/* --- MODALS & FORMS --- */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.8);backdrop-filter:blur(5px);z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity 0.3s ease,visibility 0.3s ease;padding:20px;overflow-y:auto}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{background:var(--bg2);width:100%;max-width:560px;border-radius:var(--r-lg);border:1px solid var(--border);padding:2.5rem;position:relative;transform:translateY(20px);transition:transform 0.3s ease;max-height:calc(100vh - 40px);overflow-y:auto}
.modal-overlay.open .modal{transform:translateY(0)}
.modal-close{position:absolute;top:20px;right:20px;background:none;border:none;color:var(--muted);font-size:20px;cursor:pointer;transition:color 0.2s}
.modal-close:hover{color:var(--text)}
.modal-tag{font-size:12px;letter-spacing:0.1em;text-transform:uppercase;color:var(--cyan);font-weight:600;margin-bottom:0.5rem;display:block}
.modal-h{font-family:var(--serif);font-size:28px;line-height:1.2;margin-bottom:0.5rem}
.modal-p{font-size:14.5px;color:var(--muted);line-height:1.6;margin-bottom:2rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.2rem}
.form-group{margin-bottom:1.2rem}
.form-label{display:block;font-size:13px;color:var(--muted);font-weight:500;margin-bottom:0.5rem}
.form-input,.form-select,.form-textarea{width:100%;padding:12px 16px;background:rgba(255,255,255,0.03);border:1px solid var(--border);border-radius:var(--r-sm);color:var(--text);font-family:var(--sans);font-size:14.5px;transition:border-color 0.2s}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--blue);outline:none;background:rgba(255,255,255,0.05)}
/* OS-rendered <option> elements need explicit dark text so they stay readable on the white OS panel */
.form-select option{color:#1a1a1a;background:#fff;font-size:14.5px}
.form-textarea{resize:vertical;min-height:100px}
.form-select{appearance:none;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237A8EAA%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:10px}
.hidden-field{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.modal-btn{width:100%;padding:14px;background:var(--grad);color:#fff;border:none;border-radius:var(--r-sm);font-size:15px;font-weight:600;cursor:pointer;font-family:var(--sans);transition:opacity 0.2s;margin-top:0.5rem}
.modal-btn:hover{opacity:0.9}
.modal-note{font-size:12px;color:var(--muted);text-align:center;margin-top:1rem}

/* --- AUTO POPUP BAR --- */
.auto-popup-bar{position:fixed;bottom:-100px;left:0;right:0;background:rgba(4,9,26,0.95);backdrop-filter:blur(10px);border-top:1px solid var(--border);padding:15px 2rem;display:flex;align-items:center;justify-content:center;gap:2rem;z-index:900;transition:bottom 0.4s ease;box-shadow:0 -10px 40px rgba(0,0,0,0.3)}
.auto-popup-bar.show{bottom:0}
.apb-text strong{color:var(--text);font-size:15px;display:block}
.apb-text span{color:var(--muted);font-size:13px}
.apb-actions{display:flex;align-items:center;gap:12px}

/* --- RESPONSIVE --- */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:3rem}
  .about-grid,.svc-hero,.story-pane.active{grid-template-columns:1fr}
  .clients-grid,.why-grid,.engage-grid{grid-template-columns:repeat(2,1fr)}
  .ind-grid,.outcomes-grid,.process-bar{grid-template-columns:repeat(2,1fr)}
  .process-bar::before{display:none}
  .pstep{margin-bottom:2rem}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.5rem}
  .auto-popup-bar{flex-direction:column;gap:15px;text-align:center;padding:15px}
}

@media (max-width:768px){
  .menu-toggle{display:block}
  .nav-links{position:fixed;top:66px;left:0;right:0;background:var(--bg);flex-direction:column;gap:0;padding:0;max-height:0;overflow:hidden;transition:max-height 0.3s ease;border-bottom:1px solid transparent}
  .nav-links.open{max-height:500px;border-bottom-color:var(--border);overflow-y:auto}
  .nav-links li{width:100%;text-align:center;border-bottom:1px solid rgba(255,255,255,0.05)}
  .nav-links li a{display:block;padding:15px;font-size:16px}
  .nav-right-actions{position:fixed;top:66px;left:0;right:0;background:var(--bg);flex-direction:column;gap:0;align-items:stretch;padding:0;max-height:0;overflow:hidden;transition:max-height 0.3s ease,padding 0.3s ease;z-index:199;border-bottom:1px solid transparent}
  .nav-right-actions.open{max-height:300px;padding:1rem 1.5rem;border-bottom-color:var(--border);box-shadow:0 8px 30px rgba(0,0,0,.4)}
  .nav-right-actions > *{width:100%;text-align:center;margin-bottom:.6rem}
  .nav-right-actions > *:last-child{margin-bottom:0}
  .careers-link{padding:12px;border:1px solid var(--border);border-radius:var(--r-sm)}
  .get-in-touch-btn,.nav-cta{padding:12px 16px !important;font-size:15px !important}
  /* When both menu and CTA tray are open, push tray below nav items.
     Uses max-height of .nav-links (500px) as the reliable upper bound. */
  .nav-links.open ~ .nav-right-actions.open{top:calc(66px + 500px)}

  .section-inner{padding:0 1.25rem}
  .hero{padding-top:6rem;min-height:auto}
  h1.hero-h{font-size:clamp(30px,7.5vw,40px);line-height:1.15}
  .hero-p{font-size:15.5px}
  .hero-btns{flex-direction:column;width:100%}
  .hero-btns a,.hero-btns button{width:100%;text-align:center}
  .hero-kpis{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem 2rem}
  .service-pills-grid{grid-template-columns:1fr}

  .clients-grid,.why-grid,.engage-grid{grid-template-columns:1fr}
  .ind-grid,.outcomes-grid,.process-bar{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .modal-overlay{padding:1rem;align-items:flex-start}
  .modal{padding:1.5rem;max-height:calc(100vh - 2rem);overflow-y:auto;width:100%}
  .footer-grid{grid-template-columns:1fr;gap:2rem;padding:0 1.25rem}

  .cta-form{flex-direction:column}
  .cta-input,.cta-form .btn-primary{width:100%}

  .about-pillars,.story-metrics{grid-template-columns:1fr}
  .ap.span-2,.metric-box.span-2{grid-column:span 1}

  .tech-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.5rem}
  .tech-tabs::-webkit-scrollbar{height:4px}
  .ttab{flex-shrink:0}

  /* Hero right column — reset desktop negative margin so it stacks cleanly */
  .hero-right{margin-top:0}

  /* Service tabs — full width + horizontal scroll on narrow screens */
  .svc-tabs{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;padding-bottom:4px}
  .svc-tabs::-webkit-scrollbar{height:3px}
  .stab{flex-shrink:0;padding:10px 16px;min-height:44px}

  /* Approach strip — wrap to 2×2 on mobile */
  .svc-approach{flex-wrap:wrap}
  .sa-step{flex:0 0 50%;border-right:1px solid var(--border)}
  .sa-step:nth-child(2){border-right:none}
  .sa-step:last-child{border-right:none}
  .sa-step:first-child{border-radius:var(--r-sm) 0 0 0}
  .sa-step:nth-child(2){border-radius:0 var(--r-sm) 0 0}
  .sa-step:nth-child(3){border-top:none;border-radius:0 0 0 var(--r-sm)}
  .sa-step:last-child{border-top:none;border-radius:0 0 var(--r-sm) 0}

  .section-h{font-size:clamp(28px,6.5vw,36px) !important;line-height:1.2}
  .section-sub{font-size:16px}
}

@media (max-width:480px){
  .section-inner{padding:0 1rem}
  nav{padding:0 1rem}
  .hero{padding-top:5rem}
  .hero-kpis{grid-template-columns:1fr 1fr;gap:1rem 1.5rem}
  .kpi-num{font-size:28px !important}
  .stab{font-size:13px;padding:8px 12px}
  .modal{padding:1.25rem}
  .modal h3{font-size:22px}
  .auto-popup-bar{padding:1rem !important}
}
