/* Business Ingenuity Inc – Edgy© Design System
   Murmuration Method: warm authority, precision over decoration.
   Applied from DESIGN.md + DESIGN.json
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Primary palette — extracted from the murmuration photograph */
  --deep-formation:  oklch(17% 0.05 248);   /* #0E2841 — structural anchor */
  --navy-light:      oklch(40% 0.10 248);   /* #1a7ab5 — hover lightened */
  --dusk-ember:      oklch(65% 0.18 50);    /* #E97132 — primary signal / CTA */
  --signal-amber:    oklch(83% 0.19 85);    /* #FFC000 — active / hover state */
  --gold-bar:        #C9A84C;               /* logo gold bar + nav-cta pill (servicesV2-derived); distinct from --signal-amber */
  --gold-pale:       oklch(97% 0.04 85);    /* #fff4e0 — amber wash background */
  --navigation-blue: oklch(42% 0.08 230);   /* #156082 — labels, focus, teal accent */
  --teal-light:      oklch(62% 0.12 220);   /* #0F9ED5 — lighter teal contexts */
  --teal-pale:       oklch(93% 0.03 220);   /* #e3f4fc — teal wash background */

  /* Neutral palette — warm-tinted, never cool grey */
  --warm-field:      oklch(97% 0.003 80);   /* #faf8f4 — page canvas */
  --surface-white:   oklch(100% 0 0);       /* #ffffff — card / panel surfaces */
  --text-mid:        oklch(38% 0.04 248);   /* #3a4f66 — secondary body copy */
  --text-muted:      oklch(55% 0.04 240);   /* #6b7f96 — metadata, annotations */
  --warm-border:     oklch(87% 0.015 65);   /* #e2d9cc — dividers, card edges */

  /* Legacy aliases — preserved for existing HTML classes */
  --navy:  var(--deep-formation);
  --gold:  var(--dusk-ember);
  --dark:  var(--deep-formation);
  --gray:  var(--text-mid);
  --light: var(--warm-field);
  --white: var(--surface-white);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Elevation — navy-tinted shadows, state responses only */
  --shadow-ambient: 0 2px 16px oklch(17% 0.05 248 / 0.10);
  --shadow-lifted:  0 8px 40px oklch(17% 0.05 248 / 0.16);

  /* Motion — strong ease-out (Emil Kowalski curve), no bounce */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
  --dur-std:  200ms;

  /* Radii */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-pill: 20px;
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--deep-formation);
  background: var(--warm-field);
  line-height: 1.65;
}

/* All headings carry the Sora identity — body copy stays DM Sans. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--deep-formation);
  letter-spacing: -0.005em;
}

/* ── HEADER / NAV ──
   Scoped to direct child of body so it doesn't bleed into nested
   <header> elements (e.g., article-head inside detail pages).
*/
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-formation);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 32px;
  height: 106px;
}

/* DEPRECATED — replaced by .nav-logo et al, lifted from servicesV2.html:49-79.
   Legacy .logo--mark and body > header .logo img rules removed
   in feat(css): add nav-logo + edgy-mark + --gold-bar token. */

/* New nav logo: gold vertical bar + arc-dot SVG + stacked wordmark.
   Lifted from servicesV2.html:49-77 (Task 1 of quick-task 260511-p54). */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.nav-logo:hover { opacity: 0.78; }

.nav-gold-bar {
  width: 3px;
  height: 44px;
  background: var(--gold-bar);
  border-radius: 1.5px;
  margin-right: 18px;
  flex-shrink: 0;
  align-self: center;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-dots {
  margin-bottom: 4px;
}

.nav-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-bar);
  margin-top: 5px;
  text-align: left;
}

/* .nav-links: flex container holding the seven top-level nav items + CTA. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

/* Edgy® registered-mark superscript, used on first body mention per page.
   Lives in style.css (global) so it works on pages outside body.edgy-page. */
