/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --bg:       #f5f3ee;
  --surface:  #eceae3;
  --ink:      #1a1916;
  --ink-soft: #6b6860;
  --ink-faint:#b0aea8;
  --accent:   #c84b2f;
  --accent-2: #2f6ec8;
  --border:   #d8d5ce;
  --radius:   4px;
  --max-w:    860px;
  --mono:     'Geist Mono', monospace;
  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Geist', system-ui, sans-serif;
}
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
 
/* ─── Noise Texture ─────────────────────────────────────────── */
#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
 
/* ─── Header ────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
 
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 1; }
 
#top-nav {
  display: flex;
  gap: 0;
}
#top-nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
#top-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
 
/* ─── Main Content ──────────────────────────────────────────── */
#app {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
 
/* ─── Loader ────────────────────────────────────────────────── */
#loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40vh;
}
 
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
 
@keyframes spin { to { transform: rotate(360deg); } }
 
/* ─── Hero / Name Block ─────────────────────────────────────── */
.hero {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease both;
}
 
.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
 
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
 
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.6rem;
}
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-item:hover { color: var(--accent); }
.contact-item .ci { font-size: 13px; }
 
.hero-summary {
  max-width: 580px;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
}
 
/* ─── Sections ──────────────────────────────────────────────── */
.portfolio-section {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease both;
}
 
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
 
/* ─── Experience Cards ──────────────────────────────────────── */
.exp-card {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
}
.exp-card:last-child { border-bottom: none; }
 
.exp-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  grid-column: 1;
}
 
.exp-company {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  grid-column: 1;
  margin-bottom: 0.6rem;
}
 
.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  white-space: nowrap;
  padding-top: 2px;
}
 
.exp-bullets {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 300;
}
.exp-bullets li { margin-bottom: 0.3rem; }
 
/* ─── Education ─────────────────────────────────────────────── */
.edu-card {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-card:last-child { border-bottom: none; }
 
.edu-degree {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
 
.edu-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
}
 
.edu-school {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
}
 
.edu-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
 
.edu-coursework {
  margin-top: 0.6rem;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
}
 
/* ─── Skills ────────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
 
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-size: 14px;
}
 
.skill-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  padding-top: 1px;
}
 
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
 
.tag {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.tag:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
 
/* ─── Projects ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
 
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
 
.project-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
 
.project-name::before {
  content: '◆';
  font-size: 7px;
  color: var(--accent);
}
 
.project-desc {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
}
 
/* ─── Certifications & Awards ───────────────────────────────── */
.cert-list, .award-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
 
.cert-item, .award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.cert-item:last-child, .award-item:last-child { border-bottom: none; }
 
.cert-name, .award-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}
 
.cert-issuer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
 
.award-detail {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 300;
}
 
.cert-year, .award-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}
 
/* ─── Footer ────────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
#site-footer code {
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--ink-soft);
}
 
/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.portfolio-section:nth-child(1) { animation-delay: 0.05s; }
.portfolio-section:nth-child(2) { animation-delay: 0.10s; }
.portfolio-section:nth-child(3) { animation-delay: 0.15s; }
.portfolio-section:nth-child(4) { animation-delay: 0.20s; }
.portfolio-section:nth-child(5) { animation-delay: 0.25s; }
.portfolio-section:nth-child(6) { animation-delay: 0.30s; }
.portfolio-section:nth-child(7) { animation-delay: 0.35s; }
 
/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  #app { padding: 2.5rem 1.2rem 4rem; }
  .skill-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .exp-card { grid-template-columns: 1fr; }
  .exp-date { grid-column: 1; grid-row: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  #top-nav a { padding: 6px 8px; }
}
