/* =========================================================================
   ER Unite — site styles
   Plain CSS, no build step. Colors are defined once in :root below.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette */
  --navy-900: #0B1220;
  --navy-800: #111C30;
  --navy-700: #1B2842;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --steel: #5276A5;
  /* Steel shades used for small text so contrast stays at WCAG AA */
  --steel-dark: #3F6190;   /* on white / off-white */
  --steel-light: #8FAAD0;  /* on navy */
  --slate: #667085;

  --ink: #0B1220;
  --text: #344054;
  --line: #E4E8EE;
  --line-strong: #CBD3DF;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4BCCB;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-strong: rgba(255, 255, 255, 0.22);
  --error: #B42318;
  --success: #067647;
  --focus: var(--steel);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 22px 44px -24px rgba(11, 18, 32, 0.3);
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

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

/* Smooth scrolling only for in-page link clicks (a focused link);
   links arriving from another page jump straight to the section. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 1.55rem + 3.5vw, 4.25rem); line-height: 1.05; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 2.875rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
strong { font-weight: 600; color: var(--ink); }

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

/* Anchor targets land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

::selection { background: var(--steel); color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Dark surfaces ---------- */

.on-dark {
  --focus: var(--steel-light);
  color: var(--on-dark-muted);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: var(--on-dark); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dark);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--steel-light); }

.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  max-width: 40em;
}

.prose > * + * { margin-top: 1.25rem; }
.prose { max-width: 42em; }

.muted { color: var(--slate); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--steel); color: var(--white); }
.btn--primary:hover { background: var(--steel-dark); }

.btn--ghost { color: var(--white); border-color: var(--line-dark-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.05); }

.btn--outline { color: var(--ink); border-color: var(--line-strong); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { min-height: 2.75rem; padding: 0.625rem 1.125rem; font-size: 0.875rem; }

.btn[disabled] { cursor: progress; opacity: 0.75; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--steel-dark);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.25s var(--ease);
}
.link-arrow svg { width: 1rem; height: 1rem; flex: none; transition: transform 0.2s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--steel-light); }

.text-link {
  color: var(--steel-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); }