.edgy-mark {
  font-size: 0.6em;
  font-weight: 300;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

/* Top-level nav anchors: live inside .nav-links (new servicesV2 layout).
   Vertical centering comes from the parent flex container (.nav-links / nav),
   not from line-height — header height changed from 64px to 106px. */
.nav-links a,
nav > a {
  text-decoration: none;
  color: oklch(100% 0 0 / 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  height: 106px;
  transition: color var(--dur-fast);
  white-space: nowrap;
}

/* Sign In / Workspace nav CTA — compact ghost pill */
a.nav-links-signin {
  border: 1.5px solid oklch(100% 0 0 / 0.30);
  border-radius: 20px;
  color: oklch(100% 0 0 / 0.92) !important;
  font-weight: 500 !important;
  margin-left: 8px;
  height: auto;
  padding: 7px 16px;
  align-self: center;
}
a.nav-links-signin:hover {
  background: oklch(100% 0 0 / 0.12) !important;
  border-color: oklch(100% 0 0 / 0.55) !important;
  color: #fff !important;
}

nav a:hover {
  color: var(--signal-amber);
}
/* Persistent "you are here" state — deliberately distinct from a transient hover */
nav a.active,
nav a[aria-current="page"] {
  color: var(--signal-amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
/* Active dropdown PARENT label (set when the current page is one of its children) */
.nav-dropdown.active > .nav-dropdown-label,
.nav-dropdown-label.active {
  color: var(--signal-amber);
  font-weight: 600;
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

/* Dropdown parent that only opens the submenu (no page link of its own) */
.nav-dropdown-label { cursor: pointer; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.55;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;   /* open just below the nav text, not below the full 106px header bar */
  left: 0;
  background: var(--deep-formation);
  border: 1px solid oklch(100% 0 0 / 0.14);
  border-radius: var(--r-md);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  height: auto;                  /* override 106px inherited from .nav-links a */
  line-height: 1;
  padding: 8px 16px;
  font-size: 13px;
  color: oklch(100% 0 0 / 0.70);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
  background: oklch(100% 0 0 / 0.06);
  color: var(--signal-amber);
}

/* Launch Edgy CTA in main nav — gold-pill treatment from servicesV2.html:80-84.
   Visual cue that this link goes off-site to the Edgy app. */
nav a.nav-cta {
  margin-left: 12px;
  padding: 8px 18px;
  height: auto;
  line-height: 1;
  background: var(--gold-bar);
  border: 1px solid var(--gold-bar);
  border-radius: 6px;
  color: var(--deep-formation);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity var(--dur-fast);
}
nav a.nav-cta:hover {
  opacity: 0.85;
  color: var(--deep-formation);
}



/* ── HERO: Murmuration ──
   Editorial split hero. Left holds copy + CTAs; right runs a canvas
   boid flock (see murmuration.js) that disperses around the cursor.
   Two hero-local choices: tarnished gold (--hero-gold) and a serif
   display face for the headline. Both are scoped to .hero-mur so
   the rest of the site keeps Sora + Dusk Ember.
*/
.hero-mur {
  --hero-bg:        #0b1520;          /* midnight, deeper than --deep-formation */
  --hero-bg-band:   #0d1a28;          /* one step lighter, for the why-band */
  --hero-gold:      #C9A84C;          /* tarnished gold */
  --hero-text:      #c0d4e4;
  --hero-text-mid:  #7a9ab5;
  --hero-text-dim:  #3a5a72;
  --hero-display:   Georgia, 'Times New Roman', serif;

  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
}

.hero-mur__inner {
  display: flex;
  min-height: 600px;
}

.hero-mur__left {
  width: 40%;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px) clamp(48px, 6vw, 80px) max(40px, 7vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-mur__badge {
  display: inline-block;
  width: fit-content;
  border: 1px solid oklch(72% 0.10 80 / 0.45);
  color: var(--hero-gold);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero-mur__headline {
  font-family: var(--hero-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: oklch(99% 0 0);
  margin: 0 0 14px;
}

.hero-mur__headline em {
  font-style: normal;
  color: var(--hero-gold);
}

.hero-mur__tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--hero-gold);
}

.hero-mur__dash {
  width: 28px;
  height: 1px;
  background: var(--hero-gold);
  opacity: 0.55;
}

.hero-mur__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--hero-text-mid);
  max-width: 42ch;
  margin: 0 0 32px;
}

.hero-mur__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mur__btn-primary,
.hero-mur__btn-ghost {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-out),
              color var(--dur-std) var(--ease-out);
}

.hero-mur__btn-primary {
  background: var(--hero-gold);
  color: var(--hero-bg);
  border: 1px solid var(--hero-gold);
}

.hero-mur__btn-primary:hover {
  background: oklch(82% 0.13 85);
  border-color: oklch(82% 0.13 85);
}

.hero-mur__btn-ghost {
  background: transparent;
  color: var(--hero-gold);
  border: none;
  padding: 4px 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: oklch(72% 0.10 80 / 0.45);
  transition: color var(--dur-std) var(--ease-out),
              text-decoration-color var(--dur-std) var(--ease-out);
}

.hero-mur__btn-ghost:hover {
  border-color: transparent;
  color: oklch(82% 0.13 85);
  text-decoration-color: var(--hero-gold);
}

.hero-mur__right {
  width: 60%;
  position: relative;
}

.hero-mur__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-mur__fade {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 120px;
  background: linear-gradient(to right, var(--hero-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-mur__inner {
    flex-direction: column;
    min-height: 0;
  }
  .hero-mur__left {
    width: 100%;
    padding: 56px 24px 40px;
  }
  .hero-mur__right {
    width: 100%;
    height: 280px;
  }
  .hero-mur__fade {
    width: 100%;
    height: 80px;
    top: 0;
    background: linear-gradient(to bottom, var(--hero-bg) 0%, transparent 100%);
  }
}

/* ── WHY BAND ── */
.hero-why {
  background: #0d1a28;
  border-top: 1px solid oklch(72% 0.10 80 / 0.18);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-why__item {
  padding: 22px 24px;
  border-right: 1px solid oklch(100% 0 0 / 0.06);
}

.hero-why__item:last-child { border-right: none; }

.hero-why__rule {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: #C9A84C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-why__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #d0e4f4;
  margin-bottom: 4px;
}

.hero-why__desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: #3a5a72;
  margin: 0;
}

@media (max-width: 900px) {
  .hero-why {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-why__item:nth-child(2) { border-right: none; }
  .hero-why__item:nth-child(1),
  .hero-why__item:nth-child(2) {
    border-bottom: 1px solid oklch(100% 0 0 / 0.06);
  }
}

@media (max-width: 540px) {
  .hero-why {
    grid-template-columns: 1fr;
  }
  .hero-why__item {
    border-right: none;
    border-bottom: 1px solid oklch(100% 0 0 / 0.06);
  }
  .hero-why__item:last-child { border-bottom: none; }
}

/* ── SERVICES TEASE ── */
.hero-services-tease {
  background: #0b1520;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-top: 1px solid oklch(100% 0 0 / 0.05);
  text-decoration: none;
  transition: background var(--dur-std) var(--ease-out);
}

.hero-services-tease:hover {
  background: #0e1c2c;
}

.hero-services-tease__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #C9A84C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-services-tease__title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: oklch(99% 0 0);
}

.hero-services-tease__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.15);
  color: #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-std) var(--ease-out),
              background var(--dur-std) var(--ease-out);
}

.hero-services-tease:hover .hero-services-tease__btn {
  transform: translateY(2px);
  background: oklch(100% 0 0 / 0.10);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dusk-ember);
  color: var(--deep-formation);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur-std) var(--ease-out),
              transform var(--dur-std) var(--ease-out);
}

.btn:hover {
  background: var(--signal-amber);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--signal-amber);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--warm-border);
  color: var(--text-mid);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--r-sm);
}

