/* ==========================================================================
   Intellinez Studio — theme.css
   Design tokens, reset, typography, and all desktop-first component styles.
   Responsive overrides live in theme-responsive.css only.
   ========================================================================== */

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

/* ---------- Design tokens ---------- */
:root {
  --background: 210 20% 98%;
  --foreground: 220 25% 10%;

  --card: 0 0% 100%;
  --card-foreground: 220 25% 10%;

  --primary: 174 72% 46%;
  --primary-foreground: 0 0% 100%;

  --secondary: 220 14% 96%;
  --secondary-foreground: 220 25% 10%;

  --muted: 220 14% 96%;
  --muted-foreground: 220 10% 46%;

  --accent: 250 60% 58%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 174 72% 46%;

  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 1.75rem;

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --container-max: 1400px;

  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
svg.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
}

main { display: block; position: relative; }

/* Decorative page-level float orbs (see page.php): a plain, non-clipping
   wrapper so the blur can fade out naturally instead of being cut off by
   a short section's own overflow:hidden (e.g. .content-hero). Sits behind
   all page content — pointer-events:none, and later DOM-order content
   paints over it without needing an explicit z-index. */
.page-bg-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46rem;
  pointer-events: none;
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: 3.125rem; /* 50px */
}

.section--tight { padding-block: 3.125rem; /* 50px */ }
.section > .container,
.hero > .container,
.page-hero > .container,
.content-hero > .container,
.article-header > .container {
  position: relative;
  z-index: 1;
}
.eyebrow-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--primary)); }
.article-container--sm { max-width: 44rem; margin-inline: auto; }
.article-container--md { max-width: 48rem; margin-inline: auto; }
.article-container--lg { max-width: 56rem; margin-inline: auto; }
.related-grid { max-width: 64rem; margin-inline: auto; }

.bg-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--primary) / 0.03), hsl(var(--background)));
  pointer-events: none;
}

.bg-hairline {
  /* Sits at the very top of each section's own padding box. Now that
     eb_section() gives every section a real 50px top/bottom padding (see
     elementor-compat notes), this naturally centers the line with 50px of
     clear space above (previous section's bottom padding) and 50px below
     (this section's top padding) — no margin needed, and margin-bottom
     would be a no-op here anyway since the element is out of flow. */
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--primary) / 0.2), transparent);
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.bg-orb--accent { background: hsl(var(--accent) / 0.08); }
.bg-orb--primary { background: hsl(var(--primary) / 0.08); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.05);
}
.eyebrow--accent { color: hsl(var(--accent)); border-color: hsl(var(--accent) / 0.2); background: hsl(var(--accent) / 0.05); }

.section-header { max-width: 42rem; margin-bottom: 3.5rem; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--sm { max-width: 36rem; }
.section-header--lg { max-width: 48rem; }

.section-heading {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.gradient-text {
  background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.gradient-primary { background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent))); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn svg.icon { width: 1rem; height: 1rem; }

.btn--primary {
  background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover { opacity: 0.9; }

.btn--outline {
  border-color: hsl(var(--input));
  background: hsl(var(--background));
}
.btn--outline:hover { background: hsl(var(--accent) / 0.08); color: hsl(var(--accent)); }

.btn--ghost { color: hsl(var(--muted-foreground)); }
.btn--ghost:hover { background: hsl(var(--accent) / 0.08); }

.btn--secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn--secondary:hover { background: hsl(var(--secondary) / 0.8); }

.btn--sm { height: 2.25rem; padding: 0 0.75rem; border-radius: var(--radius-md); }
.btn--lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn--block { width: 100%; }
.btn--glow { box-shadow: 0 0 20px hsl(174 72% 46% / 0.15); }
.btn--glow-md { box-shadow: 0 0 40px hsl(174 72% 46% / 0.2); }

/* ---------- Glass ---------- */
.glass {
  background-color: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(0 0% 100% / 0.2);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.05), 0 8px 10px -6px hsl(var(--primary) / 0.05);
}
.card--lift:hover { transform: translateY(-4px); }
.card--center { text-align: center; }
.card--center .icon-badge { margin-inline: auto; width: 3rem; height: 3rem; border-radius: var(--radius-2xl); }
.card--center .card-title { font-size: 0.9375rem; }
.card--center .card-desc { font-size: 0.8125rem; }
.card-learn-more { margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 500; color: hsl(var(--primary)); }
.card-link-overlay { position: absolute; inset: 0; z-index: 1; }

/* ---------- Team Grid (Meet the Team page) ---------- */
.team-leaders-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  text-align: center;
  margin-bottom: 1.5rem;
}
.team-leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto 3.5rem;
}
.team-leader-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 2rem 2.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--primary) / 0.2);
  background: linear-gradient(180deg, hsl(var(--primary) / 0.06), hsl(var(--card)) 55%);
  transition: all 0.3s ease;
}
.team-leader-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.1), 0 8px 10px -6px hsl(var(--primary) / 0.1);
  transform: translateY(-4px);
}
.team-leader-avatar-ring {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  padding: 4px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}
.team-leader-avatar-ring img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: contain;
  background: hsl(var(--card));
  display: block;
  border: 3px solid hsl(var(--card));
}
.team-leader-name { font-size: 1.375rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.team-leader-role {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.team-grid { display: grid; gap: 1.5rem; }
.team-card {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  transition: all 0.3s ease;
}
.team-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.05), 0 8px 10px -6px hsl(var(--primary) / 0.05);
  transform: translateY(-3px);
}
.team-avatar {
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid hsl(var(--border) / 0.5);
  background: hsl(var(--muted));
  transition: border-color 0.3s ease;
}
.team-card:hover .team-avatar { border-color: hsl(var(--primary) / 0.4); }
.team-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.team-name { font-size: 0.9375rem; font-weight: 600; color: hsl(var(--foreground)); }
.team-role { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* ---------- Contact modal ("Book A Free Discovery Call" popup) ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999999; /* clears #wpadminbar + .site-header the same way .event-lightbox does */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.contact-modal[hidden] { display: none; }
body.contact-modal-open { overflow: hidden; }
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(220 25% 6% / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: 88vh;
  overflow-y: auto;
  background: hsl(var(--card));
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  padding: 2.5rem;
  animation: slide-up 0.2s ease-out;
}
.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.contact-modal-close:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.contact-modal-close svg.icon { width: 1.125rem; height: 1.125rem; }
.contact-modal-header { margin-bottom: 1.5rem; padding-right: 2rem; }
.contact-modal-title { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.contact-modal-subtitle { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

@media (max-width: 767px) {
  .contact-modal { padding: 1rem; }
  .contact-modal-dialog { padding: 1.75rem; max-height: 92vh; }
  .contact-modal-title { font-size: 1.25rem; }
}

/* ---------- Press Grid (Press Coverage cards) ---------- */
.press-grid { display: grid; gap: 1.75rem; }
.press-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.press-card:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.05); transform: translateY(-4px); }
.press-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: hsl(var(--muted)); }
.press-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.press-card-meta { display: flex; align-items: center; gap: 0.875rem; }
.press-card-publication { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: hsl(var(--primary)); }
.press-card-date { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.press-card-date svg.icon { width: 0.875rem; height: 0.875rem; }
.press-card-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: hsl(var(--foreground)); }
.press-card-excerpt { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; flex: 1; }
.press-card-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary)); margin-top: 0.25rem; }
.press-card-link svg.icon { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.press-card-link:hover svg.icon { transform: translateX(3px); }
.press-grid-view-all { display: flex; justify-content: center; margin-top: 2.5rem; }

.ambitionbox-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ambitionbox-badges img {
  max-height: 150px;
}

@media (max-width: 1023px) {
  .press-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
  .press-grid { grid-template-columns: 1fr !important; }
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover .card-hover-overlay { opacity: 0.04; }

.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15));
  color: hsl(var(--primary));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.icon-badge svg.icon { width: 1.375rem; height: 1.375rem; }
