:root {
  --limestone: #EEF1EF;
  --band-1: #DCE3E0;
  --band-2: #BCC9C5;
  --band-3: #2D5559;
  --ink: #1C2B30;
  --slate: #4F5F5E;
  --river: #1F5A62;
  --river-deep: #164349;
  --goldenrod: #D9A21B;
  --paper: #FFFFFF;
  --on-dark: #EEF2F0;
  --on-dark-soft: #C3D1CE;
  --error: #A3261B;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--river-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--goldenrod);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--on-dark); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-name span { font-weight: 400; font-stretch: 100%; color: var(--slate); }

nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); font-family: var(--display); font-size: 1rem; }
nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; }
nav a:hover { color: var(--river); text-decoration: underline; }
.nav-contact { font-weight: 700; color: var(--river); }

/* Hero */
.hero { padding-top: clamp(3rem, 10vw, 7.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: 2rem;
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 54ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.phone { font-family: var(--display); color: var(--ink); text-decoration: none; }
.phone:hover { color: var(--river); text-decoration: underline; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--paper);
  background: var(--river);
  border: 0;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--river-deep);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.button:hover { background: var(--river-deep); color: var(--paper); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--river-deep); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* The stack */
.stack-intro { padding-bottom: clamp(2rem, 5vw, 3rem); }
.stack-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-stretch: 108%; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 1rem; }
.stack-intro p { color: var(--slate); max-width: 56ch; }

.band { padding: clamp(2.25rem, 5vw, 3.75rem) 0; position: relative; }
.band-1 { background: var(--band-1); }
.band-2 { background: var(--band-2); }
.band-3 { background: var(--band-3); color: var(--on-dark); }
.band-4 { background: var(--ink); color: var(--on-dark); }
/* each layer sits a little heavier than the one above it */
.band-1 h3 { font-weight: 600; }
.band-2 h3 { font-weight: 650; }
.band-3 h3 { font-weight: 720; }
.band-4 h3 { font-weight: 800; }

.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; align-items: start; }
.band h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-stretch: 112%; letter-spacing: -0.015em; }
.band-body p { margin-bottom: 1.1rem; }
.band ul { margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: 1rem; line-height: 1.45; }
.band li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; border-top: 1px solid rgba(28, 43, 48, 0.14); }
.band li::before {
  content: ""; position: absolute; left: 0; top: 0.95em;
  width: 0.6rem; height: 2px; background: currentColor; opacity: 0.55;
}
.band-3 li, .band-4 li { border-top-color: rgba(238, 242, 240, 0.18); }
.band-3 .band-body p, .band-4 .band-body p { color: var(--on-dark); }
.band-4 { box-shadow: inset 0 4px 0 var(--goldenrod); }

/* Process */
.process { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.process h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 2rem; }
.process ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.process li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.process li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-weight: 800; font-stretch: 120%;
  font-size: 2.2rem; line-height: 1; color: var(--river);
}
.process strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.35rem; }

/* About */
.about { background: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--band-2); border-bottom: 1px solid var(--band-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 108%; letter-spacing: -0.02em; }

/* Shared sections */
.text-link { font-family: var(--display); font-weight: 600; color: var(--river); }
nav a[aria-current="page"] { color: var(--river); text-decoration: underline; text-decoration-thickness: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; align-items: start; }
.platforms { padding-top: 0 !important; }
.why, .review, .projects, .platforms, .cta, .page-head { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.leader { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--band-2); }
.leader h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 108%; letter-spacing: -0.02em; }
.why { background: var(--paper); border-top: 1px solid var(--band-2); border-bottom: 1px solid var(--band-2); }
.why h2, .review h2, .projects h2, .clients h2, .cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.review .button { margin-top: 0.75rem; }
.section-lede { color: var(--slate); margin-bottom: 1.75rem; }
.page-head { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-stretch: 116%; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.prose p { max-width: 64ch; }
.stack-more { padding-top: 1.75rem; }
.also { color: var(--slate); margin-bottom: 0.75rem; }
.cta { text-align: left; }
.cta p { color: var(--slate); }
.cta .button { margin-top: 0.5rem; }

.rows { margin: 0; display: grid; }
.rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.25rem 3rem; padding: 1.1rem 0; border-top: 1px solid var(--band-2); }
.rows > div:last-child { border-bottom: 1px solid var(--band-2); }
.rows dt { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.rows dd { margin: 0; }
.platforms .rows dd { font-family: var(--display); font-stretch: 104%; font-size: 1.15rem; line-height: 1.5; }
.review .rows > div { grid-template-columns: 1fr; }
.review .rows dd { color: var(--slate); }

/* Who we help */
.clients { background: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--band-2); border-bottom: 1px solid var(--band-2); }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.client-grid h3 { font-size: 1.25rem; font-stretch: 108%; margin-bottom: 0.5rem; }
.client-grid > div:first-child h3 { color: var(--river); }
.client-grid p { margin: 0; }

/* Contact */
.contact { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.contact h1, .contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.direct { font-family: var(--display); font-size: 1.1rem; line-height: 1.8; margin-top: 1.5rem; }

.form {
  background: var(--paper);
  border: 1px solid var(--band-2);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 30px -18px rgba(28, 43, 48, 0.35);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--limestone);
  border: 1px solid #A9B7B3;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  caret-color: var(--river);
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus-visible, select:focus-visible, textarea:focus-visible { background: var(--paper); border-color: var(--river); outline-offset: 1px; }
textarea { resize: vertical; min-height: 9rem; }
[aria-invalid="true"] { border-color: var(--error); background: #FBF1EF; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.h-captcha { margin: 0.5rem 0 1rem; min-height: 78px; }
.form-status { font-family: var(--display); font-size: 1rem; margin: 0 0 1rem; min-height: 1.4em; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--river); font-weight: 700; }
.fine { font-size: 0.9rem; color: var(--slate); margin: 1rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: 2.5rem 0; font-family: var(--display); font-size: 0.95rem; }
.site-footer strong { color: var(--on-dark); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--paper); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-row p { margin: 0; }

/* Privacy page */
.legal { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-stretch: 112%; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; }
.legal .updated { color: var(--slate); }

/* Small screens */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .band-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .process ol, .client-grid { grid-template-columns: 1fr; }
  .rows > div, .split { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}
@media (max-width: 680px) {
  nav a:not(.nav-contact) { display: none; }
}