.btn-outline:hover {
  background: transparent;
  border-color: var(--deep-formation);
  color: var(--deep-formation);
  transform: none;
}

/* ── PAGE HEADER BANNER ── */
.page-banner {
  background: var(--deep-formation);
  color: oklch(93% 0.01 80);
  padding: 64px 40px 56px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 14px;
  line-height: 1.1;
  color: oklch(97% 0.005 80);
}

.page-banner-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--signal-amber);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 17px;
  opacity: 0.72;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.65;
}

/* ── SECTIONS ── */
.section { padding: 80px 40px; }
.section-light { background: var(--warm-field); }
.section-white { background: var(--surface-white); }
.section-navy  { background: var(--deep-formation); color: oklch(93% 0.01 80); }

.container { max-width: 1100px; margin: 0 auto; }

/* Section label + title pattern — system fingerprint */
.section-label,
.ds-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--navigation-blue);
  margin-bottom: 10px;
  display: block;
}

.section-title,
.ds-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 14px;
  color: var(--deep-formation);
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 640px;
  line-height: 1.65;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── TESTIMONIAL CARDS ── */
.testimonial-card {
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow var(--dur-std) var(--ease-out);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-ambient);
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 15px;
  color: var(--deep-formation);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card .author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--warm-border);
}

.testimonial-card .author-info .name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--deep-formation);
}