.card:hover .icon-badge, .group:hover .icon-badge { transform: scale(1.1); }

/* Stacked icon cards (icon above heading — e.g. "Our Service Domains"): give the
   icon room to breathe before the title. Scoped to direct-child .icon-badges only
   and excludes .pain-card/.solution-card, whose icon sits beside the text in a
   row layout (see class-pain-solution-grid.php) and would get an unwanted gap. */
.card:not(.pain-card):not(.solution-card) > .icon-badge { margin-bottom: 1.25rem; }

.card-title { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--delay, 0ms); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-x { opacity: 0; transform: translateX(-1rem); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--delay, 0ms); }
.reveal-x.is-visible { opacity: 1; transform: translateX(0); }

/* ---------- Float / glow / particle animations (ported verbatim) ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
@keyframes float-diagonal { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(20px, -25px); } 66% { transform: translate(-15px, -10px); } }
@keyframes float-reverse { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 25px); } }
@keyframes glow-sweep { 0%, 100% { opacity: 0.3; transform: scaleX(0.8); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes caret-blink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scan-line { 0% { transform: translateY(-20%); opacity: 0; } 40% { opacity: 0.5; } 100% { transform: translateY(520%); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.float-animation { animation: float 6s ease-in-out infinite; }
.float-animation-delayed { animation: float 6s ease-in-out 2s infinite; }
.float-animation-slow { animation: float-diagonal 10s ease-in-out infinite; }
.float-animation-reverse { animation: float-reverse 8s ease-in-out 1s infinite; }
.glow-line-animation { animation: glow-sweep 4s ease-in-out infinite; }

.animate-slide-up { animation: slide-up 0.8s ease-out forwards; }
.animate-slide-up-delay-1 { animation: slide-up 0.8s ease-out 0.1s forwards; opacity: 0; }
.animate-slide-up-delay-2 { animation: slide-up 0.8s ease-out 0.2s forwards; opacity: 0; }
.animate-slide-up-delay-3 { animation: slide-up 0.8s ease-out 0.3s forwards; opacity: 0; }
.animate-slide-up-delay-4 { animation: slide-up 0.8s ease-out 0.4s forwards; opacity: 0; }

.animate-caret { animation: caret-blink 1.1s steps(1, end) infinite; }
.animate-scan-line { animation: scan-line 7s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(hsl(var(--border)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border)) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, hsl(var(--primary) / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--primary) / 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, hsl(0 0% 0%) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, hsl(0 0% 0%) 20%, transparent 75%);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

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

.site-logo img { height: 2.25rem; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { color: hsl(var(--foreground)); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}
.nav-dropdown-trigger:hover { color: hsl(var(--foreground)); }
.nav-dropdown-trigger svg.icon { width: 0.875rem; height: 0.875rem; transition: transform 0.2s ease; }
.nav-dropdown.is-open .nav-dropdown-trigger svg.icon { transform: rotate(180deg); }

.nav-dropdown-panel {
  /* Unstyled and un-clipped on purpose: this box's own top margin is the
     visual gap between the trigger and the visible card below, and it
     needs to stay part of a continuously-hoverable DOM subtree (see
     Intellinez_Desktop_Nav_Walker::start_lvl()) so crossing that gap with
     the mouse never triggers a leave/re-enter flicker. All real card
     styling lives on .nav-dropdown-panel-inner instead. */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  z-index: 50;
  display: none;
}
.nav-dropdown.is-open .nav-dropdown-panel { display: block; }

.nav-dropdown-panel-inner {
  border-radius: var(--radius-xl);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 20px 25px -5px hsl(var(--foreground) / 0.05), 0 8px 10px -6px hsl(var(--foreground) / 0.05);
  overflow: hidden;
  animation: slide-up 0.15s ease-out;
}

