
@font-face{
  font-family:"Vazirmatn";
  src:url("/assets/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("/assets/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-style:normal;font-weight:500;font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("/assets/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-style:normal;font-weight:700;font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/assets/fonts/inter/Inter_18pt-Regular.ttf") format("truetype");
  font-style:normal;font-weight:400;font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/assets/fonts/inter/Inter_18pt-Medium.ttf") format("truetype");
  font-style:normal;font-weight:500;font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/assets/fonts/inter/Inter_18pt-SemiBold.ttf") format("truetype");
  font-style:normal;font-weight:600;font-display:swap;
}

:root{
  --bg:#f6f4ef;
  --surface:#ffffff;
  --ink:#111418;
  --muted:#69737d;
  --line:#ddd9d1;
  --blue:#1f4e79;
  --blue-2:#173b5c;
  --bronze:#a77a45;
  --bronze-soft:#e8dccd;
  --success:#1f7a57;
  --danger:#a23b3b;
  --shadow:0 24px 70px rgba(17,20,24,.10);
  --shadow-soft:0 18px 50px rgba(17,20,24,.07);
  --radius-lg:28px;
  --radius-md:18px;
  --container:1180px;
}

/* V1.3 — RTL mobile viewport hardening */
html, body{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden !important;
  position:relative;
}
body{
  margin:0 !important;
}
.site-shell,
main,
header,
footer,
section{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
}
html[dir="rtl"] body{
  direction:rtl;
}
html[dir="rtl"] .site-shell{
  direction:rtl;
}
img, svg, video, canvas, iframe{
  max-width:100%;
}


*{box-sizing:border-box}
html{scroll-behavior:smooth;width:100%;max-width:100%;overflow-x:hidden}
body{
  margin:0;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
  overscroll-behavior-x:none;
  background:var(--bg);
  color:var(--ink);
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  line-height:1.9;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
html[lang="en"] body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.72;
}
html[lang="fa"] body,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] button{
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif !important;
}
img{max-width:100%;display:block}
a{color:inherit}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid rgba(31,78,121,.25);outline-offset:3px}

.site-shell{width:100%;max-width:100%;overflow-x:hidden}
.container{width:min(calc(100% - 40px),var(--container));max-width:var(--container);margin-inline:auto}

.topbar{
  position:absolute;
  inset-inline:0;
  top:0;
  z-index:20;
  padding:24px 0;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand-mini{
  display:flex;
  align-items:center;
  gap:13px;
  text-decoration:none;
  color:#fff;
}
.brand-mini img{
  width:46px;height:46px;object-fit:contain;
  border-radius:12px;
}
.brand-mini span{
  font-family:"Inter",sans-serif;
  font-size:.76rem;
  letter-spacing:.16em;
  font-weight:600;
}
.lang-switch{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  padding:8px 14px;
  min-height:38px;
  border-radius:999px;
  font-size:.82rem;
  transition:.25s ease;
}
.lang-switch:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.45)}

