@import url('fonts.css');
:root {
  --paper:#f8f5ed;
  --ink:#22291e;
  --muted:#626b5b;
  --olive:#52652b;
  --lime:#d7ec9d;
  --line:#dcded1;
  --soft:#e9eedb;
  --radius:22px;
  font-family:Vazirmatn,Tahoma,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  color-scheme:light;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:28px;
}

body {
  margin:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  font:inherit;
  cursor:pointer;
}

a,button {
  -webkit-tap-highlight-color:transparent;
}

button,input {
  color:inherit;
}

button {
  border:0;
}

a:focus-visible,button:focus-visible {
  outline:3px solid var(--olive);
  outline-offset:5px;
}

h1,h2,h3,p {
  margin:0;
}

p {
  line-height:1.9;
}

img {
  max-width:100%;
  display:block;
}

.wrap {
  width:min(1180px,calc(100% - 96px));
  margin-inline:auto;
}

.skip {
  position:absolute;
  top:8px;
  right:8px;
  background:var(--ink);
  color:var(--paper);
  padding:10px;
  z-index:20;
  transform:translateY(-200%);
}

.skip:focus {
  transform:none;
}

.eyebrow {
  font-size:.8125rem;
  line-height:1.8;
  color:var(--muted);
  font-weight:500;
}

.eyebrow[dir=ltr] {
  font-family:monospace;
  letter-spacing:1.7px;
}

.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  min-height:108px;
  border-bottom:1px solid var(--line);
}

.wordmark {
  font-size:1.8rem;
  font-weight:800;
  letter-spacing:-1px;
}

.wordmark span {
  color:var(--olive);
}

.wordmark sup {
  font-size:.65rem;
  vertical-align:top;
  margin-left:3px;
  letter-spacing:0;
}

.site-header nav {
  display:flex;
  align-items:center;
  gap:32px;
  font-size:.9375rem;
}

.site-header nav>a {
  padding-block:12px;
  transition:color .2s;
}

.site-header nav>a:hover {
  color:var(--olive);
}

.site-header nav .header-contact {
  padding:12px 22px;
  border:1px solid var(--line);
  border-radius:99px;
  margin-inline-start:25px;
}

.site-header nav .header-contact:hover {
  border-color:var(--olive);
  background:var(--soft);
}

.menu-toggle {
  display:none;
}

.hero {
  padding-block:66px 24px;
  position:relative;
}

.hero h1 {
  font-size:clamp(3rem,5.7vw,5.4rem);
  line-height:1.35;
  font-weight:900;
  letter-spacing:-2px;
  margin:22px 0 26px;
}

.hero h1 span {
  color:var(--olive);
}

.hero-bottom {
  display:flex;
  align-items:center;
  gap:65px;
  max-width:650px;
}

.hero-bottom p {
  font-size:1rem;
  color:var(--muted);
  line-height:1.9;
}

.circle-link {
  display:grid;
  place-items:center;
  width:68px;
  height:68px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--olive);
  color:var(--paper);
  transition:transform .2s,background .2s;
}

.circle-link:hover {
  transform:translateY(4px);
  background:var(--ink);
}