.nav-dropdown-panel--services { width: 20rem; }
.nav-dropdown-panel--industries { width: 16rem; }
.nav-dropdown-panel--resources { width: 14rem; }
.nav-dropdown-panel--company { width: 18rem; }
.nav-dropdown-panel--careers { width: 14rem; }
.nav-dropdown-panel .nav-dropdown-panel-inner { padding-block: 0.5rem; }

.nav-dropdown-group-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-dropdown-divider { height: 1px; background: hsl(var(--border)); margin: 0.375rem 0.75rem; }

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown-link svg.icon { width: 1rem; height: 1rem; }
.nav-dropdown-link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.nav-dropdown-link.is-active { color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); font-weight: 500; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-mobile-toggle { display: none; position: relative; width: 1.5rem; height: 1.5rem; }
.nav-mobile-toggle svg.icon { width: 1.5rem; height: 1.5rem; position: absolute; top: 0; left: 0; }
.nav-mobile-toggle .nav-mobile-icon-close { display: none; }
.nav-mobile-toggle.is-open .nav-mobile-icon-menu { display: none; }
.nav-mobile-toggle.is-open .nav-mobile-icon-close { display: block; }

.nav-mobile-menu { display: none; }

.nav-mobile-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--muted-foreground)); padding: 0.5rem 0;
}
.nav-mobile-accordion-trigger svg.icon { width: 0.875rem; height: 0.875rem; transition: transform 0.2s ease; }
.nav-mobile-accordion.is-open .nav-mobile-accordion-trigger svg.icon { transform: rotate(180deg); }

.nav-mobile-accordion-panel {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid hsl(var(--border) / 0.5);
  display: flex; flex-direction: column; gap: 0.125rem;
  margin-bottom: 0.25rem;
  display: none;
}
.nav-mobile-accordion.is-open .nav-mobile-accordion-panel { display: flex; }

.nav-mobile-group-label { font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 0 0.25rem; }

.nav-mobile-link {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; padding: 0.375rem 0;
  color: hsl(var(--muted-foreground));
}
.nav-mobile-link svg.icon { width: 0.875rem; height: 0.875rem; }
.nav-mobile-link.is-active { color: hsl(var(--primary)); font-weight: 500; }

.nav-mobile-plain-link { display: block; font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 0.5rem 0; }
.nav-mobile-cta { margin-top: 0.5rem; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb-row { margin-bottom: 1rem; }
.breadcrumb-row--center { display: flex; justify-content: center; }
.breadcrumb-link { color: hsl(var(--muted-foreground)); transition: color 0.2s ease; }
.breadcrumb-link:hover { color: hsl(var(--foreground)); }
.breadcrumb-sep { width: 0.875rem; height: 0.875rem; opacity: 0.5; }
.breadcrumb-current { color: hsl(var(--foreground)); font-weight: 500; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: 8rem; padding-bottom: 5rem; }
.hero-scanline { position: absolute; top: 0; left: 0; right: 0; height: 6rem; background: linear-gradient(to bottom, transparent, hsl(var(--primary) / 0.1), transparent); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.hero-orb-a { top: 2.5rem; left: 5%; width: 400px; height: 400px; }
.hero-orb-b { bottom: 2.5rem; right: 5%; width: 450px; height: 450px; }

.hero-inner { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: hsl(var(--primary)); animation: pulse-dot 2s ease-in-out infinite; }
.hero-badge-label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-title-dim { color: hsl(var(--muted-foreground) / 0.4); }
.hero-subtitle { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; max-width: 32rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero-trust-block { margin-top: 3rem; }
.hero-trust-label { font-size: 0.75rem; font-weight: 500; color: hsl(var(--muted-foreground) / 0.6); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.hero-trust-item svg.icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.hero-trust-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: hsl(var(--primary) / 0.5); }

.hero-visual { position: relative; height: 480px; border-radius: var(--radius-3xl); border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card) / 0.5); overflow: hidden; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.typewriter-caret { display: inline-block; width: 3px; margin-left: 2px; background: currentColor; }

/* ==========================================================================
   Services section (home)
   ========================================================================== */
.services-grid { max-width: 64rem; margin-inline: auto; }
.services-orb-a { top: 5rem; right: 10%; width: 300px; height: 300px; }
.services-orb-b { bottom: 5rem; left: 5%; width: 350px; height: 350px; }
.service-group-card { position: relative; overflow: hidden; }
.service-group-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.service-group-title { font-size: 1.375rem; font-weight: 600; }
.service-group-desc { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.service-item-list { display: flex; flex-direction: column; gap: 0.75rem; }
.service-item-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-lg);
  background: hsl(var(--muted) / 0.5);
  transition: background 0.2s ease;
}
.service-item-link:hover { background: hsl(var(--primary) / 0.08); }
.service-item-link svg.icon:first-child { width: 1.125rem; height: 1.125rem; color: hsl(var(--primary)); }
.service-item-label { flex: 1; font-size: 0.9375rem; font-weight: 500; }
.service-item-arrow { width: 1rem; height: 1rem; opacity: 0; transform: translateX(-4px); transition: all 0.2s ease; }
.service-item-link:hover .service-item-arrow { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   How It Works (timeline)
   ========================================================================== */
.builtfor-orb-a { top: 4rem; left: 12%; width: 300px; height: 300px; }
.builtfor-orb-b { bottom: 5rem; right: 8%; width: 320px; height: 320px; }
.builtfor-section .section-subtitle { max-width: 36rem; margin-inline: auto; }
.builtfor-grid { max-width: 64rem; margin-inline: auto; margin-bottom: 3.5rem; }

.howitworks-orb-a { top: 2.5rem; left: 15%; width: 250px; height: 250px; filter: blur(80px); }
.howitworks-orb-b { bottom: 2.5rem; right: 10%; width: 300px; height: 300px; }
.timeline { position: relative; margin-top: 3rem; max-width: 56rem; margin-inline: auto; }
.timeline-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.timeline-card-heading { display: flex; flex-direction: column; }
.timeline-card-title { font-size: 1.125rem; font-weight: 700; }
.timeline-connector { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, hsl(var(--primary) / 0.4), hsl(var(--accent) / 0.4)); transform: translateX(-50%); }
.timeline-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; }
.timeline-row:last-child { margin-bottom: 0; }
/* Zigzag: card hugs the center spine and mirrors text/icon order on alternating sides — matches the source's isLeft/!isLeft split. */
.timeline-row:not(.timeline-row--reverse) .timeline-card { grid-column: 1; grid-row: 1; margin-left: auto; text-align: right; }
.timeline-row--reverse .timeline-card { grid-column: 3; grid-row: 1; margin-right: auto; text-align: left; }
.timeline-row:not(.timeline-row--reverse) .timeline-card-head { flex-direction: row-reverse; justify-content: flex-end; }
.timeline-row--reverse .timeline-card-head { justify-content: flex-start; }
.timeline-dot {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: hsl(var(--card)); border: 2px solid hsl(var(--primary) / 0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: hsl(var(--primary));
  position: relative; z-index: 2;
  grid-column: 2;
  grid-row: 1;
}
.timeline-card { max-width: 24rem; }
.timeline-card-week { font-size: 0.75rem; font-weight: 600; color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-advantages { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3.5rem; }
.timeline-advantage-pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 9999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font-size: 0.875rem; font-weight: 500; }
.timeline-advantage-pill svg.icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }

/* ==========================================================================
   AI vs SaaS comparison table
   ========================================================================== */
.whyus-orb-a { top: 5rem; left: 8%; width: 350px; height: 350px; }
.whyus-orb-b { bottom: 2.5rem; right: 12%; width: 280px; height: 280px; }
.whyus-grid { max-width: 64rem; margin-inline: auto; }

.aivssaas-orb-a { top: 6rem; right: 5%; width: 320px; height: 320px; }
.aivssaas-orb-b { bottom: 4rem; left: 8%; width: 280px; height: 280px; }
.compare-table { margin-top: 2.5rem; max-width: 56rem; margin-inline: auto; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: stretch; margin-bottom: 0.75rem; }
.compare-row--header { margin-bottom: 1.5rem; }
.compare-header-label { align-self: center; font-weight: 600; color: hsl(var(--muted-foreground)); }
.compare-header-pill { text-align: center; padding: 0.75rem; border-radius: var(--radius-lg); font-weight: 600; }
.compare-header-pill--positive { background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent))); color: hsl(var(--primary-foreground)); }
.compare-header-pill--negative { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.compare-feature-label { align-self: center; font-weight: 500; font-size: 0.9375rem; }
.compare-cell { display: flex; align-items: center; gap: 0.625rem; padding: 1rem; border-radius: var(--radius-lg); font-size: 0.875rem; }
.compare-cell--positive { background: hsl(var(--primary) / 0.06); }
.compare-cell--negative { background: hsl(var(--destructive) / 0.05); }
.compare-icon { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compare-icon--positive { background: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
.compare-icon--negative { background: hsl(var(--destructive) / 0.15); color: hsl(var(--destructive)); }
.compare-icon svg.icon { width: 1rem; height: 1rem; }

/* ==========================================================================
   Case studies (home preview + full listing/detail)
   ========================================================================== */
.casestudies-orb-a { top: 5rem; right: 5%; width: 350px; height: 350px; }
.casestudies-orb-b { bottom: 5rem; left: 8%; width: 300px; height: 300px; }
.casestudies-list { max-width: 64rem; margin-inline: auto; }
.casestudies-cta { text-align: center; margin-top: 1.5rem; }
.case-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; }
.case-card:last-child { margin-bottom: 0; }
.case-card--reverse .case-card-media { order: 2; }
.case-card-media { border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 4 / 3; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; }
.case-industry-pill { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--primary)); padding: 0.25rem 0.75rem; border-radius: 9999px; background: hsl(var(--primary) / 0.08); margin-bottom: 0.75rem; }
.case-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.case-card-excerpt { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; line-height: 1.6; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.case-metric { display: flex; flex-direction: column; gap: 0.25rem; }
.case-metric-icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); margin-bottom: 0.25rem; }
.case-metric-value { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; }
.case-metric-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.case-card-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: hsl(var(--primary)); }
.case-card-link svg.icon { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.case-card-link:hover svg.icon { transform: translateX(4px); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-orb-a { top: 4rem; left: 10%; width: 300px; height: 300px; }
.testimonials-orb-b { bottom: 4rem; right: 8%; width: 350px; height: 350px; }
.testimonials-wrap { position: relative; margin-top: 2.5rem; }
.testimonial-track {
  display: flex; gap: 1.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 340px; scroll-snap-align: start;
  border-radius: var(--radius-2xl); border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card)); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.testimonial-stars { display: flex; gap: 0.125rem; color: hsl(45 93% 55%); margin-bottom: 1rem; }
.testimonial-stars svg.icon { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial-quote { font-size: 0.9375rem; line-height: 1.7; color: hsl(var(--foreground)); flex: 1; margin: 0px 0px 1.5rem 0px; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

.testimonial-fade { position: absolute; top: 0; bottom: 0; width: 4rem; pointer-events: none; z-index: 2; }
.testimonial-fade--left { left: 0; background: linear-gradient(to right, hsl(var(--background)), transparent); }
.testimonial-fade--right { right: 0; background: linear-gradient(to left, hsl(var(--background)), transparent); }

.testimonial-arrows { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.testimonial-arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.testimonial-arrow svg.icon { width: 1.125rem; height: 1.125rem; }
.testimonial-arrow:hover:not(:disabled) { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.testimonial-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ---------- Photo Carousel (gallery + lightbox) ---------- */
.photo-carousel-wrap { position: relative; }
.photo-carousel-track {
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: none;
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-item {
  flex: 0 0 15rem;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.photo-carousel-item:hover { border-color: hsl(var(--primary) / 0.4); transform: translateY(-3px); }
.photo-carousel-item:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.photo-carousel-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-carousel-fade { position: absolute; top: 0; bottom: 0.75rem; width: 4rem; pointer-events: none; z-index: 2; }
.photo-carousel-fade--left { left: 0; background: linear-gradient(to right, hsl(var(--background)), transparent); }
.photo-carousel-fade--right { right: 0; background: linear-gradient(to left, hsl(var(--background)), transparent); }

.photo-carousel-arrows { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.25rem; }
.photo-carousel-arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.photo-carousel-arrow svg.icon { width: 1.125rem; height: 1.125rem; }
.photo-carousel-arrow:hover:not(:disabled) { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.photo-carousel-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-orb-a { top: 5rem; left: 5%; width: 350px; height: 350px; filter: blur(120px); }
.pricing-orb-b { bottom: 5rem; right: 10%; width: 300px; height: 300px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; align-items: start; max-width: 64rem; margin-inline: auto; }
.pricing-plan-name { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: hsl(var(--primary)); }
.pricing-card.is-featured .pricing-plan-name { color: hsl(var(--primary-foreground) / 0.7); }
.pricing-card {
  position: relative; border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card));
  padding: 2rem; display: flex; flex-direction: column; overflow: hidden;
}
.pricing-card.is-featured { background: hsl(var(--foreground)); color: hsl(var(--primary-foreground)); transform: scale(1.03); border-color: transparent; }
.pricing-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.pricing-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(110deg, transparent 30%, hsl(0 0% 100% / 0.08) 45%, hsl(0 0% 100% / 0.08) 55%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.pricing-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-desc { font-size: 0.875rem; opacity: 0.8; margin-bottom: 1.5rem; }
.pricing-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; }
.pricing-feature svg.icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); margin-top: 0.125rem; flex-shrink: 0; }
.pricing-card.is-featured .pricing-feature svg.icon { color: hsl(var(--primary)); }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-orb-a { top: 5rem; left: 10%; width: 300px; height: 300px; }
.faq-orb-b { bottom: 5rem; right: 10%; width: 250px; height: 250px; }
.accordion { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; max-width: 48rem; margin-inline: auto; }
.accordion-item { border: 1px solid hsl(var(--border) / 0.6); border-radius: var(--radius-xl); background: hsl(var(--card)); transition: all 0.2s ease; overflow: hidden; }
.accordion-item.is-open { border-color: hsl(var(--primary) / 0.4); box-shadow: 0 20px 25px -5px hsl(var(--foreground) / 0.08); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; font-weight: 500; font-size: 1rem; }
.accordion-item.is-open .accordion-trigger { color: hsl(var(--primary)); }
.accordion-trigger svg.icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; transition: transform 0.2s ease; color: hsl(var(--muted-foreground)); }
.accordion-item.is-open .accordion-trigger svg.icon { transform: rotate(180deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel-content { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contactform-orb-a { top: 5rem; right: 10%; width: 300px; height: 300px; }
.contactform-orb-b { bottom: 5rem; left: 8%; width: 320px; height: 320px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 64rem; margin-inline: auto; }
.contact-copy .section-subtitle { margin-bottom: 2rem; }
.contact-checklist { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-checklist-item { display: flex; align-items: center; gap: 0.75rem; }
.contact-checklist-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: hsl(var(--primary) / 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-checklist-icon svg.icon { width: 0.875rem; height: 0.875rem; color: hsl(var(--primary)); }
.contact-checklist-text { font-size: 0.875rem; font-weight: 500; }

.contact-form-card { border-radius: var(--radius-2xl); border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card)); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.form-label svg.icon { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); }
.form-input, .form-textarea {
  width: 100%; border-radius: var(--radius-md); border: 1px solid hsl(var(--input));
  background: hsl(var(--background)); padding: 0.625rem 0.875rem; font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2); }
.form-input.has-error, .form-textarea.has-error { border-color: hsl(var(--destructive)); }
.form-textarea { min-height: 120px; resize: none; }
.form-error { font-size: 0.75rem; color: hsl(var(--destructive)); }
.form-hint { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; }
.form-submit-spinner { width: 1rem; height: 1rem; border: 2px solid hsl(var(--primary-foreground) / 0.3); border-top-color: hsl(var(--primary-foreground)); border-radius: 50%; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1), 0 4px 6px -4px hsl(var(--foreground) / 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, color 0.2s ease, border-color 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.4); }
.back-to-top svg.icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Toast ---------- */
.toast-viewport { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  min-width: 300px; max-width: 380px; border-radius: var(--radius-xl);
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  box-shadow: 0 20px 25px -5px hsl(var(--foreground) / 0.1), 0 8px 10px -6px hsl(var(--foreground) / 0.1);
  padding: 1rem 1.25rem;
  transform: translateY(1rem); opacity: 0;
  transition: all 0.3s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.toast-desc { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; }
.footer-inner { position: relative; z-index: 1; }
.footer-orb-a { top: 5rem; left: 10%; width: 400px; height: 400px; }
.footer-orb-b { top: 10rem; right: 5%; width: 350px; height: 350px; }
.footer-cta { text-align: center; max-width: 48rem; margin-inline: auto; }
.footer-cta .section-heading { font-size: 2.5rem; margin-top: 1.5rem; }
.footer-cta .section-subtitle { max-width: 36rem; margin-inline: auto; margin-bottom: 2.5rem; }
.footer-logo-badge { display: inline-flex; margin-bottom: 1rem; }
.footer-logo-badge img { height: 3.25rem; width: auto; }
.footer-band { background: hsl(var(--foreground)); color: hsl(0 0% 100% / 0.8); position: relative; }
.footer-band-accent { height: 4px; background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent))); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-block: 4rem; }
.footer-brand-desc { font-size: 0.875rem; line-height: 1.7; max-width: 22rem; }
.footer-col-title { font-family: var(--font-display); font-weight: 600; color: hsl(0 0% 100%); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: hsl(0 0% 100%); }
.footer-contact-item { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-contact-item svg.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid hsl(0 0% 100% / 0.1); padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: hsl(0 0% 100%); }

/* ==========================================================================
   Service / Industry template pages
   ========================================================================== */
/* Internal page header: sized to its content, not the viewport — the old
   min-height:70vh forced a near-empty band above the fold on every service/
   industry page regardless of how little copy the title/subtitle needed. */
.page-hero { display: flex; align-items: center; padding-top: 7rem; padding-bottom: 2.5rem; position: relative; }
.page-hero-orb-a { top: 2.5rem; left: 5%; width: 400px; height: 400px; }
.page-hero-orb-b { bottom: 2.5rem; right: 5%; width: 450px; height: 450px; }
.page-hero-content { position: relative; z-index: 10; max-width: 48rem; margin-inline: auto; text-align: center; }
.page-hero-title { font-size: 3.75rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem; margin-top: 0.5rem; }
.page-hero-subtitle { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; max-width: 40rem; margin-inline: auto; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.text-destructive { color: hsl(var(--destructive)); }
.eyebrow--destructive { color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / 0.2); background: hsl(var(--destructive) / 0.05); }
.section-heading--md { font-size: 2rem; }
.pain-solution-grid { max-width: 56rem; margin-inline: auto; }
.solutions-orb { top: 5rem; right: 8%; width: 300px; height: 300px; }

.pain-card, .solution-card { display: flex; gap: 1rem; align-items: flex-start; }
.pain-card .icon-badge { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); }
.solution-card .icon-badge { background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15)); color: hsl(var(--primary)); width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); }
.pain-card .card-title, .solution-card .card-title { font-size: 1rem; }

