@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg:          #F2EFE9;
  --bg-card:     #E4E0D7;
  --bg-card2:    #EAE6DE;
  --text:        #1C1A17;
  --muted:       #6B6560;
  --muted2:      #716D67;
  --border:      rgba(28,26,23,0.10);
  --border2:     rgba(28,26,23,0.06);
  --accent:      #4A7C59;
  --accent-bg:   #DFF0E5;
  --accent-text: #2D6A43;
  --btn-bg:      #1C1A17;
  --btn-text:    #F2EFE9;
}

[data-theme="dark"] {
  --bg:          #141410;
  --bg-card:     #1E1E16;
  --bg-card2:    #1A1A12;
  --text:        #EDE9E2;
  --muted:       #A0998E;
  --muted2:      #9A938D;
  --border:      rgba(237,233,226,0.10);
  --border2:     rgba(237,233,226,0.06);
  --accent:      #7FC292;
  --accent-bg:   #1A2E20;
  --accent-text: #86EFAC;
  --btn-bg:      #EDE9E2;
  --btn-text:    #141410;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

.container { max-width: 680px; margin: 0 auto; padding: 0 28px; }

.color-accent { color: var(--accent); }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.nav-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 60px; border-bottom: 1px solid var(--border); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline-svg {
  width: 220px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-quote {
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-quote-mark {
  font-size: 1.3em;
  line-height: 0;
  vertical-align: -0.1em;
  opacity: 0.5;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  /* max-width: 500px; */
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-aside { font-size: 14px; color: var(--muted2); font-style: italic; margin-top: -24px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { opacity: 0.82; }
.btn-secondary {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-secondary:hover { color: var(--text); }

/* Sections */
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 28px;
}

/* About */
.about-body { font-size: 16px; color: var(--text); line-height: 1.8; max-width: 620px; }
.about-body p + p { margin-top: 16px; }
#years-formula { display: inline-block; text-align: center; }

/* Case Studies */
.cases { display: flex; flex-direction: column; gap: 10px; }
.case-card {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border2);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: background 0.15s, border-color 0.15s;
}
.case-card:hover { background: var(--bg-card2); border-color: var(--border); }
.case-domain {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.case-arrow {
  font-size: 15px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
  margin-top: 2px;
}
.case-card:hover .case-arrow { transform: translate(3px,-3px); color: var(--accent); }
.case-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.case-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}
.case-stat-value { font-size: 14px; font-weight: 500; color: var(--text); display: block; line-height: 1.2; }
.case-stat-label { font-size: 11px; color: var(--muted2); margin-top: 2px; display: block; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  background: var(--accent-bg);
  color: var(--accent-text);
  border-radius: 4px;
}

/* Experience */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border2);
}
.exp-item:last-child { border-bottom: none; }
.exp-year { font-size: 12px; color: var(--muted2); padding-top: 2px; font-variant-numeric: tabular-nums; }
.exp-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.exp-company { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.exp-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* How I work */
.hiw-intro { padding-bottom: 10px; }
.hiw-list { display: flex; flex-direction: column; }
.hiw-item { padding: 15px 0; border-bottom: 1px solid var(--border2); max-width: 580px; }
.hiw-item:last-child { border-bottom: none; }
.hiw-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.hiw-body { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stack-item { background: var(--bg); padding: 18px 20px; }
.stack-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.stack-list { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Contact */
.contact-intro { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 36px; }
.contact-icons { display: flex; align-items: center; justify-content: center; gap: 32px; }
.contact-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.contact-icon-link:hover { color: var(--accent); }
.contact-icon-link span { letter-spacing: -0.01em; }

/* Footer */
footer { padding: 28px 0; display: flex; justify-content: space-between; align-items: flex-end; }
.footer-left { display: flex; flex-direction: column; gap: 3px; }
.footer-copy { font-size: 12px; color: var(--muted2); }
.footer-link { text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--text); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow      { animation: fadeUp 0.45s ease both; }
.hero-headline-svg { animation: fadeUp 0.45s 0.08s ease both; }
.hero-quote        { animation: fadeUp 0.45s 0.16s ease both; }
.hero-sub, .hero-aside { animation: fadeUp 0.45s 0.24s ease both; }
.hero-actions      { animation: fadeUp 0.45s 0.32s ease both; }

/* Responsive */
@media (max-width: 580px) {
  .nav-links { display: none; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { grid-template-columns: 1fr; }
  .contact-icons { flex-direction: column; gap: 20px; }
}