.circle-link svg {
  width:30px;
  height:30px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hero-stamp {
  width:230px;
  height:230px;
  border:1px solid var(--line);
  border-radius:50%;
  position:absolute;
  top:100px;
  left:38px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transform:rotate(-15deg);
}

.asterisk {
  font:100px/1 Georgia,serif;
  color:var(--olive);
}

.hero-stamp>span:last-child {
  font:11px/1.6 monospace;
  letter-spacing:3px;
  text-align:center;
  margin-top:15px;
}

.hero-footnote {
  display:flex;
  justify-content:space-between;
  font:11px/1.7 monospace;
  letter-spacing:1px;
  color:var(--muted);
  margin-top:65px;
  padding-top:22px;
  border-top:1px solid var(--line);
  gap:15px;
}

.projects {
  padding-block:45px 70px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:30px;
}

.section-heading h2 {
  font-size:1.8rem;
  font-weight:700;
  letter-spacing:-.6px;
}

.featured-project {
  background:var(--soft);
  border-radius:var(--radius);
  padding:45px;
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:44px;
  align-items:center;
}

.featured-copy h3 {
  font:500 clamp(3.5rem,5.5vw,5rem)/1.2 Georgia,serif;
  text-align:right;
  margin:15px 0;
}

.project-headline {
  font-size:1.7rem;
  line-height:1.6;
  font-weight:600;
}

.project-summary {
  font-size:1rem;
  line-height:1.9;
  color:var(--muted);
  margin:16px 0 22px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  border-radius:8px;
  font-size:.9375rem;
  font-weight:500;
  padding:12px 22px;
  transition:background .2s,transform .2s;
}

.button:hover {
  transform:translateY(-2px);
}

.button-dark {
  background:var(--ink);
  color:var(--paper);
}

.button-dark:hover {
  background:var(--olive);
}

.button-outline {
  border:1px solid var(--line);
  background:transparent;
}

.project-caption {
  display:block;
  font:11px/1.8 monospace;
  letter-spacing:1px;
  color:var(--muted);
  margin-top:20px;
}

.project-window {
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 22px 50px #24301c20;
  transform:rotate(-3deg);
  transition:transform .35s;
}

.project-window:hover {
  transform:rotate(0);
}

.window-chrome {
  padding:12px 15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font:10px/1.6 monospace;
  color:#6c7466;
  gap:12px;
  background:#fbfaf6;
}

.window-dots {
  display:flex;
  gap:5px;
}

.window-dots i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#c6c9bf;
}

.window-dots i:first-child {
  background:#a1b66d;
}

.window-label {
  font-size:8px;
  letter-spacing:1px;
}

.project-window img {
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:top;
}

.site-footer {
  border-top:1px solid var(--line);
  padding-block:55px 24px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
}

.site-footer h2 {
  font-size:clamp(1.8rem,3vw,2.7rem);
  line-height:1.5;
  margin-top:12px;
}

.site-footer h2 span {
  color:var(--olive);
}

.contact-links {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:start;
  gap:17px;
  font-size:1.05rem;
}

.contact-links>a {
  padding-bottom:5px;
  border-bottom:1px solid var(--olive);
}

.contact-links>a:hover {
  color:var(--olive);
}

.footer-bottom {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  border-top:1px solid var(--line);
  padding-top:24px;
  margin-top:15px;
  font-size:.8125rem;
  color:var(--muted);
}

dialog {
  width:min(710px,calc(100% - 36px));
  max-height:85dvh;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--paper);
  color:var(--ink);
  padding:32px;
  box-shadow:0 24px 90px #0003;
}

dialog::backdrop {
  background:#1d2516a6;
  backdrop-filter:blur(5px);
}

.dialog-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.close-dialog {
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  font-size:1.7rem;
}

.close-dialog:hover {
  background:var(--soft);
}

#project-detail h2 {
  font-size:2rem;
  margin:20px 0 16px;
}

#project-detail p {
  font-size:1rem;
  color:var(--muted);
  margin-bottom:20px;
}

#project-detail ul {
  padding-inline-start:23px;
  line-height:2;
  font-size:.9375rem;
}

#project-detail .detail-label {
  font-size:.8125rem;
  color:var(--olive);
  margin:25px 0 7px;
}

#project-detail .detail-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:25px;
}

#project-detail .detail-stack {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-block:16px;
}

#project-detail .detail-stack span {
  border:1px solid var(--line);
  padding:5px 10px;
  border-radius:6px;
  font-size:.8125rem;
}

.body-dialog-open {
  overflow:hidden;
}

