/* =====================================================================
   Behnam Bakhtiari — design system
   Tokens first; every component reads from them. RTL via logical props.
   ===================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Open Sans (Apache 2.0): English text. On Persian pages only Latin letters/digits use it. */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/OpenSans-Regular.aa561ba05cd0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/OpenSans-Semibold.47e11ac39e88.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/OpenSans-Bold.2d9ed9844424.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/OpenSans-ExtraBold.e422ff01ce96.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans Latin";
  src: url("../fonts/open-sans/OpenSans-Regular.aa561ba05cd0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039, U+0041-005A, U+0061-007A, U+00C0-024F;
}
@font-face {
  font-family: "Open Sans Latin";
  src: url("../fonts/open-sans/OpenSans-Semibold.47e11ac39e88.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0030-0039, U+0041-005A, U+0061-007A, U+00C0-024F;
}
@font-face {
  font-family: "Open Sans Latin";
  src: url("../fonts/open-sans/OpenSans-Bold.2d9ed9844424.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0030-0039, U+0041-005A, U+0061-007A, U+00C0-024F;
}
@font-face {
  font-family: "Open Sans Latin";
  src: url("../fonts/open-sans/OpenSans-ExtraBold.e422ff01ce96.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0030-0039, U+0041-005A, U+0061-007A, U+00C0-024F;
}
/* Pelak (Fontiran, commercial licence — see static/fonts/pelak/FontLicense.txt): titles and headings */
@font-face {
  font-family: "Pelak";
  src: url("../fonts/pelak/Pelak-Medium.9675c5ca269f.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("../fonts/pelak/Pelak-SemiBold.fd1fc8e5aea4.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("../fonts/pelak/Pelak-Bold.6b638d53a67b.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("../fonts/pelak/Pelak-ExtraBold.e26c351f54fb.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Pelak";
  src: url("../fonts/pelak/Pelak-Black.c1ef9a5133d8.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  --bg: #F8FAFC; --surface: #FFFFFF; --surface-2: #EEF1F7;
  --text: #10131A; --muted: #687080; --border: #E8EBF0;
  --brand: #7758F5; --brand-strong: #5B3FD9; --brand-soft: #F0EDFF;
  --growth: #1BC5BD; --growth-text: #0A7F79; --growth-soft: #E6F9F6;
  --inverse: #141824; --inverse-2: #262D45; --on-inverse: #F8FAFC; --on-inverse-muted: #AAB1BF;
  --btn-bg: #141824; --btn-fg: #FFFFFF; --btn-hover: #282E41;
  --header-bg: rgba(248, 250, 252, .85);
  --danger: #C4314B;

  --fs-xs: 13px; --fs-sm: 14px; --fs-base: 16px; --fs-md: 18px; --fs-lg: 22px;
  --fs-xl: 28px; --fs-2xl: 36px; --fs-3xl: 48px; --fs-4xl: 64px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-full: 999px;

  --shadow-1: 0 1px 2px rgba(20, 24, 36, .06);
  --shadow-2: 0 12px 28px rgba(20, 24, 36, .10);
  --shadow-3: 0 24px 55px rgba(20, 24, 36, .16);

  --font-body: "Open Sans Latin", "Vazirmatn", system-ui, -apple-system, sans-serif;
  --font-display: "Open Sans Latin", "Pelak", "Vazirmatn", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: 200ms; --t-slow: 400ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E1118; --surface: #161A24; --surface-2: #1B2030;
  --text: #E8EBF0; --muted: #9AA2AE; --border: #262C3A;
  --brand: #9B85FF; --brand-strong: #B7A6FF; --brand-soft: #231E3D;
  --growth: #3FDCD3; --growth-text: #3FDCD3; --growth-soft: #10302F;
  --inverse: #1C2232; --inverse-2: #2A3150;
  --btn-bg: #F1F3F7; --btn-fg: #10131A; --btn-hover: #FFFFFF;
  --header-bg: rgba(14, 17, 24, .85);
  --danger: #FF8095;
  --shadow-2: 0 12px 28px rgba(0, 0, 0, .35); --shadow-3: 0 24px 55px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base); line-height: 1.9; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 800; letter-spacing: 0; }
a { color: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
em { font-style: normal; color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--brand-soft); color: var(--text); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 32px); }
.section { padding-block: var(--s-9); }
.section-sm { padding-block: var(--s-7); }
/* Two plain sections in a row share one gap instead of doubling it */
.section:not(.section-tint):not(.founder) + .section:not(.section-tint):not(.founder) { padding-top: 0; }
.section-tint { background: var(--surface-2); }
.muted, .muted-text { color: var(--muted); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: absolute; inset-inline-start: var(--s-4); top: -60px; z-index: 100; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--btn-bg); color: var(--btn-fg); transition: top var(--t-fast); }
.skip-link:focus { top: var(--s-4); }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--brand-strong); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--growth); box-shadow: 0 0 0 5px var(--growth-soft); }
.eyebrow-light { color: #C9BEFF; }
.eyebrow-light::before { box-shadow: 0 0 0 5px rgba(98, 217, 210, .15); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); margin-bottom: var(--s-6); }
.section-head h2, .h-section { font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); margin-top: var(--s-3); }
.section-head > p { max-width: 380px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-ghost { background: none; color: var(--brand-strong); padding-inline: var(--s-2); }
.btn-light { background: #fff; color: #141824; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Hero */
.hero-shell { position: relative; overflow: hidden; }
.hero-3d {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 60%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 60%, #000 30%, transparent 80%);
}
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; padding-block: var(--s-8); }
.hero h1 { font-size: clamp(38px, 5.4vw, var(--fs-4xl)); line-height: 1.3; margin-block: var(--s-5); }
.hero-lead { font-size: var(--fs-md); color: var(--muted); max-width: 560px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.stats { display: flex; gap: var(--s-6); margin-top: var(--s-7); flex-wrap: wrap; }
.stat { padding-inline-start: var(--s-5); border-inline-start: 1px solid var(--border); }
.stat:first-child { padding-inline-start: 0; border: 0; }
.stat strong { display: block; font-size: var(--fs-xl); line-height: 1.2; font-weight: 800; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }
.stats-block { margin-block: var(--s-6); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }

.portrait-wrap { position: relative; display: grid; place-items: center; min-height: 500px; }
.portrait-glow { position: absolute; inset: 10% 5%; background: radial-gradient(circle at 30% 30%, var(--growth), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand), transparent 60%); filter: blur(60px); opacity: .25; }
.portrait { position: relative; width: min(380px, 100%); aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { height: 100%; display: grid; place-items: center; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-2); animation: float 5s ease-in-out infinite; }
.float b { display: block; font-size: var(--fs-sm); line-height: 1.4; }
.float small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.float-1 { top: 56px; inset-inline-start: 0; }
.float-2 { bottom: 60px; inset-inline-end: 0; animation-delay: 1.2s; }
.chip-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; }
.chip-icon.g { background: var(--growth-soft); color: var(--growth-text); }
.chip-icon.p { background: var(--brand-soft); color: var(--brand-strong); }
.chip-icon .icon { width: 20px; height: 20px; }
.chip-icon-lg { width: 72px; height: 72px; border-radius: var(--r-lg); margin-inline: auto; }
.chip-icon-lg .icon { width: 32px; height: 32px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- Ticker / clients */
.ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--border); background: var(--surface); direction: ltr; }
.ticker-track { display: inline-flex; align-items: center; gap: var(--s-6); padding-block: var(--s-4); color: var(--muted); font-size: var(--fs-xs); letter-spacing: 2.5px; animation: marquee 40s linear infinite; }
.ticker i { font-style: normal; color: var(--growth); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-6); transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow), border-color var(--t-slow); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-5); }
.num { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.icon-box { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.card h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.card h3 a { text-decoration: none; }
.card h3 a::after, .service-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { font-size: var(--fs-sm); color: var(--muted); line-height: 2; }
.card-link { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.card-link .icon { width: 16px; height: 16px; }
.service-card.featured { background: linear-gradient(150deg, var(--inverse), var(--inverse-2)); border-color: transparent; color: var(--on-inverse); }
.service-card.featured p { color: var(--on-inverse-muted); }
.service-card.featured .num { color: #8C94A6; }
.service-card.featured .icon-box { background: rgba(255, 255, 255, .08); color: #62D9D2; }
.service-card.featured .card-link { color: #62D9D2; }

.case-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.case-cover { position: relative; height: 150px; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), var(--growth-soft)); display: grid; place-items: center; }
.case-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px; opacity: .6; }
.case-cover img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.case-icon { position: relative; width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-2); }
.case-body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.case-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.case-head h3 { margin: 0; }
.case-card-compact .case-body { padding: var(--s-6); }
.tags { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.tag { font-size: var(--fs-xs); padding: 2px 10px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; text-decoration: none; }
a.tag:hover { background: var(--brand); color: #fff; }
.result { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--border); }
.result strong { font-size: var(--fs-2xl); line-height: 1; color: var(--growth-text); font-weight: 900; }
.result span { font-size: var(--fs-xs); color: var(--muted); }

.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb .icon { width: 40px; height: 40px; opacity: .5; }
.article-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.meta { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-2); }
.meta span { display: inline-flex; align-items: center; gap: var(--s-1); }
.meta .icon { width: 16px; height: 16px; }

.testimonial blockquote { font-size: var(--fs-base); line-height: 2; margin-block: var(--s-3) var(--s-5); }
.testimonial figcaption { display: flex; align-items: center; gap: var(--s-3); }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; }
.testimonial b { display: block; }
.testimonial small { color: var(--muted); font-size: var(--fs-xs); }
.testimonial-mark { color: var(--growth); width: 28px; height: 28px; }

/* ---------------------------------------------------------------- Home sections */
.statement { text-align: center; }
.statement blockquote p { margin: 0 auto; max-width: 860px; font-size: clamp(var(--fs-lg), 3.2vw, var(--fs-2xl)); font-weight: 700; line-height: 1.8; }
.statement blockquote em { color: var(--brand); }
.statement cite { display: block; margin-top: var(--s-5); font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.quote-mark { font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--growth); opacity: .7; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { border-top: 2px solid var(--border); padding-top: var(--s-5); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 48px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--growth)); }
.step span { font-size: var(--fs-sm); font-weight: 700; color: var(--brand-strong); }
.step h3 { font-size: var(--fs-md); margin-block: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; }
.founder { background: var(--surface); }
.founder-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-9); align-items: center; }
.founder-copy .h-section { margin-bottom: var(--s-5); }
.signature { margin-block: var(--s-5); font-family: Georgia, serif; font-size: var(--fs-lg); color: var(--brand); }
.signature small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); }
.founder-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.founder-photo { position: relative; z-index: 1; width: min(340px, 100%); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(145deg, #E9EDF5, #CDD5E2); box-shadow: var(--shadow-3); }
.founder-orbit { position: absolute; width: min(420px, 100%); height: 280px; border: 1px solid var(--border); border-radius: 50%; transform: rotate(-28deg); animation: spin 26s linear infinite; }
.founder-orbit::after { content: "✦"; position: absolute; left: 28px; top: 28px; color: var(--growth); font-size: 21px; }
@keyframes spin { to { transform: rotate(332deg); } }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; }
.faq details { border-bottom: 1px solid var(--border); padding-block: var(--s-5); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); font-weight: 700; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-lg); line-height: 1; color: var(--brand); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .rich-text { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.faq-inline { margin-block: var(--s-7); }

/* ---------------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--s-8);
  background: linear-gradient(115deg, #191E2C, #2A2F55); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-6);
}
.cta::before {
  content: ""; position: absolute; inset-inline: -20%; bottom: -40%; height: 120%; pointer-events: none;
  background-image: linear-gradient(rgba(98, 217, 210, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 133, 255, .35) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(420px) rotateX(62deg); transform-origin: bottom; opacity: .35;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 75%); mask-image: linear-gradient(to top, #000, transparent 75%);
}
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(98, 217, 210, .25); inset-inline-end: -120px; bottom: -300px; }
.cta > div { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); margin-top: var(--s-2); }
.cta h2 em { color: #62D9D2; }
.cta p { color: #AAB1BF; margin-top: var(--s-2); }
.cta .btn { position: relative; z-index: 1; white-space: nowrap; }
.cta-inline { margin-block: var(--s-7); padding: var(--s-7); }
.cta-inline h2 { font-size: var(--fs-xl); }

/* ---------------------------------------------------------------- Inner pages */
.page-hero { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 60% 80% at 85% 0%, var(--brand-soft), transparent 70%), radial-gradient(ellipse 50% 70% at 10% 10%, var(--growth-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, var(--fs-3xl)); margin-top: var(--s-3); }
.page-lead { margin-top: var(--s-4); max-width: 720px; color: var(--muted); font-size: var(--fs-md); line-height: 2; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0 0 var(--s-4); padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: var(--s-2); opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-strong); }