.testimonial-card .author-info .title {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: box-shadow var(--dur-std) var(--ease-out),
              transform var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-out),
              background var(--dur-std) var(--ease-out);
}

a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
  border-color: var(--gold-bar);
  background: var(--gold-pale);
}

.service-card-edgy h3 .ext {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75em;
  font-weight: 400;
  color: var(--dusk-ember);
  transition: transform var(--dur-fast) var(--ease-out);
}

.service-card-edgy:hover h3 .ext {
  transform: translate(2px, -2px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-formation);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── TEAM CARDS ── */
.team-card {
  text-align: center;
  padding: 20px;
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--warm-border);
  margin-bottom: 20px;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.team-card .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--navigation-blue);
  margin-bottom: 14px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}

/* ── CASE STUDY CARDS ── */
.case-card {
  display: flex;
  gap: 28px;
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 28px;
  transition: box-shadow var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-out),
              background var(--dur-std) var(--ease-out);
}

.case-card-link:hover .case-card,
.case-card:hover {
  box-shadow: var(--shadow-ambient);
  border-color: var(--gold-bar);
  background: var(--gold-pale);
}

.case-card img {
  width: 200px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  object-fit: cover;
}

.case-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-card-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── BLOG CARDS ── */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.blog-card {
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-std) var(--ease-out),
              transform var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-out),
              background var(--dur-std) var(--ease-out);
}

.blog-card-link:hover .blog-card,
.blog-card:hover {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
  border-color: var(--gold-bar);
  background: var(--gold-pale);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--navigation-blue);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-card-body .meta {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.65;
}

/* ── PARTNER CARDS ── */
.partner-card {
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
}

.partner-card img {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 18px;
}

.partner-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 10px;
  letter-spacing: 0;
}

