/* Shared styles for khalili.at subpages (legal, services, portfolio, reviews). */
:root {
  --bg: #090a0b; --panel: #0f1114; --line: rgb(255 255 255 / .1); --fg: #f7fafb; --muted: #b6c1c8; --faint: rgb(255 255 255 / .42);
  --accent: #02d2e3; --pomegranate: #c8203f;
  --font-sans: "Space Grotesk", system-ui, sans-serif; --font-display: "Oswald", Impact, sans-serif; --dw: 700; --tt: uppercase;
  --ease: cubic-bezier(0.33, 0, 0, 1); --gutter: clamp(16px, 4vw, 48px);
  --contour: rgb(2 210 227 / .14); --contour-2: rgb(214 36 66 / .2);
}
html[lang="fa"] { --font-sans: "Vazirmatn", system-ui, sans-serif; --font-display: "Vazirmatn", system-ui, sans-serif; --dw: 900; --tt: none; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
html[lang="fa"] body { line-height: 1.95; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* language blocks: content is written in both languages, the page shows one */
html[lang="fa"] [data-l="en"], html[lang="en"] [data-l="fa"] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter); background: rgb(9 10 11 / .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wordmark { font: 700 20px/1 "Oswald", Impact, sans-serif; letter-spacing: .02em; text-transform: uppercase; direction: ltr; }
.wordmark span { color: var(--accent); }
.top nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.top nav a { font-size: 14px; text-transform: var(--tt); letter-spacing: .03em; color: var(--muted); transition: color 150ms; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); }
.top-end { display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; gap: .4rem; font: 500 14px/1 var(--font-sans); }
.lang a { color: var(--faint); padding: 4px 6px; }
.lang a[aria-current="true"] { color: var(--accent); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; }
@media (max-width: 860px) {
  .burger { display: block; }
  .top nav { position: fixed; inset: 61px 0 auto; background: #090a0b; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; display: none; }
  .top nav.open { display: block; }
  .top nav ul { flex-direction: column; gap: 1rem; }
  .top nav a { font-size: 20px; color: var(--fg); }
}

/* page hero */
.phero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); isolation: isolate; }
.phero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.eyebrow { margin: 0 0 1rem; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
html[lang="fa"] .eyebrow { letter-spacing: 0; font-size: 13.5px; }
.phero h1 { margin: 0; font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(40px, 7vw, 88px); line-height: .98; max-width: 16ch; }
html[lang="fa"] .phero h1 { line-height: 1.3; font-size: clamp(30px, 4.6vw, 58px); max-width: 22ch; }
.phero h1 .dot { color: var(--accent); }
.phero .lead { margin: 1.4rem 0 0; max-width: 44rem; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* content */
main { flex: 1; }
.wrap { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }
.prose { padding-block: clamp(40px, 6vw, 72px); }
.prose h2 { font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 2.6rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 17px; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgb(2 210 227 / .5); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul { padding-inline-start: 1.2rem; }
.prose dl { display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; gap: .55rem 1.5rem; margin: 0; }
.prose dt { color: var(--faint); font-size: 14px; }
.prose dd { margin: 0; color: var(--fg); }
@media (max-width: 600px) { .prose dl { grid-template-columns: 1fr; gap: .1rem; } .prose dd { margin-bottom: .7rem; } }
.note { border-inline-start: 2px solid var(--accent); background: rgb(2 210 227 / .06); padding: .9rem 1.1rem; color: var(--muted); font-size: 15px; margin: 0 0 2rem; }
.de { direction: ltr; text-align: left; font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.75; }
/* fields the owner still has to supply */
mark.todo { background: rgb(255 196 0 / .16); color: #ffd666; border: 1px dashed rgb(255 196 0 / .55); padding: 0 .35em; border-radius: 3px; font-size: .92em; }

/* footer */
.pfoot { border-top: 1px solid var(--line); padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--faint); }
.pfoot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pfoot nav a:hover { color: var(--fg); }
.pfoot nav a[aria-current="page"] { color: var(--accent); }
.icons { display: flex; gap: .45rem; list-style: none; margin: 0; padding: 0; direction: ltr; }
.icons a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); color: var(--fg); transition: background 150ms, color 150ms, border-color 150ms; }
.icons a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.icons svg { width: 15px; height: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.4rem; font: 500 15px/1.2 var(--font-sans);
  text-transform: var(--tt); border: 1px solid var(--accent); background: var(--accent); color: var(--bg); cursor: pointer; transition: background 200ms, border-color 200ms, color 200ms; }
.btn:hover { background: var(--pomegranate); border-color: var(--pomegranate); color: #fff; }
.btn.line { background: none; color: var(--fg); border-color: rgb(255 255 255 / .3); }
.btn.line:hover { border-color: var(--accent); color: var(--accent); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.de h2 { font-family: "Oswald", Impact, sans-serif; font-weight: 700; text-transform: uppercase; }
.de code { font-size: .9em; color: var(--fg); }

/* ---------- services ---------- */
.svc-block { padding-block: clamp(36px, 5vw, 64px) 0; }
.sec-h { font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 1.6rem; display: flex; align-items: center; gap: .8rem; }
.sec-h::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); flex: none; }
.back { display: inline-block; margin-bottom: 2rem; font-size: 14px; color: var(--muted); transition: color 150ms; }
.back:hover { color: var(--accent); }
.svc-ic { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.4rem; border: 1px solid rgb(2 210 227 / .35);
  background: linear-gradient(135deg, rgb(2 210 227 / .12), rgb(200 32 63 / .1)); }
.svc-ic svg, .scard-ic svg, .mini-ic svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-ic svg { width: 30px; height: 30px; color: var(--accent); }

.offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer li { background: var(--bg); padding: 1.25rem 1.4rem; display: flex; gap: .85rem; align-items: flex-start; color: var(--fg); transition: background 200ms; }
.offer li::before { content: ""; width: 7px; height: 7px; margin-top: .65em; background: var(--accent); transform: rotate(45deg); flex: none; }
.offer li:hover { background: #0f1215; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 1.4rem 1.25rem 1.3rem; border: 1px solid var(--line); background: linear-gradient(180deg, rgb(255 255 255 / .025), transparent); }
.steps li::after { content: ""; position: absolute; inset-inline: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--pomegranate)); transform: scaleX(.25); transform-origin: var(--o, left); transition: transform 500ms var(--ease); }
[dir="rtl"] .steps li::after { --o: right; }
.steps li:hover::after { transform: scaleX(1); }
.step-n { display: block; font: 500 38px/1 "Oswald", Impact, sans-serif; color: var(--accent); letter-spacing: -.02em; margin-bottom: 1rem; }
html[lang="fa"] .step-n { font-family: "Vazirmatn", sans-serif; font-weight: 800; }
.steps h3 { margin: 0 0 .35rem; font-size: 18px; font-weight: 500; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.cta-box { margin-top: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(24px, 4vw, 44px); border: 1px solid rgb(2 210 227 / .25);
  background: radial-gradient(120% 140% at 100% 0%, rgb(200 32 63 / .16), transparent 55%), radial-gradient(100% 140% at 0% 100%, rgb(2 210 227 / .12), transparent 55%), #0d0f12; }
.cta-box h2 { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.cta-box p:not(.eyebrow) { margin: 0; color: var(--muted); }
.cta-box .eyebrow { margin-bottom: .6rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 520px) { .cta-actions, .cta-actions .btn { width: 100%; } }

.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; padding-bottom: clamp(48px, 6vw, 80px); }
.mini { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--line); color: var(--fg); transition: border-color 200ms, background 200ms; }
.mini > span:nth-child(2) { flex: 1; }
.mini > svg { width: 14px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; color: var(--faint); transition: transform 250ms var(--ease), color 200ms; }
[dir="rtl"] .mini > svg, [dir="rtl"] .scard-more svg { transform: scaleX(-1); }
.mini:hover { border-color: rgb(2 210 227 / .45); background: rgb(2 210 227 / .04); }
.mini:hover > svg { color: var(--accent); transform: translateX(4px); }
[dir="rtl"] .mini:hover > svg { transform: scaleX(-1) translateX(4px); }
.mini-ic svg { width: 20px; height: 20px; color: var(--accent); display: block; }

/* services overview */
.scards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .scards { grid-template-columns: 1fr; } }
.scard { position: relative; display: flex; flex-direction: column; gap: .9rem; min-height: 17rem; padding: 1.6rem; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / .03), transparent 60%); transition: border-color 300ms, transform 400ms var(--ease); }
.scard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 400ms;
  background: radial-gradient(90% 80% at 100% 0%, rgb(2 210 227 / .14), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgb(200 32 63 / .12), transparent 60%); }
