/* Design Dominators: ink + electric violet + coral. Syne (display) / Inter (body). */
:root {
  --ink: #0a0a10; --ink-2: #12111c; --ink-3: #1b1a29; --line: rgba(241,239,233,.12);
  --bone: #f1efe9; --mute: rgba(241,239,233,.62); --violet: #7c5cff; --coral: #ff5b3a; --lime: #c6ff4d;
  --grad: linear-gradient(100deg, #9c86ff 0%, #7c5cff 35%, #ff5b3a 100%);
  --display: "Syne", "Arial Black", sans-serif; --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1); --out: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
p { margin: 0; }
.wrap { width: min(1320px, 100% - 64px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,255,77,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198,255,77,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,77,0); } }
.h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: .98; max-width: 16ch; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--mute); max-width: 52ch; margin-top: 24px; }

/* canvas + atmosphere */
#swarm { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(55% 45% at 78% 30%, rgba(124,92,255,.22), transparent 70%), radial-gradient(45% 40% at 10% 85%, rgba(255,91,58,.14), transparent 70%), var(--ink); }
.noise { position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .footer { position: relative; z-index: 1; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: clip-path 1s var(--out); clip-path: inset(0 0 0 0); }
#loader.done { clip-path: inset(0 0 100% 0); }
#loader.gone { display: none; }
.loader-mark { display: flex; align-items: flex-end; gap: 22px; }
.loader-dd { width: 130px; stroke: url(#g); stroke: var(--violet); stroke-width: 5; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-count { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.loader-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.loader-line span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* cursor */
#cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.c-dot, .c-ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--bone); }
.c-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(241,239,233,.5); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.c-ring em { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
#cursor.link .c-ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-color: var(--violet); background: rgba(124,92,255,.12); }
#cursor.drag .c-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--bone); border-color: var(--bone); }
#cursor.drag .c-ring em { opacity: 1; }
#cursor.drag .c-dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary { cursor: none; } }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 30px; padding: 20px 32px; transition: transform .5s var(--out), background .4s, padding .4s; }
.nav.solid { background: rgba(10,10,16,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 14px; border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand b { font-weight: 800; margin-left: 4px; }
.brand-mark { width: 44px; stroke: var(--bone); stroke-width: 7; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: .9rem; color: var(--mute); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--bone); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 99px; font-weight: 600; font-size: .98rem; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease); will-change: transform; }
.btn svg { width: 19px; height: 19px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 16px 40px -14px rgba(124,92,255,.7); }
.btn-grad::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #ff5b3a, #7c5cff); opacity: 0; transition: opacity .4s; }
.btn-grad:hover::after { opacity: 1; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--bone); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(241,239,233,.4); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-small { height: 44px; padding: 0 20px; font-size: .88rem; }
.btn-big { height: 64px; padding: 0 34px; font-size: 1.05rem; }
.wa-ic { width: 22px !important; height: 22px !important; stroke-width: 2; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* word rise + reveals */
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-words] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out); }
[data-words].in .w > span { transform: none; }
[data-words] .grad .w > span, .grad[data-words] .w > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--out), transform 1s var(--out); }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hero-title { font-size: clamp(3rem, 6.2vw, 6.4rem); max-width: 9.5ch; font-weight: 800; letter-spacing: -0.045em; line-height: .92; }
.hero-sub { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--mute); max-width: 44ch; margin-top: 28px; }
.hero-foot { display: flex; justify-content: space-between; margin-top: auto; padding-bottom: 30px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint i { width: 1.5px; height: 36px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0 0 60% 0; background: var(--grad); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(10,10,16,.55); contain: layout paint; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; gap: 38px; width: max-content; animation: marq 32s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--coral); }
@keyframes marq { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* manifesto */
.manifesto { height: 220vh; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.manifesto-sticky::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(60% 55% at 35% 50%, rgba(10,10,16,.88), rgba(10,10,16,.55) 55%, transparent 80%); pointer-events: none; }
.manifesto-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; }
.manifesto-text span { color: rgba(241,239,233,.14); transition: color .35s; }
.manifesto-text span.lit { color: var(--bone); }

/* why */
.why { padding: 18vh 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; }
.why-list { margin-top: 44px; display: grid; gap: 14px; }
.why-list article { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 24px; border-radius: 20px; background: rgba(18,17,28,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.why-list span { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--violet); }
.why-list h3 { font-size: 1.28rem; margin-bottom: 6px; }
.why-list p { color: var(--mute); font-size: .97rem; }

/* services */
.services { padding: 18vh 0; }
.services-title { max-width: 14ch; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; perspective: 1200px; }
.svc { position: relative; padding: 30px 26px 28px; border-radius: 24px; background: rgba(18,17,28,.78); border: 1px solid var(--line); backdrop-filter: blur(10px); min-height: 380px; display: flex; flex-direction: column; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--out), border-color .4s; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.22), transparent 60%); opacity: 0; transition: opacity .4s; }
.svc:hover { border-color: rgba(124,92,255,.5); }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }
.svc-num { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; }
.svc h3 { font-size: 1.7rem; margin: 40px 0 12px; }
.svc p { color: var(--mute); font-size: .95rem; }
.svc ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: .74rem; font-weight: 600; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--bone); }