.service-hero { padding-block: var(--s-7); border-bottom: 1px solid var(--border); }
.service-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.service-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-block: var(--s-4); }
.service-hero .page-lead { margin-block: 0 var(--s-6); }
.service-art img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }

.prose-layout { padding-block: var(--s-7); }
.prose-layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.prose { max-width: 780px; margin-inline: auto; width: 100%; }
.prose-layout.has-toc .prose { margin-inline: 0; }
.prose > * + * { margin-top: var(--s-5); }
.prose-heading { scroll-margin-top: 100px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-6); }
.prose h4 { font-size: var(--fs-md); margin-top: var(--s-5); }
.rich-text p + p, .rich-text p + ul, .rich-text ul + p, .rich-text p + ol { margin-top: var(--s-4); }
.rich-text a { color: var(--brand-strong); text-underline-offset: 4px; }
.rich-text ul, .rich-text ol { padding-inline-start: var(--s-5); }
.rich-text li + li { margin-top: var(--s-2); }
.rich-text blockquote { padding-inline-start: var(--s-5); border-inline-start: 3px solid var(--brand); color: var(--muted); }
.rich-text img { border-radius: var(--r-md); }
.rich-text code { padding: 2px 6px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .9em; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin-block: var(--s-6); }
.prose .rich-text { font-size: 17px; line-height: 2.1; }

.figure img { width: 100%; border-radius: var(--r-md); }
.figure figcaption, .table-wrap figcaption, .video figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.figure-small { max-width: 420px; margin-inline: auto; }
.pull-quote { padding: var(--s-6); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--brand); }
.pull-quote p { font-size: var(--fs-lg); font-weight: 700; line-height: 1.8; }
.pull-quote cite { display: block; margin-top: var(--s-3); font-style: normal; color: var(--muted); font-size: var(--fs-sm); }
.callout { padding: var(--s-5); border-radius: var(--r-md); background: var(--brand-soft); border-inline-start: 3px solid var(--brand); }
.callout-success { background: var(--growth-soft); border-color: var(--growth); }
.callout-warning { background: #FFF5E0; border-color: #E8A33D; color: #10131A; }
.callout strong { display: block; margin-bottom: var(--s-1); }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-wrap th, .table-wrap td { padding: var(--s-3); border: 1px solid var(--border); text-align: start; }
.table-wrap th { background: var(--surface-2); }
.video .responsive-object { position: relative; border-radius: var(--r-md); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.toc { position: sticky; top: calc(100px + var(--adminbar-h, 0px)); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); }
.toc ol { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.toc li + li { margin-top: var(--s-2); }
.toc .toc-h3 { padding-inline-start: var(--s-4); font-size: var(--fs-xs); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand-strong); }
.article-hero .tags { margin-top: var(--s-2); }
.article-hero .meta { margin-top: var(--s-5); }
.article-cover { margin-top: var(--s-7); }
.article-tags { margin-top: var(--s-7); }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.case-meta .result { margin: 0; padding: 0; border: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { padding: 6px 16px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); text-decoration: none; color: var(--muted); }
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.is-active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-7); font-size: var(--fs-sm); color: var(--muted); }

