:root {
  --paper: #f4f0e8;
  --paper-2: #e7ded0;
  --ink: #242424;
  --muted: #655f57;
  --line: rgba(36, 36, 36, 0.14);
  --brick: #9d4f35;
  --teal: #315f5b;
  --steel: #59666b;
  --wood: #b07a4f;
  --white: #fffaf2;
  --shadow: 0 24px 70px rgba(38, 31, 24, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  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;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 36, 36, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 36, 36, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(36, 36, 36, 0.1);
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark,
.founder-initials {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.3vw, 1.6rem);
  color: var(--muted);
  font-size: 0.93rem;
}

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

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.header-action {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
}

.btn.ghost {
  background: rgba(255, 250, 242, 0.5);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(157, 79, 53, 0.14), transparent);
  pointer-events: none;
}

.hero-structure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 4rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brick);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 8.5vw, 7.4rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

h3 {
  margin: 0.5rem 0 0;
  color: var(--teal);
  font-size: 1.1rem;
}

.hero-lede,
.section-copy,
.section-heading p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-lede {
  max-width: 680px;
  margin: 1.3rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.service-note {
  width: fit-content;
  margin-top: 1.2rem;
  border-left: 4px solid var(--brick);
  padding-left: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.hero-panel {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  backdrop-filter: blur(10px);
}

.hero-panel span {
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mini-grid span {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.65rem;
  color: var(--ink);
  font-weight: 750;
}

.section-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.metrics {
  background: var(--ink);
  color: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(255, 250, 242, 0.18);
}

.metric {
  min-height: 170px;
  background: var(--ink);
  padding: 1.3rem;
}

.metric strong {
  display: block;
  color: #e7d2b5;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.9rem;
  color: rgba(255, 250, 242, 0.78);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-left: 4px solid var(--teal);
  background: rgba(255, 250, 242, 0.6);
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-weight: 650;
}

.bim-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 95, 91, 0.14), transparent 40%),
    var(--white);
  overflow: hidden;
}

.bim-visual canvas {
  width: 100%;
  height: 430px;
}

.visual-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.84);
  padding: 0.85rem;
  backdrop-filter: blur(8px);
}

.visual-caption span {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.service-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card,
.gallery-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.66);
}

.service-card {
  min-height: 220px;
  padding: 1.3rem;
}

.service-number {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--brick);
  font-weight: 850;
}

.service-card h3,
.gallery-card h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.2rem;
}

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

.founder-band {
  background: #ded2c2;
  border-block: 1px solid var(--line);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.founder-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(36, 36, 36, 0.18);
  background:
    linear-gradient(155deg, rgba(49, 95, 91, 0.18), transparent 45%),
    var(--paper);
  padding: 1.2rem;
}

.founder-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.founder-initials {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.highlight-row span {
  border: 1px solid rgba(36, 36, 36, 0.18);
  background: rgba(255, 250, 242, 0.58);
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-weight: 750;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}

.gallery-body {
  padding: 1rem;
}

.gallery-type {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-weight: 850;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-section {
  background: var(--teal);
  color: var(--white);
}

.contact-section .eyebrow,
.contact-section .section-copy {
  color: #e7d2b5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-list a {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(255, 250, 242, 0.2);
  background: rgba(255, 250, 242, 0.08);
  padding: 0.95rem;
}

.contact-list span {
  color: rgba(255, 250, 242, 0.7);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  border: 1px solid rgba(255, 250, 242, 0.24);
  background: var(--white);
  color: var(--ink);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 750;
}

.lead-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(36, 36, 36, 0.18);
  background: #fff;
  color: var(--ink);
  padding: 0.85rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: rgba(255, 250, 242, 0.75);
}

/* --- Mobile nav toggle --- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 260ms ease, opacity 260ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .header-action {
    order: 3;
    padding-inline: 0.75rem;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0 0.2rem;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
  }

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

  .brand small {
    display: none;
  }

  .hero-inner,
  .split-section,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-panel {
    max-width: 520px;
  }

  .metrics-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bim-visual,
  .bim-visual canvas {
    min-height: 340px;
    height: 340px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 0.85rem;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .visual-caption,
  .site-footer {
    flex-direction: column;
  }

  .btn,
  .header-action {
    width: 100%;
  }

  .header-action {
    width: auto;
    min-height: 38px;
  }

  .metrics-grid,
  .service-grid,
  .gallery-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
