/* ==========================================================================
   Global design system — Phase 3
   Premium B2B corporate / SaaS-inspired. Font: Inter (loaded via <link> in
   includes/header.php, Phase 4). System fonts are the fallback.
   Sections: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Buttons ·
   6 Cards · 7 Forms · 8 Components · 9 Utilities · 10 Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-950: #060d1f;
  --navy-900: #0a1633;
  --navy-800: #0f2150;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #4f86f7;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --teal-500: #14b8a6;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Semantic */
  --color-primary: var(--navy-900);
  --color-secondary: var(--blue-500);
  --color-accent: var(--cyan-500);
  --color-text: var(--gray-700);
  --color-heading: var(--navy-900);
  --color-muted: var(--gray-500);
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-50);
  --color-border: var(--gray-200);
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-focus: var(--blue-400);

  --gradient-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-500) 100%);
  --gradient-dark: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);

  /* Type */
  --font-sans: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-4xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --lh-tight: 1.2;
  --lh-base: 1.65;

  /* Spacing scale (8px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 51, 0.06), 0 1px 3px rgba(10, 22, 51, 0.04);
  --shadow: 0 6px 20px rgba(10, 22, 51, 0.08);
  --shadow-lg: 0 18px 44px rgba(10, 22, 51, 0.14);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 500ms;
}

/* 2. RESET ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--cyan-500); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(37, 99, 235, 0.18); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 1000;
  background: var(--navy-900); color: var(--white); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0 0 var(--sp-4); color: var(--color-heading); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.02em; }
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
.lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 62ch; }
.eyebrow {
  display: inline-block; margin-bottom: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-500);
}
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--gradient-dark); color: var(--gray-300); }
.section--dark :is(h1, h2, h3, h4) { color: var(--white); }
.section--dark .lead { color: var(--gray-300); }
.section--dark .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 720px; margin: 0 auto var(--sp-7); text-align: center; }
.section-head .lead { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7); align-items: center; }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* 5. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.8rem 1.5rem; min-height: 46px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gradient-brand); color: var(--white); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.btn--primary:hover { color: var(--white); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38); }
.btn--secondary { background: var(--navy-900); color: var(--white); }
.btn--secondary:hover { background: var(--navy-800); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-500); }
.btn--outline:hover { background: var(--blue-500); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--danger { background: var(--color-danger); color: var(--white); }
.btn--sm { padding: 0.55rem 1.1rem; min-height: 38px; font-size: var(--fs-xs); }
.btn--lg { padding: 1rem 2rem; min-height: 54px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.link-arrow { font-weight: 600; display: inline-flex; gap: var(--sp-2); align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform var(--t-base) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* 6. CARDS ----------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card--lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: var(--gray-300); }
.card__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-4);
  border-radius: var(--radius-sm); background: rgba(37, 99, 235, 0.1); color: var(--blue-500);
}
.card__icon svg { width: 26px; height: 26px; }
.card__media { margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--gray-100); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* 7. FORMS ----------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-heading); }
.field .req { color: var(--color-danger); }
.input, .select, .textarea {
  width: 100%; padding: 0.8rem 1rem; min-height: 46px;
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--gray-500); opacity: 0.8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: var(--fs-xs); }
.field-hint { color: var(--color-muted); font-size: var(--fs-xs); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* 8. COMPONENTS ------------------------------------------------------------ */
/* Alerts / flash messages */
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); border: 1px solid; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* Badges */
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.badge--blue { background: rgba(37, 99, 235, 0.12); color: var(--blue-600); }
.badge--green { background: #d1fae5; color: #065f46; }
.badge--amber { background: #fef3c7; color: #92400e; }
.badge--red { background: #fee2e2; color: #991b1b; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-xs); color: var(--color-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--gray-300); }
.breadcrumbs a { color: inherit; }
.breadcrumbs [aria-current="page"] { color: var(--color-heading); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { background: var(--gradient-dark); color: var(--gray-300); padding-block: var(--sp-8); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%); pointer-events: none; }
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumbs, .page-hero .breadcrumbs [aria-current="page"] { color: var(--gray-300); }

/* Accordion (FAQ) — behaviour added with vanilla JS later; works with <details> too */
.accordion { display: grid; gap: var(--sp-3); }
.accordion__item { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); background: none; border: 0; text-align: left; font-weight: 600; color: var(--color-heading);
}
.accordion__trigger::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-500); transition: transform var(--t-base) var(--ease); }
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease); }
.accordion__panel-inner { padding: 0 var(--sp-5) var(--sp-5); }