/* ---------------------------------------------------------------- Contact / forms */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; }
.contact-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.contact-list li { display: flex; align-items: center; gap: var(--s-4); }
.contact-list small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-list a { text-decoration: none; font-weight: 600; }
.form { display: grid; gap: var(--s-4); }
.form:hover { transform: none; }
.field label { display: block; margin-bottom: var(--s-1); font-size: var(--fs-sm); font-weight: 600; }
.field input, .field textarea, .field select, .search-form input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit; font-size: var(--fs-base); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 120px; height: 140px; resize: vertical; }
.field ul { list-style: none; padding: 0; margin: 0; }
.field .help { color: var(--muted); font-size: var(--fs-xs); }
.field .error { display: block; color: var(--danger); font-size: var(--fs-xs); margin-top: var(--s-1); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.req { color: var(--danger); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.search-form { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding-block: var(--s-5); border-bottom: 1px solid var(--border); }
.search-results a { text-decoration: none; }
.search-results h2 { font-size: var(--fs-lg); color: var(--brand-strong); }
.search-results p { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-1); }
.empty-state { text-align: center; max-width: 620px; display: grid; gap: var(--s-4); justify-items: center; }
.big-code { font-size: 96px; line-height: 1; font-weight: 900; background: linear-gradient(135deg, var(--growth), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .hero, .service-hero-grid, .split, .founder-grid, .faq-wrap, .contact-grid, .prose-layout.has-toc { grid-template-columns: 1fr; }
  .hero { padding-block: var(--s-7); gap: var(--s-6); }
  .portrait-wrap { order: -1; min-height: 420px; }
  .founder-visual { order: -1; min-height: 360px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .founder-grid, .faq-wrap { gap: var(--s-5); }
  .section-head { display: block; }
  .section-head > p, .section-head > .btn { margin-top: var(--s-3); }
  .cta { display: block; padding: var(--s-7) var(--s-5); }
  .cta .btn { margin-top: var(--s-5); }
  .toc { position: static; }
  .prose-layout.has-toc { gap: var(--s-5); }
  .section { padding-block: var(--s-9); }
}
@media (max-width: 600px) {
  .section { padding-block: var(--s-8); }
  .float-1 { inset-inline-start: -4px; } .float-2 { inset-inline-end: -4px; }
  .stats { gap: var(--s-5); }
  .search-form { flex-direction: column; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .footer, .hero-3d, .cta, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- Direction (English = LTR) */
[dir="ltr"] .icon-forward { transform: scaleX(-1); }
[dir="rtl"] .icon-back { transform: scaleX(-1); }
[dir="rtl"] .icon-external { transform: scaleX(-1); }
[dir="ltr"] body { line-height: 1.7; }
[dir="ltr"] .hero h1 { line-height: 1.15; letter-spacing: -.02em; }
[dir="ltr"] .section-head h2, [dir="ltr"] .h-section, [dir="ltr"] .page-hero h1, [dir="ltr"] .cta h2 { letter-spacing: -.015em; line-height: 1.25; }
[dir="ltr"] .ticker-track { letter-spacing: 1.5px; text-transform: uppercase; }
[dir="ltr"] .statement blockquote p { line-height: 1.5; }

/* ---------------------------------------------------------------- Hero orb (3D service network) */
.orb { position: relative; width: min(580px, 100%); aspect-ratio: 1 / .88; margin-inline: auto; touch-action: pan-y; }
.orb-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--growth) 45%, transparent), transparent 60%), radial-gradient(circle at 65% 70%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 62%); filter: blur(50px); opacity: .55; animation: orb-breathe 6s ease-in-out infinite; }
.orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-labels ul { list-style: none; margin: 0; padding: 0; }
.orb-label {
  position: absolute; top: 0; left: 0; z-index: 4; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px 6px 6px; border-radius: var(--r-full); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-2);
  font-size: var(--fs-xs); font-weight: 700; color: var(--text); text-decoration: none; will-change: transform, opacity;
  transition: border-color var(--t-fast), color var(--t-fast);
}
[dir="rtl"] .orb-label { padding: 6px 6px 6px 12px; }
.orb-label:hover, .orb-label:focus-visible { border-color: var(--brand); color: var(--brand-strong); }
.orb-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; flex-shrink: 0; }
.orb-icon .icon { width: 14px; height: 14px; }
/* Before JS runs (or without JS) the labels sit in a tidy ring */
.orb:not(.is-live) .orb-labels ul { position: absolute; inset: 0; }
.orb:not(.is-live) .orb-label { position: absolute; top: calc(50% + 44% * sin(var(--a))); left: calc(50% + 44% * cos(var(--a))); transform: translate(-50%, -50%); }
.orb .float { z-index: 5; }
.orb .float-1 { top: 4%; inset-inline-start: -2%; }
.orb .float-2 { bottom: 4%; inset-inline-end: -2%; }
@keyframes orb-breathe { 50% { transform: scale(1.06); opacity: .7; } }

/* ---------------------------------------------------------------- About me (founder) */
.founder { background: var(--surface); border-block: 1px solid var(--border); }
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: center; }
.founder-grid-text { grid-template-columns: 1fr; max-width: 820px; }
.founder-visual { position: relative; display: grid; place-items: center; padding: var(--s-6) var(--s-5); min-height: 0; }
.founder-backdrop { position: absolute; inset: 12% 8% 0; border-radius: 32px; background: linear-gradient(160deg, var(--brand-soft), var(--growth-soft)); }
.founder-backdrop::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 32px 32px; opacity: .55; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.founder-ring { position: absolute; width: 78%; aspect-ratio: 1; top: 4%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); animation: spin 40s linear infinite; }
.founder-ring::after { content: ""; position: absolute; top: 8%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--growth); box-shadow: 0 0 0 6px var(--growth-soft); }
.founder-photo { position: relative; z-index: 1; width: min(360px, 100%); margin: 0; }
.founder-photo img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-3); background: var(--surface-2); }
.founder-badge { position: absolute; z-index: 2; bottom: 8%; inset-inline-start: 0; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
.founder-badge b { display: block; font-size: var(--fs-sm); line-height: 1.4; }
.founder-badge small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.founder-copy .h-section { margin-bottom: var(--s-4); }
.founder-copy .rich-text { font-size: var(--fs-base); line-height: 2; }
[dir="ltr"] .founder-copy .rich-text { line-height: 1.75; }
.expertise { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.expertise li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-full); background: var(--bg); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; }
.expertise .icon { width: 16px; height: 16px; color: var(--growth-text); }
.cta-section { padding-top: var(--s-4); }

/* ---------------------------------------------------------------- Tablet & phone refinements */
@media (max-width: 960px) {
  .hero { text-align: center; padding-block: var(--s-7) var(--s-6); }
  .hero .eyebrow, .hero-actions, .hero .stats { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .orb { width: min(520px, 100%); }
  .founder-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .founder-visual { order: 0; max-width: 460px; margin-inline: auto; }
  .contact-grid { gap: var(--s-6); }
}
@media (max-width: 600px) {
  :root { --fs-3xl: 34px; --fs-2xl: 28px; --fs-xl: 24px; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: var(--s-7); }
  .section-sm { padding-block: var(--s-6); }
  .section-head { margin-bottom: var(--s-5); }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: var(--fs-base); }
  .stats { gap: var(--s-4); margin-top: var(--s-6); }
  .stat { padding-inline-start: var(--s-4); }
  .stat strong { font-size: var(--fs-lg); }
  .card { padding: var(--s-5); }
  .case-card-compact .case-body { padding: var(--s-5); }
  .orb-label { font-size: 11px; padding: 4px 10px 4px 4px; }
  [dir="rtl"] .orb-label { padding: 4px 4px 4px 10px; }
  .orb-icon { width: 22px; height: 22px; }
  .orb { aspect-ratio: 1 / .95; }
  .orb-core { width: 30%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .founder-photo { width: min(280px, 100%); }
  .founder-visual { padding: var(--s-5) var(--s-3) var(--s-4); }
  .founder-badge { inset-inline-start: var(--s-2); bottom: var(--s-2); }
  .statement blockquote p { font-size: var(--fs-lg); }
  .cta { padding: var(--s-6) var(--s-5); border-radius: var(--r-md); }
  .faq summary { font-size: var(--fs-base); }
  .page-hero { padding-block: var(--s-6) var(--s-5); }
  .page-hero h1 { font-size: 28px; }
  .service-hero h1 { font-size: 28px; }
  .prose .rich-text { font-size: 16px; }
}

/* ---------------------------------------------------------------- Rich-text articles */
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.6em 0 .5em; }
.rich-text > :first-child { margin-top: 0; }
.rich-text h2 { font-size: var(--fs-xl); }
.rich-text h3 { font-size: var(--fs-lg); }
.rich-text ul, .rich-text ol, .rich-text blockquote { margin-block: var(--s-4); }
[dir="ltr"] .prose .rich-text { line-height: 1.8; }
.page-lead.rich-text p { margin: 0; }