.partner-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CONTACT FORM ── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 6px;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--warm-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--deep-formation);
  background: var(--surface-white);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navigation-blue);
  box-shadow: 0 0 0 3px oklch(42% 0.08 230 / 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { min-height: 130px; resize: vertical; }

/* ── FOOTER ── */
footer {
  background: var(--deep-formation);
  color: oklch(100% 0 0 / 0.55);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* New footer brand logo: arched-dot mark + "BUSINESS INGENUITY" wordmark (replaces the old
   <img class="footer-img">). The whole mark is sized to EXACTLY the footer email line's
   rendered width (synergymatters@businessingenuityinc.com = 263.8px); the arc (flex:1)
   absorbs the leftover width so the pair span that width on one line, and .footer-logo's
   align-items:center keeps the arc + wordmark middles aligned. Scoped with :has() to the arc
   mark, so any page still using the old <img> footer logo is left completely unaffected. */
footer .footer-logo:has(.nav-logo-dots) { width: 263.8px; }
footer .footer-logo:has(.nav-logo-dots) .nav-logo-dots { flex: 1 1 0; min-width: 0; line-height: 0; }
footer .footer-logo:has(.nav-logo-dots) .nav-logo-dots svg { width: 100%; height: auto; display: block; }
footer .footer-logo:has(.nav-logo-dots) .footer-brand { flex: 0 0 auto; white-space: nowrap; }

footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: oklch(95% 0.005 80);
}

footer .footer-img {
  height: 40px;
  width: auto;
  opacity: 0.75;
}

.footer-tagline {
  font-size: 13px;
  color: oklch(100% 0 0 / 0.38);
  font-style: italic;
}

footer .footer-email {
  font-size: 13px;
  color: oklch(100% 0 0 / 0.50);
  text-decoration: none;
  transition: color var(--dur-fast);
}

footer .footer-email:hover { color: var(--signal-amber); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-head {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bar);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: oklch(100% 0 0 / 0.52);
  text-decoration: none;
  transition: color var(--dur-fast);
  line-height: 1.5;
}

.footer-col a:hover { color: var(--signal-amber); }

footer a {
  color: oklch(100% 0 0 / 0.52);
  text-decoration: none;
  transition: color var(--dur-fast);
}

footer a:hover { color: var(--signal-amber); }

.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

.footer-copy {
  font-size: 12px;
  color: oklch(100% 0 0 / 0.28);
}

@media (max-width: 900px) {
  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    padding: 48px 24px 32px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { padding: 16px 24px; }
}

@media (max-width: 540px) {
  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

/* ── INLINE HELPERS ── */
.text-center { text-align: center; }
.text-gold   { color: var(--dusk-ember); }
.text-navy   { color: var(--deep-formation); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.divider {
  border: none;
  border-top: 1px solid var(--warm-border);
  margin: 56px 0;
}

/* ── CLIENT LOGOS STRIP ── */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.client-logos img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.65;
  transition: opacity var(--dur-std), filter var(--dur-std);
}

.client-logos img:hover { opacity: 1; filter: none; }

/* ── PROVEN BAR ── */
.proven-bar {
  background: var(--deep-formation);
  color: oklch(93% 0.005 80);
  padding: 40px 40px;
  text-align: center;
}

.proven-bar h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.proven-bar p {
  font-size: 16px;
  opacity: 0.70;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.65;
}

/* ── ADVISOR LIST ── */
.advisor-list .advisor-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--warm-border);
}

.advisor-list .advisor-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.advisor-list .advisor-item .advisor-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--navigation-blue);
  margin-bottom: 12px;
}

.advisor-list .advisor-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
}

/* ── DESIGN SYSTEM COMPONENTS (DESIGN.json classes) ── */

/* Buttons */
.ds-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dusk-ember);
  color: var(--deep-formation);
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-std) var(--ease-out),
              transform var(--dur-std) var(--ease-out);
}
.ds-btn-primary:hover { background: var(--signal-amber); transform: translateY(-1px); }
.ds-btn-primary:focus-visible { outline: 3px solid var(--signal-amber); outline-offset: 3px; }

.ds-btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-formation);
  color: oklch(100% 0 0);
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--dur-std) var(--ease-out);
}
.ds-btn-navy:hover { background: var(--navy-light); }
.ds-btn-navy:focus-visible { outline: 3px solid var(--navigation-blue); outline-offset: 3px; }