.stats-band-bg { position: absolute; inset: 0; background: linear-gradient(to right, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05), hsl(var(--primary) / 0.05)); }
.stats-grid { text-align: center; max-width: 48rem; margin-inline: auto; }
.stat-value { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }

.mini-case-card { border-radius: var(--radius-2xl); border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card)); padding: 2.5rem; max-width: 48rem; margin-inline: auto; }
.mini-case-card .eyebrow { margin-bottom: 1rem; }
.mini-case-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.mini-case-result { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; line-height: 1.6; }
.mini-case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.mini-case-metric { text-align: center; }
.mini-case-metric-value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.mini-case-metric-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.mini-case-tags { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.tag-pill { font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.875rem; border-radius: 9999px; background: hsl(var(--primary) / 0.08); color: hsl(var(--primary)); }

.final-cta { text-align: center; max-width: 40rem; margin-inline: auto; }
.final-cta-orb { bottom: 5rem; left: 10%; width: 300px; height: 300px; }
.final-cta .section-subtitle { max-width: 36rem; margin-inline: auto; margin-bottom: 2.5rem; }

/* ==========================================================================
   Blog / Case Studies — listing pages
   ========================================================================== */
.content-hero { padding-top: 7rem; padding-bottom: 2rem; position: relative; text-align: left; }
.content-hero-inner { max-width: 48rem; }
.content-hero-title { font-size: 3.75rem; font-weight: 700; line-height: 1.1; margin-bottom: 0.75rem; margin-top: 0.5rem; }
.content-hero-subtitle { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 42rem; }
.bloghero-orb-a, .casehero-orb-a { top: 2.5rem; left: 5%; width: 400px; height: 400px; }
.bloghero-orb-b, .casehero-orb-b { bottom: 0; right: 5%; width: 420px; height: 420px; }

.featured-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid hsl(var(--border) / 0.5); margin-bottom: 4rem; }
.featured-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.featured-card-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-card-link { position: absolute; inset: 0; z-index: 1; }
.featured-card-title { font-size: 1.75rem; font-weight: 700; margin: 0.75rem 0; }
.featured-card-excerpt { color: hsl(var(--muted-foreground)); line-height: 1.6; margin-bottom: 1rem; }
.featured-card-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.filter-pill { padding: 0.5rem 1.125rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); transition: all 0.2s ease; }
.filter-pill:hover { border-color: hsl(var(--primary) / 0.4); color: hsl(var(--foreground)); }
.filter-pill.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

