/* More prominent navigation actions on larger screens. */
.nav-links { gap: 43px; }
.nav-links a { font-size: 16px; font-weight: 600; padding: 14px 2px; }

@media (max-width: 760px) {
  .nav-links a { font-size: 13px; padding: 8px 1px; }
}

/* Floating header that becomes solid as the page is explored. */
.nav { position: fixed; transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, transform .35s ease; }
body.nav-scrolled .nav { background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px); box-shadow: 0 9px 28px rgba(7, 27, 55, .12); opacity: 1 !important; animation: navEnter .42s cubic-bezier(.2,.8,.2,1) both; }
body.dark.nav-scrolled .nav { background: rgba(4, 15, 31, .94); }
body:not(.dark).nav-scrolled .nav, body:not(.dark).nav-scrolled .nav .nav-links a, body:not(.dark).nav-scrolled .nav .brand { color: #071b37 !important; }
body:not(.dark).nav-scrolled .nav .brand small { color: #62758b !important; }
body:not(.dark).nav-scrolled .nav .theme-toggle { color: #071b37 !important; border-color: #9fb0c0 !important; }
body.dark.nav-scrolled .nav, body.dark.nav-scrolled .nav .nav-links a, body.dark.nav-scrolled .nav .brand { color: #fff !important; }
body.dark.nav-scrolled .nav .brand small { color: #b9cad3 !important; }
body.dark.nav-scrolled .nav .theme-toggle { color: #fff !important; border-color: #5c768e !important; }
.nav { position: fixed !important; top: 0 !important; right: 0 !important; left: 0 !important; width: 100% !important; z-index: 9999 !important; }

@keyframes navEnter { from { opacity: 1; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }

/* Reading progress lives at the bottom edge. */
.progress { top: auto !important; bottom: 0 !important; }

/* Consistent editorial team grid. */
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 28px 16px !important; direction: rtl; }
.team-grid figure, .team-grid figure.wide { grid-column: auto !important; aspect-ratio: auto !important; overflow: visible !important; background: transparent !important; }
.team-grid figure img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto !important; object-fit: cover; object-position: center top; border-radius: 2px; filter: saturate(.92); box-shadow: 0 11px 25px rgba(0,0,0,.18); }
.team-grid figure figcaption { position: static !important; transform: none !important; opacity: 1 !important; display: flex; min-height: 49px; padding: 11px 2px 0 !important; background: transparent !important; color: #fff !important; align-items: flex-start; justify-content: space-between; gap: 8px; }
.team-grid figure figcaption b { font-size: 14px; font-weight: 700; line-height: 1.65; }
.team-grid figure figcaption span { padding-top: 4px; color: #77d8af; font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.team-grid figure:hover img { transform: translateY(-5px) scale(1.015); filter: saturate(1.08); box-shadow: 0 17px 31px rgba(0,0,0,.27); }
/* Curated first row of the team gallery. */
.team-grid figure { order: 100; }
.team-grid figure:nth-child(5) { order: 1; }  /* Mohammad Amin Ghaemi */
.team-grid figure:nth-child(2) { order: 2; }  /* Mohammad Mobin Ghaemi */
.team-grid figure:nth-child(4) { order: 3; }  /* Maryam Nahvi */
.team-grid figure:nth-child(7) { order: 4; }  /* Mohammad Ahmadi */
.team-grid figure:nth-child(6) { order: 5; }  /* Amir Hossein Adineh */
.team-grid figure:nth-child(3) { order: 6; }  /* Aida Iran Doust */
.team-grid figure:nth-child(9) { order: 7; }  /* Amir Reza Aminian */
.team-grid figure:nth-child(11) { order: 8; } /* Amir Mohammad Hadadi */
.team-grid figure:nth-child(1) { order: 9; }
.team-grid figure:nth-child(8) { order: 10; }
.team-grid figure:nth-child(10) { order: 11; }
.team-grid figure:nth-child(12) { order: 12; }

/* Team captions adapt to the active theme. */
body:not(.dark) .team-grid figure figcaption { color: #071b37 !important; }
body:not(.dark) .team-grid figure figcaption span { color: #16875e !important; }
body.dark .team-grid figure figcaption { color: #f5fbf8 !important; }
body.dark .team-grid figure figcaption span { color: #79d9b0 !important; }

/* More demonstrative product cards and a tangible achievements list. */
.product-card { min-height: 275px !important; overflow: hidden; }
.product-card .product-visual { display: none !important; }
.product-card .product-copy { z-index: 3; }
.product-card .go { z-index: 4; }
.product-card .product-copy p { max-width: 300px; margin: 12px 0 16px; font-size: 13px !important; line-height: 2 !important; opacity: .84; }.product-card .product-copy u { display: inline-block; font: 10px Arial; letter-spacing: .05em; text-decoration: none; opacity: .74; border-bottom: 1px solid currentColor; padding-bottom: 3px; direction: ltr; }
.products-head .section-kicker { font-size: 18px !important; font-weight: 800; }.products-head > p { max-width: 430px; font-size: 17px !important; line-height: 2 !important; }
@media (max-width: 760px) { .products-head .section-kicker { font-size: 15px !important; }.products-head > p { font-size: 14px !important; } }

/* Selected organizational and technical projects. */
.legacy-projects { padding: 135px 8vw; background: #061a35; color: #f5fbf8; }.legacy-intro { max-width: 920px; }.legacy-intro .section-kicker { color: #6dd6a9; font-size: 15px; font-weight: 800; }.legacy-intro h2 { margin: 20px 0 22px; font-size: clamp(42px,5.2vw,76px); line-height: 1.16; letter-spacing: -.075em; }.legacy-intro h2 em { color: #6dd6a9; font-style: normal; }.legacy-intro > p:last-child { max-width: 700px; color: #c1d5dc; font-size: 18px; line-height: 2.05; }.legacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 60px; }.legacy-grid article { min-height: 235px; padding: 25px; position: relative; display: flex; flex-direction: column; border: 1px solid rgba(177,216,224,.28); background: rgba(14,47,79,.68); overflow: hidden; transition: transform .28s ease, background .28s ease, border-color .28s ease; }.legacy-grid article:hover { transform: translateY(-7px); background: #0d3a5e; border-color: #6dd6a9; }.legacy-grid article span { color: #7bdab0; font: 11px Arial; }.legacy-grid article i { position: absolute; left: 21px; top: 17px; color: rgba(197,237,238,.17); font: 800 48px/1 Arial; font-style: normal; letter-spacing: -.08em; }.legacy-grid h3 { margin: auto 0 10px; font-size: 23px; line-height: 1.35; }.legacy-grid p { min-height: 46px; margin: 0; color: #bbced5; font-size: 12px; line-height: 1.85; }
body.dark .legacy-projects { background: #06162e; }.dark .legacy-grid article { background: #0b2443; }body:not(.dark) .legacy-projects { background: #071b37; }
@media (max-width: 760px) { .legacy-projects { padding: 80px 19px; }.legacy-intro > p:last-child { font-size: 15px; }.legacy-grid { grid-template-columns: 1fr; margin-top: 38px; }.legacy-grid article { min-height: 190px; }.legacy-grid h3 { font-size: 21px; } }

/* Project carousel: automatic, touch-friendly and manually controllable. */
.legacy-controls { display: flex; align-items: center; justify-content: space-between; margin: 46px 0 18px; direction: ltr; }.legacy-controls > span { color: #7bdab0; font: 10px Arial; letter-spacing: .16em; }.legacy-controls > div { display: flex; gap: 8px; }.legacy-controls button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(177,216,224,.48); border-radius: 50%; background: transparent; color: #fff; font-size: 21px; cursor: pointer; transition: background .22s, color .22s, border-color .22s; }.legacy-controls button:hover { background: #6dd6a9; color: #071b37; border-color: #6dd6a9; }.legacy-slider { margin-right: -8vw; padding-right: 8vw; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; scroll-snap-type: x mandatory; }.legacy-slider::-webkit-scrollbar { display: none; }.legacy-grid { width: max-content; display: flex; gap: 13px; margin: 0; padding-left: 8vw; }.legacy-grid article { width: min(30vw,365px); min-height: 215px; flex: 0 0 auto; scroll-snap-align: start; }.legacy-grid article:hover { transform: translateY(-7px) scale(1.01); }.legacy-grid p { min-height: 0; }.legacy-slider:active { cursor: grabbing; }
@media (max-width: 760px) { .legacy-controls { margin-top: 33px; }.legacy-controls > span { font-size: 8px; }.legacy-slider { margin-right: -19px; padding-right: 19px; }.legacy-grid { padding-left: 19px; }.legacy-grid article { width: min(77vw,310px); min-height: 195px; }.legacy-grid h3 { font-size: 20px; } }

/* Prevent snap from resisting the continuous automatic drift. */
.legacy-slider { scroll-snap-type: none !important; }
.legacy-grid article { scroll-snap-align: none !important; }
.legacy-slider { overflow: hidden !important; cursor: grab; touch-action: pan-y; user-select: none; padding-left: 8vw; padding-right: 8vw; margin-left: -8vw; margin-right: -8vw; direction: ltr; }.legacy-slider.dragging { cursor: grabbing; }.legacy-grid { width: max-content; padding: 0; gap: 0; direction: ltr; animation: legacy-marquee 42s linear infinite; will-change: transform; }.legacy-group { display: flex; flex: 0 0 auto; gap: 13px; padding-left: 13px; direction: ltr; }.legacy-grid article { direction: rtl; }.legacy-slider:hover:not(.dragging) .legacy-grid { animation-play-state: paused; }@keyframes legacy-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[lang="en"] .legacy-grid article { direction: ltr; }
@media (max-width: 760px) { .legacy-slider { padding-left: 19px; padding-right: 19px; margin-left: -19px; margin-right: -19px; }.legacy-group { gap: 12px; padding-left: 12px; } }
.achievement-list { margin-top: 30px; border-top: 1px solid #b7c7cd; }
.achievement-list article { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid #d2dcdf; color: #071b37; }
.achievement-list b { font-size: 14px; color: #16875e; direction: ltr; text-align: right; }
.achievement-list span { font-size: 12px; font-weight: 700; line-height: 1.6; }
.achievement-list small { font-size: 9px; color: #65788b; direction: ltr; }
.dark .achievement-list { border-color: #38536d; }
.dark .achievement-list article { border-color: #38536d; color: #f5fbf8; }
.dark .achievement-list small { color: #b5c8cf; }
.team + .honors { position: relative; padding-top: 145px; padding-bottom: 145px; border-top: 1px solid rgba(151, 178, 191, .35); }
.team + .honors:before { content: 'ROBOCUP / FARAL'; position: absolute; top: 35px; left: 8vw; font: 9px Arial; letter-spacing: .2em; color: #16875e; direction: ltr; }
.achievement-list article { grid-template-columns: 58px 94px 1fr; gap: 16px; padding: 24px 0; position: relative; }
.achievement-list .achievement-number { width: 46px !important; height: 46px !important; display: grid; place-items: center; border-radius: 50%; position: relative; box-sizing: border-box; background: radial-gradient(circle at 34% 27%,#fff8c9 0 7%,#f4ca56 31%,#d8981a 72%,#a76608 100%); border: 1px solid #9a640a; box-shadow: inset 0 0 0 4px rgba(255,243,175,.56), inset 0 0 0 5px rgba(164,101,5,.58), 0 6px 13px rgba(135,85,8,.25); color: #111; font: 900 15px/1 Vazirmatn,Arial,sans-serif; font-weight: 900 !important; font-style: normal; letter-spacing: -.06em; text-align: center; -webkit-text-stroke: .45px #111; text-shadow: 0 1px rgba(255,248,207,.65); transition: transform .25s ease,box-shadow .25s ease; }
.achievement-list .achievement-number:before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(116,70,4,.42); border-radius: 50%; pointer-events: none; }
.achievement-list article:hover .achievement-number { transform: translateY(-2px) scale(1.05); box-shadow: inset 0 0 0 4px rgba(255,243,175,.62), inset 0 0 0 5px rgba(164,101,5,.58), 0 9px 16px rgba(135,85,8,.3); }
.achievement-list b { font-size: 18px; font-weight: 900; }
.achievement-list span { font-size: 16px; font-weight: 800; line-height: 1.75; }
.achievement-list small { grid-column: 3; margin-top: -13px; color: #172d45; font-size: 13px; font-weight: 600; line-height: 1.8; }
.dark .achievement-list small { color: #c8d9df; }
.credential-strip { grid-column: 1 / -1; margin-top: 58px; padding: 0; border: 0; }
.credential-title { margin: 0 0 24px; color: #16875e; font-size: 21px; font-weight: 800; }
.credential-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; border: 0; box-shadow: none; }
.credential { min-height: 225px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; position: relative; overflow: hidden; border: 1px solid #c9d5d6 !important; color: #071b37; background: #fff; transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.credential:last-child { border-left: 1px solid #c9d5d6; }.credential:hover { background: #f4faf6; transform: translateY(-6px); border-color: #16875e !important; box-shadow: 0 16px 35px rgba(7,27,55,.12); }.credential i { position: absolute; top: 31px; right: 30px; font-style: normal; font-weight: 900; line-height: 1; }.credential span { font: 11px/1.45 Arial; letter-spacing: .09em; direction: ltr; }
.credential.google i { font: 800 68px Arial; background: linear-gradient(90deg,#4285f4 0 25%,#ea4335 25% 50%,#fbbc05 50% 75%,#34a853 75%); -webkit-background-clip: text; color: transparent; }.credential.google span { font-size: 27px; font-weight: 700; letter-spacing: -.05em; }.credential.michigan i { background: #00274c; color: #ffcb05; padding: 15px 18px; font: 900 48px Georgia; }.credential.oxford i { width: 62px; height: 62px; border: 2px solid #002147; border-radius: 50%; display: grid; place-items: center; color: #002147; font: 800 15px Georgia; }.credential.ibm i { font: 900 48px/1 Arial; letter-spacing: -4px; color: #1f70c1; text-decoration: underline; text-decoration-style: double; }
.dark .credential-strip { border-color: #38536d; }.dark .credential-logos { border-color: #38536d; }.dark .credential { color: #f5fbf8; border-color: #38536d; }.dark .credential.oxford i { color: #c5dbe4; border-color: #c5dbe4; }
.partners-strip { grid-column: 1 / -1; margin-top: 52px; padding: 0; border: 0; background: transparent; }
.partners-title { margin: 0 0 12px; color: #16875e; font-size: 25px; font-weight: 800; letter-spacing: -.04em; }.partners-intro { margin: 0; max-width: 650px; color: #52627a; font-size: 16px; line-height: 2; }
.partner-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }.partner-list article { min-height: 164px; padding: 21px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; position: relative; overflow: hidden; border: 1px solid #c9d5d6; background: #fff; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }.partner-list article:hover { transform: translateY(-4px); border-color: #16875e; box-shadow: 0 12px 26px rgba(7,27,55,.1); }.partner-list img { position: absolute; top: 19px; right: 21px; width: 62px; height: 62px; object-fit: contain; mix-blend-mode: multiply; filter: saturate(1.06); }.partner-list b { font-size: 16px; color: #071b37; }.partner-list span { font-size: 10px; color: #65788b; line-height: 1.7; margin-top: 5px; }.partner-text:before { position: absolute; top: 21px; right: 21px; font: 800 11px/1 Arial,sans-serif; letter-spacing: .12em; color: #16875e; direction: ltr; }.partner-text.sharif:before { content: 'SHARIF'; }.partner-text.michigan:before { content: 'MICHIGAN'; }
html[lang=en] .partner-list .fa-label { display: none; }html:not([lang=en]) .partner-list .en-label { display: none; }.partner-list small { font-size: 10px; color: #65788b; line-height: 1.7; margin-top: 5px; }.dark .partner-list small { color: #b5c8cf; }
.dark .partners-intro,.dark .partner-list span { color: #b5c8cf; }.dark .partner-list article { background: #0b2443; border-color: #38536d; }.dark .partner-list article:hover { border-color: #6dd6a9; }.dark .partner-list b { color: #f5fbf8; }.dark .partner-list img { mix-blend-mode: screen; }
@media (max-width: 760px) { .partners-strip { display: block; padding: 0; }.partner-list { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }.partner-list article { min-height: 185px; padding: 23px; }.partner-list img { top: 22px; right: 23px; width: 72px; height: 72px; }.partner-list b { font-size: 18px; } }
@media (max-width: 760px) { .credential-logos { grid-template-columns: repeat(2, 1fr); }.credential { min-height: 175px; padding: 18px; }.credential:nth-child(2) { border-left: 1px solid #c9d5d6; }.credential:nth-child(n+3) { border-top: 1px solid #c9d5d6; }.credential i { top: 20px; right: 18px; }.credential.google i { font-size: 44px; }.credential.google span { font-size: 18px; }.credential.michigan i { font-size: 30px; padding: 10px 12px; }.credential.ibm i { font-size: 33px; } }
@media (max-width: 760px) { .product-card { min-height: 240px !important; } .achievement-list article { grid-template-columns: 72px 1fr; gap: 8px; } .achievement-list small { grid-column: 2; } }

.contact { min-height: 0; padding: 38px 8vw !important; }.contact>.contact-details { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 0; }.contact-details a { color: inherit; font: 700 18px/1.5 Vazirmatn,sans-serif; direction: ltr; text-decoration: none; }.contact-details a:hover { color: #6dd6a9; }
.section-id { gap: 18px; font-size: 15px; font-weight: 700; }.section-id span { width: 52px; height: 52px; font-size: 13px; font-weight: 800; }.section-id p { margin: 0; }
@media (max-width: 760px) { .partner-list { grid-template-columns: repeat(2, 1fr); }.partner-list article { min-height: 140px; padding: 16px; }.partner-list img { top: 16px; right: 16px; width: 51px; height: 51px; }.partner-list b { font-size: 13px; }.partner-list span { font-size: 8px; }.partner-text:before { top: 16px; right: 16px; font-size: 8px; }.contact { padding: 30px 19px !important; }.contact>.contact-details { display: grid; grid-template-columns: 1fr; gap: 13px; }.contact-details a { font-size: 15px; } }

@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 11px !important; }
  .team-grid figure figcaption { min-height: 57px; padding-top: 9px !important; display: block; }
  .team-grid figure figcaption b { font-size: 12px; display: block; }
  .team-grid figure figcaption span { font-size: 7px; }
}
