@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #1D1D20;
  --bg2: #40444C;
  --text: #FAFAF1;
  --muted: #B3BCCD;
  --faint: #40444C;
  --accent: #E0D100;
  --accent2: #FAFAF1;
  --accent3: #B3BCCD;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'Space Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

/* ══════════ LAYOUT ══════════ */
.page { max-width: 960px; margin: 0 auto; padding: 60px 32px; }

/* ══════════ NAV ══════════ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 20px 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
nav.scrolled {
  box-shadow: 0 1px 0 var(--faint);
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    margin-bottom: 0;
    background: rgba(29, 29, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  nav.nav-hidden {
    transform: translateY(-100%);
  }
  .nav-name {
    font-size: 13px;
  }
  .nav-name.name-reveal {
    padding: 0;
    margin: 0;
  }
  .page {
    padding-top: 60px;
  }
}
.nav-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.name-typed .dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.hamburger { display: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ══════════ NAME REVEAL ══════════ */
.name-reveal {
  display: inline-block;
  cursor: pointer;
  padding: 3em 4.5em;
  margin: -3em -4.5em;
}
.hero .name-reveal {
  padding: 0;
  margin: 0;
}
.name-reveal .name-typed {
  font-weight: 700;
}
.name-reveal .name-typed::after {
  content: '|';
  animation: blink-cursor 0.6s step-end infinite;
  color: var(--accent);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.1s;
}
.name-reveal.typing .name-typed::after {
  opacity: 1;
}
@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* ══════════ COLOR BAR ══════════ */
.color-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 100px;
}
.color-bar span {
  height: 3px;
  border-radius: 2px;
}
.color-bar span:nth-child(1) { background: var(--accent2); flex: 60; }
.color-bar span:nth-child(2) { background: var(--accent3); flex: 30; }
.color-bar span:nth-child(3) { background: var(--accent); flex: 10; }

/* ══════════ HERO ══════════ */
.hero { margin-bottom: 120px; }
.hero-greeting {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero h1 .highlight {
  position: relative;
  display: inline;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent3);
  opacity: 0.25;
  z-index: -1;
}
.hero-bio {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
}
.hero-meta {
  margin-top: 48px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid var(--faint);
  border-radius: 100px;
}
.meta-chip .avail-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ══════════ SECTION HEADERS ══════════ */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--faint);
}
.sec-persian {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-style: italic;
}
.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.sec-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* ══════════ PAGE HERO (subpages) ══════════ */
.page-hero { margin-bottom: 80px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 560px;
}

/* ══════════ PROJECTS ══════════ */
.projects { margin-bottom: 100px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid #353840;
  cursor: pointer;
  transition: all 0.25s ease;
  align-items: center;
}
.project:hover .p-title { color: var(--accent); }
.project:hover .p-arrow { opacity: 1; transform: translateX(0); }
.project:hover .p-img img { transform: scale(1.03); }

.p-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.p-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.p-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  transition: color 0.25s;
}
.p-arrow {
  font-size: 20px;
  color: var(--faint);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s;
  margin-top: 6px;
}
.p-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.p-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #353840;
  padding: 3px 10px;
  border-radius: 100px;
}
.p-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.p-metrics {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.p-metric-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.p-metric-lbl {
  font-size: 11px;
  color: var(--muted);
}

/* remove border on last project in home page */
.projects .project:last-child { border-bottom: none; }

/* alternate image side */
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) > * { direction: ltr; }

/* color accents per project */
.project:nth-child(1):hover .p-title { color: var(--accent); }
.project:nth-child(2):hover .p-title { color: var(--accent2); }
.project:nth-child(3):hover .p-title { color: var(--accent3); }
.project:nth-child(4):hover .p-title { color: var(--accent); }
.project:nth-child(5):hover .p-title { color: var(--accent2); }
.project:nth-child(6):hover .p-title { color: var(--accent3); }
.project:nth-child(1):hover .p-arrow { color: var(--accent); }
.project:nth-child(2):hover .p-arrow { color: var(--accent2); }
.project:nth-child(3):hover .p-arrow { color: var(--accent3); }
.project:nth-child(4):hover .p-arrow { color: var(--accent); }
.project:nth-child(5):hover .p-arrow { color: var(--accent2); }
.project:nth-child(6):hover .p-arrow { color: var(--accent3); }

