/* ============================================================================
   PMDG Technologies — Engineering Blueprint Design System
   Visual language: Hairline drafting grid, monospace annotation,
   generous whitespace, cerulean brand accent, dark/light first-class themes.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Typography scale */
  --text-display: clamp(2.6rem, 1.4rem + 5.2vw, 5.8rem);
  --text-headline: clamp(1.85rem, 1.1rem + 2.8vw, 3.25rem);
  --text-title: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --text-lede: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem);
  --text-annot: 0.6875rem;

  /* Easing */
  --ease-assemble: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --measure-width: 84rem; /* ~1344px */
  --spacing-gutter: clamp(1.25rem, 0.8rem + 2vw, 3rem);
  --spacing-section: 2.25rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Light Theme Tokens */
  --paper: #ffffff;
  --paper-raised: #fbfcfe;
  --paper-sunken: #f4f6fa;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-faint: #64748b;
  --rule: rgba(15, 23, 42, 0.08);
  --rule-strong: rgba(15, 23, 42, 0.2);
  --grid: rgba(15, 23, 42, 0.038);

  /* Brand Cerulean Palette */
  --color-brand-400: #028dd2;
  --color-brand-500: #0280bb;
  --color-brand-600: #0d78c9;
  --color-brand-700: #0a5d9d;
  --color-brand-800: #105a7e;

  --accent: #0d78c9;
  --accent-contrast: #ffffff;
  --accent-wash: rgba(13, 120, 201, 0.09);
  --accent-grad-mid: #024a87;

  /* Header surface tokens - very light theme-tinted white */
  --header-bg: rgba(248, 250, 254, 0.94);
  --header-bg-lifted: rgba(255, 255, 255, 0.98);
  --header-border: rgba(13, 120, 201, 0.12);
  --header-shadow: 0 4px 20px rgba(13, 120, 201, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);

  /* Signals */
  --signal-manual: #e65100;
  --signal-auto: #0284c7;
  --signal-green: #10b981;
  --signal-error: #ef4444;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0b0f17;
  --paper-raised: #111724;
  --paper-sunken: #070a10;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --fg-faint: #64748b;
  --rule: rgba(241, 245, 249, 0.1);
  --rule-strong: rgba(241, 245, 249, 0.22);
  --grid: rgba(241, 245, 249, 0.045);

  --accent: #38bdf8;
  --accent-contrast: #070a10;
  --accent-wash: rgba(56, 189, 248, 0.14);
  --accent-grad-mid: #bae6fd;

  /* Header surface tokens - dark theme */
  --header-bg: rgba(11, 15, 23, 0.92);
  --header-bg-lifted: rgba(11, 15, 23, 0.98);
  --header-border: rgba(56, 189, 248, 0.14);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);

  --signal-manual: #fb923c;
  --signal-auto: #38bdf8;
  --signal-green: #34d399;
  --signal-error: #f87171;

  color-scheme: dark;
}

/* Fast theme toggle transition suppression */
:root.theme-switching *,
:root.theme-switching *::before,
:root.theme-switching *::after {
  transition: none !important;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--fg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

/* Layout Utilities */
.measure {
  width: 100%;
  max-width: var(--measure-width);
  margin-inline: auto;
  padding-inline: var(--spacing-gutter);
}

@media (max-width: 480px) {
  .measure {
    padding-inline: 0.75rem !important;
  }
}

section {
  position: relative;
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

.section-divider {
  border-top: 1px solid var(--rule);
}

/* Monospace Blueprint Annotations */
.annot {
  font-family: var(--font-mono);
  font-size: var(--text-annot);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
}

.annot-accent {
  color: var(--accent) !important;
}

/* Drafting Blueprint Grid */
.blueprint-grid {
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
}

.edge-fade {
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

/* Aurora Depth Layer */
.aurora {
  position: absolute;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
    from 120deg at 62% 48%,
    transparent 0 26%,
    rgba(13, 120, 201, 0.25) 31%,
    transparent 37% 52%,
    rgba(2, 141, 210, 0.22) 58%,
    transparent 64% 78%,
    rgba(13, 120, 201, 0.16) 84%,
    transparent 90%
  );
  filter: blur(65px);
  opacity: 0.55;
  animation: aurora-turn 34s linear infinite;
  will-change: transform;
}

:root[data-theme="dark"] .aurora {
  opacity: 0.65;
  filter: blur(75px);
}

@keyframes aurora-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Radial Bloom behind headline */
.bloom {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(13, 120, 201, 0.28),
    transparent 68%
  );
  filter: blur(42px);
}

/* Display & Headline Typography */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.text-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.text-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.text-lede {
  font-size: var(--text-lede);
  line-height: 1.65;
  color: var(--fg-muted);
}

/* Text Brand Gradient with Descender rescue */
.text-brand-gradient {
  background-image: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent-grad-mid) 48%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block: 0.04em 0.32em;
  margin-block: -0.04em -0.32em;
  display: inline-block;
}

/* Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(13, 120, 201, 0.22);
}

.btn-primary:hover {
  background: var(--color-brand-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 120, 201, 0.3);
}

.btn-primary .sheen {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform 0.7s var(--ease-assemble);
}

.btn-primary:hover .sheen {
  transform: translateX(100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: var(--paper-sunken);
  border-color: var(--fg);
  transform: translateY(-1px);
}

/* Header & Nav */
header.navbar-root {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--header-bg, rgba(248, 250, 254, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border, rgba(13, 120, 201, 0.12));
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.navbar-root.lifted {
  background: var(--header-bg-lifted, rgba(255, 255, 255, 0.98));
  border-bottom-color: var(--rule);
  box-shadow: var(--header-shadow, 0 4px 20px rgba(0, 0, 0, 0.03));
}

:root[data-theme="dark"] header.navbar-root {
  background: var(--header-bg, rgba(11, 15, 23, 0.92));
  border-bottom-color: var(--header-border, rgba(56, 189, 248, 0.14));
}

:root[data-theme="dark"] header.navbar-root.lifted {
  background: var(--header-bg-lifted, rgba(11, 15, 23, 0.98));
  border-bottom-color: var(--rule);
  box-shadow: var(--header-shadow, 0 4px 20px rgba(0, 0, 0, 0.4));
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header.navbar-root .header-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-inline: var(--spacing-gutter);
}

@media (max-width: 480px) {
  header.navbar-root .header-inner {
    padding-inline: 0.75rem !important;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--fg-faint);
  font-weight: 400;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
  background-color: var(--paper-sunken);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: none !important;
}

/* Free Consultation Header CTA Button */
.header-consult-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--color-brand-500, #0280bb), var(--color-brand-700, #0a5d9d));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(13, 120, 201, 0.28);
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.header-consult-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(13, 120, 201, 0.38);
  color: #ffffff !important;
}

.header-consult-btn:active {
  transform: translateY(0);
}

.header-consult-btn .btn-text-short {
  display: none;
}
.header-consult-btn .btn-text-full {
  display: inline;
}

