/* ==========================================================================
   AEW Liquid Glass UI layer
   iOS-style translucent, fluid buttons + refined public website chrome.
   Loaded LAST on every layout (website, ERP, customer portal, auth) so it
   can refine existing components without rewriting them.
   ========================================================================== */

:root {
  --lg-spring: cubic-bezier(.34, 1.56, .64, 1);
  --lg-ease: cubic-bezier(.22, 1, .36, 1);
  --lg-blur: blur(16px) saturate(180%);
  --lg-radius: 999px;
  --lg-primary: 37 99 235;      /* rgb triplets so alpha can vary */
  --lg-danger: 220 38 38;
  --lg-amber: 217 119 6;
}

/* --------------------------------------------------------------------------
   1. Shared liquid surface
   -------------------------------------------------------------------------- */
:root :is(.btn, .hero-btn-primary, .hero-btn-secondary, .form-primary-btn,
          .floating-quote-btn, .pdf-ctrl-btn, .mobile-login-btn, .danger-btn,
          .icon-btn, .topbar-back-btn, .mobile-menu-toggle, .mobile-nav-close) {
  --lg-tint: var(--lg-primary);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--lg-radius);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    transform .55s var(--lg-spring),
    box-shadow .35s var(--lg-ease),
    background-color .35s var(--lg-ease),
    border-color .35s var(--lg-ease),
    color .25s var(--lg-ease),
    filter .35s var(--lg-ease);
}

/* Specular sheen that follows the pointer (position set by liquid.js) */
:root :is(.btn, .hero-btn-primary, .hero-btn-secondary, .form-primary-btn,
          .floating-quote-btn, .pdf-ctrl-btn, .mobile-login-btn, .danger-btn,
          .icon-btn, .topbar-back-btn, .mobile-menu-toggle, .mobile-nav-close)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(140px circle at var(--lg-x, 50%) var(--lg-y, -20%),
      rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .06) 48%, rgba(255, 255, 255, 0) 52%);
  opacity: .9;
  transition: opacity .35s var(--lg-ease);
}

/* Hover lift + press squish (spring) */
@media (hover: hover) {
  :root :is(.btn, .hero-btn-primary, .hero-btn-secondary, .form-primary-btn,
            .floating-quote-btn, .pdf-ctrl-btn, .mobile-login-btn, .danger-btn,
            .icon-btn, .topbar-back-btn, .mobile-menu-toggle, .mobile-nav-close):hover {
    transform: translateY(-2px) scale(1.03);
  }
}
:root :is(.btn, .hero-btn-primary, .hero-btn-secondary, .form-primary-btn,
          .floating-quote-btn, .pdf-ctrl-btn, .mobile-login-btn, .danger-btn,
          .icon-btn, .topbar-back-btn, .mobile-menu-toggle, .mobile-nav-close):active {
  transform: translateY(0) scale(.95);
  transition-duration: .12s, .2s, .2s, .2s, .2s, .2s;
  filter: brightness(.97);
}
:root :is(.btn, .hero-btn-primary, .form-primary-btn, .mobile-login-btn):disabled,
:root .btn[aria-disabled="true"] {
  transform: none;
  filter: saturate(.4);
  opacity: .6;
  cursor: not-allowed;
}

/* Focus ring that reads on both glass and solid backgrounds */
:root :is(.btn, .hero-btn-primary, .hero-btn-secondary, .form-primary-btn,
          .floating-quote-btn, .pdf-ctrl-btn, .mobile-login-btn, .danger-btn,
          .icon-btn, .topbar-back-btn, .mobile-menu-toggle, .mobile-nav-close):focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .9),
    0 0 0 6px rgb(var(--lg-tint) / .55);
}

/* --------------------------------------------------------------------------
   2. Tinted (primary) glass
   -------------------------------------------------------------------------- */
:root :is(.btn, .hero-btn-primary, .form-primary-btn, .floating-quote-btn,
          .pdf-btn-primary, .mobile-login-btn) {
  background: linear-gradient(180deg, rgb(var(--lg-tint) / .78), rgb(var(--lg-tint) / .94)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .14),
    inset 0 0 18px rgba(255, 255, 255, .10),
    0 10px 26px -6px rgb(var(--lg-tint) / .55),
    0 2px 6px rgb(var(--lg-tint) / .22);
}
@media (hover: hover) {
  :root :is(.btn, .hero-btn-primary, .form-primary-btn, .floating-quote-btn,
            .pdf-btn-primary, .mobile-login-btn):hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .65),
      inset 0 -1px 0 rgba(0, 0, 0, .14),
      inset 0 0 22px rgba(255, 255, 255, .16),
      0 18px 36px -8px rgb(var(--lg-tint) / .6),
      0 3px 8px rgb(var(--lg-tint) / .25);
  }
}

