@import url('../assets/fonts.css');
:root {
  --bg: #1a1a1a; --panel: #22242a; --ink: #23252b; --muted: #6b6f78;
  --line: #e2e2e0; --accent: #c0c0c0; --accent-dk: #8f959e;
  --paper: #f7f7f5; --card: #ffffff; --tx: #ececec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif; line-height: 2;
}
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent-dk); outline-offset: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 26, 26, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #333;
}
.nav-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); }
.brand b { font-size: 16px; letter-spacing: 4px; }
.links { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.links a { color: var(--tx); text-decoration: none; font-size: 13.5px; opacity: 0.8; }
.links a:hover { opacity: 1; color: #fff; }
.langbar { display: flex; gap: 6px; }
.langbar button {
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  background: transparent; border: 1px solid #555; color: var(--tx);
  padding: 4px 14px; border-radius: 999px;
}
.langbar button.on { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 700; }

.hero {
  background:
    radial-gradient(640px 300px at 50% -80px, rgba(192, 192, 192, 0.16), transparent 65%),
    linear-gradient(180deg, #101114, var(--bg) 80%);
  color: var(--tx); text-align: center; padding: 70px 0 56px;
}
.hero .logo { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.kicker { margin-top: 14px; font-size: 12.5px; letter-spacing: 5px; color: var(--accent); }
.hero h1 { margin: 6px 0 0; font-size: clamp(38px, 7vw, 56px); font-weight: 800; }
.hero .tag { margin: 10px auto 0; max-width: 600px; font-size: 15.5px; opacity: 0.85; text-wrap: balance; }
.stats { margin-top: 18px; font-size: 13.5px; opacity: 0.8; }
.stats b { color: #fff; }
.cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 34px; border-radius: 12px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn.primary { background: var(--accent); color: #111; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { border: 1px solid #666; color: var(--tx); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

.sec { margin-top: 50px; scroll-margin-top: 70px; }
.sec-head { border-bottom: 3px double var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.sec-head .no {
  display: inline-block; min-width: 34px; height: 34px; line-height: 32px; text-align: center;
  border: 1px solid var(--ink); font-weight: 800; font-size: 15px;
  margin-inline-end: 10px; vertical-align: middle; border-radius: 8px;
}
.sec-head h2 { display: inline; font-size: clamp(19px, 3.4vw, 23px); font-weight: 800; margin: 0; vertical-align: middle; }
.sec-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

.tl { display: grid; gap: 12px; }
.work {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  border-inline-start: 5px solid var(--accent-dk); padding: 16px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.work:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08); }
.work .h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.work .h b { font-size: 17px; }
.work .year { font-size: 12.5px; color: var(--muted); }
.work .role { font-size: 12.5px; background: var(--bg); color: var(--tx); padding: 1px 12px; border-radius: 999px; }
.work .soon { font-size: 12.5px; background: #f0e8c8; border: 1px solid #cdbf7a; padding: 1px 12px; border-radius: 999px; }
.work p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.work .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.work .tags span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; color: var(--muted); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08); }
.pcard.feat { border: 2px solid var(--accent-dk); grid-column: 1 / -1; background: linear-gradient(160deg, #fff, #f1f1ef); }
.pcard b { font-size: 16.5px; }
.pcard p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pcard .go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--accent); }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact a {
  display: block; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent-dk);
  border-radius: 12px; padding: 16px 10px; font-weight: 700; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.contact a small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); direction: ltr; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cols > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; }
.cols b { display: block; font-size: 15px; margin-bottom: 4px; }
.cols p { margin: 0; }

.footer { text-align: center; margin: 50px 0 40px; padding-top: 24px; border-top: 3px double var(--line); }
.footer a { color: var(--ink); font-weight: 700; }

#toTop {
  position: fixed; bottom: 22px; inset-inline-end: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #555; background: var(--bg); color: #fff;
  font-size: 18px; cursor: pointer; display: none; z-index: 60;
}
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media (max-width: 720px) {
  .cards, .contact, .cols { grid-template-columns: 1fr; }
  .links { display: none; }
  .nav-in { justify-content: space-between; }
}