.content-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.filter-select-wrap { position: relative; display: inline-flex; align-items: center; }
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 12rem;
  padding: 0.625rem 2.5rem 0.625rem 1.125rem;
  border-radius: var(--radius-xl);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.filter-select:hover, .filter-select:focus { border-color: hsl(var(--primary) / 0.4); outline: none; }
.filter-select-icon {
  position: absolute;
  right: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.content-grid-count { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.content-grid-count span { color: hsl(var(--foreground)); font-weight: 600; }

.featured-post-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  margin-bottom: 3rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.featured-post-card:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.05); }
.featured-post-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: hsl(var(--muted)); }
.featured-post-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.featured-post-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
}
.featured-post-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.featured-post-category { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--primary)); }
.featured-post-title { font-size: 1.875rem; font-weight: 700; line-height: 1.3; color: hsl(var(--foreground)); }
.featured-post-excerpt { font-size: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.featured-post-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }

.blog-grid { max-width: 64rem; margin-inline: auto; }
.blog-view-all { text-align: center; margin-top: 1.5rem; }
.blog-orb-a { top: 5rem; left: 8%; width: 300px; height: 300px; }
.blog-orb-b { bottom: 5rem; right: 10%; width: 320px; height: 320px; }

.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.content-card { position: relative; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card)); transition: all 0.3s ease; display: flex; flex-direction: column; }
.content-card:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.05); transform: translateY(-4px); }
.content-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: hsl(var(--muted)); }
.content-card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.content-card-badge { position: absolute; top: 1rem; left: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 9999px; background: hsl(var(--primary) / 0.9); color: hsl(var(--primary-foreground)); }
.content-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.content-card-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.content-card-excerpt { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; flex: 1; }
.content-card-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; border-top: 1px solid hsl(var(--border) / 0.5); padding-top: 0.75rem; justify-content: space-between; }
.content-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border) / 0.5); }
.content-card-metric-value { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.content-card-metric-label { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }

.content-cta { text-align: center; margin-top: 2rem; padding: 2.5rem; border-radius: var(--radius-2xl); }
.content-cta .section-heading { font-size: 1.75rem; }
.content-cta .section-subtitle { margin-bottom: 1.75rem; }

/* ==========================================================================
   Blog post / Case study — detail pages
   ========================================================================== */
.article-header { padding-top: 7rem; padding-bottom: 1.5rem; position: relative; }
.articlehero-orb-a { top: 2.5rem; left: 5%; width: 380px; height: 380px; }
.articlehero-orb-b { bottom: 0; right: 8%; width: 380px; height: 380px; }
.casearticle-orb { top: 2.5rem; right: 5%; width: 380px; height: 380px; }
.article-category { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--primary)); background: hsl(var(--primary) / 0.08); padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; }
.article-category--bordered { background: hsl(var(--primary) / 0.1); border: 1px solid hsl(var(--primary) / 0.2); }
.article-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; max-width: 100%; }
.article-title--wide { max-width: 56rem; }
.article-excerpt { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 44rem; margin-bottom: 1.5rem; }
.article-excerpt--wide { max-width: 52rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.article-meta--bordered { border-top: 1px solid hsl(var(--border) / 0.5); padding-top: 1.5rem; }
.article-meta-item { display: flex; align-items: center; gap: 0.5rem; }
.article-meta-author { font-weight: 500; color: hsl(var(--foreground)); }
.article-meta-item svg.icon { width: 1rem; height: 1rem; }

.article-cover { border-radius: var(--radius-2xl); overflow: hidden; margin-bottom: 3rem; aspect-ratio: 3 / 2; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
/* Defensive: this class is meant for a <div class="article-cover"><img></div>
   wrapper (blog/case-study covers above). Where content instead puts the class
   directly on an <img> (e.g. in-page content images), the 21/9 aspect-ratio has
   no object-fit to crop against and stretches the image to fit the box. Higher
   specificity than the rule above lets natural, unstretched sizing win whenever
   that happens, on any page. */
img.article-cover { aspect-ratio: auto; height: auto; object-fit: unset; }

/* About Us intro: cap the photo to a sane width and vertically center it
   against the copy next to it, instead of stretching to fill its 1fr column
   and top-aligning against much taller text. Scoped via :has()/[alt] to just
   this specific image so it doesn't touch other .grid-2 rows elsewhere. */
.grid-2:has(> div > img.article-cover[alt="About Us"]) { align-items: center; }
img.article-cover[alt="About Us"] { max-width: 400px; }

/* Stacked, full-width: no left/right sidebar column. The TOC (when present)
   is its own full-width section above the article body, not a side rail —
   both children are 100% wide, with the actual reading measure controlled
   by their own inner max-width instead of a grid track. */
.article-layout { width: 100%; display: flex; flex-direction: column; gap: 2rem; }
.article-sidebar { width: 100%; }
.article-body { width: 100%; max-width: 1200px; margin-inline: auto; }
.article-body--fluid { max-width: none; }

/* ---------- Article body: base typography for plain post content ----------
   Unlike .article-section (a hand-authored Elementor pattern), this covers
   whatever the_content() actually outputs for a normal WordPress post —
   classic editor, block editor, or imported HTML — with no special classes
   required per post. */
.article-body > *:first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: hsl(var(--foreground));
  scroll-margin-top: 6rem; /* clears the fixed header when a TOC link jumps here */
}
.article-body h2 { font-size: 1.75rem; line-height: 1.25; margin-top: 2.75rem; margin-bottom: 1rem; }
.article-body h3 { font-size: 1.375rem; line-height: 1.3; margin-top: 2.25rem; margin-bottom: 0.875rem; }
.article-body h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p { font-size: 1rem; line-height: 1.8; color: hsl(var(--foreground) / 0.85); margin: 0 0 1.25rem; text-align: justify; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { line-height: 1.7; color: hsl(var(--foreground) / 0.85); }
.article-body li > ul, .article-body li > ol { margin-top: 0.5rem; margin-bottom: 0; }
/* Some imported posts wrap a heading in its own single-item <ol> purely to
   get an auto-numbered prefix ("2. Data & Compliance Mapping") — the list
   marker otherwise renders at the <li>'s own small body-text size instead of
   matching the heading it's numbering. */
.article-body li:has(> h2) { font-size: 1.75rem; font-weight: 700; color: hsl(var(--foreground)); }
.article-body li:has(> h3) { font-size: 1.375rem; font-weight: 700; color: hsl(var(--foreground)); }
.article-body li:has(> h4) { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); }
.article-body li:has(> h2, > h3, > h4) { line-height: 1.3; }
.article-body a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 0.15em; }
.article-body a:hover { opacity: 0.85; }
.article-body strong, .article-body b { font-weight: 600; color: hsl(var(--foreground)); }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-xl); margin: 2rem auto; }
.article-body figure { margin: 2rem auto; text-align: center; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); text-align: center; margin-top: 0.5rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 3px solid hsl(var(--primary)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: hsl(var(--primary) / 0.05); font-style: italic; color: hsl(var(--foreground) / 0.9); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 2.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9375rem; }
.article-body th, .article-body td { padding: 0.75rem 1rem; border: 1px solid hsl(var(--border)); text-align: left; }
.article-body th { background: hsl(var(--muted)); font-weight: 600; }
.article-body code { font-family: monospace; font-size: 0.875em; background: hsl(var(--muted)); padding: 0.15em 0.4em; border-radius: 0.25rem; }
.article-body pre { background: hsl(var(--foreground)); color: hsl(0 0% 100%); padding: 1.25rem; border-radius: var(--radius-lg); overflow-x: auto; margin: 2rem 0; }
.article-body pre code { background: none; padding: 0; color: inherit; }

