:root {
  --ground: #0f1512;
  --surface: #161e1a;
  --ink: #e8ede9;
  --muted: #8fa096;
  --accent: #3e8e62;
  --accent-bright: #5db283;
  --hairline: rgba(232, 237, 233, 0.14);
  --danger: #d98a7a;
  --measure: 64ch;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ground); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--accent); }
a:hover { text-decoration-color: var(--accent-bright); }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap { padding-inline: var(--pad); max-width: 1120px; margin-inline: auto; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 26px;
}
.brand {
  text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 14px; height: 14px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.site-nav { display: flex; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(56px, 12vw, 150px) clamp(48px, 8vw, 110px); }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9.2vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variation-settings: "opsz" 96, "wdth" 100;
}
.hero h1 span { display: block; }
.hero h1 .lead { color: var(--muted); font-weight: 400; }
.hero-sub {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 52ch;
  color: var(--ink);
}
.hero-actions { margin-top: 32px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.button {
  display: inline-block; padding: 13px 22px; border-radius: 6px; border: 0;
  background: var(--accent); color: #06110b; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background 120ms ease;
}
.button:hover { background: var(--accent-bright); }
.button:disabled { opacity: 0.6; cursor: default; }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.button.quiet:hover { border-color: var(--muted); background: transparent; }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--hairline); }
.section h2 {
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 500;
  font-variation-settings: "opsz" 48;
}

/* Ruled definition list */
.services { margin: 0; }
.services > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 48px;
  padding-block: 26px; border-top: 1px solid var(--hairline);
}
.services > div:last-child { border-bottom: 1px solid var(--hairline); }
.services dt { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; }
.services dd { margin: 0; color: var(--muted); max-width: 58ch; }
@media (min-width: 720px) {
  .services > div { grid-template-columns: 260px minmax(0, 1fr); }
}

/* How we work */
.ethos { display: grid; gap: 28px 56px; }
.ethos p { color: var(--muted); }
.ethos p strong { color: var(--ink); font-weight: 500; }
@media (min-width: 720px) { .ethos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ethos p { max-width: none; } }

/* Contact */
.contact-intro { color: var(--muted); max-width: 56ch; }
.contact-form { margin-top: 40px; max-width: 640px; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.95rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink); font: inherit; padding: 8px 0 10px; border-radius: 0;
  transition: border-color 120ms ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-bright); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; gap: 26px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--muted); }
.form-status.ok { color: var(--accent-bright); }
.form-status.err { color: var(--danger); }
.contact-alt { margin-top: 36px; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline); padding-block: 32px 48px;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: clamp(40px, 7vw, 90px); }
.legal > * { max-width: 72ch; }
.legal h1 {
  margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 500; font-variation-settings: "opsz" 72;
}
.legal .effective { color: var(--muted); margin-bottom: 44px; }
.legal h2 { margin: 48px 0 14px; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.legal h3 { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 600; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; max-width: var(--measure); }
.legal li { margin-bottom: 0.45em; }
.legal .note {
  padding: 18px 20px; background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; margin: 0 0 32px; color: var(--ink);
}

/* Hero reveal — the one motion on the site */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero-sub, .hero-actions { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 span:nth-child(2) { animation-delay: 80ms; }
  .hero h1 span:nth-child(3) { animation-delay: 160ms; }
  .hero h1 span:nth-child(4) { animation-delay: 240ms; }
  .hero-sub { animation-delay: 380ms; }
  .hero-actions { animation-delay: 460ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
