:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --text: #1b1b1a;
  --text-2: #46443f;
  --muted: #77736b;
  --rule: #dcd8cf;
  --green: #1f3b2d;
  --green-dark: #172d22;
  --on-green: #eef0ea;
  --display: 'Libre Caslon Display', Georgia, serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 24px;
}
h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* Top bar and header */
.infobar { background: var(--green); color: var(--on-green); font-size: 13px; }
.infobar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.infobar a { text-decoration: none; }
.infobar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { letter-spacing: 0.08em; color: var(--green); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--green); border-bottom-color: var(--green); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.lede { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Developer strip */
.devs { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.devs-inner {
  display: flex;
  align-items: center;
  gap: 16px 40px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.devs-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.devs ul {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.devs li { font-family: var(--display); font-size: 24px; line-height: 1.2; }

/* Wide photo */
.wide img { width: 100%; height: min(68vh, 620px); object-fit: cover; }
.wide figcaption, .photo-pair figcaption {
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
}

/* Sections */
.about, .services, .process, .contact { padding: clamp(64px, 9vw, 120px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text p { color: var(--text-2); max-width: 520px; }

.services { background: var(--bg-alt); }
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.section-intro h2 { margin: 0; }
.section-intro p { margin: 0; color: var(--text-2); max-width: 460px; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.service { border-top: 1px solid var(--rule); padding: 24px 0 28px; }
.service p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 460px; }

/* Process */
.process { background: var(--green); color: var(--on-green); }
.process h2 { color: #fff; }
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.steps li { border-top: 1px solid rgba(238, 240, 234, .3); padding-top: 20px; }
.step-num {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  color: #b8c7bb;
  margin-bottom: 16px;
}
.steps h3 { color: #fff; }
.steps p { margin: 0; font-size: 16px; color: rgba(238, 240, 234, .78); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-intro { color: var(--text-2); max-width: 460px; margin-bottom: 28px; }
.details { margin: 48px 0 0; display: grid; gap: 0; }
.details > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.details > div:last-child { border-bottom: 1px solid var(--rule); }
.details dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.details dd { margin: 0; }
.details a { color: var(--green); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Footer */
.site-footer { background: var(--green-dark); color: var(--on-green); padding-top: 56px; font-size: 15px; }
.site-footer a { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid p { margin: 0 0 6px; color: rgba(238, 240, 234, .8); }
.footer-brand { color: #fff !important; margin-bottom: 12px !important; }
.site-footer .brand-mark { color: #b8c7bb; }
.footer-small { border-top: 1px solid rgba(238, 240, 234, .18); padding-top: 20px; padding-bottom: 28px; }
.footer-small p { margin: 0; font-size: 13px; color: rgba(238, 240, 234, .6); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid, .section-intro { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .devs-inner { flex-direction: column; align-items: flex-start; }
  .devs ul { justify-content: flex-start; }
  .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .infobar .container { justify-content: center; }
  .brand { font-size: 22px; }
  .photo-pair { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .wide img { height: 48vh; }
  .devs li { font-size: 21px; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
}
