/* Bilal.com.pk Rebuilt v13 — stable single-layer homepage refresh */
:root{
  --v13-gold:#e8b642;--v13-gold2:#f5c75a;--v13-cyan:#63cfff;--v13-bg:#050b14;--v13-panel:#0a1523;--v13-panel2:#0e2033;--v13-line:rgba(255,255,255,.10);--v13-text:#f4f7fb;--v13-muted:#9eafc2
}
.v13-hide{display:none!important}
html[data-rebuilt-v13="1"]{scroll-behavior:smooth}
body.v13-modal-open{overflow:hidden}

/* Header: PLAY behaves like normal nav text, CHAT stays special */
.main-nav .v13-play-normal,.main-nav .nav-play{
  appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;border-radius:0!important;padding:0!important;font:inherit!important;letter-spacing:inherit!important;text-transform:none!important;cursor:pointer
}
.main-nav .v13-play-normal:hover,.main-nav .nav-play:hover{color:#fff!important}
.main-nav .v13-nav-chat{
  position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 16px!important;border:1px solid rgba(232,182,66,.68)!important;border-radius:10px!important;background:linear-gradient(135deg,rgba(232,182,66,.13),rgba(8,21,35,.88))!important;color:#ffd15d!important;font:700 12px/1 "IBM Plex Mono",monospace!important;letter-spacing:.08em!important;box-shadow:0 0 0 1px rgba(232,182,66,.05) inset,0 8px 25px rgba(0,0,0,.18),0 0 24px rgba(232,182,66,.07)!important;overflow:hidden
}
.main-nav .v13-nav-chat::before{content:"";width:8px;height:8px;border-radius:50%;margin-right:7px;background:#2ce28a;box-shadow:0 0 0 4px rgba(44,226,138,.10),0 0 12px rgba(44,226,138,.75);animation:v13Pulse 2s ease-in-out infinite}
.main-nav .v13-nav-chat::after{content:"";position:absolute;inset:-1px;pointer-events:none;background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.12) 45%,transparent 62%);transform:translateX(-120%);animation:v13Sweep 4.8s ease-in-out infinite}
@keyframes v13Pulse{50%{opacity:.45;transform:scale(.85)}}
@keyframes v13Sweep{0%,65%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}

