:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --ink: #141512;
  --muted: #62645f;
  --line: #ded8ce;
  --paper: #fffdf8;
  --rust: #b64617;
  --green: #206f60;
  --blue: #2d5f89;
  --shadow: 0 18px 50px rgba(38, 31, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

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

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

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.hero {
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 56px;
}

.topbar,
.hero-grid,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar {
  min-height: 48px;
}

.brand,
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.brand {
  gap: 10px;
  font-size: 1rem;
  font-weight: 720;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand-mark span {
  border-radius: 50%;
}

.brand-mark span:nth-child(1) {
  background: var(--rust);
}

.brand-mark span:nth-child(2) {
  background: var(--green);
}

.brand-mark span:nth-child(3) {
  background: var(--blue);
}

.contact-link {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.contact-link:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(45, 95, 137, 0.28);
  outline-offset: 5px;
}

.hero-grid {
  width: 100%;
  align-items: end;
  padding-top: 96px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.service-index {
  margin: 0 0 18px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 9vw, 6.9rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.intro {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.signal-panel {
  width: min(100%, 338px);
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
}

.signal-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
  text-transform: uppercase;
}

.signal-row strong {
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 720;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.services article {
  min-height: 236px;
  padding: 28px;
  background: var(--paper);
}

.services h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.services p {
  color: var(--muted);
  font-size: 0.98rem;
}

.footer {
  min-height: 72px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  .hero-grid {
    display: grid;
    padding-top: 72px;
  }

  .signal-panel {
    width: 100%;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 18px;
  }

  .topbar,
  .footer {
    gap: 16px;
  }

  .hero-grid {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.1rem);
  }

  .intro {
    margin-top: 22px;
  }

  .signal-row {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services article {
    min-height: 192px;
    padding: 24px;
  }
}
