
:root {
  --bg: #12151a;
  --surface: #1a1e25;
  --text: #ece7dd;
  --muted: #8b90a0;
  --accent: #f2994a;
  --hairline: #2a303c;

  --font: 'Vazirmatn', Tahoma, sans-serif;
  --content-width: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }
.glyph { color: var(--accent); padding: 0 6px; }


.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  z-index: 10;
  font-size: 0.95rem;
}

.site-header .brand { font-weight: 700; color: var(--accent); }

.header-cta {
  border: 1px solid var(--hairline);
  padding: 8px 18px;
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.header-cta:hover { border-color: var(--accent); }


.hero-scroll {
  position: relative;
  height: calc(var(--steps) * 100vh);
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
}

.hero-pin .reveal {
  position: absolute;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.hero-pin .reveal.is-active {
  opacity: 1;
  transform: translateY(0);
}


.status {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 56px 24px;
}

.status-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.status-item .status-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-item p { margin: 0; font-size: 1.05rem; }
.status-item a { border-bottom: 1px solid var(--accent); }


.work {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-title {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 48px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 32px;
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-head h3 { margin: 0; font-size: 1.4rem; font-weight: 800; }

.project-tag {
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.project-line { margin: 0 0 14px; color: var(--text); }
.project-line strong { color: var(--muted); font-weight: 600; }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.project-stack span {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 4px 12px;
  border-radius: 6px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.project-link {
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}
.project-link:hover { opacity: 0.8; }


.contact {
  text-align: center;
  padding: 100px 24px 80px;
  border-top: 1px solid var(--hairline);
}

.contact-line {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 26px;
  min-width: 240px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-value {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
}


@media (max-width: 720px) {
  .status-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .project { padding: 24px; }
  .contact-cards { flex-direction: column; align-items: center; }
}


@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero-pin {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 24px;
    padding: 120px 24px;
  }
  .hero-pin .reveal {
    position: static;
    opacity: 1;
    transform: none;
  }
}