/* Auto-detected CTA sections — see intellinez_wrap_cta_sections(). */
.article-cta-box {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
}
.article-cta-box > *:first-child { margin-top: 0; }
.article-cta-box > *:last-child { margin-bottom: 0; }
.article-cta-box h2 { margin-top: 0; }

.article-section { margin-bottom: 2.5rem; }
.article-section-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.article-section p { color: hsl(var(--foreground) / 0.85); line-height: 1.8; margin-bottom: 1rem; }
.article-bullets { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.article-bullet { display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.6; }
.article-bullet svg.icon { width: 1.125rem; height: 1.125rem; color: hsl(var(--primary)); margin-top: 0.2rem; flex-shrink: 0; }

.article-quote { border-radius: var(--radius-2xl); padding: 2rem; border-left: 3px solid hsl(var(--primary)); }
.article-quote-icon { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); margin-bottom: 1rem; }
.article-quote-text { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.25rem; }
.article-quote-author { font-weight: 500; font-size: 0.875rem; }
.article-quote-role { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.sidebar-card { width: 100%; max-width: 1200px; margin-inline: auto; border-radius: var(--radius-xl); border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card)); padding: 1.5rem 1.75rem; }
.sidebar-card-title { font-size: 0.975rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }
.sidebar-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Table of contents (single.php, auto-generated) ----------
   Real nested <ul>s (see intellinez_render_toc_list()): H3s sit inside a
   .toc-sublist under their H2, H4s under their H3, so indentation reads
   straight from the DOM/border rather than from per-level classes alone.
   Collapse/expand: .toc-panel animates via the same grid-template-rows
   0fr/1fr trick as .accordion-panel, toggled by .toc-card's is-open class. */
