:root {
  --bg: #f4f3ef;
  --paper: #ffffff;
  --text: #1f252b;
  --muted: #5f6871;
  --line: #cfd5d7;
  --accent: #244d5c;
  --accent-2: #6f7f86;
  --panel: #ecefed;
  --panel-2: #f7f6f2;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.58;
}

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

.page,
footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

h2 {
  margin-bottom: 0;
  max-width: 690px;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -.012em;
}

h3 {
  margin: 0 0 10px;
  font-size: .98rem;
  line-height: 1.25;
  letter-spacing: .01em;
}

p { color: var(--muted); }

.contact-link,
.contact-section a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .88rem;
  font-weight: 650;
}

.contact-link:hover,
.contact-section a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  margin-top: 28px;
  padding: clamp(38px, 6vw, 66px) clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--paper), var(--panel));
}

.hero-copy { max-width: 820px; }

.hero-copy p:last-child {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: 1.03rem;
}

.section {
  padding: clamp(38px, 6vw, 62px) 0;
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.copy p { margin-bottom: 17px; }
.copy p:last-child { margin-bottom: 0; }

.section-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.service-grid article {
  min-height: 188px;
  padding: 22px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid article:nth-child(even) { background: var(--panel-2); }

.service-grid p {
  margin-bottom: 0;
  font-size: .94rem;
}

.contact-section {
  margin: clamp(40px, 6vw, 64px) 0;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact-section h2 { max-width: 690px; }
.contact-section a { white-space: nowrap; }

footer {
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: .88rem;
}

footer p { margin-bottom: 0; }

@media (max-width: 820px) {
  .site-header,
  .two-column,
  .contact-section { grid-template-columns: 1fr; }

  .site-header {
    align-items: flex-start;
    padding: 20px 0;
  }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { align-items: start; }
}

@media (max-width: 560px) {
  .page,
  footer { width: min(var(--max), calc(100% - 28px)); }
  body { font-size: 15px; }
  .hero { margin-top: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: auto; }
  .contact-link,
  .contact-section a { width: 100%; justify-content: center; }
}

.connect-page .site-header {
  min-height: 78px;
}

.connect-hero {
  padding-top: clamp(30px, 5vw, 48px);
  padding-bottom: clamp(30px, 5vw, 48px);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.connect-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.connect-card:nth-child(even) {
  background: var(--panel-2);
}

.connect-card:hover,
.connect-card:focus-visible {
  color: var(--accent);
  background: var(--panel);
  outline: none;
}

.connect-card-label {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.connect-card strong {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

.connect-card em {
  max-width: 680px;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 560px) {
  .connect-card {
    min-height: 104px;
    padding: 20px;
  }
}

.connect-form-section {
  align-items: start;
}

.connect-form-section p:not(.eyebrow) {
  margin: 12px 0 0;
}

.connect-form {
  display: grid;
  gap: 13px;
  min-width: min(420px, 100%);
}

.connect-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .82rem;
  font-weight: 650;
}

.connect-form input,
.connect-form select,
.connect-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
  font-weight: 500;
}

.connect-form textarea {
  resize: vertical;
}

.connect-form input:focus,
.connect-form select:focus,
.connect-form textarea:focus {
  outline: 2px solid rgba(36,77,92,.18);
  border-color: var(--accent);
}

.connect-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.connect-form-actions button {
  cursor: pointer;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .connect-form,
  .connect-form-actions,
  .connect-form-actions .contact-link {
    width: 100%;
  }
}

.inline-link {
  width: fit-content;
}

.case-hero {
  padding-top: clamp(32px, 5vw, 54px);
  padding-bottom: clamp(32px, 5vw, 54px);
}

.case-study-page .copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-list strong {
  color: var(--text);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 18px;
}

.scorecard-grid span {
  min-height: 88px;
  padding: 16px 14px;
  display: grid;
  gap: 4px;
  align-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.scorecard-grid strong {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.compact-grid article {
  min-height: 142px;
}

@media (max-width: 820px) {
  .scorecard-grid { grid-template-columns: 1fr 1fr; }
  .compact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .scorecard-grid { grid-template-columns: 1fr; }
  .inline-link { width: 100%; }
}
