/* ═══════════════════════════════════════════════════════════════
   DXLabs Design System - Consolidated Stylesheet
   ═══════════════════════════════════════════════════════════════
   
   Single source of truth. Merged from style.css + design-enhancements.css.
   Zero forced-priority declarations. No dead selectors.
   
   COLOUR SCALE (dark-only, approved Mar 2026):
     --bg-deep     #040A14    Deepest backgrounds (footer, CTA)
     --bg-base     #060E1A    Page background
     --bg-surface  #0A1628    Card/section backgrounds
     --bg-raised   #0D1C30    Elevated elements, inputs
   
   ACCENT:
     --accent-primary    #00A3FF    Primary blue
     --accent-secondary  #0070CC    Hover/darker blue
   
   TEXT:
     --text-primary    #F0F4F8    Headings, high emphasis
     --text-secondary  #C5D4E4    Body copy
     --text-muted      #94ADCA    Captions, labels, meta
   
   TYPOGRAPHY: Montserrat. 12px floor enforced.
   SPACING: 48px container padding desktop, 24px mobile.
   BREAKPOINTS: 900px (mobile nav), 768px (layout), 640px (compact).
   
   SECTIONS:
     1. Reset & Variables
     2. Base Typography & Layout
     3. Focus & Accessibility
     4. Navigation (Fixed, Dropdown, Mobile)
     5. Hero
     6. Sections & Layout Primitives
     7. Cards (Service, Insight, Case Study)
     8. Social Proof & Testimonials
     9. CTA
    10. Footer
    11. Inner Page Layouts (Article, Contact, About)
    12. Architecture Diagrams
    13. Broker Experience Platform Interactive
    14. Flip Cards
    15. Service/Capability Pages
    16. Case Study Components
    17. Filter Pills
    18. Decision Pyramid
    19. Cookie Consent Banner
    20. Legal Pages
    21. Buttons
    22. Animations & Scroll Reveal
    23. Noise Texture Overlay
    24. Typography Scale
    25. Responsive (900px, 768px, 640px)
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   1. RESET & VARIABLES
   ═══════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root {
  /* Background scale (dark-only) */
  --bg-deep: #040A14;
  --bg-base: #060E1A;
  --bg-surface: #0A1628;
  --bg-raised: #0D1C30;

  /* Accent colours */
  --accent-primary: #00A3FF;
  --accent-secondary: #0070CC;
  --accent-button: #0080D0;
  /* Warm accent (brand yellow). Used on hero kickers + the image-hero glow. */
  --accent-warm: #ffb32e;
  --accent-glow: rgba(0, 163, 255, 0.15);

  /* Text colours (approved values) */
  --text-primary: #F0F4F8;
  --text-secondary: #C5D4E4;
  --text-muted: #94ADCA;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 163, 255, 0.3);

  /* Radius & shadows */
  --radius-card: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(0, 163, 255, 0.15);

  /* Aliases (backward compat for older page markup) */
  --bg-page: var(--bg-base);
  --bg-surface-hover: var(--bg-raised);
  --bg-surface-raised: var(--bg-raised);
  --bg-hero: var(--bg-deep);
  --bg-deepest: var(--bg-deep);
  --text-tertiary: var(--text-muted);
  --accent: var(--accent-primary);
  --accent-hover: var(--accent-secondary);
  --accent-subtle: var(--accent-glow);
  --accent-border: var(--border-accent);
  --border: var(--border-subtle);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-section: rgba(255, 255, 255, 0.05);
  --shadow-card-hover: var(--shadow-hover);
  --radius: var(--radius-card);
  --transition: 0.2s ease;

  /* Warm accent (green) */
  --warm: #1D9E75;
  --warm-subtle: rgba(29, 158, 117, 0.1);
  --warm-text: #5DCAA5;
}


/* ═══════════════════════════════════════════
   2. BASE TYPOGRAPHY & LAYOUT
   ═══════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  background-color: #060E1A;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 89px; /* Offset for fixed nav */
  position: relative; /* Containing block for body::after grain overlay (T33) */
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}


/* ═══════════════════════════════════════════
   3. FOCUS & ACCESSIBILITY
   ═══════════════════════════════════════════ */

*:focus-visible {
  outline: 2px solid #00A3FF;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  z-index: 200;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}


/* ═══════════════════════════════════════════
   4. NAVIGATION
   Fixed nav with backdrop blur. Dropdown on hover/focus.
   Hamburger at 900px. Mobile slide-in from right.
   ═══════════════════════════════════════════ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border-section);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-logo-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.nav-cta {
  font-size: 14px;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-button);
  color: #fff;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-raised);
  border: 1px solid rgba(0, 163, 255, 0.15);
  border-radius: 10px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 163, 255, 0.08);
  color: #fff;
}

.nav-dropdown-menu a[aria-current="page"] {
  color: var(--accent-primary);
}

/* Mobile nav */
.nav-hamburger { display: none; }
.mobile-nav { display: none; }
.mobile-nav-backdrop { display: none; }

/* Mobile nav sub-items */
.mobile-nav-sub {
  display: none;
  padding-left: 20px;
  list-style: none;
}

.mobile-nav-sub.open {
  display: block;
}

.mobile-nav-sub li a {
  font-size: 15px;
  opacity: 0.8;
}


/* ═══════════════════════════════════════════
   5. HERO
   Full-width with SVG background illustration.
   Radial glow positioned to the right.
   ═══════════════════════════════════════════ */

.hero {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 64px 48px 80px;
  border-bottom: 1px solid var(--border-section);
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  left: auto;
  transform: none;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-bg-illustration {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  transform: translateY(-50%);
  width: 50%;
  max-width: 650px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.hero > .container,
.hero > .hero-content,
.hero > .container.hero-content {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: auto;
}

.hero-endorsed {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 580px;
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-top: 20px;
}

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--accent-secondary);
  color: #fff;
}

.pyramid-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero rework (current homepage) */
.hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 100%;
  margin-bottom: 24px;
}

