:root {
  --bg: #f7f0e4;
  --bg2: #efe4d2;
  --ink: #2a241c;
  --muted: #7a6f62;
  --line: #e2d5c0;
  --accent: #3d6b52;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 90% 10%, rgba(61,107,82,0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(196,140,80,0.08), transparent 50%),
    linear-gradient(135deg, transparent 48%, var(--bg2) 48%, var(--bg2) 52%, transparent 52%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
a { color: var(--accent); }
.shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem 0 3.5rem;
}

/* Home hero: unchanged design from the original page */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
h1 {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.55rem;
}
.row h1 { display: inline-block; }
/* Tagline: copied verbatim from live www.justifylabs.com (fixed scaling, ~97% of heading width) */
.lede {
  font-size: clamp(0.67rem, 1.82vw, 1.17rem);
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.whatwedo { list-style: none; display: grid; gap: 0.6rem; }
.whatwedo li { color: var(--muted); }
.whatwedo strong { color: var(--ink); font-weight: 650; margin-right: 0.4rem; }
.geo {
  width: 96px;
  height: 96px;
  background: linear-gradient(160deg, #4a7d62, #2a4638);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  opacity: 0.9;
  flex-shrink: 0;
}

/* Content */
.intro { max-width: 62ch; font-size: 1.08rem; }
.intro p + p { margin-top: 0.9rem; }
.legal-name { color: var(--muted); font-size: 0.95rem; }
h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 0.35rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255, 252, 246, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-head p { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.12rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 0.8rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.3rem; }
.muted { color: var(--muted); }

footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .shell { padding-left: 1.15rem; padding-right: 1.15rem; }
  main { padding: 2rem 0 2.5rem; gap: 2rem; }
  .geo { width: 72px; height: 72px; }
  .intro { font-size: 1rem; }
}
