/* =========================================================
   alimo.rezarexa.com — Ali Mohammad Tahsildari portfolio
   Built from the "Portfolio of Me" design. RTL-first.
   ========================================================= */

:root {
  --bg: #0b0410;
  --bg-2: #120519;
  --bg-3: #1a0a28;
  --panel: #170724;
  --panel-2: #1f0c31;
  --circle: #250f35;
  --line: rgba(196, 160, 255, 0.14);
  --line-2: rgba(196, 160, 255, 0.28);
  --text: #f6f2fb;
  --muted: #b3a8c4;
  --dim: #7e7391;
  --violet: #8b47f6;
  --violet-hi: #b76df8;
  --violet-lo: #5a1fb8;
  --orange: #ff8a3d;
  --star-off: #3a3342;
  --grad: linear-gradient(135deg, #6a2ae6 0%, #9b57f7 55%, #c07bfa 100%);
  --silver: linear-gradient(180deg, #ffffff 0%, #ebe7f1 42%, #a29cae 78%, #d7d2df 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --fa: "Vazirmatn", "Peyda", "YekanBakh", system-ui, sans-serif;
  --en: "Poppins", "Vazirmatn", system-ui, sans-serif;
  --display: "Unbounded", "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fa);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -180px, rgba(139, 71, 246, 0.22), transparent 70%),
    radial-gradient(900px 700px at 100% 55%, rgba(120, 50, 220, 0.10), transparent 70%),
    radial-gradient(900px 700px at 0% 85%, rgba(120, 50, 220, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 30%, #0c0414 70%, #060608 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }
[lang="en"], .en { font-family: var(--en); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- decorative 3D swirl ---------- */
.swirl {
  position: absolute; pointer-events: none; z-index: 0; mix-blend-mode: screen; opacity: .9;
  width: min(1100px, 95vw); aspect-ratio: 1920 / 1086;
  background: url("../img/ui/swirl.webp") center / contain no-repeat;
}
.swirl--tr { top: -40px; left: auto; right: -22vw; }
.swirl--bl { bottom: -120px; left: -26vw; transform: scale(-1, -1); opacity: .75; }

/* ---------- header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open { background: rgba(11, 4, 16, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--violet), 0 0 18px rgba(139, 71, 246, .55); }
.brand-t { display: flex; flex-direction: column; line-height: 1.25; }
.brand-t b { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.brand-t small { font-size: 11.5px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 8px 13px; font-size: 14.5px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(139, 71, 246, .18); box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .35); }
.nav-cta { flex-shrink: 0; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; margin-inline-start: auto; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; margin: 0;
    background: rgba(11, 4, 16, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(139, 71, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(139, 71, 246, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(139, 71, 246, .16); box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .55); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-hi); font-weight: 700; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- section heading (signature element of the design) ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-kicker { display: flex; align-items: baseline; gap: 14px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.sec-kicker .en { font-family: var(--display); font-weight: 400; font-size: 13px; color: var(--violet-hi); letter-spacing: .01em; }
.sec-title {
  margin: 4px 0 0; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 5.2vw, 50px); line-height: 1.05; letter-spacing: -0.035em; direction: ltr;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.sec-rule { position: relative; width: min(420px, 86%); height: 34px; margin-top: 2px; }
.sec-rule svg.rule { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sec-icon {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c98bff, var(--violet) 60%, var(--violet-lo));
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(183, 109, 248, .7);
}
.sec-icon svg { width: 15px; height: 15px; color: #fff; }
.sec-lead { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 16.5px; }
h1.page-title { margin: 14px 0 0; font-size: clamp(30px, 5vw, 50px); font-weight: 900; line-height: 1.35; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); overflow: clip; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 0; font-size: clamp(36px, 6.4vw, 66px); line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
.hero-sub { margin: 10px 0 0; font-size: clamp(17px, 2.2vw, 22px); color: #ddd5ea; font-weight: 400; }
.hero-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; font-size: clamp(16px, 2vw, 20px); }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .6); flex-shrink: 0; }
.quote-card {
  margin: 28px 0 0; padding: 20px 24px; border-radius: var(--radius); max-width: 560px;
  background: linear-gradient(160deg, rgba(40, 14, 62, .85), rgba(23, 7, 36, .85));
  border: 1px solid var(--line-2); box-shadow: 0 20px 60px -30px rgba(139, 71, 246, .6);
  font-size: 15.5px; line-height: 2.05; color: #e6def1;
}
.quote-card p { margin: 0; }
.quote-card b { color: #fff; font-weight: 800; }
.hero .btn-row { margin-top: 30px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 470 / 520; }
.hero-art::before { /* purple circle behind the portrait, as in the design */
  content: ""; position: absolute; left: 8%; right: 8%; top: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, #4c1f80 0%, var(--circle) 55%, rgba(37, 15, 53, .2) 100%);
  box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .25), 0 0 80px rgba(139, 71, 246, .35);
}
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
}
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border-radius: 16px; background: rgba(23, 7, 36, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); font-size: 13px; color: var(--muted); line-height: 1.4;
}
.chip b { display: block; color: #fff; font-size: 20px; font-weight: 900; }
.chip .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.chip .ico svg { width: 18px; height: 18px; }
.chip--a { top: 30%; inset-inline-end: -6%; animation: float 6s ease-in-out infinite; }
.chip--b { bottom: 12%; inset-inline-start: -8%; animation: float 7s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(74%, 340px); }
  .chip--a { inset-inline-end: -4%; }
  .chip--b { inset-inline-start: -4%; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(23, 7, 36, .55); overflow: hidden; }
.stat { padding: 22px 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.3; background: linear-gradient(180deg, #fff, #cbb5f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- brands marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 38s linear infinite; direction: ltr; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2vw, 22px); letter-spacing: .06em; color: rgba(246, 242, 251, .42); white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: #fff; }
.marquee-track span::after { content: "✦"; margin-left: 52px; color: var(--violet); font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.label-small { text-align: center; color: var(--dim); font-size: 13.5px; margin: 0 0 14px; }

/* ---------- my account (Instagram) ---------- */
.account { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ig-frame { position: relative; padding: 14px; }
.ig-frame::before { content: ""; position: absolute; inset: 0; border: 1.5px dashed rgba(183, 109, 248, .55); border-radius: 6px; pointer-events: none; }
.ig-frame i { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--violet-hi); box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(183, 109, 248, .8); }
.ig-frame i:nth-of-type(1) { top: -7px; left: -7px; } .ig-frame i:nth-of-type(2) { top: -7px; right: -7px; }
.ig-frame i:nth-of-type(3) { bottom: -7px; left: -7px; } .ig-frame i:nth-of-type(4) { bottom: -7px; right: -7px; }
.ig-card { direction: ltr; text-align: left; background: linear-gradient(170deg, #17121d, #0e0a12); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px 20px 20px; font-family: var(--en); font-size: 14px; line-height: 1.5; }
.ig-top { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.ig-top svg { width: 20px; height: 20px; color: #ddd; }
.ig-top .bell { margin-left: auto; }
.ig-head { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.ig-avatar { width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #8b47f6, #ff8a3d, #e0389a, #8b47f6); flex-shrink: 0; }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #120d16; }
.ig-name { font-size: 13px; font-weight: 600; }
.ig-name .fa { font-family: var(--fa); }
.ig-counts { display: flex; gap: 26px; margin-top: 8px; }
.ig-counts b { display: block; font-size: 16px; }
.ig-counts span { color: #b9b3c2; font-size: 13px; }
.ig-bio { margin-top: 14px; color: #ddd; }
.ig-bio p { margin: 0; }
.ig-bio .muted { color: #9a93a6; }
.ig-bio .fa { font-family: var(--fa); direction: rtl; text-align: left; unicode-bidi: plaintext; }
.ig-bio a { color: #c7b8ff; }
.ig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ig-actions a { display: grid; place-items: center; min-height: 38px; border-radius: 10px; font-weight: 600; font-size: 13.5px; background: #2a2531; transition: background .2s; }
.ig-actions a.primary { background: #6a39f5; }
.ig-actions a:hover { filter: brightness(1.15); }
.account-copy h3 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.5; }
.account-copy p { margin: 14px 0 0; color: #ddd5ea; font-size: 16.5px; line-height: 2.1; text-align: justify; }
.account-copy .note { color: var(--muted); font-size: 14px; font-weight: 700; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } .ig-frame { max-width: 460px; width: 100%; margin-inline: auto; } }
@media (max-width: 480px) {
  .ig-card { padding: 16px 14px 16px; }
  .ig-head { gap: 14px; }
  .ig-avatar { width: 66px; height: 66px; }
  .ig-counts { gap: 14px; }
  .ig-counts b { font-size: 15px; }
  .ig-counts span { font-size: 12px; }
}
/* grid children may shrink below their content width (prevents sideways scroll on phones) */
.hero-grid > *, .account > *, .split > *, .contact > *, .feature > *, .footer-grid > *, .skills > * { min-width: 0; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 6vw, 96px); row-gap: 8px; max-width: 980px; margin-inline: auto; }
.skill { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; direction: ltr; }
.skill-name { display: flex; flex-direction: column; line-height: 1.35; }
.skill-name b { font-family: var(--en); font-weight: 600; font-size: clamp(17px, 2.2vw, 22px); }
.skill-name small { font-family: var(--fa); color: var(--muted); font-size: 13px; text-align: left; }
.stars { display: flex; gap: 4px; flex-shrink: 0; }
.stars svg { width: clamp(18px, 2vw, 22px); height: clamp(18px, 2vw, 22px); color: var(--star-off); }
.stars svg.on { color: var(--violet); filter: drop-shadow(0 0 6px rgba(139, 71, 246, .6)); }
.skills-divider { grid-column: 1 / -1; height: 1px; margin-block: 12px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
@media (max-width: 720px) { .skills { grid-template-columns: 1fr; } .skills-divider { display: none; } }

/* ---------- work tiles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 26px); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.masonry { columns: 3; column-gap: clamp(14px, 2.2vw, 26px); }
@media (max-width: 960px) { .masonry { columns: 2; } }
@media (max-width: 460px) { .masonry { columns: 1; } }
.masonry > * { break-inside: avoid; margin-bottom: clamp(14px, 2.2vw, 26px); }

.tile { position: relative; display: block; container-type: inline-size; cursor: zoom-in; }
.tile-frame { position: relative; display: block; border-radius: 6.9cqi; overflow: hidden; background: var(--panel); transition: transform .45s var(--ease), box-shadow .45s var(--ease); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile:hover .tile-frame, .tile:focus-visible .tile-frame { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(139, 71, 246, .7), 0 0 0 1px rgba(183, 109, 248, .45); }
.tile:hover img { transform: scale(1.035); }
.tile-meta {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(8, 3, 12, .92)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.tile:hover .tile-meta, .tile:focus-visible .tile-meta { opacity: 1; transform: none; }
.tile-meta b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.5; }
.tile-meta small { display: block; font-family: var(--en); font-size: 12px; color: var(--violet-hi); direction: ltr; text-align: right; }
.tile-meta .zoom { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); flex-shrink: 0; }
.tile-meta .zoom svg { width: 16px; height: 16px; }
@media (hover: none) { .tile-meta { opacity: 1; transform: none; padding-top: 30px; } .tile-meta .zoom { display: none; } }
.tile[hidden] { display: none; }

/* filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(26px, 4vw, 44px); }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-weight: 600; font-size: 14px; transition: all .2s; }
.filter:hover { color: #fff; border-color: rgba(183, 109, 248, .6); }
.filter[aria-pressed="true"] { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(139, 71, 246, .9); }
.filter .n { font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .12); }

/* ---------- feature / case teaser ---------- */
.feature { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 30px; overflow: hidden; background: linear-gradient(150deg, rgba(255, 122, 40, .16), rgba(139, 71, 246, .12) 45%, rgba(23, 7, 36, .7)); border: 1px solid var(--line-2); }
.feature h3 { margin: 6px 0 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; line-height: 1.45; }
.feature p { color: #ddd5ea; margin: 14px 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #ffd3b5; background: rgba(255, 138, 61, .14); border: 1px solid rgba(255, 138, 61, .3); }
.eyebrow--violet { color: #e2cfff; background: rgba(139, 71, 246, .16); border-color: rgba(183, 109, 248, .35); }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.collage img { border-radius: 16px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .9); }
.collage img:nth-child(2) { transform: translateY(-22px); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- photomontage ---------- */
.montage .tile-frame { border-radius: 6.9cqi; }
.group-title { display: flex; align-items: center; gap: 10px; margin: clamp(28px, 4vw, 44px) 0 18px; font-size: clamp(19px, 2.4vw, 24px); font-weight: 900; }
.group-title:first-of-type { margin-top: 0; }
.group-title svg { width: 24px; height: 24px; color: var(--violet-hi); }

/* reel / clip cards (open on Instagram) */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); }
.reels--3 { grid-template-columns: repeat(3, 1fr); max-width: 940px; margin-inline: auto; }
@media (max-width: 860px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reels--3 { grid-template-columns: repeat(2, 1fr); } }
.reel { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.reel:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(139, 71, 246, .7), 0 0 0 1px rgba(183, 109, 248, .5); }
.reel:hover img { transform: scale(1.04); }
.reel-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-family: var(--en); background: rgba(8, 3, 12, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel-badge svg { width: 14px; height: 14px; }
.reel-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); transition: transform .3s var(--ease), background .3s; }
.reel-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.reel:hover .reel-play { transform: scale(1.1); background: var(--violet); }
.reel-cap { position: absolute; inset: auto 0 0 0; padding: 48px 14px 14px; background: linear-gradient(180deg, transparent, rgba(6, 2, 10, .95)); }
.reel-cap b { display: block; font-size: 14px; font-weight: 800; line-height: 1.6; }
.reel-cap small { display: block; color: var(--violet-hi); font-family: var(--en); font-size: 12px; direction: ltr; text-align: right; }

/* gaming */
.feature--game { background: linear-gradient(150deg, rgba(83, 252, 24, .10), rgba(139, 71, 246, .14) 45%, rgba(23, 7, 36, .75)); }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.clips .reel { border-radius: 16px; }
.clips .reel:nth-child(2) { transform: translateY(-18px); }
.clips .reel:nth-child(2):hover { transform: translateY(-24px); }
.clips .reel-cap { padding: 36px 10px 10px; }
.clips .reel-cap b { font-size: 12.5px; }
.clips .reel-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.eyebrow--live { color: #d7ffc4; background: rgba(83, 252, 24, .1); border-color: rgba(83, 252, 24, .32); font-family: var(--en); letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #53fc18; box-shadow: 0 0 0 0 rgba(83, 252, 24, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(83, 252, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.btn-kick { background: #53fc18; color: #0b0410; box-shadow: 0 10px 30px -12px rgba(83, 252, 24, .7); }
.btn-kick:hover { box-shadow: 0 16px 36px -12px rgba(83, 252, 24, .85); }
.channel.channel--kick .ico { background: #53fc18; color: #0b0410; }
.channel.channel--yt .ico { background: #ff0033; }

/* before / after */
.ba { position: relative; --pos: 50%; width: min(100%, 560px); margin-inline: auto; border-radius: 20px; overflow: hidden; aspect-ratio: 448 / 475; box-shadow: 0 30px 70px -30px rgba(139, 71, 246, .55), 0 0 0 1px var(--line-2); direction: ltr; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 26px rgba(0, 0, 0, .5); pointer-events: none; }
.ba-knob svg { width: 22px; height: 22px; color: #fff; }
.ba-tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; font-family: var(--display); font-size: 11px; letter-spacing: .12em; background: rgba(8, 3, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag--b { left: 14px; } .ba-tag--a { right: 14px; color: var(--violet-hi); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) { outline: 2px solid var(--violet-hi); outline-offset: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.5; }
.split p { color: #ddd5ea; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* steps / services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(165deg, rgba(40, 14, 62, .7), rgba(17, 6, 26, .7)); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: rgba(183, 109, 248, .45); transform: translateY(-4px); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 71, 246, .18); color: var(--violet-hi); box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .3); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
.card .num { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--display); font-weight: 800; font-size: 34px; color: rgba(183, 109, 248, .16); }

/* facts table (about) */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(23, 7, 36, .55); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 700; }
.facts a { color: var(--violet-hi); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 0; } }

/* case study */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(23, 7, 36, .55); margin-top: 36px; }
.case-meta div { padding: 18px 20px; border-inline-start: 1px solid var(--line); }
.case-meta div:first-child { border-inline-start: 0; }
.case-meta dt { color: var(--muted); font-size: 13px; }
.case-meta dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } .case-meta div:nth-child(3) { border-inline-start: 0; } .case-meta div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.phone { width: min(100%, 360px); margin-inline: auto; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.scroller > * { scroll-snap-align: start; }
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); max-width: 900px; margin-inline: auto; }
@media (max-width: 640px) { .stories { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; } .stories > * { scroll-snap-align: center; } }
.caption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* next/prev project nav */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(23, 7, 36, .55); transition: border-color .2s, transform .2s var(--ease); }
.pager a:hover { border-color: rgba(183, 109, 248, .5); transform: translateY(-3px); }
.pager small { color: var(--muted); }
.pager b { font-size: 18px; }
.pager a:last-child { text-align: left; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: right; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy p { margin: 0; font-size: clamp(18px, 2.4vw, 24px); line-height: 2; font-weight: 500; color: #eee7f7; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 16px; transition: background .2s; direction: ltr; }
.contact-list a:hover { background: rgba(139, 71, 246, .12); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--violet-hi); background: rgba(139, 71, 246, .14); box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .3); flex-shrink: 0; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list b { font-family: var(--en); font-weight: 500; font-size: clamp(16px, 2vw, 19px); }
.contact-list .phone-fa { font-family: var(--fa); font-weight: 700; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: .04em; }
.contact-list small { display: block; font-family: var(--fa); color: var(--muted); font-size: 12.5px; direction: rtl; text-align: left; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .channels { grid-template-columns: 1fr; } }
.channel { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(23, 7, 36, .6); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.channel:hover { border-color: rgba(183, 109, 248, .5); transform: translateY(-3px); background: rgba(40, 14, 62, .7); }
.channel .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.channel .ico svg { width: 22px; height: 22px; }
.channel b { display: block; font-size: 16px; }
.channel span { display: block; color: var(--muted); font-size: 13.5px; font-family: var(--en); direction: ltr; text-align: right; }

.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(165deg, rgba(40, 14, 62, .75), rgba(17, 6, 26, .75)); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: #e6def1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(8, 3, 12, .55); color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.9; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 21px, 23px 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--panel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-hi); box-shadow: 0 0 0 4px rgba(139, 71, 246, .2); }
.form-note { margin: 0; color: var(--dim); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: 32px; border: 1px solid var(--line-2); background: radial-gradient(600px 260px at 50% 0%, rgba(139, 71, 246, .35), transparent 70%), linear-gradient(180deg, rgba(31, 12, 49, .9), rgba(14, 5, 22, .9)); }
.cta-band h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.45; }
.cta-band p { margin: 12px auto 26px; max-width: 560px; color: var(--muted); }
.cta-band .btn-row { justify-content: center; }
.more-ig { text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 0; }
.more-ig a { background: linear-gradient(90deg, #fff, var(--violet-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 2, 10, .94); color: var(--text); }
.lb::backdrop { background: rgba(6, 2, 10, .7); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); }
.lb-count { font-family: var(--en); color: var(--muted); font-size: 14px; direction: ltr; }
.lb-tools { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: rgba(139, 71, 246, .25); border-color: rgba(183, 109, 248, .6); }
.icon-btn svg { width: 20px; height: 20px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(139, 71, 246, .55); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { right: clamp(6px, 2vw, 28px); } .lb-next { left: clamp(6px, 2vw, 28px); }
.lb-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px var(--gutter) 22px; }
.lb-cap h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.6; }
.lb-cap small { display: block; color: var(--violet-hi); font-family: var(--en); font-size: 13px; direction: ltr; text-align: right; }
.lb-cap .lb-link { display: none; }
.lb-cap .lb-link.show { display: inline-flex; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 300; padding: 10px 18px; border-radius: 999px; background: #fff; color: #120519; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 5, 25, .4), #060608); }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 56px 36px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a { color: #ddd5ea; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--violet-hi); }
.footer-about p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; max-width: 380px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: #ddd5ea; transition: all .2s; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.credit { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgba(255, 154, 61, .28); background: rgba(255, 154, 61, .06); color: #f3d9c3; transition: all .2s; }
.credit:hover { border-color: rgba(255, 154, 61, .6); background: rgba(255, 154, 61, .12); color: #fff; }
.credit img { width: 22px; height: auto; }
.credit b { font-family: var(--en); font-weight: 600; direction: ltr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; overflow: clip; }
.nf .code { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 20vw, 200px); line-height: 1; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* utilities */
.center { text-align: center; }
.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.muted { color: var(--muted); }
.rel { position: relative; z-index: 1; }

/* =========================================================
   Photoshop toolbar (desktop) — tools double as page shortcuts
   ========================================================= */
.ps-tools {
  position: fixed; left: 0; top: calc(var(--nav-h) + 14px); z-index: 45;
  display: none; flex-direction: column; align-items: center; gap: 1px;
  width: 50px; padding: 6px 0 10px; direction: ltr;
  background: linear-gradient(180deg, #333 0%, #2a2a2a 100%);
  border: 1px solid #1b1b1b; border-left: 0; border-radius: 0 12px 12px 0;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8), inset -1px 0 0 rgba(255, 255, 255, .04);
}
@media (min-width: 1320px) and (min-height: 780px) { .ps-tools { display: flex; } }
.ps-grip { color: #8a8a8a; font: 600 11px/1 var(--en); letter-spacing: -1px; margin-bottom: 4px; }
.ps-logo { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 6px; display: grid; place-items: center; background: #001e36; color: #31a8ff; font: 700 14px/1 var(--en); box-shadow: inset 0 0 0 1.5px #31a8ff; }
.ps-tool {
  position: relative; width: 36px; height: 30px; display: grid; place-items: center; flex-shrink: 0;
  border: 0; border-radius: 6px; background: transparent; color: #d4d4d4; cursor: pointer; transition: background .15s, color .15s;
}
.ps-tool svg { width: 18px; height: 18px; stroke-width: 1.6; }
.ps-tool::after { /* little "tool group" triangle, like Photoshop */
  content: ""; position: absolute; right: 3px; bottom: 3px; border: 2.5px solid transparent; border-right-color: #9b9b9b; border-bottom-color: #9b9b9b;
}
.ps-tool:hover { background: #454545; color: #fff; }
.ps-tool[aria-current="page"], .ps-tool.is-active { background: #565656; color: #fff; box-shadow: inset 0 0 0 1px #707070; }
.ps-tool[aria-current="page"] { color: #c9a4ff; }
.ps-tool[data-tip]::before, .ps-swap[data-tip]::before {
  content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%);
  white-space: nowrap; padding: 7px 10px; border-radius: 6px; background: #1d1d1d; color: #ececec; border: 1px solid #444;
  font: 500 12px/1.2 var(--en); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2;
}
:root[lang="fa"] .ps-tool[data-tip]::before { font-family: var(--fa); }
.ps-tool:hover::before, .ps-tool:focus-visible::before, .ps-swap:hover::before { opacity: 1; transform: translate(0, -50%); }
.ps-sep { width: 26px; height: 1px; background: #474747; margin: 4px 0; flex-shrink: 0; }
.ps-swatch { position: relative; width: 38px; height: 38px; margin-top: 4px; }
.ps-swatch i { position: absolute; width: 21px; height: 21px; border: 1.5px solid #e9e9e9; box-shadow: 0 0 0 1px #111; transition: background .25s; }
.ps-fg { top: 2px; left: 3px; z-index: 2; background: #2ea8ff; }
.ps-bg { bottom: 2px; right: 3px; background: #fff; }
.ps-swap { position: absolute; top: -2px; right: -3px; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: #bdbdbd; cursor: pointer; }
.ps-swap svg { width: 12px; height: 12px; }
.ps-swatch.swapped .ps-fg { background: #fff; }
.ps-swatch.swapped .ps-bg { background: #2ea8ff; }

/* ---------- language switch ---------- */
.lang-switch {
  flex-shrink: 0; display: inline-grid; place-items: center; min-width: 42px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font-weight: 700; font-size: 14px; transition: all .2s;
}
.lang-switch[lang="en"] { font-family: var(--en); }
.lang-switch[lang="fa"] { font-family: var(--fa); }
.lang-switch:hover { border-color: rgba(183, 109, 248, .6); background: rgba(139, 71, 246, .18); }
@media (max-width: 960px) { .nav .lang-switch { margin-inline-start: auto; } .nav .lang-switch + .nav-cta + .burger { margin-inline-start: 0; } }

/* =========================================================
   English (LTR) pages
   ========================================================= */
:root[lang="en"] body { font-family: var(--en); line-height: 1.75; }
[lang="fa"] { font-family: var(--fa); }
:root[lang="en"] .hero h1 { font-weight: 800; letter-spacing: -0.025em; }
:root[lang="en"] h1.page-title, :root[lang="en"] .account-copy h3, :root[lang="en"] .feature h3, :root[lang="en"] .cta-band h2 { font-weight: 800; letter-spacing: -0.02em; }
:root[lang="en"] .account-copy p { text-align: left; }
:root[lang="en"] .skill-name small { font-family: var(--en); }
[dir="ltr"] .i-arrow { transform: scaleX(-1); }
[dir="ltr"] .link-arrow:hover svg { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .tile-meta small, [dir="ltr"] .lb-cap small, [dir="ltr"] .reel-cap small, [dir="ltr"] .channel span { text-align: left; }
[dir="ltr"] .contact-list small { direction: ltr; font-family: var(--en); }
[dir="ltr"] .pager a:last-child { text-align: right; }
[dir="ltr"] .swirl--tr { right: -24vw; }
[dir="ltr"] .reel-play svg { margin-left: 3px; }
@media (max-width: 560px) { [dir="ltr"] .pager a:last-child { text-align: left; } }
.lb-prev { right: auto; inset-inline-start: clamp(6px, 2vw, 28px); }
.lb-next { left: auto; inset-inline-end: clamp(6px, 2vw, 28px); }

/* =========================================================
   Link-in-bio page (links.html) — compact, laid out like Photoshop's tools panel
   ========================================================= */
.bio { min-height: 100vh; overflow-x: hidden; position: relative; }
.bio .swirl--tr { top: -60px; right: -40vw; width: min(900px, 130vw); opacity: .6; position: fixed; }
.bio-wrap { position: relative; z-index: 1; width: min(100% - 32px, 400px); margin: 0 auto; padding: 14px 0 32px; }
.bio-top { display: flex; justify-content: flex-end; }
.bio-top .lang-switch { height: 34px; min-width: 38px; border-radius: 10px; font-size: 13px; }
.bio-head { text-align: center; margin-top: 2px; }
.bio-avatar { display: block; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #8b47f6, #ff8a3d, #e0389a, #8b47f6); box-shadow: 0 14px 40px -16px rgba(139, 71, 246, .8); }
.bio-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: radial-gradient(circle at 50% 30%, #4c1f80, #1d0b2c); border: 3px solid var(--bg); }
.bio-head h1 { margin: 10px 0 0; font-size: 19px; font-weight: 900; line-height: 1.4; }
.bio-handle { margin: 0; color: var(--violet-hi); font-family: var(--en); font-weight: 500; font-size: 13px; }
.bio-sub { margin: 4px auto 0; color: var(--muted); font-size: 12.5px; max-width: 340px; line-height: 1.8; }

/* Photoshop-like window holding the link "tools" */
.ps-win { margin-top: 18px; border-radius: 12px; overflow: hidden; background: #2b2b2b; border: 1px solid #1a1a1a; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(183, 109, 248, .12); }
.ps-win-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #1f1f1f; color: #a8a8a8; font: 500 11px/1 var(--en); }
.ps-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; flex-shrink: 0; }
.ps-win-bar i:nth-child(2) { background: #febc2e; }
.ps-win-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.ps-win-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-win-opts { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; background: #323232; border-bottom: 1px solid #1d1d1d; }
.ps-win-opts .ps-logo { width: 22px; height: 22px; margin: 0; border-radius: 4px; font-size: 11px; flex-shrink: 0; }
.ps-opt-txt { color: #d8d8d8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.pst {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 64px; padding: 8px 4px 7px; border-radius: 7px; background: #383838; border: 1px solid #222; color: #e2e2e2;
  transition: background .15s, color .15s, border-color .15s;
}
.pst svg { width: 20px; height: 20px; stroke-width: 1.6; }
.pst span { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #c9c9c9; white-space: nowrap; }
.pst::after { content: ""; position: absolute; right: 4px; bottom: 4px; border: 2.5px solid transparent; border-right-color: #8d8d8d; border-bottom-color: #8d8d8d; }
.pst:hover, .pst:focus-visible { background: #4a4a4a; border-color: #5a5a5a; color: #fff; }
.pst:hover span { color: #fff; }
.pst--primary { background: #565656; border-color: #6e6e6e; color: #d6b8ff; box-shadow: inset 0 0 0 1px rgba(183, 109, 248, .35); }
.pst--primary span { color: #fff; }
.pst--kick svg { color: #53fc18; }
.pst--yt svg { color: #ff4d6d; }
.ps-win-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 10px; background: #2b2b2b; border-top: 1px solid #222; }
.ps-win-foot .ps-swatch { margin: 0; width: 34px; height: 34px; }
.ps-win-foot .ps-swatch i { width: 19px; height: 19px; }
.ps-vcf { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; background: #3a3a3a; border: 1px solid #222; color: #e2e2e2; font-size: 12px; font-weight: 600; }
.ps-vcf svg { width: 15px; height: 15px; }
.ps-vcf:hover { background: #4a4a4a; color: #fff; }
.bio-foot { margin-top: 22px; display: flex; justify-content: center; }
@media (max-width: 340px) { .ps-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   rezarexa.com credit — a tiny VS Code window in site colours
   ========================================================= */
.code-credit {
  display: block; width: min(100%, 370px); direction: ltr; text-align: left; overflow: hidden;
  border-radius: 12px; background: #0f0516; border: 1px solid rgba(183, 109, 248, .28);
  box-shadow: 0 18px 40px -20px rgba(139, 71, 246, .7); font: 500 12.5px/1.75 "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.code-credit:hover { transform: translateY(-3px); border-color: rgba(183, 109, 248, .6); box-shadow: 0 24px 50px -22px rgba(139, 71, 246, .95); }
.cc-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: #160822; border-bottom: 1px solid rgba(183, 109, 248, .14); }
.cc-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; flex-shrink: 0; }
.cc-bar > i:nth-child(2) { background: #febc2e; }
.cc-bar > i:nth-child(3) { background: #28c840; margin-right: 8px; }
.cc-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #0f0516; color: #e9ddff; border-top: 2px solid var(--violet-hi); font-size: 12px; }
.cc-tab img { width: 14px; height: auto; }
.cc-x { margin-left: auto; color: #6f6485; }
.cc-body { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 10px 14px 12px 8px; }
.cc-body .ln { color: #54496a; text-align: right; user-select: none; }
.cc-body .cl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e8e1f3; }
.tk-c { color: #8a7da3; font-style: italic; font-family: var(--fa), monospace; }
:root[lang="en"] .tk-c { font-family: inherit; }
.tk-k { color: #c792ea; }
.tk-v { color: #82aaff; }
.tk-o, .tk-p { color: #b76df8; }
.tk-s { color: #ffb27a; }
.code-credit:hover .tk-s { color: #ffd1a8; text-decoration: underline; text-underline-offset: 3px; }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -3px; background: var(--violet-hi); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.cc-status { display: flex; gap: 12px; padding: 3px 10px; background: linear-gradient(90deg, #5a1fb8, #8b47f6); color: #f3eaff; font-size: 10.5px; line-height: 1.6; }
.cc-status .cc-r { margin-left: auto; }
@media (max-width: 420px) { .cc-status span:nth-child(n+4) { display: none; } }
.bio-foot .code-credit { margin: 0 auto; }
