/* ============================================================
   DELTA SCAN SITE STYLES — v3
   Dark executive aesthetic with full brand-spec alignment.
   Brand: crimson #DF0000, charcoal #4F4F4F (wordmark), Outfit + IBM Plex.
   ============================================================ */

:root {
  --bg-0: #0A0A0B;
  --bg-1: #101013;
  --bg-2: #15151A;
  --bg-3: #1C1C22;
  --bg-4: #22222A; /* dormant: defined for the charcoal ramp but barely referenced; kept for future elevated surfaces */
  --border-subtle: #1F1F25;
  --border-default: #2A2A32;
  --border-strong: #3A3A44;
  --text-0: #FAFAFA;
  --text-1: #D4D4D8;
  --text-2: #A1A1AA;
  --text-3: #909099;
  --text-inverse-0: #FAFAFA;
  --crimson: #DF0000;
  --crimson-text: #FF3B30; /* brighter crimson for small text/links to clear 4.5:1 on dark */
  --accent: #DF0000; /* alias of --crimson; several components reference var(--accent) */
  --crimson-dim: #B00000;
  --crimson-glow: rgba(223, 0, 0, 0.18);
  --crimson-soft: rgba(223, 0, 0, 0.08);
  --crimson-softer: rgba(223, 0, 0, 0.04);
  --accent-blue: #4A90E2;
  --accent-amber: #D97706;
  --accent-green: #16A34A;
  --font-display: 'Outfit', 'Avenir Next', 'Avenir', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
  --content-width: 1360px;
  --content-padding: clamp(24px, 4vw, 48px);
  --section-gap: clamp(80px, 10vw, 160px);
  --focus-ring: 0 0 0 2px var(--bg-0), 0 0 0 4px #FF3B30;
  --shadow-md: 0 18px 40px -16px rgba(0,0,0,0.6);
  /* Signature easing. --ease-out is a confident decel for entrances and hover
     lifts; --ease-standard for state changes. Replaces the anonymous default
     `ease` so the whole motion layer shares one fingerprint. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  /* Single corner-radius system. The 0px sharp "engineering edge" is the brand
     signature; newer components had drifted to 10/12/14/16px. One token keeps
     every card corner consistent. Pills (100px/999px/50%) are deliberate shapes
     and stay literal. Change this one value to soften the whole system later. */
  --radius: 0px;
  /* Shared body type scale. Body copy had fragmented into 13/14/15/16/17px
     one-offs; these three tokens cover the common cases. Display headings keep
     their clamp() scale. */
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; color-scheme: dark; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-radius: 2px;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.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; top: -40px; left: 16px; z-index: 1000;
  background: var(--crimson); color: #fff; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: top 0.2s var(--ease-standard);
}
.skip-link:focus { top: 16px; }

/* Subtle film grain across the whole site */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--text-0); line-height: 1.05; letter-spacing: -0.005em; }
.display-xl { font-size: clamp(52px, 9vw, 132px); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.display-lg { font-size: clamp(44px, 6.5vw, 96px); line-height: 1.02; letter-spacing: -0.022em; font-weight: 400; }
.display-md { font-size: clamp(34px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -0.018em; font-weight: 400; }
.display-sm { font-size: clamp(26px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.012em; font-weight: 500; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; }
.eyebrow-accent { color: var(--crimson-text); }
.eyebrow-accent::after {
  content: ''; display: inline-block; width: 28px; height: 2px;
  background: var(--crimson); margin-left: 12px; vertical-align: middle;
}
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text-1); font-weight: 400; max-width: 62ch; }
.text-mono { font-family: var(--font-mono); }
.text-dim { color: var(--text-2); }
.text-faint { color: var(--text-3); }

/* Layout */
.container { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0 var(--content-padding); position: relative; }
.section { padding-block: var(--section-gap); position: relative; }
.section-sm { padding-block: clamp(60px, 7vw, 100px); }
.section-alt { background: var(--bg-1); }
/* Faint divider between two adjacent SAME-background sections so they never
   merge into one slab. Scoped to same-class adjacencies (alt+alt, plain+plain),
   and the PRECEDING section must NOT already supply its own border (inline
   border style, or the .industries / .contact class borders) — otherwise the
   two 1px lines stack into a visible doubled hairline. */
.section:not(.section-alt):not([style*="border"]):not(.industries):not(.contact) + .section:not(.section-alt),
.section-alt:not([style*="border"]) + .section-alt { border-top: 1px solid var(--border-subtle); }
.section-header { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; max-width: 1100px; }
@media (min-width: 900px) { .section-header { grid-template-columns: 1.1fr 1.5fr; gap: 64px; align-items: start; } }
.section-title-block { display: flex; flex-direction: column; gap: 16px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: rgba(10, 10, 11, 0.72); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease-standard), background 0.3s var(--ease-standard); }
.nav.scrolled { border-bottom-color: var(--border-subtle); background: rgba(10, 10, 11, 0.92); }
.nav-inner { max-width: var(--content-width); margin: 0 auto; padding: 14px var(--content-padding); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { height: 36px; width: auto; display: block; }
.nav-logo-mask {
  /* Use the SVG mask technique so we can recolour the logo per theme.
     Falls back to brightness-invert via .nav-logo. */
}
@media (min-width: 700px) { .nav-logo { height: 40px; } }
.nav-links { display: none; align-items: center; gap: 24px; }
@media (min-width: 1200px) { .nav-links { display: flex; } }
.nav-link { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s; position: relative; padding: 8px 0; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text-0); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--crimson); transition: width 0.28s var(--ease-standard); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 18px; background: var(--crimson); color: #fff; transition: background 0.2s, transform 0.2s var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
.nav-cta:hover { background: var(--crimson-dim); transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: 1px solid var(--border-default); padding: 8px 14px; color: var(--text-0); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 1199px) { .nav-mobile-toggle { display: inline-flex; align-items: center; gap: 8px; } }
@media (max-width: 1199px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-1); border-bottom: 1px solid var(--border-subtle); padding: 8px var(--content-padding) 16px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--crimson); }
}

/* Page hero */
.page-hero { padding-top: 180px; padding-bottom: 120px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); min-height: 70vh; display: flex; align-items: center; }
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 30%, var(--crimson-soft), transparent 45%); pointer-events: none; }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 60%); opacity: 0.5; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 32px; max-width: 1100px; width: 100%; }

/* Hero image slot */
.hero-image { position: absolute; inset: 0; overflow: hidden; z-index: 1; background: var(--bg-0); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(0.85) contrast(1.06); opacity: 1; transition: opacity 0.6s var(--ease-standard); }
.hero-image svg.bg-scene { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.15) 0%, rgba(10, 10, 11, 0.5) 70%, var(--bg-0) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(223, 0, 0, 0.1), transparent 55%);
  pointer-events: none; z-index: 2;
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; z-index: 3;
}
.page-hero.has-image .page-hero-bg, .page-hero.has-image .page-hero-grid { display: none; }


/* Inline image slot */
.img-slot { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.72) saturate(0.88) contrast(1.05); }
.img-slot svg.bg-scene { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.img-slot::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay; pointer-events: none;
}

.bg-scene { position: absolute; inset: 0; pointer-events: none; }

.breadcrumb { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--crimson); }
.breadcrumb-sep { color: var(--text-3); }
.page-hero-title { max-width: 22ch; }
.page-hero-sub { max-width: 62ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--text-1); font-weight: 400; }
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Home hero */
.hero { min-height: 100vh; padding-top: 140px; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero .hero-image { z-index: 0; }
.hero .hero-image::before {
  background:
    linear-gradient(90deg, var(--bg-0) 0%, rgba(10, 10, 11, 0.82) 30%, rgba(10, 10, 11, 0.2) 70%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.3) 0%, transparent 40%, rgba(10, 10, 11, 0.9) 100%);
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 30%, rgba(223, 0, 0, 0.12), transparent 45%), radial-gradient(ellipse at 10% 80%, rgba(74, 144, 226, 0.05), transparent 55%); pointer-events: none; z-index: 1; }
.hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); opacity: 0.5; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 64px; flex: 1; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-meta-chip { padding: 6px 12px; border: 1px solid var(--border-default); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.02); }
.hero-meta-chip::before { content: ''; width: 6px; height: 6px; background: var(--crimson); border-radius: 50%; }
.hero-title { max-width: 18ch; }
.hero-title .emph { color: var(--crimson); }
.hero-sub { max-width: 56ch; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--text-1); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Buttons */
.btn-primary { padding: 16px 28px; background: var(--crimson); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-out); border: 1px solid var(--crimson); }
.btn-primary:hover { background: var(--crimson-dim); border-color: var(--crimson-dim); transform: translateY(-1px); }
.btn-secondary { padding: 16px 28px; background: transparent; color: var(--text-0); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--crimson); color: #fff; background: var(--crimson-soft); }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .btn-arrow, .btn-secondary:hover .btn-arrow { transform: translateX(4px); }
/* Small-button modifier. Compact padding shared by banner / cookie / inline CTAs
   that previously redeclared `padding: 10px 18px` per component. Pair with the
   component's own font-size where it differs. Apply `.btn--sm` in markup, or via
   the grouped selectors below which fold the existing ad-hoc rules into one. */