.hero{
  position:relative;
  min-height:790px;
  display:grid;
  align-items:end;
  background:#0e1720;
  color:#fff;
}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(90deg, rgba(14,23,32,.20) 0%, rgba(14,23,32,.56) 42%, rgba(14,23,32,.94) 100%);
  pointer-events:none;
}
html[dir="ltr"] .hero::after{
  background:linear-gradient(270deg, rgba(14,23,32,.20) 0%, rgba(14,23,32,.56) 42%, rgba(14,23,32,.94) 100%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:180px;
  background:linear-gradient(to top,rgba(14,23,32,.40),transparent);
  z-index:1;
  pointer-events:none;
}
.hero-media{position:absolute;inset:0}
.hero-media img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 34%;
}
.hero-inner{
  position:relative;z-index:2;
  padding:170px 0 92px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,610px);
  gap:80px;
  align-items:end;
}
html[dir="ltr"] .hero-inner{
  grid-template-columns:minmax(360px,610px) minmax(0,1fr);
}
.hero-copy{
  grid-column:2;
  text-align:right;
  padding-right:28px;
  border-right:2px solid rgba(167,122,69,.85);
}
html[dir="ltr"] .hero-copy{
  grid-column:1;
  text-align:left;
  padding-right:0;
  padding-left:28px;
  border-right:0;
  border-left:2px solid rgba(167,122,69,.85);
}
.eyebrow{
  margin:0 0 18px;
  color:#d7dde3;
  font-size:.98rem;
  font-weight:500;
}
.hero h1{
  margin:0;
  font-size:clamp(2.25rem,4.5vw,4.55rem);
  line-height:1.24;
  letter-spacing:-.035em;
  max-width:15ch;
}
html[lang="fa"] .hero h1{margin-right:0;margin-left:auto}
html[lang="en"] .hero h1{line-height:1.08;max-width:13ch}
.hero-lead{
  margin:28px 0 0;
  max-width:64ch;
  color:#e2e8ed;
  font-size:clamp(1rem,1.35vw,1.16rem);
}
.hero-intro{
  margin:14px 0 0;
  max-width:67ch;
  color:#bfc9d2;
  font-size:.98rem;
}

.section{
  position:relative;
  padding:108px 0;
}
.section::before{
  content:"05";
  position:absolute;
  top:55px;
  inset-inline-end:max(20px,calc((100vw - var(--container))/2));
  font-family:"Inter",sans-serif;
  font-size:clamp(5rem,12vw,11rem);
  line-height:1;
  font-weight:600;
  color:rgba(17,20,24,.035);
  pointer-events:none;
}
.section-kicker{
  margin:0 0 11px;
  color:var(--bronze);
  font-family:"Inter",sans-serif;
  letter-spacing:.13em;
  font-size:.76rem;
  font-weight:600;
  text-transform:uppercase;
}
html[lang="fa"] .section-kicker,
html[lang="fa"] .section h2,
html[lang="fa"] .section-intro{
  text-align:right;
}
.section h2{
  position:relative;
  margin:0;
  font-size:clamp(2.05rem,3.3vw,3.2rem);
  line-height:1.35;
  letter-spacing:-.025em;
}
html[lang="en"] .section h2{line-height:1.12}
.section-intro{
  position:relative;
  margin:18px 0 0;
  max-width:760px;
  color:var(--muted);
  font-size:1.05rem;
}
html[lang="fa"] .section-intro{margin-left:auto}

.principles{
  position:relative;
  margin-top:50px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.principle{
  min-width:0;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:10px 18px;
  align-items:start;
  padding:28px 28px 26px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(221,217,209,.95);
  border-radius:22px;
  box-shadow:0 1px 0 rgba(255,255,255,.85) inset;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.principle:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
  border-color:#cfc8bd;
}
.principle:last-child{grid-column:1/-1}
.principle-num{
  grid-column:1;
  color:var(--bronze);
  font-family:"Inter",sans-serif;
  font-size:.90rem;
  font-weight:600;
  padding-top:4px;
}
.principle h3{
  grid-column:2;
  margin:0;
  font-size:1.38rem;
  line-height:1.55;
}
html[lang="fa"] .principle h3,
html[lang="fa"] .principle p{text-align:right}
html[lang="en"] .principle h3{line-height:1.25}
.principle p{
  grid-column:2;
  margin:0;
  color:var(--muted);
}
.principle strong{
  display:block;
  margin-top:12px;
  color:var(--ink);
  font-weight:700;
}

.system-section{padding:0 0 110px}
.system-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 90% 15%,rgba(31,78,121,.35),transparent 30%),
    linear-gradient(145deg,#10161c,#0c1117);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:48px;
  box-shadow:var(--shadow);
}
.system-card::after{
  content:"";
  position:absolute;
  width:220px;height:220px;
  border:1px solid rgba(167,122,69,.12);
  border-radius:50%;
  inset:auto -70px -100px auto;
}
.system-line{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  direction:ltr;
  width:100%;
  font-family:"Inter",sans-serif;
  font-size:clamp(.67rem,.88vw,.88rem);
  letter-spacing:.035em;
  color:#d9e1e7;
}
.system-line .node{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.025);
  border-radius:999px;
  white-space:nowrap;
}
.system-line .arrow{
  color:var(--bronze);
  flex:0 0 auto;
}
.system-card h2{
  position:relative;
  z-index:1;
  margin:30px 0 0;
  font-size:clamp(1.95rem,3.2vw,3rem);
  line-height:1.35;
}
html[lang="fa"] .system-card h2{text-align:right}
html[lang="en"] .system-card h2{line-height:1.15;text-align:left}