.on-dark .text-link { color: var(--steel-light); }
.on-dark .text-link:hover { color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  --focus: var(--steel-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark { width: 2.125rem; height: 2.125rem; flex: none; }
.brand-name span { font-weight: 400; color: var(--on-dark-muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: -0.75rem;
  height: 2px;
  background: var(--steel-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  margin-right: -0.75rem;
  background: transparent;
  border: 0;
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 1.375rem;
  height: 0.875rem;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: calc(50% - 0.75px); }
.nav-toggle-bars::after { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }

@media (max-width: 979.98px) {
  /* Without JavaScript the navigation simply wraps under the logo */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
  html:not(.js) .nav-list a { padding-inline: 0.5rem; }
  html:not(.js) .nav-list a[aria-current="page"]::after { display: none; }

  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1rem var(--gutter) 2.5rem;
    background: var(--navy-900);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .js .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list a {
    padding: 1.125rem 0;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--white);
    border-bottom: 1px solid var(--line-dark);
  }
  .js .nav-list a[aria-current="page"] { color: var(--steel-light); }
  .js .nav-list a[aria-current="page"]::after {
    left: auto; right: 0; top: 50%; bottom: auto;
    width: 0.5rem; height: 0.5rem;
    transform: translateY(-50%);
  }
  .js .nav-cta { min-height: 3.25rem; font-size: 1rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy-800); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5rem); }
.section--border { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head > p { max-width: 36em; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .section-head .section-head-aside { display: grid; gap: 1.5rem; justify-items: start; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  padding-block: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-copy h1 { max-width: 12em; }
.hero-copy .lead { margin-top: 1.75rem; color: var(--on-dark-muted); }
.hero-copy .btn-row { margin-top: 2.5rem; }

.hero-visual { width: 100%; max-width: 30rem; justify-self: center; }
.hero-visual svg { width: 100%; height: auto; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; }
  .hero-visual { justify-self: end; }
}
@media (max-width: 979.98px) {
  .hero-visual { max-width: min(22rem, 80%); }
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line-dark);
  list-style: none;
}
.hero-strip li { border-bottom: 1px solid var(--line-dark); }
.hero-strip li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.hero-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.375rem 1.25rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.strip-num { color: var(--steel-light); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; }
.strip-text { margin-right: auto; }
.hero-strip a svg { width: 1rem; height: 1rem; flex: none; opacity: 0.5; transition: transform 0.2s var(--ease), opacity 0.2s; }
.hero-strip a:hover { color: var(--white); background: rgba(255, 255, 255, 0.03); }
.hero-strip a:hover svg { opacity: 1; transform: translateX(3px); }
@media (min-width: 980px) {
  .hero-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-strip li { border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .hero-strip li:last-child { border-right: 0; }
  .hero-strip li:first-child a { padding-left: 0; }
}
@media (max-width: 559.98px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip li:nth-child(odd) { border-right: 0; }
  .hero-strip a { padding-inline: 0; }
}

/* Line-drawing animation for decorative compositions */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
  .draw--2 { animation-delay: 0.2s; }
  .draw--3 { animation-delay: 0.4s; }
  .draw--4 { animation-delay: 0.6s; }
  .fade-in { opacity: 0; animation: fade 0.8s var(--ease) 1.1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Interior page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 15em; font-size: clamp(2.25rem, 1.55rem + 2.9vw, 3.75rem); }
.page-hero .lead { margin-top: 1.5rem; color: var(--on-dark-muted); }
.page-hero .btn-row { margin-top: 2.25rem; }
.page-hero-copy { position: relative; z-index: 1; max-width: 50rem; }

.page-hero-decor {
  position: absolute;
  top: 50%;
  right: clamp(-8rem, -6vw, -2rem);
  width: clamp(18rem, 34vw, 30rem);
  transform: translateY(-50%);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 899.98px) {
  .page-hero-decor { right: -9rem; opacity: 0.35; }
}

.breadcrumb { margin-bottom: 2rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Split layout ---------- */

.split { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}
.split h2 + .lead, .split h2 + p { margin-top: 1.5rem; }

/* ---------- Pillars (thin top-bordered columns) ---------- */

.pillars {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillars--flush { margin-top: 0; }
.pillars li { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.pillars h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.pillars p { font-size: 0.9375rem; color: var(--slate); }
.pillar-num { display: block; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--steel-dark); }
.on-dark .pillars li { border-top-color: var(--line-dark-strong); }
.on-dark .pillars p { color: var(--on-dark-muted); }
.on-dark .pillar-num { color: var(--steel-light); }

/* ---------- Service cards ---------- */

.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card:hover::before { transform: scaleX(1); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2.5rem; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steel);
  background: var(--off-white);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card-index { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--slate); }
.service-card h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); }
.service-card p { margin-top: 0.875rem; color: var(--text); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--steel-dark);
}
.card-link svg { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.service-card:hover .card-link svg,
.industry-card:hover .card-link svg { transform: translateX(3px); }

.section-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Industry cards ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  list-style: none;
}
.industry-grid > li { display: flex; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
@media (min-width: 640px) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .industry-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .industry-grid > li:last-child { grid-column: auto; }
}

.industry-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.industry-card:hover { background: var(--off-white); }
@media (min-width: 640px) { .industry-card { min-height: 15rem; } }
.industry-card .card-index { margin-bottom: 2rem; color: var(--steel-dark); }
.industry-card h3 { font-size: 1.1875rem; }
.industry-card p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--slate); }
.industry-card .card-link { padding-top: 1.5rem; }

/* ---------- Approach steps ---------- */

