/* ==========================================================================
   Stone Age Software — site styles
   Palette: deep slate base, brushed-steel neutrals, teal accent (from logo)
   ========================================================================== */

:root {
  --bg:        #0c1116;
  --bg-2:      #111922;
  --surface:   #16212c;
  --surface-2: #1d2b38;
  --border:    #2a3a48;
  --text:      #e7eef3;
  --muted:     #9fb1bd;
  --teal:      #3aa6bd;
  --teal-2:    #58c4d8;
  --teal-deep: #1d5e72;
  --steel:     #c4d2dc;
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1140px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
  box-shadow: 0 10px 25px -10px rgba(58, 166, 189, 0.7);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(58, 166, 189, 0.08); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-2);
  margin-bottom: 14px;
}

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: "Sora", sans-serif; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---- Services dropdown -------------------------------------------------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.nav-caret {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease), margin-top 0.2s var(--ease);
}
.nav-item.open .nav-caret { transform: rotate(225deg); margin-top: 3px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 300px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
/* Invisible bridge so the pointer can cross the gap without closing the menu */
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.site-nav .dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; }
.site-nav .dropdown-menu a:hover,
.site-nav .dropdown-menu a:focus-visible,
.site-nav .dropdown-menu a.active { color: var(--text); background: rgba(58, 166, 189, 0.12); }
.dropdown-divider { height: 1px; margin: 6px 4px; background: var(--border); }

/* ---- Flash messages ----------------------------------------------------- */
.flash-stack { margin-top: 16px; display: grid; gap: 10px; }
.flash { padding: 12px 18px; border-radius: 10px; font-size: 0.93rem; border: 1px solid; }
.flash-error { background: rgba(220, 80, 80, 0.12); border-color: rgba(220, 80, 80, 0.4); color: #ffb4b4; }
.flash-success { background: rgba(58, 166, 189, 0.12); border-color: rgba(58, 166, 189, 0.4); color: var(--teal-2); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(58, 166, 189, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(29, 94, 114, 0.18), transparent 60%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 36px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

.hero-trust { list-style: none; display: flex; gap: 36px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: "Sora", sans-serif; font-size: 1.4rem; color: var(--text); }
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

.hero-art { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 320px; height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.hero-card img { width: 64%; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
.hero-card-glow {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 40%, rgba(58, 166, 189, 0.28), transparent 65%);
}
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(10px); } }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Cards -------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-link { color: var(--teal-2); font-weight: 600; font-size: 0.9rem; }

/* Icon chips (CSS-drawn, no image deps) */
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(58, 166, 189, 0.25), rgba(29, 94, 114, 0.25));
  border: 1px solid var(--border);
  position: relative;
}
.card-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px;
  background: var(--teal-2);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.icon-refresh::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-gauge::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14l4-4'/%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14l4-4'/%3E%3Cpath d='M3.34 19a10 10 0 1 1 17.32 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-link::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-shield::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Logistics practice icons */
.icon-truck::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-box::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 9.4 7.5 4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cpath d='M12 22.08V12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 9.4 7.5 4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cpath d='M12 22.08V12'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-swap::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-receipt::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2V2z'/%3E%3Cpath d='M9 7h6'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2V2z'/%3E%3Cpath d='M9 7h6'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-chart::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Process-improvement & general build icons */
.icon-target::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-code::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-zap::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-layout::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-users::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-database::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Card variants of the two contact glyphs. Without these, a `card-icon
   icon-mail` renders as a solid teal square — the ::after has no mask. */
.icon-mail::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-phone::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---- Process steps ------------------------------------------------------ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  font-family: "Sora", sans-serif; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 1.7rem; }
.cta-band p { color: var(--muted); margin: 0; }

/* ---- Page hero (sub-pages) --------------------------------------------- */
.page-hero {
  padding: 72px 0 36px;
  background: radial-gradient(800px 400px at 70% -20%, rgba(58, 166, 189, 0.16), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero.tall { padding: 110px 0; }

/* ---- Services list ------------------------------------------------------ */
.service-list { display: grid; gap: 22px; }
.service-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; scroll-margin-top: 90px; }
.service-row-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 18px; }
.service-row-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.service-row-head .lead { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.checklist li { position: relative; padding-left: 28px; color: var(--steel); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal-2); font-weight: 700;
}

