:root {
  --bg: #f4efe6;
  --text: #2d231a;
  --muted: #6e5a4c;
  --surface: #fff9f1;
  --paper: #ffffff;
  --dark: #241b13;
  --accent: #a86a2f;
  --accent-soft: #d2ad84;
  --line: #e4d7c8;
  --shadow: 0 22px 38px rgba(37, 26, 15, 0.13);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--bg);
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.62em;
  line-height: 1.06;
  color: var(--dark);
}

h1,
h2,
h3 {
  font-family: Merriweather, "Times New Roman", serif;
}

h1 {
  font-size: clamp(42px, 6.4vw, 80px);
}

h2 {
  font-size: clamp(32px, 4.6vw, 54px);
}

h3 {
  margin-bottom: 0.4em;
  font-size: 30px;
}

p {
  margin: 0 0 1em;
}

.section-limiter {
  width: min(100% - 36px, var(--max-width));
  margin-inline: auto;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 30px rgba(44, 33, 24, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

.brand-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.brand-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  color: var(--dark);
  font-size: 22px;
  font-family: Merriweather, Georgia, serif;
  line-height: 1;
  letter-spacing: 0.04em;
  text-wrap: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f1e5d4;
}

.site-nav .nav-cta {
  background: var(--dark);
  color: #fff;
}

.menu-button,
.menu-backdrop {
  display: none;
}

.hero {
  position: relative;
  min-height: min(900px, 90vh);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 27, 19, 0.86), rgba(36, 27, 19, 0.52) 45%, rgba(36, 27, 19, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 120px auto 48px;
  color: #fff;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  font-size: clamp(19px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(168, 106, 47, 0.3);
}

.button.primary:hover {
  background: #c57e3d;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.button.secondary:hover {
  background: color-mix(in srgb, var(--dark) 60%, transparent);
  border-color: var(--accent-soft);
}

.hero-facts {
  position: absolute;
  left: clamp(14px, 4vw, 38px);
  right: clamp(14px, 4vw, 38px);
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: color-mix(in srgb, var(--dark) 68%, transparent);
  backdrop-filter: blur(8px);
}

.hero-facts div {
  padding: 18px 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  color: #fff;
  font-family: Merriweather, Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  display: block;
  margin-bottom: 2px;
}

.hero-facts span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: #f8f2e8;
}

.section-heading,
.section-copy,
.quality-panel,
.contact-card {
  max-width: 700px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.section-grid-2 {
  align-items: center;
}

.inline-link {
  display: inline-flex;
  color: var(--dark);
  text-underline-offset: 2px;
  text-decoration: underline;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
}

.service-card div {
  padding: 20px;
}

.service-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.quality-card,
.team-card,
.project-card > div,
.timeline article,
.quote-card,
.deliverables .quality-card,
.timeline-steps article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.quality-card h3,
.team-card h3 {
  margin-bottom: 10px;
}

.quality-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.check-list,
.compact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li,
.compact-list li {
  padding-left: 20px;
  position: relative;
}

.check-list li::before,
.compact-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.08em;
  color: var(--accent);
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card > div {
  margin: 0;
}

.timeline,
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline article,
.timeline-steps article {
  position: relative;
}

.timeline article h3,
.timeline-steps article h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.timeline article::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: -10px;
  top: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0e3d3;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.quote-card p:last-child,
.hero-content p {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.contact-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
  min-height: 430px;
}

.map-shell iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

address {
  margin-bottom: 1em;
  font-style: normal;
}

.site-footer {
  padding: 52px 0 58px;
  color: #ecdfce;
  background: var(--dark);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 20px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--accent-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .section-limiter {
    width: min(100% - 28px, var(--max-width));
  }

  .service-grid,
  .deliverables,
  .team-grid,
  .timeline,
  .timeline-steps,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 76px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .site-nav {
    position: fixed;
    inset: 84px 16px auto 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 24px 40px -20px rgba(58, 36, 22, 0.65);
    z-index: 59;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .menu-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    place-items: center;
    z-index: 70;
  }

  .menu-button span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .menu-button span:nth-child(1) {
    top: 13px;
  }

  .menu-button span:nth-child(2) {
    top: 21px;
  }

  .menu-button span:nth-child(3) {
    top: 29px;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(35, 28, 20, 0.44);
    opacity: 0;
    pointer-events: none;
    z-index: 55;
    transition: opacity 0.2s ease;
    display: block;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  body.menu-open .menu-button span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  body.menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-button span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    margin-top: 90px;
  }

  .brand-wordmark {
    font-size: 16px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    left: 14px;
    right: 14px;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-grid,
  .service-grid,
  .deliverables,
  .team-grid,
  .timeline,
  .timeline-steps,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .timeline article::before {
    left: -7px;
  }

  .section-limiter,
  .hero-content {
    width: min(100% - 28px, var(--max-width));
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