.steps {
  display: grid;
  gap: 2.5rem;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.step { position: relative; padding-top: 2.25rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-dark-strong);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  background: var(--steel);
  border: 2px solid var(--navy-800);
  box-sizing: content-box;
  transform: translate(-2px, -2px);
}
.step-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel-light);
}
.step h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); letter-spacing: -0.025em; }
.step p { margin-top: 1rem; max-width: 22em; }
.steps + .section-cta { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
}
.cta-panel h2 { max-width: 16em; }
.cta-panel p { margin-top: 1.25rem; max-width: 34em; color: var(--on-dark-muted); font-size: 1.125rem; }
.cta-panel-copy, .cta-panel .btn-row { position: relative; z-index: 1; }
.cta-panel-decor {
  position: absolute;
  right: -9rem;
  top: 50%;
  width: 24rem;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}
@media (min-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .cta-panel .btn-row { margin-right: 4rem; }
}
@media (max-width: 899.98px) {
  .cta-panel-decor { opacity: 0.25; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}
.footer-brand p { margin-top: 1.25rem; max-width: 26em; }
.footer-heading {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links { list-style: none; display: grid; gap: 0.25rem; }
.footer-links a,
.footer-email {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover,
.footer-email:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-email { color: var(--white); overflow-wrap: anywhere; }
.footer-note { margin-top: 0.75rem; font-size: 0.875rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}
.footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About: hub composition ---------- */

.hub {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.hub-node, .hub-center {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.hub-node h3 { font-size: 1.0625rem; }
.hub-node p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--slate); }
.hub-center {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--on-dark-muted);
}
.hub-center svg { width: 3rem; height: 3rem; }
.hub-center strong { color: var(--white); font-size: 1.125rem; letter-spacing: -0.01em; }
.hub-center span { font-size: 0.875rem; }
@media (min-width: 900px) {
  .hub {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "a . b"
      ". c ."
      "d . e";
    gap: 1.5rem 2rem;
  }
  .hub::before, .hub::after {
    content: "";
    position: absolute;
    inset: 15% 16%;
    border: 1px dashed var(--line-strong);
    z-index: 0;
  }
  .hub::after { inset: 50% 16% auto; height: 0; border-width: 1px 0 0; }
  .hub-a { grid-area: a; }
  .hub-b { grid-area: b; }
  .hub-d { grid-area: d; }
  .hub-e { grid-area: e; }
  .hub-center { grid-area: c; min-height: 11rem; }
}

/* ---------- About: phases ---------- */

.phases { list-style: none; display: grid; gap: 0; }
.phase {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .phase { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
}
.phase-num { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--steel-dark); padding-top: 0.375rem; }
.phase h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); letter-spacing: -0.025em; }
.phase-lede { margin-top: 0.75rem; color: var(--slate); }

/* ---------- Lists ---------- */

.check-list { list-style: none; display: grid; gap: 0.875rem; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--steel);
  transform: rotate(45deg);
}
.on-dark .check-list li::before { border-color: var(--steel-light); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.625rem; list-style: none; }
.tag-list li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
}

/* ---------- Index navigation (services / industries) ---------- */

.index-nav { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.index-nav ol {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 720px) {
  .index-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
.index-nav--5 ol { grid-auto-flow: row; }
@media (min-width: 1024px) {
  .index-nav--4 ol { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
}
.index-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  height: 100%;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.index-nav a span { font-size: 0.8125rem; color: var(--steel-dark); letter-spacing: 0.06em; }
.index-nav a:hover { color: var(--steel-dark); }

/* ---------- Services page ---------- */

.service-layout { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 980px) {
  .service-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service-aside { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}
.service-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel-dark);
}
.service-aside h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); }
.service-aside .lead { margin-top: 1.25rem; font-size: 1.125rem; color: var(--text); }
.service-aside .btn-row { margin-top: 2rem; }

.service-body > * + * { margin-top: 2.5rem; }
.detail-block h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.detail-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.section--alt .detail-card { border-color: var(--line-strong); }

.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; list-style: none; }