.feature-section {border:1px solid var(--line);border-radius:12px;margin-block:12px;background:var(--paper);}
.feature-section summary {display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;font-weight:600;list-style:none;}
.feature-section summary::-webkit-details-marker {display:none;}
.feature-section summary::before {content:'+';color:var(--olive);font-size:1.2rem;}
.feature-section[open] summary::before {content:'−';}
.feature-count {margin-inline-start:auto;border-radius:6px;padding:2px 9px;background:var(--soft);font-size:.8rem;}
#project-detail .feature-section ul {padding:0 38px 12px 20px;margin:0;}
.feature-section summary:focus-visible {outline:2px solid var(--olive);outline-offset:2px;border-radius:12px;}
.loadtest-card {background:#eee8dc;}

@media(max-width:900px) {
  .wrap {
    width:calc(100% - 56px);
  }
  .site-header nav {
    gap:20px;
  }
  .site-header nav .header-contact {
    margin-inline-start:0;
  }
  .hero-stamp {
    width:160px;
    height:160px;
    left:10px;
    top:100px;
  }
  .asterisk {
    font-size:70px;
  }
  .hero-stamp>span:last-child {
    font-size:9px;
  }
  .featured-project {
    padding:30px;
    gap:30px;
    grid-template-columns:1fr 1.1fr;
  }
  .project-headline {
    font-size:1.4rem;
  }
}

@media(max-width:650px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .site-header {
    min-height:82px;
    gap:20px;
    flex-wrap:wrap;
    padding-block:18px;
  }
  .wordmark {
    font-size:1.55rem;
  }
  .menu-toggle {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    width:46px;
    height:46px;
    padding:13px;
    background:transparent;
    border:1px solid var(--line);
    border-radius:12px;
  }
  .menu-toggle span {
    height:1.5px;
    width:100%;
    background:var(--ink);
    transition:transform .2s;
  }
  .menu-toggle[aria-expanded=true] span:first-child {
    transform:translateY(3.75px) rotate(45deg);
  }
  .menu-toggle[aria-expanded=true] span:last-child {
    transform:translateY(-3.75px) rotate(-45deg);
  }
  .site-header nav {
    display:none;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    border-top:1px solid var(--line);
    padding-top:15px;
    gap:2px;
  }
  .site-header nav.is-open {
    display:flex;
  }
  .site-header nav>a {
    padding:13px 10px;
  }
  .site-header nav .header-contact {
    margin-top:8px;
    text-align:center;
  }
  .hero {
    padding-top:36px;
  }
  .hero>.eyebrow {
    font-size:.8125rem;
    max-width:260px;
  }
  .hero h1 {
    font-size:clamp(2.5rem,10.2vw,3.6rem);
    line-height:1.43;
    letter-spacing:-1px;
    margin:20px 0 24px;
  }
  .hero-stamp {
    display:none;
  }
  .hero-bottom {
    gap:20px;
    justify-content:space-between;
  }
  .hero-bottom p {
    font-size:.9375rem;
  }
  .circle-link {
    width:54px;
    height:54px;
  }
  .hero-footnote {
    margin-top:38px;
    font-size:9px;
    letter-spacing:.4px;
    flex-wrap:wrap;
    gap:10px;
  }
  .hero-footnote span:last-child {
    display:none;
  }
  .projects {
    padding-block:25px 44px;
  }
  .section-heading {
    align-items:start;
    gap:12px;
    flex-direction:column;
    margin-bottom:24px;
  }
  .section-heading h2 {
    font-size:1.5rem;
  }
  .featured-project {
    grid-template-columns:1fr;
    padding:25px;
    gap:32px;
    border-radius:18px;
  }
  .featured-copy h3 {
    font-size:3.4rem;
    margin-top:10px;
  }
  .project-headline {
    font-size:1.45rem;
  }
  .project-headline br {
    display:none;
  }
  .project-summary {
    font-size:.9375rem;
  }
  .project-window {
    transform:rotate(-2deg);
    width:100%;
  }
  .window-label {
    display:none;
  }
  .window-chrome {
    padding:10px;
  }
  .site-footer {
    padding-top:32px;
    grid-template-columns:1fr;
    gap:30px;
  }
  .site-footer h2 {
    font-size:1.9rem;
  }
  .contact-links {
    font-size:1rem;
  }
  .footer-bottom {
    flex-wrap:wrap;
    gap:15px;
    padding-top:20px;
    font-size:.8125rem;
  }
  .footer-bottom>a {
    margin-inline-start:auto;
  }
  dialog {
    padding:24px;
    max-height:90dvh;
  }
  #project-detail h2 {
    font-size:1.65rem;
  }
}