/* Tables (public) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--color-border); }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }

/* Placeholder marker for unverified content */
.placeholder-note { display: inline-block; padding: 0.15rem 0.6rem; border: 1px dashed var(--color-warning); border-radius: var(--radius-sm); color: var(--color-warning); font-size: var(--fs-xs); background: #fffbeb; }

/* 9. UTILITIES ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hide { display: none !important; }

/* 11. HEADER / NAVBAR / FOOTER (Phase 4) ------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--color-border); transition: box-shadow var(--t-base) var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: var(--header-h); }

.site-logo { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 800; font-size: var(--fs-lg); color: var(--color-heading); letter-spacing: -0.02em; }
.site-logo:hover { color: var(--color-heading); }
.site-logo__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--gradient-brand); flex: none; } /* replace with real logo when supplied */
.site-logo--light, .site-logo--light:hover { color: var(--white); }

.primary-nav__list { list-style: none; display: flex; align-items: center; gap: var(--sp-1); }
.primary-nav__list > li { position: relative; }
.primary-nav__list > li > a:not(.btn) { display: block; padding: 0.55rem 0.85rem; border-radius: var(--radius-sm); color: var(--color-heading); font-weight: 500; font-size: var(--fs-sm); }
.primary-nav__list > li > a:not(.btn):hover, .primary-nav__list > li > a[aria-current="page"] { color: var(--blue-600); background: rgba(37, 99, 235, 0.07); }
.primary-nav__cta { margin-left: var(--sp-3); }

.has-dropdown { display: flex; align-items: center; }
.dropdown-toggle { width: 28px; height: 28px; padding: 0; border: 0; background: none; position: relative; margin-left: -6px; }
.dropdown-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px; border: solid var(--gray-500); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.has-dropdown.is-open .dropdown-toggle::before { transform: rotate(225deg); margin-top: -2px; }
.dropdown { list-style: none; position: absolute; left: 0; top: 100%; min-width: 230px; padding: var(--sp-2); background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base); }
.dropdown a { display: block; padding: 0.6rem var(--sp-3); border-radius: var(--radius-sm); color: var(--color-heading); font-size: var(--fs-sm); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(37, 99, 235, 0.07); color: var(--blue-600); }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); position: relative; }
.nav-toggle__bar { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--color-heading); border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-fast); }
.nav-toggle__bar:nth-child(1) { top: 14px; } .nav-toggle__bar:nth-child(2) { top: 21px; } .nav-toggle__bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer { background: var(--navy-950); color: var(--gray-300); padding-top: var(--sp-8); font-size: var(--fs-sm); }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--cyan-400); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-7); }
.site-footer__brand p { margin-top: var(--sp-4); max-width: 34ch; }
.site-footer__heading { font-size: var(--fs-sm); color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.site-footer__col ul, .footer-contact, .footer-social { list-style: none; display: grid; gap: var(--sp-2); }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); }
.site-footer .placeholder-note { background: transparent; color: var(--gray-500); border-color: var(--gray-700); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); padding-block: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--gray-500); }
.site-footer__bottom p { margin: 0; }

/* 12. HOMEPAGE (Phase 7) ----------------------------------------------------- */
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.hero { background: var(--gradient-dark); color: var(--gray-300); padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -280px; background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 65%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-7); align-items: center; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--cyan-400); }
.hero .lead { color: var(--gray-300); margin-bottom: var(--sp-6); }
.hero__pillars { list-style: none; display: grid; gap: var(--sp-3); }
.hero__pillars li { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); color: var(--white); font-weight: 600; transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.hero__pillars li:hover { transform: translateX(6px); background: rgba(255, 255, 255, 0.1); }
.hero__pillar-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--gradient-brand); flex: none; }
.hero__pillar-icon svg { width: 22px; height: 22px; }

