/**
 * SEO MADE EASY — Base Styles & Global Utilities
 * Source: assets/Design.md/Homedesign.md
 */

/* ==========================================================================
   Base & Reset Settings
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family-primary, 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 1rem;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

/* ==========================================================================
   Theme Transitions
   Strict requirement: Animate ONLY color, background-color, border-color,
   box-shadow, fill, and stroke. Never animate layout dimensions, padding,
   margins, or typography size.
   ========================================================================== */
body,
header,
main,
footer,
section,
div,
article,
aside,
nav,
button,
a,
input,
textarea,
select,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  transition-property: color, background-color, border-color, box-shadow, fill, stroke;
  transition-duration: var(--motion-duration-instant, 200ms);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Class to temporarily suppress transitions during initial page load */
.no-theme-transition,
.no-theme-transition * {
  transition: none !important;
}

/* ==========================================================================
   Accessible Focus Ring (WCAG 2.2 AA)
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Fallback removal of mouse outline while preserving focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Gentle Floating Animations for Hero Cards
   ========================================================================== */
@keyframes floatGentleA {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatGentleB {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-float-1 {
  animation: floatGentleA 4s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatGentleB 4.5s ease-in-out infinite 0.4s;
}

.animate-float-3 {
  animation: floatGentleA 5s ease-in-out infinite 0.8s;
}

.animate-float-4 {
  animation: floatGentleB 4.8s ease-in-out infinite 1.2s;
}

/* ==========================================================================
   Hero Background & Overlay Animations
   ========================================================================== */
@keyframes heroGlowPulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) translate(15px, -10px);
    opacity: 0.75;
  }
}

@keyframes heroPatternDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 120px 80px;
  }
}

