/* Layout: RTL page. Hero text on the right, a slideshow of project renders on the left.
   Sections sit on one 1200px column; the brand navy and silver come from the logo, wheat gold is the accent. */
:root {
  --bg: #f2f3f8;
  --surface: #ffffff;
  --surface-2: #e7e9f3;
  --ink: #1b1946;
  --muted: #575a78;
  --line: rgba(40, 36, 90, .16);
  --brand: #28245a;
  --btn-bg: #28245a;
  --btn-fg: #ffffff;
  --wheat: #a8741a;
  --wheat-soft: rgba(168, 116, 26, .13);
  --scene-line: #28245a;
  --scene-accent: #c58b2a;
  --contact-bg: #28245a;
  --contact-ink: #f4f4fb;
  --contact-muted: #b9b7e0;
  --glass: rgba(242, 243, 248, .82);
  --shadow: 0 22px 50px -28px rgba(27, 25, 70, .45);
  --sun-d: none;
  --moon-d: block;
  --logo-glow: none;
  --f-display: 'IRANSans', 'Tahoma', system-ui, sans-serif;
  --f-lat: 'IRANSansLat', 'IRANSans', 'Tahoma', sans-serif;
  --f-body: 'IRANSans', 'Tahoma', system-ui, sans-serif;
  --mark: url(../img/logo-mark.png);
  --text: url(../img/logo-text-navy.png);
  --w1: url(../img/w1-navy.png); --w2: url(../img/w2-navy.png); --w3: url(../img/w3-navy.png);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b1a; --surface: #12132a; --surface-2: #1a1c38; --ink: #ececf8; --muted: #9b9ec2;
    --line: rgba(190, 192, 255, .17); --brand: #a7a3ff; --btn-bg: #4b46c8; --btn-fg: #ffffff;
    --wheat: #e0a63c; --wheat-soft: rgba(224, 166, 60, .14); --scene-line: #9d99ff; --scene-accent: #e0a63c;
    --contact-bg: #15163a; --contact-ink: #ececf8; --contact-muted: #9b9ec2; --glass: rgba(10, 11, 26, .8);
    --shadow: 0 22px 50px -28px rgba(0, 0, 0, .8); --sun-d: block; --moon-d: none;
    --logo-glow: drop-shadow(0 0 38px rgba(130, 120, 255, .28)); --text: url(../img/logo-text-light.png); --w1: url(../img/w1-light.png); --w2: url(../img/w2-light.png); --w3: url(../img/w3-light.png); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b1a; --surface: #12132a; --surface-2: #1a1c38; --ink: #ececf8; --muted: #9b9ec2;
  --line: rgba(190, 192, 255, .17); --brand: #a7a3ff; --btn-bg: #4b46c8; --btn-fg: #ffffff;
  --wheat: #e0a63c; --wheat-soft: rgba(224, 166, 60, .14); --scene-line: #9d99ff; --scene-accent: #e0a63c;
  --contact-bg: #15163a; --contact-ink: #ececf8; --contact-muted: #9b9ec2; --glass: rgba(10, 11, 26, .8);
  --shadow: 0 22px 50px -28px rgba(0, 0, 0, .8); --sun-d: block; --moon-d: none;
  --logo-glow: drop-shadow(0 0 38px rgba(130, 120, 255, .28)); --text: url(../img/logo-text-light.png); --w1: url(../img/w1-light.png); --w2: url(../img/w2-light.png); --w3: url(../img/w3-light.png); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.js-intro { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.9; direction: rtl; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wheat); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 84px; }

.wrap {
  max-width: 1200px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* IRANSans: the FaNum files show Persian digits, IRANSansLat keeps Latin digits (email, ISO numbers). */
@font-face { font-family: 'IRANSans'; font-weight: 200; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum_UltraLight.woff) format('woff'); }
@font-face { font-family: 'IRANSans'; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum_Light.woff) format('woff'); }
@font-face { font-family: 'IRANSans'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum.woff) format('woff'); }
@font-face { font-family: 'IRANSans'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum_Medium.woff) format('woff'); }
@font-face { font-family: 'IRANSans'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum_Bold.woff) format('woff'); }
@font-face { font-family: 'IRANSans'; font-weight: 900; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_FaNum_Black.woff) format('woff'); }
@font-face { font-family: 'IRANSansLat'; font-weight: 200; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_UltraLight.woff) format('woff'); }
@font-face { font-family: 'IRANSansLat'; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_Light.woff) format('woff'); }
@font-face { font-family: 'IRANSansLat'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb.woff) format('woff'); }
@font-face { font-family: 'IRANSansLat'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/IRANSansWeb_Medium.woff) format('woff'); }
/* ───────── logo pieces (shared by intro and header) ───────── */
.logo-text { background: var(--text) center / 100% 100% no-repeat; }

