@font-face {
  font-family: Vazirmatn;
  src: url('./fonts/vazirmatn-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
html[lang="fa"] {
  --sans: Vazirmatn, Tahoma, sans-serif;
  --serif: Vazirmatn, Tahoma, sans-serif;
  --mono: Vazirmatn, Tahoma, sans-serif;
  direction: rtl;
}
html[lang="fa"] body { font: 400 15px/1.9 var(--sans); text-align: start; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3,
html[lang="fa"] h4, html[lang="fa"] .brand,
html[lang="fa"] .hero-manifesto, html[lang="fa"] .metric-card strong,
html[lang="fa"] .family-gate strong {
  font-family: var(--sans);
  letter-spacing: 0;
}
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { line-height: 1.45; }
html[lang="fa"] .brand { direction: ltr; font-family: 'Instrument Serif', Georgia, serif; }
html[lang="fa"] .locale-switch { direction: ltr; font: 500 11px/1.5 Geist, Arial, sans-serif; }
html[lang="fa"] .desktop-nav a,
html[lang="fa"] .eyebrow, html[lang="fa"] .mono,
html[lang="fa"] .project-meta, html[lang="fa"] .featured-top,
html[lang="fa"] .project-links a, html[lang="fa"] .atlas-card-top,
html[lang="fa"] .atlas-filters button, html[lang="fa"] .atlas-links,
html[lang="fa"] .capability-grid ul, html[lang="fa"] .research-method dt,
html[lang="fa"] .instrument>span, html[lang="fa"] .instrument>small {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
html[lang="fa"] .desktop-nav { gap: clamp(12px, 1.45vw, 22px); }
html[lang="fa"] .desktop-nav a { font-size: 12px; font-weight: 500; white-space: nowrap; }
html[lang="fa"] .header-status { font-size: 11px; white-space: nowrap; }
html[lang="fa"] .header-inner { gap: 18px; }
html[lang="fa"] bdi[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
html[lang="fa"] .hero-core { max-width: 950px; }
html[lang="fa"] .hero-core h1 { font-size: clamp(45px, 5vw, 72px); line-height: 1.35; }
html[lang="fa"] .hero-manifesto { font-size: clamp(21px, 2vw, 28px); line-height: 1.7; }
html[lang="fa"] .hero-description { max-width: 760px; font-size: 13px; line-height: 2; }
html[lang="fa"] .hero-domains { font-size: 11px; line-height: 1.8; }
html[lang="fa"] .hero-actions .button, html[lang="fa"] .hero-actions .text-link { font-size: 13px; }
html[lang="fa"] .hero-pole { max-width: 220px; }
html[lang="fa"] .hero-pole p { line-height: 1.8; }
html[lang="fa"] .metrics-heading>p { line-height: 1.9; }
html[lang="fa"] .metrics-note { font-size: 11px; line-height: 1.9; }
html[lang="fa"] .metric-card>span:not(.metric-index) { font-size: 11px; line-height: 1.6; }
html[lang="fa"] .section-heading h2 { font-size: clamp(30px, 2.9vw, 41px); }
html[lang="fa"] .section-heading>p { line-height: 1.95; }
html[lang="fa"] .filter, html[lang="fa"] .atlas-filters button { font-size: 11px; }
html[lang="fa"] .project-meta { font-size: 11px; line-height: 1.8; }
html[lang="fa"] .project-meta .project-category { text-transform: none; }
html[lang="fa"] .project:not(.featured)::before { left: auto; right: -1px; background: linear-gradient(270deg, var(--domain-color), transparent); }
html[lang="fa"] .project:not(.featured) h3 { font: 550 clamp(22px, 2vw, 27px)/1.35 Geist, Arial, sans-serif; text-align: right; }
html[lang="fa"] .project-description { font-size: 14px; line-height: 2; }
html[lang="fa"] .technologies { line-height: 1.8; }
html[lang="fa"] .project-proof { font-size: 10px; line-height: 1.9; }
html[lang="fa"] .project-links { flex-wrap: wrap; }
html[lang="fa"] .project-detail p, html[lang="fa"] .project-detail li { line-height: 1.95; }
html[lang="fa"] .featured h3 { font-size: 30px; line-height: 1.5; }
html[lang="fa"] .featured .project-description { font-size: 14px; }
html[lang="fa"] .case-details summary span { letter-spacing: 0; }
html[lang="fa"] .case-grid p, html[lang="fa"] .case-boundary p { line-height: 2; }
html[lang="fa"] .architecture-figure svg text { font-family: Vazirmatn, Tahoma, sans-serif; }
html[lang="fa"] .architecture-figure figcaption { line-height: 1.9; }
html[lang="fa"] .fa-topology {
  display: grid;
  grid-template-columns: minmax(0,1fr) 14px minmax(0,1.35fr) 14px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  margin: 22px 0 16px;
}
html[lang="fa"] .fa-topology-stage {
  min-width: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(224, 182, 124, .27);
  background: rgba(224, 182, 124, .035);
}
html[lang="fa"] .fa-topology-stage strong { font: 550 13px/1.5 var(--sans); color: #f0e8d9; }
html[lang="fa"] .fa-topology-stage span, html[lang="fa"] .fa-topology-stage small { font: 11px/1.8 var(--sans); color: #bdafa0; }
html[lang="fa"] .fa-topology-stage small { color: #dfbd8a; }
html[lang="fa"] .fa-topology-pair { border-color: rgba(135, 200, 199, .33); background: rgba(135, 200, 199, .045); }
html[lang="fa"] .fa-topology>i { font: normal 19px var(--sans); color: #d2a773; text-align: center; }
html[lang="fa"] .research-entry h3 { line-height: 1.55; }
html[lang="fa"] .research-method { grid-template-columns: 63px minmax(0,1fr); line-height: 1.9; }
html[lang="fa"] .research-method dt { font-size: 11px; }
html[lang="fa"] .research-method dd { font-size: 12px; }
html[lang="fa"] .instrument>span { font-size: 10px; }
html[lang="fa"] .instrument>small { font-size: 10px; }
html[lang="fa"] .capability-grid article { border-right: 0; border-left: 1px solid var(--line); padding-inline: 23px; }
html[lang="fa"] .capability-grid article:first-child { padding-right: 0; }
html[lang="fa"] .capability-grid article:last-child { border-left: 0; padding-left: 0; }
html[lang="fa"] .capability-grid h3 { font-size: 17px; min-height: 65px; }
html[lang="fa"] .capability-grid p { line-height: 2; }
html[lang="fa"] .capability-grid ul { font-size: 11px; line-height: 2.15; }
html[lang="fa"] .activity-row time { direction: ltr; text-align: left; }
html[lang="fa"] .activity-intro h2 { line-height: 1.55; }
html[lang="fa"] .family-gate strong { font-size: 20px; line-height: 1.55; }
html[lang="fa"] .family-gate i { right: auto; left: 21px; }
html[lang="fa"] .atlas-subhead h3 { line-height: 1.5; }
html[lang="fa"] .atlas-card { min-height: 265px; }
html[lang="fa"] .atlas-card h4 { font: 550 18px/1.35 Geist, Arial, sans-serif; direction: rtl; text-align: right; }
html[lang="fa"] .atlas-card>p { font-size: 12px; line-height: 2; min-height: 80px; }
html[lang="fa"] .atlas-card-top { font-size: 10px; line-height: 1.8; }
html[lang="fa"] .atlas-langs span, html[lang="fa"] .atlas-metrics,
html[lang="fa"] .atlas-links a, html[lang="fa"] .atlas-private-source { font-family: var(--sans); font-size: 10px; }
html[lang="fa"] .about-section .large-copy { line-height: 1.85; }
html[lang="fa"] .about-copy p { line-height: 2.05; }
html[lang="fa"] .contact-section h2 { line-height: 1.65; }
html[lang="fa"] .site-footer { line-height: 1.9; }
html[lang="fa"] .skip-link { left: auto; right: 12px; }
@media (max-width: 1330px) { html[lang="fa"] .header-status { display: none; } }
@media (max-width: 1050px) {
  html[lang="fa"] .capability-grid article { padding: 24px 22px 0; }
  html[lang="fa"] .capability-grid article:nth-child(odd) { padding-right: 0; border-left: 1px solid var(--line); }
  html[lang="fa"] .capability-grid article:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  html[lang="fa"] .research-method { grid-template-columns: 1fr; }
  html[lang="fa"] .hero-core h1 { font-size: clamp(44px, 7vw, 61px); }
  html[lang="fa"] .atlas-card>p { min-height: 0; }
}
@media (max-width: 600px) {
  html[lang="fa"] .header-inner { gap: 12px; }
  html[lang="fa"] .hero-core h1 { font-size: clamp(39px, 9vw, 52px); line-height: 1.35; }
  html[lang="fa"] .hero-manifesto { font-size: 19px; }
  html[lang="fa"] .hero-description { font-size: 12px; line-height: 1.95; }
  html[lang="fa"] .hero-domains { font-size: 9px; }
  html[lang="fa"] .metrics-heading>p { text-align: right; }
  html[lang="fa"] .metric-card>span:not(.metric-index) { font-size: 10px; }
  html[lang="fa"] .research-entry h3 { font-size: 22px; }
  html[lang="fa"] .fa-topology { grid-template-columns: 1fr; gap: 6px; margin-block: 18px; }
  html[lang="fa"] .fa-topology-stage { min-height: 0; padding: 11px 14px; gap: 2px; }
  html[lang="fa"] .fa-topology>i { font-size: 17px; line-height: 1; transform: rotate(-90deg); }
  html[lang="fa"] .capability-grid article { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0 !important; }
  html[lang="fa"] .capability-grid h3 { min-height: 0; }
  html[lang="fa"] .atlas-card { min-height: 0; }
}
@media (orientation: landscape) and (max-height: 620px) {
  html[lang="fa"] .hero-core { text-align: right; align-items: flex-start; }
  html[lang="fa"] .hero-core h1 { font-size: clamp(35px, 5vw, 47px); }
  html[lang="fa"] .hero-manifesto, html[lang="fa"] .hero-description { text-align: right; }
  html[lang="fa"] .hero-description { font-size: 9px; line-height: 1.65; }
  html[lang="fa"] .hero-domains, html[lang="fa"] .hero-actions { justify-content: flex-start; }
}
@media print { html[lang="fa"] .locale-switch { display: none; } }