/* Mobile Menu Button (Index page) */
.mobile-menu-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Sidebar Solutions Toggle Button */
.side-menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule, #e2e8f0);
  background: var(--paper, #ffffff);
  color: var(--fg, #0f172a);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0;
}

.side-menu-toggle-btn:hover {
  background: #f0f9ff;
  border-color: #0280bb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(13, 120, 201, 0.18);
}

.side-menu-toggle-btn:active {
  transform: translateY(0);
}

.side-menu-icon {
  width: 18px;
  height: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.side-menu-icon span {
  display: block;
  height: 2px;
  background: var(--fg, #0f172a);
  border-radius: 2px;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.side-menu-icon .bar-1 { width: 12px; }
.side-menu-icon .bar-2 { width: 18px; }
.side-menu-icon .bar-3 { width: 15px; }

.side-menu-toggle-btn:hover .side-menu-icon span {
  background: #0280bb;
  width: 18px;
}

/* ============================================================================
   Solutions Sidebar Drawer (matches entleaf reference design)
   ========================================================================= */

.pmdg-solutions-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 48px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pmdg-solutions-sidebar.is-open {
  transform: translateX(0);
}

/* Solutions Drawer Visibility (Desktop hides core 4, Mobile shows all 13) */
@media (min-width: 992px) {
  .pmdg-sidebar-link.pmdg-core-item {
    display: none !important;
  }
  .pmdg-count-desktop {
    display: inline-block !important;
  }
  .pmdg-count-mobile {
    display: none !important;
  }
}

/* ----------------------------------------------------------------------------
   Responsive Breakpoints: Mobile Header & Menu Alignment
   ------------------------------------------------------------------------- */

@media (max-width: 991px) {
  /* On mobile/tablet, show all 13 solutions in sidebar drawer */
  .pmdg-sidebar-link.pmdg-core-item {
    display: flex !important;
  }
  .pmdg-count-desktop {
    display: none !important;
  }
  .pmdg-count-mobile {
    display: inline-block !important;
  }
}

@media (max-width: 768px) {
  header.navbar-root .header-inner {
    height: 3.75rem;
    gap: 0.65rem;
  }
  .header-consult-btn {
    padding: 0.38rem 0.85rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 576px) {
  header.navbar-root .header-inner {
    height: 3.5rem;
    padding-inline: 0.75rem !important;
    gap: 0.45rem;
  }
  .brand-link {
    gap: 0.35rem;
  }
  .brand-text {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .brand-text span {
    display: inline !important;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-consult-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.74rem;
  }
  .header-consult-btn .btn-text-full {
    display: none;
  }
  .header-consult-btn .btn-text-short {
    display: inline;
  }
  .side-menu-toggle-btn {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 480px) {
  header.navbar-root .header-inner {
    height: 3.4rem;
    padding-inline: 0.55rem !important;
    gap: 0.35rem;
  }
  .brand-link {
    gap: 0.3rem;
  }
  .brand-mark-light.hdr-s-4 {
    height: 19px !important;
  }
  .brand-text {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .brand-text span {
    display: inline !important;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .header-consult-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
  }
  .side-menu-toggle-btn {
    width: 2.05rem;
    height: 2.05rem;
  }
  .side-menu-icon {
    width: 15px;
    height: 11px;
  }
  .side-menu-icon .bar-1 { width: 9px; }
  .side-menu-icon .bar-2 { width: 15px; }
  .side-menu-icon .bar-3 { width: 12px; }

  /* Mobile Full-Width Sidebar Drawer */
  .pmdg-solutions-sidebar {
    width: 100vw;
    max-width: 100vw;
  }
  .pmdg-sidebar-header {
    padding: 1.1rem 1.15rem;
  }
  .pmdg-sidebar-body {
    padding: 1.1rem 1.15rem 2rem;
    gap: 1.15rem;
  }
  .pmdg-sidebar-intro p {
    font-size: 0.8125rem;
  }
  .pmdg-sidebar-link {
    padding: 0.5rem 0.65rem;
    gap: 0.65rem;
  }
  .pmdg-link-icon-wrap {
    width: 28px;
    height: 28px;
  }
  .pmdg-link-icon {
    width: 14px;
    height: 14px;
  }
  .pmdg-link-label {
    font-size: 0.82rem;
  }
  .pmdg-link-desc {
    font-size: 0.68rem;
  }
  .pmdg-sidebar-contact {
    padding: 0.75rem 0.85rem;
    gap: 0.55rem;
  }
  .pmdg-contact-label {
    font-size: 0.62rem;
  }
  .pmdg-contact-val {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  header.navbar-root .header-inner {
    height: 3.35rem;
    padding-inline: 0.35rem !important;
    gap: 0.2rem;
  }
  .brand-link {
    gap: 0.25rem;
  }
  .brand-mark-light.hdr-s-4 {
    height: 17px !important;
  }
  .brand-text {
    font-size: 0.7rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .brand-text span {
    display: inline !important;
  }
  .header-actions {
    gap: 0.2rem;
  }
  .header-consult-btn {
    padding: 0.26rem 0.42rem;
    font-size: 0.64rem;
    letter-spacing: -0.01em;
  }
  .side-menu-toggle-btn {
    width: 1.85rem;
    height: 1.85rem;
  }
  .side-menu-icon {
    width: 14px;
    height: 10px;
  }
  .side-menu-icon .bar-1 { width: 8px; }
  .side-menu-icon .bar-2 { width: 14px; }
  .side-menu-icon .bar-3 { width: 11px; }
}

/* Dark Header Banner at top of Sidebar */
.pmdg-sidebar-header {
  background: #01022e;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pmdg-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pmdg-sidebar-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.pmdg-sidebar-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pmdg-sidebar-title span {
  color: #94a3b8;
  font-weight: 400;
}

/* Circular Close Button */
.pmdg-sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.pmdg-sidebar-close:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.pmdg-close-icon {
  width: 15px;
  height: 15px;
}

/* Scrollable Sidebar Body */
.pmdg-sidebar-body {
  padding: 1.35rem 1.4rem 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overscroll-behavior: contain;
}

.pmdg-sidebar-intro {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.85rem;
}

.pmdg-sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.pmdg-count-badge {
  background: #e0f2fe;
  color: #0284c7;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Solutions Links in Sidebar */
.pmdg-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pmdg-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  color: #1e293b;
}

.pmdg-sidebar-link:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.pmdg-sidebar-link.active {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.pmdg-link-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0280bb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.pmdg-sidebar-link:hover .pmdg-link-icon-wrap,
.pmdg-sidebar-link.active .pmdg-link-icon-wrap {
  background: #0280bb;
  color: #ffffff;
}

.pmdg-link-icon {
  width: 15px;
  height: 15px;
}

.pmdg-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  flex: 1;
  min-width: 0;
}

.pmdg-link-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmdg-sidebar-link.active .pmdg-link-label {
  color: #0280bb;
}

.pmdg-link-desc {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmdg-link-arrow {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.pmdg-sidebar-link:hover .pmdg-link-arrow {
  color: #0280bb;
  transform: translateX(2px);
}

/* Sidebar Contact Info widget */
.pmdg-sidebar-contact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pmdg-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.pmdg-contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

.pmdg-contact-val {
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
}

.pmdg-contact-val a {
  color: #0280bb;
  text-decoration: none;
}

.pmdg-contact-val a:hover {
  text-decoration: underline;
}

/* Sidebar CTA Button */
.pmdg-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--color-brand-500, #0280bb), var(--color-brand-700, #0a5d9d));
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(13, 120, 201, 0.28);
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.pmdg-sidebar-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(13, 120, 201, 0.38);
}

/* Backdrop Overlay */
.pmdg-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pmdg-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.pmdg-sidebar-open {
  overflow: hidden !important;
}

#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.12s linear;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset-inline: 0;
  top: 4rem;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2rem var(--spacing-gutter);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-assemble), opacity 0.3s ease;
  z-index: 49;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ticked Drawing Primitives */
.ticked {
  position: relative;
  border: 1px solid var(--rule);
}

.ticked::before, .ticked::after,
.tick-bl, .tick-br {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  z-index: 2;
  pointer-events: none;
}

.ticked::before { top: -1px; left: -1px; }
.ticked::after { top: -1px; right: -1px; }
.tick-bl { bottom: -1px; left: -1px; }
.tick-br { bottom: -1px; right: -1px; }

/* SectionHead Primitive */
.section-head {
  margin-bottom: 2.75rem;
}

.section-head-bar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.85rem;
}

.section-head-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 992px) {
  .section-head-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

/* SectionRail Floating Navigator */
.section-rail {
  position: fixed;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
}

@media (min-width: 1180px) {
  .section-rail {
    display: block;
  }
}

.section-rail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
  cursor: pointer;
}

.rail-tick {
  height: 1.5px;
  width: 14px;
  background-color: var(--rule-strong);
  transition: width 0.3s var(--ease-assemble), background-color 0.3s ease;
}

.rail-link:hover .rail-tick {
  width: 24px;
  background-color: var(--fg-muted);
}

.rail-link.active .rail-tick {
  width: 30px;
  background-color: var(--accent);
}

.rail-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.75rem);
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.rail-link:hover .rail-tooltip,
.rail-link:focus-visible .rail-tooltip {
  opacity: 1;
}

.rail-link.active .rail-tooltip {
  color: var(--accent);
}

.rail-top-btn {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rail-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.rail-top-circle {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}

.rail-top-btn:hover .rail-top-circle {
  border-color: var(--accent);
  color: var(--accent);
}

/* Floating Back To Top for smaller screens */
.fab-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  color: var(--fg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 40;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}

.fab-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1180px) {
  .fab-top-btn {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 4.85rem;
  padding-bottom: 1.25rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.ping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ping-dot {
  position: relative;
  display: flex;
  width: 6px;
  height: 6px;
}

.ping-dot span:first-child {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--signal-green);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot span:last-child {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--signal-green);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hero-title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-copy {
  margin-top: 1.25rem;
  font-size: var(--text-lede);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 56ch;
  overflow-wrap: break-word;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
  padding: 0.65rem 1.35rem;
}

@media (max-width: 640px) {
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.85rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.25 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}

.hero-thesis {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 48rem;
}

.hero-thesis p {
  font-size: var(--text-lede);
  line-height: 1.5;
}

/* OutcomePanel in Hero */
.outcome-panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.75rem;
}

:root[data-theme="dark"] .outcome-panel {
  background: rgba(17, 23, 36, 0.75);
}

.outcome-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.outcome-list {
  margin-top: 0.5rem;
}

.outcome-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.outcome-item:last-child {
  border-bottom: none;
}

.outcome-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.outcome-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.outcome-client {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.outcome-footer-link {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.outcome-footer-link:hover {
  color: var(--accent);
}

/* Metrics Section ("By the numbers") */
.metrics-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric-tile {
  padding: 1.25rem 0;
  cursor: default;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.5rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.metric-basis {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--fg-faint);
}

/* Clients / Logo Wall */
.clients-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.logo-tile {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.25rem;
  transition: background-color 0.2s ease;
}

:root[data-theme="dark"] .logo-tile {
  background: #f0f4f8; /* Crisp light paper tile so authentic logo colors pop in both themes */
}

.logo-tile img {
  height: 2.25rem;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-assemble);
}

.logo-tile:hover img {
  transform: scale(1.06);
}

/* Service Explorer (Section 01) */
.service-explorer {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .service-explorer {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.service-tab-list {
  display: flex;
  flex-direction: column;
}

.service-tab-btn {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1rem;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.service-tab-btn:hover {
  background-color: var(--paper-sunken);
  border-bottom-color: var(--rule-strong);
}

.service-tab-btn.active {
  background-color: var(--accent-wash);
  border-bottom-color: var(--accent);
}

.service-tab-indicator {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  width: 3px;
  border-radius: var(--radius-full);
  background: transparent;
  transition: background-color 0.25s ease;
}

.service-tab-btn.active .service-tab-indicator {
  background-color: var(--accent);
}

.service-tab-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.service-tab-btn.active .service-tab-icon {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.service-tab-title {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.service-tab-btn.active .service-tab-title {
  color: var(--accent);
}

.service-tab-promise {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.service-panels-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.svc3d-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--svc3d-alpha, 0.32);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 42%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 42%, black 30%, transparent 100%);
  overflow: hidden;
}

.svc3d-watermark canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.service-detail-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
}

.service-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}

.service-panel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.service-panel-deliverables {
  margin-top: 1.75rem;
}

.deliverables-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.deliverable-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.stack-tags {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.tags-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--paper-sunken);
  border: 1px solid var(--rule);
  color: var(--fg-muted);
}

/* Storyboard / The Loop (Section 02) */
.storyboard-container {
  margin-top: 2.5rem;
}

.storyboard-cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.storyboard-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.storyboard-card:hover, .storyboard-card.active {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-wash);
}

.storyboard-hud {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--fg-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.hud-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.hud-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hud-progress-track {
  display: flex;
  flex: 1;
  gap: 0.35rem;
}

.hud-step-pill {
  height: 4px;
  flex: 1;
  border-radius: var(--radius-full);
  background: var(--rule-strong);
  transition: background-color 0.3s;
  cursor: pointer;
}

.hud-step-pill.active {
  background: var(--accent);
}

.hud-step-pill.passed {
  background: rgba(13, 120, 201, 0.45);
}

/* Transformation Canvas & Savings Estimator (Section 03) */
.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.sector-pill-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.sector-pill-btn:hover {
  border-color: var(--rule-strong);
  color: var(--fg);
}

.sector-pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.pain-quote {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 600;
  max-width: 46ch;
}

.canvas-comparison-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 992px) {
  .canvas-comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comparison-col {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--paper);
}

.comparison-col.after-col {
  background: var(--paper-raised);
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.comparison-clock {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.clock-manual {
  color: var(--signal-manual);
}

.clock-auto {
  color: var(--accent);
}

.step-rows {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.actor-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.actor-human {
  border: 1px solid rgba(230, 81, 0, 0.3);
  background: rgba(230, 81, 0, 0.08);
  color: var(--signal-manual);
}

.actor-system {
  border: 1px solid rgba(13, 120, 201, 0.3);
  background: var(--accent-wash);
  color: var(--accent);
}

.step-label {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fg);
}

.step-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.canvas-cta-bar {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .canvas-cta-bar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Savings Estimator Card */
.savings-estimator {
  margin-top: 2rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.estimator-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .estimator-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: transparent;
  cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--rule-strong);
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -0.4375rem;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.preset-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 0.75rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 500;
}

.estimator-results {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.effort-bar-wrap {
  margin-top: 1.5rem;
}

.effort-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--rule);
}

.effort-removed {
  background: var(--signal-manual);
  transition: width 0.4s var(--ease-assemble);
}

.effort-remaining {
  background: var(--accent);
  transition: width 0.4s var(--ease-assemble);
}

/* Products (Section 04) */
.products-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s, transform 0.25s;
}

.product-card:hover {
  background: var(--paper-raised);
}

.product-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  display: grid;
  place-items: center;
  color: var(--accent);
}

/* Industry Grid (Section 05) */
.industry-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  background: var(--paper);
  overflow: hidden;
  transition: background-color 0.25s;
}

.industry-card:hover {
  background: var(--paper-raised);
}

.industry-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-assemble);
}

.industry-card:hover .industry-top-line {
  transform: scaleX(1);
}

.industry-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 240px at var(--mx, 50%) var(--my, 50%),
    var(--accent-wash),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.industry-card:hover .industry-glow {
  opacity: 1;
}

/* Work / Case Studies (Section 06) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--rule-strong);
  color: var(--fg);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 500;
}

.filter-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  opacity: 0.75;
}

.work-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  transition: background-color 0.25s, border-color 0.25s;
}

.work-card.open {
  background: var(--paper-raised);
}

.work-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: transparent;
  border: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.work-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  transition: transform 0.3s var(--ease-assemble), border-color 0.2s, color 0.2s;
}

.work-card.open .work-chevron {
  transform: rotate(180deg);
  border-color: var(--accent);
  color: var(--accent);
}

.work-collapsible {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-assemble);
}

.work-card.open .work-collapsible {
  grid-template-rows: 1fr;
}

.collapsible-inner {
  overflow: hidden;
}

.collapsible-content {
  padding: 0 clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.25rem, 1rem + 1vw, 2rem);
}

.work-metrics-row {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.work-narrative-grid {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .work-narrative-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Commitments (Section 07) */
.commitments-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .commitments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .commitments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.commitment-card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  background: var(--paper);
  transition: background-color 0.25s;
}

.commitment-card:hover {
  background: var(--paper-raised);
}

.commitment-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: all 0.25s ease;
}

.commitment-card:hover .commitment-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* Process Timeline (Section 08) */
.proc-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}

.proc-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .proc-row {
    grid-template-columns: 3fr 6fr 3fr;
    align-items: start;
    gap: 2rem;
  }
}