.contact-section{
  padding:100px 0;
  background:
    linear-gradient(180deg,#f1f3f4 0%,#eef1f3 100%);
  border-top:1px solid #e4e7e9;
}
.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(430px,1.18fr);
  gap:28px;
  align-items:stretch;
}
.contact-copy{
  position:relative;
  overflow:hidden;
  min-width:0;
  padding:42px;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(circle at 15% 10%,rgba(167,122,69,.20),transparent 32%),
    #10202e;
  color:#fff;
  box-shadow:var(--shadow-soft);
}
.contact-copy::after{
  content:"";
  position:absolute;
  width:180px;height:180px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
  inset:auto -70px -80px auto;
}
.contact-copy .section-kicker{color:#d7b58f}
.contact-copy h2{
  position:relative;
  margin:0;
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.35;
}
html[lang="fa"] .contact-copy h2,
html[lang="fa"] .contact-copy p{text-align:right}
html[lang="en"] .contact-copy h2{line-height:1.15}
.contact-copy p{
  position:relative;
  color:#c7d1d9;
  margin:18px 0 0;
  max-width:520px;
}
.contact-copy .contact-private{
  display:inline-block;
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#e7edf2;
  font-size:.90rem;
}
.contact-form{
  min-width:0;
  background:#fff;
  border:1px solid #dce1e5;
  border-radius:var(--radius-lg);
  padding:30px;
  box-shadow:var(--shadow-soft);
}
.form-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
}
.field{margin-bottom:16px;min-width:0}
.field label{
  display:block;
  margin-bottom:7px;
  font-size:.88rem;
  font-weight:600;
}
html[lang="fa"] .field label{text-align:right}
.field input,.field textarea,.field select{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  border:1px solid #d4d9de;
  border-radius:14px;
  background:#fafbfb;
  color:var(--ink);
  padding:13px 14px;
  outline:none;
  transition:.2s ease;
}
html[lang="fa"] .field input,
html[lang="fa"] .field textarea{
  text-align:right;
  direction:rtl;
}
.field textarea{min-height:150px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{
  background:#fff;
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(31,78,121,.08);
}
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}
.submit-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:4px;
}
.form-note{
  margin:0;
  color:var(--muted);
  font-size:.78rem;
  max-width:340px;
}
html[lang="fa"] .form-note{text-align:right}
.btn{
  border:0;
  border-radius:999px;
  padding:12px 22px;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  line-height:1.5;
  transition:.2s ease;
  white-space:nowrap;
}
.btn:hover{background:var(--blue-2);transform:translateY(-1px)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}