.btn--sm,
.incident-banner-actions .btn-primary,
.incident-banner-actions .btn-secondary,
.cookie-banner-actions .btn-primary,
.cookie-banner-actions .btn-secondary { padding: 10px 18px; }

/* Point cloud */
.point-cloud { position: absolute; display: block; top: 50%; right: -5%; transform: translateY(-50%); width: 55%; height: 80%; max-width: 760px; opacity: 0.95; pointer-events: none; z-index: 1; }
@media (max-width: 1100px) { .point-cloud { opacity: 0.5; width: 80%; right: -20%; } }
/* Page-hero variant: same reality-capture engine, pinned to the one structure
   the page is about. Smaller, calmer and dimmer than the homepage hero so the
   homepage keeps the signature moment; hidden below the nav breakpoint where a
   short page hero needs all its width for the heading. */
.point-cloud.point-cloud--page { right: 3%; width: 34%; height: 76%; max-width: 420px; opacity: 0.5; }
@media (max-width: 1100px) { .point-cloud.point-cloud--page { display: none; } }
/* Hero scan: a service-specific section visual (subsurface GPR), sharing the
   page-cloud placement so every hero visual sits in the same slot. Line-work
   rather than a dot cloud, so it carries slightly more opacity. */
.hero-scan { position: absolute; display: block; top: 50%; right: 3%; transform: translateY(-50%); width: 36%; height: 62%; max-width: 460px; opacity: 0.7; pointer-events: none; z-index: 1; }
@media (max-width: 1100px) { .hero-scan { display: none; } }
/* From capture to signature. Scroll-linked rather than pinned: the sequence is
   driven by how far the section has travelled up the viewport. Deliberately NOT
   position:sticky - `body` carries overflow-x:hidden site-wide, which makes the
   body a scroll container and stops sticky descendants from ever pinning. This
   approach also avoids scroll-jacking and behaves identically on every screen. */
.capture-story { position: relative; padding: 120px 0; background: var(--bg-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.capture-story-sticky { display: block; }
.capture-story-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; width: 100%; }
.capture-story-copy { display: flex; flex-direction: column; gap: 20px; }
.capture-story-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.capture-story-steps li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); opacity: 0.5; transition: opacity 0.35s var(--ease-standard), color 0.35s var(--ease-standard); }
.capture-story-steps li.is-active { opacity: 1; color: var(--text-0); }
.capture-story-step-n { font-size: 11px; color: var(--crimson-text); }
.capture-story-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 70vh; }
#capture-story-canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .capture-story { padding: 72px 0; }
  .capture-story-inner { grid-template-columns: 1fr; gap: 32px; }
  .capture-story-stage { aspect-ratio: 4 / 3; max-height: none; }
}

/* Stats */
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); margin-top: 72px; }
@media (min-width: 900px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { padding: 24px 24px 0 0; border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 6px; }
.hero-stat:last-child { border-right: none; }
@media (max-width: 899px) { .hero-stat:nth-child(2n) { border-right: none; } }
.hero-stat-value { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4vw, 56px); color: var(--text-0); line-height: 1; letter-spacing: -0.02em; }
.hero-stat-value .unit { color: var(--crimson); font-size: 0.65em; margin-left: 4px; font-weight: 400; }
.hero-stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.15em; text-transform: uppercase; }

/* Clients */
.clients { padding: 56px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.clients-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.clients-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.2em; text-transform: uppercase; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 36px); }
.client-logo {
  height: 72px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-out);
  min-width: 140px;
}
.client-logo img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease-standard), filter 0.2s var(--ease-standard);
}
/* Variant for logos that were saved as white-on-transparent (designed for dark
   backgrounds). Inverts them to display as dark-on-light on the white pill so
   they remain legible alongside the dark-content logos. */
.client-logo--invert img { filter: invert(1) hue-rotate(180deg); }
.client-logo:hover { background: #fff; transform: translateY(-2px); }
.client-logo:hover img { opacity: 1; }
@media (max-width: 700px) {
  .client-logo { height: 56px; padding: 10px 16px; min-width: 110px; }
  .client-logo img { max-height: 34px; max-width: 120px; }
}

/* Core area / product cards */
.products-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .products-grid { grid-template-columns: 1fr 1fr; } }
.product-card { position: relative; background: var(--bg-2); border: 1px solid var(--border-subtle); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease-out); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.product-visual { aspect-ratio: 16 / 10; background: var(--bg-3); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.product-visual img { width: 100%; height: 100%; object-fit: contain; display: block; filter: none; transition: transform 0.5s var(--ease-out); }
.product-card:hover .product-visual img { filter: brightness(1) saturate(1.05) contrast(1.04); transform: scale(1.02); }
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-name { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--text-0); letter-spacing: -0.01em; }
.product-version { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--border-default); }
.product-desc { color: var(--text-1); font-size: var(--text-base); line-height: 1.6; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.product-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-2); padding: 5px 10px; background: var(--bg-3); border: 1px solid var(--border-subtle); }
.product-link { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-0); display: inline-flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border-subtle); transition: color 0.2s; }
.product-link:hover { color: var(--crimson); }
/* Full-width featured core-area card: horizontal so the image does not balloon
   to ~810px tall when the card spans both grid columns. */
@media (min-width: 800px) {
  .product-card--wide { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .product-card--wide .product-visual { aspect-ratio: auto; height: 100%; border-bottom: none; border-right: 1px solid var(--border-subtle); }
  .product-card--wide .product-body { justify-content: center; }
}

/* Visual variants */
.visual-scan { background: radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.15), transparent 60%), var(--bg-3); display: grid; place-items: center; }
.visual-audit { background: linear-gradient(180deg, var(--bg-3), #0F0F12); position: relative; display: grid; place-items: center; }
.visual-gis { background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.08), transparent 60%), var(--bg-3); display: grid; place-items: center; }
.visual-deltacloud { background: radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.15), transparent 60%), var(--bg-3); display: grid; place-items: center; }
.visual-roadai { background: linear-gradient(180deg, var(--bg-3), #0F0F12); position: relative; }
.visual-shaft { background: radial-gradient(ellipse at center, var(--crimson-soft), transparent 60%), var(--bg-3); display: grid; place-items: center; }
.visual-omnispect { background: conic-gradient(from 180deg at 50% 50%, var(--bg-3), #0F0F12, var(--bg-3)); display: grid; place-items: center; }

/* Services list */
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.service-row { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 48px 0; border-bottom: 1px solid var(--border-subtle); position: relative; transition: background 0.3s; }
.service-row:hover { background: var(--crimson-softer); }
@media (min-width: 900px) { .service-row { grid-template-columns: 80px 1fr 1.2fr 200px; gap: 48px; align-items: start; } }
.service-number { font-family: var(--font-mono); font-size: 12px; color: var(--crimson-text); letter-spacing: 0.15em; }
.service-title-block { display: flex; flex-direction: column; gap: 10px; }
.service-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); color: var(--text-0); line-height: 1.1; letter-spacing: -0.012em; }
.service-tagline { color: var(--text-2); font-size: 14px; font-style: italic; }
.service-desc { color: var(--text-1); font-size: var(--text-base); line-height: 1.65; }
.service-deliverables { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.service-deliverable { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.service-deliverable::before { content: ''; width: 10px; height: 1px; background: var(--crimson); flex-shrink: 0; }
.service-cta { padding-top: 10px; color: var(--text-0); }
.service-cta:hover { color: var(--crimson); }
/* Whole-row click target: the Explore link stretches over the full row (rows are position:relative) */
.service-row { cursor: pointer; }
.service-row .service-cta { position: static; }
.service-row .service-cta::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* Industries */
.industries { background: var(--bg-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.industries-grid { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); grid-template-columns: 1fr; }
@media (min-width: 900px) { .industries-grid { grid-template-columns: 1fr 1fr; } .industries-grid .industry-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.industry-card { background: var(--bg-1); padding: 48px 40px; display: flex; flex-direction: column; gap: 24px; min-height: 420px; position: relative; overflow: hidden; transition: background 0.3s; text-decoration: none; color: inherit; }
.industry-card:hover { background: var(--bg-2); }
.industry-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--crimson); border: 1px solid var(--border-default); }
.industry-title { font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--text-0); letter-spacing: -0.012em; }
.industry-body { color: var(--text-1); font-size: var(--text-base); line-height: 1.6; }
.industry-use-cases { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.industry-use-case { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.industry-use-case-count { color: var(--text-3); font-size: 10px; }

/* Specialised Service cards (home page) — image-led tiles linking to landing pages */
.service-card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .service-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-card-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-standard), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-standard);
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card-image { aspect-ratio: 16/10; background: var(--bg-3); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.85) saturate(0.95) contrast(1.05); transition: filter 0.3s var(--ease-standard), transform 0.5s var(--ease-out); }
.service-card:hover .service-card-image img { filter: brightness(1) saturate(1.05); transform: scale(1.04); }
.service-card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-0); line-height: 1.2; letter-spacing: -0.01em; }
.service-card-desc { color: var(--text-1); font-size: 14px; line-height: 1.6; flex: 1; }
.service-card-cta { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson-text); display: inline-flex; align-items: center; gap: 8px; }
.service-card:hover .service-card-cta .btn-arrow { transform: translateX(4px); }