/* ---- About -------------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col h2 { font-size: 1.8rem; }
.two-col p { color: var(--muted); }
.value-cards { display: grid; gap: 16px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.value-card h3 { font-size: 1.1rem; color: var(--teal-2); }
.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; text-align: center; }
.stat strong { display: block; font-family: "Sora", sans-serif; font-size: 1.8rem; color: var(--text); line-height: 1.15; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--steel); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58, 166, 189, 0.18);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.contact-aside h3 { font-size: 1.2rem; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.contact-line:hover { color: var(--teal-2); }
.contact-ic { width: 22px; height: 22px; background: var(--teal-2); -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; flex: none; }
/* Scoped to .contact-ic on purpose: unqualified, these mask the element itself,
   which erases the rounded tile on a `card-icon icon-phone` and leaves a bare
   glyph. Cards get their glyph from the ::after rules further up. */
.contact-ic.icon-phone { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat; }
.contact-ic.icon-mail { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.aside-note { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.aside-note h4 { color: var(--teal-2); margin-bottom: 6px; }
.aside-note p { color: var(--muted); margin: 0; font-size: 0.93rem; }

/* ---- Thank you ---------------------------------------------------------- */
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 14px 30px -10px rgba(58, 166, 189, 0.7);
}

/* ---- Practice sub-navigation (logistics pages) -------------------------- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.subnav a {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.subnav a:hover { color: var(--text); border-color: var(--teal); }
.subnav a.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

/* ---- Chips (platforms, formats, hardware) ------------------------------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--steel); font-size: 0.86rem;
}
.fineprint { font-size: 0.82rem; margin-top: 20px; max-width: 70ch; }

/* ---- Mini cards (audiences, engagement models, page links) -------------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.mini-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.mini-card h3 { font-size: 1.05rem; color: var(--teal-2); margin-bottom: 8px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.mini-card .terms {
  color: var(--steel); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.mini-card .card-link { display: inline-block; margin-top: 14px; }
.row-link { display: inline-block; margin-top: 20px; }
.inline-link { color: var(--teal-2); font-weight: 600; border-bottom: 1px solid rgba(88, 196, 216, 0.35); }
.inline-link:hover { border-bottom-color: var(--teal-2); }

/* ---- Callout ------------------------------------------------------------ */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: 26px 30px;
}
.callout h3 { font-size: 1.2rem; margin-bottom: 8px; }
.callout p { color: var(--muted); margin: 0; max-width: 80ch; }

/* ---- Data table (EDI document sets) ------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.data-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.data-table thead th {
  font-family: "Sora", sans-serif; font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-2); background: var(--bg-2);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(58, 166, 189, 0.05); }
.data-table td.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); white-space: nowrap; font-weight: 600;
}

/* ---- FAQ (accordion, doubles as FAQPage schema) ------------------------- */
.faq { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 24px;
}
.faq details[open] { border-color: var(--teal-deep); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-2); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.96rem; margin: 16px 0 20px; }

/* ---- Wide checklist (single column, longer items) ----------------------- */
.checklist-wide { grid-template-columns: 1fr; margin-top: 8px; }
.checklist-wide li + li { margin-top: 2px; }

/* Checklist nested inside a card — tighter, smaller, muted */
.card-list { margin-top: 16px; gap: 8px; }
.card-list li { color: var(--muted); font-size: 0.88rem; padding-left: 22px; }
.card-list li::before { font-size: 0.85rem; }

/* ---- Legal pages -------------------------------------------------------- */
.legal-updated { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.legal-body { max-width: 76ch; }
.legal-body h2 { font-size: 1.3rem; margin: 2.1em 0 0.5em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 0.97rem; }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin: 6px 0; }
.legal-body li strong, .legal-body p strong { color: var(--text); }
.legal-body a { color: var(--teal-2); }
.legal-body a:hover { text-decoration: underline; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 54px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.1fr 1.15fr 1fr; gap: 28px; }
.footer-brand .brand-mark { width: 44px; height: 44px; margin-bottom: 12px; }
.footer-brand p { margin: 2px 0; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: 0.93rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .card-grid, .steps, .stats-band, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .site-nav.open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav a.btn { margin-top: 10px; justify-content: center; }

  /* Services dropdown becomes an expandable subsection */
  .site-nav .nav-item { position: static; display: block; }
  .site-nav .nav-drop-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .site-nav .dropdown-menu {
    position: static; min-width: 0; margin: 0; padding: 0 0 0 16px;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .site-nav .dropdown-menu::before { display: none; }
  /* The desktop open state also carries translateX(-50%) to centre the panel
     under its trigger. That rule outranks the static-layout reset above, so
     without undoing it here every item slides half its width off-screen. */
  .site-nav .nav-item.open .dropdown-menu { max-height: 640px; transform: none; }
  .site-nav .dropdown-menu a { padding: 11px 0; border-radius: 0; }
  .site-nav .dropdown-menu a:hover,
  .site-nav .dropdown-menu a:focus-visible,
  .site-nav .dropdown-menu a.active { background: none; color: var(--teal-2); }
  .site-nav .dropdown-menu li:last-child a { border-bottom: 0; }
  .site-nav .dropdown-menu .dropdown-divider { display: none; }
}

@media (max-width: 560px) {
  .card-grid, .steps, .stats-band, .field-row, .mini-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .contact-form, .service-row { padding: 24px; }
  .callout { padding: 22px 20px; }
  .service-row-head { flex-direction: column; gap: 14px; }
  .faq summary { font-size: 0.95rem; }
}

/* Unsubscribe confirmation */
.unsub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 28px 0 18px;
}
.unsub-form input[type="email"] {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-width: 280px;
}