/* ---------------------------------------------------------------- Orb core: idea → growth */
.orb-core { position: absolute; top: 50%; left: 50%; z-index: 6; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.orb-core-inner {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  background: radial-gradient(circle at 32% 24%, #343C66 0%, #171C2E 52%, #0B0E17 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -14px 32px rgba(98, 217, 210, .14), 0 22px 55px rgba(91, 63, 217, .38);
}
/* glass highlight + faint dot texture */
.orb-core-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.orb-core-inner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 9px 9px; -webkit-mask-image: radial-gradient(circle, transparent 35%, #000 75%); mask-image: radial-gradient(circle, transparent 35%, #000 75%); pointer-events: none; }
.orb-core-from, .orb-core-path, .orb-core-to { position: relative; z-index: 1; }
.orb-core-from {
  padding: 2px 12px; border-radius: var(--r-full); font-size: clamp(11px, 1vw, 13px); font-weight: 600; line-height: 1.6;
  color: #D5DBE8; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.orb-core-path { width: 2px; height: 16%; border-radius: 2px; background: linear-gradient(rgba(98, 217, 210, .25), #9B85FF); }
.orb-core-path i { position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #62D9D2; box-shadow: 0 0 10px 2px rgba(98, 217, 210, .8); animation: core-flow 1.8s ease-in infinite; }
.orb-core-to {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; line-height: 1.15;
  background: linear-gradient(135deg, #6EE7DF 0%, #B7A6FF 60%, #E2DBFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(155, 133, 255, .35));
}
[dir="ltr"] .orb-core-to { letter-spacing: -.02em; }
/* rotating gradient ring with a soft glow */
.orb-core-ring, .orb-core-ring::after {
  position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, #1BC5BD, #7758F5, #C9BEFF, #1BC5BD);
  animation: spin 7s linear infinite;
}
.orb-core-ring { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.orb-core-ring::after { content: ""; inset: 0; filter: blur(12px); opacity: .7; animation: none; }
.orb-core::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.orb-core-pulse { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); animation: core-pulse 3.2s ease-out infinite; }
.orb-core-pulse + .orb-core-pulse { animation-delay: 1.6s; }
@keyframes core-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }
@keyframes core-flow { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
@media (max-width: 600px) {
  .orb-core { width: 31%; }
  .orb-core::before, .orb-core-pulse { inset: -10px; }
  .orb-core-ring { inset: -5px; }
  .orb-core-from { padding: 1px 8px; font-size: 10px; }
  .orb-core-to { font-size: 20px; }
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: var(--adminbar-h, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-slow), box-shadow var(--t-slow), background var(--t-slow);
}
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--growth), var(--brand), #C9BEFF, var(--growth)); background-size: 200% 100%; animation: header-line 8s linear infinite; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 10px 30px -18px rgba(20, 24, 36, .35); background: color-mix(in srgb, var(--surface) 82%, transparent); }
@keyframes header-line { to { background-position: 200% 0; } }
/* Fixed height: resizing a sticky header shifts the page and makes it jitter while scrolling */
.nav { height: 72px; display: flex; align-items: center; gap: var(--s-5); }

.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--t-slow) var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark:has(img) { padding: 0; border: 0; background: none; box-shadow: none; }
.brand-mark span { width: 5px; border-radius: 2px; background: linear-gradient(var(--growth), var(--brand)); }
.brand-mark span:nth-child(1) { height: 9px; } .brand-mark span:nth-child(2) { height: 15px; } .brand-mark span:nth-child(3) { height: 21px; }
.brand-mark-lg { width: 120px; height: 120px; gap: 10px; padding: 26px; border-radius: 28px; }
.brand-text strong { display: block; font-size: var(--fs-base); line-height: 1.3; font-weight: 800; }
.brand-text small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

.nav-menu { margin-inline-start: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a { position: relative; display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; transition: color var(--t-fast), background var(--t-fast); }
.nav-links > li > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--growth), var(--brand)); transform: scaleX(0); transition: transform var(--t-slow) var(--ease); }
.nav-links > li > a:hover { color: var(--text); background: var(--surface-2); }
.nav-links > li > a[aria-current="page"] { color: var(--text); }
.nav-links > li > a[aria-current="page"]::after, .nav-links > li > a:hover::after { transform: scaleX(1); }
.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; margin-inline-start: -6px; border: 0; background: none; color: var(--muted); cursor: pointer; transition: transform var(--t-fast); }
.has-dropdown:hover .dropdown-toggle, .has-dropdown.open .dropdown-toggle { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -16px; width: min(620px, 80vw); padding: var(--s-3);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(20, 24, 36, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top; transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.mega { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega a { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border-radius: 12px; text-decoration: none; transition: background var(--t-fast); }
.mega a:hover, .mega a[aria-current="page"] { background: var(--surface-2); }
.mega-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); transition: background var(--t-fast), color var(--t-fast); }
.mega a:hover .mega-icon { background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; }
.mega-text b { display: block; font-size: var(--fs-sm); line-height: 1.5; }
.mega-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.mega-all { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-3); border-radius: 12px; background: var(--surface-2); color: var(--brand-strong); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.mega-all:hover { background: var(--brand-soft); }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.nav-tools { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.nav-tools .icon-btn { border: 0; width: 34px; height: 34px; border-radius: 10px; }
.nav-tools .icon-btn:hover { background: var(--surface-2); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background var(--t-fast); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: none; }
.menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: block; }

.search-trigger {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; min-width: 190px; padding-inline: 14px 8px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--muted); text-decoration: none;
  font-size: var(--fs-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.search-trigger:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); color: var(--text); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-trigger .icon { width: 18px; height: 18px; }
.search-trigger-text { flex: 1; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--bg); color: var(--muted); font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; direction: ltr; }
.nav-cta { gap: var(--s-2); padding-inline: 18px; height: 44px; border-radius: 14px; }
.nav-cta .icon { width: 18px; height: 18px; }

.lang-switch { display: inline-flex; padding: 0; border-radius: 10px; background: transparent; }
.lang-switch a { min-width: 34px; padding: 6px 8px; border-radius: 10px; text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-decoration: none; line-height: 1.6; transition: background var(--t-fast), color var(--t-fast); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--btn-bg); color: var(--btn-fg); }
.nav-mobile-extra { display: none; }

@media (max-width: 1680px) {
  .search-trigger { min-width: 0; width: 44px; padding: 0; justify-content: center; }
  .search-trigger-text, .search-trigger .kbd { display: none; }
}
@media (max-width: 1220px) {
  .menu-btn { display: grid; }
  .nav-actions { margin-inline-start: auto; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed; top: calc(80px + var(--adminbar-h, 0px)); inset-inline: 12px; margin: 0; padding: var(--s-3);
    max-height: calc(100dvh - 80px - var(--adminbar-h, 0px)); overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(20, 24, 36, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links > li > a { padding: 12px 14px; font-size: var(--fs-base); }
  .nav-links > li > a::after { display: none; }
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dropdown-toggle { width: 44px; height: 44px; margin: 0; }
  .has-dropdown:hover .dropdown-toggle { transform: none; }
  .has-dropdown.open .dropdown-toggle { transform: rotate(180deg); }
  .dropdown { position: static; display: none; width: 100%; padding: 0 0 var(--s-2); background: none; border: 0; box-shadow: none; backdrop-filter: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .mega { grid-template-columns: 1fr; }
  .mega a { padding: 10px; }
  .mega-text small, .mega-all { display: none; }
  .nav-mobile-extra { display: grid; gap: var(--s-3); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border); }
  .lang-switch-wide { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--border); border-radius: 12px; }
  .lang-switch-wide a { padding: 10px; font-size: var(--fs-sm); }
}
@media (max-width: 600px) {
  .nav { height: 64px; }
  .nav-menu { top: 72px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: var(--fs-sm); }
  .brand-mark { width: 38px; height: 38px; }
  .nav-actions { gap: 6px; }
  .nav-tools .lang-switch { display: none; }
  .search-trigger, .icon-btn { width: 40px; height: 40px; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  position: relative; overflow: hidden; margin-top: var(--s-8); padding-block: var(--s-7) var(--s-5);
  background: #0D1019; color: #C9CFDB;
  --f-border: rgba(255, 255, 255, .08); --f-muted: #8B93A5;
}
.footer-glow { position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(ellipse 50% 60% at 20% 100%, rgba(27, 197, 189, .22), transparent 70%), radial-gradient(ellipse 50% 60% at 80% 100%, rgba(119, 88, 245, .28), transparent 70%); pointer-events: none; }
.footer-inner { position: relative; }
.footer a { color: inherit; }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
  padding: var(--s-5) var(--s-6); margin-bottom: var(--s-7); border-radius: 20px;
  background: linear-gradient(120deg, rgba(119, 88, 245, .22), rgba(27, 197, 189, .14)); border: 1px solid rgba(255, 255, 255, .1);
}
.footer-cta strong { display: block; font-size: var(--fs-lg); color: #fff; }
.footer-cta span { color: var(--f-muted); font-size: var(--fs-sm); }
.footer-cta .btn { gap: var(--s-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--s-6); }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: var(--f-muted); }
.footer .brand-mark { background: rgba(255, 255, 255, .06); border-color: var(--f-border); }
.footer-about p { margin-top: var(--s-4); max-width: 340px; font-size: var(--fs-sm); color: var(--f-muted); }
.footer-title { font-size: var(--fs-sm); color: #fff; margin-bottom: var(--s-4); }
.footer-links, .footer-contact, .social-links { list-style: none; padding: 0; margin: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { position: relative; font-size: var(--fs-sm); color: var(--f-muted); text-decoration: none; transition: color var(--t-fast), padding var(--t-fast); }
.footer-links a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 0; height: 2px; background: #62D9D2; transition: width var(--t-fast); }
.footer-links a:hover { color: #fff; padding-inline-start: 14px; }
.footer-links a:hover::before { width: 8px; }
.footer-contact { display: grid; gap: var(--s-3); }
.footer-contact li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); }
.footer-contact a, .footer-contact span { color: var(--f-muted); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-ico { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .06); color: #62D9D2; }
.footer-ico .icon { width: 16px; height: 16px; }
.social-links { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--f-border); border-radius: 11px; color: var(--f-muted); transition: all var(--t-fast); }
.social-links a:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--growth), var(--brand)); }
.social-links .icon { width: 18px; height: 18px; }
.footer-word {
  margin-top: var(--s-6); padding-bottom: .08em; text-align: center; font-weight: 900; line-height: 1.35; white-space: nowrap; overflow: hidden;
  font-size: clamp(48px, 12vw, 168px); letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--f-border); font-size: var(--fs-xs); color: var(--f-muted); }