.footer{
  background:#0c151d;
  color:#cbd4dc;
  padding:54px 0;
  border-top:1px solid rgba(255,255,255,.04);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:flex-end;
}
.footer-name{
  color:#fff;
  font-size:1.08rem;
  font-weight:700;
  margin:0 0 4px;
}
.footer-role{
  margin:0;
  font-family:"Inter",sans-serif;
  font-size:.8rem;
  color:#9fb0bd;
}
html[lang="fa"] .footer-name,
html[lang="fa"] .footer-role{text-align:right}
.footer-meta{
  text-align:end;
  font-family:"Inter",sans-serif;
  font-size:.76rem;
  color:#899aa6;
}
.footer-meta a{color:#cbd4dc;text-decoration:none}

.modal{
  position:fixed;inset:0;z-index:100;
  display:grid;place-items:center;
  padding:20px;
  opacity:0;visibility:hidden;
  transition:.22s ease;
}
.modal.is-open{opacity:1;visibility:visible}
.modal-backdrop{
  position:absolute;inset:0;
  background:rgba(10,16,23,.66);
  backdrop-filter:blur(8px);
}
.modal-card{
  position:relative;
  z-index:2;
  width:min(100%,460px);
  background:#fff;
  border-radius:26px;
  padding:34px;
  box-shadow:0 30px 90px rgba(0,0,0,.24);
  transform:translateY(12px) scale(.985);
  transition:.22s ease;
}
html[lang="fa"] .modal-card{text-align:right}
.modal.is-open .modal-card{transform:none}
.modal-icon{
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(31,122,87,.10);
  color:var(--success);
  font-size:1.55rem;
  margin-bottom:20px;
}
html[lang="fa"] .modal-icon{margin-left:auto;margin-right:0}
.modal-card[data-state="error"] .modal-icon{
  background:rgba(162,59,59,.10);
  color:var(--danger);
}
.modal h3{margin:0;font-size:1.45rem}
.modal p{margin:10px 0 24px;color:var(--muted)}
.modal-close{
  border:0;background:var(--ink);color:#fff;
  border-radius:999px;padding:10px 18px;font-weight:700;
}

@media (max-width:1000px){
  .hero-inner{
    grid-template-columns:minmax(0,.75fr) minmax(330px,1.25fr);
    gap:30px;
  }
  html[dir="ltr"] .hero-inner{
    grid-template-columns:minmax(330px,1.25fr) minmax(0,.75fr);
  }
  .principles{grid-template-columns:1fr}
  .principle:last-child{grid-column:auto}
  .system-card{padding:38px 32px}
  .system-line{font-size:.69rem}
  .system-line .node{padding:7px 8px}
  .contact-grid{grid-template-columns:1fr 1.2fr}
}

@media (max-width:820px){
  .container{
    width:calc(100% - 30px);
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
  .topbar{padding:18px 0}

  /* Mobile hero: photo first, text below. No text sits on the face. */
  .hero{
    display:block;
    min-height:0;
    background:#0e1720;
  }
  .hero::before{display:none}
  .hero::after{
    top:0;
    bottom:auto;
    height:420px;
    background:linear-gradient(180deg,rgba(14,23,32,.05) 0%,rgba(14,23,32,.12) 55%,rgba(14,23,32,.82) 100%);
  }
  html[dir="ltr"] .hero::after{
    background:linear-gradient(180deg,rgba(14,23,32,.05) 0%,rgba(14,23,32,.12) 55%,rgba(14,23,32,.82) 100%);
  }
  .hero-media{
    position:relative;
    inset:auto;
    width:100%;
    height:420px;
    overflow:hidden;
  }
  .hero-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 22%;
  }

  .hero-inner,
  html[dir="ltr"] .hero-inner{
    display:block;
    min-height:0;
    grid-template-columns:none;
    padding:0 0 54px;
  }

  .hero-copy,
  html[dir="ltr"] .hero-copy{
    width:100%;
    max-width:100%;
    grid-column:auto;
    margin:0;
    padding:28px 0 0;
    border:0;
  }

  html[dir="rtl"] .hero-copy{text-align:right}
  html[dir="ltr"] .hero-copy{text-align:left}

  .hero-copy::before{
    content:"";
    display:block;
    width:58px;
    height:2px;
    margin-bottom:20px;
    background:var(--bronze);
  }
  html[dir="rtl"] .hero-copy::before{margin-left:auto}
  html[dir="ltr"] .hero-copy::before{margin-right:auto}

  .hero h1,
  .hero-lead,
  .hero-intro,
  .eyebrow{
    width:100%;
    max-width:100%;
    overflow-wrap:break-word;
    word-break:normal;
  }

  .section{padding:82px 0}
  .section::before{top:34px}
  .principles{margin-top:36px}
  .system-section{padding-bottom:82px}

  .system-line{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .system-line .arrow{display:none}
  .system-line .node{
    width:100%;
    min-width:0;
    text-align:center;
    white-space:normal;
  }
  .system-line .node:last-child:nth-child(odd){grid-column:1/-1}

  .contact-section{padding:82px 0}
  .contact-grid{grid-template-columns:1fr;gap:20px}
  .contact-copy{padding:32px}

  .principle,
  .system-card,
  .contact-copy,
  .contact-form,
  .form-row,
  .field,
  .submit-row,
  .footer-inner{
    min-width:0;
    max-width:100%;
  }
}

@media (max-width:560px){
  .container{
    width:calc(100% - 24px);
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
  .brand-mini img{width:42px;height:42px}
  .brand-mini span{display:none}
  .lang-switch{padding:7px 12px;min-height:36px}

  .hero-media{height:370px}
  .hero::after{height:370px}
  .hero-inner,
  html[dir="ltr"] .hero-inner{padding:0 0 44px}
  .hero-copy,
  html[dir="ltr"] .hero-copy{padding-top:24px}

  .eyebrow{
    font-size:.86rem;
    line-height:1.7;
    margin-bottom:14px;
  }
  .hero h1{
    font-size:clamp(1.95rem,9.8vw,2.7rem);
    line-height:1.28;
  }
  html[lang="en"] .hero h1{
    font-size:clamp(1.9rem,9.2vw,2.55rem);
    line-height:1.08;
  }
  .hero-lead{font-size:.96rem;line-height:1.9}
  .hero-intro{font-size:.91rem;line-height:1.9}
  .section{padding:70px 0}
  .section::before{display:none}
  .section h2{font-size:2rem}
  .section-intro{font-size:.98rem}
  .principle{
    grid-template-columns:38px minmax(0,1fr);
    gap:8px 12px;
    padding:22px 18px;
    border-radius:18px;
  }
  .principle h3{font-size:1.18rem}
  .principle p{font-size:.93rem}
  .system-section{padding-bottom:70px}
  .system-card{padding:26px 18px;border-radius:20px}
  .system-line{grid-template-columns:1fr 1fr;gap:8px}
  .system-card h2{font-size:1.8rem;margin-top:24px}
  .contact-section{padding:70px 0}
  .contact-copy{padding:26px 22px;border-radius:20px}
  .contact-form{padding:19px 16px;border-radius:20px}
  .form-row{grid-template-columns:1fr;gap:0}
  .submit-row{align-items:stretch;flex-direction:column}
  .btn{width:100%;min-height:48px}
  .footer{padding:40px 0}
  .footer-inner{align-items:flex-start;flex-direction:column}
  .footer-meta{text-align:start}
  html[dir="rtl"] .footer-meta{text-align:right}
  .modal-card{padding:26px 22px;border-radius:22px}
}

@media (max-width:380px){
  .hero-media{height:335px}
  .hero::after{height:335px}
  .hero h1{font-size:1.85rem}
  .system-line{grid-template-columns:1fr}
  .system-line .node:last-child:nth-child(odd){grid-column:auto}
}

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


@media (max-width:820px){
  html, body{
    overflow-x:hidden !important;
    overscroll-behavior-x:none;
  }
  body{
    touch-action:pan-y pinch-zoom;
  }
  .site-shell,
  .topbar,
  .hero,
  .hero-media,
  .hero-inner,
  .hero-copy,
  .section,
  .system-section,
  .contact-section,
  .footer{
    width:100%;
    max-width:100%;
    min-width:0;
    margin-left:0;
    margin-right:0;
    transform:none !important;
  }
  .topbar{
    left:0;
    right:0;
  }
  .hero-media{
    left:auto;
    right:auto;
  }
  .principles,
  .principle,
  .system-card,
  .system-line,
  .contact-grid,
  .contact-copy,
  .contact-form,
  .form-row,
  .field,
  .submit-row,
  .footer-inner{
    width:100%;
    max-width:100%;
    min-width:0;
  }
}