.animate-hero-glow-1 {
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.animate-hero-glow-2 {
  animation: heroGlowPulse 10s ease-in-out infinite 2s reverse;
}

.animate-hero-pattern {
  animation: heroPatternDrift 30s linear infinite;
}

/* ==========================================================================
   Continuous Right-to-Left Industries Marquee
   ========================================================================== */
@keyframes marqueeScrollRTL {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-rtl {
  display: flex;
  width: max-content;
  animation: marqueeScrollRTL 35s linear infinite;
}

.animate-marquee-rtl:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   Decorative Background Patterns
   ========================================================================== */
.bg-dot-pattern {
  background-image: radial-gradient(var(--color-brand) 1.25px, transparent 1.25px);
  background-size: 16px 16px;
}

.bg-hero-overlay {
  background-image: url('../assets/Images/hero-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 400px;
}
/* ==========================================================================
   Sticky Header Dynamic Scroll Elevation
   ========================================================================== */
header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

header.header-scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

.dark header.header-scrolled {
  background-color: rgba(7, 26, 73, 0.94);
  box-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Motion Curves & Spring Physics (Stripe, Apple & Locomotive Inspired)
   ========================================================================== */
:root {
  --spring-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-bounce: cubic-bezier(0.34, 1.45, 0.64, 1);
  --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-gentle: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Classy Button Animations (Spring Physics, Shimmer & Micro-Interactions)
   ========================================================================== */
.btn-classy {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--spring-bounce), box-shadow 0.4s var(--spring-smooth), background-color 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
  will-change: transform, box-shadow;
}

/* Liquid Shimmer Light Reflection Sweep on Hover */
.btn-classy::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -90%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: transform 0.8s var(--spring-smooth);
  pointer-events: none;
  z-index: 1;
}

.btn-classy:hover::after {
  transform: translate(460%, 0) rotate(25deg);
}

.btn-classy:hover {
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(18, 59, 206, 0.35), 0 6px 14px -4px rgba(18, 59, 206, 0.2);
}

.btn-classy:active {
  transform: translateY(0.5px) scale(0.975);
  transition-duration: 0.15s;
}

/* Pulse Glow for Primary Attention Callouts */
@keyframes subtlePulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(18, 59, 206, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(18, 59, 206, 0);
  }
}

.btn-pulse-glow {
  animation: subtlePulseGlow 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Arrow slide icon micro-animation inside buttons */
.btn-classy [data-lucide="arrow-right"],
.link-btn [data-lucide="arrow-right"] {
  transition: transform 0.35s var(--spring-bounce);
}

.btn-classy:hover [data-lucide="arrow-right"],
.link-btn:hover [data-lucide="arrow-right"] {
  transform: translateX(4px);
}

/* Spring Hover Transitions on Interactive Controls */
.theme-toggle {
  transition: transform 0.4s var(--spring-bounce), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.12);
}

.theme-toggle:active {
  transform: scale(0.92) rotate(-5deg);
}

/* Service Tab button spring transition */
.service-tab {
  transition: transform 0.35s var(--spring-smooth), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.service-tab:hover:not([aria-selected="true"]) {
  transform: translateX(4px);
}

/* Spring-based hover for cards, articles, and interactive items */
.card-classy-hover,
.resource-item,
.service-panel {
  transition: transform 0.45s var(--spring-smooth), box-shadow 0.45s var(--spring-smooth), border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.card-classy-hover:hover,
.resource-item:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 20px 35px -10px rgba(18, 59, 206, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
}

.dark .card-classy-hover:hover,
.dark .resource-item:hover {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 133, 255, 0.25);
}

/* Smooth zoom for images inside resource cards */
.resource-img img,
.img-box img {
  transition: transform 0.65s var(--spring-smooth);
  will-change: transform;
}

.resource-item:hover .resource-img img,
li:hover .img-box img {
  transform: scale(1.045);
}

/* ==========================================================================
   Section Scroll Reveal Animations (Apple & Locomotive Inspired)
   ========================================================================== */
.reveal-on-scroll,
section.reveal-auto {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--spring-smooth), transform 0.85s var(--spring-smooth);
  will-change: opacity, transform;
}

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

/* Scale-in Reveal for Visuals & Mockups */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  transition: opacity 0.9s var(--spring-smooth), transform 0.9s var(--spring-smooth);
  will-change: opacity, transform;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Fade from Left and Right */
.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.85s var(--spring-smooth), transform 0.85s var(--spring-smooth);
  will-change: opacity, transform;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.85s var(--spring-smooth), transform 0.85s var(--spring-smooth);
  will-change: opacity, transform;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fluid Stagger Delays */
.delay-75  { transition-delay: 75ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Parallax Layer Transitions */
[data-parallax] {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

/* Smooth Scrolling Anchor Behavior */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Morphing SVG Icons (GSAP & MorphSVG Compatible)
   ========================================================================== */
.morph-svg-icon {
  display: inline-block;
  vertical-align: middle;
  transform-origin: center center;
  will-change: transform;
}

.morph-path {
  transform-origin: center center;
  will-change: d, transform;
}

.btn-morph:hover .morph-svg-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Image Micro-Animations: Smooth Zoom & 3D Perspective Tilt
   ========================================================================== */

/* Enhanced image zoom transition */
.img-zoom-hover,
.resource-img img,
.showcase-card img,
.service-card img,
.blog-banner-img img,
.zoom-hover,
article.group img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}

.group:hover .img-zoom-hover,
.group:hover .resource-img img,
.group:hover .showcase-card img,
.group:hover .service-card img,
.group:hover .zoom-hover,
.zoom-hover:hover,
article.group:hover img {
  transform: scale(1.045) translateZ(0);
  filter: brightness(1.02);
}

/* 3D Perspective Tilt Card Container */
.tilt-card-3d,
[data-tilt],
.resource-item,
.sitemap-card,
.service-card,
.showcase-card,
.portfolio-item,
.interactive-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}

/* Subtle Specular Sheen Highlight */
.tilt-card-3d::after,
[data-tilt]::after,
.resource-item::after,
.sitemap-card::after,
.service-card::after,
.showcase-card::after,
.portfolio-item::after,
.interactive-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 25;
}

.tilt-card-3d:hover::after,
[data-tilt]:hover::after,
.resource-item:hover::after,
.sitemap-card:hover::after,
.service-card:hover::after,
.showcase-card:hover::after,
.portfolio-item:hover::after,
.interactive-card:hover::after {
  opacity: 1;
}

/* Ambient Canvas Particle Background Layer */
#ambient-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] #ambient-particles-canvas {
  opacity: 1;
}