.footer-langs { display: inline-flex; align-items: center; gap: var(--s-3); }
.footer-langs .icon { width: 16px; height: 16px; }
.footer-langs a { text-decoration: none; color: var(--f-muted); }
.footer-langs a[aria-current="true"] { color: #fff; font-weight: 700; }
.to-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--f-muted); }
.to-top:hover { color: #fff; }
.icon-up { transform: rotate(90deg); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer { padding-block: var(--s-6) var(--s-4); }
  .footer-cta { padding: var(--s-5); margin-bottom: var(--s-6); }
  .footer-cta .btn { width: 100%; }
  .footer-grid { gap: var(--s-5) var(--s-4); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================================
   Overlays (Spotlight search + consultation) — native <dialog>
   ===================================================================== */
body.has-overlay { overflow: hidden; }
.overlay {
  padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none;
  width: 100%; height: 100%; margin: 0; inset: 0; overflow-y: auto;
}
.overlay::backdrop { background: rgba(10, 13, 22, .38); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.overlay[open] { display: flex; justify-content: center; align-items: flex-start; }
.overlay[open]::backdrop { animation: overlay-fade .25s ease; }
.overlay-panel {
  position: relative; margin: 12vh 16px 24px; width: min(680px, 100%);
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--border) 80%, rgba(255, 255, 255, .5)); border-radius: 22px;
  box-shadow: 0 40px 100px -20px rgba(10, 13, 22, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: overlay-pop .28s cubic-bezier(.2, .9, .3, 1.15);
}
.overlay.is-closing .overlay-panel { animation: overlay-out .18s ease forwards; }
.overlay.is-closing::backdrop { animation: overlay-fade .18s ease reverse forwards; }
@keyframes overlay-fade { from { opacity: 0; } }
@keyframes overlay-pop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes overlay-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
.overlay-back {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background var(--t-fast), transform var(--t-fast);
}
.overlay-back:hover { background: var(--surface-2); transform: translateX(2px); }
[dir="ltr"] .overlay-back:hover { transform: translateX(-2px); }
.overlay-back .icon { width: 20px; height: 20px; }

/* Spotlight */
.spotlight-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.spotlight-icon { color: var(--brand-strong); display: grid; }
.spotlight-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 22px/1.4 var(--font-body); padding: 8px 0; }
.spotlight-input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.spotlight-input::-webkit-search-cancel-button { display: none; }
.spotlight-body { max-height: min(56vh, 480px); overflow-y: auto; padding: var(--s-3); }
.spotlight-label { display: block; padding: var(--s-2) var(--s-3); font-size: 12px; font-weight: 700; color: var(--muted); }
.spotlight-list, .spotlight-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.spotlight-item { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-3); border-radius: 12px; text-decoration: none; color: var(--text); transition: background var(--t-fast); }
.spotlight-item:hover, .spotlight-item.is-active { background: linear-gradient(90deg, var(--brand-soft), color-mix(in srgb, var(--growth-soft) 60%, transparent)); }
.spotlight-item-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--brand-strong); }
.spotlight-item.is-active .spotlight-item-icon { background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; }
.spotlight-item-text { flex: 1; min-width: 0; }
.spotlight-item-text b { display: block; font-size: var(--fs-sm); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-item-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-item mark { background: none; color: var(--brand-strong); }
.spotlight-kind { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--surface-2); color: var(--muted); }
.spotlight-go { opacity: 0; color: var(--brand-strong); transition: opacity var(--t-fast); }
.spotlight-item:hover .spotlight-go, .spotlight-item.is-active .spotlight-go { opacity: 1; }
.spotlight-empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); }
.spotlight-foot { display: flex; gap: var(--s-5); justify-content: center; padding: var(--s-3); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.spotlight-foot span { display: inline-flex; align-items: center; gap: 4px; }
.spotlight.is-loading .spotlight-icon { animation: spin 1s linear infinite; }

/* Consultation */
.consult-panel { width: min(900px, 100%); margin-top: 8vh; }
.consult-head { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); }
.consult-head > div { flex: 1; }
.consult-head h2 { font-size: var(--fs-xl); line-height: 1.3; }
.consult-head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.consult-body { display: grid; grid-template-columns: 260px 1fr; }
.consult-aside { position: relative; overflow: hidden; padding: var(--s-6); border-inline-end: 1px solid var(--border); background: linear-gradient(160deg, var(--brand-soft), color-mix(in srgb, var(--growth-soft) 70%, transparent)); border-end-start-radius: 22px; }
[dir="ltr"] .consult-aside { border-end-start-radius: 22px; }
.consult-orb { position: absolute; width: 220px; height: 220px; inset-inline-end: -90px; bottom: -90px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); animation: spin 30s linear infinite; }
.consult-orb::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%); }
.consult-points { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); }
.consult-points li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.7; }
.consult-points .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--growth-text); }
.consult-direct { position: relative; display: grid; gap: var(--s-2); }
.consult-direct a { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--text); }
.consult-direct .icon { width: 16px; height: 16px; color: var(--brand-strong); }
.consult-form, .consult-success { padding: var(--s-6); }
.consult-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.consult-fields .field-wide { grid-column: 1 / -1; }
.consult-fields textarea { height: 110px; min-height: 90px; }
.consult-error { color: var(--danger); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.consult-success { grid-column: 1 / -1; }
.consult-success[hidden] { display: none; }
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.is-sending .btn-spinner { display: inline-block; }
.is-sending .btn-label { opacity: .7; }

@media (max-width: 760px) {
  .overlay-panel { margin: 0; width: 100%; min-height: 100%; border-radius: 0; border: 0; }
  .overlay[open] { align-items: stretch; }
  .spotlight-body { max-height: none; flex: 1; }
  .spotlight-panel { display: flex; flex-direction: column; }
  .spotlight-input { font-size: 18px; }
  .spotlight-foot { display: none; }
  .spotlight-bar .kbd, .consult-head .kbd { display: none; }
  .consult-head { padding: var(--s-4); align-items: center; }
  .consult-head h2 { font-size: var(--fs-lg); }
  .consult-head p { display: none; }
  .consult-body { grid-template-columns: 1fr; }
  .consult-aside { order: 2; border-inline-end: 0; border-top: 1px solid var(--border); padding: var(--s-5); border-radius: 0; }
  .consult-points { margin-bottom: var(--s-4); gap: var(--s-2); }
  .consult-form, .consult-success { padding: var(--s-5) var(--s-4); }
  .consult-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .overlay::backdrop { backdrop-filter: blur(10px); }
}

/* =====================================================================
   About page & reusable page sections
   ===================================================================== */
.about-hero { position: relative; overflow: hidden; padding-block: var(--s-9) calc(var(--s-9) + 40px); text-align: center; }
.about-hero .breadcrumbs ol { justify-content: center; }
.about-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 900px; margin-inline: auto; }
.about-hero .page-lead { margin-inline: auto; font-size: var(--fs-md); max-width: 760px; }
.about-hero-art { position: absolute; inset: 0; pointer-events: none; }
.about-hero-art span { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent); }
.about-hero-art span:nth-child(1) { width: 520px; height: 520px; top: -260px; inset-inline-start: -160px; animation: spin 60s linear infinite; }
.about-hero-art span:nth-child(2) { width: 380px; height: 380px; bottom: -200px; inset-inline-end: -100px; border-color: color-mix(in srgb, var(--growth) 40%, transparent); animation: spin 45s linear infinite reverse; }
.about-hero-art span:nth-child(3) { width: 12px; height: 12px; top: 30%; inset-inline-end: 18%; border: 0; background: var(--growth); box-shadow: 0 0 0 8px var(--growth-soft); animation: float 5s ease-in-out infinite; }

/* Stats band */
.stats-band { position: relative; z-index: 2; padding-block: var(--s-6); }
.stats-band-overlap { margin-top: -88px; padding-top: 0; }
.stats-band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.stats-band-item { padding: var(--s-5) var(--s-4); border-radius: var(--r-md); text-align: center; background: linear-gradient(160deg, var(--bg), var(--surface)); }
.stats-band-item strong { display: block; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 900; background: linear-gradient(135deg, var(--growth-text), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band-item span { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }

/* Features */
.features { display: grid; gap: var(--s-4); }
.features-2 { grid-template-columns: repeat(2, 1fr); }
.features-3 { grid-template-columns: repeat(3, 1fr); }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.feature { position: relative; overflow: hidden; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow), border-color var(--t-slow); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); opacity: 0; transition: opacity var(--t-slow); }
[dir="rtl"] .feature::after { inset: auto auto -60% -40%; }
.feature:hover::after { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; box-shadow: 0 12px 24px -12px var(--brand); }
.feature-num { position: absolute; top: var(--s-5); inset-inline-end: var(--s-5); font-size: var(--fs-2xl); font-weight: 900; line-height: 1; color: var(--border); }
.feature h3 { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-lg); }
.feature p { position: relative; z-index: 1; color: var(--muted); font-size: var(--fs-sm); line-height: 2; }
[dir="ltr"] .feature p { line-height: 1.75; }
.section-tint .feature { background: var(--surface); }

