/* ─────────────────────────────────────────────────────────
   HEGHINE SIMONYAN — PORTFOLIO
   Type scale, spacing, and color as a unified system
───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --dark:        #181818;
  --dark-2:      #222222;
  --white:       #FFFFFF;
  --off-white:   #F5F4F2;
  --grey-1:      #444444;   /* strong body */
  --grey-2:      #666666;   /* secondary body */
  --grey-3:      #999999;   /* labels, captions */
  --grey-4:      #CCCCCC;   /* light on dark */
  --grey-5:      #2C2C2C;   /* subtle dark divider */
  --divider:     #E5E3DF;   /* light bg divider */
  --link:        #1A6B9A;

  /* Type */
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-serif:  'EB Garamond', Georgia, serif;

  /* Type scale — ratio 1.25 (Major Third) */
  --text-xs:   11px;   /* captions, labels */
  --text-sm:   13px;   /* secondary body */
  --text-base: 15px;   /* body */
  --text-md:   17px;   /* lead / intro */
  --text-lg:   20px;   /* small headings */
  --text-xl:   26px;   /* section headings */
  --text-2xl:  34px;   /* page titles */
  --text-3xl:  44px;   /* hero name */

  /* Spacing */
  --space-1:   6px;
  --space-2:   12px;
  --space-3:   20px;
  --space-4:   32px;
  --space-5:   48px;
  --space-6:   72px;
  --space-7:   96px;

  /* Layout */
  --max-w:     1080px;
  --pad:       clamp(24px, 6vw, 80px);
  --nav-h:     52px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--grey-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p + p { margin-top: var(--space-3); }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
}

.nav-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  font-size: var(--text-xs);
  color: var(--grey-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ── HOME HERO ─────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + var(--space-5)) var(--pad) var(--space-4);
  color: var(--white);
}

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: var(--space-4);
}

/* Name — decisive, not oversized */
.hero-name {
  margin-bottom: var(--space-3);
}

.hero-name h1 {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);      /* 44px */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-name h1 em {
  font-style: normal;
  color: var(--grey-4);
  font-weight: 300;
}

.hero-tagline {
  font-size: var(--text-md);       /* 17px */
  color: var(--grey-4);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-5);
}

/* CTA row */
.hero-cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--grey-4);
  border: 1px solid var(--grey-5);
}
.btn-outline:hover { border-color: var(--grey-4); color: var(--white); }

/* Project index at bottom of hero */
.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  margin-bottom: var(--space-4);
}

.hero-index a {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-right: var(--space-4);
  transition: color 0.2s;
  padding: 2px 0;
}

.hero-index a:hover { color: var(--white); }

/* ── MAIN PAGE CONTENT ─────────────────────────────────── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-6) var(--pad);
}

/* Two-column section layout */
.section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--space-5);
  padding: var(--space-5) 0;
}

.section + .section {
  border-top: 1px solid var(--divider);
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-2);
  padding-top: 3px;
  line-height: 1.4;
}

.section-body { }

/* ── PROFILE TEXT ──────────────────────────────────────── */
.lead {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.body-text {
  font-size: var(--text-base);
  color: var(--grey-2);
  line-height: 1.75;
}

/* ── COMPETENCIES ──────────────────────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}

.comp-item {
  border-left: 2px solid var(--dark);
  padding-left: var(--space-2);
}

.comp-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.comp-desc {
  font-size: var(--text-sm);
  color: var(--grey-2);
  line-height: 1.6;
}

/* ── PROJECT LIST ──────────────────────────────────────── */
.proj-list { display: flex; flex-direction: column; }

.proj-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-2);
  margin: 0 calc(-1 * var(--space-2));
  border-bottom: 1px solid var(--divider);
  transition: background 0.15s;
  cursor: pointer;
}

.proj-row:first-child { border-top: none; }
.proj-row:hover { background: var(--off-white); }

.proj-title {
  font-size: var(--text-lg);       /* 20px */
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 3px;
}

.proj-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: var(--space-1);
  display: block;
}

.proj-desc {
  font-size: var(--text-sm);
  color: var(--grey-2);
  line-height: 1.55;
  max-width: 640px;
}

.proj-arrow {
  font-size: 18px;
  color: var(--grey-3);
  transition: transform 0.2s, color 0.2s;
  align-self: center;
}

.proj-row:hover .proj-arrow { transform: translateX(4px); color: var(--dark); }

/* ── PROJECT PAGE HERO ─────────────────────────────────── */
.project-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + var(--space-6)) var(--pad) var(--space-5);
  color: var(--white);
}

