:root{
  --bg:#06080d;--bg-soft:#0b0f16;--panel:#0f141d;--panel-2:#121826;
  --text:#f5f4f1;--muted:#a9afba;--line:rgba(255,255,255,.10);
  --purple:#7750b6;--purple-2:#a477eb;--amber:#e6a263;--green:#88aa86;
  --shadow:0 28px 80px rgba(0,0,0,.34);--radius:28px;--max:1240px;
  --font-fa:"Vazirmatn","IRANSansX","Segoe UI",Tahoma,Arial,sans-serif;
  --font-en:Inter,"Aptos","Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-fa);line-height:1.9;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body.en{font-family:var(--font-en);line-height:1.65}img{max-width:100%;display:block}a{color:inherit;text-decoration:none}button{font:inherit}.container{width:min(var(--max),90vw);margin-inline:auto}.section{padding:112px 0;position:relative}.section.dark-soft{background:var(--bg-soft)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:#cbb7ed;margin-bottom:16px}.display{font-size:clamp(42px,6vw,82px);line-height:1.12;letter-spacing:-.055em;margin:0 0 24px;font-weight:850}.lead{font-size:clamp(17px,1.65vw,21px);color:#d5d7dc;max-width:760px}.muted{color:var(--muted)}.accent{color:#b992f5}.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);font-size:12px;color:#d8dae0}.dot{width:7px;height:7px;border-radius:50%;background:var(--purple-2);box-shadow:0 0 15px var(--purple-2)}
.header{position:fixed;z-index:50;inset:0 0 auto;height:78px;border-bottom:1px solid transparent;transition:.25s;background:linear-gradient(180deg,rgba(5,7,11,.82),rgba(5,7,11,.22));backdrop-filter:blur(12px)}.header.scrolled{background:rgba(5,7,11,.91);border-color:var(--line)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand img{height:58px;width:auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.28))}.nav{display:flex;align-items:center;gap:25px;font-size:13px;color:#d8dae0}.nav a{position:relative}.nav a:after{content:"";position:absolute;inset:auto 0 -7px;height:1px;background:#fff;transform:scaleX(0);transition:.2s}.nav a:hover:after{transform:scaleX(1)}.header-actions{display:flex;align-items:center;gap:10px}.lang{display:inline-flex;padding:7px 11px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:#e8e6e2}.cta-small{padding:8px 15px;border-radius:999px;background:#f1efea;color:#080a0e;font-size:12px;font-weight:750}.menu{display:none;background:none;color:#fff;border:0;font-size:24px}
.hero{min-height:100svh;position:relative;display:grid;align-items:end;overflow:hidden}.hero-bg{position:absolute;inset:0;background-image:url('../img/damash-landscape.png');background-size:cover;background-position:center 42%;transform:scale(1.025)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,5,8,.93) 0%,rgba(3,5,8,.72) 38%,rgba(3,5,8,.30) 66%,rgba(3,5,8,.12)),linear-gradient(0deg,#06080d 0%,rgba(6,8,13,.62) 16%,transparent 52%,rgba(6,8,13,.26))}.rtl .hero:after{background:linear-gradient(270deg,rgba(3,5,8,.93) 0%,rgba(3,5,8,.72) 38%,rgba(3,5,8,.30) 66%,rgba(3,5,8,.12)),linear-gradient(0deg,#06080d 0%,rgba(6,8,13,.62) 16%,transparent 52%,rgba(6,8,13,.26))}.hero-content{position:relative;z-index:2;padding:150px 0 90px}.hero-title{font-family:var(--font-en);direction:ltr;font-size:clamp(72px,14vw,176px);letter-spacing:-.075em;line-height:.78;margin:26px 0 22px;font-weight:760}.hero-sub{font-family:var(--font-en);direction:ltr;font-size:clamp(19px,2.2vw,31px);letter-spacing:-.025em;margin:0 0 14px;color:#fff}.hero-fa{font-size:clamp(17px,1.6vw,21px);max-width:680px;color:#e5e5e7}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:999px;padding:11px 21px;font-size:13px;font-weight:750;transition:.2s}.btn-light{background:#fff;color:#07090d}.btn-ghost{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.04);backdrop-filter:blur(8px)}.btn:hover{transform:translateY(-2px)}.hero-note{position:absolute;z-index:2;bottom:28px;inset-inline-end:5vw;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#c6c7cb}
.intro{text-align:center}.intro .display{max-width:1000px;margin-inline:auto}.intro .lead{margin-inline:auto}.manifesto{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:34px}
.heritage{display:grid;grid-template-columns:.88fr 1.12fr;gap:80px;align-items:center}.timeline{display:grid;gap:16px}.time-card{padding:25px 27px;border-radius:22px;border:1px solid var(--line);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.014));box-shadow:0 12px 40px rgba(0,0,0,.12)}.time-card b{display:block;font-family:var(--font-en);font-size:28px;direction:ltr;text-align:start}.time-card span{color:#b6bbc4;font-size:13px}.time-card.active{border-color:rgba(164,119,235,.48);background:linear-gradient(145deg,rgba(119,80,182,.20),rgba(255,255,255,.02))}.heritage-copy h2{font-size:clamp(38px,5vw,68px);line-height:1.22;letter-spacing:-.045em;margin:10px 0 28px}.heritage-copy p{color:#b9bec7;font-size:16px}.heritage-mark{margin-top:28px;padding-inline-start:18px;border-inline-start:2px solid var(--purple-2);font-family:var(--font-en);direction:ltr;font-size:13px;letter-spacing:.06em;color:#aaa}.heritage-mark strong{color:#fff}
.ceo{background:radial-gradient(circle at 15% 30%,rgba(119,80,182,.16),transparent 35%),var(--bg-soft)}.ceo-grid{display:grid;grid-template-columns:.58fr 1.42fr;gap:80px;align-items:start}.ceo-side{position:sticky;top:120px}.ceo-side .display{font-size:clamp(42px,5vw,64px)}.ceo-copy{max-width:860px}.ceo-copy p{color:#c0c4cb;font-size:clamp(16px,1.25vw,18px);line-height:2.15;margin:0 0 22px}.en .ceo-copy p{line-height:1.85}.ceo-copy strong{color:#f6f5f2}.ceo-quote{margin:34px 0;padding:25px 27px;border-inline-start:2px solid var(--purple-2);background:linear-gradient(90deg,rgba(255,255,255,.045),transparent);font-size:22px;font-weight:650;line-height:1.8}.ceo-word{font-family:var(--font-en);direction:ltr;font-size:clamp(58px,9vw,112px);letter-spacing:-.07em;line-height:.95;margin:30px 0;color:#fff}.future-card{margin-top:50px;padding:34px;border:1px solid rgba(164,119,235,.28);background:linear-gradient(135deg,rgba(119,80,182,.13),rgba(255,255,255,.018));border-radius:var(--radius);text-align:center;box-shadow:var(--shadow)}.future-card b{font-family:var(--font-en);font-size:62px;direction:ltr;display:block;color:#c5a5f3}.future-card strong{display:block;font-size:21px}.signoff{margin-top:38px;padding-top:25px;border-top:1px solid var(--line);display:grid;gap:3px;color:#8f95a0;font-size:13px}.signoff strong{color:#e7e5e1}.signoff .name{font-size:16px;color:#fff;font-weight:800}
.ecosystem-head{display:flex;align-items:end;justify-content:space-between;gap:45px;margin-bottom:44px}.ecosystem-head p{max-width:460px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.product{padding:32px;min-height:315px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#111722,#0b0f16);position:relative;overflow:hidden;transition:.25s}.product:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(119,80,182,.18),transparent 70%);inset:auto -70px -90px auto}.product:hover{transform:translateY(-5px);border-color:rgba(164,119,235,.38);box-shadow:var(--shadow)}.product-label{font-family:var(--font-en);direction:ltr;color:#b79be0;font-size:12px;letter-spacing:.16em}.product h3{font-family:var(--font-en);direction:ltr;font-size:31px;letter-spacing:-.035em;margin:42px 0 12px}.product p{color:#aeb4be;max-width:500px}.product-link{display:inline-flex;gap:8px;align-items:center;margin-top:20px;font-size:13px;font-weight:700}.product.featured{background:linear-gradient(145deg,#171225,#0b1018)}
.ai{background:linear-gradient(120deg,#080b11,#140f1f);overflow:hidden}.ai:before{content:"";position:absolute;width:700px;height:700px;border-radius:50%;background:radial-gradient(circle,rgba(141,85,224,.23),transparent 67%);inset:0 auto auto -240px}.ai-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center;position:relative}.ai-copy .display{font-size:clamp(44px,6vw,76px)}.ai-copy p{color:#bbc0c8;font-size:18px}.ai-steps{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ai-step{padding:24px;border-top:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.015)}.ai-step b{font-family:var(--font-en);display:block;direction:ltr;font-size:11px;color:#a77ce6}.ai-step strong{font-family:var(--font-en);direction:ltr;display:block;font-size:22px;margin:5px 0}.ai-step span{color:#8d94a0;font-size:12px}
.insight{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:42px}.insight-card{padding:32px;border:1px solid var(--line);border-radius:24px;background:#0b1017}.insight-card.smart{border-color:rgba(164,119,235,.34);background:linear-gradient(135deg,rgba(119,80,182,.15),rgba(255,255,255,.018))}.insight-card small{font-family:var(--font-en);direction:ltr;color:#989eaa}.insight-card h3{font-size:24px;margin:11px 0}.insight-card p{color:#aeb4be}
.tech{display:grid;grid-template-columns:.85fr 1.15fr;gap:75px;align-items:center}.tech-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.tech-item{padding:22px;border:1px solid var(--line);border-radius:18px;background:#0b1017}.tech-item b{font-family:var(--font-en);direction:ltr;display:block;font-size:19px}.tech-item span{font-family:var(--font-en);direction:ltr;color:#747c89;font-size:11px}.tech-copy p{color:#adb4be}.external-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:45px}.external{padding:24px;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.025);transition:.2s}.external:hover{border-color:rgba(164,119,235,.35);transform:translateY(-3px)}.external b{display:block;font-family:var(--font-en);direction:ltr;font-size:18px}.external span{font-size:12px;color:#8f96a2}
.brand-story{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.brand-image{min-height:560px;border-radius:var(--radius);background:url('../img/damash-landscape.png') center/cover;box-shadow:var(--shadow);position:relative;overflow:hidden}.brand-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,7,10,.42),transparent 55%)}.brand-copy p{color:#b0b6bf}.brand-slogan{font-family:var(--font-en);direction:ltr;font-size:31px;line-height:1.25;margin-top:30px;letter-spacing:-.03em}.brand-slogan em{font-style:normal;color:#b38ae9}
.closing{text-align:center;background:radial-gradient(circle at center,rgba(119,80,182,.20),transparent 58%),#090c12}.closing .display{max-width:1000px;margin-inline:auto}.closing p{margin-inline:auto}.footer{padding:55px 0 28px;border-top:1px solid var(--line);background:#05070b}.footer-top{display:flex;justify-content:space-between;gap:45px;align-items:flex-start}.footer-brand img{height:70px}.footer-brand p{font-family:var(--font-en);direction:ltr;color:#847d8d;margin:7px 0}.footer-links{display:flex;gap:22px;flex-wrap:wrap;font-size:12px;color:#aaa}.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:36px;padding-top:20px;color:#606773;font-size:11px}.footer-bottom span:last-child{font-family:var(--font-en);direction:ltr}
@media(max-width:980px){.nav{display:none}.menu{display:block}.nav.open{display:flex;position:absolute;top:78px;inset-inline:0;padding:22px 5vw;background:rgba(5,7,11,.97);flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.heritage,.ceo-grid,.ai-grid,.tech,.brand-story{grid-template-columns:1fr;gap:44px}.ceo-side{position:static}.cards,.insight{grid-template-columns:1fr}.ecosystem-head{display:block}.ecosystem-head p{margin-top:15px}.brand-image{min-height:430px}.external-strip{grid-template-columns:1fr}.footer-top{flex-direction:column}.header-actions .cta-small{display:none}}
@media(max-width:640px){.section{padding:82px 0}.header{height:70px}.brand img{height:50px}.nav.open{top:70px}.hero-content{padding:130px 0 80px}.hero-title{font-size:68px}.hero-actions{align-items:stretch}.btn{width:100%}.ai-steps,.tech-list{grid-template-columns:1fr}.ceo-copy p{font-size:15.5px}.ceo-quote{font-size:18px}.future-card b{font-size:50px}.cards{gap:13px}.product{min-height:280px}.footer-bottom{flex-direction:column}.display{letter-spacing:-.04em}}

/* ===== v4 typography refinements =====
   Webfonts are self-hosted and declared in assets/css/fonts.css, which is
   linked before this file. Do not add an @import here: an @import placed
   after other rules is invalid CSS and is silently dropped by browsers. */
:root{--font-fa:"Vazirmatn","Segoe UI",Tahoma,Arial,sans-serif;--font-en:"Inter","Aptos","Segoe UI",Arial,sans-serif;--font-display:"Estedad","Vazirmatn",Tahoma,sans-serif}
.display{font-size:clamp(34px,4.3vw,60px);line-height:1.28;letter-spacing:-.04em;font-weight:760}
.rtl .display{letter-spacing:-.025em;font-weight:750}
.tech-copy .display{font-size:clamp(32px,3.6vw,52px);line-height:1.34;max-width:590px}
.ecosystem-head .display,.brand-copy .display{font-size:clamp(34px,4vw,56px)}
.ai-copy .display{font-size:clamp(38px,4.8vw,64px);line-height:1.25}
.ceo-copy>.display{font-size:clamp(38px,4.7vw,64px);line-height:1.35}
.section-title-compact{font-size:clamp(38px,4.6vw,62px)!important}
.hero-title-fa{font-family:var(--font-fa);font-size:clamp(76px,13vw,166px);font-weight:800;letter-spacing:-.07em;line-height:.84}
.ceo-word-fa{font-family:var(--font-fa);font-weight:800;letter-spacing:-.06em}
.product-title-fa{font-family:var(--font-display)!important;direction:rtl!important;text-align:start!important;font-weight:750;letter-spacing:-.03em!important}
.heritage-mark-fa{font-family:var(--font-fa);direction:rtl;letter-spacing:0;font-size:14px}
.rtl .tech-copy p,.rtl .lead,.rtl .heritage-copy p,.rtl .brand-copy p{line-height:2}

/* ===== Damash Consortium rotating venture carousel ===== */
.consortium{overflow:hidden;background:radial-gradient(circle at 70% 25%,rgba(119,80,182,.14),transparent 32%),var(--bg)}
.consortium-head{display:grid;grid-template-columns:1fr auto;gap:55px;align-items:end;margin-bottom:54px}
.consortium-head .lead{max-width:780px;margin-bottom:0;color:#b9bec7}
.consortium-badge{width:120px;height:120px;border-radius:50%;display:grid;place-content:center;text-align:center;border:1px solid rgba(164,119,235,.33);background:radial-gradient(circle,rgba(119,80,182,.20),rgba(255,255,255,.02));box-shadow:0 18px 65px rgba(0,0,0,.2)}
.consortium-badge span{font-family:var(--font-en);font-size:42px;font-weight:700;line-height:1;color:#c5a5f3}.consortium-badge small{color:#979daa;font-size:11px;margin-top:7px}
.consortium-carousel{display:grid;grid-template-columns:50px minmax(0,1fr) 50px;align-items:center;gap:12px;position:relative}
.carousel-stage{height:260px;position:relative;perspective:1100px;overflow:hidden;isolation:isolate}
.venture-card{position:absolute;top:50%;left:50%;width:min(300px,72vw);height:190px;padding:26px;border:1px solid var(--line);border-radius:26px;background:linear-gradient(145deg,rgba(19,25,37,.98),rgba(9,13,20,.98));box-shadow:0 22px 65px rgba(0,0,0,.30);display:flex;flex-direction:column;justify-content:flex-end;transition:transform .62s cubic-bezier(.2,.8,.2,1),opacity .45s,border-color .4s,filter .4s;transform:translate(-50%,-50%) scale(.72);opacity:0;pointer-events:none;filter:saturate(.5)}
.venture-card strong{font-size:24px;line-height:1.35}.venture-card small{color:#8e96a2;font-size:12px;margin-top:6px}.venture-no{position:absolute;top:21px;inset-inline-end:22px;font-family:var(--font-en);font-size:11px;letter-spacing:.12em;color:#9d78d8}
.venture-card.is-active{transform:translate(-50%,-50%) translateX(0) scale(1);opacity:1;z-index:5;pointer-events:auto;border-color:rgba(164,119,235,.48);filter:none;background:linear-gradient(145deg,#181226,#0d121b)}
.venture-card.is-left{transform:translate(-50%,-50%) translateX(-105%) scale(.82) rotateY(16deg);opacity:.52;z-index:3;pointer-events:auto}
.venture-card.is-right{transform:translate(-50%,-50%) translateX(105%) scale(.82) rotateY(-16deg);opacity:.52;z-index:3;pointer-events:auto}
.venture-card.is-far-left{transform:translate(-50%,-50%) translateX(-190%) scale(.66) rotateY(25deg);opacity:.14;z-index:1}
.venture-card.is-far-right{transform:translate(-50%,-50%) translateX(190%) scale(.66) rotateY(-25deg);opacity:.14;z-index:1}
.rtl .venture-card.is-left{transform:translate(-50%,-50%) translateX(105%) scale(.82) rotateY(-16deg)}.rtl .venture-card.is-right{transform:translate(-50%,-50%) translateX(-105%) scale(.82) rotateY(16deg)}.rtl .venture-card.is-far-left{transform:translate(-50%,-50%) translateX(190%) scale(.66) rotateY(-25deg)}.rtl .venture-card.is-far-right{transform:translate(-50%,-50%) translateX(-190%) scale(.66) rotateY(25deg)}
.carousel-arrow{width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff;font-size:30px;line-height:1;cursor:pointer;transition:.2s;z-index:8}.carousel-arrow:hover{background:#fff;color:#080a0e;transform:scale(1.05)}
.venture-focus{margin:22px auto 0;width:min(860px,100%);border-top:1px solid var(--line);padding-top:24px;display:flex;justify-content:space-between;gap:30px;align-items:end}.venture-focus-kicker{font-size:11px;letter-spacing:.09em;color:#a47be4}.venture-focus h3{font-size:27px;margin:3px 0 4px}.venture-focus p{margin:0;color:#9ea5b0}.venture-visit{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding:12px 0}.venture-visit span{font-family:var(--font-en);direction:ltr;color:#818996;font-size:12px}.venture-visit b{font-size:13px}.carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:24px}.carousel-dot{width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#3d4350;cursor:pointer;transition:.25s}.carousel-dot.active{width:24px;border-radius:99px;background:#a477eb}
@media(max-width:900px){.display{font-size:clamp(32px,7vw,50px)}.consortium-head{grid-template-columns:1fr}.consortium-badge{display:none}.carousel-stage{height:235px}.venture-card{height:172px}.venture-card.is-left,.rtl .venture-card.is-left{transform:translate(-50%,-50%) translateX(82%) scale(.74);opacity:.34}.venture-card.is-right,.rtl .venture-card.is-right{transform:translate(-50%,-50%) translateX(-82%) scale(.74);opacity:.34}.venture-focus{align-items:flex-start;flex-direction:column;gap:7px}.venture-visit{align-items:flex-start}}
@media(max-width:600px){.consortium-carousel{grid-template-columns:38px minmax(0,1fr) 38px;gap:2px}.carousel-arrow{width:36px;height:36px;font-size:24px}.carousel-stage{height:215px}.venture-card{width:min(270px,78vw);height:165px;padding:22px}.venture-card.is-left,.venture-card.is-right,.rtl .venture-card.is-left,.rtl .venture-card.is-right{opacity:.08;pointer-events:none}.venture-focus h3{font-size:23px}}


/* ===== v5: Persian display typography ===== */
/* Estedad carries the Persian headings; Vazirmatn is the body/UI face. */
.rtl .display,
.rtl .heritage-copy h2,
.rtl .ceo-side .display,
.rtl .ceo-copy > .display,
.rtl .ecosystem-head .display,
.rtl .ai-copy .display,
.rtl .tech-copy .display,
.rtl .brand-copy .display,
.rtl .closing .display,
.rtl .section-title-compact,
.rtl .venture-focus h3,
.rtl .insight-card h3 {
  font-family:var(--font-display) !important;
  font-weight:700;
  letter-spacing:0 !important;
}
.rtl .display,
.rtl .section-title-compact {
  line-height:1.36;
}
.rtl .tech-copy .display {
  font-size:clamp(31px,3.25vw,48px);
  line-height:1.42;
}
.rtl .hero-title-fa,
.rtl .ceo-word-fa {
  font-family:var(--font-display) !important;
  letter-spacing:-.02em !important;
}
/* Keep purely Latin technology names in the Latin UI face.
   Product titles and AI step labels are Persian or mixed and are handled
   by the v13 display-face rules below. */
.rtl .tech-item b {
  font-family:var(--font-en) !important;
}

/* ===== v6: Damash signature visual language ===== */
:root{
  --damash-violet:#8f68c7;
  --damash-violet-soft:#c7a8ee;
  --damash-ink:#07090e;
}

/* Reduce oversized Persian headings and make B-family typography calmer */
.rtl .display,
.rtl .section-title-compact{
  font-size:clamp(30px,3.25vw,46px) !important;
  line-height:1.55 !important;
  font-weight:700 !important;
}
.rtl .intro .display{font-size:clamp(32px,3.7vw,52px)!important}
.rtl .ceo-copy>.display{font-size:clamp(31px,3.6vw,50px)!important}
.rtl .ai-copy .display{font-size:clamp(32px,3.75vw,52px)!important}
.rtl .tech-copy .display{font-size:clamp(28px,3vw,42px)!important;line-height:1.62!important}
.rtl .ecosystem-head .display,.rtl .brand-copy .display{font-size:clamp(30px,3.3vw,46px)!important}
.rtl .closing .display{font-size:clamp(32px,3.7vw,52px)!important}
.rtl .heritage-copy h2{font-size:clamp(30px,3.3vw,46px)!important;line-height:1.55!important}

/* Hero: cinematic but restrained */
.hero{isolation:isolate;min-height:100svh}
.hero-bg{transform:scale(1.025);animation:heroBreath 18s ease-in-out infinite alternate;will-change:transform}
@keyframes heroBreath{from{transform:scale(1.025) translate3d(0,0,0)}to{transform:scale(1.075) translate3d(-.6%,.35%,0)}}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,8,13,.96) 0%,rgba(6,8,13,.74) 38%,rgba(6,8,13,.18) 78%),linear-gradient(0deg,#07090e 0%,rgba(7,9,14,.12) 27%,rgba(7,9,14,.1) 72%,rgba(7,9,14,.62) 100%);pointer-events:none}
.rtl .hero:after{background:linear-gradient(270deg,rgba(6,8,13,.96) 0%,rgba(6,8,13,.72) 39%,rgba(6,8,13,.16) 78%),linear-gradient(0deg,#07090e 0%,rgba(7,9,14,.12) 27%,rgba(7,9,14,.1) 72%,rgba(7,9,14,.62) 100%)}
.hero-clouds{position:absolute;inset:auto -10% -12% -10%;height:43%;z-index:0;background:radial-gradient(ellipse at 15% 65%,rgba(255,255,255,.08),transparent 50%),radial-gradient(ellipse at 65% 75%,rgba(205,216,237,.08),transparent 54%),radial-gradient(ellipse at 95% 45%,rgba(255,208,163,.08),transparent 52%);filter:blur(22px);animation:cloudDrift 14s ease-in-out infinite alternate;pointer-events:none}
@keyframes cloudDrift{from{transform:translateX(-2%)}to{transform:translateX(3%)}}

.hero-content{max-width:1240px;position:relative;z-index:3;padding-top:160px;padding-bottom:120px}
.hero-title{filter:drop-shadow(0 12px 34px rgba(0,0,0,.34))}
.rtl .hero-title-fa{font-size:clamp(72px,10.8vw,138px)!important;line-height:.95!important;font-weight:700!important}
.hero-sub{letter-spacing:.02em}
.hero-fa{max-width:680px;font-size:clamp(16px,1.35vw,20px);line-height:2.05;color:#e5e2e9}

/* Damash logo horizontal-line motif, built in CSS */
.damash-lines{position:absolute;z-index:2;top:20%;inset-inline-end:3vw;width:min(38vw,560px);height:300px;opacity:.22;pointer-events:none;mix-blend-mode:screen;filter:drop-shadow(0 0 28px rgba(154,113,212,.13))}
.damash-lines i{display:block;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(211,184,246,.08) 14%,rgba(213,186,248,.78) 72%,transparent 100%);margin:24px 0;transform-origin:right center;animation:linePulse 6s ease-in-out infinite}
.damash-lines i:nth-child(2){width:93%;animation-delay:.25s}.damash-lines i:nth-child(3){width:82%;animation-delay:.5s}.damash-lines i:nth-child(4){width:96%;animation-delay:.75s}.damash-lines i:nth-child(5){width:74%;animation-delay:1s}.damash-lines i:nth-child(6){width:88%;animation-delay:1.25s}.damash-lines i:nth-child(7){width:64%;animation-delay:1.5s}
@keyframes linePulse{0%,100%{opacity:.42;transform:scaleX(.95)}50%{opacity:1;transform:scaleX(1.03)}}
.rtl .damash-lines{inset-inline-end:auto;inset-inline-start:1vw;transform:scaleX(-1)}

.scroll-cue{position:absolute;z-index:5;bottom:34px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;color:#b7bcc6;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.scroll-cue i{display:block;width:1px;height:38px;background:linear-gradient(#c6a3ef,transparent);animation:scrollCue 1.8s ease-in-out infinite}
@keyframes scrollCue{0%,100%{transform:scaleY(.55);transform-origin:top;opacity:.45}50%{transform:scaleY(1);opacity:1}}

/* Signature visual line for content sections */
.section.reveal{position:relative}
.section.reveal>.container{position:relative}
.section.reveal>.container:before{content:"";position:absolute;top:-26px;inset-inline-start:0;width:72px;height:1px;background:linear-gradient(90deg,var(--damash-violet),transparent);opacity:.5}
.rtl .section.reveal>.container:before{background:linear-gradient(270deg,var(--damash-violet),transparent)}

/* More refined surfaces */
.product,.tech-item,.insight-card,.time-card,.future-card,.venture-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 55px rgba(0,0,0,.13)}
.product:hover,.tech-item:hover,.insight-card:hover{border-color:rgba(164,119,235,.38);transform:translateY(-3px);transition:.28s ease}
.ai{background:radial-gradient(circle at 18% 20%,rgba(123,77,187,.14),transparent 32%),linear-gradient(180deg,#090b12,#07090e)}

/* Scroll reveal, progressive enhancement */
.js .reveal{opacity:0;transform:translateY(28px);transition:opacity .85s ease,transform .85s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in-view{opacity:1;transform:none}

/* Consortium stays visually at the end of the narrative */
.consortium{border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);padding-top:clamp(88px,9vw,128px);padding-bottom:clamp(88px,9vw,128px)}
.consortium-head .display{margin-bottom:16px}
.venture-card.is-active{box-shadow:0 28px 90px rgba(32,11,65,.35),inset 0 1px 0 rgba(255,255,255,.04)}

@media(max-width:900px){
  .damash-lines{width:62vw;opacity:.12;top:16%}
  .hero-content{padding-top:130px}
  .rtl .hero-title-fa{font-size:clamp(66px,20vw,112px)!important}
  .scroll-cue{display:none}
}
@media(max-width:600px){
  .damash-lines{display:none}
  .hero:after,.rtl .hero:after{background:linear-gradient(0deg,#07090e 0%,rgba(7,9,14,.5) 48%,rgba(7,9,14,.62) 100%),linear-gradient(270deg,rgba(6,8,13,.78),rgba(6,8,13,.25))}
  .hero-content{padding-top:122px;padding-bottom:80px}
  .rtl .display,.rtl .section-title-compact{font-size:clamp(28px,9.5vw,40px)!important}
  .rtl .tech-copy .display{font-size:clamp(27px,9vw,38px)!important}
}
@media(prefers-reduced-motion:reduce){
  .hero-bg,.hero-clouds,.damash-lines i,.scroll-cue i{animation:none!important}
  .js .reveal{opacity:1;transform:none;transition:none}
}


/* ===== v7: Consortium visual portfolio ===== */
.venture-card{height:236px!important;padding:0 0 18px!important;overflow:hidden!important;justify-content:flex-start!important;background:linear-gradient(180deg,#12161f,#0a0d13)!important}
.venture-visual{display:block;width:100%;height:126px;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:14px;background:#11151d}
.venture-visual img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .45s ease;filter:saturate(.82) brightness(.88)}
.venture-card strong,.venture-card small,.venture-card .venture-no{margin-inline:22px}
.venture-card strong{font-size:20px;line-height:1.45}
.venture-card small{margin-top:4px;display:block;color:#9ea4af;line-height:1.6;max-width:85%}
.venture-card .venture-no{position:absolute;top:138px;inset-inline-end:0;font-family:var(--font-en);font-size:10px;color:#8f68c7}
.venture-card.is-active .venture-visual img{transform:scale(1.045);filter:saturate(1) brightness(1)}
.venture-card.is-active{height:258px!important}
.carousel-stage{height:316px!important}
.venture-focus{margin-top:12px}
.consortium-head{margin-bottom:42px}
.consortium .lead{max-width:860px}
@media(max-width:900px){.carousel-stage{height:288px!important}.venture-card{height:218px!important}.venture-card.is-active{height:238px!important}.venture-visual{height:112px}}
@media(max-width:600px){.carousel-stage{height:272px!important}.venture-card{height:214px!important}.venture-card.is-active{height:232px!important}.venture-card strong{font-size:18px}.venture-card small{font-size:11px}}

/* ===== v8: official consortium brand artwork ===== */
.venture-visual{
  background:linear-gradient(145deg,#f5f4ef,#e9e8e2)!important;
  padding:10px;
}
.venture-visual img{
  object-fit:contain!important;
  border-radius:8px;
  filter:none!important;
}
.venture-card.is-active .venture-visual img{
  transform:scale(1.025);
  filter:none!important;
}
.venture-card--pending{cursor:default}
.venture-card--pending.is-active{border-color:rgba(255,255,255,.16)!important}

.venture-visit.is-disabled{opacity:.55;pointer-events:none}


/* ===== v9 Hero readability and Persian localization ===== */
.hero-copy,
.hero-content,
.hero__content{
  position:relative;
  z-index:3;
}
.hero p,
.hero .hero-fa,
.hero .hero-subtitle,
.hero .hero-description{
  color:#fff !important;
  text-shadow:0 2px 18px rgba(0,0,0,.72), 0 1px 3px rgba(0,0,0,.9);
}
.hero .hero-fa,
.hero .hero-description{
  display:inline-block;
  max-width:760px;
  padding:12px 16px;
  border-radius:14px;
  background:linear-gradient(90deg,rgba(4,7,12,.72),rgba(4,7,12,.28));
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.hero h1{
  color:#fff !important;
  text-shadow:0 4px 28px rgba(0,0,0,.52);
}
.hero .eyebrow,
.hero .hero-en{
  color:#f3eaff !important;
  text-shadow:0 2px 14px rgba(0,0,0,.6);
}
@media(max-width:700px){
  .hero .hero-fa,
  .hero .hero-description{
    padding:10px 12px;
    border-radius:12px;
  }
}

/* v10 — Client Trust Ribbon */
.customers{position:relative;overflow:hidden;padding-top:clamp(80px,9vw,135px);padding-bottom:clamp(85px,10vw,150px)}
.customers:before{content:"";position:absolute;inset:12% -20% auto;height:360px;background:radial-gradient(ellipse at center,rgba(128,86,194,.11),transparent 65%);pointer-events:none}
.customers-head{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(320px,1fr);gap:60px;align-items:end;margin-bottom:42px}
.customers-head p{max-width:680px;margin:0;color:#aaaeb8;font-size:16px;line-height:2}
.customers-title{margin:.25rem 0 0;font-size:clamp(34px,4.2vw,58px)!important}
.customer-stage{position:relative;padding:34px 0 22px;border-top:1px solid rgba(255,255,255,.09);border-bottom:1px solid rgba(255,255,255,.09)}
.customer-marquee{overflow:hidden;padding:18px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.customer-track{display:flex;width:max-content;gap:20px;animation:customerFlow 34s linear infinite;will-change:transform}
.customer-marquee:hover .customer-track{animation-play-state:paused}
.customer-logo{width:clamp(260px,26vw,390px);height:150px;margin:0;padding:18px 24px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:18px;background:rgba(255,255,255,.97);border:1px solid rgba(16,10,28,.08);box-shadow:0 14px 45px rgba(0,0,0,.16);transition:transform .35s ease,box-shadow .35s ease,opacity .35s ease;opacity:.82}
.customer-logo img{width:100%;height:100%;object-fit:contain;display:block}
.customer-logo:hover{opacity:1;transform:translateY(-6px) scale(1.015);box-shadow:0 24px 60px rgba(0,0,0,.24)}
.customer-caption{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:15px;color:#777c87;font-size:11px}
.customer-caption span{width:44px;height:1px;background:linear-gradient(to right,transparent,rgba(255,255,255,.28))}
.customer-caption span:last-child{background:linear-gradient(to right,rgba(255,255,255,.28),transparent)}
@keyframes customerFlow{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 10px))}}
html[dir="rtl"] .customer-track{animation-name:customerFlowRTL}
@keyframes customerFlowRTL{from{transform:translateX(calc(-50% - 10px))}to{transform:translateX(0)}}
@media(max-width:800px){.customers-head{grid-template-columns:1fr;gap:18px;margin-bottom:26px}.customer-logo{width:270px;height:125px;padding:14px 18px}.customer-track{gap:14px;animation-duration:28s}}
@media(prefers-reduced-motion:reduce){.customer-track{animation:none;transform:none}.customer-marquee{overflow-x:auto;mask-image:none;-webkit-mask-image:none}}


/* ===== v11 — Persian localization + customer ticker first-paint fix ===== */
.customer-track{
  --cm-half:10px;
  padding-inline:0 !important;
  animation:customerFlowV11 40s linear infinite !important;
  transform:translateX(0);
}
html[dir="rtl"] .customer-track{
  animation-name:customerFlowRTLV11 !important;
}
@keyframes customerFlowV11{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - var(--cm-half)))}
}
@keyframes customerFlowRTLV11{
  from{transform:translateX(0)}
  to{transform:translateX(calc(50% + var(--cm-half)))}
}
@media(max-width:800px){
  .customer-track{--cm-half:7px}
}
@media(prefers-reduced-motion:reduce){
  .customer-track{animation:none !important;transform:none}
}
.brand-slogan-fa{
  font-family:var(--font-display) !important;
  line-height:1.45;
  letter-spacing:0 !important;
}

/* ===== v12 — Contact section ===== */
.contact{background:radial-gradient(circle at 20% 20%,rgba(119,80,182,.13),transparent 38%),var(--bg-soft);border-top:1px solid rgba(255,255,255,.07)}
.contact-head{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:44px}
.contact-head .lead{max-width:460px;margin:0;color:#b9bec7}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.contact-card{padding:32px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#111722,#0b0f16);box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 55px rgba(0,0,0,.13);transition:.28s ease}
.contact-card:hover{transform:translateY(-3px);border-color:rgba(164,119,235,.38)}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;line-height:1;border:1px solid rgba(164,119,235,.28);background:linear-gradient(135deg,rgba(119,80,182,.18),rgba(255,255,255,.02));color:#c5a5f3}
.contact-icon svg{width:21px;height:21px;display:block}
.contact-card h3{font-size:20px;margin:18px 0 10px;font-weight:750}
.contact-card p{margin:0;color:#c0c4cb;line-height:2}
.contact-meta{display:block;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:#878d99;font-size:12px}
.contact-value{font-family:var(--font-en);font-size:19px;letter-spacing:.01em;color:#f5f4f1;display:inline-block;transition:.2s}
.contact-value:hover{color:#c5a5f3}
.footer-contact{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line);color:#8a909b;font-size:12px}
.footer-contact a{color:#d3d5da;font-family:var(--font-en)}
.footer-contact a:hover{color:#c5a5f3}
@media(max-width:980px){.contact-grid{grid-template-columns:1fr}.contact-head{display:block}.contact-head .lead{margin-top:15px;max-width:none}}

/* ===== v13 — self-hosted type system =====
   Estedad  → display / headings (Persian voice of the brand)
   Vazirmatn→ body, lead, UI, navigation, small print
   Inter    → Latin product names, numbers, technology labels
   All three are variable fonts, so weights below are free. */

/* Persian headings that are not .display */
.rtl .customers-title,
.rtl .contact-card h3,
.rtl .venture-card strong,
.rtl .venture-focus h3,
.rtl .ceo-quote,
.rtl .future-card strong,
.rtl .signoff .name,
.rtl .ai-step strong,
.rtl .product h3{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:0;
}
/* Timeline headline is Persian, not Latin — override the base .time-card b rule */
.rtl .time-card b{
  font-family:var(--font-display);
  direction:rtl;
  font-weight:700;
  font-size:26px;
}
.rtl .time-card span,
.rtl .tech-item span,
.rtl .ai-step span,
.rtl .venture-card small{font-family:var(--font-fa);font-weight:400}

/* Hero — the one place the display face runs at full scale */
.rtl .hero-title-fa{font-weight:800!important}
.rtl .hero-sub,.rtl .hero-fa{font-family:var(--font-fa)}
.rtl .ceo-word-fa{font-weight:800}

/* Eyebrows, kickers and small caps labels stay in the UI face */
.eyebrow,.section-kicker,.venture-focus-kicker,.product-label,.hero-note,.scroll-cue,.customer-caption,.contact-meta,.footer-bottom{
  font-family:var(--font-fa);
  font-weight:600;
}
.rtl .eyebrow,.rtl .section-kicker{letter-spacing:.04em}

/* Long-form reading: the CEO letter and leads get the body face and a calmer rhythm */
.rtl .ceo-copy p,.rtl .lead,.rtl .hero-fa,.rtl .contact-card p,.rtl .customers-head p{
  font-family:var(--font-fa);
  font-weight:400;
}
.rtl .ceo-quote{font-weight:700;line-height:1.85}

/* Latin stays Inter — only elements whose content is genuinely Latin or numeric.
   Persian-content elements are deliberately excluded: Inter has no Arabic
   glyphs, so forcing it there silently falls back to Segoe UI/Tahoma. */
.rtl .tech-item b,.rtl .ai-step b,.rtl .external b,.rtl .venture-no,
.rtl .venture-visit span,.rtl .future-card b,.rtl .contact-value,
.rtl .footer-contact a,.rtl .insight-card small{
  font-family:var(--font-en);
}

/* Variable-font optical tuning */
.rtl .display,.rtl .hero-title-fa,.rtl .customers-title,.rtl .section-title-compact{
  font-feature-settings:"ss01" 1;
  text-wrap:balance;
}
body{font-synthesis-weight:none}

/* Consortium badge shows a Persian numeral (۱۰) — Inter has no Persian digits */
.rtl .consortium-badge span{font-family:var(--font-display);font-weight:800}
.rtl .consortium-badge small{font-family:var(--font-fa)}

/* Footer taglines are Persian but were inheriting the Latin (ltr) treatment */
.rtl .footer-brand p,
.rtl .footer-bottom span:last-child{font-family:var(--font-fa);direction:rtl}


/* ===== v14 — bidi correctness =====
   The base stylesheet was written LTR-first: a number of elements carry
   `direction:ltr` because their English content is Latin. On the Persian page
   the same elements hold Persian text, so the LTR base direction pushed
   trailing punctuation to the wrong side and aligned the box to the left.
   Two rules below, split by what the element actually contains. */

/* (a) Persian content that was inheriting the Latin ltr treatment.
       Base direction must follow the page, or the sentence-final «.» and «؛»
       land on the right of the phrase instead of the left. */
.rtl .hero-sub,
.rtl .hero-title-fa,
.rtl .ceo-word-fa,
.rtl .brand-slogan-fa,
.rtl .heritage-mark-fa,
.rtl .ai-step strong,
.rtl .tech-item span,
.rtl .product-label{
  direction:rtl;
  text-align:start;
}

/* (b) Genuinely Latin or numeric labels. They keep an LTR run so the content
       reads as authored, but are isolated from the surrounding Persian and
       aligned to the RTL start edge (right) instead of drifting left. */
.rtl .tech-item b,
.rtl .external b,
.rtl .ai-step b,
.rtl .insight-card small,
.rtl .venture-visit span{
  direction:ltr;
  unicode-bidi:isolate;
  text-align:right;
}
/* Centred inside its card — alignment comes from .future-card, not from here.
   The run stays LTR: in an RTL base the «→» between two numbers resolves to
   R and would render the pair as "50 → 25". */
.rtl .future-card b{
  direction:ltr;
  unicode-bidi:isolate;
  text-align:center;
}

/* Latin/numeric fragments embedded in Persian sentences: isolate them so a
   neighbouring comma or parenthesis cannot be absorbed into the Latin run. */
.rtl bdi,
.rtl .contact-value,
.rtl .footer-contact a{unicode-bidi:isolate}

/* Directional decoration that was still mirrored the LTR way */
.rtl .ceo-quote{background:linear-gradient(270deg,rgba(255,255,255,.045),transparent)}
.rtl .product:before{inset:auto auto -90px -70px}
.rtl .ai:before{inset:0 -240px auto auto}
.rtl .customer-caption span{background:linear-gradient(to left,transparent,rgba(255,255,255,.28))}
.rtl .customer-caption span:last-child{background:linear-gradient(to left,rgba(255,255,255,.28),transparent)}

/* ===== e-Namad trust seal =====
   The seal image ships with a light background, so it sits on a white plate
   to stay legible on the near-black footer. Fixed height keeps the row from
   shifting while the remote logo loads.
   The row aligns to the inline end — the left edge in the RTL page, mirroring
   to the right on the LTR one, the same way .footer-links already sits. */
.footer-seals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:14px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
.footer-seal{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:12px;background:#fff;line-height:0;transition:.2s}
.footer-seal:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.35)}
.footer-seal img{height:88px;width:auto;display:block}
/* The footer already has a contact rule above it in the Persian page; drop the
   duplicated divider so the two blocks read as one group. */
.footer-contact + .footer-seals{border-top:0;margin-top:16px;padding-top:0}
@media(max-width:640px){.footer-seal img{height:76px}}