/* process */
.process { padding: 18vh 0; }
.steps { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 28px 24px; border-radius: 22px; background: rgba(18,17,28,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); position: relative; }
.steps li::after { content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 1.5px; background: var(--grad); }
.steps li:last-child::after { display: none; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); font-family: var(--display); font-weight: 800; font-size: .9rem; color: #fff; margin-bottom: 26px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps p { color: var(--mute); font-size: .95rem; }

/* playground */
.play { min-height: 150vh; padding: 16vh 0; touch-action: pan-y; }
.play-inner { position: sticky; top: 12vh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.play .h2 { margin-inline: auto; }
.play-sub { color: var(--mute); max-width: 56ch; margin-top: 20px; }
.shape-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; padding: 6px; border-radius: 99px; background: rgba(18,17,28,.8); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.shape-picker button { padding: 11px 20px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--mute); transition: background .3s, color .3s; }
.shape-picker button.on { background: var(--bone); color: var(--ink); }
.play-hint { margin-top: 46vh; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

/* pakistan */
.pk { padding: 18vh 0; }
.pk-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; }
.pk-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pk-points div { padding: 20px 22px; border-radius: 18px; background: rgba(18,17,28,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.pk-points strong { display: block; font-family: var(--display); font-size: 1.12rem; margin-bottom: 4px; }
.pk-points span { color: var(--mute); font-size: .92rem; }

/* faq */
.faq { padding: 16vh 0; background: linear-gradient(180deg, transparent, rgba(10,10,16,.9) 12%, rgba(10,10,16,.9) 88%, transparent); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--body); font-weight: 400; color: var(--violet); font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--mute); padding-bottom: 24px; max-width: 60ch; }

/* contact */
.contact { min-height: 100vh; display: flex; align-items: center; padding: 14vh 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.contact-title { font-size: clamp(2.8rem, 6.4vw, 6.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: .94; max-width: 13ch; }

/* footer */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); background: var(--ink); }
.footer-mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 9.2vw, 9.4rem); letter-spacing: -0.05em; line-height: .86; margin-bottom: 50px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .86rem; color: var(--mute); padding-top: 24px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--bone); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(37,211,102,.6); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 28px; height: 28px; stroke-width: 2; }

/* no WebGL: keep the atmosphere */
body.no-gpu::after { content: ""; position: fixed; right: -10vw; top: 10vh; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.35), transparent 65%); z-index: -1; }

/* touch devices: drop per-frame compositing costs over the moving canvas */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .noise { display: none; }
  .nav.solid, .why-list article, .svc, .steps li, .shape-picker, .pk-points div { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.solid { background: rgba(10,10,16,.94); }
  .why-list article, .svc, .steps li, .pk-points div { background: rgba(18,17,28,.92); }
  .btn { will-change: auto; }
}

/* responsive */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav { padding: 14px 18px; }
  .nav.solid { padding-block: 10px; }
  .brand span { font-size: .95rem; }
  .brand-mark { width: 36px; }
  .hero { justify-content: flex-end; padding-top: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 44vh; }
  .hero-title { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .hero-foot .hero-tags { display: none; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .manifesto { height: 200vh; }
  .marquee { padding: 16px 0; }
  /* phones: a still strip. The moving one forced a full-width text repaint every frame */
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { font-size: 1.5rem; gap: 26px; animation: none; padding-inline: 18px; }
  .manifesto-sticky { justify-content: flex-end; padding-bottom: 12vh; }
  .manifesto-text { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .why, .services, .process, .pk { padding: 12vh 0; }
  .why-grid, .pk-grid { grid-template-columns: 1fr; }
  .why-grid > div:first-child, .pk-grid > div:first-child { display: none; }
  .why::before, .services::before, .process::before, .pk::before, .contact::before { content: ""; display: block; height: 46vh; }
  .why, .services, .process, .pk { padding-top: 0; }
  .nav .btn-small { display: none; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc h3 { margin-top: 26px; }
  .play { min-height: 140vh; }
  .play-inner { top: auto; bottom: 12vh; position: sticky; padding-top: 44vh; }
  .play-sub { font-size: .92rem; margin-top: 12px; }
  .shape-picker { margin-top: 18px; }
  .play-hint { margin-top: 18px; }
  .pk-points { grid-template-columns: 1fr; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact { display: block; padding-top: 0; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .marquee-track { animation: none; } }