.project-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);      /* 34px */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.project-role {
  font-size: var(--text-base);
  color: var(--grey-3);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.meta-row {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--grey-5);
}

.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-lbl { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-3); }
.meta-val { font-size: var(--text-sm); color: var(--grey-4); }
.meta-val a { color: var(--grey-4); transition: color 0.2s; }
.meta-val a:hover { color: var(--white); }

/* ── PROJECT PAGE CONTENT ──────────────────────────────── */
.proj-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-6) var(--pad);
}

.proj-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--space-5);
  padding: var(--space-5) 0;
}

.proj-section + .proj-section {
  border-top: 1px solid var(--divider);
}

.proj-section-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-2);
  padding-top: 3px;
}

.proj-section-body { }

.proj-section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.proj-section-text {
  font-size: var(--text-base);
  color: var(--grey-2);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

/* ── BULLETS ───────────────────────────────────────────── */
.bullets {
  list-style: none;
  display: flex; flex-direction: column;
  gap: var(--space-2);
}

.bullets li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--grey-1);
  padding-left: var(--space-4);
  position: relative;
}

.bullets li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--grey-3);
  font-size: var(--text-sm);
  top: 1px;
}

.bullets li strong { color: var(--dark); font-weight: 500; }

/* ── STATS ─────────────────────────────────────────────── */
.stats { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.stat {
  background: var(--dark);
  padding: var(--space-4) var(--space-4) var(--space-3);
  min-width: 130px;
}

.stat-n {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);      /* 34px */
  font-weight: 700;
  color: var(--white);
  display: block; line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-l {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-3);
  display: block; line-height: 1.5;
}

/* ── CARDS ─────────────────────────────────────────────── */
.cards {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--divider);
  border-left: 1px solid var(--divider);
}

.card {
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-3);
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  border-left: 3px solid var(--dark);
  margin-left: -1px;
}

.card h4 { font-size: var(--text-sm); font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.card p { font-size: var(--text-sm); color: var(--grey-2); line-height: 1.55; }

/* ── DIRECTIONS ────────────────────────────────────────── */
.directions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-5);
}

.dir-item {
  font-size: var(--text-sm);
  color: var(--grey-1);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.dir-item::before {
  content: "—"; position: absolute; left: 0;
  color: var(--grey-3); font-size: 11px;
}

/* ── LINK CARDS ────────────────────────────────────────── */
.link-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.link-card {
  padding: var(--space-3) var(--space-3) var(--space-2);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--dark);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-top-color 0.2s;
}

.link-card:hover { border-top-color: var(--link); }
.link-card h4 { font-size: var(--text-sm); font-weight: 600; color: var(--dark); }
.link-card p { font-size: var(--text-sm); color: var(--grey-2); line-height: 1.55; flex: 1; }
.link-card a { font-size: var(--text-sm); font-weight: 500; color: var(--link); }
.link-card a:hover { text-decoration: underline; }
.link-card-wide { grid-column: 1 / -1; }

/* ── CTA BUTTON ────────────────────────────────────────── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: var(--white);
  padding: 12px 24px;
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.2s; margin-top: var(--space-4);
}

.cta-btn:hover { background: #333; color: var(--white); }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: var(--grey-3);
  font-size: var(--text-xs); letter-spacing: 0.06em;
  text-align: center; padding: var(--space-4) var(--pad);
  line-height: 1.8;
  word-break: keep-all;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }

  .hero { padding: calc(var(--nav-h) + var(--space-5)) var(--pad) var(--space-5); }
  .hero-name h1 { font-size: 36px; }
  .hero-tagline { font-size: var(--text-base); }
  .hero-cta { flex-direction: column; gap: var(--space-2); }
  .btn { justify-content: center; }

  .section { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4) 0; }
  .comp-grid { grid-template-columns: 1fr; gap: var(--space-3); }

  .proj-row { grid-template-columns: 1fr 24px; }
  .proj-title { font-size: var(--text-base); }

  .proj-section { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4) 0; }
  .project-title { font-size: 28px; }
  .meta-row { gap: var(--space-3); }
  .meta-item { min-width: 44%; }

  .stats { gap: var(--space-2); }
  .stat { min-width: calc(50% - 6px); }
  .cards { grid-template-columns: 1fr; }
  .directions { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
  .link-card-wide { grid-column: 1; }
}

@media (max-width: 480px) {
  .hero-name h1 { font-size: 30px; }
  .stat { min-width: 100%; }
  .meta-item { min-width: 100%; }
}
