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

:root {
  --bg: #f7f5f2;
  --bg-soft: #f0ebe4;
  --text: #161618;
  --muted: #6f6b65;
  --border-subtle: #e0d7c8;
  --accent: #b89467;
  --accent-soft: #f5ede2;
  --shadow-soft: 0 18px 45px rgba(15, 10, 5, 0.12);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #fdfaf6 0, #f7f5f2 36%, #f1ede6 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(247,245,242,0.92), rgba(247,245,242,0.92));
  border-bottom: 1px solid rgba(210,201,187,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f2e2cf 55%, #cba574 100%);
  box-shadow: 0 0 0 1px rgba(166,132,92,0.35), 0 12px 26px rgba(0,0,0,0.15);
}

.brand-text {
  font-family: var(--font-serif);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #332a21;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(232,223,211,0.7);
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(184,148,103,0.7);
  background: linear-gradient(to right, #f9f2e7, #f3e3ce);
  color: #3d2f21;
  padding-inline: 18px;
}

.hero {
  padding: 72px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero-text {
  max-width: 640px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #1a1713;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #c8a06a, #b28858);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: #282119;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.portfolio {
  padding: 12px 0 50px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(204,188,165,0.9);
  background: rgba(251,247,241,0.9);
  padding: 7px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b4c3a;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  background: #f0e3d1;
}

.filter-btn.active {
  background: #3b2c1e;
  color: #f9f3ea;
  border-color: #3b2c1e;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  background: rgba(255,255,255,0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(219,207,190,0.9);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border-color: rgba(184,148,103,0.95);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #70512e;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #2d2419;
}

.portfolio-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-meta {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 0.84rem;
  color: #6c6155;
}

.card-meta li + li {
  margin-top: 2px;
}

.site-footer {
  border-top: 1px solid rgba(210,201,187,0.7);
  padding: 16px 0 24px;
  margin-top: 10px;
}

.footer-inner {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-block: 10px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding-inline: 8px;
  }

  .hero {
    padding-top: 52px;
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-card {
    padding: 16px 15px 14px;
  }
}