/* ══════════ BEHANCE SECTION ══════════ */
.behance-section {
  margin-bottom: 100px;
  padding: 48px;
  border: 1px solid var(--faint);
  border-radius: 20px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.behance-text {
  flex: 1;
  min-width: 0;
  padding-right: 32px;
}
.behance-img {
  flex: 0 0 340px;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.behance-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.behance-title {
  font-family: var(--serif);
  font-size: 32px;
  margin: 12px 0 16px;
  color: var(--text);
}
.behance-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 28px;
}

/* ══════════ ABOUT SECTION ══════════ */
.about { margin-bottom: 100px; }
.about-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg2);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.about-quote {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  color: var(--accent2);
  margin-bottom: 24px;
}
.about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}
.underline-yellow {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.btn-hello {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 24px;
  border-radius: 100px;
  transition: opacity 0.2s;
}
.btn-hello:hover { opacity: 0.85; }
.btn-hello-sec {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 100px;
  transition: opacity 0.2s;
}
.btn-hello-sec:hover { opacity: 0.75; }
.btn-hello-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 0; }

/* ══════════ BEHANCE BANNER ══════════ */
.behance-banner {
  display: block;
  margin-bottom: 80px;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.behance-banner:hover { opacity: 0.85; }
.behance-banner img { width: 100%; height: auto; display: block; }

/* ══════════ EXPERIENCE ══════════ */
.exp-list { margin-bottom: 80px; }

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid #353840;
  align-items: start;
  transition: all 0.2s;
}
.exp-item:hover { padding-left: 8px; }

.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
}
.exp-role {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}
.exp-company {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.exp-loc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.exp-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.exp-desc li {
  margin-left: 16px;
  margin-bottom: 4px;
}
.exp-type {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 6px;
  white-space: nowrap;
}

/* ══════════ SKILLS ══════════ */
.skills-section { margin-bottom: 80px; }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.skills-cat-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--faint);
  border-radius: 100px;
  color: var(--muted);
  transition: all 0.2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(224, 209, 0, 0.08);
}

/* ══════════ EDUCATION ══════════ */
.edu-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg2);
  border-radius: 12px;
  margin-bottom: 80px;
}

/* ══════════ ABOUT PAGE ══════════ */
.about-hero-img-inline {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  background: var(--bg2);
  width: 220px;
}
.about-hero-img-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-hero-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 64px;
  background: var(--bg2);
}
.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}
.about-hero-mobile { display: none; }
.about-big-text {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 28px;
}
.about-big-text mark {
  background: rgba(224, 209, 0, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent);
}
.about-body-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 32px;
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card {
  padding: 24px;
  border: 1px solid #353840;
  border-radius: 12px;
}
.about-card-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.about-card-val {
  font-size: 15px;
  font-weight: 500;
}
.about-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.about-card.avail {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--bg);
}
.about-card.avail .about-card-label { color: rgba(29, 29, 32, 0.6); }
.about-card.avail .about-card-val { color: var(--bg); display: flex; align-items: center; gap: 8px; }
.about-card.avail .avail-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
  direction: rtl;
}
.about-split > * { direction: ltr; }
.about-split-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg2);
}
.about-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ablock { margin-bottom: 32px; }
.ablock h4 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.ablock p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ttag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid #353840;
  border-radius: 100px;
  color: var(--muted);
}

/* ══════════ CASE STUDY ══════════ */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 24px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.cs-back:hover { color: var(--accent); }

.cs-hero-section { margin-bottom: 48px; }
.cs-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.cs-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.cs-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 20px;
}
.cs-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #353840;
  padding: 4px 12px;
  border-radius: 100px;
}

.cs-hero-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 64px;
  background: var(--bg2);
}
.cs-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #353840;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}
.cs-strip-cell { background: var(--bg2); padding: 20px 24px; }
.cs-strip-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.cs-strip-val { font-size: 14px; font-weight: 500; }

.cs-quote {
  border-left: 3px solid var(--accent2);
  padding-left: 24px;
  margin-bottom: 36px;
}
.cs-quote p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--accent2);
  line-height: 1.6;
}