/* ───────── intro ───────── */
.intro { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; overflow: hidden; }
.js-intro .intro { display: grid; animation: failsafe .01s 10s forwards; }
@keyframes failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro-bg {
  position: absolute; inset: 0; background: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at center, #000 0, #000 35%, rgba(0,0,0,.35) 100%);
  mask-image: radial-gradient(circle at center, #000 0, #000 35%, rgba(0,0,0,.35) 100%);
}
.intro-solid { position: absolute; inset: 0; background: var(--bg); z-index: -1; }
.intro-stage { position: relative; width: min(80vw, 540px); aspect-ratio: 1100/938; perspective: 900px; }
.intro-logo { position: absolute; inset: 0; }
.il-mark {
  position: absolute; left: 0; right: 0; top: 0; height: 74.733%;
  background: var(--mark) center / 100% 100% no-repeat; opacity: 0; filter: var(--logo-glow);
}
.il-text { position: absolute; left: 0; right: 0; bottom: 0; height: 25.267%; }
.il-text .w { position: absolute; inset: 0; background-size: 100% 100%; background-repeat: no-repeat; opacity: 0; }
#w1 { background-image: var(--w1); } #w2 { background-image: var(--w2); } #w3 { background-image: var(--w3); }
.ring {
  position: absolute; left: 64.2%; bottom: calc(25.267% / 2); width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 2px solid var(--wheat); border-radius: 50%; opacity: 0; pointer-events: none;
}
.dust { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--wheat); opacity: 0; pointer-events: none; }
.intro-skip {
  position: absolute; bottom: max(22px, env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin-inline: auto; width: max-content;
  background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 18px; font-size: 13px; cursor: pointer; border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.intro-skip:hover { color: var(--ink); border-color: var(--ink); }

/* ───────── header ───────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wheat);
  transform-origin: right; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .site-header::after { animation: prog linear both; animation-timeline: scroll(root); }
}
@keyframes prog { to { transform: scaleX(1); } }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; }
.brand-mark { height: 46px; aspect-ratio: 1100/701; background: var(--mark) center / contain no-repeat; filter: var(--logo-glow); }
.js-intro .brand-mark { visibility: hidden; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--muted); }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 6px 12px; font-size: 15px; color: var(--muted); position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--wheat); transform: scaleX(0); transition: transform .3s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: var(--sun-d); }
.ico-moon { display: var(--moon-d); }
.menu-btn { display: none; }
.cta-sm { background: var(--btn-bg); color: var(--btn-fg); padding: 8px 18px; font-size: 14px; border-radius: 2px; transition: transform .2s; }
.cta-sm:hover { transform: translateY(-2px); }

.js-intro .site-header .hx { opacity: 0; transform: translateY(-10px); }
.site-header .hx { transition: opacity .7s calc(var(--i, 0) * .09s + .15s), transform .7s calc(var(--i, 0) * .09s + .15s) cubic-bezier(.2,.7,.2,1); }

/* ───────── hero ───────── */
.hero { position: relative; padding-block: 56px 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--wheat); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--wheat); }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(32px, 5vw, 56px); line-height: 1.6; margin-block: 14px 18px; text-wrap: balance; }
.hero h1 .u { background: linear-gradient(var(--wheat), var(--wheat)) no-repeat right 92% / 100% 3px; padding-bottom: 2px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; font-weight: 500; border-radius: 2px; border: 1px solid var(--ink); transition: transform .25s, background .25s, color .25s; }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
.btn:hover svg { transform: translateX(-4px); }

.js-intro .hero [data-rise] { opacity: 0; transform: translateY(30px); }
.hero [data-rise] { transition: opacity .9s calc(var(--i, 0) * .12s + .25s), transform .9s calc(var(--i, 0) * .12s + .25s) cubic-bezier(.2,.7,.2,1); }

