/* ==========================================================================
   Assert Systems — shared stylesheet
   Style system: DESIGN.md ("constellation floating on black velvet").
   Pure black canvas, weight-400 headlines, weight-200 body, one violet pill.
   Layout uses logical properties so /fa/ pages mirror under dir="rtl".
   ========================================================================== */

/* ---------- Fonts (self-hosted, /fonts/) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens (DESIGN.md, verbatim) ---------- */
:root {
  /* Colors */
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  /* Accents (Round 4): the logo's blue and cyan replace DESIGN.md's violet and amber */
  --brand-blue: #116DFD;      /* primary — buttons. White text on it = 4.54:1 */
  --brand-cyan: #08DEF2;      /* secondary — labels, links, prices, highlights. On black = 12.74:1. Never white text on cyan */
  --brand-gradient: linear-gradient(135deg, #116DFD 0%, #08DEF2 100%);
  --brand-ink: #0B0F14;

  /* Typography — Font Families (PPNeueMontreal is licensed; Inter is the substitute) */
  --font-ppneuemontreal: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-fa: "Vazirmatn", "Inter", Tahoma, system-ui, sans-serif; /* Inter covers Latin words inside Farsi text */

  /* Typography — Scale */
  --text-caption: 12px;
  --leading-caption: 1.5;
  --text-nav-label: 14px;
  --leading-nav-label: 1.2;
  --tracking-nav-label: 0.35px;
  --text-body: 18px;
  --leading-body: 1.5;
  --text-heading-2xs: 24px;
  --leading-heading-2xs: 1.25;
  --tracking-heading-2xs: -0.48px;
  --text-heading-xs: 27px;
  --leading-heading-xs: 1;
  --text-subheading: 36px;
  --leading-subheading: 1.2;
  --text-heading-sm: 42px;
  --leading-heading-sm: 1.2;
  --tracking-heading-sm: -1.68px;
  --text-heading: 48px;
  --leading-heading: 1.1;
  --tracking-heading: -1.68px;
  --text-heading-lg: 78px;
  --leading-heading-lg: 1.1;
  --tracking-heading-lg: -3.12px;
  --text-display: 113px;
  --leading-display: 1.1;
  --tracking-display: -4.52px;

  /* Typography — Weights */
  --font-weight-extralight: 200;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-unit: 6px;
  --spacing-6: 6px;
  --spacing-12: 12px;
  --spacing-18: 18px;
  --spacing-24: 24px;
  --spacing-30: 30px;
  --spacing-36: 36px;
  --spacing-60: 60px;
  --spacing-96: 96px;
  --spacing-120: 120px;

  /* Layout */
  --page-max-width: 1280px;

  /* Border Radius */
  --radius-3xl: 24px;
  --radius-full: 9999px;
  --radius-nav: 24px;
  --radius-tags: 9999px;
  --radius-cards: 24px;
  --radius-buttons: 24px;

  /* Surfaces */
  --surface-void-canvas: #000000;
  --surface-brand-blue: #116DFD;

  /* Site additions */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 18px;
  --nav-h: 72px;
  --section-gap: 96px;

  /* Responsive type — desktop values from DESIGN.md, mobile values from the brief */
  --fs-display: clamp(40px, 7.4vw, 113px);
  --fs-heading-lg: clamp(30px, 5.1vw, 78px);
  --fs-heading-sm: clamp(28px, 2.75vw, 42px);
}
@media (min-width: 900px) { :root { --gutter: 36px; --nav-h: 84px; --section-gap: 120px; } }

/* ---------- Themes. Dark is the default; [data-theme] is set in <head> before first paint ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --rule: var(--color-ash-gray);            /* hairlines */
  --link: var(--brand-cyan);
  --focus: var(--brand-cyan);
  --w-body: 200;                            /* body copy weight */
  --btn-hover-bg: var(--brand-cyan);        /* black on cyan: 12.74:1 */
  --btn-hover-text: #000;
  --header-bg: rgba(0, 0, 0, .62);
  --preview-bg: rgba(6, 12, 22, .78);
  --preview-line: rgba(8, 222, 242, .28);
  --portrait-bg: #0b0b0b;
  --cursor-dot: var(--brand-cyan);
  --glow-blue: rgba(17, 109, 253, .36);
  --glow-cyan: rgba(8, 222, 242, .20);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FA;
  --text: #0B0F14;              /* 18.1:1 */
  --text-2: #4A5360;            /* body + secondary, 7.3:1 */
  --text-3: #5F6875;            /* captions, nav inactive, 5.3:1 */
  --line: #DDE1E6;
  --accent-text: #0B5AD6;       /* links + blue text on light, 5.7:1 */
  --accent-cyan-text: #087583;  /* labels, prices, highlights on light, 5.1:1 */
  --btn-bg: #116DFD;            /* the exact brand blue stays the button fill: white text 4.54:1 */
  --btn-bg-hover: #0B5AD6;
  --btn-text: #FFFFFF;

  /* the whole system reads these, so remapping them themes every component */
  --color-void: var(--bg);
  --color-bone-white: var(--text);
  --color-silver-mist: var(--text-2);
  --color-ash-gray: var(--text-3);
  --brand-cyan: var(--accent-cyan-text);   /* never #08DEF2 as text on light (1.55:1) */
  --rule: var(--line);
  --link: var(--accent-text);
  --focus: var(--accent-text);
  --w-body: 300;                           /* thin dark strokes on light read too faint at 200 */
  --btn-hover-bg: var(--btn-bg-hover);
  --btn-hover-text: var(--btn-text);
  --header-bg: rgba(247, 248, 250, .82);
  --preview-bg: rgba(255, 255, 255, .86);
  --preview-line: rgba(11, 90, 214, .22);
  --portrait-bg: #E9ECF0;
  --cursor-dot: #0B5AD6;
  --glow-blue: rgba(17, 109, 253, .09);   /* capped so cyan-text labels over its brightest spot stay >= 4.5:1 */
  --glow-cyan: rgba(10, 127, 140, .08);
}
/* 250ms colour change when the visitor toggles — never on first load (class added by main.js for 300ms) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, fill .25s ease, stroke .25s ease, box-shadow .25s ease !important;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--color-void); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--color-void);
  color: var(--color-bone-white);
  font-family: var(--font-ppneuemontreal);
  font-size: var(--text-body);
  font-weight: var(--w-body);
  line-height: var(--leading-body);
  font-feature-settings: "ss01" on;
  text-rendering: optimizeLegibility;
}
:lang(fa) { font-family: var(--font-fa); font-feature-settings: normal; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
strong { font-weight: var(--font-weight-regular); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--brand-blue); color: #fff; }

.container { width: 100%; max-width: calc(var(--page-max-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 18px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--brand-blue); color: #fff; border-radius: var(--radius-buttons); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 18px; }

/* Everything sits above the fixed particle canvas */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- Type — hierarchy by scale and tracking, never weight ---------- */
.t-display    { font-size: var(--fs-display);    font-weight: 400; line-height: var(--leading-display);    letter-spacing: -0.04em; }
.t-heading-lg { font-size: var(--fs-heading-lg); font-weight: 400; line-height: var(--leading-heading-lg); letter-spacing: -0.04em; }
.t-heading-sm { font-size: var(--fs-heading-sm); font-weight: 400; line-height: var(--leading-heading-sm); letter-spacing: -0.04em; }
.t-heading-xs { font-size: var(--text-heading-xs); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.t-heading-2xs { font-size: var(--text-heading-2xs); font-weight: 400; line-height: var(--leading-heading-2xs); letter-spacing: var(--tracking-heading-2xs); }
.t-body   { font-size: var(--text-body); font-weight: var(--w-body); line-height: var(--leading-body); }
.t-muted  { color: var(--color-silver-mist); }
.t-label  { font-size: var(--text-nav-label); font-weight: 600; line-height: var(--leading-nav-label); letter-spacing: 0.025em; text-transform: uppercase; color: var(--brand-cyan); }
/* Persian letters must never be tracked */
:lang(fa) .t-display, :lang(fa) .t-heading-lg, :lang(fa) .t-heading-sm, :lang(fa) .t-heading-xs, :lang(fa) .t-heading-2xs, :lang(fa) .t-label { letter-spacing: 0; line-height: 1.4; }

/* ---------- Buttons & links ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 14.4px 22px;
  background: var(--brand-blue); color: #fff; /* white on brand blue in both themes: 4.54:1 */
  border: 0; border-radius: var(--radius-buttons);
  font: 600 var(--text-nav-label)/1.2 var(--font-ppneuemontreal);
  letter-spacing: 0.025em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .45s var(--ease-out);
}
.btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); } /* dark: black on cyan 12.74:1 · light: white on #0B5AD6 5.7:1 */
.btn-primary .icon { width: 16px; height: 16px; }

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--color-bone-white);
  font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.ghost-link:hover { color: var(--brand-cyan); }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color .4s var(--ease-out), -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-bar { display: flex; align-items: center; gap: 12px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-inline-end: auto; color: var(--color-bone-white); text-decoration: none; }