/* Team grid (About page) */
.team-grid { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); grid-template-columns: 1fr; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { background: var(--bg-1); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; transition: background 0.3s var(--ease-standard); }
.team-card:hover { background: var(--bg-2); }
.team-card-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dim));
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}
.team-card-initials { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: #fff; letter-spacing: 0.05em; }
.team-card-meta { display: flex; flex-direction: column; gap: 4px; }
.team-card-role { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--text-0); line-height: 1.2; }
.team-card-creds { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson-text); }
.team-card-bio { color: var(--text-1); font-size: var(--text-sm); line-height: 1.6; }

/* Floating WhatsApp + sticky mobile CTA */
.whatsapp-fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-standard);
}
.whatsapp-fab:hover { background: #1faa53; transform: translateY(-3px) scale(1.05); }
/* The white WhatsApp glyph on brand-green #25D366 is only ~1.98:1. Keep it white
   (so it stays recognisably WhatsApp) but add a dark drop-shadow halo so the glyph
   edge separates from the green at >=3:1. */
.whatsapp-fab svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.55)); }
@media (max-width: 700px) {
  .whatsapp-fab { bottom: 84px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 89;
  background: rgba(14, 16, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.mobile-sticky-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; max-width: 600px; margin: 0 auto; }
.mobile-sticky-cta a { padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mobile-sticky-cta a.cta-primary { background: var(--crimson); color: #fff; }
.mobile-sticky-cta a.cta-phone { background: transparent; color: var(--text-inverse-0); border: 1px solid var(--border-default); }
@media (max-width: 700px) { .mobile-sticky-cta { display: block; } body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Testimonial block */
.testimonials-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: var(--bg-2); border: 1px solid var(--border-subtle); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.testimonial-quote { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.55; color: var(--text-0); font-style: italic; flex: 1; }
.testimonial-quote::before { content: '\201C'; display: block; font-family: 'Outfit', serif; font-size: 72px; line-height: 0.5; color: var(--crimson); margin-bottom: 8px; font-style: normal; font-weight: 600; }
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.testimonial-attribution { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson-text); }
.testimonial-context { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* Calendly placeholder block */
.calendly-placeholder { padding: 24px; border: 1px dashed var(--border-default); background: var(--bg-2); }

/* Feature band — full-width image inside a section, used as a visual break */
.feature-band {
  margin-top: 80px;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}
.feature-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(1.02) contrast(1.05);
}
@media (max-width: 700px) { .feature-band { aspect-ratio: 16/9; margin-top: 56px; } }

/* Case cards */
.case-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; } .case-grid .case-card:first-child { grid-row: span 2; } }
.case-card { background: var(--bg-2); border: 1px solid var(--border-subtle); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease-out); min-height: 320px; text-decoration: none; color: inherit; }
.case-card:hover { border-color: var(--border-default); transform: translateY(-2px); }
.case-visual { flex: 1; min-height: 240px; background: var(--bg-3); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); display: grid; place-items: center; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.82) saturate(0.95) contrast(1.05); transition: filter 0.3s var(--ease-standard), transform 0.5s var(--ease-out); }
.case-card:hover .case-visual img { filter: brightness(0.95) saturate(1.05); transform: scale(1.04); }
.case-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.case-meta { display: flex; gap: 12px; align-items: center; }
.case-sector { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson-text); }
.case-dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }
.case-region { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.case-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); color: var(--text-0); line-height: 1.1; letter-spacing: -0.01em; }
.case-outcome { color: var(--text-1); font-size: 14px; line-height: 1.6; }
.case-metrics { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid var(--border-subtle); margin-top: 8px; flex-wrap: wrap; }
.case-metric { display: flex; flex-direction: column; gap: 2px; }
.case-metric-value { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--text-0); line-height: 1; }
.case-metric-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }

/* Tech stack */
.tech-stack { background: var(--bg-0); }
.tech-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-card { background: var(--bg-1); border: 1px solid var(--border-subtle); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.3s var(--ease-out), border-color 0.3s; position: relative; overflow: hidden; }
.tech-card-image { aspect-ratio: 4/3; margin: -28px -28px 4px; background: var(--bg-3); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); display: grid; place-items: center; }
.tech-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.95) saturate(1) contrast(1.02); transition: transform 0.5s var(--ease-out), filter 0.3s var(--ease-standard); }
.tech-card:hover .tech-card-image img { transform: scale(1.04); filter: brightness(1) saturate(1.05); }
/* Contain variant: keeps the entire product visible (never crops). Light
   neutral background so isolated-product PNGs with white edges blend in,
   while environmental shots get a slight letterbox. */
.tech-card-image.tech-card-image-contain { background: rgba(255, 255, 255, 0.96); }
.tech-card-image.tech-card-image-contain img { object-fit: contain; padding: 6%; filter: none; }
.tech-card:hover .tech-card-image.tech-card-image-contain img { transform: scale(1.03); filter: none; }
.tech-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--crimson); transition: width 0.4s var(--ease-standard); }
.tech-card:hover { border-color: var(--border-default); transform: translateY(-2px); }
.tech-card:hover::before { width: 100%; }
.tech-category { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.tech-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-0); letter-spacing: -0.005em; }
.tech-spec { color: var(--text-2); font-size: 13px; line-height: 1.55; }
.tech-spec-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tech-spec-list li { position: relative; padding-left: 16px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.tech-spec-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--crimson); }
.tech-specs { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--border-subtle); }
.tech-spec-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; }
.tech-spec-key { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.tech-spec-value { color: var(--text-1); font-weight: 500; }

/* Global */
.global { background: var(--bg-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.global-inner { display: grid; gap: 64px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .global-inner { grid-template-columns: 1fr 1fr; gap: 96px; } }
.global-map { aspect-ratio: 4 / 3; position: relative; }
.global-regions { display: flex; flex-direction: column; gap: 0; }
.region { padding: 28px 0; border-bottom: 1px solid var(--border-subtle); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.region:first-child { border-top: 1px solid var(--border-subtle); }
.region-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.1em; }
.region-info { display: flex; flex-direction: column; gap: 4px; }
.region-name { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--text-0); letter-spacing: -0.01em; }
.region-details { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); letter-spacing: 0.05em; }
.region-status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--border-default); color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.region-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.region-status.upcoming .region-status-dot { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }

/* Insights */
.insights-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .insights-grid { grid-template-columns: repeat(3, 1fr); } }
.insight-card { background: var(--bg-1); border: 1px solid var(--border-subtle); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.3s, transform 0.3s var(--ease-out); min-height: 320px; text-decoration: none; color: inherit; overflow: hidden; }
.insight-card:hover { border-color: var(--border-default); transform: translateY(-2px); }
.insight-visual { margin: -28px -28px 0; aspect-ratio: 16 / 10; background: var(--bg-3); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.insight-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.85) contrast(1.05); }
.insight-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.insight-category { color: var(--crimson-text); }
.insight-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-0); line-height: 1.2; letter-spacing: -0.005em; }
.insight-excerpt { color: var(--text-2); font-size: 14px; line-height: 1.6; flex: 1; }
.insight-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.insight-read-more { color: var(--text-0); }
.insight-read-time { color: var(--text-3); }