.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.25rem 0;
  text-align: left;
}
.toc-toggle-title { margin: 0; }
.toc-toggle-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; color: hsl(var(--muted-foreground)); transition: transform 0.2s ease; }
.toc-card.is-open .toc-toggle-icon { transform: rotate(180deg); }

.toc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.25s ease; }
.toc-card:not(.is-open) .toc-panel { grid-template-rows: 0fr; }
.toc-panel-inner { overflow: hidden; }
.toc-list { padding-top: 1.25rem; margin-top: 1rem; border-top: 1px solid hsl(var(--border) / 0.6); }

.toc-list, .toc-sublist { display: flex; flex-direction: column; gap: 0.875rem; }
.toc-sublist { margin: 0.75rem 0 0; padding-left: 1.5rem; border-left: none; }
.toc-item { line-height: 1; }
.toc-link { display: block; position: relative; padding: 0.125rem 0 0.125rem 1.125rem; line-height: 1.45; color: hsl(var(--muted-foreground)); transition: color 0.15s ease; }
.toc-link::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: hsl(var(--primary) / 0.5); transition: background-color 0.15s ease; }
.toc-link:hover { color: hsl(var(--primary)); }
.toc-link:hover::before { background: hsl(var(--primary)); }
.toc-item--h2 { font-weight: 600; }
.toc-item--h2 .toc-link { font-size: 1.05rem; }
.toc-item--h3 .toc-link { font-size: 1rem; font-weight: 500; }
.toc-item--h4 .toc-link { font-size: 0.975rem; font-weight: 400; }

.article-metrics-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2rem 0; margin-bottom: 2rem; border-top: 1px solid hsl(var(--border) / 0.5); border-bottom: 1px solid hsl(var(--border) / 0.5); text-align: center; }
.article-metrics-band .stat-value { font-size: 1.875rem; }
.tag-pill--outline { background: transparent; border: 1px solid hsl(var(--border) / 0.6); color: hsl(var(--muted-foreground)); }

.article-back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: hsl(var(--primary)); margin-top: 2rem; }
.article-back-link svg.icon { width: 1rem; height: 1rem; }

/* ---------- About Us: highlights checklist + brand logo strip ---------- */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.check-list-item { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; color: hsl(var(--foreground)); line-height: 1.5; }
.check-list-item .icon { color: hsl(var(--primary)); flex-shrink: 0; margin-top: 0.125rem; width: 1.125rem; height: 1.125rem; }

/* Auto-scrolling logo carousel. Markup starts as a flat list of <img> tags;
   logo-strip.js wraps them in .logo-strip-track and duplicates the set once so
   the 0%/-50% keyframe loops seamlessly. Degrades to a plain wrapped row (no
   JS) since the base .logo-strip/img rules below hold either way. */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
  overflow: hidden;
}
.logo-strip.is-carousel {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-strip-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5rem;
  padding-right: 5rem;
  animation: logo-marquee 46s linear infinite;
}
.logo-strip.is-carousel:hover .logo-strip-track { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-strip img {
  /* Sized so ~4 logos sit in view at once inside the 1400px container,
     instead of the previous cramped 6-7. */
  max-height: 3.5rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-strip img:hover { opacity: 1; filter: grayscale(0); }
@media (prefers-reduced-motion: reduce) {
  .logo-strip-track { animation: none; }
}

.related-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.article-footer-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 3rem; }
.article-footer-ctas--start { justify-content: flex-start; }
.featured-card-body .content-card-metrics { max-width: 20rem; }
.featured-card-body .content-card-metric-value { font-size: 1.125rem; }

/* ---------- Misc shared ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.ambitionbox-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ambitionbox-badges img {
  max-height: 150px;
}