/* Behnico Stage 11.8.1 — Cinematic Homepage Layout Hotfix
   Homepage-only layer loaded after the frozen global theme.
   Stage 11.8.1 locks the approved RTL composition and removes reveal/position conflicts around the hero rail.
   Keeps data/CMS behavior intact while reproducing the approved image-led composition. */

body.stage118-home-page {
    --s118-bg:#03121d;
    --s118-bg-2:#061a28;
    --s118-panel:#082333;
    --s118-panel-2:#0a2a3d;
    --s118-line:rgba(99,210,242,.18);
    --s118-line-strong:rgba(99,210,242,.34);
    --s118-text:#f5fbfe;
    --s118-muted:#9db7c6;
    --s118-cyan:#48d8ff;
    --s118-blue:#178cff;
    --s118-energy:#ffc441;
    --s118-energy-2:#ffab24;
    --s118-radius:26px;
    background:#020d16 !important;
}
body.stage118-home-page .global-electric-background-lite { opacity:.42; }
body.stage118-home-page #main-content { overflow:hidden; background:linear-gradient(180deg,#03131f 0%,#041623 46%,#03111c 100%) !important; }
body.stage118-home-page .site-header,
body.stage118-home-page .premium-header {
    background:rgba(3,16,26,.92)!important;
    border-bottom:1px solid rgba(82,202,235,.13)!important;
    box-shadow:none!important;
    backdrop-filter:blur(18px) saturate(135%);
}
body.stage118-home-page .site-header.is-scrolled,
body.stage118-home-page .premium-header.is-scrolled {
    background:rgba(3,15,24,.97)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.25)!important;
}
body.stage118-home-page .header-inner-polished { min-height:68px; }
body.stage118-home-page .premium-main-nav { background:rgba(10,33,49,.68)!important; border-color:rgba(95,209,239,.12)!important; }
body.stage118-home-page .premium-main-nav a { min-height:34px; font-size:.69rem; }
body.stage118-home-page .header-cta { background:linear-gradient(135deg,#087eea,#1aa9ef)!important; border-color:transparent!important; }
body.stage118-home-page .premium-footer { background:#020b12!important; border-top:1px solid rgba(92,206,237,.12)!important; }

.s118-home { color:var(--s118-text); direction:rtl; overflow:clip; isolation:isolate; }
.s118-home *, .s118-home *::before, .s118-home *::after { box-sizing:border-box; }
.s118-home a { text-decoration:none; }
.s118-home h1,.s118-home h2,.s118-home h3,.s118-home p { text-wrap:pretty; }
.s118-home img { display:block; max-width:100%; }
.s118-home .container { position:relative; z-index:2; width:min(calc(100% - 48px),1360px); margin-inline:auto; }

.s118-eyebrow,
.s118-kicker {
    display:inline-flex; align-items:center; gap:8px; width:max-content; max-width:100%;
    color:#67dcf7; font-size:.66rem; font-weight:700; letter-spacing:.08em;
    border:1px solid rgba(83,214,245,.28); background:rgba(22,122,158,.10); border-radius:999px; padding:7px 11px;
}
.s118-kicker i { width:7px; height:7px; border-radius:50%; background:var(--s118-cyan); box-shadow:0 0 16px rgba(72,216,255,.75); }
.s118-btn {
    min-height:48px; padding:0 18px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    color:#fff!important; border:1px solid transparent; font-size:.76rem; font-weight:700; transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.s118-btn:hover { transform:translateY(-2px); }
.s118-btn svg { width:18px; height:18px; }
.s118-btn-energy { color:#17202a!important; background:linear-gradient(135deg,#ffd460,#ffb62d); box-shadow:0 12px 28px rgba(255,184,41,.18); }
.s118-btn-blue { background:linear-gradient(135deg,#0878e7,#159fef); box-shadow:0 12px 30px rgba(20,146,238,.18); }
.s118-btn-ghost { background:rgba(4,22,34,.58); border-color:rgba(255,255,255,.23); backdrop-filter:blur(12px); }
.s118-btn-ghost:hover { background:rgba(14,47,67,.84); border-color:rgba(83,214,245,.42); }
.s118-btn-outline { background:rgba(66,198,232,.055); border-color:rgba(72,216,255,.27); color:#dff8ff!important; }
.s118-btn-block { width:100%; }
.s118-text-link { color:#65ddf7!important; font-size:.78rem; font-weight:700; display:inline-flex; align-items:center; gap:7px; }
.s118-text-link span { transition:transform .2s ease; }
.s118-text-link:hover span { transform:translateX(-4px); }

/* hero */
.s118-hero { position:relative; min-height:720px; overflow:visible; isolation:isolate; border-bottom:1px solid rgba(88,205,236,.12); background:#03131f; }
.s118-hero-media { position:absolute; inset:0; z-index:-4; width:100%; height:100%; object-fit:cover; object-position:center center; }
.s118-hero-shade { position:absolute; inset:0; z-index:-3; background:linear-gradient(90deg,rgba(2,12,20,.04) 0%,rgba(2,12,20,.17) 43%,rgba(3,17,27,.76) 71%,rgba(3,17,27,.98) 100%),linear-gradient(180deg,rgba(3,15,24,.04),rgba(2,11,18,.35) 72%,rgba(2,12,19,.93)); }
.s118-hero-grid { position:absolute; inset:0; z-index:-2; opacity:.17; background-image:linear-gradient(rgba(80,202,234,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(80,202,234,.16) 1px,transparent 1px); background-size:72px 72px; mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.35) 40%,#000 100%); }
.s118-hero-shell { min-height:645px; display:flex; align-items:center; justify-content:flex-start; padding-block:70px 125px; }
.s118-hero-copy { width:min(600px,46vw); margin-right:0; margin-left:auto; position:relative; z-index:3; }
.s118-hero-copy h1 { margin:17px 0 0; color:#fff!important; font-size:clamp(3rem,5.1vw,5.35rem)!important; font-weight:800!important; line-height:1.13!important; letter-spacing:-.045em!important; max-width:9.2ch; text-shadow:0 10px 42px rgba(0,0,0,.32); }
.s118-hero-lead { margin-top:20px; max-width:610px; color:#b9cfda; font-size:clamp(.98rem,1.12vw,1.12rem); line-height:2; }
.s118-hero-lead p { margin:0; }
.s118-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:27px; }
.s118-hero-proof { display:flex; align-items:center; gap:15px; margin-top:26px; color:#a5bdca; }
.s118-hero-proof > span { display:flex; align-items:baseline; gap:6px; }
.s118-hero-proof b { color:#fff; font-size:1rem; }
.s118-hero-proof small { font-size:.65rem; }
.s118-hero-proof > i { width:1px; height:20px; background:rgba(255,255,255,.18); }
.s118-capability-rail {
    position:absolute!important; left:50%; right:auto; bottom:0; transform:translate(-50%,50%); z-index:7!important;
    width:min(calc(100% - 48px),1360px)!important; margin:0!important;
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid rgba(78,211,244,.18); border-radius:19px;
    background:rgba(5,28,42,.94); backdrop-filter:blur(18px); box-shadow:0 22px 52px rgba(0,0,0,.32);
}
.s118-capability-rail article { min-height:92px; display:flex; align-items:center; justify-content:center; gap:12px; padding:17px 20px; border-inline-start:1px solid rgba(90,210,239,.12); }
.s118-capability-rail article:first-child { border-inline-start:0; }
.s118-capability-rail article > span { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:13px; background:rgba(60,205,240,.09); border:1px solid rgba(80,215,246,.16); color:#5be0fa; }
.s118-capability-rail svg { width:23px; height:23px; }
.s118-capability-rail b { display:block; color:#f0fbfe; font-size:.76rem; }
.s118-capability-rail small { display:block; margin-top:4px; color:#7999aa; font-size:.61rem; }

/* story */
.s118-story { padding:118px 0 38px; background:linear-gradient(180deg,#041521,#051824); }
.s118-story-card { direction:ltr; display:grid; grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr); border:1px solid var(--s118-line); border-radius:var(--s118-radius); overflow:hidden; background:linear-gradient(145deg,rgba(10,39,56,.94),rgba(6,26,39,.98)); box-shadow:0 24px 70px rgba(0,0,0,.18); }
.s118-story-media { position:relative; min-height:430px; overflow:hidden; }
.s118-story-media:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 55%,rgba(5,25,38,.72)); pointer-events:none; }
.s118-story-media img { width:100%; height:100%; object-fit:cover; }
.s118-media-badge { position:absolute; z-index:2; left:18px; top:18px; padding:7px 10px; border-radius:999px; color:#b9f2ff; background:rgba(3,20,31,.78); border:1px solid rgba(85,220,250,.24); font-size:.58rem; letter-spacing:.08em; }
.s118-play-chip { position:absolute; z-index:3; right:18px; bottom:18px; display:inline-flex; align-items:center; gap:9px; padding:9px 12px; border-radius:999px; color:#fff!important; background:rgba(4,25,38,.86); border:1px solid rgba(255,255,255,.18); font-size:.68rem; }
.s118-play-chip i { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#168ef0; font-size:.64rem; font-style:normal; }
.s118-story-copy { direction:rtl; padding:clamp(34px,4vw,60px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.s118-story-copy h2 { margin:12px 0 14px; color:#fff!important; font-size:clamp(2rem,3.25vw,3.25rem)!important; line-height:1.3!important; font-weight:800!important; letter-spacing:-.035em!important; }
.s118-story-copy p { color:#9eb8c7; line-height:2.05; margin:0; }
.s118-story-copy h3 { color:#c8f5ff!important; font-size:.86rem!important; margin:18px 0 0; line-height:1.7; }
.s118-story-copy .s118-text-link { margin-top:22px; }
.s118-story-metrics { grid-column:1/-1; direction:rtl; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--s118-line); background:rgba(2,17,27,.46); }
.s118-story-metrics div { min-height:92px; display:flex; align-items:center; justify-content:center; gap:10px; border-inline-start:1px solid var(--s118-line); }
.s118-story-metrics div:first-child { border:0; }
.s118-story-metrics strong { color:#5bdffc; font-size:1.35rem; }
.s118-story-metrics span { color:#89a9ba; font-size:.66rem; }

/* analysis */
.s118-analysis { padding:78px 0; background:radial-gradient(circle at 15% 45%,rgba(13,126,189,.10),transparent 30%),#041521; border-block:1px solid rgba(93,208,238,.08); }
.s118-analysis-shell { direction:ltr; display:grid; grid-template-columns:minmax(320px,.88fr) minmax(0,1.12fr); grid-template-areas:"form copy" "form visual"; gap:22px 38px; align-items:start; }
.s118-analysis-copy { grid-area:copy; direction:rtl; padding-top:6px; }
.s118-analysis-copy h2 { margin:12px 0 16px; color:#fff!important; font-size:clamp(2rem,3.45vw,3.35rem)!important; line-height:1.3!important; font-weight:800!important; letter-spacing:-.035em!important; }
.s118-analysis-copy > p { max-width:720px; color:#9fb9c8; line-height:2.05; margin:0; }
.s118-analysis-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:22px; }
.s118-analysis-features span { min-height:44px; display:flex; align-items:center; gap:8px; padding:9px 11px; color:#b9d0db; background:rgba(44,164,204,.07); border:1px solid rgba(80,210,241,.13); border-radius:10px; font-size:.66rem; }
.s118-analysis-features svg { width:18px; height:18px; color:#54d9f6; }
.s118-analysis-visual { grid-area:visual; direction:rtl; position:relative; overflow:hidden; min-height:310px; border:1px solid rgba(83,214,245,.16); border-radius:20px; background:#061a29; }
.s118-analysis-visual img { width:100%; height:100%; min-height:310px; object-fit:cover; object-position:center 58%; }
.s118-analysis-visual:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 65%,rgba(3,18,28,.82)); }
.s118-visual-label { position:absolute; z-index:2; right:14px; bottom:12px; color:#9eeafa; font-size:.58rem; letter-spacing:.09em; }
.s118-analysis-card { grid-area:form; direction:rtl; align-self:stretch; padding:26px; border:1px solid rgba(71,210,246,.22); border-radius:22px; background:linear-gradient(150deg,rgba(8,39,58,.98),rgba(5,27,42,.98)); box-shadow:0 25px 70px rgba(0,0,0,.22); }
.s118-form-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:18px; border-bottom:1px solid rgba(89,211,242,.14); }
.s118-form-head small { display:block; color:#54d9f6; font-size:.58rem; letter-spacing:.08em; }
.s118-form-head strong { display:block; margin-top:6px; color:#eefbff; font-size:.86rem; }
.s118-form-head > svg { width:34px; height:34px; color:#48d8ff; }
.s118-form-grid { display:grid; gap:11px; margin:20px 0 15px; }
.s118-form-grid label { color:#93aebd; font-size:.65rem; }
.s118-form-grid label > span { margin-top:6px; min-height:48px; display:flex; align-items:center; border:1px solid rgba(92,207,238,.18); border-radius:10px; background:#041a29; overflow:hidden; }
.s118-form-grid input { width:100%; min-width:0; height:46px; padding:0 13px; border:0!important; outline:0; background:transparent!important; color:#fff!important; text-align:left; direction:ltr; font-family:inherit; }
.s118-form-grid i { padding:0 12px; color:#5cdcf7; font-size:.62rem; font-style:normal; border-inline-start:1px solid rgba(83,208,239,.15); }
.s118-analysis-card > p { margin:14px 0 0; color:#698999; font-size:.58rem; line-height:1.8; }
.s118-analysis-card .s118-text-link { margin-top:16px; }
.s118-analysis-result { margin-top:13px; border-radius:10px!important; }

/* solutions */
.s118-solutions { position:relative; min-height:680px; padding:78px 0 70px; overflow:hidden; isolation:isolate; border-block:1px solid rgba(87,211,243,.1); }
.s118-solutions-bg { position:absolute; inset:0; z-index:-4; width:100%; height:100%; object-fit:cover; }
.s118-solutions-overlay { position:absolute; inset:0; z-index:-3; background:linear-gradient(90deg,rgba(2,15,24,.70),rgba(2,15,24,.50) 48%,rgba(2,15,24,.88) 78%,rgba(2,15,24,.97)),linear-gradient(180deg,rgba(2,13,21,.22),rgba(2,13,21,.88)); }
.s118-solutions-shell { min-height:535px; display:flex; flex-direction:column; justify-content:space-between; }
.s118-solutions-head { max-width:640px; margin-right:0; margin-left:auto; }
.s118-solutions-head h2 { margin:12px 0 15px; color:#fff!important; font-size:clamp(2.1rem,3.55vw,3.45rem)!important; line-height:1.28!important; font-weight:800!important; letter-spacing:-.04em!important; }
.s118-solutions-head p { color:#acc3cf; line-height:2; margin:0; }
.s118-solutions-head .s118-btn { margin-top:21px; }
.s118-solution-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:64px; }
.s118-solution-card { min-height:210px; padding:22px; display:flex; flex-direction:column; align-items:flex-start; border:1px solid rgba(103,220,248,.17); border-radius:16px; color:#fff!important; background:rgba(5,29,44,.82); backdrop-filter:blur(13px); transition:transform .22s ease,border-color .22s ease,background .22s ease; }
.s118-solution-card:hover { transform:translateY(-5px); border-color:rgba(92,221,250,.42); background:rgba(7,38,56,.94); }
.s118-solution-card > span { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:rgba(52,198,236,.10); color:#56def8; }
.s118-solution-card svg { width:21px; height:21px; }
.s118-solution-card small { margin-top:17px; color:#62dff9; font-size:.56rem; }
.s118-solution-card h3 { color:#fff!important; font-size:1rem!important; line-height:1.55!important; margin:5px 0 7px; }
.s118-solution-card p,.s118-solution-card div { color:#8faab9!important; font-size:.66rem; line-height:1.8; margin:0; }
.s118-solution-card div p { margin:0; }
.s118-solution-card b { margin-top:auto; padding-top:15px; color:#6de4fb; font-size:.64rem; }

/* products */
.s118-products { padding:82px 0; background:linear-gradient(180deg,#041622,#061a27 52%,#041520); }
.s118-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:24px; }
.s118-section-head > div { max-width:770px; }
.s118-section-head h2 { margin:11px 0 10px; color:#fff!important; font-size:clamp(2rem,3.2vw,3.15rem)!important; line-height:1.3!important; font-weight:800!important; letter-spacing:-.035em!important; }
.s118-section-head p { color:#95afbe; line-height:1.95; margin:0; }
.s118-family-filter { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:24px; }
.s118-family-filter a { min-height:36px; display:inline-flex; align-items:center; padding:0 12px; border-radius:9px; color:#8daaba!important; background:rgba(72,205,240,.05); border:1px solid rgba(81,210,242,.13); font-size:.62rem; }
.s118-family-filter a:hover,.s118-family-filter a.is-active { color:#fff!important; border-color:rgba(73,215,247,.34); background:rgba(33,144,205,.13); }
.s118-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.s118-product-card { overflow:hidden; border:1px solid rgba(87,211,242,.16); border-radius:18px; background:linear-gradient(160deg,rgba(9,38,55,.98),rgba(5,26,40,.98)); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.s118-product-card:hover { transform:translateY(-5px); border-color:rgba(81,218,249,.38); box-shadow:0 24px 48px rgba(0,0,0,.18); }
.s118-product-media { position:relative; min-height:245px; display:block; overflow:hidden; background:radial-gradient(circle at 50% 70%,rgba(21,149,217,.17),transparent 55%),#041722; }
.s118-product-media img { width:100%; height:245px; object-fit:cover; transition:transform .35s ease; }
.s118-product-card:hover .s118-product-media img { transform:scale(1.035); }
.s118-product-media:after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(4,20,31,.75),transparent 48%); }
.s118-product-media > span { position:absolute; z-index:2; right:12px; bottom:10px; color:#a7eefe; font-size:.55rem; padding:5px 8px; border-radius:999px; background:rgba(3,20,30,.76); border:1px solid rgba(82,214,244,.20); }
.s118-product-copy { padding:18px; }
.s118-product-copy > small { color:#5dddf7; font-size:.56rem; letter-spacing:.06em; }
.s118-product-copy h3 { margin:6px 0 8px; font-size:.94rem!important; line-height:1.6!important; }
.s118-product-copy h3 a { color:#f2fbfe!important; }
.s118-product-copy p { min-height:50px; color:#829ead; font-size:.65rem; line-height:1.8; margin:0; }
.s118-product-copy > div { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:15px; }
.s118-product-copy > div a { min-height:36px; display:grid; place-items:center; border-radius:8px; color:#b9d7e2!important; background:rgba(80,210,242,.05); border:1px solid rgba(86,210,241,.14); font-size:.61rem; }
.s118-product-copy > div a:first-child { color:#dffaff!important; background:rgba(21,135,198,.13); border-color:rgba(72,207,240,.24); }

/* industries */
.s118-industries { padding:78px 0; background:radial-gradient(circle at 20% 55%,rgba(0,132,211,.12),transparent 34%),#03131f; border-block:1px solid rgba(88,210,241,.09); }
.s118-industries-shell { direction:ltr; display:grid; grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr); gap:48px; align-items:center; }
.s118-industry-visual { position:relative; min-height:450px; direction:rtl; }
.s118-industry-visual img { width:100%; height:450px; object-fit:cover; border-radius:24px; border:1px solid rgba(84,216,247,.18); box-shadow:0 28px 68px rgba(0,0,0,.24); }
.s118-industry-visual:after { content:""; position:absolute; inset:0; border-radius:24px; background:radial-gradient(circle at 50% 62%,transparent 22%,rgba(3,17,27,.26) 65%,rgba(3,17,27,.68)); pointer-events:none; }
.s118-industry-tag { position:absolute; z-index:3; min-height:38px; display:flex; align-items:center; padding:0 11px; border-radius:10px; color:#c8f5ff; background:rgba(4,25,38,.88); border:1px solid rgba(83,217,248,.23); font-size:.61rem; box-shadow:0 8px 25px rgba(0,0,0,.22); }
.s118-industry-tag.tag-a { left:6%; top:10%; }.s118-industry-tag.tag-b { right:4%; top:18%; }.s118-industry-tag.tag-c { left:7%; bottom:9%; }.s118-industry-tag.tag-d { right:7%; bottom:15%; }
.s118-industry-copy { direction:rtl; }
.s118-industry-copy h2 { margin:12px 0 15px; color:#fff!important; font-size:clamp(2rem,3.3vw,3.25rem)!important; line-height:1.3!important; font-weight:800!important; letter-spacing:-.035em!important; }
.s118-industry-copy > p { color:#9cb6c5; line-height:2.05; margin:0; }
.s118-industry-links { display:flex; flex-wrap:wrap; gap:7px; margin:21px 0; }
.s118-industry-links a { min-height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 11px; border-radius:9px; color:#a9c7d4!important; background:rgba(70,199,236,.055); border:1px solid rgba(80,210,242,.14); font-size:.61rem; }
.s118-industry-links a:hover { color:#fff!important; border-color:rgba(75,217,249,.32); }

/* trust */
.s118-trust { padding:78px 0; background:#051824; }
.s118-trust-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:14px; }
.s118-trust-portrait,.s118-trust-proof { overflow:hidden; border:1px solid rgba(88,211,242,.16); border-radius:22px; background:#082233; }
.s118-trust-portrait { display:grid; grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr); }
.s118-trust-portrait img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.s118-trust-portrait > div { padding:36px; display:flex; flex-direction:column; justify-content:center; }
.s118-trust-portrait span,.s118-trust-proof span { color:#5dddf8; font-size:.58rem; letter-spacing:.08em; }
.s118-trust-portrait h2 { margin:10px 0 13px; color:#fff!important; font-size:clamp(1.7rem,2.7vw,2.55rem)!important; line-height:1.38!important; }
.s118-trust-portrait p { color:#91adbc; line-height:2; margin:0; }
.s118-trust-portrait small { margin-top:16px; color:#638392; font-size:.55rem; }
.s118-trust-proof { position:relative; min-height:360px; }
.s118-trust-proof img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.42; }
.s118-trust-proof:after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(4,22,34,.98),rgba(4,22,34,.38)); }
.s118-trust-proof > div { position:absolute; z-index:2; inset:auto 25px 25px; }
.s118-trust-proof h3 { color:#fff!important; font-size:1.35rem!important; line-height:1.5!important; margin:7px 0 10px; }
.s118-trust-proof ul { margin:0; padding:0 18px 0 0; color:#a2bdc9; font-size:.65rem; line-height:1.95; }

/* knowledge */
.s118-knowledge { padding:82px 0; background:linear-gradient(180deg,#04141f,#061a27); }
.s118-knowledge-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.s118-knowledge-card { overflow:hidden; border:1px solid rgba(87,210,241,.15); border-radius:18px; background:#082434; }
.s118-knowledge-media { display:block; height:220px; overflow:hidden; background:#041521; }
.s118-knowledge-media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.s118-knowledge-card:hover .s118-knowledge-media img { transform:scale(1.035); }
.s118-knowledge-copy { padding:19px; }
.s118-knowledge-copy > span { color:#62def7; font-size:.56rem; }
.s118-knowledge-copy h3 { margin:7px 0 8px; font-size:1rem!important; line-height:1.65!important; }
.s118-knowledge-copy h3 a { color:#f2fbfe!important; }
.s118-knowledge-copy p { color:#819eae; font-size:.65rem; line-height:1.8; }
.s118-knowledge-copy small { color:#668596; font-size:.58rem; }
.s118-knowledge-copy > a:last-child { display:inline-flex; margin-top:15px; color:#66def8!important; font-size:.65rem; font-weight:700; }

/* gallery */
.s118-gallery { padding:78px 0; background:#03131f; border-top:1px solid rgba(88,210,241,.08); }
.s118-gallery-shell { direction:ltr; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); gap:48px; align-items:center; }
.s118-gallery-copy { direction:rtl; grid-column:2; }
.s118-gallery-copy h2 { margin:11px 0 12px; color:#fff!important; font-size:clamp(2rem,3.2vw,3.1rem)!important; line-height:1.3!important; font-weight:800!important; }
.s118-gallery-copy p { color:#96b1c0; line-height:2; margin:0 0 20px; }
.s118-gallery-mosaic { direction:rtl; grid-column:1; grid-row:1; display:grid; grid-template-columns:1.2fr .8fr; grid-template-rows:170px 170px; gap:9px; }
.s118-gallery-mosaic a { position:relative; overflow:hidden; border-radius:14px; border:1px solid rgba(85,212,242,.13); }
.s118-gallery-mosaic a.g-1 { grid-row:1/3; }
.s118-gallery-mosaic img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.s118-gallery-mosaic a:hover img { transform:scale(1.04); }
.s118-gallery-mosaic a:after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(3,18,28,.78),transparent 50%); }
.s118-gallery-mosaic span { position:absolute; z-index:2; right:10px; bottom:9px; color:#d6f7ff; font-size:.58rem; }

/* client rail */
.s118-client-rail { padding:26px 0 52px; background:#03131f; }
.s118-client-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; color:#7d9bab; }
.s118-client-head span { color:#59d7f3; font-size:.56rem; letter-spacing:.08em; }
.s118-client-head strong { font-size:.7rem; font-weight:500; }
.s118-client-logos { display:flex; align-items:center; gap:9px; overflow-x:auto; scrollbar-width:none; padding-bottom:4px; }
.s118-client-logos::-webkit-scrollbar { display:none; }
.s118-client-logos > span { flex:0 0 135px; height:76px; display:grid; place-items:center; padding:12px; border:1px solid rgba(87,208,239,.12); border-radius:12px; background:rgba(7,31,45,.72); }
.s118-client-logos img { max-width:100%; max-height:48px; object-fit:contain; filter:grayscale(1) brightness(1.35); opacity:.78; }

/* final */
.s118-final { position:relative; min-height:430px; overflow:hidden; isolation:isolate; border-top:1px solid rgba(88,212,243,.1); }
.s118-final > img { position:absolute; inset:0; z-index:-3; width:100%; height:100%; object-fit:cover; object-position:center 54%; }
.s118-final-overlay { position:absolute; inset:0; z-index:-2; background:linear-gradient(90deg,rgba(2,12,20,.10),rgba(2,12,20,.35) 45%,rgba(2,12,20,.92) 78%,rgba(2,12,20,.99)),linear-gradient(180deg,rgba(3,16,25,.12),rgba(3,16,25,.70)); }
.s118-final-shell { min-height:430px; display:grid; grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr); grid-template-areas:"actions copy"; gap:36px; align-items:center; direction:ltr; }
.s118-final-shell > div:first-child { grid-area:copy; direction:rtl; max-width:640px; margin-inline-start:auto; }
.s118-final-shell h2 { margin:11px 0 13px; color:#fff!important; font-size:clamp(2.1rem,3.6vw,3.6rem)!important; line-height:1.28!important; font-weight:800!important; letter-spacing:-.04em!important; }
.s118-final-shell p { color:#aec4cf; line-height:2; margin:0; }
.s118-final-actions { grid-area:actions; direction:rtl; display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:flex-start; }

/* reveal refinement */
body.stage118-home-page [data-reveal] { will-change:transform,opacity; }

@media (max-width:1180px) {
    .s118-home .container { width:min(calc(100% - 36px),1360px); }
    .s118-capability-rail { width:min(calc(100% - 36px),1360px)!important; }
    .s118-hero { min-height:675px; }
    .s118-hero-shell { min-height:600px; }
    .s118-hero-copy { width:min(590px,52vw); }
    .s118-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .s118-solution-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .s118-trust-grid { grid-template-columns:1fr; }
    .s118-trust-proof { min-height:300px; }
}

@media (max-width:900px) {
    .s118-home .container { width:min(calc(100% - 28px),1360px); }
    .s118-hero { min-height:760px; overflow:visible; }
    .s118-hero-media { object-position:35% center; }
    .s118-hero-shade { background:linear-gradient(180deg,rgba(2,12,20,.52) 0%,rgba(2,12,20,.22) 38%,rgba(2,12,20,.91) 70%,rgba(2,12,20,.99) 100%); }
    .s118-hero-shell { min-height:670px; align-items:flex-end; padding-bottom:155px; }
    .s118-hero-copy { width:100%; margin-inline:auto; text-align:center; }
    .s118-kicker { margin-inline:auto; }
    .s118-hero-copy h1 { max-width:12ch; margin-inline:auto; font-size:clamp(2.75rem,9vw,4.5rem)!important; }
    .s118-hero-lead { margin-inline:auto; max-width:650px; }
    .s118-hero-actions,.s118-hero-proof { justify-content:center; }
    .s118-capability-rail { grid-template-columns:repeat(2,1fr); width:calc(100% - 28px)!important; }
    .s118-capability-rail article { min-height:72px; }
    .s118-story { padding-top:132px; }
    .s118-story-card { grid-template-columns:1fr; }
    .s118-story-media { min-height:360px; }
    .s118-story-copy { padding:34px; }
    .s118-analysis-shell { grid-template-columns:1fr; grid-template-areas:"copy" "visual" "form"; }
    .s118-analysis-copy { text-align:center; }
    .s118-analysis-copy .s118-eyebrow { margin-inline:auto; }
    .s118-analysis-copy > p { margin-inline:auto; }
    .s118-analysis-features { max-width:660px; margin-inline:auto; margin-top:22px; }
    .s118-analysis-card { max-width:650px; width:100%; margin-inline:auto; }
    .s118-solutions-head { margin-inline:auto; text-align:center; }
    .s118-solutions-head .s118-eyebrow { margin-inline:auto; }
    .s118-industries-shell,.s118-gallery-shell { grid-template-columns:1fr; gap:32px; }
    .s118-industry-copy { text-align:center; }
    .s118-industry-copy .s118-eyebrow { margin-inline:auto; }
    .s118-industry-links { justify-content:center; }
    .s118-gallery-copy { grid-column:1; grid-row:1; text-align:center; }
    .s118-gallery-copy .s118-eyebrow { margin-inline:auto; }
    .s118-gallery-mosaic { grid-column:1; grid-row:2; }
    .s118-trust-portrait { grid-template-columns:1fr 1fr; }
    .s118-knowledge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .s118-knowledge-card:last-child { grid-column:1/-1; }
    .s118-section-head { align-items:flex-start; }
    .s118-final-shell { grid-template-columns:1fr; grid-template-areas:"copy" "actions"; align-content:center; }
    .s118-final-shell > div:first-child { text-align:center; margin-inline:auto; }
    .s118-final-shell .s118-eyebrow { margin-inline:auto; }
    .s118-final-actions { justify-content:center; }
}

@media (max-width:640px) {
    .s118-home .container { width:calc(100% - 24px); }
    body.stage118-home-page .header-inner-polished { min-height:64px; }
    .s118-btn { width:100%; min-height:47px; }
    .s118-hero { min-height:700px; }
    .s118-hero-media { object-position:30% center; }
    .s118-hero-shell { min-height:610px; padding:48px 0 175px; }
    .s118-hero-copy h1 { font-size:clamp(2.4rem,12vw,3.55rem)!important; line-height:1.16!important; }
    .s118-hero-lead { font-size:.92rem; line-height:1.9; }
    .s118-hero-actions { display:grid; width:min(100%,380px); margin-inline:auto; margin-top:22px; }
    .s118-hero-proof { gap:9px; flex-wrap:wrap; }
    .s118-hero-proof > i { display:none; }
    .s118-capability-rail { width:calc(100% - 20px)!important; grid-template-columns:1fr 1fr; }
    .s118-capability-rail article { min-height:76px; padding:10px; gap:8px; }
    .s118-capability-rail article > span { width:34px; height:34px; border-radius:10px; }
    .s118-capability-rail svg { width:19px; height:19px; }
    .s118-capability-rail b { font-size:.66rem; }.s118-capability-rail small { font-size:.54rem; }
    .s118-story { padding-top:138px; }
    .s118-story-media { min-height:280px; }
    .s118-story-copy { padding:26px 22px; }
    .s118-story-copy h2,.s118-analysis-copy h2,.s118-solutions-head h2,.s118-section-head h2,.s118-industry-copy h2,.s118-gallery-copy h2,.s118-final-shell h2 { font-size:clamp(1.8rem,9vw,2.65rem)!important; }
    .s118-story-metrics { grid-template-columns:1fr; }
    .s118-story-metrics div { min-height:65px; border-inline-start:0; border-top:1px solid var(--s118-line); }
    .s118-story-metrics div:first-child { border-top:0; }
    .s118-analysis,.s118-products,.s118-industries,.s118-trust,.s118-knowledge,.s118-gallery { padding:58px 0; }
    .s118-analysis-features { grid-template-columns:1fr; }
    .s118-analysis-visual,.s118-analysis-visual img { min-height:250px; }
    .s118-analysis-card { padding:20px; }
    .s118-solution-cards { grid-template-columns:1fr; margin-top:38px; }
    .s118-solution-card { min-height:185px; }
    .s118-section-head { flex-direction:column; gap:18px; margin-bottom:20px; }
    .s118-section-head .s118-btn { width:auto; }
    .s118-family-filter { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
    .s118-family-filter::-webkit-scrollbar { display:none; }
    .s118-family-filter a { flex:0 0 auto; }
    .s118-product-grid { grid-template-columns:1fr; }
    .s118-product-media,.s118-product-media img { min-height:270px; height:270px; }
    .s118-industry-visual,.s118-industry-visual img { min-height:330px; height:330px; }
    .s118-industry-tag { font-size:.53rem; min-height:32px; padding-inline:8px; }
    .s118-trust-portrait { grid-template-columns:1fr; }
    .s118-trust-portrait img { min-height:280px; height:280px; }
    .s118-trust-portrait > div { padding:25px 22px; }
    .s118-knowledge-grid { grid-template-columns:1fr; }
    .s118-knowledge-card:last-child { grid-column:auto; }
    .s118-knowledge-media { height:205px; }
    .s118-gallery-mosaic { grid-template-columns:1fr 1fr; grid-template-rows:180px 140px 140px; }
    .s118-gallery-mosaic a.g-1 { grid-column:1/-1; grid-row:1; }
    .s118-gallery-mosaic a.g-2 { grid-column:1; grid-row:2; }
    .s118-gallery-mosaic a.g-3 { grid-column:2; grid-row:2; }
    .s118-gallery-mosaic a.g-4 { grid-column:1/-1; grid-row:3; }
    .s118-client-head { align-items:flex-start; flex-direction:column; gap:6px; }
    .s118-final { min-height:500px; }
    .s118-final > img { object-position:34% center; }
    .s118-final-overlay { background:linear-gradient(180deg,rgba(2,12,20,.34),rgba(2,12,20,.90) 60%,rgba(2,12,20,.99)); }
    .s118-final-shell { min-height:500px; padding-block:55px; }
    .s118-final-actions { display:grid; width:100%; max-width:390px; margin-inline:auto; }
}

@media (max-width:420px) {
    .s118-hero-proof > span { width:100%; justify-content:center; }
    .s118-capability-rail { grid-template-columns:1fr 1fr; }
    .s118-capability-rail article > div small { display:none; }
    .s118-story-media { min-height:235px; }
    .s118-media-badge { display:none; }
    .s118-play-chip { right:10px; bottom:10px; }
    .s118-form-head strong { font-size:.76rem; }
    .s118-gallery-mosaic { grid-template-columns:1fr; grid-template-rows:190px 150px 150px 150px; }
    .s118-gallery-mosaic a.g-1,.s118-gallery-mosaic a.g-2,.s118-gallery-mosaic a.g-3,.s118-gallery-mosaic a.g-4 { grid-column:1; grid-row:auto; }
}

@media (prefers-reduced-motion:reduce) {
    .s118-home *, .s118-home *::before, .s118-home *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

/* Small motion layer driven by the Stage 11.8 homepage script. */
.s118-hero-media { transform:scale(1.01); transition:transform .45s cubic-bezier(.2,.7,.2,1); }
.s118-industry-tag { opacity:0; transform:translateY(7px) scale(.98); transition:opacity .35s ease,transform .35s ease; }
.s118-industry-tag.is-ready { opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce) { .s118-industry-tag { opacity:1; transform:none; } }


/* Stage 11.8.1 safety: generic reveal uses transform:none on .is-visible.
   The capability rail needs its translate for absolute centering, so lock it even if
   an older cached template still carries data-reveal. */
body.stage1181-home-layout-fix .s118-capability-rail[data-reveal],
body.stage1181-home-layout-fix .s118-capability-rail[data-reveal].is-visible {
    opacity:1!important;
    transform:translate(-50%,50%)!important;
}