/* Logo from the brand kit (img/brand/). Full logo 44px desktop, 36px mobile; mark alone on very narrow phones */
.brand-logo { display: block; width: auto; height: 36px; }
.brand-mark { display: none; width: auto; height: 32px; }
@media (min-width: 900px) { .brand-logo { height: 44px; } }
/* Logo per theme: white wordmark on dark, dark wordmark on light (both from the brand kit) */
.brand-logo.logo-on-light { display: none; }
[data-theme="light"] .brand-logo.logo-on-dark { display: none; }
[data-theme="light"] .brand-logo.logo-on-light { display: block; }
@media (max-width: 359px) { .site-header .brand-logo { display: none !important; } .site-header .brand-mark { display: block; } }
.site-footer .brand-logo { height: 64px; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 6px; }
.nav-link, .lang-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  color: var(--color-ash-gray);
  font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.nav-link:hover, .lang-toggle:hover, .nav-link[aria-current="page"] { color: var(--color-bone-white); }
.lang-toggle { display: none; gap: 6px; }
.lang-toggle .fa-word { font-family: var(--font-fa); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Call pill: ghost while the hero's violet CTA is on screen, violet after —
   so there is only ever one filled violet button per view. */
.call-pill { min-height: 44px; padding: 12px 18px; }
.call-pill .call-num { display: none; }
.cta-in-view .call-pill { background: transparent; color: var(--color-bone-white); box-shadow: inset 0 0 0 1px var(--brand-blue); }
.cta-in-view .call-pill:hover { background: rgba(17, 109, 253, .18); color: var(--color-bone-white); }
@media (min-width: 420px) { .call-pill .call-num { display: inline; } .call-pill .call-word { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: transparent; border: 0;
  color: var(--color-bone-white); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out), background-color .3s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  overflow-y: auto; background: var(--color-void);
  padding: 36px var(--gutter) 60px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn-primary) { display: flex; align-items: center; min-height: 60px; color: var(--color-bone-white); font-size: 36px; font-weight: 400; letter-spacing: -0.03em; text-decoration: none; }
.mobile-menu a:not(.btn-primary):hover { color: var(--brand-cyan); }
.mobile-menu .lang-mobile { font-family: var(--font-fa); letter-spacing: 0; }
.mobile-menu .btn-primary { margin-block-start: 36px; }
.menu-open, .menu-open body { overflow: hidden; }
.menu-open .site-header { background: var(--color-void); }

@media (min-width: 600px) { .lang-toggle { display: inline-flex; } }
@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Particle canvas (desktop only) — fixed behind every section
   ========================================================================== */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
.motion .sky { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--nav-h) + 48px) 72px; overflow: clip; }
/* Mobile: a static glow stands in for the canvas */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 88% 18%, var(--glow-blue), transparent 70%),
    radial-gradient(45% 35% at 100% 62%, var(--glow-cyan), transparent 70%);
}
.motion .hero::before { display: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; } /* minmax(0) stops long headlines widening the column */
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero-copy { position: relative; }
.hero-copy .t-label { margin-block-end: 24px; }
.hero-title { margin-block-end: 36px; }
@media (min-width: 900px) { .hero--home .hero-title { white-space: nowrap; } .hero--home .hero-title .line { max-width: none; } }
.hero-body { max-width: 480px; margin-block-end: 48px; color: var(--color-bone-white); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-visual { display: none; }
@media (min-width: 900px) { .hero-visual { display: block; height: min(640px, 70vh); } }

/* Headline lines rise one after another */
.line { display: block; width: max-content; max-width: 100%; overflow: hidden; padding-block-end: .12em; margin-block-end: -.12em; }
.line > span { display: block; }

/* ==========================================================================
   Motion — content is only hidden when JS is running
   ========================================================================== */
.js .line > span { transform: translateY(110%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.js.is-ready .line > span { transform: none; }
.js .intro { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js.is-ready .intro { opacity: 1; transform: none; }
.js .reveal > * { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in > * { opacity: 1; transform: none; }
@media (max-width: 899px) {
  /* Mobile: simple fades, no travel */
  .js .intro, .js .reveal > * { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .line > span, .js .intro, .js .reveal > * { opacity: 1; transform: none; transition: none; }
  .btn-primary { transition: background-color .2s; }
}

/* ==========================================================================
   Shared section furniture
   ========================================================================== */
.section { padding-block: var(--section-gap); }
.section-intro { max-width: 1040px; margin-block-end: 60px; }
.section-intro .t-label { margin-block-end: 24px; }
.section-intro .t-body { max-width: 520px; margin-block-start: 30px; color: var(--color-silver-mist); }
@media (min-width: 900px) { .section-intro { margin-block-end: 96px; } }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { padding-block: 60px var(--section-gap); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; } }
.stat-num {
  display: block;
  font-size: var(--fs-heading-lg); font-weight: 400; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; max-width: 15em; margin-block-start: 18px; color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 600; line-height: 1.4; letter-spacing: 0.025em; text-transform: uppercase; }

/* ==========================================================================
   Services — typographic list
   ========================================================================== */
.services { padding-block: var(--section-gap); }
.svc-list { position: relative; }
.svc-row {
  position: relative;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline;
  padding-block: 24px;
  color: var(--color-bone-white); text-decoration: none;
}
/* Hairline rules are pseudo-elements so the motion layer can draw them across (--rule: 0 → 1) */
.svc-row::after, .svc-list::before { content: ""; position: absolute; inset-inline: 0; height: 1px; background: var(--rule); transform-origin: left center; }
.svc-row::after { bottom: 0; transform: scaleX(var(--rule, 1)); }
.svc-list::before { top: 0; transform: scaleX(var(--rule-top, 1)); }
[dir="rtl"] .svc-row::after, [dir="rtl"] .svc-list::before { transform-origin: right center; }
.svc-idx { color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; font-variant-numeric: tabular-nums; }
.svc-name { font-size: var(--fs-heading-sm); font-weight: 400; line-height: 1.2; letter-spacing: -0.04em; transition: color .35s var(--ease-out); }
.svc-desc { grid-column: 2; color: var(--color-silver-mist); font-size: var(--text-body); font-weight: var(--w-body); line-height: var(--leading-body); }
.svc-arrow { display: none; }
.svc-row:hover .svc-name, .svc-row:focus-visible .svc-name { color: var(--brand-cyan); }
.svc-row:focus-visible { outline-offset: 6px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 420px) 24px; column-gap: 24px; align-items: center; padding-block: 30px; }
  .svc-desc { grid-column: auto; }
  .svc-arrow { display: block; width: 22px; height: 22px; color: var(--color-ash-gray); transition: color .35s var(--ease-out), transform .45s var(--ease-out); }
  .svc-row:hover .svc-arrow, .svc-row:focus-visible .svc-arrow { color: var(--brand-cyan); transform: translateX(4px); }
  [dir="rtl"] .svc-row:hover .svc-arrow, [dir="rtl"] .svc-row:focus-visible .svc-arrow { transform: scaleX(-1) translateX(4px); }
}
/* With a mouse, the description waits for hover. Touch screens always show it. */
@media (min-width: 900px) and (hover: hover) {
  .svc-desc { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  .svc-row:hover .svc-desc, .svc-row:focus-visible .svc-desc { opacity: 1; transform: none; }
}
.svc-more { margin-block-start: 36px; }
.svc-more .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Inner-page hero
   ========================================================================== */
.hero--page { min-height: 0; padding-block: calc(var(--nav-h) + 60px) 36px; }
@media (min-width: 900px) {
  .hero--page { min-height: min(820px, 92vh); padding-block: calc(var(--nav-h) + 48px) 48px; }
  .hero--page .hero-visual { height: min(560px, 62vh); }
}
.hero--page .hero-title { margin-block-end: 30px; }
.hero--page .hero-body { color: var(--color-silver-mist); }
.hero-price { margin-block-start: 36px; }
.crumbs { margin-block-end: 18px; color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ash-gray); text-decoration: none; }
.crumbs a:hover { color: var(--color-bone-white); }
.crumbs .sep { margin-inline: 12px; }

/* Small outlined amber triangle used as a bullet */
.tri { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--brand-cyan); stroke-width: 2; stroke-linejoin: round; }

/* ==========================================================================
   Deep-dive zigzag blocks
   ========================================================================== */
.dd { padding-block: var(--section-gap); }
.dd-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .dd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .dd-flip .dd-copy { order: 2; }
}
.dd-copy .t-label { margin-block-end: 24px; }
.dd-copy h2 { max-width: 15em; margin-block-end: 30px; }
.dd-copy > .t-body { max-width: 520px; color: var(--color-silver-mist); }
.dd-copy > .t-body + .t-body { margin-block-start: 24px; }
.dd-points { margin-block: 36px 24px; }
.dd-points li { display: flex; align-items: center; gap: 12px; min-height: 36px; color: var(--color-bone-white); font-size: var(--text-nav-label); font-weight: 600; line-height: 1.3; letter-spacing: 0.025em; text-transform: uppercase; }
.dd-price { margin-block-start: 24px; }
.dd-copy .ghost-link { margin-block-start: 6px; }
.dd-visual { display: none; }
@media (min-width: 900px) { .dd-visual { display: block; aspect-ratio: 1 / 0.86; max-height: 560px; } }

/* ==========================================================================
   Free check
   ========================================================================== */
.check-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .check-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; } }
.check-grid .t-label { margin-block-end: 24px; }
.check-grid .t-heading-lg + .t-body { max-width: 480px; margin-block-start: 30px; color: var(--color-silver-mist); }
.check-rows li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 18px; padding-block: 24px; }
.check-rows .tri { margin-block-start: 8px; }
.check-rows p { grid-column: 2; margin-block-start: 6px; color: var(--color-silver-mist); }
@media (min-width: 900px) { .check-rows { padding-block-start: 12px; } .check-rows li { padding-block: 30px; } }

