:root {
  --bg: #f7f3ed;
  --paper: #fffdf9;
  --ink: #28231f;
  --muted: #766d65;
  --earth: #6f3928;
  --earth-deep: #3a241c;
  --sand: #d7c0a1;
  --line: rgba(40,35,31,.14);
  --radius: 14px;
  --shadow: 0 18px 45px rgba(53,35,26,.10);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-soft { background: #efe7dc; }
.section-earth { background: var(--earth-deep); color: #fff7ef; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 500; max-width: 900px; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; margin-bottom: 18px; }
h3 { font-size: 1.45rem; font-weight: 500; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-heading--light p:last-child { color: rgba(255,255,255,.74); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; background: rgba(32,25,21,.72); color: #fff; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 1.35rem; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: .8rem; }
.custom-logo { max-height: 52px; width: auto; }
.site-nav__list { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; font-size: .92rem; }
.site-nav a { opacity: .88; }
.site-nav a:hover { opacity: 1; }
.menu-toggle { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; }

.hero { min-height: 860px; position: relative; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; border-radius: 0 !important; min-height: 100%; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,17,13,.78), rgba(25,17,13,.26) 62%, rgba(25,17,13,.12)); }
.hero__content { position: relative; z-index: 2; padding-bottom: 96px; padding-top: 170px; }
.hero__lead { max-width: 650px; font-size: 1.18rem; color: rgba(255,255,255,.86); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { background: #fff; color: var(--ink); }
.button--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.button--dark { background: var(--earth-deep); color: #fff; }

.placeholder { background-image: linear-gradient(135deg, rgba(122,73,48,.22), rgba(219,187,145,.32)), repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 1px, transparent 1px 16px); background-color: #cdb59c; display: grid; place-items: center; color: rgba(58,36,28,.72); font-weight: 800; letter-spacing: .08em; text-align: center; padding: 20px; }
.placeholder--hero { background-color: #8b6a54; color: rgba(255,255,255,.68); }

.cards { display: grid; gap: 22px; }
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-card { position: relative; min-height: 430px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.media-card--wide { min-height: 520px; }
.media-card__image { position: absolute; inset: 0; transition: transform .45s ease; }
.media-card__overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: end; padding: 28px; color: #fff; background: linear-gradient(180deg, transparent 30%, rgba(31,20,15,.85)); opacity: 0; transition: opacity .35s ease; }
.media-card:hover .media-card__overlay, .media-card:focus-within .media-card__overlay { opacity: 1; }
.media-card:hover .media-card__image { transform: scale(1.06); }
.media-card__overlay h3 { margin-bottom: 8px; font-size: 2rem; }
.media-card__overlay p { margin: 0 0 14px; color: rgba(255,255,255,.84); }
.text-link { font-weight: 700; font-size: .92rem; }

.formats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.format-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.format-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.format-card__image { aspect-ratio: 4/3; }
.format-card__body { padding: 22px; }
.format-card__body h3 { margin-bottom: 6px; }
.format-card__body p { margin: 0; color: var(--muted); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.benefit-card { background: var(--earth-deep); padding: 34px; min-height: 250px; }
.benefit-card__number { display: block; color: var(--sand); font-weight: 800; letter-spacing: .12em; margin-bottom: 48px; }
.benefit-card p { color: rgba(255,255,255,.72); }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 16px; }
.project-card { border: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; min-height: 240px; }
.project-card:nth-child(1), .project-card:nth-child(6) { grid-column: span 7; grid-row: span 3; }
.project-card:nth-child(2), .project-card:nth-child(5) { grid-column: span 5; grid-row: span 3; }
.project-card:nth-child(n+3):nth-child(-n+4), .project-card:nth-child(n+7) { grid-column: span 3; grid-row: span 2; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.process-card__image { aspect-ratio: 4/5; border-radius: var(--radius); margin-bottom: 18px; }
.process-card h3 { font-size: 1.6rem; }

.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-details { margin-top: 34px; }
.contact-form { display: grid; gap: 18px; padding: 36px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.contact-form label { display: grid; gap: 8px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 14px 15px; color: var(--ink); }
.contact-form small { color: var(--muted); }

.site-footer { background: #241915; color: rgba(255,255,255,.78); padding: 66px 0 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: Georgia, serif; color: #fff; font-size: 1.8rem; }
.site-footer strong { color: #fff; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

@media (max-width: 1020px) {
  .cards--four, .formats-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .site-nav { display: none; position: absolute; top: 78px; left: 20px; right: 20px; background: #2b211c; padding: 18px; border-radius: 12px; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 8px; }
  .site-nav a { display: block; padding: 10px; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 700px) {
  .section { padding: 74px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { min-height: 760px; }
  .hero__content { padding-bottom: 60px; }
  .cards--two, .cards--four, .formats-grid, .benefits-grid, .process-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .media-card, .media-card--wide { min-height: 380px; }
  .media-card__overlay { opacity: 1; background: linear-gradient(180deg, transparent 42%, rgba(31,20,15,.88)); }
  .projects-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .project-card, .project-card:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 190px; }
  .contact-form { padding: 24px; }
}