.hero-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 100%;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.hero-industries span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* Hero illustration (inner pages) */
.hero-illustration {
  position: absolute;
  top: 0;
  right: -80px;
  width: 70%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}


/* ═══════════════════════════════════════════
   6. SECTIONS & LAYOUT PRIMITIVES
   Standard section padding, labels, titles.
   ═══════════════════════════════════════════ */

.section {
  padding: 56px 48px;
  border-bottom: 1px solid var(--border-section);
}

.section:nth-child(even) {
  background: var(--bg-surface);
}

/* Section utility classes (replace inline styles) */
.section--base { background: var(--bg-base); }
.section--surface { background: var(--bg-surface); }
.section--deep { background: var(--bg-deep); }
/* Tall padding modifier — used by industry pages and homepage hero-adjacent sections. */
.section--tall { padding: 80px 48px; }

/* Industry / card-list utilities — extracted from inline styles (audit T26). */
.industry-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.section--spacious { padding: 80px 48px; }
.section--compact { padding: 48px 48px; }

.s-label,
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.s-title,
.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.s-sub,
.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 560px;
}

/* Pillars (About page) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.pillar:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pillar-emotion {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.pillar h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pillar p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pillar top accent */
.pillar:nth-child(1) { border-top: 3px solid var(--accent); }
.pillar:nth-child(2) { border-top: 3px solid var(--accent-secondary); }
.pillar:nth-child(3) { border-top: 3px solid var(--text-muted); }

/* Decision Pyramid section */
.precision-section {
  text-align: center;
  padding: 64px 48px;
}

.precision-section .s-sub {
  margin: 12px auto 0;
  max-width: 520px;
  text-align: center;
}

/* Transformation partner section */
.transformation-partner {
  background: var(--bg-page);
  padding: 80px 48px;
}

.tp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}

.tp-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.tp-pullquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0;
  font-size: 20px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Differentiation bridge */
.section--bridge {
  background: linear-gradient(135deg, #0A1628 0%, #0D1C30 100%);
  border-top: 1px solid rgba(0, 163, 255, 0.15);
  border-bottom: 1px solid rgba(0, 163, 255, 0.15);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.section--bridge::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 163, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--bridge > * {
  position: relative;
  z-index: 1;
}

.bridge-quote {
  font-size: 22px;
  color: #E8F0F8;
  line-height: 1.5;
  font-weight: 500;
}

/* Decision Pyramid teaser */
.section-pyramid-teaser {
  background: var(--bg-surface);
  padding: 80px 0;
}

.pyramid-teaser-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pyramid-svg-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pyramid-svg-col svg {
  max-width: 320px;
  width: 100%;
}


/* ═══════════════════════════════════════════
   7. CARDS (Service, Insight, Case Study)
   ═══════════════════════════════════════════ */

/* Service cards grid */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.srv-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.srv-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.srv-card.featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: var(--border-accent);
  box-shadow: 0 4px 32px rgba(0, 145, 255, 0.08);
}

.srv-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
}

.srv-badge.heritage { color: var(--warm); background: var(--warm-subtle); }
.srv-badge.convergence { color: var(--accent); background: var(--accent-glow); }
.srv-badge.emerging { color: var(--text-muted); background: rgba(90, 138, 191, 0.1); }

.srv-card h2,
.srv-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.srv-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Capability card icons */
.cap-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.5;
}

/* Insight cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 48px 48px;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: pointer;
}

.insight-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.insight-img {
  height: 140px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-img svg line,
.insight-img svg rect,
.insight-img svg circle,
.insight-img svg path,
.insight-img svg polygon {
  stroke: var(--accent);
}

.insight-body { padding: 20px; }

.insight-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.insight-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.insight-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Card link */
.card-link {
  font-size: 13px;
  color: var(--accent);
  display: inline-block;
  margin-top: 12px;
}

/* Card headers (case study hub) */
.card-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
}

.logo-pill {
  background: #F0F4F8;
  border-radius: 6px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
}

.logo-pill img {
  max-height: 36px;
  width: auto;
  display: block;
}

.logo-pill-text {
  font-size: 14px;
  font-weight: 600;
  color: #0A1628;
  font-family: inherit;
  white-space: nowrap;
}