/* ==========================================================================
   Why
   ========================================================================== */
.why-grid { display: grid; gap: 60px; }
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 96px; }
  .why-grid > :nth-child(even) { margin-block-start: 120px; }
}
.why-item { max-width: 480px; }
.why-item p { margin-block-start: 18px; color: var(--color-silver-mist); }

/* ==========================================================================
   Pricing plans
   ========================================================================== */
.plans { display: grid; gap: 84px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; } }
.plan { display: flex; flex-direction: column; }
.plan-desc { margin-block-start: 18px; max-width: 24em; color: var(--color-silver-mist); }
.plan-list { margin-block-start: 24px; }
.plan-list li { display: flex; gap: 12px; align-items: baseline; padding-block: 6px; color: var(--color-silver-mist); }
.plan-price { margin-block-start: 36px; }
.plan-from { display: block; margin-block-end: 6px; color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.price-big { display: block; font-size: var(--fs-heading-lg); font-weight: 400; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .price-big { text-align: right; }
.plan-monthly { margin-block-start: 12px; color: var(--color-silver-mist); }
.plan-cta { margin-block-start: 36px; }
@media (min-width: 960px) { .plan-cta { margin-block-start: auto; padding-block-start: 36px; } }
.fine-print { max-width: 820px; margin-block-start: 84px; color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 400; line-height: 1.6; }
.fine-print a { color: var(--color-bone-white); }

/* ==========================================================================
   Closer — the phone number is the hero
   ========================================================================== */
.closer { padding-block: var(--section-gap) calc(var(--section-gap) + 36px); text-align: center; }
.closer .t-label { margin-block-end: 36px; }
.closer h2 { margin-block-end: 36px; }
.phone-hero {
  display: inline-block; max-width: 100%;
  font-size: var(--fs-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.04em;
  color: var(--color-bone-white); text-decoration: none; white-space: nowrap; direction: ltr; unicode-bidi: isolate;
  transition: color .3s var(--ease-out);
}
.phone-hero:hover { color: var(--brand-cyan); }
.closer-meta { margin-block-start: 30px; color: var(--color-silver-mist); }
.closer .ghost-link { margin-block-start: 18px; text-transform: none; font-size: var(--text-body); font-weight: 400; letter-spacing: 0; }
.closer-alt { margin-block-start: 30px; color: var(--color-ash-gray); font-size: 20px; font-weight: 400; }

/* ==========================================================================
   Split sections (inner pages): heading column + content column
   ========================================================================== */
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; } }
.split > header .t-label { margin-block-end: 24px; }
.split > header .t-body { margin-block-start: 24px; max-width: 420px; color: var(--color-silver-mist); }
.prose p { max-width: 640px; color: var(--color-silver-mist); }
.prose p + p { margin-block-start: 24px; }
.prose p:first-child { color: var(--color-bone-white); }
.item-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 18px; padding-block: 16px; }
.item-list .tri { margin-block-start: 8px; }