.project-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  margin-top:28px;
}

.project-card {
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px;
  display:flex;
  flex-direction:column;
}

.panah-card {
  background:#f0f1e7;
}

.inspector-card {
  background:#f4efe3;
}

.project-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.project-number {
  font:14px/1.6 monospace;
  color:var(--muted);
}

.project-card-body {
  padding-block:33px 27px;
}

.project-category {
  font:11px/1.6 monospace;
  letter-spacing:1.4px;
  color:var(--olive);
}

.project-card h3 {
  font-size:1.75rem;
  font-weight:700;
  margin:9px 0 14px;
}

.project-card h3[dir=ltr] {
  text-align:right;
  font-size:1.65rem;
}

.project-card h3 span {
  font-size:1.3rem;
  font-weight:400;
}

.project-card p {
  font-size:1rem;
  line-height:1.9;
  color:var(--muted);
}

.tag-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:23px;
  justify-content:end;
}

.tag-list span {
  font:12px/1.5 monospace;
  padding:7px 10px;
  border:1px solid #cfd3c3;
  border-radius:5px;
}

.text-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:transparent;
  font-size:.9375rem;
  min-height:48px;
  padding:13px 0;
  color:var(--ink);
  border-top:1px solid var(--line);
  width:100%;
  margin-top:auto;
  text-align:right;
}

.text-button>span {
  font-size:1.5rem;
  color:var(--olive);
}

.text-button:hover {
  color:var(--olive);
}

.tool-row {
  display:grid;
  grid-template-columns:1.1fr 1.25fr .65fr;
  gap:30px;
  border-block:1px solid var(--line);
  padding:30px 0;
  margin-top:32px;
  align-items:center;
}

.tool-row h3 {
  font-size:1.25rem;
  text-align:right;
  margin-top:9px;
}

.tool-row>p {
  font-size:.9375rem;
  color:var(--muted);
}

.tool-row .text-button {
  border:0;
  margin:0;
  padding-inline:10px;
}

.github-link {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:26px;
  align-items:center;
  font-size:.9375rem;
}

.github-link span {
  font:12px/1.6 monospace;
  color:var(--muted);
}

.github-link:hover {
  color:var(--olive);
}

.about {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:100px;
  padding-block:50px 65px;
  border-block:1px solid var(--line);
}

.about h2 {
  font-size:clamp(2.1rem,3.6vw,3.3rem);
  font-weight:800;
  line-height:1.6;
  margin-top:22px;
}

.about h2 span {
  color:var(--olive);
}

.identity {
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:28px;
}

.identity img {
  border-radius:50%;
  width:76px;
  height:76px;
  object-fit:cover;
  object-position:center;
}

.identity h3 {
  font-size:1.3rem;
  font-weight:700;
}

.identity span {
  display:block;
  font:12px/1.8 monospace;
  margin-top:5px;
  color:var(--muted);
}

.about-copy>p {
  font-size:1rem;
  color:var(--muted);
  line-height:2;
  margin-bottom:17px;
}

.about-contact {
  display:inline-block;
  margin-top:9px;
  border-bottom:1px solid var(--olive);
  padding:10px 0;
  font-size:.9375rem;
  color:var(--olive);
}

.expertise {
  padding-block:55px 70px;
}

.expertise-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:38px;
  margin-top:36px;
}