/* Danger variant */
:root :is(.btn.danger, .danger-btn) {
  --lg-tint: var(--lg-danger);
  background: linear-gradient(180deg, rgb(var(--lg-tint) / .80), rgb(var(--lg-tint) / .95)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .14),
    0 10px 24px -6px rgb(var(--lg-tint) / .5);
}

/* --------------------------------------------------------------------------
   3. Clear (light) glass — ghost / secondary / icon / utility buttons
   -------------------------------------------------------------------------- */
:root :is(.btn.ghost, .btn.secondary, .icon-btn, .topbar-back-btn,
          .pdf-ctrl-btn:not(.pdf-btn-primary), .mobile-menu-toggle, .mobile-nav-close) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .55)) !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 23, 42, .06),
    0 0 0 .5px rgba(15, 23, 42, .10),
    0 8px 22px -8px rgba(15, 23, 42, .22);
}
@media (hover: hover) {
  :root :is(.btn.ghost, .btn.secondary, .icon-btn, .topbar-back-btn,
            .pdf-ctrl-btn:not(.pdf-btn-primary), .mobile-menu-toggle, .mobile-nav-close):hover {
    color: rgb(var(--lg-primary)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(15, 23, 42, .06),
      0 0 0 .5px rgb(var(--lg-primary) / .25),
      0 14px 30px -10px rgb(var(--lg-primary) / .35);
  }
}
:root :is(.icon-btn, .mobile-nav-close) { border-radius: 14px; }
:root .mobile-menu-toggle { border-radius: 14px; }

/* Glass on dark imagery (hero secondary CTAs) */
:root .hero-btn-secondary {
  --lg-tint: 255 255 255;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .10),
    0 10px 28px -10px rgba(2, 6, 23, .6);
}
@media (hover: hover) {
  :root .hero-btn-secondary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14)) !important;
    border-color: rgba(255, 255, 255, .7) !important;
  }
}

/* ERP dark theme */
[data-theme="dark"] :is(.btn.ghost, .btn.secondary, .icon-btn, .topbar-back-btn,
                         .pdf-ctrl-btn:not(.pdf-btn-primary), .mobile-menu-toggle, .mobile-nav-close) {
  background: linear-gradient(180deg, rgba(51, 51, 72, .72), rgba(24, 24, 36, .55)) !important;
  color: #e6e6ed !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 8px 22px -8px rgba(0, 0, 0, .6);
}
[data-theme="dark"] :is(.btn, .icon-btn)::after { opacity: .35; }

/* Sizes keep their original rhythm; small buttons stay compact */
:root .btn.small { padding: 8px 14px; min-height: 34px; }
:root .hero-btn-primary,
:root .hero-btn-secondary { min-height: 50px; padding-inline: 26px; }

/* --------------------------------------------------------------------------
   4. Fluid press for every other control (tabs, calculators, toggles…)
      Motion only — their own colours/states are left untouched.
   -------------------------------------------------------------------------- */
:root :is(.tab-btn, .calc-btn, .cw-btn, .nav-group-btn, .password-toggle-btn,
          .sidebar-toggle-btn, .btn-icon, .btn-remove-item, button:not([class])) {
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--lg-spring), background-color .25s ease, color .2s ease, box-shadow .25s ease, border-color .25s ease;
}
:root :is(.tab-btn, .calc-btn, .cw-btn, .nav-group-btn, .password-toggle-btn,
          .sidebar-toggle-btn, .btn-icon, .btn-remove-item, button:not([class])):active {
  transform: scale(.95);
  transition-duration: .12s;
}
:root :is(.tab-btn, .calc-btn, .cw-btn) { border-radius: 999px; }

/* --------------------------------------------------------------------------
   5. Public website chrome — floating glass navbar
   -------------------------------------------------------------------------- */
.site-nav {
  top: 12px;
  margin: 12px auto 0;
  width: min(1240px, calc(100% - 24px));
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 .5px rgba(15, 23, 42, .08),
    0 18px 40px -18px rgba(15, 23, 42, .35);
  transition: background .3s var(--lg-ease), box-shadow .3s var(--lg-ease), top .3s var(--lg-ease);
}
.site-nav.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 .5px rgba(15, 23, 42, .1),
    0 22px 46px -18px rgba(15, 23, 42, .45);
}
/* Pull the first hero section up under the floating bar */
body > main > .hero:first-child,
body > main > .page-hero:first-child,
body > main > .form-page:first-child {
  margin-top: -86px;
  padding-top: calc(86px + 48px);
}

.desktop-nav { gap: 4px; }
.site-nav nav a:not(.btn) {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s ease, background-color .3s var(--lg-ease), transform .45s var(--lg-spring);
}
.site-nav nav a:not(.btn):hover {
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
}
.site-nav nav a:not(.btn):active { transform: scale(.94); }
.site-nav nav a:not(.btn)[aria-current="page"] {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(239, 246, 255, .8));
  box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(37, 99, 235, .25), 0 6px 14px -8px rgba(37, 99, 235, .5);
}
.site-nav nav .btn.small { margin-left: 8px; padding-inline: 18px; }

