:root {
  --cream: #FAF7F2;
  --warm-white: #FFF9F3;
  --clay: #C4714A;
  --clay-light: #F0D5C8;
  --clay-dark: #8C4A2F;
  --sage: #6B8C6E;
  --sage-light: #D4E4D5;
  --navy: #1E2B3A;
  --charcoal: #3D3530;
  --muted: #8C7E77;
  --gold: #C9973A;
  --gold-light: #F5E8CC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* â”€â”€ NAV â”€â”€ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(250,247,242,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196,113,74,0.1);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(61,53,48,0.08); }

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--clay);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* â”€â”€ HERO â”€â”€ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 5rem;
  position: relative; overflow: hidden;
  background: var(--cream);
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-circle.c1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--clay) 0%, transparent 70%);
  opacity: 0.1;
  top: -140px; right: -140px;
}
.hero-bg-circle.c2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.1;
  bottom: 40px; left: -100px;
}
.hero-bg-circle.c3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.08;
  top: 220px; right: 360px;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-light);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeUp 0.7s ease both;
}

.hero-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-name em { font-style: italic; color: var(--clay); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 520px;
  font-weight: 300;
  line-height: 1.65;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--clay); color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 3rem; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; color: var(--charcoal);
  padding: 0.85rem 2rem; border-radius: 3rem;
  font-size: 0.9rem; font-weight: 400;
  text-decoration: none;
  border: 1.5px solid rgba(61,53,48,0.18);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 3.5rem; margin-top: 4rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem; font-weight: 500;
  color: var(--clay); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem;
}

/* â”€â”€ SECTION COMMONS â”€â”€ */
section { padding: 6rem 4rem; }

.section-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay);
  font-weight: 500; margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--clay); }

/* â”€â”€ EXPERIENCE â”€â”€ */
#experience { background: var(--warm-white); }

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(196,113,74,0.1);
}
.exp-item:first-child { border-top: 1px solid rgba(196,113,74,0.1); }

.exp-date { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.exp-company { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.5rem; }

.exp-tag {
  display: inline-block;
  font-size: 0.68rem; padding: 0.2rem 0.75rem;
  border-radius: 2rem; font-weight: 500; letter-spacing: 0.04em;
}
.tag-platform { background: var(--clay-light); color: var(--clay-dark); }
.tag-iot { background: var(--sage-light); color: #3A5C3C; }
.tag-pm { background: var(--gold-light); color: #7A5A1A; }

.exp-role {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 500;
  color: var(--navy); margin-bottom: 0.75rem; letter-spacing: -0.01em;
}

.exp-bullets { list-style: none; }
.exp-bullets li {
  font-size: 0.9rem; color: var(--muted);
  padding: 0.2rem 0; line-height: 1.6;
  display: flex; gap: 0.6rem;
}
.exp-bullets li .bullet {
  color: var(--clay); font-size: 0.8rem;
  flex-shrink: 0; margin-top: 0.18rem;
}
.exp-bullets li strong { color: var(--charcoal); font-weight: 500; }

/* â”€â”€ PROJECTS â”€â”€ */
#projects { background: var(--cream); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--warm-white);
  border: 1px solid rgba(196,113,74,0.12);
  border-radius: 1.25rem; padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--clay); opacity: 0;
  transition: opacity 0.25s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(196,113,74,0.1); }
.project-card:hover::before { opacity: 1; }

.project-num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem; font-weight: 300;
  color: var(--clay-light); line-height: 1; margin-bottom: 1rem;
}
.project-meta {
  font-size: 0.72rem; color: var(--clay); font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.project-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem; font-weight: 500;
  color: var(--navy); margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.project-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.ptag {
  font-size: 0.68rem; padding: 0.22rem 0.7rem;
  border-radius: 2rem; background: var(--cream);
  color: var(--muted); border: 1px solid rgba(140,126,119,0.18);
}

/* â”€â”€ SKILLS â”€â”€ */
#skills { background: var(--navy); }
#skills .section-title { color: var(--cream); }
#skills .section-title em { color: var(--clay); }
#skills .section-label { color: var(--clay); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem; padding: 1.75rem;
  transition: background 0.2s;
}
.skill-card:hover { background: rgba(255,255,255,0.07); }

.skill-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.skill-icon.clay { background: rgba(196,113,74,0.2); }
.skill-icon.sage { background: rgba(107,140,110,0.2); }
.skill-icon.gold { background: rgba(201,151,58,0.2); }

.skill-cat {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--clay);
  font-weight: 500; margin-bottom: 0.5rem;
}
.skill-list { font-size: 0.875rem; color: rgba(250,247,242,0.6); line-height: 1.75; }

/* â”€â”€ CONTACT â”€â”€ */
#contact { background: var(--clay); padding: 6rem 4rem; }
.contact-label { color: rgba(255,255,255,0.5); }

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

.contact-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: #fff;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem;
}
.contact-title em { font-style: italic; color: var(--gold-light); }

.contact-sub { font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 2rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.875rem; }

.contact-link {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.875rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, transform 0.15s;
}
.contact-link:hover { background: rgba(255,255,255,0.18); transform: translateX(4px); }

.contact-link-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0; color: #fff;
}
.contact-link-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-link-text { color: #fff; font-size: 0.875rem; }

.resume-card {
  background: var(--warm-white);
  border-radius: 1.25rem; padding: 2.25rem;
  text-align: center;
}
.resume-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem;
}
.resume-sub { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.6; }
.resume-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--clay); color: #fff;
  padding: 0.9rem 2rem; border-radius: 3rem;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
}
.resume-btn:hover { background: var(--clay-dark); transform: translateY(-2px); }

/* â”€â”€ FOOTER â”€â”€ */
footer {
  background: var(--navy); padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: 'Fraunces', serif; color: var(--clay); font-size: 1rem; font-weight: 500; }
.footer-copy { font-size: 0.75rem; color: rgba(250,247,242,0.3); }

/* â”€â”€ ANIMATIONS â”€â”€ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--clay-light); border-radius: 3px; }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  section { padding: 4.5rem 2rem; }
  #hero { padding: 7rem 2rem 4rem; }
  .exp-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 1.5rem 2rem; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(196,113,74,0.1);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; display: block; }
  .nav-hamburger { display: flex; }
  section { padding: 4rem 1.25rem; }
  #hero { padding: 6rem 1.25rem 3rem; }
  .hero-stats { gap: 1.75rem; }
  .contact-inner { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}