.check-list { list-style: none; display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem; border: solid var(--teal-500); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-50%); }
.service-card { display: flex; flex-direction: column; }
.service-card .check-list { flex: 1; font-size: var(--fs-sm); }
.card__icon--light { background: rgba(34, 211, 238, 0.14); color: var(--cyan-400); }
.card--dark h3 { color: var(--white); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.chip { display: inline-block; padding: 0.65rem 1.25rem; background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-heading); font-weight: 500; box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--blue-500); color: var(--blue-600); }

.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); counter-reset: none; }
.process__step { position: relative; padding-top: var(--sp-2); }
.process__step::after { content: ""; position: absolute; top: 24px; left: 56px; right: -12px; height: 2px; background: linear-gradient(90deg, var(--blue-400), transparent); }
.process__step:last-child::after { display: none; }
.process__num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--sp-4); border-radius: 50%; background: var(--gradient-brand); color: var(--white); font-weight: 700; }
.process__step h3 { font-size: var(--fs-lg); }
.process__step p { font-size: var(--fs-sm); color: var(--color-muted); }

.empty-state { text-align: center; padding: var(--sp-7) var(--sp-5); border: 2px dashed var(--gray-300); border-radius: var(--radius); background: var(--white); }
figure.card { margin: 0; }
blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-lg); color: var(--color-heading); }
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.cta-band__actions { justify-content: center; margin-top: var(--sp-5); }

/* 10. MOTION --------------------------------------------------------------- */
/* Reveal-on-scroll is only hidden when JS has added .js to <html>, so content never disappears without JS. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-22px); }
.js .reveal--right { transform: translateX(22px); }
.js .reveal-delay-1 { transition-delay: 80ms; }
.js .reveal-delay-2 { transition-delay: 160ms; }
.js .reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 13. SERVICES (Phase 8) ----------------------------------------------------- */
.services-head { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.services-head > div { flex: 1; }
.services-head .card__icon { margin-bottom: 0; flex: none; }
.chip-list--left { justify-content: flex-start; }
.process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section--dark .process__step p { color: var(--gray-300); }
.section--dark .process__step h3 { color: var(--white); }
.card[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 14. INDUSTRIES / ABOUT (Phase 9) ------------------------------------------- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag-list .badge:hover { background: var(--blue-500); color: var(--white); }

/* 15. PORTFOLIO (Phase 10) --------------------------------------------------- */
.portfolio-filters { display: flex; gap: var(--sp-3); max-width: 520px; margin-bottom: var(--sp-5); }
.chip--active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.chip--active:hover { color: var(--white); }
.split--top { align-items: start; }
.case-image { width: 100%; border-radius: var(--radius); margin-bottom: var(--sp-5); }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); margin: 0; }
.detail-list dt { font-weight: 600; color: var(--color-heading); }
.detail-list dd { margin: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--color-heading); margin-bottom: var(--sp-2); padding: 0; }

/* 16. BLOG (Phase 12) -------------------------------------------------------- */
.prose { font-size: var(--fs-lg); line-height: 1.75; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul { padding-left: 1.4rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose a { text-decoration: underline; }

/* 17. COMMENTS (Phase 14) ---------------------------------------------------- */
.comments { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--color-border); }
.comment { padding: var(--sp-4) 0; border-bottom: 1px solid var(--color-border); }
.comment__meta { margin-bottom: var(--sp-2); }
.comment__body { margin-bottom: 0; }

/* 18. CONSENT BANNER (Phase 17) ---------------------------------------------- */
.consent { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 200; max-width: 720px; margin-inline: auto; display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--navy-900); color: var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); }
.consent p { margin: 0; }
.consent__actions { display: flex; gap: var(--sp-2); flex: none; }
.consent .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.consent .btn--outline:hover { background: var(--white); color: var(--navy-900); }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--cyan-400); }
@media (max-width: 576px) { .consent { flex-direction: column; align-items: stretch; } .consent__actions { justify-content: flex-end; } }
