@font-face {
  font-family: Roboto;
  src: url("fonts/roboto/roboto-v30-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("fonts/roboto/roboto-v30-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("fonts/iransans/IRANSans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("fonts/iransans/IRANSans-Black.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f4f7fb;
  --white: #fff;
  --ink: #111f35;
  --muted: #526078;
  --line: #d6deea;
  --accent: #275faf;
  --accent-soft: #e9f1fc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 Roboto,
    Arial,
    sans-serif;
}
html[lang="fa"] body {
  font-family: IRANSans, Tahoma, sans-serif;
  line-height: 1.9;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.shell {
  width: min(100% - 4rem, 1240px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -4rem;
  inset-inline-start: 1rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.5rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.97);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: white;
  font-size: 20px;
}
.brand-mark span {
  color: #a9ccff;
}
.primary-nav {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  margin-inline-start: auto;
}
.primary-nav a {
  font-size: 0.86rem;
  text-decoration: none;
  color: #394b65;
  white-space: nowrap;
}
.primary-nav a:hover,
.text-link:hover,
footer a:hover {
  color: var(--accent);
}
.primary-nav a:last-child {
  color: var(--accent);
  font-weight: 700;
}
.language-switch {
  display: flex;
  gap: 0.15rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--line);
}
.language-switch button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.4rem;
}
.language-switch button[aria-pressed="true"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-toggle {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 680px;
  padding-block: 6rem;
}
.eyebrow,
.section-index,
.diagram-top,
.diagram-bottom,
.project-meta,
.experience-row .date,
.education-note > span,
.intro-grid aside > span,
.expertise-grid > div > span {
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.eyebrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow:before {
  content: "";
  width: 27px;
  height: 1px;
  background: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.05em;
}
h1 {
  font-size: clamp(3.3rem, 6.1vw, 6.7rem);
  margin: 2rem 0 1.8rem;
  max-width: 800px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(1.06rem, 1.4vw, 1.27rem);
  color: #485a70;
  max-width: 620px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.text-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}
.hero-note {
  margin: 4.5rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-diagram {
  border: 1px solid #cfdaea;
  background: #e9f0f9;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  box-shadow: 16px 16px 0 #e2eaf5;
}
.diagram-top,
.diagram-bottom {
  display: flex;
  justify-content: space-between;
  color: #5d7190;
}
.diagram-top span:last-child {
  font-size: 1.2rem;
}
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
}
.diagram-node {
  width: 28%;
  min-height: 132px;
  background: #f8fbff;
  border: 1px solid #c2d4ec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem;
  box-shadow: 0 5px 13px #183a6714;
}
.diagram-node small {
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.diagram-node strong {
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  line-height: 1.3;
}
.diagram-node span {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.diagram-node.accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-18px);
}
.diagram-node.accent small,
.diagram-node.accent span {
  color: #e4f0ff;
}
.diagram-line {
  width: 9%;
  height: 1px;
  background: var(--accent);
  position: relative;
}
.diagram-line:after {
  content: "›";
  position: absolute;
  inset-inline-end: 0;
  top: -14px;
  color: var(--accent);
}
.diagram-bottom {
  border-top: 1px solid #cfdaea;
  padding-top: 1.2rem;
  letter-spacing: 0.02em;
}
.intro-strip {
  background: var(--ink);
  color: white;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 4rem;
  align-items: center;
  padding-block: 3rem;
}
.intro-grid > p {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.4;
  max-width: 760px;
  letter-spacing: -0.025em;
  margin: 0;
}
.intro-grid aside {
  border-inline-start: 1px solid #5c7290;
  padding-inline-start: 2rem;
}
.intro-grid aside > span {
  color: #a9c9f4;
}
.intro-grid aside p {
  margin: 0.6rem 0 0;
  color: #d9e6f5;
  font-size: 0.81rem;
  line-height: 1.8;
}
.section {
  padding-block: 7.5rem;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 365px;
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.7rem;
}
.section-index {
  color: var(--accent);
  margin-bottom: 1.7rem;
}
.section-heading h2,
.about-grid h2,
.contact-grid h2 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  margin: 0;
}
.section-heading > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.project {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.project:last-child {
  border-bottom: 1px solid var(--line);
}
.project-meta {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.project h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  margin-bottom: 1rem;
}
.project p {
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 1.3rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags span {
  font-size: 0.72rem;
  border: 1px solid var(--line);
  padding: 0.28rem 0.65rem;
  color: #526078;
}
.project details {
  margin-top: 1.4rem;
  max-width: 790px;
}
.project summary {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.project details p {
  padding-top: 0.8rem;
  margin-bottom: 0;
}
.tinted {
  background: #e9eff7;
}
.experience-list {
  border-top: 1px solid #c9d5e5;
}
.experience-row {
  display: grid;
  grid-template-columns: 180px 1fr 30px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #c9d5e5;
}
.experience-row .date {
  color: var(--accent);
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.experience-row h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.experience-row h3 small {
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: 0;
}
.experience-row .role {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}
.experience-row p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 700px;
  margin: 0;
}
.experience-row > a {
  text-decoration: none;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.expertise-grid > div {
  min-height: 210px;
  padding: 2rem;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.expertise-grid > div > span {
  color: var(--accent);
}
.expertise-grid h3 {
  font-size: 1.4rem;
  margin: 1.4rem 0 0.75rem;
}
.expertise-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 430px;
  line-height: 1.9;
}
.about-section {
  background: #e4edfa;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}
.about-grid h2 {
  max-width: 560px;
}
.about-copy {
  padding-top: 3.5rem;
}
.about-copy p {
  color: #465a73;
}
.about-copy .about-lead {
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.education-note {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid #c1d3ec;
}
.education-note > span {
  color: var(--accent);
}
.education-note strong,
.education-note small {
  display: block;
}
.education-note small {
  color: var(--muted);
  margin: 0.2rem 0 0.7rem;
}
.education-note p {
  font-size: 0.83rem;
  margin-bottom: 0.6rem;
}
.education-note a {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}
.contact-section {
  background: var(--ink);
  color: white;
  padding-block: 6rem;
}
.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}
.contact-grid .section-index {
  color: #abcfff;
}
.contact-grid p:last-child {
  color: #bfd2ec;
  margin: 1.4rem 0 0;
}
.contact-grid > a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid #8aaddf;
  white-space: nowrap;
}
footer {
  background: #0c1729;
  color: #b7c9df;
  padding: 1.4rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
footer a {
  text-decoration: none;
}
html[dir="rtl"] .hero-diagram,
html[dir="rtl"] .project-meta,
html[dir="rtl"] .tags,
html[dir="rtl"] .expertise-grid p {
  direction: ltr;
}
html[dir="rtl"] .hero-diagram {
  text-align: left;
}
html[dir="rtl"] .diagram-node {
  text-align: center;
}
html[dir="rtl"] .project-meta {
  justify-content: flex-end;
}
html[dir="rtl"] .project-meta > * {
  margin-inline-start: 1rem;
}
html[dir="rtl"] .tags {
  justify-content: flex-end;
}
html[dir="rtl"] .expertise-grid p {
  text-align: right;
  unicode-bidi: plaintext;
}
html[dir="rtl"] .experience-row .date {
  direction: rtl;
}
@media (max-width: 950px) {
  .shell {
    width: min(100% - 2.5rem, 1240px);
  }
  .header-inner {
    gap: 1rem;
  }
  .primary-nav {
    gap: 0.8rem;
  }
  .primary-nav a {
    font-size: 0.77rem;
  }
  .hero {
    min-height: 0;
    gap: 2rem;
  }
  .hero-diagram {
    min-height: 330px;
    padding: 1rem;
  }
  .diagram-node {
    min-height: 110px;
  }
  .diagram-node span {
    font-size: 0.55rem;
  }
  .intro-grid {
    grid-template-columns: 1fr 200px;
  }
  .section {
    padding-block: 5rem;
  }
  .about-grid {
    gap: 3rem;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 68px;
  }
  .header-inner {
    justify-content: space-between;
  }
  .brand {
    font-size: 0.86rem;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 3;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: none;
    padding: 10px;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    width: 100%;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 18px 24px #111f3514;
  }
  .primary-nav.open {
    display: flex;
  }
  .primary-nav a {
    font-size: 1rem;
    padding: 0.7rem;
  }
  .language-switch {
    margin-inline-start: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 4.5rem 3.5rem;
  }
  .hero h1 {
    font-size: clamp(3.15rem, 11vw, 5rem);
  }
  .hero-note {
    margin-top: 3rem;
  }
  .hero-diagram {
    min-height: 290px;
    box-shadow: 9px 9px 0 #e2eaf5;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .intro-grid aside {
    padding-inline-start: 1rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2.6rem;
  }
  .project {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
  }
  .project-meta {
    font-size: 0.62rem;
  }
  .experience-row {
    grid-template-columns: 1fr 24px;
    gap: 0.5rem;
  }
  .experience-row .date {
    grid-column: 1/-1;
  }
  .experience-row > div {
    grid-column: 1;
  }
  .experience-row > a {
    grid-column: 2;
    grid-row: 2;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise-grid > div {
    min-height: auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-copy {
    padding-top: 0;
  }
  .contact-grid {
    align-items: start;
    flex-direction: column;
  }
  .education-note {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}
@media (max-width: 400px) {
  .shell {
    width: min(100% - 2rem, 1240px);
  }
  .language-switch {
    padding-inline-start: 0.3rem;
  }
  .language-switch button {
    font-size: 0.68rem;
    padding: 0.3rem;
  }
  .brand {
    gap: 0.4rem;
  }
  .hero-actions {
    gap: 1rem;
  }
  .diagram-node {
    padding: 0.5rem;
  }
  .diagram-node strong {
    font-size: 0.73rem;
  }
  .diagram-node span {
    font-size: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Identity and evidence-led content */
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
}
.hero-actions .button {
  gap: 0.85rem;
}
.hero-actions .button i {
  font-size: 0.8rem;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #b8c9e1;
  background: #e9f1fc;
  color: var(--accent);
  font-size: 1.15rem;
}
.project-meta {
  justify-content: flex-start;
}
.org-heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.35rem;
}
.org-heading img {
  width: 62px;
  height: 48px;
  object-fit: contain;
  flex: none;
}
.org-heading h3 {
  margin: 0;
}
.education-note .org-heading img {
  width: 54px;
  height: 54px;
}
.education-note .org-heading strong {
  line-height: 1.35;
}
.method-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-inline-start: 3px solid var(--accent);
  background: #f4f8fe;
  font-size: 0.9rem;
  line-height: 1.7;
}
.method-note i,
.research-note i {
  color: var(--accent);
  margin-top: 0.25rem;
}
.research-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.research-note span {
  flex: 1 1 190px;
}
.research-note a {
  color: var(--accent);
  font-weight: 700;
}
.profile-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid #8aaddf;
  padding-bottom: 0.35rem;
}
.profile-links a:hover {
  color: #bbd7ff;
}
.profile-links i {
  font-size: 1.15rem;
}
.expertise-grid i {
  margin-inline-end: 0.5rem;
  font-size: 0.9rem;
}
html[dir="rtl"] .project-meta {
  justify-content: flex-start;
  direction: rtl;
}
html[dir="rtl"] .tags {
  direction: rtl;
  justify-content: flex-start;
}
html[dir="rtl"] .org-heading {
  direction: rtl;
}
@media (max-width: 700px) {
  .project {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
  }
  .project-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .project > div {
    grid-column: 2;
    grid-row: 1;
  }
  .project-meta {
    margin-bottom: 0.7rem;
  }
  .org-heading {
    gap: 0.7rem;
  }
  .org-heading img {
    width: 45px;
    height: 38px;
  }
  .profile-links {
    justify-content: flex-start;
  }
  .contact-grid {
    gap: 2.5rem;
  }
}
@media (max-width: 400px) {
  .project {
    grid-template-columns: 1fr;
  }
  .project-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .project > div {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Interaction system */
:root {
  --warm: #e88b24;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header {
  background: rgba(244, 247, 251, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(17, 31, 53, 0.03);
}
.brand-mark {
  width: 42px;
  height: 42px;
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(-5deg) scale(1.07);
  filter: drop-shadow(0 5px 8px rgba(208, 112, 16, 0.25));
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}
.language-switch {
  align-items: center;
  gap: 0.2rem;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.language-switch a:hover,
.language-switch a[aria-current="page"] {
  color: var(--accent);
}
.language-switch a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hero-diagram {
  position: relative;
  overflow: hidden;
  background-color: #e9f0f9;
  background-image:
    linear-gradient(rgba(39, 95, 175, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 95, 175, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 3px;
  box-shadow:
    18px 18px 0 #dfe8f5,
    0 22px 42px rgba(22, 58, 105, 0.08);
}
.hero-diagram::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(39, 95, 175, 0.18);
  border-radius: 50%;
  right: -50px;
  top: -50px;
  pointer-events: none;
}
.diagram-node {
  position: relative;
  border-radius: 3px;
  box-shadow: 0 12px 22px rgba(16, 49, 94, 0.1);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s ease;
}
.diagram-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.65) 50%, transparent 75%);
  transform: translateX(-145%);
  pointer-events: none;
}
.diagram-node.accent::after {
  background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.16) 50%, transparent 75%);
}
@media (hover: hover) {
  .diagram-node:hover {
    transform: translateY(-8px);
    border-color: #7aa5d8;
    box-shadow: 0 22px 35px rgba(16, 49, 94, 0.2);
  }
  .diagram-node.accent:hover {
    transform: translateY(-26px);
  }
  .diagram-node:hover::after {
    animation: card-sheen 0.7s ease both;
  }
}
@keyframes card-sheen {
  to { transform: translateX(145%); }
}
.experience-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}
.experience-aside .date {
  display: block;
}
.employer-logo {
  width: 112px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s var(--ease);
}
.project {
  position: relative;
  transition:
    background-color 0.25s ease,
    padding-inline 0.3s var(--ease);
}
.project-icon {
  border-radius: 3px;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    color 0.25s;
}
.project summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  list-style: none;
}
.project summary::-webkit-details-marker {
  display: none;
}
.project summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.project details[open] summary::after {
  transform: rotate(45deg);
}
.project details[open] p {
  animation: detail-enter 0.3s var(--ease) both;
}
@keyframes detail-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.org-heading img {
  filter: grayscale(1);
  opacity: 0.67;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s var(--ease);
}
.experience-row {
  transition:
    background-color 0.25s ease,
    padding-inline 0.3s var(--ease);
}
.experience-row > a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  align-self: start;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.experience-row > a:hover,
.experience-row > a:focus-visible {
  transform: translate(3px, -3px);
}
.education-note .org-heading img {
  filter: grayscale(1);
  opacity: 0.7;
}
.education-note:hover .org-heading img,
.education-note:focus-within .org-heading img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.profile-links a {
  transition:
    color 0.2s ease,
    transform 0.25s var(--ease);
}
.profile-links a:hover,
.profile-links a:focus-visible {
  transform: translateY(-3px);
}
@media (hover: hover) {
  .project:hover,
  .project:focus-within {
    background-color: rgba(255, 255, 255, 0.65);
    padding-inline: 1rem;
  }
  .project:hover .project-icon,
  .project:focus-within .project-icon {
    transform: translateY(-4px);
    background: var(--accent);
    color: #fff;
  }
  .experience-row:hover,
  .experience-row:focus-within {
    background-color: rgba(255, 255, 255, 0.55);
    padding-inline: 1rem;
  }
  .experience-row:hover .employer-logo,
  .experience-row:focus-within .employer-logo {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
  }
}
.motion-ready .section-heading,
.motion-ready .project,
.motion-ready .experience-row,
.motion-ready .expertise-grid > div {
  opacity: 0.92;
  transform: translateY(8px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease),
    background-color 0.25s ease,
    padding-inline 0.3s var(--ease);
}
.motion-ready .is-visible {
  opacity: 1;
  transform: none;
}
html[lang="fa"] .language-switch a {
  font-family: IRANSans, Tahoma, sans-serif;
}
html[dir="rtl"] .hero-diagram::before {
  right: auto;
  left: -50px;
}
@media (max-width: 700px) {
  .experience-row .experience-aside {
    grid-column: 1 / -1;
  }
  .experience-aside {
    align-items: flex-start;
    gap: 0.7rem;
  }
  .employer-logo {
    width: 112px;
    height: 68px;
  }
  .primary-nav a {
    display: flex;
    min-height: 48px;
  }
  .primary-nav a::after {
    display: none;
  }
  .language-switch a {
    min-width: 30px;
  }
  .experience-row > a {
    min-width: 32px;
  }
  .hero-diagram {
    box-shadow:
      9px 9px 0 #dfe8f5,
      0 15px 30px rgba(22, 58, 105, 0.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .diagram-node:hover::after { animation: none; }
  .motion-ready .section-heading,
  .motion-ready .project,
  .motion-ready .experience-row,
  .motion-ready .expertise-grid > div {
    opacity: 1;
    transform: none;
  }
  .project details[open] p {
    animation: none;
  }
}
