/* ---------------------------------------------
   Fieldstone Software — tokens
--------------------------------------------- */
:root {
  --white:      #FDFDFC;
  --grey-100:   #F1F1EF;
  --grey-200:   #E3E3E0;
  --grey-400:   #A9AAA7;
  --grey-600:   #6E706C;
  --grey-800:   #3A3B38;
  --charcoal:   #201F1D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 3px;
  --wrap-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; color: var(--grey-600); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--grey-600);
  margin: 0 0 16px;
  text-transform: none;
}

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

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover { background: var(--grey-800); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--grey-400);
}
.btn-ghost:hover { border-color: var(--charcoal); }

.btn-large { padding: 16px 32px; font-size: 1rem; }

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(29, 29, 29, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-header {
    display: flex;
    width: 150px;
    height: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:not(.nav-cta) { color: var(--grey-600); }
.nav a:not(.nav-cta):hover { color: var(--charcoal); }

.nav-cta {
  background: var(--charcoal);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--grey-800); }

/* ---------------------------------------------
   Hero + signature strata divider
--------------------------------------------- */
.hero {
  padding: 50px 0 0;
  position: relative;
}

.hero .wrap { max-width: 780px; }

.hero h1 span {
  color: var(--grey-600);
  font-weight: 500;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Strata: layered horizontal bands, referencing "Fieldstone" — sediment lines of decreasing weight */
.strata {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.strata span {
  display: block;
  height: 1px;
  background: var(--grey-200);
}
.strata span:nth-child(1) { background: var(--grey-800); height: 2px; }
.strata span:nth-child(2) { background: var(--grey-400); }
.strata span:nth-child(3) { background: var(--grey-200); }
.strata span:nth-child(4) { background: var(--grey-200); opacity: 0.6; }
.strata span:nth-child(5) { background: var(--grey-200); opacity: 0.3; }

/* ---------------------------------------------
   Stats
--------------------------------------------- */
.stats {
  border-bottom: 1px solid var(--grey-200);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--grey-200);
  padding-left: 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey-600);
}

/* ---------------------------------------------
   Services
--------------------------------------------- */
.services, .process, .work {
  padding: 88px 0;
  border-bottom: 1px solid var(--grey-200);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--grey-400);
  display: block;
  margin-bottom: 20px;
}

.card p { margin-bottom: 0; }

/* ---------------------------------------------
   Process
--------------------------------------------- */
.process-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.process-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--grey-200);
  align-items: baseline;
}
.process-list li:last-child { border-bottom: 1px solid var(--grey-200); }

.step-mark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--grey-600);
  white-space: nowrap;
}

.process-list h3 { margin-bottom: 6px; }
.process-list p { margin-bottom: 0; max-width: 520px; }

/* ---------------------------------------------
   Work
--------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.work-item {
  padding-top: 20px;
  border-top: 2px solid var(--charcoal);
}

.work-item p { margin-bottom: 0; }

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact {
  padding: 96px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact h2 { max-width: 480px; }
.contact-sub { max-width: 440px; margin-bottom: 0; }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--grey-200);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--grey-600);
  font-family: var(--font-mono);
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 860px) {
  .nav { gap: 20px; }
  .nav a:not(.nav-cta) { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cards, .work-grid { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 1fr; gap: 8px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 64px; }
  .services, .process, .work, .contact { padding: 64px 0; }
}

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