@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: dark;
  --radius: 1rem;
  --background: oklch(0.16 0.015 215);
  --foreground: oklch(0.96 0.01 210);
  --card: oklch(0.2 0.018 215);
  --primary: oklch(0.69 0.12 202);
  --primary-foreground: oklch(0.15 0.02 215);
  --gold: oklch(0.86 0.1 195);
  --secondary: oklch(0.25 0.02 215);
  --muted: oklch(0.24 0.015 215);
  --muted-foreground: oklch(0.7 0.02 205);
  --border: oklch(1 0 0 / 9%);
  --input: oklch(1 0 0 / 12%);
  --gradient-brand: linear-gradient(120deg, var(--primary), var(--gold));
  --gradient-glow:
    radial-gradient(60% 50% at 70% 20%, oklch(0.69 0.12 202 / 22%), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, oklch(0.86 0.1 195 / 12%), transparent 70%);
  --shadow-glow: 0 20px 60px -20px oklch(0.69 0.12 202 / 45%);
}

html.light {
  color-scheme: light;
  --background: oklch(0.985 0.003 210);
  --foreground: oklch(0.24 0.025 215);
  --card: oklch(1 0 0);
  --primary: oklch(0.48 0.08 202);
  --primary-foreground: oklch(0.99 0 0);
  --gold: oklch(0.42 0.07 195);
  --secondary: oklch(0.94 0.012 205);
  --muted: oklch(0.95 0.007 210);
  --muted-foreground: oklch(0.45 0.022 215);
  --border: oklch(0.85 0.015 210);
  --input: oklch(0.8 0.015 210);
  --gradient-glow: linear-gradient(180deg, oklch(0.95 0.02 195), var(--background));
  --shadow-glow: 0 20px 60px -20px oklch(0.48 0.08 202 / 18%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: Vazirmatn, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

.wrap-md {
  width: min(42rem, calc(100% - 3rem));
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted-foreground);
}

.gold {
  color: var(--gold);
}

.primary {
  color: var(--primary);
}

.glass {
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

.bg-glow {
  background-image: var(--gradient-glow);
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 900;
}

.logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--primary);
  padding: 0.375rem;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.nav-desktop a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.nav-desktop a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-brand {
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-brand:hover {
  opacity: 0.92;
}

.btn-glass {
  background: color-mix(in oklab, var(--card) 70%, transparent);
  color: var(--foreground);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.btn-solid {
  background: var(--background);
  color: var(--foreground);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover,
.btn-glass:hover {
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-start {
  display: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn:hover {
  background: color-mix(in oklab, var(--foreground) 8%, transparent);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

html.light .icon-sun,
html:not(.light) .icon-moon,
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0.5rem auto 0;
  padding: 1.25rem;
  border-radius: 1rem;
}

.mobile-nav[hidden] {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 1.5rem 5rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  width: min(72rem, 100%);
  margin-inline: auto;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: var(--gold);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.35;
}

.lead {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-visual {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(72rem, 100%);
  margin: 5rem auto 0;
}

.stat {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.section {
  padding: 5rem 1.5rem;
}

.section h2,
.block-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 900;
}

.center {
  text-align: center;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: min(72rem, 100%);
  margin-inline: auto;
}

.section-head a {
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 1.25rem;
  width: min(72rem, 100%);
  margin: 3rem auto 0;
}

.service-card,
.step,
.value-card {
  border-radius: 1rem;
  padding: 1.75rem;
}

.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-glow);
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card .emoji,
.service-row .emoji {
  font-size: 2.25rem;
  line-height: 1;
}

a.service-card {
  display: block;
}

.service-card h3,
.step h3,
.value-card h2,
.value-card h3,
.service-row h2 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
}

.service-card p,
.step p,
.value-card p,
.service-row p {
  margin: 0.75rem 0 0;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

.service-row {
  display: flex;
  gap: 1.25rem;
  border-radius: 1rem;
  padding: 1.75rem;
}

.service-row h2 {
  margin-top: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  font-weight: 900;
}

.step h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.step p {
  font-size: 0.875rem;
}

.work-teaser {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--foreground) 28%, transparent);
}

.work-teaser img,
.related-card img,
.gallery-stage img {
  width: 100%;
  aspect-ratio: 1;
}

.work-teaser img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
  background: var(--card);
}

.work-teaser figcaption,
.related-card div,
.project-card .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-teaser figcaption a {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
}

.work-teaser figcaption a:hover,
.related-card:hover h3 {
  color: var(--primary);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.project-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card h2 {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
}

.project-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border-radius: 999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.link-more {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  align-self: flex-start;
}

.page-hero {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
}

.page-hero h1 {
  max-width: 48rem;
  margin: 0.75rem auto 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
}

.lede {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  line-height: 2rem;
  color: var(--muted-foreground);
}

.cta {
  padding: 5rem 1.5rem;
}

.cta-band {
  width: min(64rem, 100%);
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-band h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 900;
}

.cta-band p {
  max-width: 36rem;
  margin: 1rem auto 0;
  opacity: 0.8;
}

.cta-band .btn {
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
  padding: 3.5rem 0;
}

.footer-grid p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

.brand-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--foreground);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--primary);
}

address.footer-contact {
  font-style: normal;
}

.footer-contact a {
  color: var(--foreground);
}

.copy {
  margin: 0;
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1.5rem;
}

.field {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 0.75rem 1rem;
  outline: none;
}

.field:focus {
  border-color: var(--primary);
}

.form-success {
  margin: 0;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.form-error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: oklch(0.7 0.17 25);
}

.form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.captcha {
  display: grid;
  gap: 0.75rem;
}

.captcha-q {
  margin: 0;
  font-weight: 700;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.contact-section {
  padding: 0 1.5rem 6rem;
}

.article {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
  padding: 8rem 0 5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs [aria-current="page"] {
  color: var(--foreground);
}

.detail-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.detail-copy {
  order: 1;
}

.detail-media {
  order: 2;
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-copy h1 {
  margin: 1rem 0 0;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.7;
}

.detail-copy .summary {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 2.25rem;
  color: var(--muted-foreground);
}

.features {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.features h2,
.related h2 {
  margin: 0;
  font-size: 1.25rem;
}

.features ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  line-height: 1.75rem;
}

.features svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  color: var(--primary);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.related {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.5rem;
}

.related-card {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.related-card img {
  object-fit: contain;
  background: var(--muted);
}

.related-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--primary);
}

.related-card h3 {
  margin: 0.5rem 0 0;
  font-weight: 700;
  line-height: 1.75rem;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--muted);
}

.gallery-stage img {
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  color: var(--foreground);
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-prev {
  right: 0.75rem;
}

.gallery-next {
  left: 0.75rem;
}

.gallery-count {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0.375rem;
  background: color-mix(in oklab, var(--background) 95%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-thumbs button {
  width: 5rem;
  height: 5rem;
  padding: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 0.125rem;
  object-fit: cover;
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: 4.5rem;
  font-weight: 900;
}

.not-found h2 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
}

.not-found .btn {
  margin-top: 1.5rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (min-width: 640px) {
  .cols-2-sm {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-desktop,
  .btn-start {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero-grid,
  .cols-2-md {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .stats,
  .cols-4-md {
    grid-template-columns: repeat(4, 1fr);
  }

  .cols-3-md,
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section h2,
  .block-title,
  .cta-band h2 {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .cta-band {
    padding: 4rem;
  }

  .detail-copy h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cols-3-lg {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .detail-media {
    order: 1;
  }

  .detail-copy {
    order: 2;
  }
}

.section-intro {
  width: min(40rem, 100%);
  margin: 1rem auto 0;
  color: var(--muted-foreground);
}

.section-intro.right {
  margin-inline: 0 auto 0;
}

.page-hero .crumbs {
  justify-content: center;
  width: min(72rem, 100%);
  margin: 0 auto 1.25rem;
}

.faq {
  width: min(46rem, 100%);
  margin: 2rem auto 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
}

.field-label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.875rem;
}

.form .field-label:first-of-type {
  margin-top: 0;
}

.prose {
  width: min(46rem, 100%);
  margin: 0 auto;
}

.prose p + p {
  margin-top: 1rem;
}

.service-links {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
}

.service-links a {
  color: var(--primary);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