/* Hero clarity */
.v13-hero-kicker{display:inline-flex;align-items:center;gap:9px;margin:0 0 16px;padding:8px 12px;border:1px solid rgba(232,182,66,.30);border-radius:999px;background:rgba(232,182,66,.055);color:var(--v13-gold2);font:600 10px/1 "IBM Plex Mono",monospace;letter-spacing:.13em}
.v13-hero-kicker i{width:7px;height:7px;border-radius:50%;background:var(--v13-gold);box-shadow:0 0 14px rgba(232,182,66,.7)}
.hero-lede{max-width:790px!important;line-height:1.62!important;color:#becada!important;font-size:clamp(15px,1.05vw,18px)!important}
.hero-lede strong{color:#fff!important}
.hero-copy h1{max-width:850px}
.hero-highlight-row{max-width:690px}
.micro-proof.expertise-ribbon{max-width:820px}
.micro-proof.expertise-ribbon span{white-space:nowrap}
.v13-portrait-badge{position:absolute;right:-18px;bottom:68px;z-index:8;display:flex;flex-direction:column;align-items:flex-start;min-width:145px;padding:13px 15px;border:1px solid rgba(232,182,66,.35);border-radius:14px;background:linear-gradient(145deg,rgba(11,26,43,.94),rgba(5,11,20,.9));color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.34),0 0 30px rgba(232,182,66,.07);cursor:pointer;text-align:left}
.v13-portrait-badge strong{color:var(--v13-gold2);font:700 24px/1 "Space Grotesk",sans-serif}.v13-portrait-badge span{margin-top:5px;color:#e5edf6;font:600 9px/1.2 "IBM Plex Mono",monospace;letter-spacing:.12em}.v13-portrait-badge small{margin-top:8px;color:#80d5ff;font-size:10px}

/* Visual story mobile-friendly on all viewports */
#visual-story .story-panel{border-radius:22px}

/* Industries */
#clients #clientGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#clients #clientGrid .v13-industry-card{display:block!important;opacity:1!important;transform:none!important;min-height:260px;padding:26px;border:1px solid var(--v13-line);border-radius:20px;background:linear-gradient(145deg,rgba(13,31,51,.86),rgba(5,11,20,.82));position:relative;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
#clients #clientGrid .v13-industry-card::after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-70px;top:-70px;background:radial-gradient(circle,rgba(99,207,255,.09),transparent 68%)}
.v13-industry-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid rgba(232,182,66,.32);color:var(--v13-gold2);background:rgba(232,182,66,.06);font:700 11px/1 "IBM Plex Mono",monospace;margin-bottom:28px}
#clients #clientGrid .v13-industry-card strong{display:block;color:#fff;font:700 clamp(22px,2vw,30px)/1.08 "Space Grotesk",sans-serif}
#clients #clientGrid .v13-industry-card>span{display:block;margin-top:8px;color:var(--v13-gold2);font:600 10px/1.2 "IBM Plex Mono",monospace;letter-spacing:.13em;text-transform:uppercase}
#clients #clientGrid .v13-industry-card p{margin:22px 0 0;color:var(--v13-muted);font-size:14px;line-height:1.7}

/* Journey gateway */
.v13-story-gateway{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0;margin:36px 0 44px;border:1px solid rgba(232,182,66,.19);border-radius:24px;overflow:hidden;background:linear-gradient(145deg,rgba(8,20,34,.94),rgba(5,11,20,.97));box-shadow:0 24px 70px rgba(0,0,0,.22)}
.v13-story-image{position:relative;min-height:430px;overflow:hidden;cursor:zoom-in;background:#08111d}
.v13-story-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .7s}.v13-story-image:hover img{transform:scale(1.035);filter:saturate(1.06)}
.v13-story-image::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 52%,rgba(5,11,20,.18)),linear-gradient(0deg,rgba(5,11,20,.40),transparent 40%)}
.v13-story-image>span{position:absolute;z-index:2;left:18px;bottom:18px;padding:8px 10px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(5,11,20,.7);backdrop-filter:blur(12px);color:#d8e6f4;font:500 9px/1 "IBM Plex Mono",monospace;letter-spacing:.11em}
.v13-story-copy{padding:clamp(28px,4vw,58px);display:flex;flex-direction:column;justify-content:center}
.v13-story-mini{display:flex;align-items:center;gap:14px;margin-bottom:18px}.v13-story-mini img{width:64px;height:64px;border-radius:16px;object-fit:cover;border:1px solid rgba(232,182,66,.28)}.v13-story-mini small{display:block;color:var(--v13-gold2);font:600 9px/1 "IBM Plex Mono",monospace;letter-spacing:.13em;margin-bottom:7px}.v13-story-mini strong{display:block;color:#fff;font:600 14px/1.2 "Space Grotesk",sans-serif}
.v13-story-copy h3{margin:0;color:#fff;font:700 clamp(30px,3vw,46px)/1.04 "Space Grotesk",sans-serif;letter-spacing:-.04em}.v13-story-copy>p{margin:18px 0 24px;color:#aebed0;line-height:1.72;font-size:15px;max-width:720px}.v13-story-open{align-self:flex-start}
.v13-story-route{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:24px;color:#91a6ba;font:500 9px/1 "IBM Plex Mono",monospace;letter-spacing:.08em}.v13-story-route i{color:var(--v13-gold)}

/* Story modal */
.v13-story-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:26px;background:rgba(1,6,12,.86);backdrop-filter:blur(16px);opacity:0;visibility:hidden;transition:.25s}
.v13-story-modal.open{opacity:1;visibility:visible}
.v13-story-dialog{width:min(1240px,96vw);max-height:92vh;overflow:hidden;border:1px solid rgba(232,182,66,.24);border-radius:24px;background:linear-gradient(145deg,#07111d,#040a12);box-shadow:0 40px 100px rgba(0,0,0,.55);display:grid;grid-template-rows:auto 3px minmax(0,1fr) auto auto}
.v13-story-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.06)}.v13-story-dialog>header small{display:block;color:#8ea3b8;font:500 9px/1 "IBM Plex Mono",monospace;letter-spacing:.14em;margin-bottom:5px}.v13-story-dialog>header strong{color:var(--v13-gold2);font:700 24px/1 "Space Grotesk",sans-serif}.v13-story-dialog>header button{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font-size:25px;cursor:pointer}
.v13-story-progress{background:rgba(255,255,255,.05);overflow:hidden}.v13-story-progress i{display:block;width:10%;height:100%;background:linear-gradient(90deg,var(--v13-gold),var(--v13-cyan));transition:width .35s}
.v13-story-body{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);min-height:0}.v13-story-body figure{margin:0;min-height:0;background:#02070c;overflow:hidden}.v13-story-body figure img{width:100%;height:100%;min-height:430px;object-fit:cover}.v13-story-body section{padding:clamp(30px,4vw,62px);overflow:auto;display:flex;flex-direction:column;justify-content:center}.v13-story-body h2{margin:10px 0 18px;color:#fff;font:700 clamp(34px,4vw,58px)/1.02 "Space Grotesk",sans-serif;letter-spacing:-.045em}.v13-story-body p{margin:0;color:#b9c7d6;font-size:clamp(15px,1.05vw,18px);line-height:1.75}.v13-story-quote{margin-top:28px;padding:18px 20px;border-left:2px solid var(--v13-gold);background:rgba(232,182,66,.05);color:#e9f1f8;font:600 14px/1.55 "Space Grotesk",sans-serif}
.v13-story-years{display:flex;gap:7px;overflow-x:auto;padding:12px 18px;border-top:1px solid rgba(255,255,255,.055);scrollbar-width:none}.v13-story-years::-webkit-scrollbar{display:none}.v13-story-years button{flex:0 0 auto;padding:8px 11px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.025);color:#91a4b7;font:500 9px/1 "IBM Plex Mono",monospace;cursor:pointer}.v13-story-years button.active{border-color:rgba(232,182,66,.5);color:var(--v13-gold2);background:rgba(232,182,66,.07)}
.v13-story-dialog>footer{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid rgba(255,255,255,.06)}.v13-story-dialog>footer button{padding:10px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.035);color:#fff;cursor:pointer}.v13-story-dialog>footer span{color:#8296aa;font:500 10px/1 "IBM Plex Mono",monospace}

/* Digital showcase */
.v13-digital-showcase{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:34px 0 36px}
.v13-digital-feature{overflow:hidden;border:1px solid var(--v13-line);border-radius:20px;background:linear-gradient(145deg,rgba(12,29,48,.9),rgba(5,11,20,.86));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.v13-digital-feature figure{position:relative;margin:0;aspect-ratio:16/8.7;overflow:hidden;cursor:zoom-in}.v13-digital-feature figure img{width:100%;height:100%;object-fit:cover;transition:transform .65s ease}.v13-digital-feature figure:hover img{transform:scale(1.035)}
.v13-digital-feature>div{padding:24px}.v13-digital-feature>div>span{display:block;margin-bottom:10px;color:var(--v13-gold2);font:600 9px/1 "IBM Plex Mono",monospace;letter-spacing:.13em}.v13-digital-feature h3{margin:0;color:#fff;font:700 clamp(24px,2.5vw,36px)/1.08 "Space Grotesk",sans-serif;letter-spacing:-.035em}.v13-digital-feature p{margin:13px 0 0;color:#9fb0c2;font-size:14px;line-height:1.7}.v13-feature-wide{grid-column:1/-1;display:grid;grid-template-columns:1.08fr .92fr}.v13-feature-wide figure{aspect-ratio:auto;min-height:390px}.v13-feature-brand{display:grid;grid-template-columns:180px 1fr;align-items:center}.v13-feature-brand figure{aspect-ratio:1/1;margin:20px;border-radius:18px}.v13-feature-brand>div{padding-left:2px}
.v13-link{margin-top:18px;padding:0;border:0;background:none;color:#7cd8ff;font:600 12px/1.2 "Space Grotesk",sans-serif;cursor:pointer;text-align:left}.v13-link:hover{color:#fff}

/* Game polish */
.v13-game-brief{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:18px auto}.v13-game-brief span{padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:999px;background:rgba(255,255,255,.035);color:#9eb1c4;font:500 9px/1 "IBM Plex Mono",monospace}.v13-game-brief b{color:#fff}.v13-game-tip{display:block;margin:12px auto 0;color:#7f92a5;font:500 9px/1.5 "IBM Plex Mono",monospace;text-align:center}.v13-game-progress{height:3px;background:rgba(255,255,255,.055);overflow:hidden}.v13-game-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--v13-gold),var(--v13-cyan));transition:width .2s linear}.arcade-hud>div:last-child strong#v13GameBest{color:var(--v13-gold2)}

/* Image zoom for new visuals */
.v13-image-modal{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;padding:28px;background:rgba(1,5,10,.90);backdrop-filter:blur(16px);opacity:0;visibility:hidden;transition:.2s}.v13-image-modal.open{opacity:1;visibility:visible}.v13-image-modal img{max-width:min(1500px,94vw);max-height:90vh;border-radius:18px;box-shadow:0 30px 100px rgba(0,0,0,.55)}.v13-image-modal button{position:fixed;right:24px;top:20px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:#0a1420;color:#fff;font-size:26px;cursor:pointer}

/* Hover refinement */
.v13-industry-card,.v13-digital-feature,.v13-story-gateway{transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease}.v13-industry-card:hover,.v13-digital-feature:hover{transform:translateY(-3px);border-color:rgba(232,182,66,.24);box-shadow:0 20px 50px rgba(0,0,0,.18)}

/* Mobile is intentionally simpler and shorter */
@media(max-width:900px){
  .cursor-glow,.cursor-ring,.section-rail,.route-cursor-canvas{display:none!important}
  #clients #clientGrid{grid-template-columns:1fr}
  #clients #clientGrid .v13-industry-card{min-height:auto;padding:22px}
  .v13-story-gateway{grid-template-columns:1fr}.v13-story-image{min-height:300px}.v13-story-copy{padding:28px}
  .v13-digital-showcase{grid-template-columns:1fr}.v13-feature-wide{grid-column:auto;display:block}.v13-feature-wide figure{min-height:0;aspect-ratio:16/9}.v13-feature-brand{display:grid;grid-template-columns:130px 1fr}.v13-feature-brand figure{margin:14px}
  .v13-story-body{grid-template-columns:1fr}.v13-story-body figure{height:31vh}.v13-story-body figure img{min-height:0;height:100%}.v13-story-body section{padding:28px}.v13-story-body h2{font-size:36px}.v13-story-dialog{max-height:94vh}
  #visual-story .story-stack{display:flex;overflow-x:auto;gap:14px;padding:0 18px 12px;scroll-snap-type:x mandatory;scrollbar-width:none}#visual-story .story-stack::-webkit-scrollbar{display:none}#visual-story .story-panel{flex:0 0 88vw;scroll-snap-align:center;margin:0!important;display:flex!important;flex-direction:column!important}#visual-story .story-media{min-height:270px!important}#visual-story .story-copy{order:2}
}
@media(max-width:700px){
  .site-header{padding-left:14px!important;padding-right:14px!important}
  .brand-copy small{display:none}.brand-copy strong{font-size:11px!important}
  .command-button{display:none!important}
  .hero{min-height:auto!important;padding-top:98px!important;padding-bottom:52px!important}
  .hero-layout{display:flex!important;flex-direction:column!important;gap:26px!important}
  .hero-copy{width:100%!important}
  .hero-copy h1{font-size:clamp(46px,13vw,68px)!important;line-height:.94!important;letter-spacing:-.055em!important}
  .v13-hero-kicker{font-size:8px;line-height:1.45;padding:7px 9px;max-width:100%}
  .hero-credential-bar{gap:7px!important;flex-wrap:wrap!important}.hero-credential-bar span,.hero-credential-bar b,.hero-credential-bar strong,.hero-credential-bar em{font-size:8px!important}
  .hero-highlight-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.hero-highlight{min-width:0!important;padding:12px 9px!important}.hero-highlight strong{font-size:21px!important}.hero-highlight span{font-size:9px!important}.hero-highlight small{font-size:7px!important;line-height:1.25!important}
  .role-line{font-size:11px!important;gap:7px!important;flex-wrap:wrap!important}.role-line strong{font-size:11px!important}
  .cross-edge-line{gap:6px!important;flex-wrap:wrap!important}.cross-edge-line span{font-size:7px!important}
  .hero-lede{font-size:14px!important;line-height:1.58!important;margin-top:16px!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.hero-actions .btn{justify-content:center!important;width:100%!important;padding:12px 10px!important;font-size:10px!important}.hero-actions .btn-ghost{grid-column:1/-1}
  .micro-proof.expertise-ribbon{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:6px!important;scrollbar-width:none}.micro-proof.expertise-ribbon::-webkit-scrollbar{display:none}.micro-proof.expertise-ribbon span{flex:0 0 auto;font-size:8px!important}
  .hero-portrait-zone{width:min(88vw,430px)!important;margin:0 auto!important}.v13-portrait-badge{right:6px;bottom:20px;min-width:120px;padding:10px 12px}.v13-portrait-badge strong{font-size:20px}
  .section{padding-top:70px!important;padding-bottom:70px!important}.section-heading h2{font-size:clamp(36px,10vw,52px)!important}.section-heading p{font-size:14px!important;line-height:1.6!important}
  .v13-story-image{min-height:235px}.v13-story-copy{padding:22px}.v13-story-copy h3{font-size:31px}.v13-story-copy>p{font-size:14px}.v13-story-route{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none}.v13-story-route span{white-space:nowrap}
  .career-path{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important;scroll-snap-type:x mandatory!important;padding-bottom:8px!important}.career-path .career-step{flex:0 0 75vw!important;scroll-snap-align:center!important}.career-path>i{display:none!important}
  .timeline{margin-top:34px!important}
  .v13-digital-showcase{gap:12px;margin-top:24px}.v13-digital-feature>div{padding:19px}.v13-digital-feature h3{font-size:27px}.v13-feature-brand{grid-template-columns:100px 1fr}.v13-feature-brand figure{margin:12px}.v13-feature-brand>div{padding:12px 12px 12px 0}
  .tech-stage{display:block!important}.tech-orbit{transform:scale(.78);transform-origin:center top;margin-bottom:-60px!important}.tech-detail{margin-top:0!important}
  .v13-story-modal{padding:0}.v13-story-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;grid-template-rows:auto 3px minmax(0,1fr) auto auto}.v13-story-body{overflow:auto}.v13-story-body figure{height:28vh;min-height:190px}.v13-story-body section{padding:22px;justify-content:flex-start}.v13-story-body h2{font-size:31px;margin-top:8px}.v13-story-body p{font-size:14px;line-height:1.65}.v13-story-quote{font-size:12px;padding:13px 15px;margin-top:20px}.v13-story-dialog>header{padding:13px 16px}.v13-story-dialog>footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.v13-story-dialog>footer button{font-size:11px;padding:9px 11px}
  .arcade-console{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.arcade-stage-wrap{min-height:0!important}.arcade-hud{grid-template-columns:repeat(3,1fr)!important}.arcade-mobile-controls{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}.v13-game-brief{gap:5px}.v13-game-brief span{font-size:7px;padding:6px 7px}
  .v13-image-modal{padding:12px}.v13-image-modal img{max-width:96vw;max-height:88vh}
}
@media(max-width:420px){
  .hero-highlight-row{grid-template-columns:1fr 1fr!important}.hero-highlight-row .hero-highlight:nth-child(3){grid-column:1/-1}.hero-actions{grid-template-columns:1fr!important}.hero-actions .btn-ghost{grid-column:auto}.v13-feature-brand{display:block}.v13-feature-brand figure{width:130px;margin:18px auto 4px}.v13-feature-brand>div{padding:18px}.v13-story-mini img{width:54px;height:54px}.v13-story-copy h3{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.v13-nav-chat::before,.v13-nav-chat::after{animation:none}.v13-industry-card,.v13-digital-feature,.v13-story-image img{transition:none}}