/* Article (blog post) page */
.article { padding-top: 140px; padding-bottom: 80px; }
.article-hero { position: relative; aspect-ratio: 21 / 9; min-height: 320px; max-width: 100%; overflow: hidden; background: var(--bg-2); margin-bottom: 56px; border: 1px solid var(--border-subtle); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.9) contrast(1.05); }
.article-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,0.5)); pointer-events: none; }
.article-inner { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.article-meta-category { color: var(--crimson-text); }
.article-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.05; letter-spacing: -0.022em; color: var(--text-0); margin-bottom: 24px; }
.article-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--text-1); margin-bottom: 48px; font-weight: 400; }
.article-body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 38px); color: var(--text-0); margin: 56px 0 18px; letter-spacing: -0.015em; }
.article-body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); color: var(--text-0); margin: 36px 0 14px; letter-spacing: -0.005em; }
.article-body p { color: var(--text-1); font-size: var(--text-lg); line-height: 1.75; margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 12px 0 28px; padding-left: 0; }
.article-body ul li { padding: 8px 0 8px 22px; position: relative; color: var(--text-1); font-size: 16px; line-height: 1.65; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 12px; height: 1px; background: var(--crimson); }
.article-body strong { color: var(--text-0); font-weight: 600; }
.article-body em { color: var(--text-0); font-style: italic; }
.article-body blockquote { border-left: 3px solid var(--crimson); padding: 8px 0 8px 24px; margin: 32px 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--text-0); letter-spacing: -0.01em; }

/* Project page */
.project-hero { position: relative; padding-top: 140px; padding-bottom: 64px; border-bottom: 1px solid var(--border-subtle); overflow: hidden; }
.project-hero-img { position: relative; aspect-ratio: 21 / 9; min-height: 360px; max-width: 100%; overflow: hidden; background: var(--bg-2); margin-bottom: 48px; }
.project-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.85) contrast(1.05); }
.project-meta { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--border-subtle); margin-top: 40px; }
@media (min-width: 700px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta-item { display: flex; flex-direction: column; gap: 6px; }
.project-meta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.project-meta-value { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--text-0); letter-spacing: -0.005em; }

/* Positioning */
.positioning-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .positioning-grid { grid-template-columns: 1.2fr 1fr; gap: 96px; } }
.positioning-lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.5vw, 52px); line-height: 1.05; color: var(--text-0); letter-spacing: -0.018em; }
.positioning-lead .emph { color: var(--crimson); }
.positioning-body p { margin-bottom: 20px; color: var(--text-1); font-size: var(--text-lg); line-height: 1.6; }
.positioning-body p:last-child { margin-bottom: 0; }
.positioning-credentials { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.credential { display: flex; flex-direction: column; gap: 6px; }
.credential-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.credential-value { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-0); letter-spacing: -0.005em; }

/* Content pages */
.content-section { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .content-section { grid-template-columns: 1fr 2fr; gap: 96px; align-items: start; } }
.content-body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.5vw, 36px); color: var(--text-0); margin-bottom: 16px; letter-spacing: -0.012em; }
.content-body p { margin-bottom: 18px; color: var(--text-1); font-size: 16px; line-height: 1.7; }
.content-body ul { list-style: none; margin-bottom: 24px; }
.content-body ul li { padding: 10px 0 10px 22px; position: relative; color: var(--text-1); font-size: 16px; line-height: 1.6; border-bottom: 1px solid var(--border-subtle); }
.content-body ul li:last-child { border-bottom: none; }
.content-body ul li::before { content: ''; position: absolute; left: 0; top: 18px; width: 12px; height: 1px; background: var(--crimson); }
.content-body strong { color: var(--text-0); font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--border-subtle); display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .faq-item { grid-template-columns: 2fr 3fr; gap: 48px; } }
.faq-q { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); color: var(--text-0); line-height: 1.15; letter-spacing: -0.005em; }
.faq-a { color: var(--text-1); font-size: var(--text-base); line-height: 1.7; }

/* Collapsible deep-page sections (mobile only; desktop layout unchanged).
   Gated by .js so no-JS users get every section expanded, and by a max-width
   media query so the desktop 2-col content layout is never collapsed. Sections
   start collapsed via pure CSS; script.js wires the tap/keyboard toggle + ARIA. */
@media (max-width: 899px) {
  .js .collapsible-section .collapsible-trigger {
    position: relative;
    cursor: pointer;
    padding-right: 34px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .js .collapsible-section .collapsible-trigger::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    margin-top: -7px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--crimson);
    border-bottom: 2px solid var(--crimson);
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease-out);
  }
  .js .collapsible-section.is-open .collapsible-trigger::after {
    transform: rotate(225deg);
  }
  .js .collapsible-section:not(.is-open) .collapsible-target {
    display: none;
  }
  .js .collapsible-section.is-open .collapsible-target {
    opacity: 1;
    transform: none;
  }
}

/* CTA block */
.cta-block { padding: 80px; background: var(--bg-1); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; margin-top: 48px; position: relative; }
.cta-block::before { content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 3px; background: var(--crimson); }
@media (min-width: 700px) { .cta-block { flex-direction: row; justify-content: space-between; align-items: center; } }
.cta-block-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); color: var(--text-0); letter-spacing: -0.018em; max-width: 20ch; line-height: 1.1; }
.cta-block-title .emph { color: var(--crimson); }

/* Contact */
.contact { background: var(--bg-1); border-top: 1px solid var(--border-subtle); }
.contact-inner { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-inner { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.contact-info { display: flex; flex-direction: column; gap: 40px; }
.contact-lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4vw, 60px); line-height: 1; color: var(--text-0); letter-spacing: -0.022em; }
.contact-lead .emph { color: var(--crimson); }
.contact-meta { color: var(--text-1); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.contact-offices { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.contact-office { display: flex; flex-direction: column; gap: 8px; }
.contact-office-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.contact-office-address { color: var(--text-1); font-size: 14px; line-height: 1.55; }
.contact-office-links { display: flex; gap: 16px; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; flex-wrap: wrap; }
.contact-office-link { color: var(--text-0); border-bottom: 1px solid var(--border-default); padding-bottom: 2px; transition: border-color 0.2s; }
.contact-office-link:hover { border-color: var(--crimson); color: var(--crimson); }

/* Form */
.contact-form { background: var(--bg-2); border: 1px solid var(--border-subtle); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.form-label .req { color: var(--crimson); margin-left: 4px; }
.form-input, .form-select, .form-textarea { background: var(--bg-1); border: 1px solid var(--border-default); color: var(--text-0); padding: 14px 16px; font-family: var(--font-body); font-size: 15px; transition: border-color 0.2s, background 0.2s; width: 100%; color-scheme: dark; }
.form-select option { background: var(--bg-1); color: var(--text-0); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--crimson); background: var(--bg-3); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A1A1AA' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-checkbox-row { display: flex; gap: 12px; align-items: flex-start; padding-top: 8px; }
.form-checkbox { width: 18px; height: 18px; border: 1px solid var(--border-strong); background: var(--bg-1); cursor: pointer; flex-shrink: 0; margin-top: 2px; appearance: none; position: relative; }
.form-checkbox:checked { background: var(--crimson); border-color: var(--crimson); }
.form-checkbox:checked::after { content: '\2713'; position: absolute; color: white; font-size: 12px; top: 0; left: 4px; }
.form-checkbox-label { color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; }
.form-submit { background: var(--crimson); color: white; padding: 18px 24px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 12px; transition: background 0.2s; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1px solid var(--crimson); }
.form-submit:hover { background: var(--crimson-dim); border-color: var(--crimson-dim); }
.form-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; margin-top: -4px; }
.form-success { display: none; background: rgba(22, 163, 74, 0.12); border: 1px solid rgba(22, 163, 74, 0.5); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; color: var(--text-0); font-size: 15px; line-height: 1.55; }
/* Hide the Cloudflare Turnstile slot until a real sitekey is wired (the JS loader
   only renders a non-empty sitekey); otherwise it shows as an empty bordered box. */
.cf-turnstile[data-sitekey=""], .cf-turnstile:empty { display: none !important; }

/* Competitor-contrast band */
.difference-grid { display: grid; gap: 16px; margin-top: 8px; }
.difference-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.difference-cell { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border-subtle); }
.difference-them { background: var(--bg-0); color: var(--text-2); }
.difference-us { background: linear-gradient(135deg, rgba(223, 0, 0, 0.08), transparent 70%), var(--bg-1); border-color: rgba(223, 0, 0, 0.35); color: var(--text-0); }
.difference-cell p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; }
.difference-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.difference-tag--us { color: var(--crimson-text); }
@media (max-width: 760px) { .difference-row { grid-template-columns: 1fr; gap: 10px; } }

/* How we scope & price */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); margin-top: 8px; }
.pricing-step { display: flex; gap: 18px; padding: 28px 28px 28px 0; border-right: 1px solid var(--border-subtle); align-items: flex-start; }
.pricing-step:last-child { border-right: none; }
.pricing-num { font-family: var(--font-mono); font-size: 13px; color: var(--crimson-text); padding-top: 3px; }
.pricing-body { display: flex; flex-direction: column; gap: 8px; }
.pricing-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--text-0); letter-spacing: -0.01em; }
.pricing-desc { font-size: 14px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-step { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 22px 0; }
  .pricing-step:last-child { border-bottom: none; }
}