.scard { isolation: isolate; }
.scard:hover { border-color: rgb(2 210 227 / .4); transform: translateY(-3px); }
.scard:hover::before { opacity: 1; }
.scard-top { display: flex; justify-content: space-between; align-items: center; }
.scard-ic { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(2 210 227 / .3); }
.scard-ic svg { width: 24px; height: 24px; color: var(--accent); }
.scard-n { font: 500 15px/1 "Oswald", Impact, sans-serif; color: var(--faint); letter-spacing: .05em; }
html[lang="fa"] .scard-n { font-family: "Vazirmatn", sans-serif; }
.scard h2 { margin: auto 0 0; font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.scard p { margin: 0; color: var(--muted); font-size: 15px; }
.scard-more { display: inline-flex; align-items: center; gap: .5rem; font-size: 14px; color: var(--accent); }
.scard-more svg { width: 14px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 250ms var(--ease); }
.scard:hover .scard-more svg { transform: translateX(4px); }
[dir="rtl"] .scard:hover .scard-more svg { transform: scaleX(-1) translateX(4px); }
.top nav a[aria-current="page"] { color: var(--accent); }

/* ---------- page transitions ---------- */
.pt-veil { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; background: #090a0b; transform: translateY(100%); }
.pt-veil::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--pomegranate)); }
.pt-veil::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--pomegranate), var(--accent)); }
.pt-veil b { font: 700 clamp(44px, 7vw, 72px)/1 "Oswald", Impact, sans-serif; letter-spacing: .02em;
  background: linear-gradient(90deg, var(--accent), #f7fafb 55%, var(--pomegranate)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
html.pt-in .pt-veil { transform: none; }
html .pt-veil.cover { transform: none; transition: transform 460ms cubic-bezier(.76, 0, .24, 1); }
html .pt-veil.out { transform: translateY(-100%); transition: transform 720ms cubic-bezier(.76, 0, .24, 1) 60ms; }
html .pt-veil.cover b { animation: pt-mark 460ms ease both; }
@keyframes pt-mark { from { opacity: 0; transform: scale(.9); } }

/* content rises in after the veil lifts (and on a direct visit) */
.phero .wrap > *, .rv-hero .wrap > *, .svc-block, .rv-feat, .rv-list, .prose { animation: pt-rise 900ms cubic-bezier(.2, .8, .2, 1) both; }
.phero .wrap > *:nth-child(2), .rv-hero .wrap > *:nth-child(2) { animation-delay: 80ms; }
.phero .wrap > *:nth-child(3), .rv-hero .wrap > *:nth-child(3) { animation-delay: 160ms; }
.phero .wrap > *:nth-child(4), .rv-hero .wrap > *:nth-child(4) { animation-delay: 240ms; }
.phero .wrap > *:nth-child(5) { animation-delay: 320ms; }
.svc-block, .rv-feat, .prose { animation-delay: 280ms; }
.rv-list { animation-delay: 380ms; }
html.pt-in .phero .wrap > *, html.pt-in .rv-hero .wrap > *, html.pt-in .svc-block, html.pt-in .rv-feat, html.pt-in .rv-list, html.pt-in .prose { animation-play-state: paused; }
@keyframes pt-rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  .pt-veil { display: none; }
  .phero .wrap > *, .rv-hero .wrap > *, .svc-block, .rv-feat, .rv-list, .prose { animation: none; }
}

.lang a[data-lang="fa"] { font-family: "Vazirmatn", sans-serif; }

/* ---------- service page: web design visual ---------- */
.svc-hero.has-vis .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .svc-hero.has-vis .wrap { grid-template-columns: 1fr; } }
.wd-vis { position: relative; height: clamp(280px, 30vw, 380px); width: 100%; max-width: 520px; justify-self: center; --T: 14s; }
.wd-glow { position: absolute; inset: 8% 6%; border-radius: 50%; filter: blur(50px); opacity: .55;
  background: radial-gradient(closest-side, rgb(2 210 227 / .35), transparent), radial-gradient(closest-side at 70% 70%, rgb(200 32 63 / .3), transparent); animation: wd-glow 7s ease-in-out infinite alternate; }