.cs-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 48px;
}

.cs-ch {
  background: var(--bg2);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 20px;
  border: 1px solid #353840;
}
.cs-ch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cs-ch-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}
.cs-ch-badge.c1 { background: var(--accent); color: var(--bg); }
.cs-ch-badge.c2 { background: var(--accent2); color: var(--bg); }
.cs-ch-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.cs-ch-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.cs-find-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: 28px;
}
.cs-findings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.cs-find {
  background: #2A2C31;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid #353840;
  display: flex;
  gap: 14px;
}
.cs-find-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 1px;
}
.cs-find p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.cs-decs { display: flex; flex-direction: column; gap: 12px; }
.cs-dec {
  background: #2A2C31;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #353840;
}
.cs-dec-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.cs-dec p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.cs-code {
  background: var(--bg2);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  border: 1px solid #353840;
  margin: 12px 0;
}
.cs-badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cs-badge-box {
  background: var(--bg2);
  border-radius: 10px;
  padding: 14px 18px;
  border: 1px solid #353840;
  flex: 1;
  min-width: 200px;
}
.cs-badge-box.highlight { border-color: var(--accent2); }
.cs-badge-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cs-badge-name.lime { color: var(--accent2); }
.cs-badge-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.cs-aside-quote {
  border-left: 3px solid var(--accent3);
  padding-left: 18px;
  margin-top: 16px;
}
.cs-aside-quote p {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--accent3);
  line-height: 1.6;
}

.cs-fail-modes { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.cs-fail {
  background: #2A2C31;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #353840;
  flex: 1;
  min-width: 200px;
}
.cs-fail h5 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.cs-fail p { font-size: 13px; color: var(--muted); line-height: 1.65; }

.cs-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cs-opt {
  background: #2A2C31;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #353840;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-opt.out { opacity: 0.55; }
.cs-opt.selected { border-color: var(--accent2); }
.cs-opt-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.cs-opt-badge.out { background: #353840; color: var(--muted); }
.cs-opt-badge.sel { background: var(--accent2); color: var(--bg); }
.cs-opt h5 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cs-opt p { font-size: 13px; color: var(--muted); line-height: 1.65; }

.cs-tradeoff {
  border: 1px solid #353840;
  border-radius: 10px;
  padding: 20px 24px;
  background: var(--bg2);
  margin-top: 16px;
}
.cs-tradeoff h5 { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--accent3); }
.cs-tradeoff p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.cs-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.cs-result {
  background: var(--bg2);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #353840;
}
.cs-result-val {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
}
.cs-result-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cs-results-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cs-lessons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 60px; }
.cs-lesson { display: flex; gap: 14px; align-items: flex-start; }
.cs-lesson-dot {
  background: var(--accent2);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.cs-lesson p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ══════════ FOOTER ══════════ */
footer {
  padding-top: 32px;
  border-top: 1px solid var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ══════════ ANIMATIONS ══════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
  .page { padding: 80px 20px 40px; }
  nav { margin-bottom: 80px; }
  .hero h1 { font-size: 36px; }
  .hero-meta { gap: 12px; }
  .project { grid-template-columns: 1fr; gap: 20px; }
  .project:nth-child(even) { direction: ltr; }
  .about-content { grid-template-columns: 1fr; }
  .about-portrait { max-width: 100%; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-split { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 4px; }
  .exp-type { text-align: left; }
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-results { grid-template-columns: 1fr 1fr; }
  .cs-title { font-size: 28px; }
  .cs-find { flex-direction: column; gap: 6px; }
  .cs-find-num { min-width: unset; padding-top: 0; }
  .edu-block { grid-template-columns: 1fr; }
  .color-bar { margin-bottom: 60px; }
  .nav-name { font-size: 18px; }
  .about-hero-img { aspect-ratio: 4 / 3; }
  .about-hero-mobile { display: block; }
  .about-sidebar-desktop { display: none; }
  .about-intro { grid-template-columns: 1fr; max-width: 100%; }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(29, 29, 32, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px 24px;
    border-top: 1px solid var(--faint);
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--faint);
  }
  .nav-links li:last-child a { border-bottom: none; }
}