/* Footer */
.footer { padding: 80px 0 32px; background: var(--bg-0); border-top: 1px solid var(--border-subtle); }
.footer-top { display: grid; gap: 48px; grid-template-columns: 1fr; padding-bottom: 64px; border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 340px; }
.footer-logo { height: 44px; width: auto; opacity: 0.95; }
.footer-tagline { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.footer-contact-row { display: inline-flex; align-items: center; gap: 8px; color: var(--text-1); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-contact-row:hover { color: var(--crimson); }
.footer-contact-row svg { flex-shrink: 0; opacity: 0.7; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col-title { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-0); padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.footer-link { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer-link:hover { color: var(--crimson); }
.footer-bottom { padding-top: 32px; display: flex; flex-direction: column; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-legal a:hover { color: var(--text-1); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border-default); display: grid; place-items: center; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.footer-social a:hover { border-color: var(--crimson); background: var(--crimson-soft); color: #fff; }

/* Work archive filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-bottom: 48px; }
.filter-chip { padding: 8px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border-default); background: transparent; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.filter-chip-count { color: var(--text-3); font-size: 10px; padding: 1px 6px; border: 1px solid var(--border-subtle); border-radius: 999px; }
.filter-chip.active .filter-chip-count, .filter-chip:hover .filter-chip-count { color: var(--crimson); border-color: var(--crimson); }
.filter-chip.active, .filter-chip:hover { color: var(--text-0); border-color: var(--crimson); background: var(--crimson-soft); }

/* Case study page */
.case-hero { padding-top: 180px; padding-bottom: 80px; border-bottom: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.case-hero-meta { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 32px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-top: 48px; }
.case-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.case-hero-meta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.case-hero-meta-value { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--text-0); letter-spacing: -0.005em; }
.metrics-panel { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 40px; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-value { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); color: var(--crimson); line-height: 1; letter-spacing: -0.02em; }
.metric-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-2); }

/* Animations. Reveal hides content ONLY when JS is present (html.js); without
   JS the content paints with the HTML so the hero/body never renders blank. */
.reveal { transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in, .js .reveal.in { opacity: 1; transform: translateY(0); }

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

::selection { background: var(--crimson); color: #fff; }

/* ============================================================
   MOBILE OPTIMISATION PASS (rev2)
   Targeted improvements for the ~70% of B2B traffic that will read
   this site on a phone. Goal: comfortable tap targets, no horizontal
   scroll, legible type at arm's length, sticky CTA + WhatsApp visible
   but not overlapping content.
   ============================================================ */

@media (max-width: 700px) {

  :root { --content-padding: 18px; --section-gap: 56px; }

  body { padding-bottom: 68px; }

  .display-xl { font-size: clamp(34px, 11vw, 52px) !important; line-height: 1.02; }
  .display-lg { font-size: clamp(30px, 9vw, 44px) !important; line-height: 1.05; }
  .display-md { font-size: clamp(26px, 7.5vw, 36px) !important; line-height: 1.1; }
  .display-sm { font-size: clamp(22px, 6vw, 30px) !important; line-height: 1.15; }

  .hero { min-height: auto; padding-top: 96px; padding-bottom: 48px; }
  .hero-inner { gap: 32px; }
  .hero-meta { gap: 6px; }
  .hero-meta-chip { padding: 5px 10px; font-size: 10px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { gap: 12px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { justify-content: center; padding: 14px 20px; min-height: 48px; }
  .hero-stats { margin-top: 40px; gap: 16px; grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 16px 8px 0 0; }
  .hero-stat-value { font-size: 28px; }
  .hero-stat-label { font-size: 10px; }

  .page-hero { padding-top: 96px; padding-bottom: 56px; min-height: 320px; }
  .page-hero-inner { gap: 18px; }
  .page-hero-sub { font-size: 15px; }
  .page-hero-title { max-width: 100%; }

  .section { padding-block: clamp(48px, 9vw, 72px); }
  .section-header { gap: 20px; margin-bottom: 40px; grid-template-columns: 1fr !important; }

  .nav-inner { padding: 12px 16px; gap: 10px; }
  .nav-logo { height: 30px; }
  .nav-cta { padding: 9px 12px; font-size: 11px; letter-spacing: 0.08em; }
  .nav-cta .btn-arrow { display: none; }
  .nav-mobile-toggle { padding: 10px 12px; min-height: 44px; min-width: 44px; }

  .btn-primary, .btn-secondary { padding: 14px 20px; font-size: 12px; min-height: 48px; }

  /* Service cards (Specialised Services on home) */
  .service-card-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .service-card-image { aspect-ratio: 16/9; }
  .service-card-body { padding: 20px; gap: 10px; }
  .service-card-title { font-size: 20px; }
  .service-card-desc { font-size: 13px; }

  /* Products grid */
  .products-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .product-body { padding: 22px; }
  .product-name { font-size: 22px; }
  .product-tags { gap: 6px; }
  .product-tag { padding: 5px 10px; font-size: 10px; }

  /* Service rows (services-list) — stack to single column */
  .service-row { padding: 28px 0 !important; gap: 14px !important; grid-template-columns: 1fr !important; }
  .service-number { font-size: 11px; }
  .service-title { font-size: 22px !important; }
  .service-desc { grid-column: auto !important; font-size: 14px; }
  .service-deliverables { padding-top: 8px; gap: 12px; flex-direction: row; flex-wrap: wrap; }
  .service-deliverable { padding: 10px 0; min-height: 36px; align-items: center; }
  a.service-deliverable.service-cta { padding: 14px 18px; border: 1px solid var(--border-default); margin-top: 8px; min-height: 44px; }
  a.service-deliverable.service-cta:hover { border-color: var(--crimson); }

  /* Industries */
  .industries-grid { grid-template-columns: 1fr !important; }
  .industry-card { padding: 32px 24px; min-height: 280px; }
  .industry-title { font-size: 24px; }

  /* Case grid */
  .case-grid { grid-template-columns: 1fr !important; }
  .case-grid .case-card:first-child { grid-row: auto !important; }
  .case-card { min-height: 280px; }
  .case-visual { min-height: 180px; }
  .case-title { font-size: 19px !important; }

  /* Insights */
  .insights-grid { grid-template-columns: 1fr !important; }
  .insight-card { min-height: 280px; }
  .insight-title { font-size: 19px; }

  /* Tech grid */
  .tech-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .tech-card { padding: 22px; }
  .tech-card-image { aspect-ratio: 16/9; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr !important; }
  .team-card { padding: 26px 22px; min-height: auto; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .testimonial-card { padding: 26px 22px; }
  .testimonial-quote { font-size: 15px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-top { gap: 36px; padding-bottom: 40px; grid-template-columns: 1fr !important; }
  .footer-brand { max-width: none; }
  .footer-col { gap: 4px; }
  .footer-col-title { padding-bottom: 14px; margin-bottom: 6px; }
  .footer-link { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .footer-bottom { gap: 16px; align-items: flex-start !important; flex-direction: column !important; }
  .footer-legal { gap: 14px; flex-direction: column; }
  .footer-legal a { padding: 10px 0; }
  .footer-contact-row { padding: 10px 0; min-height: 44px; align-items: center; }
  .footer-social { gap: 10px; }
  .footer-social a { width: 44px; height: 44px; }

  /* Contact page */
  .contact-inner { grid-template-columns: 1fr !important; gap: 40px; }
  .contact-office { gap: 10px; }
  .contact-office-link { padding: 12px 0; border-bottom: 1px solid var(--border-default); display: inline-block; min-height: 44px; }
  .contact-office-links { flex-direction: column; gap: 4px; align-items: stretch; }
  .contact-lead { font-size: clamp(28px, 8vw, 42px); }
  .contact-form { padding: 24px; }
  .form-row.two-col { grid-template-columns: 1fr !important; }
  .form-input, .form-select, .form-textarea { padding: 14px; font-size: 16px; /* prevent iOS auto-zoom */ }
  .form-submit { padding: 16px 20px; min-height: 52px; }

  /* CTA block */
  .cta-block { padding: 40px 24px !important; gap: 20px; }
  .cta-block-title { font-size: clamp(22px, 7vw, 30px) !important; max-width: none; }

  /* Floating WhatsApp button: nudge above the sticky CTA */
  .whatsapp-fab { bottom: 88px; right: 14px; }

  /* Sticky CTA bar: ensure visible */
  .mobile-sticky-cta { display: block; padding: 10px 12px; }
  .mobile-sticky-cta a { font-size: 11px; padding: 12px 12px; min-height: 44px; }

  /* Filter chips: horizontal scroll instead of wrap */
  .filter-bar { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding: 12px 0; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; padding: 10px 12px; min-height: 44px; }

  /* Positioning section (About + Home) */
  .positioning-grid { gap: 28px !important; grid-template-columns: 1fr !important; }
  .positioning-lead { font-size: clamp(22px, 7vw, 32px) !important; }
  .positioning-credentials { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-top: 24px; }
  .credential-value { font-size: 17px; }

  /* Feature band */
  .feature-band { aspect-ratio: 16/10; margin-top: 48px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 10px; gap: 6px; flex-wrap: wrap; }

  /* Clients strip */
  .client-logo { height: 56px; padding: 10px 14px; min-width: 110px; }
  .client-logo img { max-height: 36px; max-width: 100px; }
  .clients-row { gap: 12px; }

  /* Calendly placeholder */
  .calendly-placeholder { padding: 16px; }
  .calendly-placeholder > div { padding: 40px 16px !important; }

  /* Article (blog detail) body */
  .article-body { font-size: 15px; line-height: 1.7; }
  .article-title { font-size: clamp(24px, 8vw, 34px); }
  .article-lede { font-size: 15px; }

  /* Eyebrow */
  .eyebrow-accent::after { width: 20px; margin-left: 8px; }

  /* Global section */
  .global-inner { gap: 36px !important; grid-template-columns: 1fr !important; }
  .region { padding: 18px 0; grid-template-columns: auto 1fr; gap: 14px; }
  .region-status { padding: 6px 10px; font-size: 9px; align-self: flex-start; grid-column: 1 / -1; }
}

/* ============================================================
   VERY SMALL DEVICES (iPhone SE-class)
   ============================================================ */
@media (max-width: 380px) {
  :root { --content-padding: 14px; }
  /* Re-derive the filter-bar full-bleed from --content-padding so its negative
     margin can't overshoot the viewport (the hardcoded -18px exceeds 14px here). */
  .filter-bar { margin-left: calc(-1 * var(--content-padding)); margin-right: calc(-1 * var(--content-padding)); padding-left: var(--content-padding); padding-right: var(--content-padding); }
  .nav-logo { height: 26px; }
  .nav-cta { padding: 8px 10px; font-size: 10px; letter-spacing: 0.06em; }
  .nav-cta .btn-arrow { display: none; }
  .hero-stat-value { font-size: 24px; }
  .hero-meta { gap: 4px; }
  .hero-meta-chip { padding: 4px 8px; font-size: 9px; }
  .display-xl { font-size: 28px !important; }
  .display-lg { font-size: 24px !important; }
  .display-md { font-size: 20px !important; }
}

/* ============================================================
   AUDIT FIXES — rev2 polish pass
   ============================================================ */

/* Scroll-chip horizontal scroll affordance: subtle right-edge gradient mask */
.filter-bar { position: relative; }
@media (max-width: 700px) {
  .filter-bar::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 32px;
    background: linear-gradient(90deg, transparent, var(--bg-0));
    pointer-events: none;
    z-index: 1;
  }
}

/* Card hover unification: every card variant uses the same -2px translate + 1.03 image scale.
   Overrides earlier per-card variation. */
.product-card:hover,
.case-card:hover,
.insight-card:hover,
.service-card:hover,
.industry-card:hover,
.tech-card:hover {
  transform: translateY(-2px);
}
.product-card:hover .product-visual img,
.case-card:hover .case-visual img,
.service-card:hover .service-card-image img,
.tech-card:hover .tech-card-image img {
  transform: scale(1.03);
}

/* Subtle dot pattern on dark sections — adds texture without noise */
.section-dark::before,
.hero::after,
.cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.cta-block { position: relative; }
.cta-block > * { position: relative; z-index: 1; }

/* Newsletter signup in footer */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.footer-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  max-width: 320px;
}
.footer-newsletter-form input {
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: var(--text-inverse-0);
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.footer-newsletter-form input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.footer-newsletter-form input::placeholder { color: var(--text-3); }
.footer-newsletter-form button {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-newsletter-form button:hover { background: var(--crimson-dim); }
.footer-newsletter-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-newsletter-consent {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-3);
}
.footer-newsletter-consent a { color: var(--text-2); text-decoration: underline; }

/* Proof bar on landing pages (client logos above the lede) */
.landing-proof-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 18px 0 8px;
  max-width: max-content;
}
.landing-proof-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.landing-proof-bar-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.landing-proof-bar-logos img {
  height: 24px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.landing-proof-bar-logos img:hover { opacity: 1; }
@media (max-width: 700px) {
  .landing-proof-bar { padding: 12px 14px; gap: 12px; }
  .landing-proof-bar-logos { gap: 10px; }
  .landing-proof-bar-logos img { height: 20px; max-width: 76px; }
}

/* Related services block (cross-link footer on landing pages) */
.related-services {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 700px) { .related-services { grid-template-columns: repeat(3, 1fr); } }
.related-service-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.related-service-card:hover { border-color: var(--crimson); transform: translateY(-2px); }
.related-service-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-text);
}
.related-service-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-0);
  line-height: 1.2;
}
.related-service-card-cta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
}

/* Honeypot form field — visually hidden but not display:none (bots fill it) */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   MOBILE REINFORCEMENT — touch optimisation + nav overlay
   ============================================================ */

/* Remove the 300ms tap delay on all interactive elements */
button, a, [role="button"], input[type="submit"], .filter-chip, .industry-card, .case-card, .insight-card, .product-card, .service-card, .related-service-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(223, 0, 0, 0.18);
}

/* Active (touch press) feedback on cards — replaces hover on touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only transforms that don't make sense on touch */
  .product-card:hover,
  .case-card:hover,
  .insight-card:hover,
  .service-card:hover,
  .industry-card:hover,
  .tech-card:hover,
  .related-service-card:hover,
  .team-card:hover {
    transform: none;
  }
  /* Pressed-state feedback on tap */
  .product-card:active,
  .case-card:active,
  .insight-card:active,
  .service-card:active,
  .industry-card:active,
  .related-service-card:active {
    transform: scale(0.99);
    transition: transform 0.1s var(--ease-out);
  }
  .btn-primary:active, .btn-secondary:active, .nav-cta:active, .form-submit:active {
    transform: scale(0.97);
  }
  /* Disable image zoom on hover (no hover on touch) */
  .case-card:hover .case-visual img,
  .service-card:hover .service-card-image img,
  .product-card:hover .product-visual img,
  .tech-card:hover .tech-card-image img {
    transform: none;
  }
}

/* Mobile nav full-screen overlay */
@media (max-width: 1199px) {
  .nav-links.open {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 24px calc(40px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 16, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    box-shadow: none;
    border-bottom: none;
  }
  .nav-links.open .nav-link {
    padding: 18px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-inverse-0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-links.open .nav-link::after {
    content: '\2192';
    color: var(--crimson);
    font-family: var(--font-mono);
    font-size: 16px;
    width: auto;
    height: auto;
    background: none;
    position: static;
    transition: transform 0.2s var(--ease-out);
  }
  .nav-links.open .nav-link:hover::after { transform: translateX(4px); }
  .nav-links.open .nav-link.active { color: var(--crimson); }
  .nav-links.open .nav-link.active::after { content: '\25CF'; }

  /* Close button visible when menu open */
  .nav.menu-open .nav-mobile-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 201;
    background: rgba(223, 0, 0, 0.15);
    color: var(--text-inverse-0);
    border-color: rgba(223, 0, 0, 0.4);
  }

  /* Stop the body from scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* The cookie banner (z-index 1100) outranks the menu overlay (z-index 200), so
     on a first visit it covers the lower links + Close button and eats their taps.
     Hide it while the menu is open; it returns on close. */
  body.menu-open #cookie-banner, body.menu-open .cookie-banner { display: none !important; }

  /* Add contact block at bottom of open menu */
  .nav-links.open::after {
    content: '';
    display: block;
    height: 60px;
  }
}

/* Sticky CTA hides itself when keyboard is up on iOS (form focus inside textarea) */
@media (max-width: 700px) and (max-height: 500px) {
  .mobile-sticky-cta { display: none !important; }
  .whatsapp-fab { display: none !important; }
  body { padding-bottom: 0; }
}

/* Image rendering performance — prefer faster decoding on phones */
img { content-visibility: auto; }
img[loading="lazy"] { contain: layout style paint; }

/* Form-input mobile keyboard improvement: prevent zoom + correct keyboard type */
input[type="email"], input[type="tel"], input[type="url"], input[type="text"], textarea, select, .form-textarea, .form-select {
  font-size: max(16px, 1em);
}

/* ── Incident-response banner (forensic / insurance landing pages) ───────── */
.incident-banner {
  background: linear-gradient(90deg, rgba(223,0,0,0.14), rgba(223,0,0,0.06));
  border-top: 1px solid rgba(223,0,0,0.45);
  border-bottom: 1px solid rgba(223,0,0,0.25);
}
.incident-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.incident-banner-text { display: flex; flex-direction: column; gap: 2px; }
.incident-banner-text strong { color: var(--text-0); font-size: 16px; }
.incident-banner-text span { color: var(--text-1); font-size: 14px; }
.incident-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* padding folded into the shared .btn--sm grouped selector below */
.incident-banner-actions .btn-primary,
.incident-banner-actions .btn-secondary { font-size: 14px; }
@media (max-width: 700px) {
  .incident-banner-inner { padding: 16px 0; }
  .incident-banner-actions { width: 100%; }
  .incident-banner-actions .btn-primary,
  .incident-banner-actions .btn-secondary { flex: 1; justify-content: center; }
}

/* ── Legal / policy pages ───────────────────────────────────────────────── */
.page-hero--compact { padding-top: 140px; padding-bottom: 24px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body a { color: var(--accent); text-decoration: underline; }

/* ── Homepage audience signpost (two ways to work with us) ──────────────── */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.audience-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-standard), transform 0.3s var(--ease-out), background 0.3s var(--ease-standard);
}
.audience-card:hover { border-color: var(--border-default); transform: translateY(-3px); }
.audience-card:hover .audience-link { color: var(--accent); }
.audience-card--accent {
  border-color: rgba(223, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(223,0,0,0.06), var(--bg-1));
}
.audience-card--accent:hover { border-color: rgba(223, 0, 0, 0.75); }
.audience-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.audience-title { font-size: 24px; line-height: 1.2; color: var(--text-0); margin: 0; }
.audience-body { color: var(--text-1); font-size: var(--text-base); line-height: 1.6; margin: 0; flex: 1; }
.audience-link { color: var(--text-0); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.audience-link:hover { color: var(--accent); }
.audience-card--accent .audience-link { color: var(--accent); }
@media (max-width: 700px) {
  .audience-split { grid-template-columns: 1fr; }
  .audience-card { padding: 24px; }
}

/* ── For Engineering Firms: services menu ──────────────────────────────── */
.partner-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.partner-services li {
  position: relative;
  padding-left: 24px;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.5;
}
.partner-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 700px) {
  .partner-services { grid-template-columns: 1fr; }
}

/* ── Global project map ─────────────────────────────────────────────────── */
/* Two-column footprint: capability copy + metrics beside the map */
.footprint-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 980px) { .footprint-grid { grid-template-columns: 0.82fr 1.18fr; gap: 56px; } }
.footprint-copy .eyebrow-accent { display: inline-block; margin-bottom: 18px; }
.footprint-copy h2 { margin-bottom: 20px; }
.footprint-lede { color: var(--text-1); font-size: var(--text-lg); line-height: 1.62; margin: 0 0 28px; max-width: 48ch; }
.footprint-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footprint-metric { background: var(--bg-1); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 16px 18px; }
.fm-value { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--text-0); }
.fm-label { display: block; margin-top: 9px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.footprint-note { margin: 22px 0 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; color: var(--text-3); max-width: 52ch; }

.global-map-wrap {
  background: radial-gradient(120% 120% at 58% 60%, #161922 0%, #0b0d12 72%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
}
.global-map-svg { width: 100%; height: auto; display: block; overflow: visible; }
.global-map-svg .map-land { fill: #232834; stroke: #313748; stroke-width: 0.4; fill-rule: evenodd; }
.global-map-svg .map-arc { fill: none; stroke: #DF0000; stroke-width: 0.8; opacity: 0.2; }
/* HQ: white core with a slow red pulse (the command centre) */
.global-map-svg .map-hq-core { fill: #fff; filter: url(#pinGlow); }
.global-map-svg .map-hq-pulse {
  fill: rgba(255, 59, 59, 0.45);
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPinPulse 2.8s ease-out infinite;
}
/* Delivered projects: solid red node + faint static ring */
.global-map-svg .map-proj { fill: #ff3b3b; filter: url(#pinGlow); }
.global-map-svg .map-proj-ring { fill: none; stroke: rgba(255, 59, 59, 0.3); stroke-width: 0.7; }
/* Strategic regions: hollow ring */
.global-map-svg .map-region { fill: none; stroke: rgba(255, 96, 96, 0.6); stroke-width: 1.1; }
.global-map-svg .map-region-dot { fill: rgba(255, 96, 96, 0.7); }
.global-map-svg .map-pin { transition: opacity 0.2s var(--ease-standard); }
.global-map-svg .map-pin:hover { opacity: 0.65; }
.global-map-svg .map-label { fill: var(--text-1); font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: 0.12em; dominant-baseline: middle; }
.global-map-svg .map-label--hq { fill: #fff; font-weight: 600; font-size: 10px; }
.global-map-svg .map-label-sub { fill: var(--text-3); font-family: var(--font-mono, monospace); font-size: 6.5px; letter-spacing: 0.1em; dominant-baseline: middle; }
@keyframes mapPinPulse {
  0%   { transform: scale(0.5); opacity: 0.85; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .global-map-svg .map-hq-pulse { animation: none; opacity: 0.55; }
}
@media (max-width: 700px) {
  .global-map-wrap { padding: 16px 16px 12px; }
  .global-map-svg .map-label-sub { display: none; }
}
.global-map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 22px 0 0; }
.global-map-legend .lg-key { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.global-map-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.global-map-legend .lg-dot--hq { background: #fff; box-shadow: 0 0 0 2px rgba(223, 0, 0, 0.55); }
.global-map-legend .lg-dot--project { background: #ff3b3b; }
.global-map-legend .lg-dot--region { background: transparent; border: 1.5px solid rgba(255, 96, 96, 0.75); }
@media (max-width: 700px) {
  .global-map-legend { gap: 8px 16px; }
  .global-map-legend .lg-key { font-size: 11px; }
}

/* ── Reality-capture output gallery ─────────────────────────────────────── */
.capture-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.capture-figure {
  margin: 0;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-standard), transform 0.2s var(--ease-out);
}
.capture-figure:hover { border-color: rgba(223, 0, 0, 0.4); }
.capture-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0e12;
  overflow: hidden;
}
.capture-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) { .capture-figure:hover .capture-img img { transform: scale(1.04); } }
.capture-figure figcaption {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-1);
  border-top: 1px solid var(--border-subtle);
}
@media (max-width: 700px) {
  .capture-gallery { grid-template-columns: 1fr; gap: 16px; }
}

/* Deliverable exhibit — frames a document/report image (e.g. a signed sheet) as an
   intentional figure on the dark page, shown whole (contain) rather than cropped. */
.deliverable-figure {
  margin: 8px 0 4px;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.deliverable-figure img { width: 100%; height: auto; display: block; }
.deliverable-figure figcaption {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  border-top: 1px solid var(--border-subtle);
}

/* Accuracy & standards strip — reusable IP-safe proof band */
.accuracy-head { max-width: 760px; margin-bottom: 40px; }
.accuracy-head h2 { margin-top: 14px; }
.accuracy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}
.accuracy-item {
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accuracy-item:last-child { border-right: none; }
.accuracy-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  color: var(--text-0);
  line-height: 1;
  letter-spacing: -0.02em;
}
.accuracy-value .unit { color: var(--crimson); font-size: 0.5em; margin-left: 6px; font-weight: 400; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; vertical-align: middle; }
.accuracy-label { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
@media (max-width: 900px) {
  .accuracy-grid { grid-template-columns: repeat(2, 1fr); }
  .accuracy-item:nth-child(2) { border-right: none; }
  .accuracy-item { padding: 24px 24px 24px 0; }
}
@media (max-width: 560px) {
  .accuracy-grid { grid-template-columns: 1fr; }
  .accuracy-item { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 22px 0; }
  .accuracy-item:last-child { border-bottom: none; }
}

/* Disambiguation router — route lookalike assessment services by trigger */
.disambig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.disambig-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-standard), transform 0.2s var(--ease-out), background 0.2s var(--ease-standard);
}
@media (hover: hover) { .disambig-card:hover { border-color: rgba(223, 0, 0, 0.45); transform: translateY(-3px); } }
.disambig-card.is-active { background: var(--bg-2); border-color: var(--border-default); cursor: default; }
@media (hover: hover) { .disambig-card.is-active:hover { transform: none; border-color: var(--border-default); } }
.disambig-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-0);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.disambig-here {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 2px 8px;
}
.disambig-card-when { font-size: 14px; line-height: 1.6; color: var(--text-2); flex: 1; }
.disambig-when-key { color: var(--crimson-text); font-weight: 500; }
.disambig-card-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-top: 4px;
}
.disambig-card:not(.is-active):hover .disambig-card-cta { color: var(--crimson); }
@media (max-width: 800px) {
  .disambig-grid { grid-template-columns: 1fr; }
}

/* Embedded lead form (landing / money pages) */
.lead-form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.lead-form-intro h2 { margin: 14px 0 18px; }
.lead-form-intro .lede { margin-bottom: 28px; }
.lead-form-direct { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.lead-form-direct-link { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; color: var(--text-0); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.lead-form-direct-link:hover { color: var(--crimson); border-color: var(--crimson); }
.lead-form.contact-form { margin: 0; background: var(--bg-1); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 32px; }
@media (max-width: 860px) {
  .lead-form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .lead-form.contact-form { padding: 24px; }
}

/* Deliverable ladder — raw capture -> signed deliverable */
.ladder { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: none; display: grid; gap: 0; }
.ladder-rung { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--border-subtle); position: relative; }
.ladder-rung:last-child { border-bottom: 1px solid var(--border-subtle); }
.ladder-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-3); padding-top: 4px; }
.ladder-body { display: flex; flex-direction: column; gap: 8px; }
.ladder-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); color: var(--text-0); letter-spacing: -0.01em; }
.ladder-desc { font-size: var(--text-base); line-height: 1.65; color: var(--text-2); max-width: 62ch; }
.ladder-rung--top { background: linear-gradient(90deg, rgba(223, 0, 0, 0.06), transparent 70%); }
.ladder-rung--top .ladder-num { color: var(--crimson); }
.ladder-rung--top::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--crimson); }
@media (max-width: 600px) {
  .ladder-rung { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .ladder-rung--top { padding-left: 16px; }
}

/* DeltaCloud annotated screenshot callouts */
.capture-annotated { position: relative; }
.capture-callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(223, 0, 0, 0.92);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}
.capture-callout::after { content: ''; position: absolute; left: 9px; bottom: -7px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(223, 0, 0, 0.55); }
@media (max-width: 600px) { .capture-callout { font-size: 8px; padding: 2px 6px; } }

