:root {
  --bg: #f7f4ef;
  --bg-alt: #efeae2;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --accent: #1a1a1a;
  --card: #ffffff;
  --border: rgba(26, 26, 26, 0.08);
  --radius: 16px;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

/* Sections */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* About */
.about-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .ref {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.1);
}

.project-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual img.icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-visual.merge {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.project-visual.photo {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
}

.project-visual.timber {
  background: linear-gradient(135deg, #3d2b1f 0%, #6b4e31 100%);
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.project-card:hover .project-link svg {
  transform: translateX(3px);
}

/* Contact */
.contact {
  text-align: center;
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin: 2rem auto 0;
  max-width: 1100px;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.contact p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

footer .logo-mark {
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }
}