.card-header--insurance {
  background: linear-gradient(135deg, #0A2A4A 0%, #0D3560 100%);
  border-bottom: 2px solid #1A5FA8;
}

.card-header--government {
  background: linear-gradient(135deg, #0A2A3A 0%, #0D3550 100%);
  border-bottom: 2px solid #1A7A8A;
}

.card-header--enterprise {
  background: linear-gradient(135deg, #1A2040 0%, #1E2850 100%);
  border-bottom: 2px solid #3A4A9A;
}

.card-header--financial-services {
  background: linear-gradient(135deg, #1A2040 0%, #1E2850 100%);
  border-bottom: 2px solid #3A4A9A;
}

.sector-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.card-header--insurance .sector-label { color: #4A9FD4; }
.card-header--government .sector-label { color: #4AB8C8; }
.card-header--enterprise .sector-label { color: #7A8ADA; }
.card-header--financial-services .sector-label { color: #7A8ADA; }

.card-body { padding: 20px; }


/* ═══════════════════════════════════════════
   8. SOCIAL PROOF & TESTIMONIALS
   ═══════════════════════════════════════════ */

.logo-row {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo row centred (homepage variant) */
.logo-row--centred {
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.client-logo {
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: #B0C8E0;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Client logo images hover */
.logo-row img {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logo-row img:hover {
  opacity: 1;
}

.testimonial {
  margin-top: 32px;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  border-radius: 0;
}

.testimonial blockquote {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.testimonial cite {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  display: block;
  font-style: normal;
}

/* Featured testimonial (homepage) */
.testimonial-featured {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.08) 0%, rgba(0, 80, 150, 0.04) 100%);
  border: 1px solid rgba(0, 163, 255, 0.2);
  border-left: 5px solid #00A3FF;
  border-radius: 0 14px 14px 0;
  padding: 44px 52px;
  margin: 48px 0 0;
  max-width: 820px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2), 0 0 60px rgba(0, 163, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.testimonial-featured::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.6;
  color: #E0ECF5;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.attribution-name {
  font-size: 15px;
  font-weight: 700;
  color: #E0ECF5;
}

.attribution-role {
  font-size: 13px;
  color: #94ADCA;
}

.attribution-role::before {
  content: '';
}

/* Proof stats */
.proof-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.proof-stats .stat-number {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-stats .stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 160px;
  line-height: 1.4;
}

/* Section texture (social proof) */
.section-texture {
  position: relative;
  background: var(--bg-base);
  padding: 80px 48px;
}

.section-texture::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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section-texture > * {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   9. CTA
   ═══════════════════════════════════════════ */

.cta-section {
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-deep);
}

.cta-section .s-sub {
  margin: 12px auto 0;
  max-width: 440px;
  text-align: center;
}

.cta-btn-row {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-primary {
  padding: 14px 36px;
  background: var(--accent-button);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.cta-primary:hover { background: #006BB0; }

.cta-secondary {
  padding: 14px 36px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.cta-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════
   10. FOOTER
   Four-column layout. Deep background.
   ═══════════════════════════════════════════ */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(0, 163, 255, 0.1);
  padding: 0;
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 32px;
}

.footer-top {
  /* IA v3.0 / Launch 1: brand col + 5 link cols (Solutions, Industries, Company, Legal, Connect).
     Products column added back in Launch 2 (6 link cols). */
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(130px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Intermediate viewport: brand col full row, link cols in 3-col grid. */
@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}

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

.footer-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
  margin: 0;
}

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

.footer-col-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-address {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 24px;
}

.footer-legal-line {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-abn {
  opacity: 0.7;
}

.footer-vection-link {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-vection-link:hover {
  opacity: 0.8;
}

.footer-vection-link img {
  display: block;
  height: 20px;
  width: auto;
}

/* Legacy footer (kept for any pages not yet migrated) */
.footer-brand { color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════
   11. INNER PAGE LAYOUTS
   Article, Contact, About, Content Grid.
   ═══════════════════════════════════════════ */

/* Inner hero */
.inner-hero {
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--border-section);
  position: relative;
  overflow: hidden;
}

.inner-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.inner-hero-illustration {
  position: absolute;
  top: 50%;
  right: 5%;
  left: auto;
  transform: translateY(-50%);
  width: clamp(300px, 45vw, 520px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.inner-hero > .s-label,
.inner-hero > h1,
.inner-hero > .s-sub,
.inner-hero > .container,
.page-hero.inner-hero > .container {
  position: relative;
  z-index: 1;
}

.inner-hero > svg,
.page-hero.inner-hero > svg {
  z-index: 0;
}

.page-hero > .inner-hero-illustration {
  display: none;
}

/* Content grid (sidebar layout) */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 48px;
}

.content-main h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  margin-top: 32px;
}

.content-main h2:first-child { margin-top: 0; }

.content-main p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.sidebar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.sidebar-card h2,
.sidebar-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sidebar-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sidebar-card a {
  color: var(--accent);
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

/* Article layout */
.article-hero {
  padding: 80px 48px 40px;
  border-bottom: 1px solid var(--border-section);
  max-width: 800px;
  margin: 0 auto;
}

.article-hero .s-label { margin-bottom: 16px; }

.article-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.article-hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
}

.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 48px 80px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-body ul {
  list-style: none;
  margin: 0 0 20px 0;
}

.article-body ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.article-body .pyramid-inline {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.article-series {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px 60px;
  border-top: 1px solid var(--border-section);
  padding-top: 32px;
}

.article-series p {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.article-series a { color: var(--accent); }

/* Nested article-body fix (case studies) */
.article-body .article-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 3D Pyramid embed */
.pyramid-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 480px;
  margin: 40px auto;
}

.pyramid-3d-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Interactive dark panel */
.interactive-dark {
  background: #0A1628;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

/* Contact */
.contact-section {
  background: var(--bg-base);
  padding: 80px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px; /* 16px+ prevents iOS Safari zoom-on-focus (T31) */
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.field-invalid {
  border-color: rgba(255, 80, 80, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.15);
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 163, 255, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
}

.form-error {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  color: #FF9090;
  font-size: 15px;
}

.contact-info-col {
  padding-top: 120px;
}

.contact-alt {
  margin-bottom: 32px;
}

.contact-alt h2,
.contact-alt h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-alt a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
}

.contact-alt a:hover {
  color: var(--accent-primary);
}

/* Inline contact variant */
.section-contact-inline {
  background: var(--bg-surface);
  padding: 80px 0;
}

.inline-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* About page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.team-member { text-align: center; }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.team-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vection-lockup {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  align-items: center;
}

.vection-placeholder {
  width: 140px;
  height: 50px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.vection-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
}

/* About page illustrated sections */
.about-illustrated {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-bg-illustration {
  position: absolute;
  top: 50%;
  right: 3%;
  left: auto;
  transform: translateY(-50%);
  width: clamp(220px, 30vw, 380px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.about-illustrated > .container {
  position: relative;
  z-index: 1;
}

.about-illustrated > svg {
  z-index: 0;
}


/* ═══════════════════════════════════════════
   12. ARCHITECTURE DIAGRAMS
   ═══════════════════════════════════════════ */

.arch-zone {
  border-radius: 12px;
  padding: 20px;
  position: relative;
  margin: 0 0 14px;
}

.arch-zone:last-child { margin: 0; }

.arch-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding: 0 4px;
}

.arch-core {
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
}

.arch-core .arch-label { color: var(--accent); opacity: 0.8; }

.arch-ext {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.arch-ext .arch-label { color: var(--text-secondary); }

.arch-ops {
  background: var(--warm-subtle);
  border: 1px solid rgba(29, 158, 117, 0.18);
}

.arch-ops .arch-label { color: var(--warm-text); }

.arch-client {
  background: var(--warm-subtle);
  border: 1px solid rgba(29, 158, 117, 0.18);
}

.arch-client .arch-label { color: var(--warm-text); }

.arch-row {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
}

.arch-row:last-child { margin: 0; }

.arch-comp {
  flex: 1;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
}

.arch-comp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.arch-comp-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 5px;
  line-height: 1.3;
}

.arch-hero {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.arch-hero .arch-comp-title {
  color: var(--accent);
  font-size: 15px;
}

.arch-gap { height: 14px; }

.arch-section-row {
  display: flex;
  gap: 14px;
  margin: 0 0 14px;
}

.arch-section-row > .arch-zone {
  flex: 1;
  margin: 0;
}

.arch-conn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 0 0 14px;
}

.arch-conn svg { width: 20px; height: 20px; }

.arch-conn-h {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  flex-shrink: 0;
}

.arch-conn-h svg { width: 20px; height: 20px; }

.arch-legend {
  display: flex;
  gap: 24px;
  margin: 20px 0 0;
  font-size: 10px;
  color: var(--text-secondary);
  justify-content: center;
  flex-wrap: wrap;
}

.arch-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.conf-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 24px;
}


/* ═══════════════════════════════════════════
   13. BROKER EXPERIENCE PLATFORM INTERACTIVE
   ═══════════════════════════════════════════ */

.bep-mode-row {
  display: flex;
  gap: 2px;
  margin: 0 0 24px;
  background: rgba(15, 36, 64, 0.85);
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 45, 69, 0.5);
}

.bep-mode-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.bep-mode-btn.on { background: var(--accent); color: #fff; }

.bep-sec-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 24px 0 10px;
}

.bep-swim {
  display: flex;
  gap: 5px;
  padding: 12px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow-x: auto;
  align-items: stretch;
}

.bep-swim::-webkit-scrollbar { height: 4px; }
.bep-swim::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.bep-wb {
  border: 1.5px dashed var(--text-muted);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  gap: 5px;
  position: relative;
  background: var(--accent-glow);
}

.bep-wb-tag {
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0 6px;
}

.bep-step {
  min-width: 82px;
  max-width: 104px;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.bep-step:hover { border-color: var(--border-hover); transform: translateY(-1px); }

.bep-step.sel {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 145, 255, 0.15);
}

.bep-step .bst {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.bep-step .bdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 6px auto 0;
  transition: all 0.4s;
}

.bdot.effort { background: var(--text-muted); }
.bdot.value { background: var(--accent); }
.bdot.hidden { background: transparent; }

.bep-step.effort-hi { background: rgba(27, 77, 120, 0.15); border-color: rgba(90, 138, 191, 0.3); }
.bep-step.value-hi { background: rgba(0, 145, 255, 0.12); border-color: rgba(0, 145, 255, 0.4); }

.bep-arr {
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.5;
}

.bep-handoff {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.bep-handoff span {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bep-caps { display: flex; gap: 6px; margin: 0 0 8px; }

.bep-cap {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.25s;
}

.bep-cap:hover { border-color: var(--border-hover); }

.bep-cap.sel {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 145, 255, 0.15);
}

.bep-cap .bst { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.bep-cap .bss { font-size: 11px; color: var(--text-secondary); margin-top: 3px; line-height: 1.3; }

.bep-legend { display: flex; gap: 20px; margin: 20px 0 0; font-size: 10px; color: var(--text-muted); transition: opacity 0.3s; }
.bep-legend.off { opacity: 0; }
.bep-legend-item { display: flex; align-items: center; gap: 6px; }
.bep-legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.bep-info {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0 0;
  min-height: 90px;
}

.bep-info h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 6px; line-height: 1.3; }
.bep-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 8px; }

.bep-info .btag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.btag.be { background: rgba(90, 138, 191, 0.12); color: var(--text-muted); }
.btag.bv { background: var(--accent-glow); color: var(--accent); }

.bep-info .bchange {
  font-size: 12px;
  color: var(--accent);
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
}

.bep-info .bhandoff {
  font-size: 10px;
  color: var(--text-secondary);
  margin: 8px 0 0;
  font-style: italic;
}


/* ═══════════════════════════════════════════
   14. FLIP CARDS
   ═══════════════════════════════════════════ */

.service-card-flip {
  perspective: 600px;
  cursor: pointer;
  min-height: 260px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.service-card-flip.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-back ul { list-style: none; padding: 0; margin: 12px 0; }

.service-card-back li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.5;
}

.service-card-back li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.card-flip-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  display: block;
  padding-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .service-card-inner { transition: none; }
  .service-card-flip.flipped .service-card-front { display: none; }
  .service-card-flip.flipped .service-card-back { position: relative; transform: none; }
  .service-card-front, .service-card-back { position: relative; transform: none; backface-visibility: visible; }
  .service-card-back { display: none; }
  .service-card-flip.flipped .service-card-back { display: flex; }
}


/* ═══════════════════════════════════════════
   15. SERVICE / CAPABILITY PAGES
   ═══════════════════════════════════════════ */

.page-hero {
  padding: 80px 48px 48px;
  background: var(--bg-deep);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 880px;
}
.page-hero .s-label { margin-bottom: 16px; }
.page-hero .s-sub { margin-top: 16px; max-width: 720px; }

/* Image hero (industry pages): background photo + dark overlay with a subtle warm glow. */
.page-hero--image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.page-hero--image > .container { position: relative; z-index: 2; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.5);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255,179,46,0.16) 0%, transparent 55%),
    linear-gradient(135deg, rgba(6,14,26,0.84) 0%, rgba(6,14,26,0.6) 45%, rgba(6,14,26,0.8) 100%);
}
/* Warm accent on hero kickers only (the uppercase label inside page/section heroes).
   Body-section kickers stay blue. */
.page-hero .section-label,
.page-hero .s-label,
.depth-hero .s-label,
.inner-hero .s-label,
.pyramid-page-hero .s-label { color: var(--accent-warm); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 24px;
}

.service-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

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

.service-card .card-problem {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0 12px;
  font-style: italic;
}

.service-card .card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.badge-core { background: rgba(0, 163, 255, 0.1); color: #00A3FF; border: 1px solid rgba(0, 163, 255, 0.2); }
.badge-approach { background: rgba(0, 112, 204, 0.1); color: #0070CC; border: 1px solid rgba(0, 112, 204, 0.2); }
.badge-vection { background: rgba(0, 201, 184, 0.1); color: #00C9B8; border: 1px solid rgba(0, 201, 184, 0.2); }

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.capability-item {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.capability-item:nth-child(odd) {
  border-right: 1px solid var(--border-subtle);
}

.capability-item h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.capability-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.industry-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.industry-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.industry-tile h3 { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.industry-tile .tile-problem { font-size: 14px; color: var(--text-primary); margin-bottom: 8px; font-style: italic; }
.industry-tile .tile-proof { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.proof-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

.proof-card h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.proof-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 32px;
}

.related-links a {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 20px;
}

.related-links a:hover { border-color: var(--accent); }

.benefit-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.benefit-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.benefit-tile h3 { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.benefit-tile p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Capability section illustrations */
.cap-section {
  position: relative;
  overflow: hidden;
}

.cap-bg-illustration {
  position: absolute;
  top: 50%;
  right: 5%;
  left: auto;
  transform: translateY(-50%);
  width: clamp(380px, 60vw, 520px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.cap-section > .container,
.cap-section .cap-layout {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   16. CASE STUDY COMPONENTS
   ═══════════════════════════════════════════ */

/* Case study hero photo background */
.cs-hero {
  position: relative;
  overflow: hidden;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.25);
  z-index: 0;
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(6,14,26,0.88) 0%,
    rgba(6,14,26,0.6) 40%,
    rgba(6,14,26,0.75) 100%
  );
  z-index: 1;
}

.cs-hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .cs-hero-bg { display: none; }
}

.cs-illustration {
  background: rgba(0, 40, 80, 0.08);
  border: 1px solid rgba(0, 145, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  margin: 28px 0;
}

.cs-photo {
  background: var(--bg-raised, #0D1C30);
  border: 1px solid rgba(0, 145, 255, 0.08);
  border-radius: 14px;
  padding: 0;
  margin: 28px 0;
  overflow: hidden;
  position: relative;
}

.cs-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.3) brightness(0.6);
  transition: filter 0.3s;
}

.cs-photo:hover img {
  filter: saturate(0.4) brightness(0.65);
}

.cs-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 26, 0) 0%,
    rgba(6, 14, 26, 0) 60%,
    rgba(6, 14, 26, 0.6) 100%
  );
  pointer-events: none;
}

.cs-ill-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-ill-desc {
  font-size: 13px;
  color: var(--text-muted, #6A8EA8);
  text-align: center;
  margin: -16px 0 28px;
  font-style: italic;
  line-height: 1.5;
}

.cs-pain-points { margin: 20px 0; }

.cs-pp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.cs-pain-points ul { list-style: none; margin: 0; }

.cs-pain-points li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.7;
}

.cs-pain-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.cs-divider {
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 40px 0;
  opacity: 0.2;
}

.cs-facts { margin: 24px 0; }

.cs-facts-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.cs-facts-row:first-child { border-top: 1px solid var(--border); }

.cs-facts-label {
  width: 160px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.cs-facts-value {
  font-size: 13px;
  color: var(--text-secondary);
}

.cs-pillar {
  margin: 16px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cs-pillar-name {
  font-weight: 600;
  color: var(--text-primary);
}

.cs-back {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 24px;
}

.cs-back:hover { color: var(--accent); }

/* Case study result */
.cs-result {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cs-result strong {
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════
   17. FILTER PILLS
   Case studies hub and insights hub.
   ═══════════════════════════════════════════ */

.filter-row {
  display: flex;
  gap: 8px;
  padding: 16px 48px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-pill.active {
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
}

.filter-pill:not(.active) {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.filter-pill:not(.active):hover {
  border-color: rgba(0, 163, 255, 0.3);
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════
   18. DECISION PYRAMID
   Pyramid banner callout on capability pages.
   ═══════════════════════════════════════════ */

.pyr-banner-enhanced {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.08) 0%, rgba(0, 80, 150, 0.05) 100%);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 163, 255, 0.06);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pyr-banner-enhanced:hover {
  box-shadow: 0 0 60px rgba(0, 163, 255, 0.1);
  border-color: rgba(0, 163, 255, 0.4);
}

.pyr-banner-enhanced .pyr-callout-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 163, 255, 0.12);
  border: 1px solid rgba(0, 163, 255, 0.25);
}

.pyr-banner-enhanced h4 {
  font-size: 17px;
  font-weight: 700;
}

.pyr-banner-enhanced .pyr-callout-link {
  padding: 10px 20px;
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: 8px;
  transition: background 0.3s;
}

.pyr-banner-enhanced .pyr-callout-link:hover {
  background: rgba(0, 163, 255, 0.08);
}


/* ═══════════════════════════════════════════
   19. COOKIE CONSENT BANNER
   Fixed bottom, z-index 9999.
   ═══════════════════════════════════════════ */

#dxl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0A1628;
  border-top: 1px solid rgba(0, 163, 255, 0.2);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

#dxl-cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner-text p {
  font-size: 13px;
  color: #A8BFCF;
  line-height: 1.5;
  margin: 0;
}

.cookie-policy-link {
  font-size: 13px;
  color: #00A3FF;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-policy-link:hover { text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #A8BFCF;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.btn-cookie-decline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #F0F4F8;
}

.btn-cookie-accept {
  background: var(--accent-button);
  border: 1px solid var(--accent-button);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-cookie-accept:hover { background: #006BB0; }


/* ═══════════════════════════════════════════
   20. LEGAL PAGES
   ═══════════════════════════════════════════ */

.legal-body {
  max-width: 800px;
  padding: 60px 0 80px;
}

.legal-body h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 40px 0 12px;
}

.legal-body h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.cookie-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-raised);
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-table td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.cookie-table tr:last-child td { border-bottom: none; }

/* Legal tables responsive at <640px (audit T35).
   Below this breakpoint the data table is too wide to fit comfortably;
   reduce padding, shrink type, and wrap the table in a horizontal scroll
   container so columns aren't truncated. */
@media (max-width: 640px) {
  .cookie-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .cookie-table td:nth-child(2),
  .cookie-table td:nth-child(3) {
    white-space: normal;
  }
}


/* ═══════════════════════════════════════════
   21. BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 16px 32px; /* 16px vertical → ~48px touch target (T32, WCAG AAA 2.5.5) */
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-button);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #006BB0;
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════
   22. ANIMATIONS & SCROLL REVEAL
   Two animation systems consolidated.
   ═══════════════════════════════════════════ */

/* Scroll reveal (primary) */
.animate-on-scroll,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Pulse animations */
@keyframes nodePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.02; }
}

.pulse {
  animation: glowBreathe 3s ease-in-out infinite;
  transform-origin: center;
}

.pulse + circle {
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.3; stroke-width: 2px; }
  50% { opacity: 0.05; stroke-width: 3.5px; }
}

.orbit-pulse {
  animation: orbitPulse 3s ease-in-out infinite;
}

@keyframes rectPulse {
  0%, 100% { stroke: rgba(0, 163, 255, 0.5); }
  50% { stroke: rgba(0, 163, 255, 0.12); }
}

.cap-bg-illustration rect[stroke-width="2.5"] { animation: rectPulse 3s ease-in-out infinite; }
.cap-bg-illustration rect[stroke-width="2"] { animation: rectPulse 3.5s ease-in-out infinite; }

.about-bg-illustration circle[stroke-width="2.5"],
.about-bg-illustration circle[stroke-width="2"] {
  animation: nodePulse 3.5s ease-in-out infinite;
}

/* Capability section pulse */
@keyframes capPulseOuter {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.14; }
}

@keyframes capPulseInner {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.2; }
}

.cap-pulse-outer { animation: capPulseOuter 4s ease-in-out infinite; transform-origin: center; }
.cap-pulse-inner { animation: capPulseInner 3.5s ease-in-out infinite; transform-origin: center; }

/* Hero SVG flow dot animations */
@keyframes flowDot1 { 0% { transform: translate(86px, 510px); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.7; } 100% { transform: translate(240px, 435px); opacity: 0; } }
@keyframes flowDot2 { 0% { transform: translate(172px, 525px); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translate(265px, 435px); opacity: 0; } }
@keyframes flowDot3 { 0% { transform: translate(260px, 515px); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translate(290px, 435px); opacity: 0; } }
@keyframes flowDot4 { 0% { transform: translate(345px, 528px); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translate(315px, 435px); opacity: 0; } }
@keyframes flowDot5 { 0% { transform: translate(429px, 512px); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.7; } 100% { transform: translate(340px, 435px); opacity: 0; } }
@keyframes flowDot6 { 0% { transform: translate(509px, 520px); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translate(360px, 435px); opacity: 0; } }

.flow-dot { will-change: transform, opacity; }
.flow-dot-1 { animation: flowDot1 3.2s ease-in-out infinite; }
.flow-dot-2 { animation: flowDot2 3.8s ease-in-out infinite; animation-delay: 0.8s; }
.flow-dot-3 { animation: flowDot3 2.8s ease-in-out infinite; animation-delay: 0.3s; }
.flow-dot-4 { animation: flowDot4 3.5s ease-in-out infinite; animation-delay: 1.2s; }
.flow-dot-5 { animation: flowDot5 3.0s ease-in-out infinite; animation-delay: 0.5s; }
.flow-dot-6 { animation: flowDot6 4.0s ease-in-out infinite; animation-delay: 1.8s; }

/* Outer pulse ring on decision node */
@keyframes pulseOuter {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.12; }
}

.pulse-outer { animation: pulseOuter 4s ease-in-out infinite; transform-origin: center; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse, .pulse + circle, .orbit-pulse,
  .cap-pulse-outer, .cap-pulse-inner,
  .cap-bg-illustration rect,
  .about-bg-illustration circle {
    animation: none;
  }
  .flow-dot {
    animation: none;
    opacity: 0;
  }
  .pulse-outer { animation: none; }
}


/* ═══════════════════════════════════════════
   23. NOISE TEXTURE OVERLAY
   Subtle grain anchored to <body>. Was position:fixed which forced
   a composite on every scroll frame (audit T33). position:absolute
   relative to body lets the browser paint it once and scroll it
   with content like any other paint layer.
   ═══════════════════════════════════════════ */

body::after {
  content: '';
  position: absolute;
  inset: 0;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
}


/* ═══════════════════════════════════════════
   24. TYPOGRAPHY FLOOR
   No text smaller than 12px.
   ═══════════════════════════════════════════ */

.srv-badge, .filter-pill, .s-label, .hero-label, .hero-endorsed,
.logo-sub, .section-label, .pillar-emotion, .engage-num, .arch-label,
.footer, .footer-links a, .insight-tag, .cap-num-badge {
  font-size: max(12px, inherit);
}


/* ═══════════════════════════════════════════
   25. RESPONSIVE
   900px: Mobile nav, layout simplification.
   768px: Grid collapses, illustration hiding.
   640px: Compact mobile layout.
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Mobile nav activation */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-page);
    z-index: 1000;
    padding: 24px;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav ul { list-style: none; padding: 0; margin: 0; }

  .mobile-nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }

  .mobile-nav ul li a:hover { color: var(--accent); }

  .mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav-cta {
    display: block;
    text-align: center;
    margin-top: auto;
  }

  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .mobile-nav-backdrop.open { display: block; }

  /* Layout collapses */
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 48px;
  }

  .hero-headline { font-size: 32px; }
  .pyramid-hero { display: none; }

  .hero-bg-illustration {
    opacity: 0.15;
    width: 90%;
    right: -10%;
  }

  .pillars-grid,
  .srv-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info-col { padding-top: 0; }

  .inline-contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .section, .inner-hero { padding: 48px 24px; }
  .container { padding: 0 24px; }
  .transformation-partner { padding: 48px 24px; }

  .article-hero,
  .article-body,
  .article-series {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cs-facts-row { flex-direction: column; gap: 2px; }
  .cs-facts-label { width: auto; }
  .arch-section-row { flex-direction: column; }
  .arch-row { flex-wrap: wrap; }
  .arch-comp { min-width: calc(50% - 6px); }

  .inner-hero-illustration {
    opacity: 0.12;
    width: 80vw;
    right: -10%;
  }

  .about-bg-illustration {
    opacity: 0.1;
    right: -5%;
    width: 60vw;
  }

  /* Footer responsive */
  .footer-inner { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }

  .section-texture { padding: 80px 24px; }
}

@media (max-width: 768px) {
  .hero-bg-illustration { display: none; }
  .tp-content { grid-template-columns: 1fr; }
  .pyramid-teaser-layout { grid-template-columns: 1fr; gap: 40px; }
  .pyramid-svg-col svg { max-width: 260px; margin: 0 auto; display: block; }
  .hero-illustration { display: none; }
  .service-grid-2x2 { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-item:nth-child(odd) { border-right: none; }
  .industry-tiles { grid-template-columns: 1fr; }
  .benefit-tiles { grid-template-columns: 1fr; }
  .proof-stats { gap: 32px; }
  .pyramid-ambient { display: none; }

  .cap-bg-illustration { display: none; }
  .inner-hero-illustration { display: none; }
  .about-bg-illustration { display: none; }
}

@media (max-width: 700px) {
  .bep-caps { flex-wrap: wrap; }
  .bep-cap { flex: 1 1 45%; }
  .bep-step { min-width: 64px; max-width: 80px; padding: 8px 4px; }
  .bep-step .bst { font-size: 10px; }
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-banner-actions { width: 100%; }

  .btn-cookie-decline,
  .btn-cookie-accept {
    flex: 1;
    text-align: center;
  }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Truncate long card body text on mobile */
  .srv-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .srv-card:active p,
  .srv-card:focus-within p {
    -webkit-line-clamp: unset;
  }

  /* Logo row on mobile */
  .logo-row {
    gap: 24px;
  }
  .logo-row img {
    height: 28px;
  }

  /* Hero heading mobile */
  .hero-headline {
    font-size: clamp(28px, 7vw, 36px);
  }

  /* ═══════════════════════════════════════════
     MOBILE CONTENT ADAPTATIONS
     Reduce density on small screens without
     changing content. Hide secondary elements,
     collapse verbose sections, tighten spacing.
     ═══════════════════════════════════════════ */

  /* 1. Smaller section headings */
  .s-title, .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  /* 2. Hide capability card icons */
  .srv-card .cap-icon {
    display: none;
  }

  /* 3. Hide gov logos in logo row */
  .logo-row img[alt="NSW Government"],
  .logo-row img[alt="Queensland Government"] {
    display: none;
  }

  /* 4. Show 2 case study cards, not 3 */
  .homepage-cases .srv-card:last-child {
    display: none;
  }

  /* 5. Hide depth paragraphs on capability sections */
  .cap-depth {
    display: none;
  }

  /* 6. Scenarios box styling for collapsible */
  .cap-scenarios summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .cap-scenarios summary::after {
    content: '+';
    font-size: 16px;
    color: var(--accent);
  }
  .cap-scenarios details[open] summary::after {
    content: '−';
  }
  .cap-scenarios summary::-webkit-details-marker {
    display: none;
  }
  .cap-scenarios details p {
    margin-top: 12px;
  }

  /* 7. Hide SVG diagrams in case studies */
  .cs-illustration {
    display: none;
  }

  /* 8. Hide pillar mapping in case studies */
  .cs-pillar {
    display: none;
  }

  /* 9. Hide footer Navigate column */
  .footer-top .footer-col:first-of-type {
    display: none;
  }

  /* 10. Mobile hide utility */
  .mobile-hide {
    display: none;
  }

  /* 11-12. Collapsible sections styling */
  .mobile-collapse-toggle {
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    list-style: none;
    margin-top: 8px;
  }
  .mobile-collapse-toggle::-webkit-details-marker {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-bg-illustration { display: none; }
  .inner-hero-illustration { display: none; }
  .about-bg-illustration { display: none; }
}

@media (max-width: 900px) {
  .proof-cards { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .cap-bg-illustration {
    opacity: 0.12;
    right: -5%;
    width: 55vw;
  }
}


/* ═══ ABOUT PAGE VIDEO HERO ═══ */

.about-video-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 100px 48px;
  background: var(--bg-deep);
}

.about-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.3);
  z-index: 0;
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(6,14,26,0.88) 0%,
    rgba(6,14,26,0.65) 40%,
    rgba(6,14,26,0.75) 100%
  );
  z-index: 1;
}

.about-video-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

@media (prefers-reduced-motion: reduce) {
  .about-video-bg { display: none; }
}
@media (max-width: 900px) {
  .about-video-hero { padding: 80px 24px; }
}
@media (max-width: 640px) {
  .about-video-hero { min-height: auto; padding: 80px 24px; }
}
/* hero-video.js sets these classes on <html> based on viewport + Save-Data. */
html.hero-video-off .about-video-bg { display: none; }


/* ═══ HOMEPAGE HERO VIDEO BACKGROUND ═══ */

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Brightness raised 0.2 -> 0.45 so the video is visible behind the overlay (was indistinguishable per Luis's feedback). */
  filter: saturate(0.35) brightness(0.45);
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Overlay opacity dropped (was 0.9/0.7/0.8) so the video can breathe through. */
  background: linear-gradient(135deg,
    rgba(6,14,26,0.7) 0%,
    rgba(6,14,26,0.45) 40%,
    rgba(6,14,26,0.6) 100%
  );
  z-index: 0;
}

.hero .hero-bg-illustration { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
}
/* hero-video.js sets html.hero-video-off when gates fail (mobile non-home, save-data, slow conn). */
html.hero-video-off .hero-video-bg { display: none; }

/* Hub inner-hero video treatment — reuses .hero-video-bg / .hero-video-overlay. */
.inner-hero.inner-hero--video {
  min-height: 280px;
  display: flex;
  align-items: center;
}
.inner-hero.inner-hero--video > .container,
.inner-hero.inner-hero--video > .s-label,
.inner-hero.inner-hero--video > h1,
.inner-hero.inner-hero--video > .s-sub {
  position: relative;
  z-index: 2;
}
.inner-hero.inner-hero--video .hero-video-bg {
  object-position: center;
}
@media (max-width: 768px) {
  .inner-hero.inner-hero--video { min-height: 200px; }
}


/* ═══ WHAT WE DO HERO PHOTO BACKGROUND ═══ */

.wwd-hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 100px 48px;
  background: var(--bg-deep);
}

.wwd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.25);
  z-index: 0;
}

.wwd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(6,14,26,0.9) 0%,
    rgba(6,14,26,0.65) 40%,
    rgba(6,14,26,0.8) 100%
  );
  z-index: 1;
}

.wwd-hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .wwd-hero { padding: 80px 24px; }
}
@media (max-width: 640px) {
  .wwd-hero { min-height: auto; padding: 80px 24px; }
}


/* ═══ CASE STUDY CARD HEADER PHOTOS ═══ */

.card-header--photo {
  position: relative;
  overflow: hidden;
}

.card-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.35);
  z-index: 0;
}