/* ---------- Industries page ---------- */

.industry-head { display: grid; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .industry-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.industry-num {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--steel);
}
.industry-head .prose { color: var(--text); }

.support-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}
@media (min-width: 640px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.section--alt .support-item { border-color: var(--line-strong); }
.support-item h3 { font-size: 1.0625rem; }
.support-item p { margin-top: 0.625rem; font-size: 0.9375rem; color: var(--slate); }
.support-item .link-arrow { margin-top: auto; padding-top: 1.25rem; font-size: 0.875rem; align-self: flex-start; }
.industry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }

/* ---------- Contact page ---------- */

.contact-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 980px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; }
}

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.form-intro { margin-top: 0.75rem; color: var(--slate); font-size: 0.9375rem; }

.form-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-field--full { grid-column: 1 / -1; }
}

.form-field { display: grid; gap: 0.5rem; align-content: start; }
.field-label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field-label .req { color: var(--error); margin-left: 0.125rem; }
.field-label .opt { font-weight: 400; color: var(--slate); font-size: 0.875rem; }
.field-hint { font-size: 0.875rem; color: var(--slate); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #98A2B3;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23344054' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(82, 118, 165, 0.28);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2); }

.field-error {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

/* Honeypot: hidden from people, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-footer p { font-size: 0.875rem; color: var(--slate); max-width: 26em; }

.spinner {
  display: none;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
}
.is-busy .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid;
  border-left-width: 3px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status--error { color: #7A271A; background: #FEF3F2; border-color: #FDA29B; border-left-color: var(--error); }
.form-status--error a { color: #7A271A; font-weight: 600; }

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: #ECFDF3;
  color: var(--success);
}
.success-icon svg { width: 1.5rem; height: 1.5rem; }
.form-success h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.form-success p { margin-top: 1rem; }
.form-success .btn { margin-top: 2rem; }

/* Messages shown after a no-JavaScript form post (/contact/#inquiry-…) */
.nojs-notice {
  display: none;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid;
  border-left-width: 3px;
  border-radius: var(--radius);
}
.nojs-notice:target { display: block; }
.nojs-notice h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.nojs-notice p { margin-top: 0.375rem; font-size: 0.9375rem; }
.nojs-notice--success { background: #ECFDF3; border-color: #ABEFC6; border-left-color: var(--success); }
.nojs-notice--error { background: #FEF3F2; border-color: #FDA29B; border-left-color: var(--error); }

.contact-aside { display: grid; gap: 1.25rem; }
@media (min-width: 980px) {
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.aside-block {
  padding: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.aside-block--dark { background: var(--navy-900); border-color: var(--navy-900); }
.aside-block h2 { font-size: 1.125rem; letter-spacing: -0.012em; }
.aside-block p { margin-top: 0.75rem; font-size: 0.9375rem; }
.aside-block .check-list { margin-top: 1.25rem; font-size: 0.9375rem; gap: 0.75rem; }
.aside-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--steel-light);
  text-underline-offset: 4px;
}
.aside-email:hover { color: var(--steel-light); }

/* ---------- Privacy policy ---------- */

.policy-layout { display: grid; gap: 3rem; }
@media (min-width: 980px) {
  .policy-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; }
  .policy-toc { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}
.policy-toc h2 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.policy-toc ol { list-style: none; display: grid; border-left: 1px solid var(--line-strong); }
.policy-toc a {
  display: block;
  padding: 0.375rem 0 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}
.policy-toc a:hover { color: var(--steel-dark); text-decoration: underline; text-underline-offset: 3px; }

.policy-body { max-width: 46rem; }
.policy-body section + section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.policy-body h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin-bottom: 1.25rem; }
.policy-body h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.75rem; }
.policy-body p + p { margin-top: 1rem; }
.policy-body .check-list { margin-block: 1.25rem; }
.policy-meta { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--on-dark-muted); }

/* ---------- 404 ---------- */

.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--steel-light);
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