/* Cookie consent banner (Consent Mode v2) */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg-1); border-top: 1px solid var(--border-default); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); overscroll-behavior: contain; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--text-1); max-width: 68ch; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex: none; }
/* padding folded into the shared .btn--sm grouped selector below */
.cookie-banner-actions .btn-primary, .cookie-banner-actions .btn-secondary { font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn-primary, .cookie-banner-actions .btn-secondary { flex: 1; text-align: center; justify-content: center; }
}

/* A11y: brighten crimson when used as SMALL text/links so it clears 4.5:1 on the dark
   surfaces. Large display crimson (.hero-title .emph, .metric-value, quote glyph, stat
   units) intentionally stays --crimson #DF0000 (passes 3:1 at >=24px). Reversible: delete
   this block to restore the original. */
.eyebrow-accent,
.nav-link.active,
.nav-links.open .nav-link.active,
.breadcrumb a:hover,
.product-link:hover,
.service-number,
.service-cta:hover,
.service-card-cta,
.team-card-creds,
.testimonial-attribution,
.case-sector,
.insight-category,
.article-meta-category,
.contact-office-link:hover,
.pricing-num,
.difference-tag--us,
.footer-contact-row:hover,
.footer-link:hover,
.legal-body a,
.cookie-banner-text a,
.audience-link,
.audience-card:hover .audience-link,
.audience-card--accent .audience-link,
.audience-link:hover,
.disambig-when-key,
.disambig-card:not(.is-active):hover .disambig-card-cta,
.lead-form-direct-link:hover,
.form-label .req,
.filter-chip.active .filter-chip-count,
.filter-chip:hover .filter-chip-count { color: var(--crimson-text); }

