/* ===========================================================
   Stone Wall Trees — site styles
   Palette: Ink #15171B · Slate #1C1F25 · Sage #8A9A64
            Bone #EEF0EA · Stone #5A605D
   Type: Hanken Grotesk (display/body) · IBM Plex Mono (labels)
   =========================================================== */

:root {
  --ink: #15171b;
  --slate: #1c1f25;
  --sage: #8a9a64;
  --sage-text: #15171b;
  --bone: #eef0ea;
  --stone: #5a605d;
  --line-dark: #2a2e35;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--sage); color: var(--ink); }

h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 23, 27, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #262a31;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .wordmark {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.brand .dot { color: var(--sage); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a.link {
  font-weight: 500;
  font-size: 14px;
  color: #a0a6a4;
  transition: color 0.15s ease;
}
.nav a.link:hover { color: var(--bone); }

.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--sage);
  color: var(--sage-text);
}
.btn-primary:hover { opacity: 0.9; }
.nav .btn-primary {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 6px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#20242b 1px, transparent 1px),
    linear-gradient(90deg, #20242b 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.grid-bg.hero-grid {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent);
}
.grid-bg.approach-grid {
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent);
}
.hero-inner {
  position: relative;
  padding: 104px 40px 96px;
  max-width: var(--max);
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2c313a;
  border-radius: 100px;
  padding: 7px 15px;
  margin-bottom: 34px;
}
.pill .ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 154, 100, 0.18);
}
.pill .label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #bfc4c2;
}
h1.headline {
  font-weight: 800;
  font-size: 68px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--bone);
  max-width: 880px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: #a7adab;
  margin-top: 26px;
  max-width: 610px;
  text-wrap: pretty;
}
.hero-cta { margin-top: 40px; }
.hero-cta .btn-primary {
  font-size: 16px;
  padding: 15px 28px;
}

/* ===== Stat band ===== */
.stat-band { background: var(--bone); }
.stat-inner {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.stat-num {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-num .plus { color: var(--sage); }
.stat-cap {
  font-size: 17px;
  color: var(--stone);
  line-height: 1.4;
}

/* ===== Sections ===== */
.section { }
.section.light { background: #f7f8f5; }
.section.dark { background: var(--ink); position: relative; overflow: hidden; }
.section.contact { background: #101216; }
.section-inner {
  position: relative;
  padding: 96px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.section h2.title {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.025em;
  margin-top: 14px;
  line-height: 1.08;
  max-width: 660px;
}
.section.light .eyebrow { color: #7d8b58; }
.section.light h2.title { color: var(--ink); }
.section.dark .eyebrow { color: var(--sage); }
.section.dark h2.title { color: var(--bone); }
.lede {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 560px;
}
.section.light .lede { color: var(--stone); }
.section.dark .lede { color: #a7adab; }

/* ===== Services grid ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: #fff;
  border: 1px solid #e6e8e3;
  border-radius: 12px;
  padding: 32px;
}
.card .icon { margin-bottom: 22px; display: block; }
.card h3 {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  margin-top: 12px;
}

/* ===== Approach grid ===== */
.grid-2.approach { margin-top: 52px; gap: 18px; }
.tile {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 30px;
  background: var(--slate);
}
.tile .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 14px;
}
.tile h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--bone);
}
.tile p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #9298a0;
  margin-top: 10px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact h2.title-lg {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-top: 14px;
  line-height: 1.05;
}
.contact .lede { color: #a7adab; max-width: 440px; }
.contact-card {
  background: #1a1c21;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 34px;
}
.email-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--sage);
  border-radius: 10px;
  padding: 20px 24px;
  transition: opacity 0.15s ease;
  min-width: 0;
}
.email-btn > span:first-child { min-width: 0; }
.email-btn:hover { opacity: 0.92; }
.email-btn .lbl {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-text);
  opacity: 0.7;
}
.email-btn .addr {
  display: block;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--sage-text);
  margin-top: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.email-btn .arrow { font-size: 22px; color: var(--sage-text); flex: none; }
.info-row { display: flex; gap: 12px; margin-top: 14px; }
.info {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 18px 20px;
}
.info .k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7e8482;
}
.info .v {
  font-weight: 600;
  font-size: 15px;
  color: var(--bone);
  margin-top: 4px;
}
.info .v.avail { display: inline-flex; align-items: center; gap: 7px; }
.info .v.avail .ping {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
}

/* ===== Footer ===== */
.site-footer { background: #0d0e11; border-top: 1px solid #20242b; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: #7e8482;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 13px;
  color: #7e8482;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--bone); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .wrap, .hero-inner, .section-inner, .footer-inner, .stat-inner { padding-left: 32px; padding-right: 32px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 640px) {
  .header-inner { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 16px; }
  .nav a.link { display: none; }

  .hero-inner { padding: 64px 20px 56px; }
  h1.headline { font-size: 40px; }
  .hero-sub { font-size: 17px; }

  .stat-inner { padding: 28px 20px; gap: 10px; }
  .stat-num { font-size: 36px; }
  .stat-cap { font-size: 15px; }

  .section-inner { padding: 56px 20px; }
  .section h2.title { font-size: 28px; }
  .contact h2.title-lg { font-size: 34px; }
  .contact h2.title-lg br { display: none; }

  .grid-2 { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .card { padding: 26px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 26px; }
  .email-btn { padding: 18px 20px; }
  .email-btn .addr { font-size: 17px; }

  .footer-inner { padding: 32px 20px; gap: 18px; }
}

@media (max-width: 380px) {
  .info-row { flex-direction: column; }
}
