:root {
  color-scheme: light;
  --ink: #181614;
  --muted: #625a53;
  --paper: #f7f4ef;
  --white: #ffffff;
  --charcoal: #211f1d;
  --red: #ef3c39;
  --red-dark: #ef3c39;
  --line: rgba(24, 22, 20, 0.14);
  --shadow: 0 18px 55px rgba(24, 22, 20, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
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;
  min-height: 104px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; min-width: 180px; }
.brand-logo {
  display: block;
  width: 140px;
  height: auto;
}

.nav-links { display: flex; justify-content: center; gap: clamp(16px, 4vw, 34px); color: var(--muted); font-size: 0.95rem; }
.nav-links a, .nav-call { transition: color 160ms ease, background 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-call {
  padding: 11px 15px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-call:hover { background: var(--red-dark); }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-media { position: absolute; inset: 0; opacity: 0.78; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 110%;
  height: 110%;
  transform: rotate(-7deg) translate(-4%, -5%);
}
.tile-grid span {
  min-height: 180px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent), linear-gradient(145deg, #b9ada0, #6d6258);
}
.tile-grid span:nth-child(3n) { background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent), linear-gradient(145deg, #d7d0c6, #82766a); }
.tile-grid span:nth-child(4n) { background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent), linear-gradient(145deg, #6c6660, #282522); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24,22,20,0.92), rgba(24,22,20,0.42) 56%, rgba(24,22,20,0.22)), linear-gradient(0deg, rgba(24,22,20,0.86), rgba(24,22,20,0.08) 62%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 88px;
  color: var(--white);
}
.hero-logo {
  display: block;
  width: clamp(270px, 36vw, 420px);
  height: auto;
  margin: 0 0 28px;
}
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.98;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-copy { max-width: 650px; margin: 26px 0 0; color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button, .lead-form button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 800; }
.button.primary, .lead-form button { color: var(--white); background: var(--red); }
.intro, .portfolio, .services, .contact-section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 8vw, 96px); padding: 74px 0; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.03; }
.intro > p { margin: 6px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.72; }
.portfolio, .services, .contact-section { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-note { max-width: 360px; margin: 0; color: var(--muted); line-height: 1.55; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 28px rgba(24,22,20,.08); }
.project-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e2da; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.project-image:hover img { transform: scale(1.025); }
.project-image:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.portfolio-more { margin-top: 28px; }
.portfolio-more summary { width: fit-content; padding: 14px 20px; color: var(--red-dark); border: 1px solid var(--line); border-radius: 4px; font-weight: 800; cursor: pointer; }
.portfolio-more[open] summary { margin-bottom: 24px; }
.project-info { padding: 18px; }
.project-info > span { color: var(--red-dark); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.project-info h3 { margin: 7px 0 0; font-size: 1.18rem; line-height: 1.25; }
.project-info p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.service-grid h3 { margin: 7px 0 0; font-size: 1.18rem; line-height: 1.25; }

.services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-grid article { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.service-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--charcoal); border-radius: 4px; font-weight: 800; }
.service-grid p, .contact-copy > p { color: var(--muted); line-height: 1.65; }

.contact-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.contact-card { display: grid; gap: 8px; margin-top: 28px; padding: 20px; color: var(--white); background: var(--charcoal); border-radius: 6px; }
.contact-card span { color: rgba(255,255,255,0.68); }
.contact-card p { margin: 0; color: rgba(255,255,255,0.76); }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.lead-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 800; }
.lead-form .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px; color: var(--ink); background: #fbfaf8; border: 1px solid #d8d0c6; border-radius: 4px; font: inherit; }
textarea { resize: vertical; }
.lead-form button { grid-column: 1 / -1; width: 100%; cursor: pointer; font: inherit; }
.lead-form button:disabled { cursor: wait; opacity: 0.68; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-note { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.form-note.success { color: #26733a; }
.form-note.error { color: var(--red-dark); }
.form-note a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(18px, 4vw, 56px); color: rgba(255,255,255,0.72); background: var(--charcoal); }
.site-footer a:hover { color: var(--white); }

.privacy-page { width: min(780px, calc(100% - 36px)); min-height: calc(100vh - 158px); margin: 0 auto; padding: 76px 0; }
.privacy-page h1 { margin: 0 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1; }
.privacy-page h2 { margin: 38px 0 10px; font-size: 1.45rem; }
.privacy-page p { color: var(--muted); font-size: 1.02rem; line-height: 1.72; }
.privacy-page .privacy-updated { margin: 34px 0 22px; font-size: .88rem; }

@media (max-width: 900px) {
  .site-header { align-items: start; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: start; }
  .intro, .contact-section { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand { min-width: 0; }
  .brand-logo { width: 108px; }
  .nav-call { width: 100%; text-align: center; }
  .hero { min-height: 690px; }
  .hero-content { padding-bottom: 58px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.1rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .service-grid, .lead-form { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image img { transition: none; }
}