/* Typography polish: balance display headings, pretty long-form copy, tabular figures */
h1, h2, h3, .display-lg, .display-md, .display-sm, .hero-title, .positioning-lead, .contact-lead, .cta-block-title { text-wrap: balance; }
.lede, .hero-sub, .product-desc, .service-desc { text-wrap: pretty; }
.hero-stat-value, .metric-value, .accuracy-value, .pricing-num, .stat-value, .footprint-metric { font-variant-numeric: tabular-nums; }

/* ============================================================
   DESKTOP TARGET COMFORT
   Desktop interactive targets (nav links ~30px, footer links, 36x36 social
   icons, ~31px filter chips) cleared the 24px AA floor but missed the 44px
   comfort target. Grow the hit area to ~44px on desktop only — mobile already
   meets 44px via the max-width:700px / max-width:1199px blocks, so these are
   scoped to min-width to leave the compliant mobile sizing untouched. Padding
   grows the target without moving surrounding layout (links are inline; chips
   already wrap; social icons sit in a flex row with gap).
   ============================================================ */
@media (min-width: 1200px) {
  /* Desktop nav links are only displayed at >=1200px */
  .nav-link { padding-top: 13px; padding-bottom: 13px; display: inline-flex; align-items: center; }
}
@media (min-width: 701px) {
  .footer-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact-row { min-height: 44px; }
  .footer-social a { width: 44px; height: 44px; }
  .filter-chip { min-height: 44px; }
  .contact-office-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ============================================================
   Spec tables — reference/framework tables on service and
   landing pages (first use: /simms-audits/ SIMM framework).
   Card-wrapped, mono headers, status chips on the crimson/amber/
   green system. Horizontal scroll inside the wrap on narrow
   screens so the page body never scrolls sideways.
   ============================================================ */
.spec-table-block { margin-top: 40px; }
.spec-table-block:first-of-type { margin-top: 0; }
.spec-table-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-0); margin: 0 0 6px; }
.spec-table-sub { font-size: 15px; color: var(--text-2); margin: 0 0 18px; max-width: 760px; }
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-1); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.spec-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--text-3); text-align: left; padding: 13px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); color: var(--text-1); vertical-align: top; line-height: 1.55; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td.num { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.spec-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; border: 1px solid; }
.spec-chip-ok { color: var(--accent-green); border-color: rgba(22, 163, 74, 0.45); background: rgba(22, 163, 74, 0.08); }
.spec-chip-warn { color: var(--accent-amber); border-color: rgba(217, 119, 6, 0.45); background: rgba(217, 119, 6, 0.08); }
.spec-chip-crit { color: var(--crimson-text); border-color: rgba(223, 0, 0, 0.45); background: var(--crimson-soft); }
.spec-chip-mut { color: var(--text-2); border-color: var(--border-strong); background: var(--bg-2); }
.spec-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(223, 0, 0, 0.3); border-radius: var(--radius); background: var(--crimson-softer); font-size: 15px; color: var(--text-1); line-height: 1.55; }
.spec-note strong { color: var(--text-0); }
.spec-source { font-size: 13px; color: var(--text-3); margin-top: 20px; max-width: 820px; line-height: 1.6; }
@media (max-width: 700px) {
  .spec-table { font-size: 14px; min-width: 560px; }
  .spec-table th, .spec-table td { padding: 11px 14px; }
}