@keyframes wd-glow { to { transform: scale(1.1) translate(3%, -2%); opacity: .8; } }

.wd-dev { position: absolute; left: 50%; top: 50%; width: 94%; height: 78%; transform: translate(-50%, -50%); border-radius: 12px; overflow: hidden;
  background: #0f1216; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(2 210 227 / .08);
  animation: wd-morph var(--T) cubic-bezier(.65, 0, .35, 1) infinite; container-type: inline-size; }
@keyframes wd-morph {
  0%, 36% { width: 94%; height: 78%; border-radius: 12px; }
  42%, 62% { width: 58%; height: 88%; border-radius: 18px; }
  68%, 90% { width: 34%; height: 96%; border-radius: 26px; }
  96%, 100% { width: 94%; height: 78%; border-radius: 12px; }
}
.wd-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: rgb(255 255 255 / .04); border-bottom: 1px solid rgb(255 255 255 / .07); }
.wd-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b81; flex: none; }
.wd-bar i:nth-child(2) { background: #8f7bff; } .wd-bar i:nth-child(3) { background: #2fe0c4; }
.wd-url { flex: 1; height: 10px; margin-inline-start: 8px; border-radius: 5px; background: rgb(255 255 255 / .07); max-width: 60%; }
@container (max-width: 220px) { .wd-bar i { display: none; } .wd-url { margin: 0 auto; max-width: 70%; } }

.wd-page { padding: 6%; display: flex; flex-direction: column; gap: 9%; height: calc(100% - 26px); container-type: inline-size; }
.wd-nav { display: flex; justify-content: space-between; align-items: center; }
.wd-logo { width: 22%; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #02d2e3, #6a5cff); }
.wd-links { display: flex; gap: 6px; } .wd-links b { width: 22px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .18); }
@container (max-width: 200px) { .wd-links b:nth-child(n+2) { display: none; } .wd-links b { width: 14px; height: 10px; border-radius: 2px; } }
.wd-hero { display: flex; flex-direction: column; gap: 7px; }
.wd-h1 { width: 78%; height: 14px; border-radius: 4px; background: rgb(255 255 255 / .85); }
.wd-h2 { width: 56%; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .25); }
.wd-cta { width: 30%; min-width: 46px; height: 16px; border-radius: 999px; margin-top: 4px; background: linear-gradient(90deg, #02d2e3, #2fe0c4); box-shadow: 0 6px 16px -6px rgb(2 210 227 / .8); }
.wd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 0; }
.wd-cards span { border-radius: 6px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .07); position: relative; overflow: hidden; min-height: 28px; }
.wd-cards span::before { content: ""; position: absolute; inset: 10% 10% auto; height: 45%; border-radius: 4px; background: linear-gradient(135deg, rgb(2 210 227 / .45), rgb(106 92 255 / .35)); }
.wd-cards span:nth-child(2)::before { background: linear-gradient(135deg, rgb(200 32 63 / .5), rgb(255 107 129 / .35)); }
.wd-cards span:nth-child(3)::before { background: linear-gradient(135deg, rgb(106 92 255 / .5), rgb(2 210 227 / .3)); }
@container (max-width: 240px) { .wd-cards { grid-template-columns: repeat(2, 1fr); } .wd-cards span:nth-child(3) { display: none; } }
@container (max-width: 170px) { .wd-cards { grid-template-columns: 1fr; } .wd-cards span:nth-child(2) { display: none; } .wd-h1 { width: 92%; } }

/* each piece builds itself in, then everything rests until the loop restarts */
.wd-logo, .wd-links b, .wd-h1, .wd-h2, .wd-cta, .wd-cards span { transform-origin: left center; animation: wd-build var(--T) cubic-bezier(.2, .8, .2, 1) infinite; }
[dir="rtl"] .wd-logo, [dir="rtl"] .wd-links b, [dir="rtl"] .wd-h1, [dir="rtl"] .wd-h2, [dir="rtl"] .wd-cta { transform-origin: right center; }
.wd-logo { animation-delay: .2s; } .wd-links b { animation-delay: .45s; } .wd-h1 { animation-delay: .7s; } .wd-h2 { animation-delay: .95s; }
.wd-cta { animation-delay: 1.2s; } .wd-cards span:nth-child(1) { animation-delay: 1.5s; } .wd-cards span:nth-child(2) { animation-delay: 1.7s; } .wd-cards span:nth-child(3) { animation-delay: 1.9s; }
@keyframes wd-build { 0% { transform: scaleX(0); opacity: 0; } 6%, 92% { transform: scaleX(1); opacity: 1; } 98%, 100% { transform: scaleX(1); opacity: 0; } }
.wd-cards span { transform-origin: center bottom; animation-name: wd-pop; }
@keyframes wd-pop { 0% { transform: translateY(10px) scale(.9); opacity: 0; } 6%, 92% { transform: none; opacity: 1; } 98%, 100% { opacity: 0; } }