/* Client reviews (/testimonials) */
.reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.summary-score { display: flex; align-items: center; gap: 12px; }
.summary-score strong {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}
.reviews-summary .muted { margin: 0; flex: 1 1 240px; }
.reviews-summary .btn { margin-left: auto; }

.review-stars { display: inline-flex; gap: 2px; color: #f5b301; }
.star-off { color: var(--border); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-when { font-size: 0.85rem; color: var(--muted); }
.review-text {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.65;
  white-space: pre-line;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.review-avatar { border-radius: 50%; flex-shrink: 0; }

@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary .btn { margin-left: 0; }
}
.unsub-form input[type="email"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ==========================================================================
   Projects  —  /projects and /projects/<slug>
   Uses only existing design tokens. No new colours, fonts, or radii.
   ========================================================================== */

/* ---- Project grid (index + "more projects") ----------------------------- */
/* Not .card-grid: that's a hard 4-up and reads badly at 7 items. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.project-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}
.project-card h3 { margin-bottom: 10px; }
.project-card p { flex: 1 1 auto; }
.project-card .card-link { margin-top: 14px; align-self: flex-start; }

.project-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---- Additional icon chips ---------------------------------------------- */
/* Same CSS-mask technique and teal fill as the existing .icon-* set.
   .icon-truck is not here — it is already defined above. */
.icon-clipboard::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpolyline points='9 14 11 16 15 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpolyline points='9 14 11 16 15 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-scale::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='M5 7l-3 6a3 3 0 0 0 6 0z'/%3E%3Cpath d='M19 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='M5 7l-3 6a3 3 0 0 0 6 0z'/%3E%3Cpath d='M19 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-printer::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---- Breadcrumb --------------------------------------------------------- */
.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--teal-2); font-weight: 600; }
.crumbs a:hover { color: var(--text); }

/* ---- Detail page -------------------------------------------------------- */
.context-note {
  max-width: 70ch;
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Long-form body copy inside .service-row blocks */
.prose {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 16px;
}
.prose:last-of-type { margin-bottom: 0; }
.service-row .checklist { margin-top: 22px; }

/* Section headings on a detail page carry no icon, so kill the icon gap */
.service-row-head:not(:has(.card-icon)) { gap: 0; }

/* ---- Tech tag list ------------------------------------------------------ */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  color: var(--steel);
}

/* Service cross-links inside .value-card */
.value-card .card-link { display: inline-block; margin-top: 10px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .context-note { text-align: left; }
}

/* ---- Project listing (the /projects index) ------------------------------- */
/* Rows, not cards: at this count a card grid becomes a wall to scan, and the
   grouping does more work than the visual weight of a card would. */
.project-group + .project-group { margin-top: 58px; }

.project-group-head { max-width: 72ch; margin-bottom: 10px; }
.project-group-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 6px;
}
.project-group-head p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.project-list { border-top: 1px solid var(--border); }

.project-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 14px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
  transition: background 0.22s var(--ease), padding 0.22s var(--ease);
}
.project-row:hover,
.project-row:focus-visible { background: var(--surface); padding-left: 22px; }

/* The chip is sized for a card; in a row it sits inline and carries no margin. */
.project-row .card-icon {
  width: 44px; height: 44px; margin-bottom: 0; align-self: start;
}
.project-row .project-eyebrow { margin-bottom: 4px; }
.project-row h3 { font-size: 1.1rem; margin: 0 0 6px; }
.project-row p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  max-width: 82ch;
}
.project-row-go {
  color: var(--teal-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.22s var(--ease);
}
.project-row:hover .project-row-go { transform: translateX(4px); }

@media (max-width: 620px) {
  .project-row {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 14px;
    padding: 20px 10px;
  }
  .project-row:hover, .project-row:focus-visible { padding-left: 14px; }
  .project-row-go { grid-column: 2; justify-self: start; }
}

/* Category jump links in the projects hero */
.project-jump {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--steel);
  transition: border-color 0.2s, color 0.2s;
}
.project-jump a:hover { border-color: var(--teal); color: var(--text); }
.project-jump a span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}