/* Founder block inside a general page sits on the page background */
.page-standard .founder { border-block: 0; }
.page-about .statement { padding-block: var(--s-8); }

@media (max-width: 960px) {
  .features-3, .features-4 { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding-block: var(--s-8) calc(var(--s-8) + 40px); }
}
@media (max-width: 600px) {
  .features-2, .features-3, .features-4 { grid-template-columns: 1fr; }
  .feature { padding: var(--s-5); }
  .stats-band-overlap { margin-top: -64px; }
  .stats-band-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-2); }
  .stats-band-item { padding: var(--s-4) var(--s-2); }
  .about-hero h1 { font-size: 32px; }
  .about-hero-art span:nth-child(1) { width: 320px; height: 320px; top: -160px; }
}

/* Header labels never wrap */
.nav-links > li > a, .nav-cta, .brand-text strong, .brand-text small { white-space: nowrap; }
@media (max-width: 1400px) { .nav { gap: var(--s-3); } .nav-links > li > a { padding-inline: 8px; } .brand-text small, .nav-cta .icon { display: none; } .nav-cta { padding-inline: 14px; } }
@media (max-width: 600px) { .about-hero-art span:nth-child(3) { display: none; } }

/* =====================================================================
   Display font: Pelak for titles and headers; body text stays Vazirmatn
   ===================================================================== */
h1, h2, h3, h4,
.brand-text strong, .footer-title, .stat strong, .stats-band-item strong, .result strong,
.statement blockquote p, .pull-quote p, .orb-core-to, .footer-word, .big-code, .feature-num,
.faq summary, .consult-head h2, .spotlight-item-text b, .mega-text b {
  font-family: var(--font-display);
}
/* Pelak runs a little wider than Vazirmatn: keep big headings comfortable */
h1, h2 { letter-spacing: 0; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -.01em; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.35; }
[dir="ltr"] .hero h1 { line-height: 1.12; }
.about-hero h1 { font-size: clamp(32px, 4.4vw, 54px); }

/* English pages: Open Sans for everything (Pelak/Vazirmatn only as fallbacks) */
:root[lang="en"] {
  --font-body: "Open Sans", "Vazirmatn", system-ui, -apple-system, sans-serif;
  --font-display: "Open Sans", "Pelak", system-ui, sans-serif;
}
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] .stats-band-item strong, [dir="ltr"] .orb-core-to { font-weight: 800; }
[dir="ltr"] .hero h1 { font-size: clamp(36px, 4.1vw, 54px); }

/* ---------------------------------------------------------------- Clients strip */
.clients { position: relative; padding-block: var(--s-7); background: linear-gradient(180deg, var(--bg), var(--surface-2)); border-block: 1px solid var(--border); overflow: hidden; }
.clients-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.clients-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent); }
.clients-title { margin: 0; font-size: var(--fs-md); font-weight: 700; color: var(--text); text-align: center; white-space: nowrap; }
.clients-marquee {
  display: flex; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  width: 100%; overflow: hidden;
}
.clients-track { display: flex; flex-shrink: 0; gap: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-2) 0; margin: 0; list-style: none; animation: clients-scroll 38s linear infinite; }
.clients-marquee:hover .clients-track, .clients-marquee:focus-within .clients-track { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
.client-card {
  display: flex; align-items: center; gap: var(--s-3); min-width: 220px; padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--text); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
}
a.client-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow-2); }
.client-card-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); transition: background var(--t-fast), color var(--t-fast); }
.client-card:hover .client-card-icon { background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; }
.client-card-text { display: grid; line-height: 1.4; }
.client-card-text b { font-family: var(--font-display); font-size: var(--fs-base); }
.client-card-text small { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee { -webkit-mask-image: none; mask-image: none; }
  .clients-track { flex-wrap: wrap; justify-content: center; width: 100%; padding-inline: var(--s-4); }
  .clients-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) {
  .clients { padding-block: var(--s-6); }
  .clients-title { font-size: var(--fs-base); white-space: normal; }
  .client-card { min-width: 190px; padding-inline-end: var(--s-4); }
  .clients-track { animation-duration: 28s; }
}

/* ---------------------------------------------------------------- Contact page */
.contact-hero { padding-block: var(--s-8) calc(var(--s-8) + 60px); }
.contact-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-5); align-items: stretch; margin-top: -80px; padding-bottom: var(--s-8); }
.contact-panel {
  position: relative; overflow: hidden; padding: var(--s-6); border-radius: var(--r-lg); color: #DDE2EC;
  background: linear-gradient(155deg, #141824 0%, #232A45 60%, #2E2860 100%); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.contact-panel-glow { position: absolute; width: 360px; height: 360px; inset-inline-end: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(27, 197, 189, .35), transparent 65%); pointer-events: none; }
.contact-panel > :not(.contact-panel-glow) { position: relative; }
.contact-intro { color: #AAB1BF; font-size: var(--fs-sm); line-height: 2; }
[dir="ltr"] .contact-intro { line-height: 1.75; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.contact-card {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
a.contact-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(98, 217, 210, .4); transform: translateX(-3px); }
[dir="ltr"] a.contact-card:hover { transform: translateX(3px); }
.contact-card-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; }
.contact-card-text { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.contact-card-text small { font-size: 12px; color: #8B93A5; }
.contact-card-text b { font-size: var(--fs-sm); color: #fff; font-weight: 700; overflow-wrap: anywhere; }
[dir="rtl"] .contact-card-text b[dir="ltr"] { text-align: right; }
.contact-card-go { color: #62D9D2; opacity: .5; transition: opacity var(--t-fast); }
a.contact-card:hover .contact-card-go { opacity: 1; }
.contact-next { padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-next strong { display: block; color: #fff; font-family: var(--font-display); margin-bottom: var(--s-3); }
.contact-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.contact-next li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: #C9CFDB; }
.contact-next li span { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(98, 217, 210, .5); color: #62D9D2; font-size: 12px; font-weight: 700; }
.contact-social { margin-top: auto; }
.contact-social a { border-color: rgba(255, 255, 255, .12); color: #AAB1BF; }

.contact-form { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.contact-form-head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.contact-form-head h2 { font-size: var(--fs-lg); line-height: 1.4; }
.contact-form-head p { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--growth-text); font-weight: 600; }
.contact-form-head p .icon { width: 14px; height: 14px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-5); }
.contact-fields .field-wide { grid-column: 1 / -1; }
.contact-submit { height: 52px; font-size: var(--fs-base); }
.contact-submit .icon { width: 18px; height: 18px; }
.contact-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-3); font-size: 12px; color: var(--muted); text-align: center; }
.contact-privacy .icon { width: 14px; height: 14px; flex-shrink: 0; }
.form-alert { margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }

@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { order: -1; }
}
@media (max-width: 600px) {
  .contact-wrap { margin-top: -60px; gap: var(--s-4); }
  .contact-panel, .contact-form { padding: var(--s-5) var(--s-4); }
  .contact-fields { grid-template-columns: 1fr; }
}
[dir="rtl"] .client-card { direction: rtl; }

/* ---------------------------------------------------------------- Form sent (contact page + consultation window) */
.sent { display: grid; justify-items: center; text-align: center; gap: var(--s-4); max-width: 560px; margin-inline: auto; }
.sent-mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: var(--s-2); }
.sent-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--growth) 22%, transparent), transparent 70%); animation: sent-ring 2.4s ease-out .5s infinite; }
.sent-ring-2 { inset: 10px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: none; animation: spin 24s linear infinite; }
.sent-check { position: relative; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--growth), var(--brand)); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--brand) 70%, transparent); animation: sent-pop .55s cubic-bezier(.2, .9, .3, 1.35) both; }
.sent-check-circle { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: sent-draw .6s ease .15s forwards; }
.sent-check-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: sent-draw .4s ease .45s forwards; }
.sent-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; opacity: 0; animation: sent-spark .9s ease-out .35s forwards; }
.sent-spark.s1 { top: 6px; left: 18px; background: var(--growth); --dx: -10px; --dy: -12px; }
.sent-spark.s2 { top: 14px; right: 4px; width: 6px; height: 6px; background: var(--brand); --dx: 12px; --dy: -8px; }
.sent-spark.s3 { bottom: 10px; left: 2px; width: 5px; height: 5px; background: var(--brand); --dx: -12px; --dy: 8px; }
.sent-spark.s4 { bottom: 2px; right: 20px; background: var(--growth); --dx: 8px; --dy: 12px; }
@keyframes sent-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }
@keyframes sent-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes sent-spark { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }

.sent-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 14px; border-radius: var(--r-full); background: var(--growth-soft); color: var(--growth-text); font-size: 12px; font-weight: 700; }
.sent-badge .icon { width: 14px; height: 14px; }
.sent-title { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.35; }
.sent-title em { color: var(--brand); }
.sent-title [hidden] { display: none; }
.sent-text { color: var(--muted); font-size: var(--fs-base); line-height: 2; max-width: 460px; }
[dir="ltr"] .sent-text { line-height: 1.75; }
.sent-text p { margin: 0; }

.sent-steps { list-style: none; margin: var(--s-3) 0 0; padding: var(--s-4); width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); text-align: start; }
.sent-steps li { position: relative; display: flex; align-items: flex-start; gap: var(--s-2); min-width: 0; }
.sent-steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 12px; height: 2px; margin-top: 14px; border-radius: 2px; background: var(--border); }
.sent-steps li.is-done::after { background: linear-gradient(90deg, var(--growth), var(--brand)); }
[dir="rtl"] .sent-steps li.is-done::after { background: linear-gradient(270deg, var(--growth), var(--brand)); }
.sent-step-dot { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800; }
.sent-step-dot .icon { width: 14px; height: 14px; }
.sent-steps .is-done .sent-step-dot { border-color: transparent; background: linear-gradient(135deg, var(--growth), var(--brand)); color: #fff; }
.sent-steps .is-current .sent-step-dot { border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 0 0 4px var(--brand-soft); animation: sent-pulse 2s ease-in-out infinite; }
@keyframes sent-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-soft) 50%, transparent); } }
.sent-steps li > span:nth-child(2) { display: grid; line-height: 1.5; min-width: 0; }
.sent-steps b { font-size: 13px; font-weight: 700; }
.sent-steps small { font-size: 12px; color: var(--muted); }
.sent-steps .is-done small { color: var(--growth-text); font-weight: 600; }

.sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.sent-urgent { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.sent-urgent .icon { width: 14px; height: 14px; color: var(--brand-strong); }
.sent-urgent a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--brand); }
.sent-urgent a:hover { color: var(--brand-strong); }

/* Staggered entrance */
.sent > :not(.sent-mark) { animation: sent-rise .5s var(--ease) both; }
.sent > :nth-child(2) { animation-delay: .35s; }
.sent > :nth-child(3) { animation-delay: .42s; }
.sent > :nth-child(4) { animation-delay: .49s; }
.sent > :nth-child(5) { animation-delay: .56s; }
.sent > :nth-child(6) { animation-delay: .63s; }
.sent > :nth-child(7) { animation-delay: .7s; }
@keyframes sent-rise { from { opacity: 0; transform: translateY(10px); } }

/* Contact landing page */
.sent-page { position: relative; overflow: hidden; padding-block: var(--s-8); min-height: 70vh; display: grid; align-items: center;
  background: radial-gradient(ellipse 60% 70% at 85% 0%, var(--brand-soft), transparent 70%), radial-gradient(ellipse 50% 60% at 10% 15%, var(--growth-soft), transparent 70%); }
.sent-card { position: relative; max-width: 680px; margin-inline: auto; padding: var(--s-7) var(--s-6); border-radius: 28px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.sent-card::before { content: ""; position: absolute; inset-inline: 20%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--growth), var(--brand)); }

/* Inside the consultation window */
.sent-dialog { padding-block: var(--s-3); }
.sent-dialog .sent-title { font-size: var(--fs-xl); }