.proc-track {
  display: flex;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--rule);
  overflow: hidden;
  margin-top: 0.65rem;
}

.proc-bar-min {
  background: var(--accent);
}

.proc-bar-max {
  background: rgba(13, 120, 201, 0.35);
}

.proc-bar-open {
  width: 60%;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* Contact (Section 09) */
.contact-grid {
  margin-top: 2rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--fg);
  transition: border-color 0.2s;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--rule-strong);
}

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

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-sunken);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 4fr 3fr 2fr 3fr;
  }
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: inline-block;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Animations & Assembly Reveal */
:root.js [data-assemble] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.6s var(--ease-assemble), transform 0.6s var(--ease-assemble);
}

:root.js [data-assemble][data-assembled="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :root.js [data-assemble] {
    opacity: 1 !important;
    transform: none !important;
  }
  .aurora {
    animation: none !important;
  }
}


/* Generated classes for manufacturing-finance-automation.php */
.mfa-style-1 { font-family:Arial,sans-serif; background:#f3f7fb; padding:20px; }
.mfa-style-2 { max-width:700px; margin:0 auto; background:#fff; border:1px solid #dfeaf3; border-radius:12px; overflow:hidden; }
.mfa-style-3 { background:#0d78c9; color:#fff; padding:18px 20px; font-size:18px; font-weight:700; }
.mfa-style-4 { padding:24px; color:#1f2937; line-height:1.7; }
.mfa-style-5 { max-width:820px; margin:0 auto; background:#fff; border:1px solid #dfeaf3; border-radius:12px; overflow:hidden; }
.mfa-style-6 { background:linear-gradient(135deg,#0d78c9,#024a87); color:#fff; padding:18px 20px; font-size:18px; font-weight:700; }
.mfa-style-7 { padding:24px; color:#1f2937; line-height:1.8; }
.mfa-style-8 { top: 10%; left: 10%; width: 50%; height: 50%; }
.mfa-style-9 { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mfa-style-10 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;background-color:aliceblue; }
.mfa-style-11 { font-size: calc(var(--text-display) - 19px); }
@media (max-width: 768px) { .mfa-style-11 { line-height: 1.2; } }
.mfa-style-12 { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mfa-style-13 { background: var(--accent); color: #fff; border-color: var(--accent); padding: 0.25rem 0.4rem; border-radius: 4px; display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; font-size: 0.75rem; letter-spacing: -0.01em; }
.mfa-style-14 { height: 12px; filter: brightness(0) invert(1); vertical-align: middle; }
.mfa-style-15 { height: 14px; filter: brightness(0) invert(1); vertical-align: middle; }
.mfa-style-16 { width: 14px; height: 14px; vertical-align: middle; }
.mfa-trust-row {
  display: contents;
}
@media (max-width: 768px) {
  :root {
    --spacing-section: 1.5rem;
    --text-display: clamp(1.65rem, 1.25rem + 1.8vw, 2.2rem) !important;
    --text-headline: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem) !important;
    --text-title: clamp(0.98rem, 0.9rem + 0.5vw, 1.15rem) !important;
    --text-lede: clamp(0.82rem, 0.78rem + 0.3vw, 0.88rem) !important;
  }

  body {
    font-size: 0.85rem !important;
  }

  /* Scaled typography for mobile headings & body text */
  .text-display,
  .hero-title,
  h1.hero-title,
  h1 {
    font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.2rem) !important;
    line-height: 1.15 !important;
  }
  .text-headline,
  .section-title,
  .section-head h2,
  h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem) !important;
    line-height: 1.25 !important;
  }
  .text-title,
  .mfa-style-32,
  h3 {
    font-size: clamp(0.98rem, 0.9rem + 0.5vw, 1.15rem) !important;
    line-height: 1.25 !important;
  }
  .text-lede,
  p.text-lede,
  .hero-thesis p,
  .section-head p,
  #download-guide p,
  #download-guide .text-lede,
  .lead-card p,
  .work-thesis,
  .storyboard-body,
  .sec-work-desc,
  p {
    font-size: clamp(0.82rem, 0.78rem + 0.3vw, 0.88rem) !important;
    line-height: 1.45 !important;
  }
  .hero-copy,
  .hero-copy.mfa-style-45,
  p.hero-copy,
  .mfa-style-45 {
    font-size: clamp(0.92rem, 0.88rem + 0.35vw, 0.98rem) !important;
    line-height: 1.5 !important;
    margin-top: 0.65rem !important;
    margin-bottom: 0 !important;
  }
  .hero-actions {
    margin-top: 0.85rem !important;
  }
  .mfa-s-1,
  .cq-s-1,
  .ir-s-1,
  .wms-s-3,
  .scl-s-3,
  .so-s-3,
  .qm-s-7,
  .mrp-s-3,
  .pa-s-3,
  .pm-s-3,
  .mi-s-3,
  .ima-s-3,
  .doc-s-3,
  .cs-s-3 {
    font-size: clamp(1.6rem, 1.25rem + 1.8vw, 2.25rem) !important;
    line-height: 1.16 !important;
  }
  .wms-s-43,
  .scl-s-52,
  .scl-s-107,
  .scl-s-116,
  .so-s-37,
  .so-s-57,
  .qm-s-59,
  .qm-s-130,
  .qm-s-139,
  .mrp-s-44,
  .mrp-s-99,
  .mrp-s-108,
  .pa-s-33,
  .pa-s-53,
  .pm-s-39,
  .pm-s-59,
  .mi-s-34,
  .mi-s-54,
  .ima-s-38,
  .ima-s-58,
  .doc-s-37,
  .doc-s-57,
  .cs-s-37,
  .cs-s-57 {
    font-size: clamp(1.25rem, 1.08rem + 0.9vw, 1.55rem) !important;
    line-height: 1.25 !important;
  }

  /* Scaled stats, metrics & numbers */
  .mfa-style-30 {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
  }
  .mfa-style-31 {
    margin-top: 0.35rem !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }
  .work-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem 0.75rem !important;
    padding-top: 1rem !important;
  }
  .metric-value {
    font-size: clamp(1.55rem, 1.3rem + 1vw, 1.95rem) !important;
  }
  .outcome-val,
  .sec-canv-14 {
    font-size: 1.55rem !important;
  }
  .sec-canv-19,
  .sec-work-7 {
    font-size: 1.45rem !important;
  }
  .qm-s-118 {
    font-size: 1.55rem !important;
  }
  .scl-step-number {
    font-size: 1.45rem !important;
  }
  .ir-s-53,
  .cq-s-100 {
    font-size: 1.55rem !important;
  }
  .ir-s-21 {
    font-size: 1.25rem !important;
  }
  .mfa-style-18 {
    font-size: 1.25rem !important;
  }
  .mfa-style-68 {
    font-size: 1.2rem !important;
  }

  /* Reduced padding on mobile */
  .outcome-panel {
    padding: 1.15rem 1rem !important;
  }
  .outcome-panel-head {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .outcome-item {
    padding: 0.75rem 0 !important;
  }
  .measure {
    padding-inline: 0.75rem !important;
  }
  .commitment-card,
  .interactive-bloom-container .commitment-card {
    padding: 1rem 0.85rem !important;
  }
  .spec-sheet,
  .terminal-window,
  .proof-item,
  .arch-panel,
  .bench-card,
  .pipeline-step,
  .metric-card,
  .mfa-style-63 {
    padding: 1.15rem 1rem !important;
  }
  .collapsible-trigger {
    padding: 0.85rem 1rem !important;
  }
  .collapsible-content {
    padding: 0 1rem 1rem !important;
  }
  #contact-form,
  .mfa-style-59 {
    padding: 0.82rem 0.75rem !important;
  }
  #contact-form .mfa-style-68 {
    margin-bottom: 0.85rem !important;
  }
  #contact-form .mfa-style-60 {
    margin-bottom: 0.62rem !important;
  }
  #contact-form .form-input {
    padding: 0.52rem 0.72rem !important;
  }
  .mfa-style-7 {
    padding: 16px 14px !important;
  }
  .sac-panel {
    padding: 1.25rem 1rem !important;
  }
  .sac-steps-bar {
    padding: 0.85rem 1rem !important;
  }
  .sac-wrap {
    margin: 1.5rem auto 0 !important;
  }
  .mfa-style-33 {
    gap: 0.75rem !important;
  }
  .mfa-style-35 {
    margin-bottom: 0.25rem !important;
  }
  .form-input,
  .sac-input,
  .sac-date-input,
  .sac-select {
    padding: 0.6rem 0.8rem !important;
  }

  section,
  .section-divider {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
  .hero-section {
    padding-top: 4.75rem !important;
    padding-bottom: 1.25rem !important;
  }
  .hero-section + .section-divider {
    padding-top: 1.25rem !important;
  }
  .section-head {
    margin-bottom: 1rem !important;
  }
  .work-narrative-grid {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    gap: 1rem !important;
  }
  .mfa-style-58 > div {
    width: 33.3333% !important;
    padding: 1rem 0.5rem !important;
  }
  .mfa-style-58 img,
  .mfa-style-58 span {
    max-height: 32px !important;
  }
  #faq-section {
    display: none !important;
  }
  .mfa-style-12 {
    margin-top: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .mfa-trust-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }
  .mfa-style-13 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.22rem !important;
    padding: 0.22rem 0.38rem !important;
    font-size: clamp(0.58rem, 0.52rem + 0.35vw, 0.68rem) !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    letter-spacing: -0.015em !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
  }
  .mfa-style-14 {
    height: 10.5px !important;
    width: auto !important;
    vertical-align: middle !important;
  }
  .mfa-style-15 {
    height: 10.5px !important;
    width: auto !important;
    vertical-align: middle !important;
  }
  .mfa-style-16 {
    width: 11px !important;
    height: 11px !important;
    vertical-align: middle !important;
  }

  /* Expandable paragraph on mobile (2 lines + centered Read More + double chevron) */
  .expandable-paragraph-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .expandable-paragraph-wrap .mfa-style-67 {
    width: 100% !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.25rem !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    cursor: pointer;
    transition: max-height 0.3s ease;
  }
  .expandable-paragraph-wrap.is-expanded .mfa-style-67 {
    display: block !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
    margin-bottom: 0.45rem !important;
  }
  .expand-text-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    margin: 0.4rem auto 0.85rem auto !important;
    padding: 0.25rem 0.75rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--accent, #0d78c9) !important;
    cursor: pointer !important;
    text-align: center !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    width: auto !important;
    transition: opacity 0.2s ease;
  }
  .expand-text-toggle:hover,
  .expand-text-toggle:active {
    opacity: 0.85;
  }
  .expand-toggle-label {
    display: block !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: var(--accent, #0d78c9) !important;
    text-transform: capitalize !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
  }
  .expand-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--accent, #0d78c9) !important;
    transform-origin: center !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: arrow-swing 1.8s ease-in-out infinite !important;
  }
  .expandable-paragraph-wrap.is-expanded .expand-toggle-icon {
    transform: rotate(180deg) !important;
    animation: none !important;
  }
}
@media (max-width: 380px) {
  :root {
    --spacing-section: 1.25rem;
    --text-display: clamp(1.4rem, 1.2rem + 1vw, 1.75rem) !important;
    --text-headline: clamp(1.15rem, 1rem + 0.8vw, 1.35rem) !important;
    --text-title: clamp(0.92rem, 0.85rem + 0.4vw, 1.05rem) !important;
    --text-lede: 0.78rem !important;
  }

  body {
    font-size: 0.8rem !important;
  }

  /* Compact mobile typography */
  .text-display,
  .hero-title,
  h1.hero-title,
  h1 {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem) !important;
    line-height: 1.16 !important;
  }
  .text-headline,
  .section-title,
  .section-head h2,
  h2 {
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.35rem) !important;
    line-height: 1.22 !important;
  }
  .text-title,
  .mfa-style-32,
  h3 {
    font-size: clamp(0.92rem, 0.85rem + 0.4vw, 1.05rem) !important;
    line-height: 1.22 !important;
  }
  .text-lede,
  p.text-lede,
  .hero-thesis p,
  .section-head p,
  #download-guide p,
  #download-guide .text-lede,
  .lead-card p,
  .work-thesis,
  .storyboard-body,
  .sec-work-desc,
  p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }
  .hero-copy,
  .hero-copy.mfa-style-45,
  p.hero-copy,
  .mfa-style-45 {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }
  .hero-actions {
    margin-top: 0.75rem !important;
  }
  .mfa-s-1,
  .cq-s-1,
  .ir-s-1,
  .wms-s-3,
  .scl-s-3,
  .so-s-3,
  .qm-s-7,
  .mrp-s-3,
  .pa-s-3,
  .pm-s-3,
  .mi-s-3,
  .ima-s-3,
  .doc-s-3,
  .cs-s-3 {
    font-size: clamp(1.35rem, 1.15rem + 1vw, 1.65rem) !important;
    line-height: 1.18 !important;
  }
  .wms-s-43,
  .scl-s-52,
  .scl-s-107,
  .scl-s-116,
  .so-s-37,
  .so-s-57,
  .qm-s-59,
  .qm-s-130,
  .qm-s-139,
  .mrp-s-44,
  .mrp-s-99,
  .mrp-s-108,
  .pa-s-33,
  .pa-s-53,
  .pm-s-39,
  .pm-s-59,
  .mi-s-34,
  .mi-s-54,
  .ima-s-38,
  .ima-s-58,
  .doc-s-37,
  .doc-s-57,
  .cs-s-37,
  .cs-s-57 {
    font-size: clamp(1.15rem, 1.02rem + 0.8vw, 1.35rem) !important;
    line-height: 1.25 !important;
  }

  /* Compact mobile stats & metrics */
  .mfa-style-30 {
    font-size: 1.45rem !important;
    line-height: 1.1 !important;
  }
  .mfa-style-31 {
    margin-top: 0.25rem !important;
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
  }
  .work-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem 0.5rem !important;
    padding-top: 0.75rem !important;
  }
  .metric-value {
    font-size: clamp(1.35rem, 1.2rem + 1vw, 1.6rem) !important;
  }
  .outcome-val,
  .sec-canv-14 {
    font-size: 1.35rem !important;
  }
  .sec-canv-19,
  .sec-work-7 {
    font-size: 1.25rem !important;
  }
  .qm-s-118 {
    font-size: 1.35rem !important;
  }
  .scl-step-number {
    font-size: 1.25rem !important;
  }
  .ir-s-53,
  .cq-s-100 {
    font-size: 1.35rem !important;
  }
  .ir-s-21 {
    font-size: 1.15rem !important;
  }
  .mfa-style-18 {
    font-size: 1.1rem !important;
  }
  .mfa-style-68 {
    font-size: 1.05rem !important;
  }

  /* Compact mobile padding (e.g. 320px screens) */
  .outcome-panel {
    padding: 0.85rem 0.75rem !important;
  }
  .outcome-panel-head {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .outcome-item {
    padding: 0.55rem 0 !important;
  }
  .measure {
    padding-inline: 0.6rem !important;
  }
  .commitment-card,
  .interactive-bloom-container .commitment-card {
    padding: 0.75rem 0.75rem !important;
  }
  .spec-sheet,
  .terminal-window,
  .proof-item,
  .arch-panel,
  .bench-card,
  .pipeline-step,
  .metric-card,
  .mfa-style-63 {
    padding: 0.85rem 0.75rem !important;
  }
  .collapsible-trigger {
    padding: 0.7rem 0.75rem !important;
  }
  .collapsible-content {
    padding: 0 0.75rem 0.75rem !important;
  }
  #contact-form,
  .mfa-style-59 {
    padding: 0.72rem 0.62rem !important;
  }
  #contact-form .mfa-style-68 {
    margin-bottom: 0.65rem !important;
  }
  #contact-form .mfa-style-60 {
    margin-bottom: 0.52rem !important;
  }
  #contact-form .form-input {
    padding: 0.46rem 0.65rem !important;
  }
  .mfa-style-7 {
    padding: 12px 10px !important;
  }
  .sac-panel {
    padding: 0.95rem 0.75rem !important;
  }
  .sac-steps-bar {
    padding: 0.75rem 0.75rem !important;
  }
  .sac-wrap {
    margin: 1.15rem auto 0 !important;
  }
  .mfa-style-33 {
    gap: 0.5rem !important;
  }
  .mfa-style-35 {
    margin-bottom: 0.2rem !important;
  }
  .form-input,
  .sac-input,
  .sac-date-input,
  .sac-select {
    padding: 0.55rem 0.75rem !important;
  }

  section,
  .section-divider {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .hero-section {
    padding-top: 4.25rem !important;
    padding-bottom: 0.85rem !important;
  }
  .hero-section + .section-divider {
    padding-top: 0.85rem !important;
  }
  .section-head {
    margin-bottom: 0.75rem !important;
  }
  .work-narrative-grid {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    gap: 0.85rem !important;
  }
  .mfa-style-58 > div {
    width: 33.3333% !important;
    padding: 0.75rem 0.35rem !important;
  }
  .mfa-style-58 img,
  .mfa-style-58 span {
    max-height: 28px !important;
  }
  .mfa-style-12 {
    gap: 0.3rem !important;
  }
  .mfa-trust-row {
    gap: 0.22rem !important;
  }
  .mfa-style-13 {
    padding: 0.18rem 0.28rem !important;
    font-size: 0.56rem !important;
    gap: 0.18rem !important;
  }
  .mfa-style-14,
  .mfa-style-15 {
    height: 9.5px !important;
  }
  .mfa-style-16 {
    width: 10px !important;
    height: 10px !important;
  }

  .expandable-paragraph-wrap .mfa-style-67 {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.25rem !important;
  }
  .expand-text-toggle {
    width: 30px;
    height: 30px;
    margin: 0.1rem 0 0.75rem 0;
  }
}
.mfa-style-17 { }
.mfa-style-18 { font-size: 1.6rem; letter-spacing: -0.02em; }
.mfa-style-19 { color: var(--accent); font-weight: 500; margin-top: 0.5rem; font-size: 0.825rem; }
.mfa-style-20 { width: 16px; height: 16px; }
.mfa-style-21 { margin-bottom: 1rem; display: block; }
.mfa-style-22 { margin-top: 1rem; }
.mfa-style-23 { max-height: 40px; opacity: 0.8; filter: grayscale(100%); }
.mfa-style-24 { margin-bottom: 1rem; }
.mfa-style-25 { list-style: none; display: grid; gap: 0.75rem; }
.mfa-style-26 { font-size: calc(0.9rem + 2px); display: flex; gap: 0.5rem; }
.mfa-style-27 { color: var(--accent); }
.mfa-style-28 { background: var(--paper-raised); }
.mfa-style-29 { margin: 1rem 0 2rem; }
.mfa-style-30 { font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.mfa-style-31 { margin-top: 0.75rem; line-height: 1.5; color: var(--fg-muted); }
.mfa-style-32 { margin: 1rem 0; }
.mfa-style-33 { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.mfa-style-34 { display:none; }
.mfa-style-35 { flex: 1; min-width: 200px; margin-bottom: 0; }
.mfa-style-36 { margin-bottom: 0.5rem; }
.mfa-style-37 { white-space: nowrap; }
.mfa-style-38 { display: none; margin-top: 1rem; font-size: 0.875rem; }
.mfa-style-39 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 900px) { .mfa-style-39 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mfa-style-39 { grid-template-columns: 1fr; } }
.mfa-style-51 { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.mfa-style-40 { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.mfa-style-40::-webkit-details-marker { display: none; }
.mfa-style-40::after { content: '+'; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--accent); transition: transform 0.2s ease; }
details[open] > .mfa-style-40::after { content: '−'; transform: translateY(-1px); }
.mfa-style-41 { margin-top: 1rem; font-size: 0.95rem; }
.mfa-style-42 { text-align: center; background: var(--paper-raised); }
.mfa-style-43 { margin: 1rem auto 2rem; max-width: 60ch; }
.mfa-style-44 { display: inline-flex; }
.mfa-style-45 { font-size: calc(var(--text-lede) - 2px); }
@media (max-width: 768px) {
  .hero-copy,
  .hero-copy.mfa-style-45,
  p.hero-copy,
  .mfa-style-45 {
    font-size: clamp(0.92rem, 0.88rem + 0.35vw, 0.98rem) !important;
    line-height: 1.5 !important;
    margin-top: 0.65rem !important;
    margin-bottom: 0 !important;
  }
  .hero-actions {
    margin-top: 0.85rem !important;
  }
}
@media (max-width: 380px) {
  .hero-copy,
  .hero-copy.mfa-style-45,
  p.hero-copy,
  .mfa-style-45 {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }
  .hero-actions {
    margin-top: 0.75rem !important;
  }
}
.mfa-style-46 { font-weight: 800 !important; font-size: 0.95rem; animation: text-blink 1.5s ease-in-out infinite; }
@media (max-width: 768px) {
  .mfa-style-46 {
    font-size: 0.7rem !important;
    letter-spacing: 0.03em !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .ping-badge {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
@keyframes text-blink { 0%, 100% { color: inherit; text-shadow: none; } 50% { color: var(--accent); text-shadow: 0 0 10px rgba(13, 120, 201, 0.6), 0 0 20px rgba(13, 120, 201, 0.4); } }
.mfa-style-47 { position: relative; overflow: hidden; }
.mfa-style-48 { top: 50%; left: 50%; width: 60%; height: 60%; transform: translate(-50%, -50%); opacity: 0.4; transition: transform 0.2s ease-out; }
.mfa-style-49 { position: relative; z-index: 1; }
#ripple-canvas { background-color: #ffffff; z-index: -1; }
.mfa-style-52 { background: var(--accent) !important; }
.mfa-style-52 .form-label { color: #ffffff !important; opacity: 0.9; }
.mfa-style-52 input.form-input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #ffffff; }
.mfa-style-52 input.form-input::placeholder { color: rgba(255,255,255,0.5); }
.mfa-style-53 { background: var(--paper-raised) !important; color: var(--accent) !important; }
.mfa-style-54 { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 1000px) { .mfa-style-54 { grid-template-columns: 1fr; } }
.mfa-style-63 { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; padding: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 1000px) { .mfa-style-63 { grid-template-columns: 1fr; gap: 2rem; } }
.mfa-style-64 { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.15); border: 1px solid var(--border); }
.mfa-style-65 { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.mfa-style-66 { font-weight: bold !important; font-size: calc(0.85rem + 3px) !important; animation: text-blink 1.5s ease-in-out infinite; }
.mfa-style-55 { display: flex; flex-direction: column; gap: 1rem; }
.mfa-style-56 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); font-weight: 600; }
.mfa-style-58 { display: flex; flex-wrap: wrap; border-radius: 12px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); overflow: hidden; background: var(--paper); }
.mfa-style-58 > div { width: 20%; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 1rem; display: flex; align-items: center; justify-content: center; background: #fff; }
@media (max-width: 800px) { .mfa-style-58 > div { width: 33.333%; padding: 1.25rem 0.75rem; } }
@media (max-width: 500px) { .mfa-style-58 > div { width: 33.333%; padding: 0.85rem 0.4rem; } .mfa-style-58 img, .mfa-style-58 span { max-height: 30px; } }
.mfa-style-58 img, .mfa-style-58 span { max-width: 100%; max-height: 40px; object-fit: contain; font-weight: 600; color: var(--fg-muted); font-size: 0.85rem; text-align: center; }
.mfa-style-59 { padding: clamp(0.65rem, 2vw, 1.5rem); text-align: left; background: var(--paper-raised); }
.mfa-style-59 .text-headline { font-size: 1.35rem; margin-bottom: 1rem; line-height: 1.2; text-align: center; }
.mfa-style-60 { margin-bottom: 0.75rem; }
.mfa-style-61 { width: 100%; margin-top: 0.5rem; justify-content: center; }

/* Google Ads Containment */
.google-ads-containment .header-actions .btn-primary,
.google-ads-containment .section-rail {
  display: none !important;
}

.nav-link.active {
  color: var(--accent);
  background-color: var(--accent-wash);
  font-weight: 600;
}

.mobile-nav-drawer a.active {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .nav-desktop {
    gap: 0.2rem;
  }
  .nav-desktop .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.8125rem;
  }
}

/* Replaced inline styles */
.expandable-paragraph-wrap {
  position: relative;
  width: 100%;
}
.expand-text-toggle {
  display: none;
}
@keyframes arrow-swing {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(3px) rotate(-14deg);
  }
  40% {
    transform: translateY(6px) rotate(0deg);
  }
  60% {
    transform: translateY(3px) rotate(14deg);
  }
  80% {
    transform: translateY(1.5px) rotate(-6deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
.mfa-style-67 { margin-bottom: 2rem; font-size: 1.1rem; line-height: 1.6; max-width: 95%; }
.mfa-style-68 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.mfa-style-69 { padding: 1.25rem 0 !important; border-top: 1px solid var(--border); margin-top: 0 !important; }
footer.site-footer.mfa-style-69 { margin-top: 0 !important; padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.mfa-style-70 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.mfa-style-71 { color: var(--fg-muted); }
.mfa-style-73 { color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover,
.mfa-style-73:hover { color: #01022e !important; }
:root[data-theme="dark"] .site-footer a:hover,
:root[data-theme="dark"] .mfa-style-73:hover { color: #ffffff !important; }
.mfa-style-50 { position: relative; overflow: hidden; z-index: 1; }


/* ============================================================================
   Header Styles (Extracted from includes/header.php)
   ========================================================================= */

@media (min-width: 640px) {
      .header-actions .btn-primary {
        display: inline-flex !important;
      }
    }
    :root[data-theme="dark"] .icon-sun { display: block !important; }
    :root[data-theme="dark"] .icon-moon { display: none !important; }
    :root[data-theme="light"] .icon-sun { display: none !important; }
    :root[data-theme="light"] .icon-moon { display: block !important; }

/* Header Extracted Inline Utility Classes */
.hdr-s-1 { width: 14px; height: 14px; }
.hdr-s-2 { width: 18px; height: 18px; }
.hdr-s-3 { display:inline-flex; align-items:center; height:24px; position:relative; }
.hdr-s-4 { height:24px; width:auto; object-fit:contain; }
.hdr-s-5 { width: 16px; height: 16px; display: none; }
.hdr-s-6 { width: 16px; height: 16px; }
.hdr-s-7 { display: inline-flex; padding: 0.65rem 1.25rem; font-size: 0.8125rem; }
@media (max-width: 991px) {
  .hdr-s-7 { display: none !important; }
}
.hdr-s-8 { padding: 0.85rem 0; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--rule); }
.hdr-s-9 { margin-top: 1.5rem; justify-content: center; width: 100%; }

/* ============================================================================
   Index Sections Styles (Extracted from includes/sections/*.php)
   ========================================================================= */

/* Section: canvas.php */
.sec-canv-1 { background: var(--paper-sunken); scroll-margin-top: 5rem; }
.sec-canv-2 { ___PHP_BLOCK_19___; }
.sec-canv-3 { width: 14px; height: 14px; }
.sec-canv-4 { margin-top: 0.5rem; display: flex; align-items: baseline; gap: 0.85rem; }
.sec-canv-5 { color: var(--accent); }
.sec-canv-6 { font-size: 1.1rem; color: var(--fg-muted); }
.sec-canv-7 { width: 16px; height: 16px; }
.sec-canv-8 { margin-top: 1.25rem; border-left: 2px solid var(--accent); padding-left: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.65rem; }
.sec-canv-9 { font-size: 0.875rem; color: var(--fg); }
.sec-canv-10 { margin-top: 1rem; font-size: 0.75rem; color: var(--fg-faint); line-height: 1.5; max-width: 72ch; }
.sec-canv-11 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.sec-canv-12 { font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.sec-canv-13 { margin-top: 0.75rem; display: flex; align-items: baseline; gap: 0.5rem; }
.sec-canv-14 { color: var(--accent); font-size: 2.25rem; }
.sec-canv-15 { font-size: 0.875rem; color: var(--fg-muted); }
.sec-canv-16 { margin-top: 0.5rem; }
.sec-canv-17 { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sec-canv-18 { margin-top: 1rem; font-size: 0.75rem; color: var(--fg-faint); line-height: 1.5; }
.sec-canv-19 { color: var(--accent); font-size: 2rem; }
.sec-canv-20 { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--fg-muted); }
.sec-canv-21 { width: 82%; }
.sec-canv-22 { width: 18%; }
.sec-canv-23 { margin-top: 0.65rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--fg-faint); }
.sec-canv-24 { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--signal-manual); margin-right:4px; vertical-align:middle; }
.sec-canv-25 { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); margin-right:4px; vertical-align:middle; }

/* Section: clients.php */
.sec-clie-1 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.sec-clie-2 { list-style: none; padding: 0; }

/* Section: commitments.php */
.sec-comm-1 { scroll-margin-top: 5rem; }
.sec-comm-2 { display: flex; justify-content: space-between; align-items: center; }
.sec-comm-3 { width: 16px; height: 16px; }
.sec-comm-4 { margin-top: 1.5rem; font-size: 1.15rem; line-height: 1.35; }
.sec-comm-5 { margin-top: 0.75rem; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

/* Section: contact.php */
.sec-cont-hp { display: none !important; position: absolute !important; left: -9999px !important; }
.sec-cont-1 { scroll-margin-top: 5rem; }
.sec-cont-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sec-cont-3 { color: var(--accent); }
.sec-cont-4 { display: none; margin-top: 0.5rem; font-size: 0.75rem; color: var(--fg-faint); line-height: 1.5; }
.sec-cont-5 { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.sec-cont-6 { width: 16px; height: 16px; }
.sec-cont-7 { font-size: 0.75rem; color: var(--fg-faint); }
.sec-cont-8 { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.sec-cont-9 { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.05rem; color: var(--fg); font-weight: 500; }
.sec-cont-10 { width: 18px; height: 18px; color: var(--accent); }
.sec-cont-11 { margin-top: 2.75rem; }
.sec-cont-12 { list-style: none; margin-top: 1.25rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sec-cont-13 { border-top: 1px solid var(--rule); padding-top: 1rem; }
.sec-cont-14 { display: flex; align-items: baseline; gap: 0.5rem; }
.sec-cont-15 { margin-top: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.sec-cont-16 { margin-top: 0.2rem; font-size: 0.8125rem; color: var(--fg-muted); }

/* Section: hero.php */
.sec-hero-1 { top: 10%; left: 10%; width: 50%; height: 50%; }
.sec-hero-2 { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sec-hero-3 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sec-hero-4 { display: block; }
.sec-hero-5 { width: 16px; height: 16px; }
.sec-hero-6 { white-space: nowrap; padding-top: 0.2rem; }
.sec-hero-7 { padding-top: clamp(0rem, 1rem + 2vw, 3rem); }

/* Section: industries.php */
.sec-indu-1 { scroll-margin-top: 5rem; }
.sec-indu-2 { display: flex; justify-content: space-between; align-items: baseline; position: relative; }
.sec-indu-3 { margin-top: 1.25rem; position: relative; }
.sec-indu-4 { margin-top: 0.85rem; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; position: relative; }
.sec-indu-5 { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); position: relative; }
.sec-indu-6 { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* Section: metrics.php */
.sec-metr-1 { padding-top: 2.25rem; padding-bottom: 2.25rem; }

/* Section: process.php */
.sec-proc-1 { background: var(--paper-sunken); scroll-margin-top: 5rem; }
.sec-proc-2 { margin-bottom: 2rem; }
.sec-proc-3 { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.sec-proc-4 { display: flex; align-items: baseline; gap: 0.85rem; }
.sec-proc-5 { font-size: 0.875rem; }
.sec-proc-6 { font-size: 1.25rem; }
.sec-proc-7 { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }
.sec-proc-8 { width: ___PHP_BLOCK_16___%; }
.sec-proc-9 { width: ___PHP_BLOCK_17___%; }

/* Section: products.php */
.sec-prod-1 { scroll-margin-top: 5rem; }
.sec-prod-2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.sec-prod-3 { width: 22px; height: 22px; }
.sec-prod-4 { text-align: right; }
.sec-prod-5 { margin-top: 1.5rem; }
.sec-prod-6 { margin-top: 0.35rem; font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.sec-prod-7 { margin-top: 0.85rem; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }
.sec-prod-8 { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.sec-prod-9 { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: var(--fg-muted); }
.sec-prod-10 { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 0.5rem; flex-shrink: 0; }
.sec-prod-11 { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.sec-prod-12 { list-style: none; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.sec-prod-13 { font-size: 0.8125rem; color: var(--fg-muted); }
.sec-prod-14 { color: var(--fg); hover: var(--accent); }

/* Section: services.php */
.sec-serv-1 { scroll-margin-top: 5rem; }
.sec-serv-2 { width: 16px; height: 16px; }
.sec-serv-3 { flex: 1; }
.sec-serv-4 { display: flex; align-items: baseline; gap: 0.65rem; }
.sec-serv-5 { width: 16px; height: 16px; margin-top: 0.25rem; color: var(--fg-faint); }
.sec-serv-6 { ___PHP_BLOCK_18___; }
.sec-serv-7 { width: 24px; height: 24px; }
.sec-serv-8 { margin-top: 0.35rem; font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.sec-serv-9 { margin-top: 1.5rem; color: var(--fg-muted); line-height: 1.7; font-size: 0.95rem; }

/* Section: storyboard.php */
.sec-stor-1 { scroll-margin-top: 5rem; }
.sec-stor-2 { cursor: pointer; }
.sec-stor-3 { display: flex; align-items: baseline; gap: 0.75rem; }
.sec-stor-4 { margin-top: 0.85rem; font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }
.sec-stor-5 { width: 16px; height: 16px; }

/* Section: work.php */
.sec-work-1 { scroll-margin-top: 5rem; }
.sec-work-2 { margin-top: 1.25rem; }
.sec-work-3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.sec-work-4 { margin-top: 0.75rem; }
.sec-work-5 { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--fg-faint); }
.sec-work-6 { width: 16px; height: 16px; }
.sec-work-7 { font-size: 2rem; }
.sec-work-8 { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--fg-muted); line-height: 1.4; }
.sec-work-9 { margin-top: 0.65rem; font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }
.sec-work-10 { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Compact "Core solutions / Automation vs AI capabilities" section */
.interactive-bloom-container {
  padding-top: clamp(2rem, 3.5vw, 3.25rem) !important;
  padding-bottom: clamp(2rem, 3.5vw, 3.25rem) !important;
}
.interactive-bloom-container .measure {
  max-width: 68rem !important;
}
.interactive-bloom-container .section-head {
  margin-bottom: 1.35rem !important;
}
.interactive-bloom-container .section-head h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.15rem) !important;
  letter-spacing: -0.02em !important;
}
.interactive-bloom-container .work-narrative-grid {
  margin-top: 0.85rem !important;
  padding-top: 1rem !important;
  gap: 1.15rem !important;
}
.interactive-bloom-container .commitment-card {
  padding: 1.2rem 1.35rem !important;
}
.interactive-bloom-container .commitment-card h3 {
  font-size: 1.125rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.25 !important;
}
.interactive-bloom-container .mfa-style-25 {
  gap: 0.55rem !important;
}
.interactive-bloom-container .mfa-style-26 {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}
.interactive-bloom-container .mfa-style-27 {
  font-size: 0.85rem !important;
}

@media (max-width: 768px) {
  .interactive-bloom-container {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .interactive-bloom-container .section-head {
    margin-bottom: 0.85rem !important;
  }
  .interactive-bloom-container .section-head h2 {
    font-size: 1.35rem !important;
  }
  .interactive-bloom-container .commitment-card {
    padding: 1rem 1.1rem !important;
  }
  .interactive-bloom-container .commitment-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.6rem !important;
  }
  .interactive-bloom-container .mfa-style-25 {
    gap: 0.45rem !important;
  }
  .interactive-bloom-container .mfa-style-26 {
    font-size: 0.825rem !important;
    line-height: 1.4 !important;
  }

  /* Global mobile fallback: hide hero consultation card on mobile */
  #hero-lead-form {
    display: none !important;
  }
}

/* ==========================================================================
   GLOBAL INTEGRATION / CONNECTIVITY STRIP AUTO-ROTATOR (MOBILE MARQUEE)
   ========================================================================== */

/* Hardware-accelerated continuous infinite rotate animation */
@keyframes pmdgAutoRotate {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Base styles for Viewport & Track */
.pmdg-ticker-viewport {
  width: 100%;
  box-sizing: border-box;
}

.pmdg-ticker-track {
  display: flex;
  box-sizing: border-box;
}

/* DESKTOP VIEW (> 768px): Keep 100% original static layout, no animation, no duplicate badges */
@media (min-width: 769px) {
  .pmdg-ticker-viewport {
    overflow: visible !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    padding: 0 !important;
  }

  .pmdg-ticker-track {
    animation: none !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .pmdg-ticker-group {
    display: contents !important;
    padding-right: 0 !important;
  }

  .pmdg-ticker-group.pmdg-clone-group,
  .pmdg-ticker-group[aria-hidden="true"],
  .pmdg-inner-dupe {
    display: none !important;
  }
}

/* MOBILE VIEW (<= 768px): Continuous horizontal auto-rotation (marquee) */
@media (max-width: 768px) {
  /* Strip section containers on mobile */
  #erp-strip-section,
  #wms-strip-section,
  #scl-strip-section,
  #qma-strip-section,
  #connectivity-strip,
  .ir-s-2 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #erp-strip-section .measure,
  #wms-strip-section .measure,
  #scl-strip-section .measure,
  #qma-strip-section .measure,
  #connectivity-strip .measure,
  .ir-s-2 .measure {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Strip section title labels on mobile */
  #erp-strip-section .mrp-s-29,
  #wms-strip-section .wms-s-29,
  #scl-strip-section .scl-s-38,
  #qma-strip-section .qm-s-44,
  #connectivity-strip .so-s-29,
  #connectivity-strip .pa-s-25,
  #connectivity-strip .pm-s-31,
  #connectivity-strip .mi-s-26,
  #connectivity-strip .ima-s-30,
  #connectivity-strip .doc-s-31,
  #connectivity-strip .cs-s-35,
  #connectivity-strip .cq-s-8,
  #connectivity-strip .cq-s-10,
  .ir-s-2 .ir-s-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    text-align: center !important;
    justify-content: center !important;
    margin-bottom: 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Viewport with luxury edge fade gradient mask */
  .pmdg-ticker-viewport {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0.35rem 0 0.45rem 0 !important;
    box-sizing: border-box !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%) !important;
  }

  /* The gliding track */
  .pmdg-ticker-track,
  .mrp-s-32.pmdg-ticker-track,
  .wms-s-32.pmdg-ticker-track,
  .scl-s-41.pmdg-ticker-track,
  .qm-s-47.pmdg-ticker-track,
  .so-s-31.pmdg-ticker-track,
  .pa-s-27.pmdg-ticker-track,
  .pm-s-33.pmdg-ticker-track,
  .mi-s-28.pmdg-ticker-track,
  .ima-s-32.pmdg-ticker-track,
  .doc-s-33.pmdg-ticker-track,
  .cs-s-37.pmdg-ticker-track,
  .cq-s-14.pmdg-ticker-track,
  .ir-s-6.pmdg-ticker-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    align-items: center !important;
    overflow: visible !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    will-change: transform !important;
    animation: pmdgAutoRotate 24s linear infinite !important;
  }

  .pmdg-ticker-track::-webkit-scrollbar {
    display: none !important;
  }

  /* Pause auto-rotation on touch or hover */
  .pmdg-ticker-track:hover,
  .pmdg-ticker-track:active,
  .pmdg-ticker-track.is-paused {
    animation-play-state: paused !important;
  }

  /* Ticker groups: each set has uniform gap and right padding */
  .pmdg-ticker-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .pmdg-clone-group {
    display: flex !important;
  }

  .pmdg-inner-dupe {
    display: inline-flex !important;
  }

  /* Badge styling inside the ticker on mobile */
  .pmdg-ticker-group > * {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    gap: 0.45rem !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    min-height: 28px !important;
  }

  .pmdg-ticker-group img {
    height: 12px !important;
    width: auto !important;
    max-height: 14px !important;
    object-fit: contain !important;
    display: inline-block !important;
  }

  .pmdg-ticker-group svg,
  .pmdg-ticker-group i[data-lucide] {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
  }
}

/* Floating WhatsApp Chat Widget */
.whatsapp-chat-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.whatsapp-chat-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.whatsapp-chat-float:active {
  transform: scale(0.95);
}

.whatsapp-chat-float .whatsapp-chat-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-chat-float .whatsapp-chat-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: waChatPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes waChatPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.whatsapp-chat-float .whatsapp-chat-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #111827;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}

.whatsapp-chat-float .whatsapp-chat-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #111827;
}

.whatsapp-chat-float:hover .whatsapp-chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-chat-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-chat-float .whatsapp-chat-icon {
    width: 28px;
    height: 28px;
  }
  .whatsapp-chat-float .whatsapp-chat-tooltip {
    display: none;
  }
}

