:root {
  --bg: #faf9f7;
  --bg-dark: #14120f;
  --ink: #1a1814;
  --ink-soft: #5a564e;
  --paper: #ffffff;
  --accent: #7c3aed;
  --accent-soft: #ede7fc;
  --accent-dark-bg: #a78bfa;
  --line: #e7e3db;
  --radius: 14px;
  --maxw: 1080px;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; margin: 0; }

/* NAV */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 249, 247, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.nav-brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-brand .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* HERO */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 28px 90px;
  position: relative;
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.highlight { color: var(--accent); }
.highlight-underline {
  position: relative;
  white-space: nowrap;
}
.highlight-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: var(--accent-soft);
  z-index: -1;
}
.hero-sub {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 26px 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(124,58,237,0.5); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); }

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 0;
  width: 30px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 50%;
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { top: 8px; opacity: 1; } 80% { top: 28px; opacity: 0; } 100% { top: 28px; opacity: 0; } }

/* SECTIONS */
.section { padding: 100px 0; }
.section-dark {
  background: var(--bg-dark);
  color: #f2f0eb;
}
.section-dark .kicker { color: var(--accent-dark-bg); }
.section-dark .section-lead { color: #b9b4a8; }
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 46px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text { font-size: 1.08rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }
.about-facts {
  display: grid;
  gap: 20px;
}
.fact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.fact h3 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}
.fact p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* PROJECT */
.project-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(155deg, rgba(124,58,237,0.14), rgba(124,58,237,0.02));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 22px;
  padding: 44px;
}
.project-desc { color: #d8d4c9; font-size: 1.05rem; margin-bottom: 22px; }
.project-desc strong { color: #f2f0eb; }
.project-points { display: grid; gap: 12px; margin-bottom: 26px; }
.project-points li {
  padding-left: 24px;
  position: relative;
  color: #cbc6b9;
  font-size: 0.96rem;
}
.project-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark-bg);
  font-weight: 700;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.project-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(167,139,250,0.15);
  color: var(--accent-dark-bg);
  border: 1px solid rgba(167,139,250,0.3);
}
.project-link { background: var(--accent-dark-bg); color: #1a1330; }
.project-link:hover { background: #c4b5fd; transform: translateY(-2px); }

.mock-window {
  background: #1e1b17;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-body { padding: 22px; display: grid; gap: 12px; }
.mock-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.mock-w80 { width: 80%; } .mock-w60 { width: 60%; } .mock-w90 { width: 90%; } .mock-w70 { width: 70%; } .mock-w40 { width: 40%; }
.mock-tag {
  height: auto;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 6px 0;
}
.mock-tag-urgent { background: rgba(239,68,68,0.18); color: #fca5a5; }
.mock-tag-neutral { background: rgba(234,179,8,0.18); color: #fde68a; }
.mock-tag-good { background: rgba(34,197,94,0.18); color: #86efac; }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1.5px solid var(--line);
}
.timeline-item { position: relative; padding-bottom: 52px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -37.5px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.timeline-head h3 { font-size: 1.25rem; }
.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.timeline-org { color: var(--ink-soft); font-weight: 500; margin: 4px 0 14px; font-size: 0.95rem; }
.timeline-content ul { display: grid; gap: 10px; }
.timeline-content li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px;
}
.skill-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: #f2f0eb; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: #d8d4c9;
  border: 1px solid rgba(255,255,255,0.08);
}

/* CONTACT */
.contact-links {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
}
.contact-value { font-weight: 600; }

.site-footer {
  text-align: center;
  padding: 30px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .about-grid, .project-card { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .project-card-visual { order: -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 24px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-cta { display: inline-block; }
  .hero { padding-top: 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none !important; }
}