/* Mobile drawer as a frosted sheet */
.mobile-nav-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .86));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 0 24px 24px 0;
}
.mobile-nav-links a:not(.btn) { border-radius: 14px; }
.mobile-nav-links a:not(.btn)[aria-current="page"] { background: #eff6ff; color: #1d4ed8; }

/* --------------------------------------------------------------------------
   6. Hero + section polish
   -------------------------------------------------------------------------- */
.hero, .page-hero, .form-page { background-attachment: scroll; }
.hero::before,
.page-hero::before,
.form-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(96, 165, 250, .25), transparent 70%),
    radial-gradient(40% 40% at 85% 85%, rgba(245, 158, 11, .14), transparent 70%);
  mix-blend-mode: screen;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hero-title {
  background: linear-gradient(180deg, #ffffff 30%, #c7d7f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.strength-band div,
.mfg-card,
.ind-card,
.cap-box,
.why-card,
.product-card {
  border-radius: 20px !important;
  transition: opacity .7s var(--lg-ease), transform .6s var(--lg-ease), box-shadow .35s var(--lg-ease), border-color .35s var(--lg-ease) !important;
}
@media (hover: hover) {
  .mfg-card:hover,
  .ind-card:hover,
  .cap-box:hover,
  .why-card:hover,
  .product-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .28);
  }
}

/* Floating quote button: liquid pill. The shared liquid surface sets
   position:relative, so restore fixed positioning explicitly. */
:root .floating-quote-btn {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  overflow: visible;
  animation: fqbIn .8s var(--lg-spring) 1.2s backwards;
  transition:
    transform .55s var(--lg-spring),
    box-shadow .35s var(--lg-ease),
    bottom .35s var(--lg-ease),
    opacity .3s var(--lg-ease);
}
:root .floating-quote-btn .fqb-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* soft pulse ring to draw the eye without being noisy */
:root .floating-quote-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgb(var(--lg-primary) / .45);
  animation: fqbPulse 2.8s var(--lg-ease) 2.2s infinite;
}
@keyframes fqbIn {
  from { opacity: 0; transform: translateY(24px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes fqbPulse {
  0%   { box-shadow: 0 0 0 0 rgb(var(--lg-primary) / .45); }
  70%  { box-shadow: 0 0 0 14px rgb(var(--lg-primary) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--lg-primary) / 0); }
}
@media (max-width: 640px) {
  :root .floating-quote-btn {
    right: max(12px, env(safe-area-inset-right)) !important;
    padding: 9px 15px 9px 10px !important;
    font-size: 12.5px !important;
  }
  :root .floating-quote-btn .fqb-icon { width: 22px; height: 22px; font-size: 11px; }
}

::selection { background: rgba(37, 99, 235, .2); }
html { scroll-behavior: smooth; }

/* --------------------------------------------------------------------------
   7. Fallbacks & accessibility
   -------------------------------------------------------------------------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav { background: rgba(255, 255, 255, .97); }
  :root :is(.btn.ghost, .btn.secondary, .icon-btn, .topbar-back-btn,
            .pdf-ctrl-btn:not(.pdf-btn-primary), .mobile-menu-toggle, .mobile-nav-close) {
    background: #ffffff !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
@media (max-width: 960px) {
  .site-nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); border-radius: 18px; }
}
@media print {
  .site-nav, .floating-quote-btn { display: none !important; }
}

/* --------------------------------------------------------------------------
   8. Landing page motion (home hero, ticker, cards, scroll progress)
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, #60a5fa, #2563eb 45%, #f59e0b);
  box-shadow: 0 0 12px rgba(37, 99, 235, .6);
}

/* Hero: image lives on its own layer so it can drift (Ken Burns) + parallax */
.hero {
  isolation: isolate;
  background: #0b1222 !important;
}
.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(11, 18, 34, .88), rgba(29, 78, 216, .55)),
    url("../images/bg/hero-railway.svg") center / cover no-repeat;
  translate: 0 var(--parallax, 0px);
  animation: kenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  from { scale: 1.02; }
  to   { scale: 1.12; }
}
.hero::before { z-index: -1; }

