@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,300&display=swap');

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

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-muted: #888;
  --border: rgba(0,0,0,0.12);
  --border-mid: rgba(0,0,0,0.2);
  --bg: #fff;
  --bg-secondary: #f7f6f3;
  --font-mono: 'DM Mono', monospace;
  --font-serif: 'Fraunces', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e6e0;
    --text-mid: #aaa;
    --text-muted: #666;
    --border: rgba(255,255,255,0.1);
    --border-mid: rgba(255,255,255,0.18);
    --bg: #141412;
    --bg-secondary: #1c1c19;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
  position: relative;
}

.logo {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo-line1 {
  font-size: 32px;
}

.logo-line2 {
  font-size: 16px;
  color: var(--text-mid);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 0.5px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
}

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 620px;
}

.headline em { font-style: italic; color: var(--green); }

.subtagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 0.5px solid var(--border-mid);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* CREDENTIALS */
.credentials {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}

.cred { display: flex; flex-direction: column; gap: 4px; }

.cred-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cred-value { font-size: 13px; color: var(--text); }

/* SECTIONS */
.section { padding: 4rem 0; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* PROJECT CARDS */
.project-card {
  border: 0.5px solid var(--border);
  padding: 2rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s;
}

.project-card:hover { border-color: var(--green); }

.project-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.project-link {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}

.project-link:hover { text-decoration: underline; }

.project-meta { display: flex; gap: 1rem; flex-wrap: wrap; }

.tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 0.5px solid var(--border);
  color: var(--text-mid);
}

/* QUOTES */
.quotes {
  padding: 3rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 580px;
  line-height: 1.6;
  transition: opacity 0.5s ease;
}

.quote-text.fade { opacity: 0; }

.quote-attr {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity 0.5s ease;
}

.quote-attr.fade { opacity: 0; }

.quote-dots { display: flex; gap: 6px; margin-top: 0.5rem; }

.quote-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  cursor: pointer;
  transition: background 0.2s;
}

.quote-dot.active { background: var(--green); }

/* ABOUT */
.about {
  padding: 4rem 0;
  border-top: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

@media (max-width: 600px) {
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
}

.about-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}

.about-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-mid);
}

.about-text strong { color: var(--text); font-weight: 500; }

.pub {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--green);
  background: var(--bg-secondary);
}

.pub-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.pub-title {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pub-meta { font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* FOOTER */
.footer {
  padding: 2rem 0;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 11px; color: var(--text-muted); font-style: italic; }

.social-links { display: flex; gap: 1.5rem; list-style: none; }

.social-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.social-links a:hover { color: var(--green); }
