:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --surface-soft: #f1ece6;
  --text: #171514;
  --muted: #665f59;
  --line: #ddd4ca;
  --accent: #76512e;
  --accent-dark: #573819;
  --accent-soft: #efe3d6;
  --shadow: 0 20px 70px rgba(35, 27, 20, 0.08);
  --container: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 15px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line);
}

.button.secondary:hover { border-color: var(--accent); background: var(--accent-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  padding: clamp(54px, 9vw, 116px) 0 clamp(42px, 7vw, 82px);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: "Hanken Grotesk", Inter, sans-serif;
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  max-width: 930px;
  font-size: clamp(44px, 7vw, 88px);
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2 { font-size: clamp(34px, 5vw, 58px); }
.section-heading p { margin: 0; color: var(--muted); }

.project-stack {
  display: grid;
  gap: 34px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card:nth-child(even) .project-media { order: 2; }
.project-card:nth-child(even) .project-content { order: 1; }

.project-media {
  position: relative;
  min-height: 430px;
  background: var(--surface-soft);
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.project-content {
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 18px;
}

.project-content h3 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.project-content p { color: var(--muted); margin: 0; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.project-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bg);
}

.empty-state {
  padding: 32px;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-card:nth-child(odd) { padding-right: 30px; border-right: 1px solid var(--line); }
.service-card:nth-child(even) { padding-left: 30px; }

.service-card h3 { font-size: 28px; }
.service-card p { color: var(--muted); margin: 12px 0 0; }

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(221, 212, 202, 0.7);
  color: #2b2825;
}

.service-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 10px;
}

.contact-band {
  background: var(--text);
  color: #fff;
  padding: clamp(42px, 7vw, 80px) 0;
}

.contact-band .section-heading p { color: rgba(255,255,255,.72); }
.contact-band .eyebrow { color: #dfc2a6; }
.contact-band .button { background: #fff; color: var(--text); border-color: #fff; }
.contact-band .button:hover { background: var(--accent-soft); }

.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-panel {
  max-width: 760px;
  margin: 80px auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-panel code {
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  color: var(--accent-dark);
}

@media (max-width: 880px) {
  .nav { align-items: flex-start; padding-top: 18px; padding-bottom: 18px; flex-direction: column; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px; overflow-x: auto; }
  .nav .button { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-media { order: 1; }
  .project-card:nth-child(even) .project-content { order: 2; }
  .project-media, .project-media img { min-height: 300px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; padding: 28px 0; }
  .service-card:nth-child(odd), .service-card:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