.ds-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: oklch(100% 0 0);
  padding: 13px 28px;
  border-radius: var(--r-md);
  border: 1.5px solid oklch(100% 0 0 / 0.40);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--dur-std);
}
.ds-btn-ghost:hover { border-color: oklch(100% 0 0); }
.ds-btn-ghost:focus-visible { outline: 2px solid oklch(100% 0 0 / 0.80); outline-offset: 3px; }

.ds-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-mid);
  padding: 9px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--warm-border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.ds-btn-outline:hover { border-color: var(--deep-formation); color: var(--deep-formation); }
.ds-btn-outline:focus-visible { outline: 3px solid var(--navigation-blue); outline-offset: 3px; }

.ds-btn-sm {
  background: var(--deep-formation);
  color: oklch(100% 0 0);
  border: none;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-std) var(--ease-out);
}
.ds-btn-sm:hover { background: var(--navy-light); }

/* Navigation */
.ds-nav {
  background: var(--deep-formation);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ds-nav-logo {
  font-family: var(--font-heading);
  color: var(--signal-amber);
  font-size: 22px;
  letter-spacing: -0.5px;
}
.ds-nav-logo span { color: oklch(100% 0 0); }
.ds-nav-links { display: flex; gap: 28px; }
.ds-nav-link {
  color: oklch(100% 0 0 / 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.ds-nav-link:hover { color: var(--signal-amber); }
.ds-nav-ctas { display: flex; gap: 12px; align-items: center; }
.ds-nav-ghost {
  background: none;
  border: 1px solid oklch(100% 0 0 / 0.30);
  color: oklch(100% 0 0);
  padding: 7px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.ds-nav-ghost:hover { border-color: var(--signal-amber); color: var(--signal-amber); }
.ds-nav-gold {
  background: var(--dusk-ember);
  border: none;
  color: var(--deep-formation);
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-std) var(--ease-out);
}
.ds-nav-gold:hover { background: var(--signal-amber); }

/* Form field */
.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}
.ds-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--warm-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--deep-formation);
  background: var(--surface-white);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ds-input:focus {
  border-color: var(--navigation-blue);
  box-shadow: 0 0 0 3px oklch(42% 0.08 230 / 0.12);
}
.ds-input::placeholder { color: var(--text-muted); }

/* Product card */
.ds-product-card {
  background: var(--surface-white);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur-std) var(--ease-out),
              transform var(--dur-std) var(--ease-out),
              border-color var(--dur-std) var(--ease-out),
              background var(--dur-std) var(--ease-out);
}
.ds-product-card:hover {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
  border-color: var(--gold-bar);
  background: var(--gold-pale);
}
.ds-product-header { padding: 28px 28px 20px; }
.ds-product-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.ds-tag-strategic { background: oklch(65% 0.18 50 / 0.12); color: var(--dusk-ember); }
.ds-product-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-bottom: 10px;
  line-height: 1.3;
}
.ds-product-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.ds-product-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ds-product-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

/* Section header */
.ds-section-header { }

/* Status pills */
.ds-pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.ds-pill-ready { background: #e8f5e9; color: #2e7d32; }
.ds-pill-live  { background: #fff3e0; color: #e65100; }
.ds-pill-done  { background: var(--teal-pale); color: var(--navigation-blue); }
.ds-pill-off   { background: #fce4ec; color: #c62828; }

/* ── ARTICLE DETAIL PAGES ──
   Long-form layout for case studies and blog posts under reference/.
   Reading column capped at ~68ch; Sora for headings, DM Sans for body.
*/
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
  transition: color var(--dur-fast);
}

.article-back::after {
  content: ' →';
  color: var(--gold-bar);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.article-back:hover {
  color: var(--deep-formation);
}

.article-back:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.article-back-bottom {
  margin-top: 64px;
  margin-bottom: 0;
  padding-top: 28px;
  border-top: 1px solid var(--warm-border);
  display: inline-flex;
}

.article-head {
  margin-bottom: 36px;
}

.article-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navigation-blue);
  line-height: 1.4;
  margin-bottom: 28px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.22;
  color: var(--deep-formation);
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 4px;
}

.article-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.article-hero {
  margin: 0 0 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--warm-border);
}

