/* TNA website. Farsi in XYekan (local, or assets/fonts/XYekan.woff2 when added), fallback Vazirmatn; Latin in Calibri. */
@font-face { font-family: "XYekan"; src: local("XYekan"), local("X Yekan"), url("fonts/XYekan.woff2") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --paper: #f2f7f6;
  --paper-deep: #e4eeec;
  --sheet: #fbfdfc;
  --ink: #0f2628;
  --ink-soft: #435c5d;
  --rule: #bcd2cf;
  --rule-strong: #8fb3af;
  --teal: #06696f;
  --teal-deep: #03454a;
  --teal-night: #022f33;
  --teal-wash: #d5e8e5;
  --seal: #e0a020;
  --seal-deep: #9a6a08;
  --error: #b3261e;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: Calibri, "XYekan", "Vazirmatn", Carlito, "Segoe UI", Tahoma, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.9; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--teal); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 12px; }
.skip:hover { color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font-size: 17px; line-height: 1.25; }
.brand small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.lang { font-size: 14px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  background: var(--teal); color: #fff; border: 0; border-radius: 3px; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 var(--teal-night), 0 6px 18px -10px rgba(3, 69, 74, .7);
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
a.btn:hover, .btn:hover { background: var(--teal-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.line { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.line:hover { background: var(--teal-wash); color: var(--teal-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .nav a:not(.lang) { display: none; } .top .wrap { gap: 16px; } }
@media (max-width: 520px) {
  .top .wrap { gap: 10px; height: 64px; }
  .brand { gap: 8px; min-width: 0; } .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 15px; white-space: nowrap; } .brand small { font-size: 11px; }
  .nav .lang { display: none; }
  .btn.small { padding: 0 12px; font-size: 14px; white-space: nowrap; }
}

/* ---------- hero: the request and the slip ---------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); background:
  repeating-linear-gradient(to bottom, transparent 0 39px, color-mix(in srgb, var(--rule) 45%, transparent) 39px 40px), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.32; margin: 0 0 18px; font-weight: 800; letter-spacing: -.01em; color: var(--teal-night); }
.hero .sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); margin: 0 0 30px; max-width: 34em; }
.paths { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.paths li { border-bottom: 1px solid var(--rule-strong); }
.paths a { display: grid; grid-template-columns: 30px 1fr 22px; gap: 14px; align-items: start; padding: 16px 4px; color: var(--ink); text-decoration: none; }
.paths .box { width: 24px; height: 24px; margin-top: 5px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; background: var(--sheet); }
.paths .box::after { content: ""; position: absolute; inset: 4px 6px 7px; border: solid var(--teal); border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(.4); opacity: 0; transition: transform .35s var(--ease-out), opacity .2s; }
.paths a:hover .box::after, .paths a:focus-visible .box::after { transform: rotate(-45deg) scale(1); opacity: 1; }
.paths b { display: block; font-size: 19px; line-height: 1.5; }
.paths span { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.paths .arr { width: 20px; height: 20px; margin-top: 6px; color: var(--teal); transition: transform .3s var(--ease-out); }
[dir="rtl"] .paths .arr { transform: scaleX(-1); }
.paths a:hover .arr { transform: translateX(4px); }
[dir="rtl"] .paths a:hover .arr { transform: scaleX(-1) translateX(4px); }
.paths-label { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the slip */
.slip-wrap { position: relative; }
.slip {
  position: relative; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 26px 26px 22px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(2, 47, 51, .45), 0 4px 12px -6px rgba(2, 47, 51, .15);
  transform: rotate(-1.2deg);
}
[dir="ltr"] .slip { transform: rotate(1.2deg); }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--ink); padding: 8px 0 10px; margin-bottom: 4px; }
.slip-head b { font-size: 18px; }
.slip-head small { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.slip dl { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.slip dt, .slip dd { margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--rule-strong); font-size: 15px; }
.slip dt { color: var(--ink-soft); padding-inline-end: 18px; }
.slip dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.slip dd .ltr { font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.slot { position: relative; min-height: 132px; border: 1px dashed var(--rule-strong); border-radius: 3px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.slot .role { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.slot .state { font-size: 12px; color: var(--ink-soft); }
.stamp {
  position: absolute; inset: 10px 8px auto; margin: auto; display: grid; place-items: center; text-align: center;
  color: var(--teal); border: 2.5px solid currentColor; outline: 1px solid currentColor; outline-offset: -6px; border-radius: 5px;
  padding: 7px 4px 6px; font-weight: 800; font-size: 15px; line-height: 1.35; transform: rotate(-7deg);
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 180px; mask-size: 180px;
  opacity: 0;
}
.stamp small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .02em; }
.slot:nth-child(2) .stamp { transform: rotate(5deg); }
.slot.done .stamp { opacity: .92; animation: press .55s var(--ease-out) both; }
.slot.done .state { visibility: hidden; }
@keyframes press {
  0% { opacity: 0; transform: translateY(-14px) scale(1.45) rotate(-12deg); filter: blur(3px); }
  55% { opacity: .95; transform: scale(.96) rotate(-7deg); filter: blur(0); }
  100% { opacity: .92; transform: scale(1) rotate(-7deg); }
}
.slot:nth-child(2).done .stamp { animation-name: press2; }
@keyframes press2 {
  0% { opacity: 0; transform: translateY(-14px) scale(1.45) rotate(10deg); filter: blur(3px); }
  55% { opacity: .95; transform: scale(.96) rotate(5deg); filter: blur(0); }
  100% { opacity: .92; transform: scale(1) rotate(5deg); }
}
.slot.skipped { border-style: solid; border-color: var(--rule); background: repeating-linear-gradient(-45deg, transparent 0 7px, color-mix(in srgb, var(--rule) 40%, transparent) 7px 8px); }
.slip-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--ink-soft); min-height: 30px; }
.keyline { display: flex; align-items: center; gap: 8px; }
.keyline svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.replay { white-space: nowrap; flex: none; background: none; border: 0; font: inherit; font-size: 14px; color: var(--teal); cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: .3em; }
.seal {
  position: absolute; inset-inline-end: -26px; top: 118px; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; color: var(--teal-night); background: radial-gradient(circle at 38% 32%, #f3bf4a, var(--seal) 52%, var(--seal-deep));
  box-shadow: 0 10px 24px -10px rgba(154, 106, 8, .8), inset 0 0 0 5px rgba(255, 255, 255, .22), inset 0 0 0 7px rgba(154, 106, 8, .5);
  font-weight: 800; font-size: 18px; line-height: 1.3; transform: rotate(-14deg) scale(.4); opacity: 0; pointer-events: none;
}
.seal small { display: block; font-size: 11px; font-weight: 700; opacity: .92; }
.seal img { width: 34px; height: 34px; margin: 0 auto 2px; filter: brightness(0); opacity: .82; }
.slip-wrap.signed .seal { animation: seal .7s var(--ease-out) both; }
@keyframes seal { 0% { opacity: 0; transform: rotate(-30deg) scale(1.8); filter: blur(4px); } 60% { opacity: 1; transform: rotate(-12deg) scale(.94); filter: blur(0); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
.demo-note { margin: 22px 0 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 520px) {
  .slip { padding: 22px 16px 18px; transform: none !important; }
  .slots { gap: 6px; } .slot { min-height: 96px; padding: 6px; } .stamp { font-size: 13px; inset: 8px 4px auto; }
  .seal { width: 96px; height: 96px; font-size: 14px; inset-inline-end: -4px; top: 96px; }
  .slip-head { flex-wrap: wrap; }
  .slot { min-height: 116px; } .seal img { width: 26px; height: 26px; }
}

/* register (facts) */
.register { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.register dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.register div { padding: 22px 20px 20px; border-inline-start: 1px solid var(--rule); }
.register div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.register dt { font-size: 14px; color: var(--ink-soft); line-height: 1.5; order: 2; }
.register dd { margin: 0 0 2px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--teal-deep); line-height: 1.3; font-variant-numeric: tabular-nums; }
.register div { display: flex; flex-direction: column-reverse; }
@media (max-width: 760px) { .register dl { grid-template-columns: repeat(2, 1fr); } .register div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .register div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; margin: 0; color: var(--teal-night); }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 40em; }
.path-no { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; margin-inline-end: 12px; vertical-align: 6px; border: 2px solid currentColor; border-radius: 4px; font-size: 20px; color: var(--teal); }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* product register */
.products { border-top: 1.5px solid var(--ink); }
.prod { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule-strong); }
.prod .mark { width: 84px; height: 84px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.prod .mark img { width: 62%; height: 62%; object-fit: contain; }
.prod .mark.wide img { width: 92%; height: auto; }
.prod .mark.typo { color: var(--teal); font-weight: 800; font-size: 26px; border: 2px solid var(--teal); outline: 1px solid var(--teal); outline-offset: -6px; }
.prod h3 { margin: 0; font-size: 22px; line-height: 1.45; }
.prod .kind { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.prod p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.prod .go { justify-self: end; white-space: nowrap; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.prod .go svg { width: 16px; height: 16px; }
[dir="rtl"] .prod .go svg { transform: scaleX(-1); }
.prod.lead { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.6fr) auto; background: linear-gradient(to left, var(--teal-wash), transparent 70%); padding-inline: min(18px, var(--gutter)); margin-inline: calc(-1 * min(18px, var(--gutter))); }
[dir="ltr"] .prod.lead { background: linear-gradient(to right, var(--teal-wash), transparent 70%); }
.prod .feats { grid-column: 2 / 4; margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.prod .feats li { font-size: 14px; padding: 2px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--sheet); }
@media (max-width: 860px) {
  .prod, .prod.lead { grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: start; }
  .prod .mark { width: 60px; height: 60px; grid-row: span 3; }
  .prod .go { justify-self: start; }
  .prod .feats { grid-column: 2; }
}

/* service list */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(40px, 5vw, 64px); }
.services h3.lst { grid-column: 1 / -1; font-size: 20px; margin: 0 0 6px; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.svc b { font-size: 18px; }
.svc p { grid-column: 1; margin: 0; color: var(--ink-soft); font-size: 15px; }
.svc a { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* AI path: the committed teal field */
.ai { background: var(--teal-deep); color: #eaf5f3; position: relative; overflow: hidden; }
.ai .wrap { position: relative; }
.ai .sec-head h2 { color: #fff; }
.ai .sec-head p { color: #cfe5e2; }
.ai .path-no { color: var(--seal); }
.ai a { color: #fff; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.proof { border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; padding: 28px; background: rgba(2, 47, 51, .35); }
.proof h3 { margin: 0 0 10px; font-size: 22px; color: #fff; }
.proof p { margin: 0 0 16px; color: #cfe5e2; }
.proof ul { margin: 0; padding: 0; list-style: none; }
.proof li { padding: 12px 0; border-top: 1px dashed rgba(255, 255, 255, .25); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.proof li span { color: #cfe5e2; font-size: 15px; }
.proof li b { color: #fff; font-size: 15px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px; padding-inline-start: 64px; counter-increment: s; }
.steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--seal); color: var(--seal); border-radius: 50%; font-weight: 800; font-size: 19px; }
[lang="en"] .steps li::before { content: counter(s); }
.steps li::after { content: ""; position: absolute; inset-inline-start: 21px; top: 50px; bottom: 6px; width: 2px; background: rgba(224, 160, 32, .35); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 19px; color: #fff; }
.steps p { margin: 4px 0 0; color: #cfe5e2; font-size: 16px; }
.ai .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ai .btn { background: var(--seal); color: var(--teal-night); box-shadow: 0 1px 0 var(--seal-deep); }
.ai .btn:hover { background: #f0b432; color: var(--teal-night); }
.ai .btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.ai .btn.line:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }

/* about: certificates and record */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.certs { margin: 0; padding: 0; list-style: none; }
.certs li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.certs .ring { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--teal); outline: 1px solid var(--teal); outline-offset: -6px; display: grid; place-items: center; color: var(--teal); transform: rotate(-8deg); }
.certs .ring svg { width: 20px; height: 20px; }
.certs b { display: block; font-size: 17px; line-height: 1.6; }
.certs span { display: block; font-size: 14px; color: var(--ink-soft); }
.record { margin: 0; padding: 0; list-style: none; border-inline-start: 1.5px solid var(--ink); }
.record li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0 12px; padding-inline-start: 22px; position: relative; }
.record li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 22px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--teal); border-radius: 50%; }
.record b { color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.record p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.mission { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 40em; }
h3.col { font-size: 20px; margin: 0 0 8px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .record li { grid-template-columns: 1fr; gap: 0; } }

/* team */
.team-sec { background: var(--paper-deep); }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.person { text-align: center; }
.portrait { display: block; position: relative; width: min(100%, 168px); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; padding: 7px; border: 2px solid var(--teal); }
.portrait::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid var(--teal); opacity: .6; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease-out); }
.person:hover .portrait img { filter: grayscale(.2) contrast(1.02); }
.person h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.person p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 980px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* partners */
.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.partner { display: grid; place-items: center; min-height: 112px; padding: 16px; border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); text-align: center; font-size: 15px; color: var(--ink-soft); background: var(--sheet); }
.partner img { max-height: 56px; max-width: 80%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .4s var(--ease-out), opacity .4s; }
.partner:hover img { filter: none; opacity: 1; }
.partner small { display: block; font-size: 12px; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* contact: the request form */
.contact { background: var(--paper); border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { position: relative; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 4px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 48px -32px rgba(2, 47, 51, .4); }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.form-head b { font-size: 19px; }
.form-head small { font-size: 13px; color: var(--ink-soft); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px;
  padding: 10px 12px; min-height: 46px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; caret-color: var(--teal);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: #566d6c; }
.field .err { display: none; font-size: 13px; color: var(--error); }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--error); }
.field.bad .err { display: block; }
.field [type="email"], .field [type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .field [type="email"], [dir="rtl"] .field [type="tel"] { text-align: right; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--ink-soft); max-width: 30em; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin-top: 14px; font-size: 15px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { color: var(--error); }
.received { display: none; text-align: center; padding: 28px 8px 12px; }
.form.sent .fields, .form.sent .form-foot { display: none; }
.form.sent .received { display: block; }
.received .seal-static { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--teal-night); font-weight: 800; font-size: 20px; line-height: 1.3; transform: rotate(-12deg);
  background: radial-gradient(circle at 38% 32%, #f3bf4a, var(--seal) 52%, var(--seal-deep)); box-shadow: 0 10px 24px -10px rgba(154, 106, 8, .8), inset 0 0 0 5px rgba(255, 255, 255, .22), inset 0 0 0 7px rgba(154, 106, 8, .5); }
.form.sent .seal-static { animation: seal .7s var(--ease-out) both; }
.received h3 { margin: 0 0 6px; font-size: 22px; }
.received p { margin: 0 auto; color: var(--ink-soft); max-width: 30em; }
.reach { margin: 0; }
.reach div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reach dt { font-size: 14px; color: var(--ink-soft); }
.reach dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.reach dd a { text-decoration: none; }
.reach dd a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* footer */
footer { background: var(--teal-night); color: #b9d3d0; font-size: 14px; padding-block: 28px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
footer a { color: #fff; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.lost h1 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 6px; color: var(--teal-night); }
.lost p { margin: 0 0 24px; color: var(--ink-soft); }

/* reveal: content is visible by default; JS only adds a soft settle */
.js .settle { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .settle.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .js .settle { opacity: 1; transform: none; }
}

/* Latin set tighter than Farsi */
[lang="en"] .hero h1 { line-height: 1.12; letter-spacing: -.02em; }
[lang="en"] .sec-head h2 { line-height: 1.15; }
html[lang="en"] body { line-height: 1.7; }
