@font-face {
  font-family: Vazirmatn;
  src: url("/static/fonts/vazirmatn-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f7f7f2;
  --surface: #fdfdf9;
  --ink: #153b32;
  --muted: #4d6258;
  --green: #155e49;
  --rule: #d7ded4;
  --rust: #9c4c30;
  --wrap: 1184px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
::selection { color: var(--ink); background: #d9e8d4; }
:focus-visible { outline: 3px solid #aa502d; outline-offset: 4px; }
.wrap { width: min(var(--wrap), 88%); margin-inline: auto; }
.skip { position: absolute; z-index: 4; inset-inline-start: 1rem; top: -5rem; background: var(--ink); color: white; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.head-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.wordmark, .login, .main-nav, .hero-actions, .button, .service-action, .section-title, .foot-link { display: flex; align-items: center; }
.wordmark { gap: .55rem; width: fit-content; font-size: 1.65rem; font-weight: 860; line-height: 1.25; }
.wordmark img { display: block; }
.main-nav { gap: clamp(1.25rem, 3vw, 2.8rem); }
.main-nav a, .login, .foot-link, .text-link { font-size: .94rem; font-weight: 610; }
.main-nav a { display: grid; align-items: center; min-height: 44px; }
.login { justify-self: end; gap: .5rem; min-height: 44px; padding: .42rem 1rem; border: 1px solid #b9c9bf; border-radius: 9px; }
.login svg { width: 1.1rem; height: 1.1rem; }
.main-nav a:hover, .foot-link:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: .35em; }
.login:hover { background: #e9eee6; }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(2.6rem, 6vw, 6.2rem); padding-block: clamp(3.2rem, 6.4vw, 5.7rem); }
.hero-copy { padding-block: .2rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--rust); font-size: .86rem; font-weight: 680; }
.eyebrow span, .section-rule { display: inline-block; flex: 0 0 1.65rem; height: 2px; background: var(--rust); }
h1 { margin-block: 1.05rem 1.1rem; font-size: clamp(2.9rem, 4.7vw, 4.4rem); line-height: 1.48; letter-spacing: -.055em; font-weight: 850; }
h1 em { font-style: normal; color: var(--green); }
.hero-copy > p { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 2.05; color: var(--muted); }
.hero-actions { flex-wrap: wrap; gap: 1.65rem; margin-block-start: 1.95rem; }
.button { width: fit-content; min-height: 48px; gap: 1.2rem; padding: .55rem 1.35rem; border-radius: 9px; font-size: .99rem; font-weight: 665; transition: background .18s ease; }
.button svg, .service-action svg, .foot-link svg { width: 1.05rem; height: 1.05rem; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .4em; text-decoration-color: #9baea2; }
.hero-figure { position: relative; }
.hero-figure picture, .hero-figure img { display: block; width: 100%; }
.hero-figure img { aspect-ratio: 1.29; height: auto; object-fit: cover; border-radius: 50px 6px 50px 6px; }
.crop-mark { width: 25px; height: 25px; position: absolute; border-color: #a4b4a2; border-style: solid; pointer-events: none; }
.mark-tr { right: -7px; top: -7px; border-width: 1px 1px 0 0; border-top-right-radius: 5px; }
.mark-bl { left: -7px; bottom: -7px; border-width: 0 0 1px 1px; border-bottom-left-radius: 5px; }
.section { padding-block: clamp(3.35rem, 6vw, 5.6rem); scroll-margin-top: 1rem; }
.services { background: #ecf0e9; border-block: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .5rem 2rem; margin-block-end: 1.75rem; }
.section-title { gap: .85rem; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); line-height: 1.5; font-weight: 805; letter-spacing: -.04em; }
.section-head p, .examples-intro > p { color: var(--muted); line-height: 1.95; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid #d5ddd1; border-radius: 15px; padding: clamp(1.15rem, 2vw, 1.8rem); transition: border-color .18s ease, box-shadow .18s ease; }
.service-card:hover, .service-card:focus-visible { border-color: #8fab98; box-shadow: 0 6px 24px #223a2710; }
.icon-tile { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 12px; }
.icon-tile svg { width: 26px; height: 26px; }
.research .icon-tile { background: #e1ece0; color: #326347; }
.editing .icon-tile { background: #f4e4d7; color: #935337; }
.statistics .icon-tile { background: #dfeaed; color: #3a6470; }
.engineering .icon-tile { background: #eee7cd; color: #79642c; }
.service-card h3, .steps h3 { font-weight: 770; font-size: 1.27rem; letter-spacing: -.025em; }
.service-card h3 { margin-block: 1.35rem .4rem; }
.service-card p { color: var(--muted); font-size: .92rem; line-height: 1.95; padding-bottom: 1.2rem; }
.service-action { border-top: 1px solid var(--rule); width: 100%; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; color: var(--green); font-size: .88rem; font-weight: 665; }
.examples { display: grid; grid-template-columns: .75fr 1.55fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.examples-intro > p { margin-top: .85rem; max-width: 35ch; }
.specimens { border-block-start: 1px solid #aebdae; }
.specimens details { border-block-end: 1px solid var(--rule); }
.specimens summary { list-style: none; display: grid; grid-template-columns: 4rem 1fr auto; gap: .9rem; align-items: center; padding: 1.05rem .1rem; cursor: pointer; }
.specimens summary::-webkit-details-marker { display: none; }
.sample-label { color: var(--rust); font-size: .84rem; font-weight: 630; }
.specimens strong { font-weight: 730; font-size: 1.06rem; }
.toggle { width: 26px; height: 26px; position: relative; display: block; border-radius: 50%; background: #e6ece2; }
.toggle::before, .toggle::after { content: ""; height: 1.5px; width: 10px; background: var(--green); position: absolute; left: 8px; top: 12px; }
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { display: none; }
.specimen-body { margin-block: .1rem 1.15rem; background: #eef1e8; border-inline-start: 2px solid #99b497; padding: .8rem 1.1rem; border-radius: 5px; }
.specimen-body p { font-size: .93rem; line-height: 1.95; color: var(--muted); }
.specimen-body p + p { padding-top: .48rem; }
.specimen-body b { color: var(--ink); font-weight: 700; margin-inline-end: .45rem; }
.process { background: var(--ink); color: #f5f7ef; }
.process .section-rule { background: #e1a677; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-block: 1.5rem 2.3rem; padding: 0; list-style: none; }
.steps li { border-top: 1px solid #476255; padding-top: 1.15rem; display: flex; align-items: flex-start; gap: .9rem; }
.steps li > span { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #647c6b; border-radius: 50%; color: #e3c3a2; display: grid; place-items: center; line-height: 1; }
.steps p { color: #d1dfd2; font-size: .94rem; margin-top: .3rem; }
.light { background: #e4efdf; color: var(--ink); }
.light:hover { background: white; }
.footing { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footing .wordmark { font-size: 1.36rem; }
.foot-link { gap: .4rem; min-height: 44px; }
@media (max-width: 990px) {
  .wrap { width: 90%; }
  .hero { gap: 2.3rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { padding: 1.5rem; }
  .examples { grid-template-columns: .7fr 1.3fr; gap: 2rem; }
}
@media (max-width: 740px) {
  .head-inner { min-height: 0; grid-template-columns: 1fr auto; row-gap: 0; padding-block-start: .65rem; }
  .head-inner .wordmark img { width: 36px; height: 36px; }
  .head-inner .wordmark { font-size: 1.45rem; }
  .main-nav { grid-column: 1/-1; grid-row: 2; justify-content: center; gap: clamp(1.1rem, 7vw, 2.2rem); }
  .main-nav a { font-size: .85rem; }
  .login { grid-column: 2; grid-row: 1; min-height: 44px; padding: .35rem .8rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.45rem 2.5rem; gap: 2rem; }
  h1 { font-size: clamp(2.55rem, 8.6vw, 3.65rem); margin-block: .7rem .8rem; line-height: 1.45; }
  .hero-copy > p { max-width: 52ch; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-figure img { aspect-ratio: 1.65; border-radius: 36px 5px 36px 5px; }
  .section { padding-block: 2.7rem; }
  .section-head { display: grid; margin-block-end: 1.25rem; }
  .examples { grid-template-columns: 1fr; gap: 1.4rem; }
  .examples-intro > p { max-width: 55ch; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps li { padding-top: 1rem; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; gap: .75rem; }
  .service-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .85rem; padding: 1.15rem; }
  .service-card h3 { margin: 0; }
  .service-card p, .service-action { grid-column: 1 / -1; }
  .service-card p { padding-block: .35rem .6rem; }
  .service-action { padding-top: .6rem; }
  .icon-tile { width: 39px; height: 39px; border-radius: 9px; }
  .icon-tile svg { width: 22px; height: 22px; }
  .specimens summary { grid-template-columns: 1fr auto; gap: .18rem .6rem; }
  .sample-label { grid-column: 1; }
  .specimens strong { grid-column: 1; }
  .toggle { grid-column: 2; grid-row: 1/3; }
  .eyebrow { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
