/* src/styles/brand-motion.css */
@media (prefers-reduced-motion: no-preference) {
  .maf-hero .maf-kicker {
    animation: maf-rise-in .55s cubic-bezier(.2,.7,.2,1) .04s both;
  }

  .maf-hero .maf-title {
    animation: maf-rise-in .68s cubic-bezier(.2,.7,.2,1) .1s both;
  }

  .maf-hero .maf-lead {
    animation: maf-rise-in .68s cubic-bezier(.2,.7,.2,1) .18s both;
  }

  .maf-hero .maf-actions {
    animation: maf-rise-in .68s cubic-bezier(.2,.7,.2,1) .26s both;
  }

  .maf-hero__visual {
    animation: maf-visual-in .78s cubic-bezier(.2,.7,.2,1) .14s both;
  }

  .maf-hero__visual:hover .maf-hero-mark {
    transform: scale(1.018);
  }

  .maf-hero-mark {
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maf-btn,
  .maf-lang,
  .maf-card,
  .maf-client,
  .maf-post-card,
  .maf-post-card__media,
  .maf-post-card__link::after,
  .maf-hero-mark,
  .maf-nav a::after {
    transition-duration: 0s !important;
    animation: none !important;
    transform: none !important;
  }
}

@keyframes maf-rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes maf-visual-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* src/styles/site-language.css */
html[lang="en"] .maf-global-header--fa,
html[lang="en"] .maf-global-footer--fa { display:none !important; }
html[lang="en"] .maf-global-header--en,
html[lang="en"] .maf-global-footer--en { display:block !important; }
html[lang="fa"] .maf-global-header--en,
html[lang="fa"] .maf-global-footer--en { display:none !important; }
html[lang="en"] .maf-back-link--fa { display:none !important; }
html[lang="en"] .maf-back-link--en { display:inline-flex !important; }
html[lang="fa"] .maf-back-link--en { display:none !important; }
html[lang="en"] .maf-skip-link [lang="fa"],
html[lang="fa"] .maf-skip-link [lang="en"] { display:none; }


/* src/styles/content-language.css */
html[lang="fa"] .maf-copy-en,html[lang="en"] .maf-copy-fa{display:none!important}.maf-publication [data-value=""],.maf-entry [data-value=""]{display:none!important}[data-company-slug="support"] .maf-gallery figcaption,[data-company-slug="en-support"] .maf-gallery figcaption{display:none}.maf-gallery figcaption:empty,.maf-post__body:empty{display:none}

/* src/styles/ui-content.css */
.maf-about-motto .maf-about-motto__label{color:var(--maf-surface);font-size:14px;line-height:1.7;margin:0 0 12px;opacity:1}.maf-publication .maf-btn--ghost,.maf-entry .maf-btn--ghost{color:var(--maf-blue);border-color:var(--maf-blue);background:transparent}.maf-publication .maf-btn--ghost:hover,.maf-entry .maf-btn--ghost:hover{color:var(--maf-surface);background:var(--maf-blue)}.maf-product .maf-lead{color:var(--maf-muted)}@media(max-width:760px){#clients .maf-grid--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.maf-post__body .maf-btn{color:var(--maf-surface)}
.maf-post__body .maf-btn--outline,.maf-post__body .maf-btn--light{color:var(--maf-blue)}
/* Keep Latin contact details and identifiers in their reading order. */
.maf-contact__value { direction: inherit; text-align: start; }
.maf-contact__value[href^="tel:"],
.maf-contact__value[href^="mailto:"],
.maf-contact__value[href*="linkedin.com"],
.maf-contact__value a[href^="tel:"],
.maf-contact__value a[href^="mailto:"],
.maf-post__body a[href^="tel:"],
.maf-post__body a[href^="mailto:"],
.maf-publication a[href*="doi.org/"] {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}
.maf-contact-form__body input[type="email"],
.maf-contact-form__body input[type="tel"],
.maf-contact-form__body input[type="url"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.maf-contact__value[href],
.maf-post__body a[href^="tel:"]:not(.maf-btn),
.maf-post__body a[href^="mailto:"]:not(.maf-btn),
.maf-publication a[href*="doi.org/"]:not(.maf-btn) { display: inline-block; }
.maf-pub-details dd { unicode-bidi: plaintext; text-align: match-parent; }
/* A metadata card has one heading, followed by its complete details. */
.maf-publication__meta-card {
  display: block;
  padding: clamp(20px, 3vw, 32px);
}
.maf-publication__meta-card > h2 {
  margin: 0;
  font-size: var(--maf-type-m);
  line-height: 1.5;
}
.maf-publication__meta-card .maf-pub-details {
  margin-block: 24px;
  gap: 20px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.maf-publication__meta-card .maf-pub-details > div { min-width: 0; }
.maf-publication__meta-card .maf-actions { flex-wrap: wrap; }
.maf-publication__authors [data-pub-author] { unicode-bidi: isolate; }
@media (max-width: 620px) {
  .maf-publication__meta-card .maf-pub-details { grid-template-columns: 1fr; }
  .maf-publication__title {
    font-size: clamp(24px, 6.7vw, 28px);
    line-height: 1.45;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }
}
html[lang="fa"] .maf-pub-details dd { text-align: right; }

.maf-publication__visual[data-image=""]{display:none}
.maf-publication .maf-gallery:empty{display:none}
.maf-publication .maf-pub-details > div[data-value=""]{display:none}
.maf-publication .maf-gallery img{width:100%;height:auto;display:block}
.maf-publication .maf-gallery > [data-instatic-loop]{display:contents}