/* Services index blocks */
.svc-block { padding-block: 60px; border-block-start: 1px solid var(--rule); scroll-margin-top: var(--nav-h); }
.svc-block:last-child { border-block-end: 1px solid var(--rule); }
.svc-block .svc-idx { display: block; margin-block-end: 18px; }
.svc-block h2 { margin-block-end: 18px; }
.svc-block .item-list { margin-block: 12px 24px; }
.svc-block .item-list li { color: var(--color-silver-mist); }
@media (min-width: 900px) { .svc-block { padding-block: 84px; } }

/* Price rows (pricing page): the price stays visible */
.svc-row--price .svc-desc { opacity: 1 !important; transform: none !important; color: var(--brand-cyan); font-weight: 400; }
@media (min-width: 900px) { .svc-row--price .svc-desc { text-align: end; } }

/* FAQ */
.faq { border-block-start: 1px solid var(--rule); }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding-block: 24px; cursor: pointer; list-style: none;
  font-size: var(--text-heading-2xs); font-weight: 400; line-height: var(--leading-heading-2xs); letter-spacing: var(--tracking-heading-2xs);
  transition: color .3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-cyan); }
.faq .plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details p { max-width: 680px; padding-block-end: 30px; color: var(--color-silver-mist); }

/* Credentials, rates */
.cred-list, .rate-list { border-block-start: 1px solid var(--rule); }
.cred-list li, .rate-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-block: 24px; border-block-end: 1px solid var(--rule); }
.rate-list .rate { font-size: var(--fs-heading-sm); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; }
.rate-list .t-body, .cred-list .t-body { color: var(--color-silver-mist); }