/* drifting light orbs */
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-orbs span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .38;
  mix-blend-mode: screen;
}
.hero-orbs span:nth-child(1) { background: #2563eb; left: -14vmax; top: -18vmax; animation: orbA 18s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(2) { background: #f59e0b; right: -16vmax; bottom: -22vmax; opacity: .22; animation: orbB 22s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(3) { background: #06b6d4; left: 40%; top: 30%; width: 26vmax; height: 26vmax; opacity: .18; animation: orbC 16s ease-in-out infinite alternate; }
@keyframes orbA { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes orbB { to { transform: translate(-10vmax, -6vmax) scale(1.1); } }
@keyframes orbC { to { transform: translate(-14vmax, 10vmax) scale(.85); } }

/* a thin light beam sweeping across, like a laser scanner */
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(147, 197, 253, .10) 48%, rgba(255, 255, 255, .18) 50%, rgba(147, 197, 253, .10) 52%, transparent 60%);
  background-size: 250% 100%;
  animation: scan 9s linear infinite;
}
@keyframes scan {
  from { background-position: 150% 0; }
  to   { background-position: -100% 0; }
}

/* staged entrance */
.hero .hero-copy .hero-reveal {
  margin-top: 0;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: heroReveal .9s var(--lg-ease) var(--d, 0s) forwards;
}
.hero .hero-copy .eyebrow.hero-reveal { margin-bottom: 22px; }
@keyframes heroReveal {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: liveDot 2s ease-out infinite;
}
@keyframes liveDot {
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: .28em;
  margin-bottom: 22px;
  background: none;
  color: #ffffff;
}
.hero-title .hw {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 35%, #bcd2fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(.55em) rotateX(-40deg);
  transform-origin: 50% 100%;
  filter: blur(10px);
  animation: wordIn 1s var(--lg-ease) calc(.25s + var(--i) * .14s) forwards;
}
.hero-title .hw:last-child {
  background: linear-gradient(100deg, #fde68a 0%, #f59e0b 30%, #ffffff 50%, #f59e0b 70%, #fde68a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    wordIn 1s var(--lg-ease) calc(.25s + var(--i) * .14s) forwards,
    shine 5s linear 1.6s infinite;
}
@keyframes wordIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes shine {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}
.hero-lede {
  max-width: 620px;
  margin: 0 0 6px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: rgba(226, 232, 240, .9);
}

/* infinite capabilities ticker */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  margin-bottom: 40px;
  background: #ffffff;
  border-block: 1px solid #e2e8f0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #334155;
  white-space: nowrap;
}
.ticker-track span::after {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* section headings: accent bar grows in */
.section-head h2 {
  position: relative;
  padding-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s var(--lg-ease) .25s;
}
.section.visible .section-head h2::after { transform: scaleX(1); }

/* cards: staggered reveal + cursor spotlight + gentle 3D tilt (liquid.js) */
.mfg-card, .ind-card, .cap-box, .why-card, .product-card, .strength-band > div {
  position: relative;
  isolation: isolate;
  transition-delay: var(--stagger, 0s) !important;
}
.mfg-card:hover, .ind-card:hover, .cap-box:hover, .why-card:hover, .product-card:hover, .strength-band > div:hover {
  transition-delay: 0s !important;
}
.mfg-card::after, .ind-card::after, .cap-box::after, .why-card::after, .product-card::after, .strength-band > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .10), transparent 60%);
  transition: opacity .4s var(--lg-ease);
}
.mfg-card:hover::after, .ind-card:hover::after, .cap-box:hover::after, .why-card:hover::after, .product-card:hover::after, .strength-band > div:hover::after {
  opacity: 1;
}
@media (hover: hover) {
  .is-tilting {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) !important;
    transition: transform .15s linear, box-shadow .35s var(--lg-ease), border-color .35s var(--lg-ease) !important;
  }
}
.mfg-icon, .ind-icon, .cap-box-icon {
  display: inline-block;
  transition: transform .6s var(--lg-spring);
}
.mfg-card:hover .mfg-icon, .ind-card:hover .ind-icon, .cap-box:hover .cap-box-icon {
  transform: translateY(-4px) rotate(-8deg) scale(1.12);
}

@media (max-width: 640px) {
  .ticker-track span { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   9. Layout fixes
   -------------------------------------------------------------------------- */
/* Strength cards: website.css uses rows "auto 1fr", which stretched the title row
   (and pushed the body text down) whenever a card also has an icon (About page). */
.strength-band > div {
  grid-template-rows: none;
  align-content: start;
}
/* The band sat on a white strip while the page behind it is grey, leaving
   visible grey bars above/below it (under the ticker, under the About hero). */
.strength-band { background: transparent; }
.ticker { margin-bottom: 0; }
.ticker + .strength-band { padding-top: 40px; }

/* Floating quote button hides while another quote CTA is on screen (liquid.js) */
:root .floating-quote-btn.fqb-away {
  opacity: 0;
  transform: translateY(18px) scale(.9);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-orbs span, .hero-scan, .hero-title .hw, .floating-quote-btn::before { animation: none !important; }
  /* keep the ticker moving, just slower; it pauses on hover */
  .ticker .ticker-track { animation-duration: 70s !important; }
  .hero-title .hw, .hero .hero-copy .hero-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