.article-hero img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--deep-formation);
}

.article-body > * + * {
  margin-top: 1.4em;
}

.article-body p {
  max-width: 68ch;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--deep-formation);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.article-body strong {
  font-weight: 600;
  color: var(--deep-formation);
}

.article-body em {
  font-style: italic;
}

.article-body a {
  color: var(--navigation-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: oklch(42% 0.08 230 / 0.4);
  transition: text-decoration-color var(--dur-fast);
}

.article-body a:hover {
  text-decoration-color: var(--navigation-blue);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  max-width: 65ch;
}

.article-body li + li {
  margin-top: 0.5em;
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--warm-border);
  font-style: italic;
  color: var(--text-mid);
  max-width: 60ch;
}

.article-body blockquote p {
  margin-top: 0;
}

.article-body blockquote.intense {
  font-size: 1.125em;
  color: var(--deep-formation);
  border-left-color: var(--navigation-blue);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1.6em 0;
}

.article-body table {
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.95em;
  width: 100%;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--warm-border);
}

.article-body th {
  font-weight: 600;
  color: var(--deep-formation);
  background: var(--gold-pale);
}

@media (max-width: 640px) {
  .article-page { padding: 40px 20px 64px; }
  .article-hero { margin: 0 -20px 36px; border-radius: 0; }
  .article-body { font-size: 1rem; }
}

/* ── CARD CLICK WRAPPERS ──
   The whole case/blog card becomes the link target.
   Hover and focus states delegate to the inner card visuals.
*/
.case-card-link,
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-lg);
}

.case-card-link:focus-visible,
.blog-card-link:focus-visible {
  outline: 2px solid var(--navigation-blue);
  outline-offset: 4px;
}

.blog-card-link {
  /* Block grid items so the wrapper doesn't introduce extra spacing */
  height: 100%;
}

/* Brand callout — replaces the banned `border-left` accent on contact info */
.brand-callout {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--gold-pale);
  border: 1px solid var(--warm-border);
  border-radius: var(--r-md);
}

.brand-callout > p:first-child {
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.brand-callout > p:last-child {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--deep-formation);
  margin-top: 6px;
  letter-spacing: 0;
}

/* Hero overlay — used over editorial photography on `services` and `clients` */
.hero-overlay {
  background: oklch(17% 0.05 248 / 0.82);
  padding: 48px 56px;
  text-align: center;
  border-radius: var(--r-lg);
  max-width: 720px;
}

.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: oklch(97% 0.01 80);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-overlay p {
  color: oklch(100% 0 0 / 0.78);
  font-size: 17px;
  margin-top: 12px;
  font-weight: 300;
}

.hero-overlay .btn {
  margin-top: 24px;
}

/* Editorial banner — full-bleed image with overlay block */
.banner-image {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Hero badge */
.ds-hero-badge {
  display: inline-block;
  background: oklch(83% 0.19 85 / 0.18);
  border: 1px solid oklch(83% 0.19 85 / 0.45);
  color: var(--signal-amber);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .case-card { flex-direction: column; }
  .case-card img { width: 100%; height: 200px; border-radius: var(--r-md) var(--r-md) 0 0; }
  body > header { padding: 0 20px; height: 56px; }
  nav a { padding: 0 8px; font-size: 13px; line-height: 56px; }
  .nav-dropdown .dropdown-menu { top: 56px; }
  .hero { padding: 56px 20px; }
  .hero-card { padding: 40px 24px; }
  .page-banner { padding: 48px 20px 40px; }
  .section { padding: 56px 20px; }
  .proven-bar { padding: 32px 20px; }
  footer { padding: 40px 20px; }
}

@media (max-width: 640px) {
  .hero-card blockquote { font-size: 1.125rem; }
}

/* ────────────────────────────────────────────────────────────────
   MOTION POLISH (Emil Kowalski review pass)
   1. Press feedback on buttons + clickable cards
   2. Hover gating for touch devices (kills "stuck" hover states)
   3. prefers-reduced-motion guard
   4. First-paint stagger on index card grids
   5. (the strong ease-out variable was swapped at the top)
   ──────────────────────────────────────────────────────────────── */

/* ── 1. Press feedback ──────────────────────────────────────────
   Buttons and clickable cards must acknowledge the press, not just
   the hover. Subtle scale, fast transition, releases snappily.
*/
.btn,
.btn-outline,
.ds-btn-primary,
.ds-btn-navy,
.ds-btn-ghost,
.ds-btn-outline,
.ds-btn-sm,
.ds-nav-gold,
.ds-nav-ghost {
  transition-property: background, color, border-color, transform, box-shadow;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-out);
}