.expertise-grid article {
  border-top:1px solid var(--olive);
  padding-top:20px;
}

.expertise-number {
  font:11px/1.7 monospace;
  letter-spacing:1px;
  color:var(--muted);
}

.expertise-grid h3 {
  font-size:1.3rem;
  margin:18px 0 9px;
}

.expertise-grid p {
  font-size:.9375rem;
  color:var(--muted);
}

.expertise-grid ul {
  list-style:none;
  padding:0;
  margin:22px 0 0;
  text-align:right;
  line-height:2.1;
  font:14px/2.1 monospace;
}

.expertise-grid li {
  overflow-wrap:anywhere;
}

@media(max-width:900px) {
  .about {
    gap:45px;
  }
  .expertise-grid {
    gap:22px;
  }
  .project-card {
    padding:24px;
  }
  .tool-row {
    gap:20px;
    grid-template-columns:1fr 1.2fr;
  }
  .tool-row .text-button {
    grid-column:1/-1;
    max-width:180px;
    padding-inline:0;
  }
}

@media(max-width:650px) {
  .project-grid {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:22px;
  }
  .project-card {
    padding:24px;
  }
  .project-card-body {
    padding-block:25px;
  }
  .project-card h3 {
    font-size:1.55rem;
  }
  .project-card h3[dir=ltr] {
    font-size:1.4rem;
  }
  .project-card p {
    font-size:.9375rem;
  }
  .tool-row {
    grid-template-columns:1fr;
    gap:16px;
    margin-top:25px;
    padding:25px 0;
  }
  .tool-row .text-button {
    max-width:none;
  }
  .tool-row h3 {
    font-size:1.1rem;
  }
  .github-link {
    align-items:start;
    flex-direction:column;
    gap:10px;
    font-size:.875rem;
  }
  .github-link span {
    font-size:11px;
    overflow-wrap:anywhere;
  }
  .about {
    grid-template-columns:1fr;
    gap:30px;
    padding-block:34px 40px;
  }
  .about h2 {
    font-size:2rem;
    line-height:1.5;
    margin-top:15px;
  }
  .identity {
    margin-bottom:20px;
    gap:15px;
  }
  .identity img {
    width:68px;
    height:68px;
  }
  .identity span {
    font-size:11px;
  }
  .about-copy>p {
    font-size:.9375rem;
  }
  .expertise {
    padding-block:35px 45px;
  }
  .expertise-grid {
    grid-template-columns:1fr;
    gap:30px;
    margin-top:22px;
  }
  .expertise-grid h3 {
    font-size:1.25rem;
    margin-top:13px;
  }
  .expertise-grid ul {
    margin-top:16px;
  }
  .expertise-grid p {
    font-size:.9375rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
  }
}


/* Project screenshots */
.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0;min-width:0}
.project-gallery figure{margin:0;min-width:0}.project-gallery a{display:block;border:1px solid var(--line,#deddd5);border-radius:12px;overflow:hidden;background:#fff}
.project-gallery img{display:block;width:100%;height:220px;object-fit:cover;object-position:top;transition:transform .25s}.project-gallery a:hover img{transform:scale(1.025)}
.project-gallery figcaption{font-size:12px;line-height:1.8;color:var(--muted,#666);margin-top:8px}
.project-card .project-gallery{grid-template-columns:1fr;margin:24px 0}.project-card .project-gallery img{height:230px}
.client-card h3{font-size:30px;margin:20px 0 14px}.client-card>p{line-height:2;font-size:15px}.client-card .project-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.client-card .project-gallery img{height:180px}
.detail-gallery img{height:200px}.detail-gallery a:hover img{transform:none}
@media(max-width:650px){.project-gallery{gap:12px}.project-gallery img{height:145px}.client-card .project-gallery img{height:150px}.client-card h3{font-size:26px}.detail-gallery{grid-template-columns:1fr}.detail-gallery img{height:auto;max-height:500px;object-fit:contain}}