.show-wrap { position: relative; min-width: 0; }
.show { position: relative; aspect-ratio: 1 / 1; max-height: 600px; width: 100%; border: 1px solid var(--line); background: var(--surface-2); isolation: isolate; }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.s-bg { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(24px) saturate(1.15); opacity: .8; }
.s-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px 18px 78px; transform: scale(1); transition: transform 8s linear; box-shadow: none; }
.slide.is-on .s-fg { transform: scale(1.06); }
.show-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.show-cap { flex: 1; min-width: 0; font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-cap small { display: block; font-family: var(--f-body); font-size: 11px; color: var(--wheat); letter-spacing: .06em; }
.dots { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; padding: 0; border: 1px solid var(--ink); background: none; cursor: pointer; transform: rotate(45deg); transition: background .25s; }
.dot[aria-selected="true"] { background: var(--wheat); border-color: var(--wheat); }
.sb { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .2s, background .2s; }
.sb:hover { border-color: var(--ink); background: var(--surface); }
.sb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prog { position: absolute; left: 0; right: 0; top: -2px; height: 2px; }
.prog i { display: block; height: 100%; background: var(--wheat); transform-origin: right; transform: scaleX(0); animation: fill var(--dur, 5.6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.show-wrap .corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--wheat); z-index: 3; pointer-events: none; }
.corner.c1 { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.corner.c2 { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.corner.c3 { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.corner.c4 { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }

/* ───────── marquee ───────── */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-size: 20px; font-weight: 700; padding: 14px 26px; white-space: nowrap; display: flex; align-items: center; gap: 52px; }
.marquee-track span::after { content: ''; width: 9px; height: 9px; background: var(--wheat); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(50%); } }

/* ───────── sections ───────── */
.section { padding-block: 88px; }
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.6; margin-block: 8px 12px; text-wrap: balance; }
.sec-head p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); padding: 28px 26px 26px; min-width: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
}
.card::before { content: ''; position: absolute; top: -1px; right: -1px; width: 0; height: 3px; background: var(--wheat); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--wheat) 55%, var(--line)); box-shadow: var(--shadow); }
.card:hover::before { width: calc(100% + 2px); }
.card .ico { width: 52px; height: 52px; margin-bottom: 18px; color: var(--brand); }
.card .ico * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico .p { stroke-dasharray: 1; animation: draw 1.1s ease-out both; }
.card h3 { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.card li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.card li::before { content: ''; position: absolute; right: 0; top: .78em; width: 6px; height: 6px; background: var(--wheat); }

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: span 2; }
}
/* sectors */
.sectors { background: var(--surface-2); }
.tabs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tablist { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.tab {
  text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; cursor: pointer;
  font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--muted); position: relative; transition: color .25s, background .25s;
}
.tab:last-child { border-bottom: 0; }
.tab::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 4px; background: var(--wheat); transform: scaleY(0); transition: transform .3s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--wheat-soft); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.pane { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.pane.is-active { display: grid; animation: paneIn .5s both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet {
  position: relative; background: var(--surface); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sheet svg { width: 100%; height: auto; display: block; flex: 1; padding: 14px 14px 0; }
.sheet svg * { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet svg .acc { stroke: var(--wheat); }
.sheet svg text { fill: var(--muted); stroke: none; font-family: var(--f-body); font-size: 11px; }
.sheet svg .dr { stroke-dasharray: none; }
.pane.is-active .dr { animation: draw 1.7s var(--d, 0s) ease-out both; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.pane.is-active .fade { animation: paneIn 1.2s 1.2s both; }
.cartouche { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 14px; font-size: 12px; color: var(--muted); background: var(--surface); }
.detail { min-width: 0; }
.detail h3 { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.detail > p { color: var(--muted); margin-bottom: 18px; }
.detail dl { border-top: 1px solid var(--line); }
.detail dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail dt { font-weight: 700; color: var(--brand); font-size: 14px; }
.detail dd { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* process */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; position: relative; counter-reset: s; }
/* the progress line only exists in the 4-column layout; it runs from the centre of square 1 to the centre of square 4 */
.steps::before { content: none; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps::before {
    content: ''; position: absolute; top: 27px; right: 28px; left: calc((100% - 72px) / 4 - 28px); height: 2px;
    background: var(--wheat); transform-origin: right; z-index: 0;
  }
}
@supports (animation-timeline: view()) {
  .steps::before { transform: scaleX(0); animation: prog linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}
.step { position: relative; z-index: 1; min-width: 0; }
.step .n {
  width: 56px; height: 56px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--wheat);
  font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.step h3 { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.7; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* contact */
.contact { background: var(--contact-bg); color: var(--contact-ink); }
.contact .sec-head p { color: var(--contact-muted); }
.contact .eyebrow { color: var(--scene-accent); }
.contact .eyebrow::before { background: var(--scene-accent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact dt { color: var(--contact-muted); font-size: 14px; }
.contact dd { font-size: 16px; overflow-wrap: anywhere; }
.contact .big-mark { height: 150px; aspect-ratio: 1100/701; background: var(--mark) center / contain no-repeat; margin-inline: auto; }
.contact .big-text { height: 76px; aspect-ratio: 1100 / 237; margin: 18px auto 0; background: url(../img/logo-text-light.png) center / 100% 100% no-repeat; }
.contact .big-text { aspect-ratio: 5 / 1; }
.contact .brand-panel { border: 1px solid rgba(255,255,255,.18); padding: 36px 24px; }

footer { padding-block: 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@supports (animation-timeline: view()) {
  .rv { animation: rv linear backwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes rv { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.contact-grid { align-items: start; }
.mailrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mail { border-bottom: 1px solid rgba(255,255,255,.4); }
.copy { background: none; border: 1px solid rgba(255,255,255,.3); color: var(--contact-ink); padding: 2px 12px; font-size: 13px; cursor: pointer; border-radius: 2px; }
.copy:hover { border-color: var(--scene-accent); color: var(--scene-accent); }
.dl { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.4); transition: color .2s, border-color .2s; }
.dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl:hover { color: var(--scene-accent); border-color: var(--scene-accent); }
.req { border: 1px solid rgba(255,255,255,.2); padding: 28px; min-width: 0; background: rgba(255,255,255,.03); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.req label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--contact-muted); min-width: 0; }
.req input, .req select, .req textarea {
  font: inherit; font-size: 15px; color: var(--contact-ink); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.24);
  padding: 10px 12px; border-radius: 2px; width: 100%; min-width: 0; color-scheme: dark;
}
.req textarea { resize: vertical; min-height: 120px; }
.req input:focus, .req select:focus, .req textarea:focus { outline: none; border-color: var(--scene-accent); box-shadow: 0 0 0 1px var(--scene-accent); }
.req-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-gold { background: var(--scene-accent); color: #1b1946; border-color: var(--scene-accent); cursor: pointer; font: inherit; font-weight: 500; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.btn-ghost { background: none; color: var(--contact-ink); border-color: rgba(255,255,255,.4); cursor: pointer; font: inherit; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.req .btn-ghost { padding-block: 12px; }
.btn-ghost svg { stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost:hover svg { transform: none; }
.file-chip { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.07); border-radius: 2px; font-size: 14px; min-width: 0; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; color: var(--contact-muted); font-size: 13px; }
.file-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--contact-ink); border-radius: 2px; cursor: pointer; }
.file-x:hover { border-color: var(--scene-accent); color: var(--scene-accent); }
.file-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.file-chip.bad { border-color: #ffb4a8; }
.hint { margin-top: 14px; font-size: 13px; color: var(--contact-muted); line-height: 1.8; }

[hidden] { display: none !important; }
.lat, .mail, #rfPhone { font-family: var(--f-lat); }
.lat { font-variant-numeric: tabular-nums; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.about h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.6; margin-block: 8px 20px; text-wrap: balance; }
.about p { color: var(--muted); margin-bottom: 14px; max-width: 62ch; }
.about p.about-lead { color: var(--ink); font-size: 18px; line-height: 2; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 500; border-bottom: 2px solid var(--wheat); padding-bottom: 2px; transition: gap .25s; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.link-arrow:hover { gap: 16px; }
.about p.about-lead { color: var(--ink); font-size: 18px; font-weight: 300; line-height: 2.1; padding-inline-start: 22px; border-inline-start: 3px solid var(--wheat); margin-bottom: 22px; }
.facts { position: relative; min-width: 0; border: 1px solid var(--line); background-color: var(--surface); padding: 34px 30px 32px; box-shadow: var(--shadow);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.facts .corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--wheat); pointer-events: none; }
.fact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.fact-n { display: block; font-weight: 900; font-size: clamp(40px, 5vw, 58px); line-height: 1.3; color: var(--brand); font-variant-numeric: tabular-nums; }
.fact-n.sm { font-size: clamp(26px, 3.2vw, 38px); padding-top: .3em; }
.fact-l { display: block; color: var(--muted); font-size: 14px; }
.fact-h { font-size: 14px; font-weight: 700; color: var(--wheat); margin-bottom: 10px; }
.fields-big { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 24px; }
.fields-big li { font-weight: 700; font-size: 22px; line-height: 1.6; border-bottom: 2px solid var(--wheat); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 4px 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; transition: border-color .25s, transform .25s, background .25s; }
.chips li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--wheat); transform: rotate(45deg); margin-inline-end: 9px; vertical-align: middle; }
.chips li:hover { border-color: var(--wheat); transform: translateY(-3px); background: var(--wheat-soft); }
.facts.go .chips li { animation: chipIn .6s calc(var(--i, 0) * .09s) cubic-bezier(.2,.7,.2,1) both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.certs-sec { background: var(--surface); border-block: 1px solid var(--line); }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.cert { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cert-btn { position: relative; display: block; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cert-btn:hover { transform: translateY(-5px); }
.cert-btn img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cert-btn:hover img { transform: scale(1.04); }
.zoom { position: absolute; bottom: 10px; left: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-fg); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cert-btn:hover .zoom, .cert-btn:focus-visible .zoom { opacity: 1; transform: none; }
.cert h3 { font-family: var(--f-display); font-size: 24px; font-weight: 500; line-height: 1.5; }
.cert-sub { color: var(--wheat); font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.cert dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cert dt { color: var(--muted); }
.cert dd { font-variant-numeric: tabular-nums; }
.lb { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 24, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: max(16px, env(safe-area-inset-top, 0px)) max(64px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(64px, env(safe-area-inset-left, 0px)); }
.lb figure { margin: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb img { max-width: min(100%, 780px); max-height: 82vh; width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lb figcaption { color: #e9e9f5; font-size: 15px; text-align: center; }
.lb button { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; border-radius: 2px; transition: background .2s; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: max(14px, env(safe-area-inset-top, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-prev { right: max(10px, env(safe-area-inset-right, 0px)); }
.lb-next { left: max(10px, env(safe-area-inset-left, 0px)); }
.fields { position: relative; }
.req .hp, .hp {
  position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none;
}
.status { margin-top: 14px; font-size: 14.5px; min-height: 1.8em; }
.status.ok { color: #8fe0a8; }
.status.err { color: #ffb4a8; }
.btn.busy { opacity: .6; pointer-events: none; }
/* ───────── small screens ───────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tablist { flex-direction: row; overflow-x: auto; }
  .tab { border-bottom: 0; border-inline-start: 1px solid var(--line); white-space: nowrap; flex: none; }
  .tab::before { top: auto; width: auto; height: 4px; left: 0; right: 0; bottom: 0; transform: scaleX(0); }
  .tab[aria-selected="true"]::before { transform: scaleX(1); }
  .pane { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .cta-sm { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)); display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .tools { margin-inline-start: auto; }
  .brand-name { font-size: 18px; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .bar { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { height: 36px; flex: none; }
  .brand-name { font-size: 15px; white-space: normal; line-height: 1.4; }
  .tools { gap: 6px; flex: none; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .req { padding: 20px 16px; }
  .brand-name small { display: none; }
  .detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-on .s-fg { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* __________map logo_____________*/
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.map-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid currentColor; border-radius: 12px;
  color: inherit; text-decoration: none; font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.map-btn img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }

/* ───────── language button ───────── */
.lang-btn { width: auto; min-width: 40px; padding: 0 10px; font-family: var(--f-lat); font-size: 13px; font-weight: 500; letter-spacing: .02em; cursor: pointer; line-height: 1; }

/* ───────── English (LTR) ─────────
   Persian is the default (RTL). With <html dir="ltr" lang="en"> the grid/flex order flips by itself;
   the rules below only fix the physical (left/right) details and retune type for Latin text. */
html[lang="en"] {
  --f-display: 'IRANSansLat', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-body: 'IRANSansLat', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
html[dir="ltr"] body { direction: ltr; line-height: 1.7; }
html[dir="ltr"] .hero h1 { line-height: 1.2; letter-spacing: -.01em; }
html[dir="ltr"] .sec-head h2, html[dir="ltr"] .about h2 { line-height: 1.25; }
html[dir="ltr"] .card h3, html[dir="ltr"] .detail h3, html[dir="ltr"] .step h3, html[dir="ltr"] .cert h3 { line-height: 1.35; }
html[dir="ltr"] .about p.about-lead { line-height: 1.8; }
html[dir="ltr"] .hero p.lead, html[dir="ltr"] .card li, html[dir="ltr"] .detail dd { line-height: 1.65; }
html[dir="ltr"] .brand-name { font-size: 17px; line-height: 1.25; }
html[dir="ltr"] .nav a { font-size: 14.5px; white-space: nowrap; }
html[dir="ltr"] .fact-n.sm { padding-top: 0; }
html[dir="ltr"] .site-header::after,
html[dir="ltr"] .prog i,
html[dir="ltr"] .steps::before { transform-origin: left; }
html[dir="ltr"] .hero h1 .u { background-position: left 92%; }
html[dir="ltr"] .card::before { right: auto; left: -1px; }
html[dir="ltr"] .card li::before { right: auto; left: 0; }
html[dir="ltr"] .tab::before { right: auto; left: 0; }
html[dir="ltr"] .marquee-track { animation-name: slide-ltr; }
@keyframes slide-ltr { to { transform: translateX(-50%); } }
@media (min-width: 1000px) {
  html[dir="ltr"] .steps::before { right: calc((100% - 72px) / 4 - 28px); left: 28px; }
}
/* arrows that point "forward" / "back" are drawn for RTL; mirror them in LTR */
html[dir="ltr"] .btn-solid svg, html[dir="ltr"] .link-arrow svg,
html[dir="ltr"] .sb svg, html[dir="ltr"] .lb-nav svg { transform: scaleX(-1); }
html[dir="ltr"] .btn-solid:hover svg { transform: scaleX(-1) translateX(-4px); }
html[dir="ltr"] .file-chip { padding: 8px 12px 8px 8px; }
html[dir="ltr"] .lb-x { left: auto; right: max(14px, env(safe-area-inset-right, 0px)); }
html[dir="ltr"] .lb-prev { right: auto; left: max(10px, env(safe-area-inset-left, 0px)); }
html[dir="ltr"] .lb-next { left: auto; right: max(10px, env(safe-area-inset-right, 0px)); }
html[dir="ltr"] .sheet svg text { direction: ltr; }
@media (max-width: 1040px) { html[dir="ltr"] .brand-name { font-size: 16px; } }
/* English labels are longer: tighter header, and the burger menu kicks in earlier */
html[dir="ltr"] .nav { gap: 0; }
html[dir="ltr"] .nav a { padding: 6px 9px; }
html[dir="ltr"] .nav a::after { left: 9px; right: 9px; }
html[dir="ltr"] .brand-name { font-size: 16px; }
html[dir="ltr"] .brand-name small { font-size: 10.5px; }
html[dir="ltr"] .cta-sm { white-space: nowrap; padding: 8px 14px; font-size: 13.5px; }
html[dir="ltr"] .bar { gap: 16px; }
@media (max-width: 1260px) {
  html[dir="ltr"] .menu-btn { display: grid; }
  html[dir="ltr"] .cta-sm { display: none; }
  html[dir="ltr"] .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)); display: none; margin: 0; }
  html[dir="ltr"] .nav.open { display: flex; }
  html[dir="ltr"] .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  html[dir="ltr"] .nav a::after { display: none; }
  html[dir="ltr"] .tools { margin-inline-start: auto; }
}
@media (max-width: 480px) { html[dir="ltr"] .brand-name { font-size: 14px; } }
html[dir="ltr"] .nav a { padding: 6px 8px; font-size: 14px; }
html[dir="ltr"] .nav a::after { left: 8px; right: 8px; }
html[dir="ltr"] .brand-name { font-size: 15.5px; }
html[dir="ltr"] .cta-sm { padding: 8px 12px; font-size: 13px; }
html[dir="ltr"] .brand { gap: 10px; }

.contact dl > .map-links {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}
.contact .map-btn { border-color: rgba(255,255,255,.3); }
.contact .map-btn:hover { border-color: var(--scene-accent); }