/* a cursor that clicks the button */
.wd-cursor { position: absolute; width: 20px; height: 20px; left: 0; top: 0; z-index: 3; animation: wd-cur var(--T) cubic-bezier(.65, 0, .35, 1) infinite; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .6)); }
.wd-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #0c0e11; stroke-width: 1.2; }
@keyframes wd-cur {
  0%, 12% { transform: translate(78%, 85%) scale(1); opacity: 0; left: 70%; top: 80%; }
  16% { opacity: 1; left: 70%; top: 80%; }
  24% { left: 18%; top: 55%; transform: scale(1); }
  26% { left: 18%; top: 55%; transform: scale(.8); }
  28% { left: 18%; top: 55%; transform: scale(1); }
  34%, 100% { left: 60%; top: 30%; opacity: 0; }
}
[dir="rtl"] .wd-cursor { animation-name: wd-cur-rtl; }
@keyframes wd-cur-rtl {
  0%, 12% { opacity: 0; left: 25%; top: 80%; }
  16% { opacity: 1; left: 25%; top: 80%; }
  24% { left: 76%; top: 55%; transform: scale(1); }
  26% { left: 76%; top: 55%; transform: scale(.8); }
  28% { left: 76%; top: 55%; transform: scale(1); }
  34%, 100% { left: 40%; top: 30%; opacity: 0; }
}
.wd-cta { position: relative; }
.wd-cta::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #2fe0c4; opacity: 0; animation: wd-click var(--T) ease-out infinite; }
@keyframes wd-click { 0%, 25.5% { opacity: 0; transform: scale(.8); } 26.5% { opacity: 1; transform: scale(1); } 32%, 100% { opacity: 0; transform: scale(1.5); } }

