:root {
  --bg: #fbfaf7;
  --ink: #1e1b18;
  --muted: #7c766e;
  --line: #e7e2d9;
  --accent: #d98c5f;
  --accent-2: #6c8ea4;
  --danger: #c0503f;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(30, 27, 24, 0.08);
  --radius: 14px;
  --max: 1180px;
}

@font-face {
  font-family: "Cactuso";
  src: url("assets/fonts/Cactuso.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name {
  font-family: "Cactuso", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.6rem;
  line-height: 1;
}
.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-nav a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color .2s;
}
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(24px, 4vw, 44px) 20px clamp(20px, 3vw, 32px);
}
.hero-logo {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  margin: 0 auto clamp(12px, 2vw, 20px);
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
.hero-tagline {
  color: var(--accent);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  margin: 0;
}

/* Work */
.work { max-width: var(--max); margin: 0 auto; padding: 20px clamp(18px, 5vw, 48px) 80px; }
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 34px;
}
.filter {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all .2s;
}
.filter:hover { color: var(--ink); border-color: var(--accent); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.06); }
.card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(30,27,24,.82) 0%, rgba(30,27,24,0) 55%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-overlay { opacity: 1; }
.card-title { color: #fff; font-weight: 600; font-size: 1rem; margin: 0; }
.card-cat { color: rgba(255,255,255,.75); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* About / Contact */
.about, .contact {
  max-width: 720px; margin: 0 auto; padding: 60px clamp(18px, 5vw, 48px);
  text-align: center; border-top: 1px solid var(--line);
}
.about h2, .contact h2 {
  font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 20px;
}
.about p { color: var(--muted); font-size: 1.05rem; }
.contact-btn {
  display: inline-block; margin-top: 12px; text-decoration: none; border: none; cursor: pointer;
  color: #fff; background: var(--accent); padding: 12px 28px; border-radius: 999px;
  letter-spacing: 0.03em; font-size: 1rem; transition: background .2s, transform .2s;
}
.contact-btn:hover { background: #c6784b; transform: translateY(-2px); }
.contact-btn:disabled { opacity: .6; cursor: default; transform: none; }

.contact-form { max-width: 560px; margin: 28px auto 0; text-align: left; }
.cf-row { display: flex; gap: 16px; }
.cf-row .cf-field { flex: 1; }
.cf-field { display: block; margin-bottom: 16px; }
.cf-field span { display: block; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; transition: border-color .2s;
}
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); }
.cf-field textarea { resize: vertical; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-status { margin: 0; font-size: 0.9rem; }
.cf-status.is-error { color: var(--danger, #c0503f); }
.cf-status.is-success { color: #2e7d46; }
.contact-alt { margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.contact-alt a { color: var(--accent); }

@media (max-width: 520px) { .cf-row { flex-direction: column; gap: 0; } }

/* Footer */
.site-footer { text-align: center; padding: 34px; color: var(--muted); font-size: 0.86rem; border-top: 1px solid var(--line); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 18, 16, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 66vh; object-fit: contain; border-radius: 8px; margin: 0 auto; }
.lb-caption { display: block; color: #f3efe8; margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.lb-title { display: block; font-size: 1.2rem; font-weight: 600; }
.lb-meta { display: block; color: rgba(243,239,232,.6); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.lb-desc { display: block; color: rgba(243,239,232,.85); font-size: 0.95rem; margin-top: 10px; line-height: 1.5; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: none; color: #fff;
  cursor: pointer; user-select: none;
}
.lb-close { top: 22px; right: 30px; font-size: 2.6rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 18px; opacity: .7; transition: opacity .2s; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

@media (max-width: 560px) {
  .brand-name { font-size: 0.9rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lb-nav { font-size: 2.4rem; }
}