/* Steps */
.steps { display: grid; gap: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; } }
.steps .svc-idx { display: block; margin-block-end: 24px; }
.steps p { margin-block-start: 18px; color: var(--color-silver-mist); }

/* Portrait (About) */
.portrait { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-cards); background: var(--portrait-bg); }
.portrait-cap { margin-block-start: 18px; }
.portrait-cap .t-label { color: var(--brand-cyan); }
.portrait-cap .t-heading-xs { margin-block-start: 12px; }

/* City list */
.cities { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.cities li { font-size: var(--text-heading-2xs); font-weight: 400; letter-spacing: var(--tracking-heading-2xs); }

/* 404 */
.lost-links { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-block-start: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: 96px 48px; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 60px; } }
.footer-brand p { max-width: 300px; margin-block-start: 18px; color: var(--color-silver-mist); font-size: 16px; }
.footer-head { margin-block-end: 12px; color: var(--color-ash-gray); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-bone-white); font-size: 16px; font-weight: var(--w-body); text-decoration: none; transition: color .2s var(--ease-out); }
.footer-links a:hover { color: var(--brand-cyan); }
.footer-area p { color: var(--color-silver-mist); font-size: 16px; }
.footer-area p + p { margin-block-start: 12px; }
.footer-area a { color: var(--color-bone-white); text-decoration: none; }
.footer-area a:hover { color: var(--brand-cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block-start: 72px; color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 400; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ash-gray); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-bone-white); }