/* floating chips */
.wd-chip { position: absolute; z-index: 2; display: grid; place-items: center; padding: .35rem .6rem; border-radius: 10px; font: 600 13px/1 "Space Grotesk", sans-serif; color: #e8fbfd;
  background: rgb(15 18 22 / .85); border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 12px 26px -12px rgb(0 0 0 / .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: wd-bob 6s ease-in-out infinite alternate; }
.wd-chip.c1 { top: 2%; inset-inline-start: 4%; color: #2fe0c4; }
.wd-chip.c2 { bottom: 4%; inset-inline-start: 10%; font-family: "Oswald", sans-serif; font-size: 15px; animation-delay: -2s; color: #ff8a9c; }
.wd-chip.c3 { top: 8%; inset-inline-end: 2%; grid-auto-flow: column; gap: 4px; animation-delay: -4s; }
.wd-chip.c3 i { width: 10px; height: 10px; border-radius: 50%; background: #02d2e3; } .wd-chip.c3 i:nth-child(2) { background: #6a5cff; } .wd-chip.c3 i:nth-child(3) { background: #c8203f; }
.wd-chip.c4 { bottom: 10%; inset-inline-end: 4%; animation-delay: -1s; color: #b9b0ff; }
@keyframes wd-bob { to { transform: translateY(-10px); } }

/* ---------- what every site gets ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.perks li { position: relative; padding: 1.4rem 1.4rem 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(255 255 255 / .035), transparent 60%), #0c0e11;
  overflow: hidden; transition: transform 400ms var(--ease), border-color 300ms, box-shadow 400ms; animation: pt-rise 800ms var(--ease) both; animation-delay: calc(200ms + var(--k) * 80ms); }
.perks li::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(2 210 227 / .14), transparent); opacity: 0; transition: opacity 400ms; }
.perks li:hover { transform: translateY(-4px); border-color: rgb(2 210 227 / .35); box-shadow: 0 24px 50px -30px rgb(2 210 227 / .45); }
.perks li:hover::after { opacity: 1; }
.pk-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 1rem; color: #02d2e3;
  background: linear-gradient(140deg, rgb(2 210 227 / .16), rgb(106 92 255 / .12)); box-shadow: 0 0 0 1px rgb(2 210 227 / .25) inset; }
.perks li:nth-child(3n+2) .pk-ic { color: #ff8a9c; background: linear-gradient(140deg, rgb(200 32 63 / .18), rgb(255 107 129 / .1)); box-shadow: 0 0 0 1px rgb(255 107 129 / .25) inset; }
.perks li:nth-child(3n) .pk-ic { color: #b9b0ff; background: linear-gradient(140deg, rgb(106 92 255 / .2), rgb(2 210 227 / .08)); box-shadow: 0 0 0 1px rgb(106 92 255 / .3) inset; }
.pk-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.perks h3 { margin: 0 0 .4rem; font-size: 17px; font-weight: 600; }
.perks p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- certificate QR (drone page) ---------- */
.cert-qr { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 20px; border: 1px solid rgb(255 255 255 / .09); background: rgb(255 255 255 / .03); }
.cert-qr-code { flex: none; width: 140px; padding: 8px; border-radius: 12px; background: #fff; line-height: 0; }
.cert-qr-code svg { width: 100%; height: auto; display: block; }
.cert-qr h2 { margin: 0 0 .5rem; font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.cert-qr p { margin: 0; color: var(--muted); line-height: 1.75; }
@media (max-width: 560px) { .cert-qr { flex-direction: column; text-align: center; } }

/* ---------- this site as a live example ---------- */
.live-ex { display: flex; gap: 1.1rem; align-items: flex-start; padding: clamp(20px, 3vw, 32px); border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgb(2 210 227 / .1), rgb(106 92 255 / .08) 50%, rgb(200 32 63 / .08)); border: 1px solid rgb(255 255 255 / .09); }
.live-ex h2 { margin: 0 0 .5rem; font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.live-ex p { margin: 0; color: var(--muted); line-height: 1.75; max-width: 60rem; }
.live-dot { position: relative; flex: none; width: 12px; height: 12px; margin-top: .45rem; border-radius: 50%; background: #2fe0c4; }
.live-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #2fe0c4; animation: live-ping 2s ease-out infinite; }
@keyframes live-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-i { border-radius: 14px; border: 1px solid var(--line); background: #0c0e11; transition: border-color 250ms, background 250ms; }
.faq-i[open] { border-color: rgb(2 210 227 / .3); background: linear-gradient(160deg, rgb(2 210 227 / .05), transparent 60%), #0c0e11; }
.faq-i summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 600; font-size: 16px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.faq-x { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .15); transition: transform 300ms var(--ease), background 250ms, border-color 250ms; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease); }
.faq-i[open] .faq-x { background: rgb(2 210 227 / .15); border-color: rgb(2 210 227 / .5); color: #02d2e3; transform: rotate(180deg); }
.faq-i[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 1.2rem 1.15rem; }
.faq-a p { margin: 0; color: var(--muted); line-height: 1.75; }
.faq-i[open] .faq-a { animation: faq-in 400ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .wd-dev, .wd-logo, .wd-links b, .wd-h1, .wd-h2, .wd-cta, .wd-cards span, .wd-cursor, .wd-cta::after, .wd-chip, .wd-glow, .live-dot::after, .perks li { animation: none !important; }
  .wd-cursor { display: none; }
}
.live-btn { margin-top: 1.1rem; gap: .55rem; }
.live-btn svg { width: 14px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 250ms var(--ease); }
.live-btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .live-btn svg { transform: scaleX(-1); }
[dir="rtl"] .live-btn:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- service page: AI visual (a little assistant on top of a living network) ---------- */
.ai-vis { position: relative; height: clamp(290px, 30vw, 380px); width: 100%; max-width: 520px; justify-self: center; --T: 12s; }
.ai-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-links path { fill: none; stroke: rgb(2 210 227 / .16); stroke-width: 1; }
.ai-pulses path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 100; animation: ai-flow 4.2s linear infinite; }
.ai-pulses path:nth-child(1) { stroke: #02d2e3; } .ai-pulses path:nth-child(2) { stroke: #ff6b81; animation-delay: -1.3s; animation-duration: 5s; }
.ai-pulses path:nth-child(3) { stroke: #8f7bff; animation-delay: -2.4s; } .ai-pulses path:nth-child(4) { stroke: #2fe0c4; animation-delay: -.7s; animation-duration: 3.4s; }
@keyframes ai-flow { to { stroke-dashoffset: 0; } }
.ai-nodes circle { fill: #0c0e11; stroke: #02d2e3; stroke-width: 1.4; animation: ai-node 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ai-nodes circle:nth-child(3n+2) { stroke: #ff6b81; animation-delay: -1s; } .ai-nodes circle:nth-child(3n) { stroke: #8f7bff; animation-delay: -2s; }
.ai-nodes circle:nth-child(5) { fill: #02d2e3; }
@keyframes ai-node { 50% { transform: scale(1.35); } }

.ai-chat { position: absolute; left: 50%; top: 50%; width: min(78%, 330px); transform: translate(-50%, -50%); padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px;
  background: rgb(14 17 21 / .9); border: 1px solid rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .95), 0 0 0 1px rgb(106 92 255 / .1), 0 20px 60px -30px rgb(106 92 255 / .45); }
.ai-top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / .07); }
.ai-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #02d2e3, #6a5cff); }
.ai-av svg { width: 16px; height: 16px; fill: #fff; animation: ai-spin 8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-name { width: 38%; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .55); }
.ai-on { width: 8px; height: 8px; border-radius: 50%; background: #2fe0c4; margin-inline-start: auto; box-shadow: 0 0 0 0 rgb(47 224 196 / .6); animation: live 2s ease-out infinite; }
.ai-msg { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border-radius: 14px; max-width: 78%; }
.ai-msg i { display: block; height: 6px; border-radius: 3px; }
.ai-msg.me { align-self: flex-end; background: linear-gradient(135deg, rgb(2 210 227 / .9), rgb(47 224 196 / .85)); border-end-end-radius: 4px; width: 62%; }
.ai-msg.me i { background: rgb(7 8 10 / .55); } .ai-msg.me i:nth-child(2) { width: 60%; }
.ai-msg.bot { align-self: flex-start; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .08); border-end-start-radius: 4px; width: 74%; }
.ai-msg.bot i { background: rgb(255 255 255 / .4); transform-origin: left; } [dir="rtl"] .ai-msg.bot i { transform-origin: right; }
.ai-msg.bot i:nth-child(2) { width: 86%; } .ai-msg.bot i:nth-child(3) { width: 54%; }
.ai-typing { align-self: flex-start; display: flex; gap: 4px; padding: 9px 11px; border-radius: 14px; background: rgb(255 255 255 / .07); }
.ai-typing b { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .7); animation: ai-dot 1s ease-in-out infinite; }
.ai-typing b:nth-child(2) { animation-delay: .15s; } .ai-typing b:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 50% { transform: translateY(-4px); opacity: .4; } }
.ai-done { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgb(47 224 196 / .1); border: 1px solid rgb(47 224 196 / .3); }
.ai-done svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #2fe0c4; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-done i { height: 6px; width: 50%; border-radius: 3px; background: rgb(47 224 196 / .6); }

/* the conversation plays as a loop: question → typing → answer → task done */
.ai-msg.me { animation: ai-me var(--T) cubic-bezier(.2, .8, .2, 1) infinite; }
.ai-typing { animation: ai-type var(--T) ease infinite; }
.ai-msg.bot { animation: ai-bot var(--T) cubic-bezier(.2, .8, .2, 1) infinite; }
.ai-msg.bot i { animation: ai-line var(--T) cubic-bezier(.2, .8, .2, 1) infinite; }
.ai-msg.bot i:nth-child(2) { animation-delay: .25s; } .ai-msg.bot i:nth-child(3) { animation-delay: .5s; }
.ai-done { animation: ai-ok var(--T) cubic-bezier(.34, 1.5, .64, 1) infinite; }
@keyframes ai-me { 0%, 4% { opacity: 0; transform: translateY(12px) scale(.95); } 10%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ai-type { 0%, 14% { opacity: 0; max-height: 0; padding-block: 0; margin-top: -10px; } 17%, 33% { opacity: 1; max-height: 30px; padding-block: 9px; margin-top: 0; } 37%, 100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: -10px; } }
@keyframes ai-bot { 0%, 35% { opacity: 0; transform: translateY(12px) scale(.95); } 41%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ai-line { 0%, 38% { transform: scaleX(0); } 48%, 100% { transform: scaleX(1); } }
@keyframes ai-ok { 0%, 55% { opacity: 0; transform: scale(.8); } 61%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.ai-done svg path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: ai-tick var(--T) ease infinite; }
@keyframes ai-tick { 0%, 58% { stroke-dashoffset: 22; } 66%, 100% { stroke-dashoffset: 0; } }

.wd-chip.a1 { top: 4%; inset-inline-start: 2%; color: #2fe0c4; }
.wd-chip.a2 { bottom: 6%; inset-inline-start: 8%; color: #b9b0ff; animation-delay: -2s; }
.wd-chip.a3 { top: 12%; inset-inline-end: 0; color: #ff8a9c; animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  .ai-pulses path, .ai-nodes circle, .ai-av svg, .ai-on, .ai-typing b, .ai-msg.me, .ai-typing, .ai-msg.bot, .ai-msg.bot i, .ai-done, .ai-done svg path { animation: none !important; }
  .ai-typing { display: none; } .ai-done svg path { stroke-dashoffset: 0; }
}

/* ---------- service page: drone visual (a drone flying city to city over a map of Afghanistan) ---------- */
.af-vis { position: relative; height: clamp(290px, 30vw, 390px); width: 100%; max-width: 540px; justify-self: center; display: grid; place-items: center; }
.af-map { width: 100%; height: 100%; overflow: visible; direction: ltr; }
.af-land { fill: url(#af-fill); }
.af-edge { fill: none; stroke: rgb(2 210 227 / .6); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgb(2 210 227 / .45));
  animation: af-edge 2.6s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes af-edge { to { stroke-dashoffset: 0; } }
.af-route-bg { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 1.2; stroke-dasharray: 3 5; }
.af-route { fill: none; stroke: #2fe0c4; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(47 224 196 / .75)); }
.af-dot { fill: #0c0e11; stroke: #fff; stroke-width: 1.6; }
.af-ring { fill: none; stroke: #ff6b81; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: af-ring var(--T, 20.4s) ease-out infinite; animation-delay: var(--d); }
@keyframes af-ring { 0% { opacity: 1; transform: scale(.4); } 6% { opacity: 0; transform: scale(2.6); } 100% { opacity: 0; } }
.af-city text { paint-order: stroke; stroke: #0a0b0d; stroke-width: 3px; stroke-linejoin: round; font: 600 11px/1 "Space Grotesk", sans-serif; fill: rgb(255 255 255 / .55); letter-spacing: .02em; animation: af-name var(--T, 20.4s) ease infinite; animation-delay: var(--d); }
.af-city text[data-l="fa"] { font: 700 12px/1 "Vazirmatn", sans-serif; letter-spacing: 0; }
@keyframes af-name { 0%, 9% { fill: #fff; } 14%, 100% { fill: rgb(255 255 255 / .55); } }
.af-city .af-dot { animation: af-dotc var(--T, 20.4s) ease infinite; animation-delay: var(--d); }
@keyframes af-dotc { 0%, 9% { fill: #2fe0c4; } 14%, 100% { fill: #0c0e11; } }
.af-shot { fill: rgb(2 210 227 / .12); stroke: rgb(2 210 227 / .5); stroke-width: 1; stroke-dasharray: 2.5 2.5; }
.af-quad path { stroke: #e9eef0; stroke-width: 2.2; stroke-linecap: round; }
.af-quad circle { fill: rgb(255 255 255 / .2); stroke: #e9eef0; stroke-width: 1; }
.af-quad rect { fill: #fff; }
.af-drone { filter: drop-shadow(0 3px 5px rgb(0 0 0 / .7)); }
.af-vis .wd-chip.d1 { top: 0; inset-inline-start: 2%; color: #b9b0ff; }
.af-vis .wd-chip.d2 { bottom: 0; inset-inline-end: 2%; color: #2fe0c4; animation-delay: -3s; letter-spacing: .06em; font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .af-edge { animation: none; stroke-dashoffset: 0; } .af-ring, .af-city text, .af-city .af-dot { animation: none !important; } }
/* drone map — designer pass: terrain, graticule, camera snaps, capital, living drone */
.af-grat path { stroke: rgb(255 255 255 / .05); stroke-width: .8; }
.af-hill { fill: none; stroke-width: .8; opacity: 0; animation: af-hill 1.4s ease forwards; animation-delay: calc(1.6s + var(--i) * 110ms); }
.af-hill.hk { stroke: rgb(185 176 255 / .38); } .af-hill.ch { stroke: rgb(2 210 227 / .26); }
@keyframes af-hill { to { opacity: 1; } }
.af-hills { animation: af-breathe 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes af-breathe { to { transform: scale(1.025); } }
.af-edge { animation: af-edge 2.6s cubic-bezier(.4, 0, .2, 1) .2s forwards, af-glow 5s ease-in-out 3s infinite alternate; }
@keyframes af-glow { from { filter: drop-shadow(0 0 4px rgb(2 210 227 / .35)); } to { filter: drop-shadow(0 0 10px rgb(2 210 227 / .65)); } }
.af-route { stroke: url(#af-trail); stroke-width: 2.2; }
.af-city text { font-size: 12px; } .af-city text[data-l="fa"] { font-size: 13px; }
.af-cap { fill: #ff8a9c; stroke: #0a0b0d; stroke-width: .8; filter: drop-shadow(0 0 4px rgb(255 107 129 / .65)); }
.af-city.is-cap text { fill: rgb(255 255 255 / .75); font-weight: 700; }
/* camera snap: brackets close in on the city and a soft flash, as if a photo is taken */
.af-snap path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.af-snap { opacity: 0; transform-box: fill-box; transform-origin: center; animation: af-snap var(--T, 20.4s) cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--d) + .25s); }
@keyframes af-snap { 0% { opacity: 0; transform: scale(1.7); } 2% { opacity: 1; transform: scale(1); } 4.5% { opacity: 1; transform: scale(1); } 6%, 100% { opacity: 0; transform: scale(1); } }
.af-flash { fill: #fff; opacity: 0; animation: af-flash var(--T, 20.4s) ease-out infinite; animation-delay: calc(var(--d) + .55s); }
@keyframes af-flash { 0% { opacity: .55; } 2.2%, 100% { opacity: 0; } }
/* the drone: spinning props, a blinking light and a soft shadow on the ground */
.af-shadow { fill: rgb(0 0 0 / .45); filter: blur(2px); }
.af-quad .af-disc { fill: rgb(255 255 255 / .16); stroke: rgb(233 238 240 / .9); stroke-width: .8; }
.af-blade { stroke: #fff; stroke-width: 1.3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: af-prop .3s linear infinite; }
@keyframes af-prop { to { transform: rotate(360deg); } }
.af-led { fill: #ff4d6d; animation: af-led 1s steps(2, jump-none) infinite; }
@keyframes af-led { 50% { opacity: .15; } }
.af-shot { animation: af-shot 1.8s ease-in-out infinite; }
@keyframes af-shot { 50% { fill: rgb(2 210 227 / .22); } }
@media (prefers-reduced-motion: reduce) {
  .af-hill { animation: none; opacity: 1; } .af-hills, .af-snap, .af-flash, .af-blade, .af-led, .af-shot { animation: none !important; }
  .af-edge { animation: none; stroke-dashoffset: 0; }
}

/* ---------- service intro (drone): a warm, prominent message with occasions ---------- */
.sv-intro { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 44px); border-radius: 24px; border: 1px solid rgb(255 255 255 / .09);
  background: linear-gradient(150deg, rgb(2 210 227 / .09), rgb(106 92 255 / .06) 45%, rgb(200 32 63 / .09)), #0c0e11;
  box-shadow: 0 40px 90px -50px rgb(2 210 227 / .35); }
.sv-intro-glow { position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; inset-inline-end: -15%; top: -40%; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(closest-side, rgb(200 32 63 / .25), transparent); animation: wd-glow 9s ease-in-out infinite alternate; }
.sv-intro h2 { margin: 0 0 .8rem; font-family: var(--font-display); font-weight: var(--dw); text-transform: var(--tt); font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
html[lang="fa"] .sv-intro h2 { line-height: 1.5; }
.sv-intro p { margin: 0; max-width: 62rem; color: var(--fg); opacity: .86; font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.9; }
.sv-tags { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.sv-tags li { padding: .5rem .9rem; border-radius: 999px; font-size: 14px; color: var(--fg); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
  animation: pt-rise 700ms var(--ease) both; animation-delay: calc(250ms + var(--k) * 70ms); transition: border-color 200ms, background 200ms, transform 250ms var(--ease); }
.sv-tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: .55rem; vertical-align: middle; background: var(--accent); transform: rotate(45deg); }
.sv-tags li:hover { border-color: rgb(2 210 227 / .4); background: rgb(2 210 227 / .08); transform: translateY(-2px); }
.sv-intro-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.sv-intro-cta .btn svg { width: 14px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
[dir="rtl"] .sv-intro-cta .btn svg { transform: scaleX(-1); }
@media (max-width: 520px) { .sv-intro-cta .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .sv-intro-glow, .sv-tags li { animation: none !important; } }

/* services index: "More from me" row */
.more-me-s .more-me-h { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="fa"] .more-me-s .more-me-h { letter-spacing: 0; font-size: 15px; font-weight: 700; }
.more-me-s .more-me-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scards-more { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.scard.scard-sm { min-height: 0; }
.scard.scard-sm h2 { font-size: clamp(20px, 2vw, 26px); }

/* ---------- service page: photo & video visual (prints that flip through, an aperture that clicks between shots) ---------- */
.ph-vis { position: relative; height: clamp(290px, 30vw, 380px); width: 100%; max-width: 520px; justify-self: center; --T: 16s; }
.ph-stack { position: absolute; left: 50%; top: 50%; width: min(64%, 300px); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); }
.ph-stack::after { content: ""; position: absolute; inset: -6px; border-radius: 16px; background: #fff; opacity: 0; pointer-events: none; z-index: 9; animation: ph-flash calc(var(--T) / 4) linear infinite; }
@keyframes ph-flash { 0%, 79% { opacity: 0; } 80% { opacity: .55; } 86%, 100% { opacity: 0; } }
.ph-card { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; border: 6px solid #f4f6f7; border-bottom-width: 22px;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / .85); animation: ph-deck var(--T) cubic-bezier(.65, 0, .35, 1) infinite; }
.ph-card.s2 { animation-delay: calc(var(--T) * -.75); } .ph-card.s3 { animation-delay: calc(var(--T) * -.5); } .ph-card.s4 { animation-delay: calc(var(--T) * -.25); }
@keyframes ph-deck {
  0%, 20%   { transform: translate(0, 0) rotate(-2deg) scale(1); opacity: 1; z-index: 4; }
  25%       { transform: translate(120%, -12%) rotate(16deg) scale(.95); opacity: 0; z-index: 4; }
  26%       { transform: translate(22px, -22px) rotate(7deg) scale(.86); opacity: 0; z-index: 1; }
  30%, 45%  { transform: translate(22px, -22px) rotate(7deg) scale(.86); opacity: .75; z-index: 1; }
  50%, 70%  { transform: translate(14px, -14px) rotate(4deg) scale(.9); opacity: .9; z-index: 2; }
  75%, 95%  { transform: translate(7px, -7px) rotate(1deg) scale(.95); opacity: 1; z-index: 3; }
  100%      { transform: translate(0, 0) rotate(-2deg) scale(1); opacity: 1; z-index: 4; }
}
[dir="rtl"] .ph-card { animation-name: ph-deck-rtl; }
@keyframes ph-deck-rtl {
  0%, 20%   { transform: translate(0, 0) rotate(2deg) scale(1); opacity: 1; z-index: 4; }
  25%       { transform: translate(-120%, -12%) rotate(-16deg) scale(.95); opacity: 0; z-index: 4; }
  26%       { transform: translate(-22px, -22px) rotate(-7deg) scale(.86); opacity: 0; z-index: 1; }
  30%, 45%  { transform: translate(-22px, -22px) rotate(-7deg) scale(.86); opacity: .75; z-index: 1; }
  50%, 70%  { transform: translate(-14px, -14px) rotate(-4deg) scale(.9); opacity: .9; z-index: 2; }
  75%, 95%  { transform: translate(-7px, -7px) rotate(-1deg) scale(.95); opacity: 1; z-index: 3; }
  100%      { transform: translate(0, 0) rotate(2deg) scale(1); opacity: 1; z-index: 4; }
}
.ph-card i { position: absolute; display: block; }
/* 1 — sunset over hills */
.ph-card.s1 { background: linear-gradient(180deg, #1c2140 0%, #6a3a63 45%, #ff8a7a 85%); }
.s1 .sun { width: 26%; aspect-ratio: 1; left: 50%; bottom: 22%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffe6d6, #ff8a9c 60%, transparent 72%); }
.s1 .hill { bottom: -10%; border-radius: 50% 50% 0 0; } .s1 .h1 { left: -10%; width: 70%; height: 45%; background: #2a2346; } .s1 .h2 { right: -15%; width: 80%; height: 35%; background: #171a2c; }
/* 2 — portrait with soft bokeh */
.ph-card.s2 { background: radial-gradient(120% 90% at 50% 20%, #24304a, #0f1320); }
.s2 .bok { border-radius: 50%; filter: blur(2px); opacity: .7; } .s2 .b1 { width: 22%; aspect-ratio: 1; left: 8%; top: 14%; background: rgb(2 210 227 / .45); }
.s2 .b2 { width: 14%; aspect-ratio: 1; right: 12%; top: 10%; background: rgb(255 107 129 / .5); } .s2 .b3 { width: 18%; aspect-ratio: 1; right: 6%; bottom: 30%; background: rgb(143 123 255 / .45); }
.s2 .bust { left: 50%; bottom: -6%; width: 46%; height: 78%; transform: translateX(-50%); background: radial-gradient(circle at 50% 28%, #e9d7cf 0 17%, transparent 18%), radial-gradient(ellipse at 50% 100%, #0a0b0d 0 52%, transparent 53%); }
/* 3 — product on a pedestal */
.ph-card.s3 { background: radial-gradient(110% 80% at 50% 0%, #ffffff, #dfe7ea); }
.s3 .ped { left: 50%; bottom: 10%; width: 46%; height: 18%; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(#cfd9dc, #b8c4c8); box-shadow: 0 10px 18px -8px rgb(0 0 0 / .3); }
.s3 .obj { left: 50%; bottom: 20%; width: 18%; height: 44%; transform: translateX(-50%); border-radius: 10px 10px 6px 6px; background: linear-gradient(120deg, #02d2e3, #6a5cff); }
.s3 .ray { inset: 0; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .55) 50%, transparent 60%); }
/* 4 — city at night */
.ph-card.s4 { background: linear-gradient(180deg, #0b1022, #1c2140 70%, #3a2240); }
.s4 .bld { bottom: 0; background: #0a0c14; border-top: 2px solid rgb(2 210 227 / .4); }
.s4 .bld::after { content: ""; position: absolute; inset: 14% 18%; background-image: radial-gradient(rgb(200 240 245 / .8) 1px, transparent 1.5px); background-size: 7px 9px; }
.s4 .b1 { left: 6%; width: 18%; height: 55%; } .s4 .b2 { left: 28%; width: 14%; height: 72%; } .s4 .b3 { left: 46%; width: 22%; height: 48%; } .s4 .b4 { right: 6%; width: 20%; height: 64%; }

/* aperture */
.ph-iris { position: absolute; width: clamp(64px, 7vw, 84px); aspect-ratio: 1; inset-inline-end: 4%; bottom: 8%; z-index: 6; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .6)); }
.ph-iris svg { width: 100%; height: 100%; overflow: visible; }
.ph-ring { fill: #0c0e11; stroke: rgb(2 210 227 / .6); stroke-width: 2.5; }
.ph-blades { clip-path: circle(29px); }
.ph-blade { fill: #2a3040; stroke: #4a5468; stroke-width: .8; transform: rotate(var(--r)) translate(var(--o, 14px), 0); animation: ph-iris calc(var(--T) / 4) cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ph-iris { 0%, 72% { --o: 15px; } 80% { --o: -2px; } 88%, 100% { --o: 15px; } }
@property --o { syntax: "<length>"; inherits: false; initial-value: 15px; }
.ph-vis .wd-chip.p1 { top: 4%; inset-inline-start: 4%; color: #2fe0c4; }
.ph-vis .wd-chip.p2 { bottom: 4%; inset-inline-start: 8%; color: #b9b0ff; animation-delay: -2s; }
.ph-vis .wd-chip.p3 { top: 10%; inset-inline-end: 2%; color: #ff8a9c; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .ph-card, .ph-stack::after, .ph-blade { animation: none !important; } .ph-card.s2, .ph-card.s3, .ph-card.s4 { opacity: 0; } }

/* ---------- one corner system for the whole site ----------
   cards & boxes 18px, big boxes 22px, small tiles & icons 12px, buttons 12px */
:root { --r-sm: 12px; --r-card: 18px; --r-box: 22px; --r-btn: 12px; }
.btn { border-radius: var(--r-btn); }
.offer { border-radius: var(--r-card); overflow: hidden; }
.steps li { border-radius: var(--r-card); overflow: hidden; }
.cta-box { border-radius: var(--r-box); }
.scard { border-radius: var(--r-card); }
.mini { border-radius: var(--r-sm); }
.svc-ic { border-radius: 16px; } .scard-ic, .mini-ic { border-radius: var(--r-sm); }
.icons a { border-radius: 10px; }
.burger { border-radius: 10px; }