/* --- secops page refinements (audit 2026-07-17) --- */
/* consecutive full-width figures need breathing room (Sentinel Watch stack) */
.deliverable-figure + .deliverable-figure { margin-top: 40px; }
/* two-child service rows (number + title only): collapse the empty grid columns */
@media (min-width: 900px) {
  .service-row--plain { grid-template-columns: 80px 1fr; }
}
.service-row--plain { cursor: default; }
.service-row--plain:hover { background: transparent; }
/* stack the capability spec table on phones instead of sideways scrolling */
@media (max-width: 700px) {
  .spec-table--stack, .spec-table--stack thead, .spec-table--stack tbody,
  .spec-table--stack tr, .spec-table--stack th, .spec-table--stack td { display: block; min-width: 0; }
  .spec-table--stack thead { display: none; }
  .spec-table--stack tr { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
  .spec-table--stack td:first-child { padding-bottom: 2px; color: var(--text-0); }
}

/* Touch-target floor for the header CTA. The base rule (and the two narrow
   overrides that shrink its padding) left "Start a project" at ~32px high, and
   at the smallest widths less than that - under the 44px thumb target, on the
   site's most-clicked button. The adjacent .nav-mobile-toggle is already 44px,
   so the bar accommodates this without growing. Text stays centred because the
   element is already inline-flex/align-items:center. */
@media (max-width: 1024px) {
  .nav-cta { min-height: 44px; }
}