/* ==========================================================================
   Farsi (RTL) adjustments
   ========================================================================== */
:lang(fa) .btn-primary, :lang(fa) .ghost-link, :lang(fa) .nav-link, :lang(fa) .stat-label, :lang(fa) .svc-idx,
:lang(fa) .dd-points li, :lang(fa) .plan-from, :lang(fa) .crumbs, :lang(fa) .svc-name, :lang(fa) .price-big,
:lang(fa) .stat-num, :lang(fa) .rate, :lang(fa) .faq summary, :lang(fa) .cities li, :lang(fa) .footer-head { letter-spacing: 0; }
:lang(fa) .btn-primary { font-family: var(--font-fa); font-size: 15px; }
:lang(fa) .nav-link, :lang(fa) .ghost-link, :lang(fa) .stat-label, :lang(fa) .dd-points li { font-size: 15px; }
:lang(fa) .svc-name { line-height: 1.45; }
:lang(fa) .t-body, :lang(fa).t-body { line-height: 1.9; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:lang(fa) .t-label, :lang(fa) .dd-points li, :lang(fa) .ghost-link, :lang(fa) .nav-link, :lang(fa) .btn-primary,
:lang(fa) .stat-label, :lang(fa) .plan-from, :lang(fa) .crumbs { text-transform: none; }
:lang(fa) .stat-num, :lang(fa) .price-big { font-variant-numeric: normal; }

/* ==========================================================================
   Motion mode — desktop, fine pointer, motion allowed (class set in <head>).
   js/motion.js animates these; if it fails to load, main.js drops the class.
   ========================================================================== */
.motion .line > span, .motion .intro, .motion .reveal > * { opacity: 1; transform: none; transition: none; }
.motion .hero-title, .motion .hero .intro { visibility: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Page transitions: fade to black on the way out, back in on arrival (≈340ms total) */
html::after { content: ""; position: fixed; inset: 0; z-index: 9999; background: var(--color-void) url("/img/brand/assert-mark.svg") no-repeat center / auto 56px; opacity: 0; pointer-events: none; transition: opacity .16s ease-in; }
html.pt-out::after { opacity: 1; }
html.pt-in::after { animation: pt-in .18s ease-out both; }
@keyframes pt-in { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html::after { display: none; } }

/* ==========================================================================
   Service areas (homepage, contact, area pages) and the four-column footer
   ========================================================================== */
.area-grid { display: grid; gap: 60px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; } }
.area-col h3 { margin-block-end: 24px; }
.area-col h3 a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--color-bone-white); text-decoration: none; transition: color .3s var(--ease-out); }
.area-col h3 a:hover { color: var(--brand-cyan); }
.area-col h3 .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.area-col .cities { gap: 6px 24px; }
.area-col .cities li { font-size: 22px; color: var(--color-silver-mist); }
.area-note { max-width: 640px; margin-block-start: 60px; color: var(--color-silver-mist); }
.footer-note { max-width: 18em; margin-block-start: 12px; color: var(--color-silver-mist); font-size: 15px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* ==========================================================================
   Tech marquee (under the stats). Static wrapped row by default; motion.js
   duplicates it and loops it on desktop.
   ========================================================================== */
.marquee { margin-block-start: 84px; overflow: hidden; }
.marquee-track { display: flex; flex-wrap: wrap; gap: 6px 0; }
.marquee-track li { display: inline-flex; align-items: center; color: var(--color-ash-gray); font-size: var(--text-heading-2xs); font-weight: 400; letter-spacing: var(--tracking-heading-2xs); white-space: nowrap; }
.marquee-track li::after { content: ""; width: 6px; height: 6px; margin-inline: 24px; border-radius: 50%; background: var(--brand-cyan); }
.marquee-track li:last-child::after { display: none; }
.motion .marquee-track { flex-wrap: nowrap; width: max-content; }
.motion .marquee-track li { font-size: var(--fs-heading-sm); }
.motion .marquee-track li:last-child::after { display: block; }
:lang(fa) .marquee-track li { letter-spacing: 0; }

/* ==========================================================================
   Motion-mode components (desktop only)
   ========================================================================== */
/* Horizontal deep-dives */
.hz-progress { display: none; }
.motion .hz { position: relative; height: 100vh; overflow: hidden; }
.motion .hz-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.motion .hz .dd { display: flex; align-items: center; flex: 0 0 100vw; width: 100vw; height: 100vh; padding-block: calc(var(--nav-h) + 12px) 84px; }
.motion .hz .dd-visual { max-height: 60vh; }
.motion .hz-progress {
  position: absolute; bottom: 36px; inset-inline: max(var(--gutter), calc((100vw - var(--page-max-width)) / 2));
  display: flex; align-items: center; gap: 18px;
}
.hz-count { color: var(--color-ash-gray); font-size: var(--text-nav-label); font-weight: 600; letter-spacing: 0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hz-bar { position: relative; flex: 1; height: 1px; background: rgba(154, 154, 154, .35); }
.hz-bar > span { position: absolute; inset: 0; background: var(--brand-cyan); transform: scaleX(.25); transform-origin: left center; }
[dir="rtl"] .hz-bar > span { transform-origin: right center; }

/* Label line that draws in before each section label */
.lbl-line { display: inline-block; width: 28px; height: 1px; margin-inline-end: 12px; vertical-align: middle; background: currentColor; transform-origin: left center; }
[dir="rtl"] .lbl-line { transform-origin: right center; }

/* Service rows: the preview panel replaces the in-row one-liner (kept for screen readers) */
@media (min-width: 900px) {
  .motion .svc-row:not(.svc-row--price) { grid-template-columns: 72px minmax(0, 1fr) 24px; }
  .motion .svc-row:not(.svc-row--price) .svc-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 60; max-width: 340px; padding: 22px 24px;
  border-radius: var(--radius-cards); background: var(--preview-bg); box-shadow: inset 0 0 0 1px var(--preview-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  pointer-events: none; opacity: 0; visibility: hidden; transform-origin: top left;
}
.svc-preview-desc { color: var(--color-bone-white); font-size: var(--text-body); font-weight: var(--w-body); line-height: 1.45; }
.svc-preview-price { margin-block-start: 14px; }

/* Custom cursor */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--cursor-dot); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--brand-blue); }

