@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fffaf3;
  --sage: #eef2ec;
  --line: #e4ded2;
  --line-strong: #d6ddd3;
  --ink: #2b2118;
  --muted: #6b5a4a;
  --pine: #1f4d47;
  --pine-deep: #163934;
  --pine-text: #2a6157;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 72rem;
  --measure: 38rem;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

a {
  color: var(--pine-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--pine-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 0.75rem; }

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.button {
  display: inline-block;
  padding: 0.8125rem 1.375rem;
  border-radius: 999px;
  background: var(--pine);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover { background: var(--pine-deep); color: var(--paper); }
.button-small { padding: 0.5rem 1rem; font-size: 0.9375rem; }

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.125rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.brand:hover { color: var(--ink); }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: clamp(1rem, 2.5vw, 1.75rem); }
.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 56rem) {
  .site-nav { display: block; }
}

/* Hero */

.hero .wrap {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3.5rem, 9vw, 7rem);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.875rem);
  font-weight: 640;
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  max-width: 36ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.text-link { font-weight: 550; }

.hero-art {
  width: 100%;
  max-width: 15rem;
  height: auto;
}
.hero-art text {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* One load moment: the stack builds from the servers up, then the sun rises. */
.layer, .sun {
  transform-box: fill-box;
  animation: stack 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.layer-4 { animation-delay: 0.1s; }
.layer-3 { animation-delay: 0.25s; }
.layer-2 { animation-delay: 0.4s; }
.layer-1 { animation-delay: 0.55s; }
.sun { animation-name: rise; animation-duration: 1.2s; animation-delay: 0.8s; }

@keyframes stack {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(60%); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .hero-art { max-width: 26rem; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer, .sun { animation: none; }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.intro {
  max-width: var(--measure);
  margin-top: 0.875rem;
  color: var(--muted);
}

/* What we build */

.services {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.services h3, .steps h3 {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.services p, .steps p {
  max-width: 34ch;
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
}
@media (min-width: 64rem) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Products */

.products { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.product {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.product:first-child { border-top: 1px solid var(--line); }
.product h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.product p { max-width: 46ch; color: var(--muted); }
.product a { justify-self: start; font-weight: 550; }

@media (min-width: 48rem) {
  .product {
    grid-template-columns: 15rem minmax(0, 1fr) 11rem;
    align-items: baseline;
  }
  .product a { justify-self: end; }
}

/* How we work: a real sequence, so the steps are numbered */

.steps {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--pine);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
}
@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
}

/* Contact */

.contact .wrap { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--sage);
}
.contact-email {
  display: inline-block;
  font-size: clamp(1.0625rem, 0.6rem + 2.4vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.contact-card .num { margin-top: 0.75rem; font-size: 1.125rem; }
.num { font-variant-numeric: tabular-nums; }
.legal {
  max-width: 52ch;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 60rem) {
  .contact .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* 404 */

.missing { padding-block: clamp(4rem, 12vw, 9rem); }
.missing h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.missing p { margin-top: 1rem; color: var(--muted); }