/* ==========================================================================
   Accessibility: Prefers-Reduced-Motion
   Respect user operating system reduced-motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-float-1,
  .animate-float-2,
  .animate-float-3,
  .animate-float-4 {
    animation: none !important;
  }

  #ambient-particles-canvas {
    display: none !important;
  }

  .tilt-card-3d,
  [data-tilt],
  .resource-item,
  .sitemap-card,
  .service-card,
  .showcase-card,
  .portfolio-item,
  .interactive-card {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Global Footer Styling & Fail-Safe Contrast
   Ensures prominent visibility in both Light Mode & Dark Mode
   ========================================================================== */
.global-footer,
footer.global-footer {
  background-color: var(--color-surface-strong, #071A49) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .global-footer,
.dark .global-footer {
  background-color: var(--color-surface-strong, #020817) !important;
}

.bg-strong,
.bg-surface-strong {
  background-color: var(--color-strong, #071A49) !important;
}

[data-theme="dark"] .bg-strong,
[data-theme="dark"] .bg-surface-strong,
.dark .bg-strong,
.dark .bg-surface-strong {
  background-color: var(--color-strong, #020817) !important;
}

/* ==========================================================================
   Modern Event System UI Styles (Scroll Progress, Toast, Ripples, Intro)
   ========================================================================== */

/* Reading Scroll Progress Bar */
#scroll-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-brand, #0B3598), var(--color-accent, #18C7F5), #8B5CF6);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Interactive Button Ripple Effect */
.btn-ripple-container {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

[data-theme="light"] .btn-ripple-dark {
  background-color: rgba(11, 53, 152, 0.2);
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Floating Toast Notification for Copy/Cut/Form Actions */
#app-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 9999px;
  background-color: var(--color-card, #FFFFFF);
  color: var(--color-ink, #0F172A);
  border: 1px solid var(--color-line, rgba(0, 0, 0, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

[data-theme="dark"] .app-toast,
.dark .app-toast {
  background-color: #0F172A;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Page Intro (pd:intro) Entrance Polish */
html[data-page-loaded="true"] .hero-badge-pill {
  animation: introPillEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introPillEntrance {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Auto Popup Lead Modal Performance & Animations */
#auto-popup-modal {
  will-change: opacity, visibility;
}

#auto-popup-card {
  will-change: transform, opacity;
}

#popup-timer-progress {
  transform-origin: left center;
}

/* ==========================================================================
   Desktop Floating Hover-Expandable Lead Form (Left Side, Below Hero)
   ========================================================================== */
#floating-desktop-lead-widget {
  will-change: transform, opacity;
}

#floating-lead-panel {
  will-change: transform, opacity;
}

/* Invisible bridge so mouse transitions smoothly horizontally between vertical tab and flyout form */
#floating-lead-panel::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 16px;
  pointer-events: auto;
}

/* Vertical text label typography for left docked tab */
.floating-lead-tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.14em;
}

/* Vertical Light Pill Tab - Left Side, Below Hero (Engaging Light Palette with #F59E0B) */
.floating-lead-pill-btn {
  background: linear-gradient(180deg, #FFFDF5 0%, #FFFBEB 45%, #FEF3C7 100%);
  border: 1.5px solid #F59E0B;
  border-left: none;
  color: #78350F;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s ease, 
              border-color 0.25s ease, 
              background 0.3s ease;
}

[data-theme="dark"] .floating-lead-pill-btn,
.dark .floating-lead-pill-btn {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(26, 18, 2, 0.95) 100%);
  border-color: #F59E0B;
  color: #FEF3C7;
  box-shadow: 0 4px 24px -2px rgba(245, 158, 11, 0.32);
}

/* Light warm shimmer sweep animation down the vertical tab */
.floating-lead-pill-btn::before {
  content: '';
  position: absolute;
  top: -120%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewY(-20deg);
  transition: top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[data-theme="dark"] .floating-lead-pill-btn::before,
.dark .floating-lead-pill-btn::before {
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.35), transparent);
}

/* Subtle slide-out and warm amber glow hover animation indicating clickability */
#floating-desktop-lead-widget:hover .floating-lead-pill-btn,
.floating-lead-pill-btn:hover {
  transform: translateX(6px);
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  border-color: #F59E0B;
  box-shadow: 0 8px 30px -2px rgba(245, 158, 11, 0.45), 0 4px 14px rgba(245, 158, 11, 0.22);
}

[data-theme="dark"] #floating-desktop-lead-widget:hover .floating-lead-pill-btn,
[data-theme="dark"] .floating-lead-pill-btn:hover,
.dark #floating-desktop-lead-widget:hover .floating-lead-pill-btn,
.dark .floating-lead-pill-btn:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.26) 0%, rgba(38, 26, 4, 0.98) 100%);
  border-color: #F59E0B;
  box-shadow: 0 8px 32px -2px rgba(245, 158, 11, 0.5);
}

#floating-desktop-lead-widget:hover .floating-lead-pill-btn::before,
.floating-lead-pill-btn:hover::before {
  top: 180%;
}

.floating-lead-pill-btn:active {
  transform: translateX(2px) scale(0.98);
}

/* When explicitly closed via X or post-submission */
#floating-desktop-lead-widget.is-closed #floating-lead-panel {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.95) translateX(-8px) !important;
}





/* =========================================================================
   WordPress Custom Logo Support (.custom-logo-link & .custom-logo)
   Supports standard WordPress Customizer logo upload and light/dark modes
   ========================================================================= */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 0.75rem;
  padding: 0.25rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-logo-link:hover .custom-logo {
  transform: scale(1.05);
}

.custom-logo {
  height: 2.5rem; /* 40px */
  width: auto;
  max-height: 48px;
  object-fit: contain;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

@media (min-width: 640px) {
  .custom-logo {
    height: 2.75rem; /* 44px */
  }
}

@media (min-width: 768px) {
  .custom-logo {
    height: 3rem; /* 48px */
  }
}

[data-theme="dark"] .custom-logo,
.dark .custom-logo {
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.15));
}

/* =========================================================================
   Hero SEO Description 2-Line Clamp & Smooth In-Place Expansion
   ========================================================================= */
.hero-desc-text {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-desc-text.is-collapsed {
  max-height: 3.3em; /* Strictly 2 lines (2 * 1.625 leading-relaxed) with 0.05em descender buffer */
  -webkit-mask-image:
    linear-gradient(#000, #000),
    linear-gradient(to right, #000 calc(100% - 155px), transparent calc(100% - 112px));
  -webkit-mask-position: 0 0, 0 100%;
  -webkit-mask-size: 100% 50%, 100% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    linear-gradient(#000, #000),
    linear-gradient(to right, #000 calc(100% - 155px), transparent calc(100% - 112px));
  mask-position: 0 0, 0 100%;
  mask-size: 100% 50%, 100% 50%;
  mask-repeat: no-repeat;
}

.hero-desc-text.is-expanded {
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-desc-toggle {
  white-space: nowrap;
  touch-action: manipulation;
}

.hero-desc-wrapper:not(.is-expanded) .hero-desc-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
}

.hero-desc-wrapper.is-expanded .hero-desc-toggle {
  position: static;
  display: inline-flex;
  margin-top: 0.35rem;
}

.hero-desc-wrapper.is-expanded .hero-desc-ellipsis {
  display: none;
}

/* Industry FAQ Accordion Trigger */
.faq-trigger {
  cursor: pointer;
  touch-action: manipulation;
}