@media (max-width: 600px) {
  .sent-page { padding-block: var(--s-6); min-height: 0; }
  .sent-card { padding: var(--s-6) var(--s-4); border-radius: var(--r-lg); }
  .sent-title, .sent-dialog .sent-title { font-size: var(--fs-lg); }
  .sent-text { font-size: var(--fs-sm); }
  .sent-steps { grid-template-columns: 1fr; gap: var(--s-4); }
  .sent-steps li:not(:last-child)::after { display: none; }
  .sent-actions { width: 100%; flex-direction: column; }
  .sent-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sent-check-circle, .sent-check-tick { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- Admin bar (logged-in editors only) */
:root:has(.adminbar) { --adminbar-h: 40px; }
.adminbar {
  position: sticky; top: 0; z-index: 60; height: var(--adminbar-h, 40px);
  background: #10131A; color: #C9CFDB; border-bottom: 1px solid rgba(255, 255, 255, .06);
  font: 500 13px/1 "Vazirmatn", system-ui, sans-serif; letter-spacing: 0;
}
.adminbar::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(119, 88, 245, .6), rgba(27, 197, 189, .6), transparent); }
.adminbar-inner { height: 100%; display: flex; align-items: stretch; gap: 2px; padding-inline: 10px; }
.adminbar a, .adminbar button { color: inherit; text-decoration: none; font: inherit; }
.adminbar-brand, .adminbar-item {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.adminbar-brand:hover, .adminbar-item:hover, .adminbar-menu.is-open > .adminbar-item, .adminbar-menu:hover > .adminbar-item { background: rgba(255, 255, 255, .07); color: #fff; }
.adminbar-brand { font-weight: 800; color: #fff; padding-inline-end: 14px; margin-inline-end: 4px; border-inline-end: 1px solid rgba(255, 255, 255, .08); }
.adminbar-logo { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #1BC5BD, #7758F5); color: #fff; }
.adminbar .icon { flex-shrink: 0; }
.adminbar-item > .icon { color: #8B93A5; }
.adminbar-item:hover > .icon { color: #62D9D2; }
.adminbar-plus { font-size: 18px; font-weight: 400; line-height: 1; color: #62D9D2; }
.adminbar-caret { opacity: .55; }
.adminbar-edit { color: #fff; }
.adminbar-edit > .icon { color: #B7A6FF; }
.adminbar-tag { padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.adminbar-tag.is-draft { background: rgba(255, 194, 102, .16); color: #FFC266; }
.adminbar-tag.is-changed { background: rgba(155, 133, 255, .18); color: #C9BEFF; }
.adminbar-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: #1BC5BD; color: #08201F; font-size: 11px; font-weight: 800; }
.adminbar-user { margin-inline-start: auto; }
.adminbar-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #262D45; color: #fff; font-size: 12px; font-weight: 800; }

.adminbar-menu { position: relative; display: flex; }
.adminbar-drop {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: #181C27; border: 1px solid rgba(255, 255, 255, .08); border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.adminbar-user .adminbar-drop { inset-inline-start: auto; inset-inline-end: 0; }
.adminbar-menu.is-open .adminbar-drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .adminbar-menu:hover .adminbar-drop, .adminbar-menu:focus-within .adminbar-drop { opacity: 1; visibility: visible; transform: none; } }
.adminbar-drop a, .adminbar-drop button {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: start; line-height: 1.4;
}
.adminbar-drop a:hover, .adminbar-drop button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adminbar-drop .icon { color: #62D9D2; }
.adminbar-drop form { margin: 0; }
.adminbar :focus-visible { outline: 2px solid #9B85FF; outline-offset: -2px; border-radius: 6px; }

@media (max-width: 900px) { .adminbar-wide { display: none; } }
@media (max-width: 720px) {
  .adminbar-label { display: none; }
  .adminbar-inner { padding-inline: 4px; }
  .adminbar-brand { padding-inline: 8px; }
  .adminbar-item { padding: 0 9px; }
  .adminbar-tag { display: none; }
}
@media print { .adminbar { display: none; } }

/* ---------------------------------------------------------------- Client logo slider */
.client-logo { display: grid; place-items: center; height: 72px; min-width: 150px; padding: 0 var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.client-logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter var(--t-slow), opacity var(--t-slow), transform var(--t-slow); }
.client-logo:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.client-wordmark { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); white-space: nowrap; transition: color var(--t-fast); }
.client-wordmark b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; }
.client-wordmark .icon { color: var(--brand); opacity: .6; }
.client-logo:hover .client-wordmark { color: var(--text); }
:root[data-theme="dark"] .client-logo img { filter: grayscale(1) invert(.85) contrast(.9); }
:root[data-theme="dark"] .client-logo:hover img { filter: none; }

/* Portfolio cards (About page) */
.case-logo { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; padding: 8px; border-radius: var(--r-md); background: var(--surface-2); }
.case-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.case-head { display: flex; align-items: center; gap: var(--s-3); }
.case-head h3 { flex: 1; }
.case-year { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- Team */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s-5); }
.team-card { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow), border-color var(--t-slow); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.team-photo { position: relative; aspect-ratio: 6 / 7; overflow: hidden; background: linear-gradient(160deg, var(--brand-soft), var(--growth-soft)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 88px; font-weight: 900; background: linear-gradient(135deg, var(--growth), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-ring { position: absolute; width: 70%; aspect-ratio: 1; inset-inline-end: -25%; bottom: -25%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); animation: spin 40s linear infinite; pointer-events: none; }
.team-text { position: relative; padding: var(--s-4) var(--s-5) var(--s-5); }
.team-text h3 { font-size: var(--fs-md); line-height: 1.4; }
.team-role { color: var(--brand-strong); font-size: var(--fs-sm); font-weight: 600; }
.team-bio { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.team-link { position: absolute; top: var(--s-4); inset-inline-end: var(--s-4); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand-strong); }
.team-link:hover { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- Phoenix: the meaning of the logo */
.phoenix {
  --ember: #FF9B4A; --ember-2: #FFC266; --violet: #8C6CFF; --teal: #2DD4C9;
  position: relative; overflow: hidden; isolation: isolate; color: #DCE1EB; padding-block: var(--s-9);
  background: radial-gradient(ellipse 70% 60% at 25% 45%, #2A1648 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 85% 90%, #0E3A3E 0%, transparent 70%), linear-gradient(170deg, #07090F 0%, #0E1020 55%, #120B1E 100%);
}
.phoenix-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phoenix-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.phoenix-glow.g1 { width: 520px; height: 520px; top: 8%; inset-inline-start: 6%; background: radial-gradient(circle, rgba(255, 155, 74, .45), rgba(140, 108, 255, .25) 55%, transparent 70%); animation: phoenix-breathe 9s ease-in-out infinite; }
.phoenix-glow.g2 { width: 420px; height: 420px; bottom: -10%; inset-inline-end: 4%; background: radial-gradient(circle, rgba(45, 212, 201, .35), transparent 70%); animation: phoenix-breathe 11s ease-in-out infinite reverse; }
@keyframes phoenix-breathe { 50% { transform: scale(1.12); opacity: .75; } }
.phoenix-embers i { position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 10px 2px rgba(255, 155, 74, .8); opacity: 0; animation: phoenix-ember 9s linear infinite; }
.phoenix-embers i:nth-child(3n) { background: #C9BEFF; box-shadow: 0 0 10px 2px rgba(140, 108, 255, .8); width: 3px; height: 3px; }
.phoenix-embers i:nth-child(4n) { background: #8FF5EE; box-shadow: 0 0 8px 2px rgba(45, 212, 201, .7); }
.phoenix-embers i:nth-child(1) { left: 6%; animation-delay: 0s; } .phoenix-embers i:nth-child(2) { left: 12%; animation-delay: 3.2s; animation-duration: 11s; }
.phoenix-embers i:nth-child(3) { left: 19%; animation-delay: 1.4s; } .phoenix-embers i:nth-child(4) { left: 25%; animation-delay: 5.1s; animation-duration: 12s; }
.phoenix-embers i:nth-child(5) { left: 31%; animation-delay: 2.3s; } .phoenix-embers i:nth-child(6) { left: 37%; animation-delay: 6.6s; animation-duration: 10s; }
.phoenix-embers i:nth-child(7) { left: 43%; animation-delay: .8s; } .phoenix-embers i:nth-child(8) { left: 49%; animation-delay: 4.4s; animation-duration: 13s; }
.phoenix-embers i:nth-child(9) { left: 55%; animation-delay: 7.2s; } .phoenix-embers i:nth-child(10) { left: 61%; animation-delay: 2.9s; animation-duration: 11s; }
.phoenix-embers i:nth-child(11) { left: 67%; animation-delay: 5.8s; } .phoenix-embers i:nth-child(12) { left: 73%; animation-delay: 1.1s; animation-duration: 12s; }
.phoenix-embers i:nth-child(13) { left: 79%; animation-delay: 3.7s; } .phoenix-embers i:nth-child(14) { left: 85%; animation-delay: 6.1s; animation-duration: 10s; }
.phoenix-embers i:nth-child(15) { left: 91%; animation-delay: .4s; } .phoenix-embers i:nth-child(16) { left: 96%; animation-delay: 4.9s; animation-duration: 13s; }
.phoenix-embers i:nth-child(17) { left: 15%; animation-delay: 8.1s; } .phoenix-embers i:nth-child(18) { left: 58%; animation-delay: 8.6s; animation-duration: 12s; }
@keyframes phoenix-ember {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  12% { opacity: .95; }
  50% { transform: translate(18px, -45vh) scale(1); }
  85% { opacity: .5; }
  100% { transform: translate(-12px, -95vh) scale(.4); opacity: 0; }
}

.phoenix-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s-8); align-items: center; }
.phoenix-emblem { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; }
.phoenix-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 102, .28) 0%, rgba(140, 108, 255, .22) 45%, transparent 70%); animation: phoenix-pulse 5s ease-in-out infinite; }
@keyframes phoenix-pulse { 50% { transform: scale(1.08); opacity: .8; } }
.phoenix-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 190, 255, .16); }
.phoenix-orbit.o1 { inset: 4%; border-style: dashed; border-color: rgba(255, 194, 102, .28); animation: spin 60s linear infinite; }
.phoenix-orbit.o2 { inset: 16%; border-color: rgba(45, 212, 201, .22); animation: spin 38s linear infinite reverse; }
.phoenix-orbit.o3 { inset: 28%; border-color: rgba(140, 108, 255, .2); }
.phoenix-orbit i { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 18px 4px rgba(255, 155, 74, .7); }
.phoenix-orbit.o2 i { left: auto; right: -4px; width: 8px; height: 8px; background: var(--teal); box-shadow: 0 0 16px 4px rgba(45, 212, 201, .6); }
.phoenix-logo { position: relative; width: 62%; aspect-ratio: 1; display: grid; place-items: center; animation: phoenix-float 7s ease-in-out infinite; filter: drop-shadow(0 25px 50px rgba(255, 155, 74, .28)) drop-shadow(0 0 40px rgba(140, 108, 255, .3)); }
.phoenix-logo img { width: 100%; height: 100%; object-fit: contain; }
.phoenix-logo > .icon { width: 60%; height: 60%; color: var(--ember-2); }
@keyframes phoenix-float { 50% { transform: translateY(-14px); } }
.phoenix-base { position: absolute; bottom: 6%; width: 46%; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 155, 74, .45), transparent 70%); filter: blur(8px); animation: phoenix-pulse 7s ease-in-out infinite; }

.phoenix-eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 14px; border-radius: var(--r-full); background: rgba(255, 155, 74, .1); border: 1px solid rgba(255, 155, 74, .28); color: var(--ember-2); font-size: var(--fs-sm); font-weight: 700; }
.phoenix-copy h2 { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(30px, 4vw, var(--fs-3xl)); line-height: 1.3; color: #fff; }
.phoenix-copy h2 em { background: linear-gradient(100deg, var(--ember-2), var(--ember) 35%, #C9BEFF 70%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phoenix-text { margin-top: var(--s-4); font-size: var(--fs-md); line-height: 2.05; color: #B8C0CF; max-width: 58ch; }
[dir="ltr"] .phoenix-text { line-height: 1.75; }
.phoenix-pillars { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.phoenix-pillars li {
  position: relative; display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform var(--t-slow) var(--ease), border-color var(--t-slow), background var(--t-slow);
  animation: phoenix-rise .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms);
}
.phoenix-pillars li:hover { transform: translateY(-4px); border-color: rgba(255, 155, 74, .35); background: linear-gradient(160deg, rgba(255, 155, 74, .1), rgba(140, 108, 255, .05)); }
@keyframes phoenix-rise { from { opacity: 0; transform: translateY(12px); } }
.phoenix-pillar-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--ember), var(--violet)); box-shadow: 0 8px 22px -8px rgba(255, 155, 74, .7); }
.phoenix-pillars b { display: flex; align-items: baseline; gap: var(--s-2); color: #fff; font-size: var(--fs-base); line-height: 1.5; }
.phoenix-pillars b small { font-size: 11px; font-weight: 800; color: var(--ember-2); opacity: .8; }
.phoenix-pillars p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.85; color: #9EA7B8; }
.phoenix-btn { margin-top: var(--s-6); background: linear-gradient(100deg, var(--ember), #E5679B 55%, var(--violet)); color: #fff; box-shadow: 0 14px 34px -12px rgba(255, 155, 74, .6); }
.phoenix-btn:hover { filter: brightness(1.08); }
.phoenix-quote { position: relative; margin: var(--s-8) auto 0; max-width: 860px; padding: var(--s-6) var(--s-6) 0; text-align: center; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, var(--fs-xl)); line-height: 1.7; color: #E8EBF0; border-top: 1px solid rgba(255, 255, 255, .08); }
.phoenix-quote > span { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #120B1E; border: 1px solid rgba(255, 155, 74, .3); color: var(--ember-2); font-family: Georgia, serif; font-size: 40px; line-height: 1; padding-top: 14px; }
.phoenix-quote em { color: var(--ember-2); }

@media (max-width: 960px) {
  .phoenix { padding-block: var(--s-8); }
  .phoenix-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .phoenix-emblem { width: min(80%, 380px); }
}
@media (max-width: 600px) {
  .phoenix-pillars { grid-template-columns: 1fr; }
  .phoenix-text { font-size: var(--fs-base); }
  .phoenix-quote { padding-inline: 0; }
}

/* Arabic: Pelak is a Persian display face; Vazirmatn covers Arabic fully */
:root[lang="ar"] { --font-display: "Vazirmatn", system-ui, sans-serif; }
