/* foundr. — shared styles
   Tokens and primitives from the foundr design system (design_handoff_foundr_site/_ds).
   Page-specific layout lives inline in each page, matching the design reference. */

:root {
  --ink: #000000; --paper: #FFFFFF; --blue: #5271FF; --blue-hover: #3D5CF0; --blue-press: #2C49D8;
  --blue-soft: rgba(82,113,255,.12);
  --gray-50: #FAFAFA; --gray-75: #F5F5F5; --gray-100: #EEEEEE; --gray-200: #E5E5E5; --gray-300: #BBBBBB;
  --gray-400: #999999; --gray-500: #777777; --gray-600: #555555; --gray-800: #333333;
  --error: #D6453D;
  --ease: cubic-bezier(.2,0,0,1);
  --shadow-card: 0 1px 3px rgba(0,0,0,.06);
  --shadow-overlay: 0 12px 40px rgba(0,0,0,.18);
  --focus-ring: 0 0 0 3px rgba(82,113,255,.35);
  --font-sans: 'Archivo', Helvetica, Arial, sans-serif;
}

html, body { margin: 0; background: #fff; color: #000; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
a { color: #000; text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font-family: inherit; }
.page { min-height: 100vh; background: #fff; color: #000; display: flex; flex-direction: column; overflow-x: clip; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Type primitives ---------- */
.label { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; font-weight: 500; color: var(--gray-500); }
.label-blue { color: var(--blue); }
.h1 { margin: 0; font-size: clamp(40px,6vw,72px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; max-width: 880px; }
.h2 { margin: 0; font-size: clamp(28px,4.5vw,34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.lead { margin: 28px 0 0; max-width: 560px; font-size: clamp(16px,2vw,18px); line-height: 1.55; color: var(--gray-600); text-wrap: pretty; }
.em { font-style: italic; font-weight: 500; color: var(--blue); }
.strong { font-weight: 600; color: #000; }
/* Brand full stop: a blue dot sized to the type */
.dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--blue); margin-left: .07em; vertical-align: baseline; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bullet { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--gray-800); }
.bullet-sm { font-size: 14px; }
.bullet > .pip { margin-top: 8px; }
.meta-value { margin-top: 8px; font-size: 15px; font-weight: 600; }

/* ---------- Primitives (Button / IconButton / Input / Select / Badge) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; font-family: var(--font-sans); border-radius: 4px; border: 1px solid transparent; cursor: pointer; outline: none; transition: background .15s var(--ease); text-decoration: none; box-sizing: border-box; }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-primary:active { background: var(--blue-press); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-block { width: 100%; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 16px; font-family: var(--font-sans); color: #000; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; outline: none; transition: background .15s var(--ease); flex-shrink: 0; }
.icon-btn:hover { background: var(--gray-100); }
.icon-btn:active { background: var(--gray-200); }
.icon-btn:focus-visible { box-shadow: var(--focus-ring); }

.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
.field-label { font-size: 11px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--gray-500); }
.input, .select, .textarea { width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: 14px; color: #000; background: #fff; border: 1px solid var(--gray-200); border-radius: 4px; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input { height: 40px; padding: 0 12px; }
.select { height: 40px; padding: 0 32px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.field[data-error] .input { border-color: var(--error); box-shadow: none; }
.field-error { font-size: 12px; color: var(--error); }
.field:not([data-error]) .field-error { display: none; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: '\25BE'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 11px; color: var(--gray-500); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--gray-100); color: var(--gray-800); }
.badge-accent { background: var(--blue-soft); color: var(--blue); }

.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--gray-200); border-radius: 4px; background: #fff; color: var(--gray-600); font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
a.chip:hover { border-color: #000; color: #000; }
.chip[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }

/* ---------- Chrome: nav, drawer, footer ---------- */
.nav { max-width: 1080px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: block; }
.nav-logo img { height: 32px; width: auto; display: block; }
.menu-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 4px; cursor: pointer; padding: 0; transition: background .15s var(--ease); }
.menu-btn:hover { background: var(--gray-75); }
.menu-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.menu-dots { display: flex; align-items: center; justify-content: center; gap: 5px; transition: transform .25s var(--ease); }
.menu-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.menu-btn:hover .menu-dots, .menu-btn:focus-visible .menu-dots { transform: rotate(90deg); }

.scrim { position: fixed; inset: 0; background: transparent; z-index: 40; }
.drawer { position: fixed; top: 88px; right: max(24px, calc((100vw - 1080px) / 2 + 24px - 48px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.drawer nav { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.drawer a { display: block; padding: 8px 0; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.drawer a[aria-current="page"] { color: var(--blue); }
.drawer:not([data-open="true"]) { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.scrim:not([data-open="true"]) { opacity: 0; pointer-events: none; }

.footer { max-width: 1080px; width: 100%; box-sizing: border-box; margin: clamp(72px,12vw,120px) auto 0; padding: 32px 24px 40px; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 18px; width: auto; display: block; }
.footer .label { text-align: center; }
.footer small { font-size: 13px; color: var(--gray-500); }

/* Page header used by Jobs / Services / Contact */
.page-header { max-width: 1080px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: clamp(48px,8vw,72px) 24px clamp(40px,6vw,56px); }
.page-header .eyebrow { margin-bottom: 24px; }
.wrap { max-width: 1080px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 24px; }

/* Scroll reveal (only armed when JS runs and motion is allowed) */
.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion [data-reveal-child] { opacity: 0; transform: translateY(20px); }
.js-motion [data-reveal].is-in [data-reveal-child] { opacity: 1; transform: none; }

@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

@media (max-width: 640px) {
  .scrim { background: rgba(255,255,255,.94); }
  .drawer { left: 24px; right: 24px; align-items: flex-start; }
  .drawer nav { align-items: flex-start; }
  .drawer a { font-size: 36px; padding: 10px 0; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer .label { text-align: left; }
  .chip { height: 44px; font-size: 12px; }
  .input, .select, .textarea { font-size: 16px; }
}
@media (pointer: coarse) {
  .chip { height: 44px; font-size: 12px; }
  .input, .select, .textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