/* Nav hides on scroll down; a floating call button keeps the number on screen */
.site-header { transition: transform .45s var(--ease-out), background-color .4s var(--ease-out), -webkit-backdrop-filter .4s, backdrop-filter .4s; }
.nav-hidden .site-header { transform: translateY(-100%); }
.float-call-wrap {
  position: fixed; bottom: 24px; inset-inline-end: max(var(--gutter), calc((100vw - var(--page-max-width)) / 2)); z-index: 45;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .35s;
}
.nav-hidden .float-call-wrap { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.float-call .call-word { display: none; }
.site-header.cta-in-view ~ .float-call-wrap .float-call { background: var(--color-void); color: var(--color-bone-white); box-shadow: inset 0 0 0 1px var(--brand-blue); }

/* Phone number: digits lift in sequence on hover */
.phone-hero .ch { display: inline-block; transition: transform .4s var(--ease-out); transition-delay: calc(var(--d, 0) * 28ms); }
.phone-hero:hover .ch { transform: translateY(-0.12em); }
@media (prefers-reduced-motion: reduce) { .phone-hero .ch { transition: none; } .phone-hero:hover .ch { transform: none; } }
/* Room for the particle ring that orbits the phone number */
.motion .closer .t-label { margin-block-end: 84px; }
.motion .closer-meta { margin-block-start: 72px; }
/* Keep the last footer links clear of the floating call button */
.motion .site-footer { padding-block-end: 120px; }
.marquee { padding-inline: var(--gutter); }
.motion .marquee { padding-inline: 0; }

/* ==========================================================================
   Theme toggle (sun/moon). Bar version from 600px; the mobile menu has its own.
   ========================================================================== */
.theme-toggle {
  position: relative; display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--color-ash-gray); cursor: pointer; transition: color .2s var(--ease-out);
}
.theme-toggle:hover { color: var(--color-bone-white); }
@media (min-width: 600px) { .nav-bar .theme-toggle { display: inline-flex; } }
.theme-toggle .icon { position: absolute; width: 20px; height: 20px; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="light"] .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="light"] .theme-toggle .ti-sun { opacity: 1; transform: none; }
.mobile-menu .theme-toggle {
  display: flex; justify-content: flex-start; gap: 16px; width: auto; height: auto; min-height: 60px; border-radius: 0;
  color: var(--color-bone-white); font: 400 36px/1.2 var(--font-ppneuemontreal); letter-spacing: -0.03em;
}
.mobile-menu .theme-toggle .icon-slot { position: relative; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.mobile-menu .theme-toggle .icon { width: 26px; height: 26px; }
:lang(fa) .mobile-menu .theme-toggle { font-family: var(--font-fa); letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .theme-toggle .icon { transition: opacity .3s; transform: none !important; } }

/* ==========================================================================
   Tap targets: every link at least 44px tall on touch screens (padding, not font size)
   ========================================================================== */
.footer-area a { display: inline-flex; align-items: center; min-height: 44px; }
.fine-print a { display: inline-flex; align-items: center; min-height: 44px; }
