:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #201d19;
  --muted: #6d655b;
  --line: #ded8ce;
  --accent: #8c6239;
  --accent-dark: #4d3521;
  --soft: #ebe4da;
  --shadow: 0 24px 70px rgba(45, 35, 24, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(222, 216, 206, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.header-cta,
.button.primary {
  background: var(--accent-dark);
  color: #fff8ee;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button.full {
  width: 100%;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding-top: 54px;
}

.trust-line,
.section-heading span,
.contact span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-stats dt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading p {
  grid-column: 2;
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
}

.service-grid,
.proof-list,
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article,
.proof-list article,
.testimonial-list article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  padding: 24px;
}

.service-grid p,
.proof-list p,
.testimonial-list span,
.contact p,
.faq p {
  color: var(--muted);
}

.portfolio {
  width: min(1240px, calc(100% - 36px));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.project-card.large {
  grid-row: span 2;
  min-height: 660px;
}

.project-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.035);
  opacity: 0.68;
}

.project-card div {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.project-card p {
  margin-bottom: 8px;
  color: #f0d7bc;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
}

.proof-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 270px;
  padding: 24px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.process-list span {
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.process-list p {
  color: var(--muted);
  font-size: 15px;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
}

.quote-panel {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 10px;
  background: var(--ink);
  color: #fff7ee;
}

blockquote {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.quote-panel p {
  color: #d2c4b7;
}

.testimonial-list {
  grid-template-columns: 1fr;
}

.testimonial-list p {
  margin-bottom: 8px;
  font-weight: 800;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

details p {
  max-width: 760px;
  margin: 14px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}

.contact h2 {
  margin: 10px 0 18px;
}

.contact-card {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.social-link {
  display: block;
  margin-top: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-card dl {
  margin: 20px 0 0;
}

.contact-card div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px 0;
}

.contact-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .portfolio-grid,
  .testimonials,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .section-heading p {
    grid-column: auto;
  }

  .hero-stats,
  .service-grid,
  .proof-list,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.large {
    min-height: 420px;
  }

  .project-card {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 58px 0;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-stats,
  .service-grid,
  .proof-list,
  .process-list,
  .testimonial-list {
    grid-template-columns: 1fr;
  }

  .portfolio {
    width: min(100% - 28px, 1240px);
  }

  .project-card,
  .project-card.large {
    min-height: 330px;
  }

  .contact-card div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
