*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/Peyda-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}


body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 143, 0.035), transparent 22%),
    linear-gradient(180deg, var(--color-surface-soft) 0%, var(--color-surface) 100%);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

html[lang="fa"] body,
body:lang(fa) {
  font-family: var(--font-fa-body);
  line-height: var(--lh-body-fa);
}

html[lang="en"] body,
body:lang(en),
body {
  font-family: var(--font-en-body);
}

body[dir="rtl"] {
  letter-spacing: 0;
}

main {
  position: relative;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  border: 0;
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 70%, white 30%);
  outline-offset: 3px;
}

::selection {
  background: rgba(47, 111, 143, 0.16);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-text);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] h5,
html[lang="fa"] h6 {
  font-family: var(--font-fa-heading);
  letter-spacing: 0;
  line-height: 1.16;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: var(--font-en-heading);
  font-weight: 600;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 68ch;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

small {
  font-size: var(--fs-small);
}

strong {
  color: var(--color-text);
}

.section-kicker,
.eyebrow {
  font-size: var(--fs-small);
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 720ms var(--ease-standard),
    transform 720ms var(--ease-standard);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Responsive base stability fixes - append only */

html,
body {
  width: 100%;
  max-width: 100%;
}

html {
  overflow-x: hidden;
}

body,
main {
  min-width: 0;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

img,
picture,
svg,
video,
canvas,
iframe {
  max-inline-size: 100%;
}

iframe {
  min-width: 0;
}

button,
input,
textarea,
select {
  max-width: 100%;
  min-width: 0;
}

textarea {
  resize: vertical;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
[type="button"],
[type="submit"],
[type="reset"],
a {
  touch-action: manipulation;
}

p,
li,
small,
strong,
span,
a,
button,
input,
textarea,
select {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

@supports not (text-wrap: balance) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: normal;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 80px;
  }

  body {
    min-height: 100%;
  }
}