.card-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* All photo headers share one uniform overlay tone — no more sector-specific tints. */
.card-header-overlay,
.card-header-overlay--insurance,
.card-header-overlay--financial-services,
.card-header-overlay--government,
.card-header-overlay--agriculture {
  background: linear-gradient(135deg,
    rgba(10,20,40,0.78) 0%,
    rgba(15,28,52,0.62) 100%
  );
}

.card-header--photo .logo-pill,
.card-header--photo .sector-label {
  position: relative;
  z-index: 2;
}

/* Sector-tinted bottom borders dropped; uniform subtle border across all sectors. */
.card-header--photo.card-header--insurance,
.card-header--photo.card-header--government,
.card-header--photo.card-header--agriculture,
.card-header--photo.card-header--financial-services {
  border-bottom: 1px solid var(--border-subtle);
}

/* Logo pills on photo card headers: transparent bg, CSS filter renders logos white-on-transparent
   to match the home-page brand-wall treatment. */
.card-header--photo .logo-pill {
  background: transparent;
  padding: 8px 16px;
  max-width: 220px;
}
/* Use explicit `height:` (not `max-height:`) to force a fixed render size
   regardless of inline width/height attributes or the image's intrinsic dims.
   `width: auto` + `max-width: 100%` lets the aspect ratio scale and clips ultra-wide logos. */
.card-header--photo .logo-pill img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}
/* Per-logo height calibration. Pick a number such that every logo reads at roughly the same visual weight. */
.card-header--photo .logo-pill img[alt="Fidelity Life"] { height: 52px; }
.card-header--photo .logo-pill img[alt="Envest"] { height: 48px; }
.card-header--photo .logo-pill img[alt="Incitec Pivot Fertilisers"] { height: 56px; }
.card-header--photo .logo-pill img[alt="Solvar"] { height: 36px; }
.card-header--photo .logo-pill img[alt="Solution Underwriting (now CFC)"] { height: 42px; }
.card-header--photo .logo-pill img[alt="Humanitas"] { height: 48px; }
.card-header--photo .logo-pill img[alt="Integrity Life"] { height: 42px; }