.btn:active,
.btn-outline:active,
.ds-btn-primary:active,
.ds-btn-navy:active,
.ds-btn-ghost:active,
.ds-btn-outline:active,
.ds-btn-sm:active,
.ds-nav-gold:active,
.ds-nav-ghost:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* Cards: pressing the wrapper compresses the inner card slightly */
.case-card-link:active .case-card,
.blog-card-link:active .blog-card {
  transform: scale(0.985) translateY(-2px);
  transition-duration: 80ms;
}

/* ── 2. Touch-device hover override ─────────────────────────────
   On touch, :hover sticks after tap. Nullify hover-only transforms
   so the element doesn't look "stuck up" until the user taps elsewhere.
   Color and shadow changes stay (they fade quickly and feel natural).
*/
@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .ds-btn-primary:hover,
  .case-card:hover,
  .case-card-link:hover .case-card,
  .blog-card:hover,
  .blog-card-link:hover .blog-card,
  .service-card:hover,
  .ds-product-card:hover {
    transform: none;
  }
}

/* ── 3. Reduced motion ──────────────────────────────────────────
   Honor user preference: kill durations, neutralize entrance
   animations. Color/opacity transitions still happen (instantly).
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 4. First-paint stagger ─────────────────────────────────────
   Cards on the case-studies, blog, and services index pages cascade
   in on initial load. One-shot, decorative, never blocks interaction.
*/
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-grid > .blog-card-link,
.grid-3 > .service-card,
.section-white > .container > .case-card-link {
  animation: cardFadeUp 360ms var(--ease-out) both;
}

/* Stagger delays — 50ms intervals, capped at 280ms for long lists */
.blog-grid > .blog-card-link:nth-child(1),
.grid-3 > .service-card:nth-child(1),
.section-white > .container > .case-card-link:nth-child(1) { animation-delay: 0ms; }

.blog-grid > .blog-card-link:nth-child(2),
.grid-3 > .service-card:nth-child(2),
.section-white > .container > .case-card-link:nth-child(2) { animation-delay: 50ms; }

.blog-grid > .blog-card-link:nth-child(3),
.grid-3 > .service-card:nth-child(3),
.section-white > .container > .case-card-link:nth-child(3) { animation-delay: 100ms; }

.blog-grid > .blog-card-link:nth-child(4),
.grid-3 > .service-card:nth-child(4),
.section-white > .container > .case-card-link:nth-child(4) { animation-delay: 150ms; }

.blog-grid > .blog-card-link:nth-child(5),
.grid-3 > .service-card:nth-child(5),
.section-white > .container > .case-card-link:nth-child(5) { animation-delay: 200ms; }

.blog-grid > .blog-card-link:nth-child(6),
.grid-3 > .service-card:nth-child(6),
.section-white > .container > .case-card-link:nth-child(6) { animation-delay: 240ms; }

.blog-grid > .blog-card-link:nth-child(n+7),
.grid-3 > .service-card:nth-child(n+7),
.section-white > .container > .case-card-link:nth-child(n+7) { animation-delay: 280ms; }
