/*
 * components.css — Firmeza Design System
 *
 * Reusable UI components. Each component is self-contained.
 * All values reference tokens from variables.css.
 *
 * ┌──────────────────────────────────────────────────────────────────┐
 * │  Components                                                      │
 * │  1.  Button System                                               │
 * │  2.  Badge / Chip / Tag                                          │
 * │  3.  Card System                                                 │
 * │      3a. Base Card                                               │
 * │      3b. Service Card                                            │
 * │      3c. Portfolio Card                                          │
 * │      3d. Testimonial Card                                        │
 * │      3e. Stat Card                                               │
 * │      3f. Tech Card                                               │
 * │  4.  Navbar Component                                            │
 * │  5.  Section Title / Eyebrow Block                               │
 * │  6.  CTA Block                                                   │
 * │  7.  Form Elements                                               │
 * │  8.  Divider                                                     │
 * │  9.  Timeline                                                    │
 * │  10. FAQ Accordion                                               │
 * │  11. Overlay / Modal                                             │
 * │  12. Cursor                                                      │
 * │  13. Toast / Notification                                        │
 * └──────────────────────────────────────────────────────────────────┘
 */

/* ════════════════════════════════════════════════════════════════════
   1. BUTTON SYSTEM
   ════════════════════════════════════════════════════════════════════ */

/* Base */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-2);
  padding:         0.6875rem var(--space-6);   /* 11px 24px */
  font-family:     var(--font-ui);
  font-size:       var(--text-button);
  font-weight:     var(--weight-semibold);
  letter-spacing:  var(--tracking-wide);
  line-height:     1;
  border-radius:   var(--radius-full);
  border:          1.5px solid transparent;
  cursor:          pointer;
  white-space:     nowrap;
  user-select:     none;
  position:        relative;
  overflow:        hidden;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color            var(--duration-fast) var(--ease-out),
    border-color     var(--duration-fast) var(--ease-out),
    box-shadow       var(--duration-base) var(--ease-out),
    transform        var(--duration-fast) var(--ease-spring);
}

.btn:focus-visible {
  outline:        none;
  box-shadow:     var(--glow-focus);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity:        0.4;
  cursor:         not-allowed;
  pointer-events: none;
}

/* ── Primary ── */
.btn--primary {
  background-color: var(--color-primary);
  color:            var(--color-white);
  border-color:     var(--color-primary);
  box-shadow:       var(--shadow-button-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color:     var(--color-primary-hover);
  box-shadow:       var(--shadow-button-primary-hover);
  transform:        var(--hover-lift-sm);
}

/* ── Secondary ── */
.btn--secondary {
  background-color: var(--color-bg);
  color:            var(--color-text-primary);
  border-color:     var(--color-border-strong);
  box-shadow:       var(--shadow-button);
}

.btn--secondary:hover {
  background-color: var(--color-bg-subtle);
  border-color:     var(--color-zinc-400);
  box-shadow:       var(--shadow-sm);
  transform:        var(--hover-lift-sm);
}

/* ── Outline ── */
.btn--outline {
  background-color: transparent;
  color:            var(--color-brand-600);
  border-color:     var(--color-brand-600);
}

.btn--outline:hover {
  background-color: var(--color-brand-50);
  border-color:     var(--color-brand-700);
  color:            var(--color-brand-700);
}

/* ── Ghost ── */
.btn--ghost {
  background-color: transparent;
  color:            var(--color-text-secondary);
  border-color:     transparent;
}

.btn--ghost:hover {
  background-color: var(--color-bg-muted);
  color:            var(--color-text-primary);
}

/* ── Dark (for dark section backgrounds) ── */
.btn--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color:            var(--color-white);
  border-color:     rgba(255, 255, 255, 0.2);
  backdrop-filter:  blur(8px);
}

.btn--dark:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color:     rgba(255, 255, 255, 0.32);
  transform:        var(--hover-lift-sm);
}

/* ── Sizes ── */
.btn--sm {
  padding:   0.4375rem var(--space-4);   /* 7px 16px */
  font-size: var(--text-button-sm);
}

.btn--lg {
  padding:   0.875rem var(--space-8);   /* 14px 32px */
  font-size: var(--text-button-lg);
}

.btn--xl {
  padding:   var(--space-4) var(--space-10);
  font-size: var(--text-body);
}

/* ── Icon Button ── */
.btn--icon {
  padding:       0.6875rem;
  border-radius: var(--radius-md);
}

.btn--icon.btn--sm  { padding: 0.5rem;  }
.btn--icon.btn--lg  { padding: 0.875rem; }

/* Icon inside any button */
.btn svg {
  width:  1em;
  height: 1em;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   2. BADGE / CHIP / TAG
   ════════════════════════════════════════════════════════════════════ */

/* Base badge */
.badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-1);
  padding:        var(--space-1) var(--space-3);
  font-family:    var(--font-ui);
  font-size:      var(--text-2xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius:  var(--radius-full);
  border:         1px solid transparent;
  white-space:    nowrap;
}

/* Badge variants */
.badge--default {
  background: var(--color-bg-muted);
  color:      var(--color-text-secondary);
  border-color: var(--color-border);
}

.badge--brand {
  background:   var(--color-brand-50);
  color:        var(--color-brand-700);
  border-color: var(--color-brand-200);
}

.badge--success {
  background:   var(--color-success-light);
  color:        var(--color-success-dark);
}

.badge--warning {
  background:   var(--color-warning-light);
  color:        var(--color-warning-dark);
}

.badge--error {
  background:   var(--color-error-light);
  color:        var(--color-error-dark);
}

.badge--dark {
  background:   var(--color-zinc-900);
  color:        var(--color-zinc-200);
  border-color: var(--color-zinc-700);
}

/* Dot indicator inside badge */
.badge__dot {
  width:         6px;
  height:        6px;
  border-radius: var(--radius-full);
  background:    currentColor;
  flex-shrink:   0;
}

/* ── Chip (interactive, dismissible) ── */
.chip {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-1-5);
  padding:        var(--space-1-5) var(--space-3);
  font-size:      var(--text-xs);
  font-weight:    var(--weight-medium);
  border-radius:  var(--radius-full);
  background:     var(--color-bg-muted);
  color:          var(--color-text-secondary);
  border:         1px solid var(--color-border);
  cursor:         default;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color     var(--duration-fast) var(--ease-out);
}

.chip--interactive {
  cursor: pointer;
}

.chip--interactive:hover {
  background:  var(--color-brand-50);
  border-color: var(--color-brand-300);
  color:        var(--color-brand-700);
}

.chip--selected {
  background:   var(--color-brand-600);
  color:        var(--color-white);
  border-color: var(--color-brand-600);
}

/* ── Tag ── */
.tag {
  display:       inline-block;
  padding:       var(--space-0-5) var(--space-2);
  font-size:     var(--text-xs);
  font-weight:   var(--weight-medium);
  border-radius: var(--radius-sm);
  background:    var(--color-bg-muted);
  color:         var(--color-text-tertiary);
  border:        1px solid var(--color-border);
}

/* ════════════════════════════════════════════════════════════════════
   3. CARD SYSTEM
   ════════════════════════════════════════════════════════════════════ */

/* ── 3a. Base Card ── */
.card {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow:      hidden;
  position:      relative;
  transition:
    box-shadow var(--duration-moderate) var(--ease-out),
    transform  var(--duration-moderate) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.card--hoverable:hover {
  box-shadow:   var(--shadow-card-hover);
  transform:    var(--hover-lift);
  border-color: var(--color-border-strong);
}

.card__inner {
  padding: var(--space-8);
}

.card__media {
  width:       100%;
  aspect-ratio: 16 / 9;
  object-fit:  cover;
  display:     block;
}

.card__tag {
  margin-bottom: var(--space-4);
}

.card__title {
  font-family:   var(--font-heading);
  font-size:     var(--text-h4);
  font-weight:   var(--weight-semibold);
  line-height:   var(--leading-snug);
  color:         var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
}

.card__footer {
  padding:     var(--space-4) var(--space-8);
  border-top:  1px solid var(--color-border);
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
}

/* ── 3b. Service Card ── */
.card--service {
  background:    var(--color-surface);
  border-radius: var(--radius-2xl);
  padding:       var(--space-8);
  border:        1px solid var(--color-border);
  position:      relative;
  overflow:      hidden;
}

/* Subtle top gradient line on hover */
.card--service::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     2px;
  background: var(--gradient-brand);
  opacity:    0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.card--service:hover::before {
  opacity: 1;
}

.card--service:hover {
  border-color: var(--color-border-brand);
  box-shadow:   var(--shadow-card-hover);
  transform:    var(--hover-lift);
}

.card--service .service-icon {
  width:         48px;
  height:        48px;
  border-radius: var(--radius-md);
  background:    var(--color-brand-50);
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color:         var(--color-brand-600);
  transition:    background-color var(--duration-base) var(--ease-out);
}

.card--service:hover .service-icon {
  background: var(--color-brand-100);
}

/* ── 3c. Portfolio Card ── */
.card--portfolio {
  border-radius: var(--radius-2xl);
  overflow:      hidden;
  background:    var(--color-zinc-950);
  position:      relative;
}

.card--portfolio .card__media {
  aspect-ratio:  4 / 3;
  transition:    transform var(--duration-slow) var(--ease-out);
}

.card--portfolio:hover .card__media {
  transform: scale(1.04);
}

.card--portfolio .card__overlay {
  position:         absolute;
  inset:            0;
  background:       linear-gradient(to top, rgba(9,9,11,0.9) 0%, transparent 60%);
  display:          flex;
  flex-direction:   column;
  justify-content:  flex-end;
  padding:          var(--space-8);
  opacity:          0;
  transition:       opacity var(--duration-moderate) var(--ease-out);
}

.card--portfolio:hover .card__overlay {
  opacity: 1;
}

/* ── 3d. Testimonial Card ── */
.card--testimonial {
  padding:       var(--space-8);
  border-radius: var(--radius-2xl);
  border:        1px solid var(--color-border);
  background:    var(--color-surface);
  position:      relative;
}

/* Large decorative quote mark */
.card--testimonial::before {
  content:       '\201C';
  position:      absolute;
  top:           var(--space-4);
  right:         var(--space-6);
  font-size:     6rem;
  line-height:   1;
  font-family:   var(--font-display);
  font-weight:   var(--weight-black);
  color:         var(--color-brand-100);
  pointer-events: none;
  user-select:   none;
}

.card--testimonial .testimonial__quote {
  font-size:      var(--text-body-lg);
  font-style:     italic;
  line-height:    var(--leading-relaxed);
  color:          var(--color-text-secondary);
  margin-bottom:  var(--space-6);
  position:       relative;
  z-index:        1;
}

.card--testimonial .testimonial__author {
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
}

.card--testimonial .testimonial__avatar {
  width:         44px;
  height:        44px;
  border-radius: var(--radius-full);
  object-fit:    cover;
  flex-shrink:   0;
}

.card--testimonial .testimonial__name {
  font-size:   var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
}

.card--testimonial .testimonial__role {
  font-size: var(--text-xs);
  color:     var(--color-text-tertiary);
}

/* ── 3e. Stat Card ── */
.card--stat {
  padding:       var(--space-8);
  border-radius: var(--radius-xl);
  border:        1px solid var(--color-border);
  background:    var(--color-surface);
  text-align:    center;
}

.card--stat .stat__number {
  font-family:    var(--font-display);
  font-size:      var(--text-display-lg);
  font-weight:    var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  line-height:    1;
  color:          var(--color-brand-500);
  margin-bottom:  var(--space-2);
}

.card--stat .stat__label {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  font-weight: var(--weight-medium);
}

.card--stat .stat__description {
  font-size:    var(--text-xs);
  color:        var(--color-text-tertiary);
  margin-top:   var(--space-2);
}

/* ── 3f. Tech Card ── */
.card--tech {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-3);
  padding:        var(--space-6);
  border-radius:  var(--radius-xl);
  border:         1px solid var(--color-border);
  background:     var(--color-surface);
  text-align:     center;
  transition:
    border-color  var(--duration-fast) var(--ease-out),
    box-shadow    var(--duration-base) var(--ease-out),
    transform     var(--duration-base) var(--ease-spring);
}

.card--tech:hover {
  border-color: var(--color-border-brand);
  box-shadow:   var(--glow-brand);
  transform:    var(--hover-lift-sm);
}

.card--tech .tech__icon {
  width:  48px;
  height: 48px;
  object-fit: contain;
}

.card--tech .tech__name {
  font-size:   var(--text-sm);
  font-weight: var(--weight-medium);
  color:       var(--color-text-secondary);
}

/* ════════════════════════════════════════════════════════════════════
   4. NAVBAR COMPONENT
   ════════════════════════════════════════════════════════════════════ */

#site-header {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    var(--z-navbar);
  height:     var(--navbar-height);
  transition:
    height        var(--duration-moderate) var(--ease-out),
    background    var(--duration-moderate) var(--ease-out),
    box-shadow    var(--duration-moderate) var(--ease-out),
    backdrop-filter var(--duration-moderate) var(--ease-out);
}

/* Transparent on page top */
#site-header {
  background:      transparent;
}

/* Glass effect on scroll */
#site-header.is-scrolled {
  height:          var(--navbar-height-scroll);
  background:      var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow:      var(--shadow-navbar);
  border-bottom:   1px solid var(--glass-border);
}

#navbar {
  height:           100%;
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  padding-inline:   var(--container-px);
  max-width:        var(--container-2xl);
  margin-inline:    auto;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.navbar__logo {
  display:     flex;
  align-items: center;
  gap:         var(--space-2-5);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-mark { border-radius: 8px; display: block; }

/* Logo image — sized by height, width auto keeps the true aspect ratio */
.navbar__logo img {
  display: block;
  height:  34px;
  width:   auto;
}
#site-header.is-scrolled .navbar__logo img { height: 30px; }

/* Two logo variants swapped by surface tone:
   – on-dark (white logo): over the dark hero, and dark theme always
   – on-light (colored logo): only when the header goes glass-light on scroll */
.navbar__logo .navbar__logo-img--on-light { display: none; }
[data-theme="light"] #site-header.is-scrolled .navbar__logo-img--on-dark  { display: none; }
[data-theme="light"] #site-header.is-scrolled .navbar__logo-img--on-light { display: block; }

.navbar__logo-text {
  font-family:    var(--font-display);
  font-weight:    800;
  font-size:      var(--text-h5);
  letter-spacing: -0.02em;
  color:          var(--color-text-primary);
}
.navbar__logo-accent { color: var(--color-brand-500); }

/* ── Desktop links — floating glass capsule ───────────────────────────── */
.navbar__nav {
  display:         flex;
  padding:         var(--space-1);
  border-radius:   var(--radius-full);
  background:      rgba(255, 255, 255, 0.05);
  border:          1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:      background var(--duration-moderate) var(--ease-out),
                   border-color var(--duration-moderate) var(--ease-out);
}

/* On scroll / light surfaces the capsule tints to the brand navy */
#site-header.is-scrolled .navbar__nav {
  background:   var(--color-surface-subtle, rgba(21, 67, 120, 0.04));
  border-color: var(--color-border);
}

.navbar__links {
  position:    relative;
  display:     flex;
  align-items: center;
  gap:         var(--space-0-5);
  list-style:  none;
  margin:      0;
  padding:     0;
}

/* The sliding gold capsule that tracks hover / rests on the active link */
.navbar__indicator {
  position:      absolute;
  top:           0;
  bottom:        0;
  left:          0;
  width:         0;
  border-radius: var(--radius-full);
  background:    rgba(110, 147, 190, 0.16);
  border:        1px solid rgba(110, 147, 190, 0.30);
  box-shadow:    0 2px 12px rgba(110, 147, 190, 0.12);
  opacity:       0;
  transform:     translateX(0);
  transition:    transform 380ms var(--ease-spring),
                 width     380ms var(--ease-spring),
                 opacity   220ms var(--ease-out);
  pointer-events: none;
  z-index:       0;
}

.navbar__item { position: relative; z-index: 1; }

.navbar__link {
  position:       relative;
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-1);
  font-family:    var(--font-body);
  font-size:      var(--text-sm);
  font-weight:    var(--font-medium);
  color:          var(--color-text-secondary);
  background:     none;
  border:         none;
  cursor:         pointer;
  padding:        var(--space-2) var(--space-3);
  border-radius:  var(--radius-full);
  white-space:    nowrap;
  transition:     color 180ms var(--ease-out);
}

.navbar__link:hover { color: var(--color-text-primary); }
.navbar__link.is-active { color: #6E93BE; font-weight: var(--weight-semibold); }

.navbar__chev { transition: transform 240ms var(--ease-out); }
.navbar__item--mega.is-open .navbar__chev { transform: rotate(180deg); }
.navbar__item--mega.is-open .navbar__mega-trigger { color: var(--color-text-primary); }

/* ── Solutions mega menu ──────────────────────────────────────────────── */
.navbar__mega {
  position:      fixed;
  top:           calc(var(--navbar-height) - 6px);
  left:          50%;
  transform:     translateX(-50%) translateY(8px);
  width:         min(860px, 94vw);
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow:    0 24px 60px rgba(12, 31, 53, 0.16), 0 4px 12px rgba(0,0,0,0.05);
  padding:       var(--space-6);
  opacity:       0;
  visibility:    hidden;
  pointer-events: none;
  transition:    opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 220ms;
  z-index:       var(--z-overlay);
}

#site-header.is-scrolled .navbar__mega { top: calc(var(--navbar-height-scroll) - 4px); }

.navbar__item--mega.is-open .navbar__mega {
  opacity:       1;
  visibility:    visible;
  pointer-events: auto;
  transform:     translateX(-50%) translateY(0);
}

.navbar__mega-inner {
  display:               grid;
  grid-template-columns: 1.4fr 1fr;
  gap:                   var(--space-6);
  padding:               0 !important;
  max-width:             none !important;
}

.navbar__mega-eyebrow {
  display:        block;
  font-size:      var(--text-2xs);
  font-weight:    700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color:          var(--color-text-tertiary);
  margin-bottom:  var(--space-3);
}

.navbar__mega-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--space-1);
  list-style:            none;
  margin:                0;
  padding:               0;
}

.mega-card {
  display:       flex;
  align-items:   flex-start;
  gap:           var(--space-3);
  padding:       var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:    background 180ms ease;
}
.mega-card:hover { background: var(--color-bg-subtle); }

.mega-card__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(21, 67, 120,0.10), rgba(21, 67, 120,0.10));
  color: var(--color-brand-500);
}

.mega-card__body { display: flex; flex-direction: column; gap: 1px; }
.mega-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); line-height: 1.3; }
.mega-card__desc { font-size: var(--text-xs); color: var(--color-text-tertiary); line-height: 1.4; }

/* Featured case study */
.navbar__mega-feature {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-2);
  padding:        var(--space-5);
  border-radius:  var(--radius-xl);
  background:     linear-gradient(155deg, #0c1f35 0%, #12233f 60%, #154378 100%);
  text-decoration: none;
  position:       relative;
  overflow:       hidden;
}

.mega-feature__label {
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.mega-feature__media {
  width: 100%; height: 92px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F59E0B, #FB923C);
  display: flex; align-items: center; justify-content: center;
  margin: var(--space-1) 0 var(--space-2);
}
.mega-feature__mono { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff; letter-spacing: 0.04em; }
.mega-feature__name { font-size: var(--text-body); font-weight: 700; color: #fff; }
.mega-feature__desc { font-size: var(--text-xs); color: rgba(255,255,255,0.7); line-height: 1.55; }
.mega-feature__tech { display: flex; gap: var(--space-1); margin-top: var(--space-1); }
.mega-feature__tech span {
  font-size: 11px; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full); padding: 2px 8px;
}
.mega-feature__cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: #6E93BE;
  margin-top: var(--space-3);
  transition: gap 200ms ease;
}
.navbar__mega-feature:hover .mega-feature__cta { gap: var(--space-3); }

/* ── Right-side actions ───────────────────────────────────────────────── */
.navbar__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* ── Theme toggle ─────────────────────────────────────────────────────── */
.navbar__theme-toggle {
  position:        relative;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  flex-shrink:     0;
  border-radius:   var(--radius-full);
  border:          1px solid var(--color-border);
  background:      var(--color-surface);
  color:           var(--color-text-secondary);
  cursor:          pointer;
  transition:
    color        var(--duration-base) var(--ease-out),
    background    var(--duration-base) var(--ease-out),
    border-color  var(--duration-base) var(--ease-out),
    transform     var(--duration-base) var(--ease-spring);
}
.navbar__theme-toggle:hover {
  color:        var(--color-brand-500);
  border-color: var(--color-border-brand);
  transform:    translateY(-1px);
}
.navbar__theme-icon { position: absolute; transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-spring); }
/* Show sun in dark mode (tap → go light); moon in light mode (tap → go dark) */
.navbar__theme-icon--sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.navbar__theme-icon--moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .navbar__theme-icon--sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .navbar__theme-icon--moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* Over-hero (transparent navbar) variant — glassy on the dark hero */
#site-header:not(.is-scrolled) .navbar__theme-toggle {
  background:   rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color:        rgba(255, 255, 255, 0.85);
}
#site-header:not(.is-scrolled) .navbar__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color:      #fff;
}

/* Hamburger — mobile only */
.navbar__hamburger {
  display:        none;
  flex-direction: column;
  gap:            5px;
  padding:        var(--space-2);
  border-radius:  var(--radius-sm);
  background:     none;
  border:         none;
  cursor:         pointer;
}

.hamburger__bar {
  display:          block;
  width:            22px;
  height:           2px;
  background-color: var(--color-text-primary);
  border-radius:    var(--radius-full);
  transition:
    transform var(--duration-moderate) var(--ease-spring),
    opacity   var(--duration-base)     var(--ease-out);
}
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Full-screen mobile menu ──────────────────────────────────────────── */
.navbar__mobile {
  position: fixed;
  inset:    0;
  background: var(--color-bg);
  padding:  calc(var(--navbar-height) + var(--space-6)) var(--container-px) var(--space-8);
  transform: translateY(-8px);
  opacity:  0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 300ms var(--ease-out), transform 340ms var(--ease-out), visibility 300ms;
  z-index:  var(--z-overlay);
  display:  flex;
  flex-direction: column;
}
.navbar__mobile.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.navbar__mobile-inner { display: flex; flex-direction: column; height: 100%; }

.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav__item { border-bottom: 1px solid var(--color-border); }

.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--text-h5); font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: var(--space-4) 0;
}
.mobile-nav__link .navbar__chev { width: 16px; height: 16px; }
.mobile-acc__trigger[aria-expanded="true"] .navbar__chev { transform: rotate(180deg); }

.mobile-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.mobile-nav__item.is-open .mobile-acc__panel { grid-template-rows: 1fr; }
.mobile-acc__inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; }

.mobile-sub__link {
  font-size: var(--text-body); color: var(--color-text-tertiary);
  text-decoration: none; padding: var(--space-2-5) 0 var(--space-2-5) var(--space-4);
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-1);
  transition: color 160ms ease, border-color 160ms ease;
}
.mobile-sub__link:last-child { margin-bottom: var(--space-4); }
.mobile-sub__link:hover { color: var(--color-brand-600); border-color: var(--color-violet-500); }

.navbar__mobile-footer { margin-top: auto; padding-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.navbar__mobile-cta { width: 100%; }
.navbar__mobile-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-body-sm); font-weight: 600; color: var(--color-text-secondary);
  text-decoration: none;
}
.navbar__mobile-contact svg { color: #1FA855; }

/* ════════════════════════════════════════════════════════════════════
   5. SECTION TITLE / EYEBROW BLOCK
   ════════════════════════════════════════════════════════════════════ */

.section-header {
  max-width:      680px;
  margin-bottom:  var(--space-16);
}

.section-header--center {
  margin-inline:  auto;
  text-align:     center;
}

.section-header .eyebrow {
  margin-bottom: var(--space-4);
}

.section-header__title {
  font-size:     var(--text-h2);
  font-weight:   var(--weight-bold);
  color:         var(--color-text-primary);
  margin-bottom: var(--space-4);
  line-height:   var(--leading-tight);
}

.section-header__body {
  font-size:   var(--text-body-lg);
  color:       var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
}

/* Decorative underline accent on section titles */
.section-header__title--underline {
  position: relative;
  display:  inline-block;
}

.section-header__title--underline::after {
  content:    '';
  position:   absolute;
  left:       0;
  bottom:     -6px;
  width:      60%;
  height:     3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

/* ════════════════════════════════════════════════════════════════════
   6. CTA BLOCK
   ════════════════════════════════════════════════════════════════════ */

.cta-block {
  background:    var(--gradient-dark);
  border-radius: var(--radius-3xl);
  padding:       var(--space-16) var(--space-12);
  text-align:    center;
  position:      relative;
  overflow:      hidden;
}

/* Ambient mesh glow */
.cta-block::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.cta-block__eyebrow {
  color:         var(--color-brand-300);
  margin-bottom: var(--space-4);
}

.cta-block__title {
  font-size:     var(--text-h2);
  font-weight:   var(--weight-bold);
  color:         var(--color-white);
  margin-bottom: var(--space-4);
  line-height:   var(--leading-tight);
  position:      relative;
}

.cta-block__body {
  font-size:     var(--text-body-lg);
  color:         var(--color-zinc-400);
  line-height:   var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width:     520px;
  margin-inline: auto;
  position:      relative;
}

.cta-block__actions {
  display:        flex;
  gap:            var(--space-4);
  justify-content: center;
  flex-wrap:      wrap;
  position:       relative;
}

/* ════════════════════════════════════════════════════════════════════
   7. FORM ELEMENTS
   ════════════════════════════════════════════════════════════════════ */

.form-group {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1-5);
}

.form-label {
  font-size:   var(--text-label);
  font-weight: var(--weight-medium);
  color:       var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
}

.form-label--required::after {
  content: ' *';
  color:   var(--color-error);
}

.form-input,
.form-textarea,
.form-select {
  width:           100%;
  padding:         var(--space-3) var(--space-4);
  font-family:     var(--font-body);
  font-size:       var(--text-body);
  color:           var(--color-text-primary);
  background:      var(--color-bg);
  border:          1.5px solid var(--color-border);
  border-radius:   var(--radius-md);
  outline:         none;
  appearance:      none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow   var(--duration-fast) var(--ease-out),
    background   var(--duration-fast) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-disabled);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-border-brand);
  box-shadow:   var(--glow-focus);
  background:   var(--color-bg);
}

.form-input--error  { border-color: var(--color-error); }
.form-input--success{ border-color: var(--color-success); }

.form-textarea {
  resize:     vertical;
  min-height: 140px;
  line-height: var(--leading-relaxed);
}

.form-hint {
  font-size: var(--text-xs);
  color:     var(--color-text-tertiary);
}

.form-error-msg {
  font-size: var(--text-xs);
  color:     var(--color-error);
}

/* ════════════════════════════════════════════════════════════════════
   8. DIVIDER
   ════════════════════════════════════════════════════════════════════ */

.divider {
  width:        100%;
  height:       1px;
  background:   var(--color-border);
  border:       none;
  margin-block: var(--space-12);
}

.divider--brand {
  height:      3px;
  width:       48px;
  background:  var(--gradient-brand);
  border-radius: var(--radius-full);
  margin:      0;
}

/* ════════════════════════════════════════════════════════════════════
   9. TIMELINE
   ════════════════════════════════════════════════════════════════════ */

.timeline {
  position:     relative;
  padding-left: var(--space-8);
  list-style:   none;
}

.timeline::before {
  content:      '';
  position:     absolute;
  left:         11px;
  top:          0;
  bottom:       0;
  width:        2px;
  background:   var(--color-border);
}

.timeline__item {
  position:     relative;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Dot */
.timeline__item::before {
  content:        '';
  position:       absolute;
  left:           calc(var(--space-8) * -1 + var(--space-2) * -0.5);
  top:            4px;
  width:          12px;
  height:         12px;
  border-radius:  var(--radius-full);
  background:     var(--color-brand-500);
  border:         3px solid var(--color-bg);
  box-shadow:     var(--glow-brand);
}

.timeline__date {
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color:          var(--color-text-brand);
  margin-bottom:  var(--space-1);
}

.timeline__title {
  font-size:     var(--text-body);
  font-weight:   var(--weight-semibold);
  color:         var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.timeline__body {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
}

/* ════════════════════════════════════════════════════════════════════
   10. FAQ ACCORDION
   ════════════════════════════════════════════════════════════════════ */

.faq {
  border-radius: var(--radius-xl);
  overflow:      hidden;
  border:        1px solid var(--color-border);
}

.faq__item {
  border-bottom:  1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__trigger {
  width:           100%;
  padding:         var(--space-6) var(--space-8);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-4);
  background:      none;
  border:          none;
  cursor:          pointer;
  text-align:      left;
  transition:      background-color var(--duration-fast) var(--ease-out);
}

.faq__trigger:hover {
  background: var(--color-bg-subtle);
}

.faq__question {
  font-size:   var(--text-body);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
}

.faq__icon {
  width:        20px;
  height:       20px;
  flex-shrink:  0;
  color:        var(--color-text-tertiary);
  transition:   transform var(--duration-base) var(--ease-spring);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  overflow:     hidden;
  max-height:   0;
  transition:   max-height var(--duration-moderate) var(--ease-out),
                padding    var(--duration-moderate) var(--ease-out);
}

.faq__item.is-open .faq__answer {
  max-height:    480px;
}

.faq__answer-inner {
  padding:       0 var(--space-8) var(--space-6);
  font-size:     var(--text-body-sm);
  color:         var(--color-text-tertiary);
  line-height:   var(--leading-relaxed);
}

/* ════════════════════════════════════════════════════════════════════
   11. OVERLAY / MODAL
   ════════════════════════════════════════════════════════════════════ */

.overlay {
  position:        fixed;
  inset:           0;
  z-index:         var(--z-overlay);
  background:      var(--color-bg-overlay);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         var(--space-4);
  opacity:         0;
  pointer-events:  none;
  transition:      opacity var(--duration-moderate) var(--ease-out);
  backdrop-filter: blur(4px);
}

.overlay.is-visible {
  opacity:        1;
  pointer-events: all;
}

.modal {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding:       var(--space-10) var(--space-10);
  max-width:     560px;
  width:         100%;
  z-index:       var(--z-modal);
  box-shadow:    var(--shadow-modal);
  transform:     translateY(16px) scale(0.98);
  transition:    transform var(--duration-moderate) var(--ease-spring);
}

.overlay.is-visible .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  margin-bottom: var(--space-6);
}

.modal__title {
  font-size:   var(--text-h4);
  font-weight: var(--weight-bold);
  color:       var(--color-text-primary);
}

.modal__close {
  position:      absolute;
  top:           var(--space-4);
  right:         var(--space-4);
  padding:       var(--space-2);
  border-radius: var(--radius-md);
  color:         var(--color-text-tertiary);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color            var(--duration-fast) var(--ease-out);
}

.modal__close:hover {
  background: var(--color-bg-muted);
  color:      var(--color-text-primary);
}

/* ════════════════════════════════════════════════════════════════════
   12. CURSOR (custom)
   ════════════════════════════════════════════════════════════════════ */

#cursor {
  position:       fixed;
  width:          8px;
  height:         8px;
  border-radius:  var(--radius-full);
  background:     var(--color-brand-500);
  pointer-events: none;
  z-index:        var(--z-cursor);
  transform:      translate(-50%, -50%);
  transition:
    width  var(--duration-base) var(--ease-spring),
    height var(--duration-base) var(--ease-spring),
    opacity var(--duration-fast) var(--ease-out);
}

#cursor-follower {
  position:        fixed;
  width:           36px;
  height:          36px;
  border-radius:   var(--radius-full);
  border:          1.5px solid var(--color-brand-500);
  pointer-events:  none;
  z-index:         var(--z-cursor);
  transform:       translate(-50%, -50%);
  opacity:         0.6;
  transition:
    width   var(--duration-moderate) var(--ease-spring),
    height  var(--duration-moderate) var(--ease-spring),
    opacity var(--duration-base)     var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

/* Expanded hover state */
#cursor.is-hovering {
  width:  12px;
  height: 12px;
  background: var(--color-brand-400);
}

#cursor-follower.is-hovering {
  width:        56px;
  height:       56px;
  opacity:      0.3;
  border-color: var(--color-brand-400);
}

/* Hidden when out of window */
#cursor:not(.is-visible),
#cursor-follower:not(.is-visible) {
  opacity: 0;
}

/* ════════════════════════════════════════════════════════════════════
   13. TOAST / NOTIFICATION
   ════════════════════════════════════════════════════════════════════ */

.toast-container {
  position:       fixed;
  bottom:         var(--space-6);
  right:          var(--space-6);
  z-index:        var(--z-toast);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
  pointer-events: none;
}

.toast {
  display:        flex;
  align-items:    center;
  gap:            var(--space-3);
  padding:        var(--space-4) var(--space-5);
  background:     var(--color-zinc-950);
  color:          var(--color-white);
  border-radius:  var(--radius-lg);
  border:         1px solid var(--color-zinc-800);
  box-shadow:     var(--shadow-xl);
  font-size:      var(--text-sm);
  font-weight:    var(--weight-medium);
  pointer-events: all;
  min-width:      280px;
  max-width:      380px;
  animation:      toastIn var(--duration-moderate) var(--ease-spring) both;
}

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

.toast__icon {
  width:       20px;
  height:      20px;
  flex-shrink: 0;
}

.toast--success .toast__icon { color: var(--color-success); }
.toast--warning .toast__icon { color: var(--color-warning); }
.toast--error   .toast__icon { color: var(--color-error);   }
.toast--info    .toast__icon { color: var(--color-info);    }


/* ═══════════════════════════════════════════════════════════════════════
   14 · NAVBAR — TRANSPARENT STATE OVERRIDES
   When navbar is transparent (over the dark hero), force light colors
   so text/icons remain legible against the dark background.
   .is-scrolled removes these overrides and restores glass + brand colors.
═══════════════════════════════════════════════════════════════════════ */

/* Transparent backdrop — no background, no shadow */
#site-header:not(.is-scrolled) {
  background:    transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:    none;
  border-bottom: none;
}

/* Logo — white on the dark hero */
#site-header:not(.is-scrolled) .navbar__logo-text  { color: #fff; }
#site-header:not(.is-scrolled) .navbar__logo-accent { color: var(--color-violet-400); }

/* Nav links — white over the dark hero; the gold capsule marks the active one */
#site-header:not(.is-scrolled) .navbar__link         { color: rgba(255, 255, 255, 0.80); }
#site-header:not(.is-scrolled) .navbar__link:hover   { color: #fff; }
#site-header:not(.is-scrolled) .navbar__link.is-active { color: #fff; }

/* CTA — inverts to a white button so it pops on the dark hero */
#site-header:not(.is-scrolled) .navbar__cta-btn {
  background:    #fff;
  color:         var(--color-brand-700);
  border-color:  #fff;
}
#site-header:not(.is-scrolled) .navbar__cta-btn:hover {
  background:    rgba(255, 255, 255, 0.90);
  color:         var(--color-brand-800);
  border-color:  rgba(255, 255, 255, 0.90);
}

/* Hamburger bars — white on dark */
#site-header:not(.is-scrolled) .hamburger__bar { background: #fff; }


/* ═══════════════════════════════════════════════════════════════════════
   15 · SCROLL PROGRESS BAR
   Fixed top bar, width driven by scroll.js via inline width property.
═══════════════════════════════════════════════════════════════════════ */

#scroll-progress {
  position:   fixed;
  top:        0;
  left:       0;
  width:      0%;           /* overridden by JS */
  height:     3px;
  background: var(--gradient-brand);
  z-index:    var(--z-toast);
  transform-origin: left center;
  transition: width 60ms linear;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════════
   16 · HERO SECTION
═══════════════════════════════════════════════════════════════════════ */

/* ── Base layout ──────────────────────────────────────────────────────── */

.hero {
  position:        relative;
  min-height:      100svh;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  /* Pull up behind the transparent navbar */
  margin-top:      calc(var(--navbar-height) * -1);
  padding-top:     calc(var(--navbar-height) + var(--space-16));
  padding-bottom:  0;
  background:      var(--gradient-dark);
  overflow:        hidden;
  isolation:       isolate;
}

.hero__container {
  position: relative;
  z-index:  1;
  flex:     1;
  display:  flex;
  align-items: center;
  width:    100%;
}

/* Centered single-column hero body */
.hero__inner {
  position:       relative;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            var(--space-6);
  max-width:      60rem;
  margin-inline:  auto;
  width:          100%;
}

/* Living aurora glow behind the headline — cool blue, adds life without gold */
.hero__inner::before {
  content:        '';
  position:       absolute;
  z-index:        -1;
  top:            2%;
  left:           50%;
  width:          min(720px, 96%);
  height:         46%;
  transform:      translateX(-50%);
  background:     radial-gradient(ellipse at center, rgba(64, 116, 200, 0.30) 0%, rgba(64, 116, 200, 0.10) 40%, transparent 72%);
  filter:         blur(46px);
  pointer-events: none;
  animation:      heroAurora 9s var(--ease-in-out) infinite;
}
@keyframes heroAurora {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1);    }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.14); }
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT HERO VARIANT (.hero--light) — homepage only
   Clean near-white canvas, dark navy type, and a fresh INDIGO accent that
   replaces gold in the hero. Scoped so inner-page heroes stay dark.
═══════════════════════════════════════════════════════════════════════ */
.hero--light {
  --hero-accent: #154378;              /* indigo — the new hero accent */
  --hero-accent-soft: rgba(21, 67, 120, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #eef1f8 100%);
}

/* Background decor → light-friendly */
.hero--light .hero__glow--1 { background: radial-gradient(circle, rgba(21, 67, 120, 0.12) 0%, transparent 70%); }
.hero--light .hero__glow--2 { background: radial-gradient(circle, rgba(21, 67, 120, 0.10) 0%, transparent 70%); }
.hero--light .hero__glow--3 { background: radial-gradient(circle, rgba(21, 67, 120, 0.08) 0%, transparent 70%); }
/* Blueprint grid — matches the service-page hero (major 96px + minor 24px
   drafting lines), masked to fade toward the edges. */
.hero--light .hero__grid {
  background-image:
    linear-gradient(to right,  rgba(21, 67, 120, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.085) 1px, transparent 1px),
    linear-gradient(to right,  rgba(21, 67, 120, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.038) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.hero--light .hero__grid::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(21, 67, 120, 0.055), rgba(21, 67, 120, 0.055)),
    linear-gradient(rgba(21, 67, 120, 0.035), rgba(21, 67, 120, 0.035));
  background-size: 96px 96px, 96px 96px;
  background-position: 288px 192px, 480px 384px;
  background-repeat: no-repeat;
  -webkit-mask-image: inherit;
          mask-image: inherit;
}

/* Aurora → soft indigo wash on white */
.hero--light .hero__inner::before {
  background: radial-gradient(ellipse at center, rgba(21, 67, 120, 0.16) 0%, rgba(21, 67, 120, 0.06) 40%, transparent 72%);
}

/* Headline & copy → dark */
.hero--light .hero__headline,
.hero--light .hero__serif { color: var(--color-brand-900, #0b2543); }
.hero--light .hero__underline em,
.hero--light .hero__underline { color: var(--hero-accent); }
.hero--light .hero__underline::after {
  background: linear-gradient(90deg, transparent, var(--hero-accent) 18%, #3D6BA0 50%, var(--hero-accent) 82%, transparent);
}
.hero--light .hero__sub { color: rgba(21, 34, 66, 0.66); }

/* Badge → light surface */
.hero--light .hero__badge {
  background: rgba(21, 34, 66, 0.04);
  border-color: rgba(21, 34, 66, 0.12);
  color: rgba(21, 34, 66, 0.78);
}
.hero--light .hero__badge:hover {
  background: rgba(21, 67, 120, 0.08);
  border-color: rgba(21, 67, 120, 0.35);
}
.hero--light .hero__badge-arrow { color: var(--hero-accent); }

/* Primary CTA → indigo (was navy/gold system); secondary → outlined dark */
.hero--light .hero__cta-primary {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(21, 67, 120, 0.28);
}
.hero--light .hero__cta-primary:hover {
  background: #0F3159;
  border-color: #0F3159;
}
.hero--light .hero__cta-secondary {
  color: var(--color-brand-900, #0b2543);
  border-color: rgba(21, 34, 66, 0.22);
}
.hero--light .hero__cta-secondary:hover {
  border-color: rgba(21, 34, 66, 0.4);
  background: rgba(21, 34, 66, 0.04);
}

/* Inline stats → dark */

/* Capability ribbon → light */
.hero--light .hero__ribbon {
  border-color: rgba(21, 34, 66, 0.10);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero--light .hero__ribbon-item { color: rgba(21, 34, 66, 0.55); }
.hero--light .hero__ribbon-sep  { color: var(--hero-accent); opacity: 0.5; }

/* ── Navbar over the light hero (top, not scrolled) → dark UI ──────────── */
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__link { color: rgba(21, 34, 66, 0.72); }
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__link:hover,
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__link.is-active { color: var(--color-brand-900, #0b2543); }
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__nav {
  background: rgba(21, 34, 66, 0.04);
  border-color: rgba(21, 34, 66, 0.10);
}
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__indicator {
  background: var(--hero-accent-soft);
  border-color: rgba(21, 67, 120, 0.30);
}
/* Show the colored logo (dark) instead of the white one */
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__logo-img--on-dark  { display: none; }
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__logo-img--on-light { display: block; }
/* Theme toggle + hamburger → dark on the light hero */
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__theme-toggle {
  background: rgba(21, 34, 66, 0.05);
  border-color: rgba(21, 34, 66, 0.14);
  color: rgba(21, 34, 66, 0.75);
}
body:has(.hero--light) #site-header:not(.is-scrolled) .hamburger__bar { background: var(--color-brand-900, #0b2543); }
/* CTA button in the navbar → indigo */
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__cta-btn {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #fff;
}
body:has(.hero--light) #site-header:not(.is-scrolled) .navbar__cta-btn:hover {
  background: #0F3159;
  border-color: #0F3159;
}

/* Live status badge */
.hero__badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-2);
  padding:        var(--space-2) var(--space-3) var(--space-2) var(--space-3);
  border-radius:  var(--radius-full);
  background:     rgba(255, 255, 255, 0.05);
  border:         1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family:    var(--font-body);
  font-size:      var(--text-sm);
  font-weight:    var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color:          rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition:     background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-spring);
}
.hero__badge:hover { background: rgba(255,255,255,0.09); border-color: rgba(110, 147, 190,0.4); transform: translateY(-1px); }
.hero__badge-dot {
  position: relative;
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: heroDotGlow 2.4s var(--ease-in-out) infinite;
}
/* Two staggered radar rings that expand and fade — a live "available" signal */
.hero__badge-dot::before,
.hero__badge-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.55);
  animation: heroPing 2.2s var(--ease-out) infinite;
  pointer-events: none;
}
.hero__badge-dot::after { animation-delay: 1.1s; }
@keyframes heroPing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.6); opacity: 0;   }
}
@keyframes heroDotGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50%      { box-shadow: 0 0 9px 1px rgba(34, 197, 94, 0.55); }
}
.hero__badge-arrow { color: #6E93BE; transition: transform 200ms var(--ease-out); }
.hero__badge:hover .hero__badge-arrow { transform: translateX(3px); }

/* Inline honest proof */
/* Stat blocks — big count-up number over a small label, thin separators */
.hero__stats {
  display:        flex;
  flex-wrap:      wrap;
  align-items:    stretch;
  justify-content: center;
  gap:            var(--space-6) var(--space-8);
  margin:         var(--space-4) 0 0;
}
.hero__stat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            2px;
}
.hero__stat-num {
  margin:         0;
  font-family:    var(--font-display);
  font-size:      clamp(1.75rem, 3vw, 2.5rem);
  font-weight:    var(--weight-extrabold);
  line-height:    1;
  letter-spacing: var(--tracking-tight);
  color:          #fff;
  font-variant-numeric: tabular-nums;   /* no width jitter while counting */
}
.hero__stat-label {
  font-size:      var(--text-body-sm);
  font-weight:    var(--weight-medium);
  letter-spacing: 0.01em;
  color:          rgba(255, 255, 255, 0.6);
}
.hero__stat-sep {
  width:          1px;
  align-self:     center;
  height:         38px;
  background:     linear-gradient(180deg, transparent, rgba(255,255,255,0.22), transparent);
}

/* Light-hero variant → navy number, muted label, navy divider */
.hero--light .hero__stat-num   { color: var(--color-brand-900, #0b2543); }
.hero--light .hero__stat-label { color: rgba(21, 34, 66, 0.55); }
.hero--light .hero__stat-sep {
  background: linear-gradient(180deg, transparent, rgba(21, 67, 120, 0.22), transparent);
}

@media (max-width: 480px) {
  .hero__stat-sep { display: none; }
  .hero__stats { gap: var(--space-5) var(--space-7); }
}

/* Self-scrolling capability ribbon */
.hero__ribbon {
  position:     relative;
  z-index:      1;
  width:        100%;
  margin-top:   var(--space-14);
  padding-block: var(--space-4);
  border-top:   1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow:     hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:   linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__ribbon-track {
  display:      flex;
  align-items:  center;
  gap:          var(--space-6);
  width:        max-content;
  animation:    marqueeLTR 34s linear infinite;
}
.hero__ribbon:hover .hero__ribbon-track { animation-play-state: paused; }
.hero__ribbon-item {
  font-family:    var(--font-display);
  font-size:      clamp(1.125rem, 2vw, 1.75rem);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color:          rgba(255, 255, 255, 0.68);
  white-space:    nowrap;
}
.hero__ribbon-sep { color: rgba(255, 255, 255, 0.22); font-size: 0.7em; }

.hero__layout {
  display:        grid;
  grid-template-columns: 1fr;
  gap:            var(--space-16);
  align-items:    center;
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

@media (min-width: 1280px) {
  .hero__layout {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-16);
  }
}


/* ── Background: glows + dot grid ────────────────────────────────────── */

.hero__bg {
  position:  absolute;
  inset:     0;
  z-index:   0;
  overflow:  hidden;
  pointer-events: none;
}

/* Ambient glow blobs */
.hero__glow {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(80px);
  pointer-events: none;
}

.hero__glow--1 {
  width:      560px;
  height:     560px;
  top:        -120px;
  left:       -80px;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.22) 0%, transparent 70%);
  animation:  glowPulse 8s ease-in-out infinite;
}

.hero__glow--2 {
  width:      480px;
  height:     480px;
  top:        40%;
  right:      -100px;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.18) 0%, transparent 70%);
  animation:  glowPulse 11s ease-in-out infinite reverse;
}

.hero__glow--3 {
  width:      320px;
  height:     320px;
  bottom:     -60px;
  left:       38%;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.14) 0%, transparent 70%);
  animation:  glowPulse 14s ease-in-out infinite 3s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* Dot grid overlay */
.hero__grid {
  position:         absolute;
  inset:            0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size:  28px 28px;
  mask-image:       radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}


/* ── Copy column ─────────────────────────────────────────────────────── */

.hero__copy {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-7);
}

.hero__eyebrow-wrap {
  display: flex;
}

/* Eyebrow gets a subtle pill container on hero */
.hero .eyebrow {
  padding:       var(--space-1-5) var(--space-4);
  background:    rgba(21, 67, 120, 0.12);
  border:        1px solid rgba(21, 67, 120, 0.28);
  border-radius: var(--radius-full);
  color:         var(--color-brand-400);
  font-size:     var(--text-label);
}

/* Headline */
.hero__headline {
  display:        flex;
  flex-direction: column;
  gap:            0;
  font-family:    var(--font-display);
  font-size:      var(--text-display-3xl);
  font-weight:    var(--weight-extrabold);
  line-height:    0.98;
  letter-spacing: var(--tracking-tightest);
  color:          #fff;
  margin:         0;
}

/* Each headline line is a block-level span for staggered animation */
.hero__line {
  display: block;
}

/* Funky contrast: italic serif words set against the bold sans lines.
   This — not colour — is what makes the headline eye-catching. */
.hero__serif {
  font-family:    'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style:     italic;
  font-weight:    400;
  font-size:      1.08em;
  letter-spacing: normal;
  color:          #fff;
}

/* The one deliberate gold accent — a stroke that draws itself under "future" */
.hero__underline {
  position: relative;
  white-space: nowrap;
}
.hero__underline::after {
  content:       '';
  position:      absolute;
  left:          0.02em;
  right:         0.02em;
  bottom:        0.02em;
  height:        0.07em;
  border-radius: 3px;
  background:    linear-gradient(90deg, transparent, #6E93BE 18%, #A1BAD8 50%, #6E93BE 82%, transparent);
  transform:     scaleX(0);
  transform-origin: left center;
  animation:     heroUnderline 900ms var(--ease-out) 1.15s both;
}
@keyframes heroUnderline { to { transform: scaleX(1); } }

/* Legacy — no longer applied, kept harmless */
.hero__line--gradient { color: #6E93BE; }

/* Supporting paragraph */
.hero__sub {
  max-width:   54ch;
  color:       rgba(255, 255, 255, 0.62);
  font-size:   var(--text-body-lg);
  line-height: var(--leading-relaxed);
}

/* CTA group */
.hero__ctas {
  display:     flex;
  flex-wrap:   wrap;
  gap:         var(--space-4);
  align-items: center;
}

/* Trust ribbon under the CTAs */
.hero__trust {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.hero__trust-item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: rgba(21, 34, 66, 0.72);
}
.hero__trust-item span { font-size: 1em; }

/* Primary CTA — brand filled */
.hero__cta-primary {
  display:     inline-flex;
  align-items: center;
  gap:         var(--space-2);
}

.hero__cta-primary svg {
  transition: transform var(--duration-base) var(--ease-spring);
}

.hero__cta-primary:hover svg {
  transform: translateX(3px);
}

/* Secondary CTA — ghost on dark needs explicit colors */
.hero__cta-secondary {
  color:        rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero__cta-secondary:hover {
  color:        var(--color-zinc-50);
  background:   rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Stats row */
.hero__stats {
  display:    flex;
  align-items: center;
  gap:        var(--space-6);
  flex-wrap:  wrap;
  padding-top: var(--space-2);
}

.hero__stat {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1);
}

.hero__stat-number {
  font-family:    var(--font-display);
  font-size:      clamp(1.5rem, 2.5vw, 2rem);
  font-weight:    var(--weight-bold);
  line-height:    1;
  color:          var(--color-zinc-50);
}

.hero__stat-label {
  font-size:  var(--text-sm);
  color:      rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.hero__stat-divider {
  width:      1px;
  height:     36px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}


/* ── Visual column ───────────────────────────────────────────────────── */

.hero__visual {
  position: relative;
}

/* Hide visual on mobile, show on desktop */
@media (max-width: 1023px) {
  .hero__visual {
    display: none;
  }
}

.hero__visual-inner {
  position: relative;
}


/* ── Dashboard mockup (CSS art) ──────────────────────────────────────── */

.hero__mockup {
  border-radius: var(--radius-xl);
  background:    rgba(22, 22, 31, 0.85);
  border:        1px solid rgba(255, 255, 255, 0.1);
  overflow:      hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

/* Browser chrome bar */
.hero__mockup-bar {
  display:     flex;
  align-items: center;
  gap:         var(--space-2);
  padding:     var(--space-3) var(--space-4);
  background:  rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  display:       inline-block;
  flex-shrink:   0;
}

.mockup-dot--red    { background: #FF5F57; }
.mockup-dot--yellow { background: #FFBD2E; }
.mockup-dot--green  { background: #27C840; }

.mockup-url-bar {
  flex:          1;
  height:        18px;
  border-radius: var(--radius-sm);
  background:    rgba(255, 255, 255, 0.06);
  margin-left:   var(--space-2);
}

/* App shell — sidebar + main */
.hero__mockup-content {
  display: flex;
  height:  280px;
}

/* Sidebar */
.mockup-sidebar {
  width:          52px;
  flex-shrink:    0;
  background:     rgba(255, 255, 255, 0.03);
  border-right:   1px solid rgba(255, 255, 255, 0.06);
  padding:        var(--space-4) var(--space-3);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
}

.mockup-nav-item {
  height:        8px;
  border-radius: var(--radius-sm);
  background:    rgba(255, 255, 255, 0.12);
}

.mockup-nav-item--active {
  background: var(--color-brand-500);
  opacity:    0.8;
}

/* Main panel */
.mockup-main {
  flex:    1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap:     var(--space-4);
  overflow: hidden;
}

.mockup-header-row {
  display:     flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-title-block {
  width:         120px;
  height:        12px;
  border-radius: var(--radius-sm);
  background:    rgba(255, 255, 255, 0.18);
}

.mockup-action-btns {
  display: flex;
  gap:     var(--space-2);
}

.mockup-btn {
  width:         48px;
  height:        22px;
  border-radius: var(--radius-sm);
  background:    rgba(255, 255, 255, 0.08);
}

.mockup-btn--primary {
  background: var(--color-brand-600);
  opacity:    0.75;
}

/* Stat cards row */
.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap:     var(--space-3);
}

.mockup-stat-card {
  height:        48px;
  border-radius: var(--radius-md);
  background:    rgba(255, 255, 255, 0.06);
  border:        1px solid rgba(255, 255, 255, 0.07);
}

.mockup-stat-card--accent {
  background: rgba(21, 67, 120, 0.18);
  border-color: rgba(21, 67, 120, 0.3);
}

/* Chart + list row */
.mockup-chart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap:     var(--space-3);
  flex:    1;
  min-height: 0;
}

.mockup-chart {
  background:    rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding:       var(--space-3);
  border:        1px solid rgba(255, 255, 255, 0.06);
}

.mockup-chart-bars {
  display:     flex;
  align-items: flex-end;
  gap:         var(--space-2);
  height:      100%;
  padding:     var(--space-2) 0;
}

.mockup-bar {
  flex:          1;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  background:    rgba(255, 255, 255, 0.15);
  min-height:    8px;
}

/* Bar heights via nth-child (no inline styles) */
.mockup-bar:nth-child(1) { height: 38%; }
.mockup-bar:nth-child(2) { height: 62%; }
.mockup-bar:nth-child(3) { height: 80%; }
.mockup-bar:nth-child(4) { height: 50%; }
.mockup-bar:nth-child(5) { height: 90%; }
.mockup-bar:nth-child(6) { height: 44%; }
.mockup-bar:nth-child(7) { height: 72%; }

.mockup-bar--accent {
  background: linear-gradient(to top, var(--color-brand-600), var(--color-brand-400));
  opacity:    0.85;
}

/* Mini list */
.mockup-list {
  width:          72px;
  display:        flex;
  flex-direction: column;
  gap:            var(--space-2);
  padding-top:    var(--space-1);
}

.mockup-list-item {
  height:        28px;
  border-radius: var(--radius-sm);
  background:    rgba(255, 255, 255, 0.07);
}


/* ── Floating glass cards ─────────────────────────────────────────────── */

.hero__float-card {
  position:   absolute;
  background: rgba(22, 22, 31, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:     1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding:    var(--space-3) var(--space-4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  pointer-events: none;
}

/* Card 1: Deployment — top-left of visual */
.hero__float-card--1 {
  top:   -28px;
  left:  -36px;
  display: flex;
  align-items: center;
  gap:   var(--space-3);
  white-space: nowrap;
}

/* Card 2: Uptime — bottom-right of visual */
.hero__float-card--2 {
  bottom: -24px;
  right:  -32px;
  min-width: 160px;
}

/* Card 3: Active users — mid-right */
.hero__float-card--3 {
  /* Avoids transform conflict with JS parallax — use top % instead of transform */
  top:   38%;
  right: -44px;
  display: flex;
  align-items: center;
  gap:   var(--space-3);
  white-space: nowrap;
}

/* Float card internals — icon */
.float-card__icon {
  width:         28px;
  height:        28px;
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.float-card__icon--success {
  background: rgba(34, 197, 94, 0.18);
  color:      #22C55E;
  border:     1px solid rgba(34, 197, 94, 0.3);
}

/* Float card text */
.float-card__label {
  font-size:   var(--text-sm);
  font-weight: var(--weight-medium);
  color:       var(--color-zinc-100);
  line-height: 1.3;
}

.float-card__meta {
  font-size: var(--text-xs);
  color:     rgba(255, 255, 255, 0.45);
  margin-top: var(--space-0-5);
}

/* Card 2 internals — metric */
.float-card__metric {
  display:     flex;
  align-items: baseline;
  gap:         var(--space-1-5);
  margin-bottom: var(--space-1);
}

.float-card__value {
  font-family:    var(--font-display);
  font-size:      var(--text-h4);
  font-weight:    var(--weight-bold);
  color:          var(--color-zinc-50);
  line-height:    1;
}

.float-card__trend {
  font-size:  var(--text-sm);
  font-weight: var(--weight-semibold);
  color:      #22C55E;
}

.float-card__bar {
  height:        4px;
  background:    rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top:    var(--space-2);
  overflow:      hidden;
}

.float-card__bar-fill {
  height:        100%;
  width:         99.9%;
  background:    linear-gradient(to right, var(--color-brand-500), #22C55E);
  border-radius: var(--radius-full);
}

/* Card 3 internals — avatars */
.float-card__avatars {
  display:    flex;
  flex-shrink: 0;
}

.float-card__avatar {
  width:         24px;
  height:        24px;
  border-radius: 50%;
  border:        2px solid rgba(22, 22, 31, 0.85);
  background:    var(--color-brand-500);
  display:       inline-block;
}

.float-card__avatar:nth-child(1) { background: var(--color-brand-400); margin-right: -8px; z-index: 3; position: relative; }
.float-card__avatar:nth-child(2) { background: var(--color-violet-400, #a78bfa); margin-right: -8px; z-index: 2; position: relative; }
.float-card__avatar:nth-child(3) { background: var(--color-brand-600); z-index: 1; position: relative; }

.float-card__text {
  display: flex;
  flex-direction: column;
}


/* ── "Live" dashboard motion — makes the hero mockup feel alive ───────── */

/* Chart bars stream like real-time data (scaleY from the base, staggered) */
.mockup-chart-bars .mockup-bar {
  transform-origin: bottom;
  animation: barLive 3.2s ease-in-out infinite;
}
.mockup-chart-bars .mockup-bar:nth-child(1) { animation-delay: 0s;    }
.mockup-chart-bars .mockup-bar:nth-child(2) { animation-delay: 0.25s; }
.mockup-chart-bars .mockup-bar:nth-child(3) { animation-delay: 0.5s;  }
.mockup-chart-bars .mockup-bar:nth-child(4) { animation-delay: 0.75s; }
.mockup-chart-bars .mockup-bar:nth-child(5) { animation-delay: 1s;    }
.mockup-chart-bars .mockup-bar:nth-child(6) { animation-delay: 1.25s; }
.mockup-chart-bars .mockup-bar:nth-child(7) { animation-delay: 1.5s;  }

@keyframes barLive {
  0%, 100% { transform: scaleY(0.72); }
  50%      { transform: scaleY(1);    }
}

/* Light sweep across the chart panel — a subtle "refreshing" shimmer */
.mockup-chart { position: relative; overflow: hidden; }
.mockup-chart::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: chartSweep 4.5s ease-in-out infinite;
}
@keyframes chartSweep {
  0%   { left: -60%; }
  60%, 100% { left: 130%; }
}

/* Live status dot riding in the browser URL bar */
.mockup-url-bar { position: relative; }
.mockup-url-bar::after {
  content: '';
  position: absolute;
  top: 50%; right: 7px;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #27C840;
  box-shadow: 0 0 0 0 rgba(39, 200, 64, 0.6);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(39, 200, 64, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(39, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 200, 64, 0); }
}

/* Active sidebar item softly glows */
.mockup-nav-item--active {
  animation: navGlow 2.8s ease-in-out infinite;
}
@keyframes navGlow {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 0 0 rgba(21, 67, 120, 0); }
  50%      { opacity: 1;    box-shadow: 0 0 12px 1px rgba(61, 107, 160, 0.5); }
}

/* Accent stat card breathes */
.mockup-stat-card--accent {
  animation: statBreathe 3.6s ease-in-out infinite;
}
@keyframes statBreathe {
  0%, 100% { border-color: rgba(21, 67, 120, 0.3);  background: rgba(21, 67, 120, 0.16); }
  50%      { border-color: rgba(61, 107, 160, 0.6); background: rgba(21, 67, 120, 0.26); }
}

/* Uptime bar gets a travelling sheen */
.float-card__bar { position: relative; }
.float-card__bar-fill { position: relative; overflow: hidden; }
.float-card__bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%);
  animation: barSheen 2.6s ease-in-out infinite;
}
@keyframes barSheen {
  0%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(220%); }
}

/* Gold headline keeps a steady soft glow (stays solid gold — no gradient).
   Applied as text-shadow only, so it never clashes with the entrance animation. */
.hero__headline .hero__line--gradient {
  text-shadow: 0 0 22px rgba(110, 147, 190, 0.22);
}

/* ── Reduced-motion overrides for hero ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__glow--1,
  .hero__glow--2,
  .hero__glow--3 {
    animation: none;
    opacity: 0.6;
  }

  .mockup-chart-bars .mockup-bar,
  .mockup-chart::after,
  .mockup-url-bar::after,
  .mockup-nav-item--active,
  .mockup-stat-card--accent,
  .float-card__bar-fill::after {
    animation: none;
  }
}



/* ═══════════════════════════════════════════════════════════════════════
   17 · TRUST & SOCIAL PROOF SECTION  (Light Mode)
═══════════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────────────── */

.trust {
  position:      relative;
  padding-block: var(--section-gap);
  background:    var(--color-bg);
  overflow:      hidden;
  isolation:     isolate;
}

/* Thin separator — clean seam between dark hero and light body */
.trust::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       8%;
  right:      8%;
  height:     1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  pointer-events: none;
  z-index:    1;
}

.trust__container {
  position:        relative;
  z-index:         1;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             var(--space-14);
}


/* ── Background decorative shapes ────────────────────────────────────── */

.trust__bg {
  position:  absolute;
  inset:     0;
  z-index:   0;
  overflow:  hidden;
  pointer-events: none;
}

.trust__shape {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(90px);
  pointer-events: none;
}

.trust__shape--1 {
  width:      420px;
  height:     420px;
  top:        -60px;
  right:      5%;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.07) 0%, transparent 70%);
  animation:  float 14s ease-in-out infinite;
}

.trust__shape--2 {
  width:      320px;
  height:     320px;
  bottom:     40px;
  left:       -60px;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.05) 0%, transparent 70%);
  animation:  float 18s ease-in-out infinite 5s;
}

@media (prefers-reduced-motion: reduce) {
  .trust__shape { animation: none; }
}


/* ── Trust badge ─────────────────────────────────────────────────────── */

.trust__badge-wrap {
  display:         flex;
  justify-content: center;
}

.trust__badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-2-5);
  padding:        var(--space-1-5) var(--space-5);
  background:     var(--color-brand-50);
  border:         1px solid var(--color-brand-200);
  border-radius:  var(--radius-full);
  font-family:    var(--font-ui);
  font-size:      var(--text-label);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color:          var(--color-brand-700);
}

.trust__badge-pulse {
  position:      relative;
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--color-brand-500);
  flex-shrink:   0;
}

.trust__badge-pulse::after {
  content:       '';
  position:      absolute;
  inset:         -3px;
  border-radius: 50%;
  background:    var(--color-brand-500);
  opacity:       0.3;
  animation:     badgePulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .trust__badge-pulse::after { animation: none; }
}


/* ── Section header ──────────────────────────────────────────────────── */

.trust__header {
  text-align: center;
  max-width:  640px;
}

.trust__title {
  font-family:    var(--font-display);
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    var(--weight-extrabold);
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color:          var(--color-text-primary);
  margin-bottom:  var(--space-4);
}

.trust__sub {
  font-size:   var(--text-body-lg);
  color:       var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}


/* ── Stats panel ─────────────────────────────────────────────────────── */

.trust__stats-panel {
  width:         100%;
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  display:       grid;
  grid-template-columns: repeat(2, 1fr);
  box-shadow:    var(--shadow-card);
  overflow:      hidden;
}

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

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

.trust__stat {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-2);
  padding:         var(--space-8) var(--space-4);
  text-align:      center;
  position:        relative;
  border-right:    1px solid var(--color-border);
  border-bottom:   1px solid var(--color-border);
  transition:      background var(--duration-base) var(--ease-out);
}

.trust__stat:hover {
  background: var(--color-brand-50);
}

/* Divider cleanup per breakpoint */
@media (max-width: 767px) {
  .trust__stat:nth-child(2n) { border-right: none; }
  .trust__stat:nth-child(5),
  .trust__stat:nth-child(6)  { border-bottom: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .trust__stat:nth-child(3n) { border-right: none; }
  .trust__stat:nth-child(4),
  .trust__stat:nth-child(5),
  .trust__stat:nth-child(6)  { border-bottom: none; }
}

@media (min-width: 1024px) {
  .trust__stat:last-child { border-right: none; }
  .trust__stat            { border-bottom: none; }
}

.trust__stat-value {
  display:     flex;
  align-items: baseline;
  gap:         var(--space-0-5);
  line-height: 1;
}

.trust__stat-num {
  font-family:    var(--font-display);
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    var(--weight-extrabold);
  color:          var(--color-brand-500);
  line-height:    1;
  font-variant-numeric: tabular-nums;
}

.trust__stat-suffix {
  font-family:    var(--font-display);
  font-size:      clamp(1.25rem, 2vw, 1.75rem);
  font-weight:    var(--weight-bold);
  color:          var(--color-brand-600);
  line-height:    1;
}

.trust__stat-label {
  font-size:      var(--text-sm);
  color:          var(--color-text-tertiary);
  font-weight:    var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  white-space:    nowrap;
}


/* ── Logo marquee ────────────────────────────────────────────────────── */

.trust__logos-section {
  width:      100%;
  text-align: center;
}

.trust__logos-eyebrow {
  font-family:    var(--font-ui);
  font-size:      var(--text-label);
  font-weight:    var(--weight-medium);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color:          var(--color-text-tertiary);
  margin-bottom:  var(--space-8);
}

.trust__logos {
  overflow:   hidden;
  position:   relative;
  mask-image:         linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.trust__logos:hover .trust__logos-track {
  animation-play-state: paused;
}

.trust__logos-track {
  display:   flex;
  width:     max-content;
  animation: trustMarquee 28s linear infinite;
}

@keyframes trustMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust__logos-track { animation: none; }
}

.trust__logos-list {
  display:     flex;
  align-items: center;
  gap:         var(--space-2);
  list-style:  none;
  padding:     0;
  margin:      0;
  flex-shrink: 0;
}

/* Client logo lockups — monogram chip + wordmark, muted then colour on hover */
.trust__logo {
  display:     flex;
  align-items: center;
  gap:         var(--space-2-5);
  padding:     0 var(--space-3);
  filter:      grayscale(1);
  opacity:     0.55;
  transition:  opacity var(--duration-base) var(--ease-out),
               filter var(--duration-base) var(--ease-out);
  cursor:      default;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust__logo:hover {
  filter:  grayscale(0);
  opacity: 1;
}

/* Monogram initials chip (stands in for a real logo mark) */
.trust__logo-mark {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       36px;
  height:          36px;
  padding:         0 var(--space-2);
  border-radius:   var(--radius-md);
  background:      rgba(21, 67, 120, 0.08);
  border:          1px solid rgba(21, 67, 120, 0.14);
  color:           var(--color-brand-600);
  font-family:     var(--font-display);
  font-weight:     800;
  font-size:       var(--text-xs);
  letter-spacing:  0.02em;
  flex-shrink:     0;
  transition:      background var(--duration-base) var(--ease-out),
                   color var(--duration-base) var(--ease-out);
}

.trust__logo:hover .trust__logo-mark {
  background: var(--color-brand-500);
  color:      #fff;
}

.trust__logo-name {
  font-family:    var(--font-display);
  font-size:      var(--text-h6);
  font-weight:    var(--weight-bold);
  color:          var(--color-text-tertiary);
  letter-spacing: -0.01em;
  transition:     color var(--duration-base) var(--ease-out);
}

.trust__logo:hover .trust__logo-name { color: var(--color-text-primary); }


/* ── Trust cards ─────────────────────────────────────────────────────── */

.trust__cards {
  width:   100%;
  display: grid;
  gap:     var(--space-5);
  grid-template-columns: 1fr;
}

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

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

.trust__card {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding:       var(--space-8);
  box-shadow:    var(--shadow-card);
  display:       flex;
  flex-direction: column;
  gap:           var(--space-4);
  transition:
    transform    var(--duration-base) var(--ease-spring),
    box-shadow   var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.trust__card:hover {
  transform:    translateY(-4px);
  box-shadow:   var(--shadow-card-hover);
  border-color: var(--color-brand-200);
}

.trust__card-icon {
  width:           44px;
  height:          44px;
  border-radius:   var(--radius-lg);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  border:          1px solid transparent;
  transition:      transform var(--duration-base) var(--ease-spring);
}

.trust__card:hover .trust__card-icon {
  transform: scale(1.08);
}

.trust__card-icon--blue {
  background:   rgba(21, 67, 120, 0.1);
  color:        var(--color-brand-600);
  border-color: rgba(21, 67, 120, 0.2);
}

.trust__card-icon--green {
  background:   rgba(34, 197, 94, 0.1);
  color:        #16A34A;
  border-color: rgba(34, 197, 94, 0.2);
}

.trust__card-icon--violet {
  background:   rgba(21, 67, 120, 0.1);
  color:        var(--color-violet-700);
  border-color: rgba(21, 67, 120, 0.2);
}

.trust__card-icon--amber {
  background:   rgba(217, 119, 6, 0.1);
  color:        #D97706;
  border-color: rgba(217, 119, 6, 0.2);
}

.trust__card-title {
  font-family:  var(--font-heading);
  font-size:    var(--text-h5);
  font-weight:  var(--weight-semibold);
  color:        var(--color-text-primary);
  line-height:  var(--leading-snug);
  margin:       0;
}

.trust__card-body {
  font-size:   var(--text-body);
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   §18  ABOUT FIRMEZA SECTION
   Split layout: copy column (left) + interactive visual composition (right)
   Feature highlights grid below the split.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 18.1 Section base ──────────────────────────────────────────────────── */

.about {
  position:       relative;
  padding-block:  var(--section-gap);
  background:     var(--color-bg-subtle);
  overflow:       hidden;
}

/* Thin top separator from trust section */
.about::before {
  content:    '';
  position:   absolute;
  inset-inline: 0;
  top:        0;
  height:     1px;
  background: var(--color-border);
}

/* ── 18.2 Decorative background shapes ─────────────────────────────────── */

.about__bg {
  position:   absolute;
  inset:      0;
  pointer-events: none;
  overflow:   hidden;
}

.about__shape {
  position:      absolute;
  border-radius: var(--radius-full);
  filter:        blur(80px);
  opacity:       0.55;
}

.about__shape--1 {
  width:      520px;
  height:     520px;
  top:        -120px;
  right:      -100px;
  background: radial-gradient(ellipse, rgba(21, 67, 120, 0.09) 0%, transparent 70%);
}

.about__shape--2 {
  width:      380px;
  height:     380px;
  bottom:     -80px;
  left:       -60px;
  background: radial-gradient(ellipse, rgba(21, 67, 120, 0.07) 0%, transparent 70%);
}

.about__shape--3 {
  width:      300px;
  height:     300px;
  top:        50%;
  left:       40%;
  transform:  translateY(-50%);
  background: radial-gradient(ellipse, rgba(21, 67, 120, 0.05) 0%, transparent 70%);
}

/* ── 18.3 Container ─────────────────────────────────────────────────────── */

.about__container {
  position: relative;  /* above bg shapes */
  z-index:  1;
  display:  flex;
  flex-direction: column;
  gap:      var(--space-20);
}

/* ── 18.4 Split layout ──────────────────────────────────────────────────── */

.about__split {
  display:        grid;
  grid-template-columns: 1fr;
  gap:            var(--space-16);
  align-items:    center;
}

@media (min-width: 1024px) {
  .about__split {
    grid-template-columns: 55fr 45fr;
    gap:                   var(--space-20);
  }
}

/* ── 18.5 Copy column ───────────────────────────────────────────────────── */

.about__copy {
  display:        flex;
  flex-direction: column;
  gap:            0;
}

/* Eyebrow label pill */
.about__eyebrow-wrap {
  display:       flex;
  margin-bottom: var(--space-5);
}

.about__eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           var(--space-2);
  padding:       var(--space-1-5) var(--space-4);
  background:    rgba(21, 67, 120, 0.08);
  border:        1px solid rgba(21, 67, 120, 0.2);
  border-radius: var(--radius-full);
  font-family:   var(--font-ui);
  font-size:     var(--text-label);
  font-weight:   var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color:         var(--color-brand-600);
}

.about__eyebrow-dot {
  width:           6px;
  height:          6px;
  border-radius:   50%;
  background:      var(--color-brand-500);
  display:         inline-block;
  animation:       badgePulse 2.4s ease-in-out infinite;
}

/* Headline */
.about__headline {
  font-family:    var(--font-display);
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    var(--weight-extrabold);
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color:          var(--color-text-primary);
  margin:         0 0 var(--space-6);
}

/* Supporting paragraph */
.about__sub {
  font-size:    clamp(var(--text-body), 1.1vw, var(--text-lg));
  line-height:  var(--leading-relaxed);
  color:        var(--color-text-secondary);
  margin:       0 0 var(--space-10);
  max-width:    52ch;
}

/* CTA row */
.about__ctas {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         var(--space-4);
}

/* ── 18.6 Visual column ─────────────────────────────────────────────────── */

.about__visual {
  position: relative;
  /* Outer padding leaves room for floating cards that overflow the showcase */
  padding:  48px 56px 48px 40px;
}

.about__visual-inner {
  position: relative;
}

/* ── 18.7 Showcase card ─────────────────────────────────────────────────── */

.about__showcase {
  position:      relative;
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow:      hidden;
  box-shadow:    var(--shadow-modal);
}

/* Dark header strip — mirrors the hero aesthetic as a visual echo */
.about__showcase-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         var(--space-4) var(--space-5);
  background:      var(--gradient-dark);
  border-bottom:   1px solid rgba(255, 255, 255, 0.06);
}

.about__showcase-brand {
  display:     flex;
  align-items: center;
  gap:         var(--space-2-5);
}

/* Firmeza logomark (cobalt square) */
.about__showcase-mark {
  width:         24px;
  height:        24px;
  border-radius: var(--radius-md);
  background:    var(--gradient-brand);
  flex-shrink:   0;
}

.about__showcase-name {
  font-family:    var(--font-display);
  font-size:      var(--text-body);
  font-weight:    var(--weight-bold);
  color:          var(--color-zinc-50);
  letter-spacing: var(--tracking-tight);
}

.about__showcase-badge {
  font-family:   var(--font-ui);
  font-size:     10px;
  font-weight:   var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color:         rgba(255, 255, 255, 0.45);
  padding:       2px var(--space-2);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

/* Abstract canvas area — dark with ambient glows */
.about__showcase-canvas {
  position:   relative;
  height:     200px;
  background: var(--gradient-dark);
  overflow:   hidden;
}

.about__canvas-glow {
  position:      absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about__canvas-glow--1 {
  width:      260px;
  height:     260px;
  top:        -60px;
  left:       -20px;
  background: radial-gradient(ellipse, rgba(21, 67, 120, 0.22) 0%, transparent 65%);
  animation:  glowPulse 5s ease-in-out infinite;
}

.about__canvas-glow--2 {
  width:      220px;
  height:     220px;
  bottom:     -80px;
  right:      -20px;
  background: radial-gradient(ellipse, rgba(21, 67, 120, 0.18) 0%, transparent 65%);
  animation:  glowPulse 6s ease-in-out infinite 1.5s;
}

/* Dot grid overlay (reuses the hero pattern) */
.about__canvas-grid {
  position:   absolute;
  inset:      0;
  background-image:    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size:     22px 22px;
}

/* Decorative code-line motif */
.about__canvas-lines {
  position:       absolute;
  left:           var(--space-5);
  bottom:         var(--space-5);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-2);
}

.about__canvas-line {
  height:        6px;
  border-radius: var(--radius-full);
  background:    rgba(255, 255, 255, 0.07);
}

.about__canvas-line--1 { width: 140px; }
.about__canvas-line--2 { width: 90px;  background: rgba(21, 67, 120, 0.4); }
.about__canvas-line--3 { width: 180px; }
.about__canvas-line--4 { width: 72px;  background: rgba(21, 67, 120, 0.35); }

/* Showcase footer — light mode info strip */
.about__showcase-footer {
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.about__showcase-tagline {
  font-family:    var(--font-heading);
  font-size:      var(--text-h5);
  font-weight:    var(--weight-semibold);
  color:          var(--color-text-primary);
  line-height:    var(--leading-snug);
  margin:         0 0 var(--space-4);
}

/* Stats row */
.about__showcase-stats {
  display:     flex;
  align-items: center;
  gap:         var(--space-4);
}

.about__showcase-stat {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.about__showcase-stat-val {
  font-family:    var(--font-display);
  font-size:      var(--text-h4);
  font-weight:    var(--weight-extrabold);
  color:          var(--color-brand-500);
  line-height:    1;
}

.about__showcase-stat-lbl {
  font-size:      var(--text-xs);
  font-weight:    var(--weight-medium);
  color:          var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.about__showcase-divider {
  width:      1px;
  height:     32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── 18.8 Float cards ───────────────────────────────────────────────────── */

.about__float {
  position:           absolute;
  background:         rgba(255, 255, 255, 0.92);
  backdrop-filter:    blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border:             1px solid rgba(255, 255, 255, 0.9);
  border-radius:      var(--radius-xl);
  box-shadow:         var(--shadow-card-hover);
  padding:            var(--space-3) var(--space-4);
  pointer-events:     none;
}

/* Float 1: Tech stack — top-left, overlaps showcase header */
.about__float--1 {
  top:  -20px;
  left: -24px;
}

/* Float 2: Achievement — bottom-right */
.about__float--2 {
  bottom: -20px;
  right:  -24px;
}

/* Float 3: Location — middle-right */
.about__float--3 {
  top:   38%;
  right: -28px;
}

/* Hide float cards on mobile to keep single-column layout clean */
@media (max-width: 767px) {
  .about__float { display: none; }
}

/* ── 18.9 Float card internals ──────────────────────────────────────────── */

.about__float-label {
  font-family:    var(--font-ui);
  font-size:      10px;
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color:          var(--color-text-tertiary);
  margin:         0 0 var(--space-2);
}

/* Tech stack pills */
.about__float-pills {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--space-1-5);
}

.about__tech-pill {
  font-family:   var(--font-ui);
  font-size:     11px;
  font-weight:   var(--weight-medium);
  padding:       3px var(--space-2);
  border-radius: var(--radius-sm);
  border:        1px solid transparent;
  white-space:   nowrap;
}

.about__tech-pill--react   { background: rgba(97, 218, 251, 0.1);  color: #0369A1; border-color: rgba(97, 218, 251, 0.25);  }
.about__tech-pill--flutter { background: rgba(84, 197, 248, 0.1);  color: #0284C7; border-color: rgba(84, 197, 248, 0.25);  }
.about__tech-pill--node    { background: rgba(104, 160, 99, 0.1);  color: #15803D; border-color: rgba(104, 160, 99, 0.25);  }
.about__tech-pill--python  { background: rgba(55, 118, 171, 0.1);  color: #1D4ED8; border-color: rgba(55, 118, 171, 0.25);  }
.about__tech-pill--php     { background: rgba(119, 123, 180, 0.12); color: #6D28D9; border-color: rgba(119, 123, 180, 0.25); }
.about__tech-pill--js      { background: rgba(217, 119, 6, 0.08);  color: #B45309; border-color: rgba(217, 119, 6, 0.2);    }

/* Achievement float */
.about__float-achievement {
  display:     flex;
  align-items: center;
  gap:         var(--space-2-5);
}

.about__float-achievement-icon {
  width:           28px;
  height:          28px;
  border-radius:   50%;
  background:      rgba(34, 197, 94, 0.1);
  border:          1px solid rgba(34, 197, 94, 0.2);
  color:           #16A34A;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.about__float-achievement-title {
  font-size:   var(--text-sm);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
  margin:      0;
  white-space: nowrap;
}

.about__float-achievement-sub {
  font-size: 11px;
  color:     var(--color-text-tertiary);
  margin:    0;
}

/* Location float */
.about__float-location {
  display:     flex;
  align-items: center;
  gap:         var(--space-2-5);
}

/* Animated green pulsing dot */
.about__float-location-pulse {
  position:      relative;
  width:         10px;
  height:        10px;
  border-radius: 50%;
  background:    #22C55E;
  flex-shrink:   0;
}

.about__float-location-pulse::after {
  content:       '';
  position:      absolute;
  inset:         -4px;
  border-radius: 50%;
  background:    rgba(34, 197, 94, 0.28);
  animation:     badgePulse 2s ease-in-out infinite;
}

.about__float-city {
  font-size:   var(--text-sm);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
  margin:      0;
  white-space: nowrap;
}

.about__float-reach {
  font-size: 11px;
  color:     var(--color-text-tertiary);
  margin:    0;
}

/* ── 18.10 Feature cards grid ───────────────────────────────────────────── */

.about__features {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   var(--space-3);
}

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

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

/* Individual feature card */
.about__feature {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding:       var(--space-5) var(--space-5) var(--space-6);
  display:       flex;
  flex-direction: column;
  gap:           var(--space-3);
  /* JS manages transform — CSS manages the remaining hover properties */
  transition:    box-shadow 0.25s var(--ease-out),
                 border-color 0.2s  var(--ease-out);
  cursor:        default;
  will-change:   transform;
}

.about__feature:hover {
  box-shadow:    var(--shadow-card-hover);
  border-color:  var(--color-brand-200);
}

/* Icon badge */
.about__feature-icon {
  width:           40px;
  height:          40px;
  border-radius:   var(--radius-lg);
  border:          1px solid transparent;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.about__feature-icon--blue   { background: rgba(21, 67, 120, 0.1);  color: var(--color-brand-600); border-color: rgba(21, 67, 120, 0.2);  }
.about__feature-icon--violet { background: rgba(109, 40, 217, 0.1);  color: var(--color-violet-700); border-color: rgba(109, 40, 217, 0.2); }
.about__feature-icon--amber  { background: rgba(217, 119, 6, 0.1);   color: #D97706;                border-color: rgba(217, 119, 6, 0.2);   }
.about__feature-icon--green  { background: rgba(34, 197, 94, 0.1);   color: #16A34A;                border-color: rgba(34, 197, 94, 0.2);   }
.about__feature-icon--teal   { background: rgba(13, 148, 136, 0.1);  color: #0D9488;                border-color: rgba(13, 148, 136, 0.2);  }
.about__feature-icon--rose   { background: rgba(225, 29, 72, 0.1);   color: #E11D48;                border-color: rgba(225, 29, 72, 0.2);   }

.about__feature-title {
  font-family:  var(--font-heading);
  font-size:    var(--text-h5);
  font-weight:  var(--weight-semibold);
  color:        var(--color-text-primary);
  line-height:  var(--leading-snug);
  margin:       0;
}

.about__feature-body {
  font-size:   var(--text-sm);
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   §19  DIGITAL SOLUTIONS ECOSYSTEM
   Interactive explorer: sticky category tabs (left) + animated panel (right)
   Each panel answers the business problem the category solves.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Panel entrance keyframe (component-scoped) ─────────────────────────── */

@keyframes panelEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── 19.1 Section base ──────────────────────────────────────────────────── */

.services {
  position:      relative;
  padding-block: var(--section-gap);
  background:    var(--color-bg);
  overflow:      hidden;
}

/* Thin separator from about section */
.services::before {
  content:      '';
  position:     absolute;
  inset-inline: 0;
  top:          0;
  height:       1px;
  background:   var(--color-border);
}

/* ── 19.2 Dot-grid background texture ──────────────────────────────────── */

.services__bg {
  position:       absolute;
  inset:          0;
  pointer-events: none;
}

.services__bg-grid {
  position:          absolute;
  inset:             0;
  background-image:  radial-gradient(rgba(9, 9, 11, 0.055) 1px, transparent 1px);
  background-size:   24px 24px;
}

/* ── 19.3 Container + section header ────────────────────────────────────── */

.services__container {
  position:       relative;
  z-index:        1;
  display:        flex;
  flex-direction: column;
  gap:            var(--space-16);
}

.services__header {
  text-align:  center;
  max-width:   640px;
  margin-inline: auto;
}

/* ── 19.4 Eyebrow ────────────────────────────────────────────────────────── */

.services__eyebrow-wrap {
  display:       flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.services__eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-2);
  padding:        var(--space-1-5) var(--space-4);
  background:     rgba(21, 67, 120, 0.08);
  border:         1px solid rgba(21, 67, 120, 0.2);
  border-radius:  var(--radius-full);
  font-family:    var(--font-ui);
  font-size:      var(--text-label);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color:          var(--color-brand-600);
}

.services__eyebrow-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--color-brand-500);
  display:       inline-block;
  animation:     badgePulse 2.4s ease-in-out infinite;
}

/* Headline */
.services__headline {
  font-family:    var(--font-display);
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    var(--weight-extrabold);
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color:          var(--color-text-primary);
  margin:         0 0 var(--space-5);
}

/* Sub */
.services__sub {
  font-size:   clamp(var(--text-body), 1.05vw, var(--text-lg));
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
}

/* ═══════════════════════════════════════════════════════════════════════
   ECOSYSTEM GRID — interactive practice-area cards with cursor spotlight
═══════════════════════════════════════════════════════════════════════ */
.eco-grid {
  position:  relative;
  display:   grid;
  grid-template-columns: repeat(3, 1fr);
  gap:       var(--space-5);
  margin-top: var(--space-12);
}

/* A single soft glow that follows the cursor across the whole grid */
.eco-grid__spot {
  position:      absolute;
  top:           0;
  left:          0;
  width:         460px;
  height:        460px;
  border-radius: 50%;
  background:    radial-gradient(circle, rgba(21, 67, 120, 0.18) 0%, transparent 66%);
  transform:     translate(calc(var(--sx, 50%) - 230px), calc(var(--sy, 50%) - 230px));
  opacity:       0;
  transition:    opacity 300ms ease;
  pointer-events: none;
  z-index:       0;
}
.eco-grid:hover .eco-grid__spot { opacity: 1; }

.eco-card {
  position:       relative;
  z-index:        1;
  display:        flex;
  flex-direction: column;
  min-height:     230px;
  padding:        var(--space-6);
  border-radius:  var(--radius-xl);
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  text-decoration: none;
  overflow:       hidden;
  transition:     transform 360ms var(--ease-out), border-color 360ms ease, box-shadow 360ms ease;
}
.eco-card:hover,
.eco-card:focus-visible {
  transform:    translateY(-6px);
  border-color: rgba(21, 67, 120, 0.35);
  box-shadow:   0 30px 60px rgba(21, 67, 120, 0.14);
  outline:      none;
}

/* Big ghost index number, top-right */
.eco-card__num {
  position:    absolute;
  top:         var(--space-4);
  right:       var(--space-5);
  font-family: var(--font-display);
  font-size:   2.5rem;
  font-weight: var(--weight-extrabold);
  line-height: 1;
  color:       var(--color-brand-500);
  opacity:     0.12;
  transition:  opacity 360ms ease, transform 360ms var(--ease-out);
}
.eco-card:hover .eco-card__num { opacity: 0.22; transform: translateY(-2px); }

.eco-card__icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           46px;
  height:          46px;
  border-radius:   var(--radius-lg);
  background:      rgba(21, 67, 120, 0.07);
  border:          1px solid rgba(21, 67, 120, 0.12);
  color:           var(--color-brand-600);
  margin-bottom:   var(--space-4);
  transition:      background 300ms ease, color 300ms ease, transform 400ms var(--ease-spring);
}
.eco-card:hover .eco-card__icon {
  background: var(--color-brand-500);
  color:      #fff;
  transform:  translateY(-2px) rotate(-4deg);
}

.eco-card__title {
  font-family: var(--font-display);
  font-size:   var(--text-h4);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color:       var(--color-text-primary);
  margin:      0 0 var(--space-2);
}
.eco-card__problem {
  font-size:   var(--text-body-sm);
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
  max-width:   34ch;
}

/* Solutions + tech — collapsed by default, revealed on hover/focus */
.eco-card__reveal {
  display:         grid;
  grid-template-rows: 0fr;
  opacity:         0;
  transition:      grid-template-rows 420ms var(--ease-out), opacity 320ms ease, margin-top 420ms var(--ease-out);
  margin-top:      0;
}
.eco-card:hover .eco-card__reveal,
.eco-card:focus-visible .eco-card__reveal {
  grid-template-rows: 1fr;
  opacity:    1;
  margin-top: var(--space-4);
}
.eco-card__reveal > * { min-height: 0; overflow: hidden; }

.eco-card__list {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    grid;
  grid-template-columns: 1fr 1fr;
  gap:        var(--space-1) var(--space-4);
}
.eco-card__list li {
  position:    relative;
  padding-left: var(--space-4);
  font-size:   var(--text-body-sm);
  color:       var(--color-text-secondary);
  line-height: 1.5;
}
.eco-card__list li::before {
  content:    '';
  position:   absolute;
  left:       0;
  top:        0.55em;
  width:      6px;
  height:     6px;
  border-radius: 50%;
  background: var(--color-brand-500);
}
.eco-card__tech {
  margin:      var(--space-3) 0 0;
  font-family: var(--font-mono);
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  letter-spacing: 0.01em;
}

.eco-card__cta {
  display:     inline-flex;
  align-items: center;
  gap:         var(--space-2);
  margin-top:  auto;
  padding-top: var(--space-4);
  font-size:   var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color:       var(--color-brand-600);
}
.eco-card__cta svg { transition: transform 260ms var(--ease-out); }
.eco-card:hover .eco-card__cta svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .eco-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .eco-grid { grid-template-columns: 1fr; }
  /* On touch, reveal solutions by default (no hover) */
  .eco-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: var(--space-4); }
}

/* ── 19.5 Explorer grid ─────────────────────────────────────────────────── */

.services__explorer {
  display:   flex;
  flex-direction: column;
  gap:       var(--space-8);
}

@media (min-width: 1024px) {
  .services__explorer {
    display:               grid;
    grid-template-columns: 320px 1fr;
    gap:                   var(--space-6);
    align-items:           start;
  }
}

/* ── 19.6 Tab column ────────────────────────────────────────────────────── */

.services__tabs {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1-5);
}

/* On small screens collapse to a 2-column or 3-column pill grid */
@media (max-width: 1023px) {
  .services__tabs {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   var(--space-2);
  }
}

@media (max-width: 599px) {
  .services__tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 19.7 Individual tab ────────────────────────────────────────────────── */

.services__tab {
  display:        flex;
  align-items:    center;
  gap:            var(--space-3);
  padding:        var(--space-3-5) var(--space-4);
  width:          100%;
  background:     transparent;
  border:         1px solid var(--color-border);
  border-left:    3px solid transparent;
  border-radius:  var(--radius-lg);
  cursor:         pointer;
  text-align:     left;
  transition:     background-color 0.18s var(--ease-out),
                  border-color     0.18s var(--ease-out),
                  box-shadow       0.18s var(--ease-out);
}

.services__tab:hover:not(.services__tab--active) {
  background:   var(--color-bg-muted);
  border-color: var(--color-border-strong);
}

/* Active state base */
.services__tab--active {
  background:  var(--color-surface);
  box-shadow:  var(--shadow-card);
  border-color: var(--color-border);
}

/* Per-category active left-border color */
.services__tab--active.services__tab--blue   { border-left-color: var(--color-brand-500); }
.services__tab--active.services__tab--violet { border-left-color: var(--color-violet-600); }
.services__tab--active.services__tab--teal   { border-left-color: #0D9488; }
.services__tab--active.services__tab--amber  { border-left-color: #D97706; }
.services__tab--active.services__tab--rose   { border-left-color: #E11D48; }
.services__tab--active.services__tab--green  { border-left-color: #16A34A; }

/* Tab icon badge */
.services__tab-icon {
  width:           36px;
  height:          36px;
  border-radius:   var(--radius-md);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  border:          1px solid transparent;
  transition:      background-color 0.18s var(--ease-out);
}

.services__tab-icon--blue   { background: rgba(21, 67, 120, 0.08);  color: var(--color-brand-600); border-color: rgba(21, 67, 120,0.15);  }
.services__tab-icon--violet { background: rgba(18, 60, 108, 0.08);  color: var(--color-violet-700); border-color: rgba(18, 60, 108,0.15); }
.services__tab-icon--teal   { background: rgba(13, 148, 136, 0.08);  color: #0D9488;                border-color: rgba(13,148,136,0.15);  }
.services__tab-icon--amber  { background: rgba(217, 119, 6, 0.08);   color: #D97706;                border-color: rgba(217,119,6,0.15);   }
.services__tab-icon--rose   { background: rgba(225, 29, 72, 0.08);   color: #E11D48;                border-color: rgba(225,29,72,0.15);   }
.services__tab-icon--green  { background: rgba(22, 163, 74, 0.08);   color: #16A34A;                border-color: rgba(22,163,74,0.15);   }

/* Tab text group */
.services__tab-text {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  min-width:      0;
}

.services__tab-name {
  font-family:  var(--font-heading);
  font-size:    var(--text-sm);
  font-weight:  var(--weight-semibold);
  color:        var(--color-text-primary);
  line-height:  var(--leading-snug);
  white-space:  nowrap;
  overflow:     hidden;
  text-overflow: ellipsis;
}

.services__tab-meta {
  font-size:   10px;
  font-weight: var(--weight-medium);
  color:       var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

/* On the compact grid (< 1024px), collapse to icon + name only */
@media (max-width: 1023px) {
  .services__tab {
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             var(--space-2);
    padding:         var(--space-3);
    text-align:      center;
    border-left:     1px solid var(--color-border); /* reset left border */
    border-bottom:   3px solid transparent;
  }

  .services__tab--active {
    border-left-color:   var(--color-border);
  }

  .services__tab--active.services__tab--blue   { border-bottom-color: var(--color-brand-500); }
  .services__tab--active.services__tab--violet { border-bottom-color: var(--color-violet-600); }
  .services__tab--active.services__tab--teal   { border-bottom-color: #0D9488; }
  .services__tab--active.services__tab--amber  { border-bottom-color: #D97706; }
  .services__tab--active.services__tab--rose   { border-bottom-color: #E11D48; }
  .services__tab--active.services__tab--green  { border-bottom-color: #16A34A; }

  .services__tab-meta { display: none; }
}

/* ── 19.8 Panels container ──────────────────────────────────────────────── */

.services__panels {
  position: relative;
  min-height: 420px;
}

/* ── 19.9 Individual panel ──────────────────────────────────────────────── */

.services__panel {
  display: none;
}

.services__panel--active {
  display:       block;
  position:      relative;
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding:       var(--space-8) var(--space-8) var(--space-7);
  box-shadow:    var(--shadow-card);
  overflow:      hidden;
  animation:     panelEnter 0.28s var(--ease-out) both;
}

/* Ambient background blob — colour set per-panel via ID selectors below */
.services__panel-bg {
  position:       absolute;
  top:            -60px;
  right:          -60px;
  width:          420px;
  height:         420px;
  border-radius:  50%;
  pointer-events: none;
  will-change:    transform;
  transition:     background 0.3s ease;
}

/* Per-panel blob colours */
#panel-engineering .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(21, 67, 120, 0.1) 0%, transparent 70%); }
#panel-mobile      .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(18, 60, 108, 0.1) 0%, transparent 70%); }
#panel-web         .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(13, 148, 136, 0.09) 0%, transparent 70%); }
#panel-ai          .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(217, 119, 6, 0.08)  0%, transparent 70%); }
#panel-branding    .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(225, 29, 72, 0.08)  0%, transparent 70%); }
#panel-growth      .services__panel-bg { background: radial-gradient(ellipse 65% 65% at 70% 30%, rgba(22, 163, 74, 0.08)  0%, transparent 70%); }

/* ── 19.10 Panel header ─────────────────────────────────────────────────── */

.services__panel-header {
  position:      relative;
  margin-bottom: var(--space-6);
}

.services__panel-title {
  font-family:    var(--font-display);
  font-size:      clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight:    var(--weight-bold);
  color:          var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
  margin:         0 0 var(--space-2);
  line-height:    var(--leading-snug);
}

.services__panel-problem {
  font-size:   var(--text-body);
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
  max-width:   60ch;
}

/* ── 19.11 Solution cards ───────────────────────────────────────────────── */

.services__solutions {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   var(--space-3);
  margin-bottom:         var(--space-6);
  position:              relative;
}

@media (max-width: 599px) {
  .services__solutions {
    grid-template-columns: 1fr;
  }
}

.services__solution {
  position:      relative;
  background:    var(--color-bg-subtle);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding:       var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 11px);
  display:       flex;
  flex-direction: column;
  gap:           var(--space-1-5);
  overflow:      hidden;
  transition:    transform    0.2s var(--ease-out),
                 box-shadow   0.2s var(--ease-out),
                 border-color 0.15s var(--ease-out),
                 background   0.15s var(--ease-out);
}

/* Coloured left-accent strip — hue set per panel */
.services__solution::before {
  content:       '';
  position:      absolute;
  top:           0;
  left:          0;
  width:         3px;
  height:        100%;
}

.services__solution:hover {
  transform:     translateY(-2px);
  box-shadow:    var(--shadow-card);
  background:    var(--color-surface);
  border-color:  var(--color-border-strong);
}

/* Per-panel accent strip colours */
#panel-engineering .services__solution::before { background: var(--color-brand-500);   }
#panel-mobile      .services__solution::before { background: var(--color-violet-600);  }
#panel-web         .services__solution::before { background: #0D9488;                  }
#panel-ai          .services__solution::before { background: #D97706;                  }
#panel-branding    .services__solution::before { background: #E11D48;                  }
#panel-growth      .services__solution::before { background: #16A34A;                  }

.services__solution-name {
  font-family:  var(--font-heading);
  font-size:    var(--text-sm);
  font-weight:  var(--weight-semibold);
  color:        var(--color-text-primary);
  margin:       0;
  line-height:  var(--leading-snug);
}

.services__solution-body {
  font-size:   12px;
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
  margin:      0;
}

/* ── 19.12 Tech tag row ─────────────────────────────────────────────────── */

.services__tech-row {
  display:       flex;
  flex-wrap:     wrap;
  gap:           var(--space-2);
  margin-bottom: var(--space-7);
  position:      relative;
}

.services__tech-tag {
  font-family:   var(--font-ui);
  font-size:     11px;
  font-weight:   var(--weight-medium);
  padding:       3px var(--space-3);
  background:    var(--color-bg-muted);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-full);
  color:         var(--color-text-tertiary);
  white-space:   nowrap;
  letter-spacing: var(--tracking-wide);
  transition:    background-color 0.15s ease, color 0.15s ease;
}

/* ── 19.13 Panel CTA ─────────────────────────────────────────────────────── */

.services__panel-cta {
  display:     inline-flex;
  align-items: center;
  gap:         var(--space-2);
  position:    relative;
}


/* ═══════════════════════════════════════════════════════════════════════
   §20 — FEATURED WORK & SUCCESS STORIES
   ═══════════════════════════════════════════════════════════════════════ */

/* 20.1 Section base
   ─────────────────────────────────────────────────────────────────────── */

.work {
  background:  var(--color-bg-subtle);
  padding-block: var(--space-24) var(--space-20);
  position:    relative;
  overflow:    hidden;
}

.work__container {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-14);
}

/* 20.2 Section header
   ─────────────────────────────────────────────────────────────────────── */

.work__header {
  text-align: center;
  max-width:  640px;
  margin:     0 auto;
}

.work__eyebrow-wrap {
  display:         flex;
  justify-content: center;
  margin-bottom:   var(--space-4);
}

.work__eyebrow {
  display:          inline-flex;
  align-items:      center;
  gap:              var(--space-2);
  font-size:        var(--text-xs);
  font-weight:      var(--font-semibold);
  letter-spacing:   0.1em;
  text-transform:   uppercase;
  color:            var(--color-brand-500);
  background:       rgba(21, 67, 120, 0.08);
  border:           1px solid rgba(21, 67, 120, 0.18);
  border-radius:    var(--radius-full);
  padding:          var(--space-1) var(--space-3);
}

.work__eyebrow::before {
  content:       '';
  display:       block;
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--color-brand-500);
  animation:     badgePulse 2.4s ease-in-out infinite;
}

.work__headline {
  font-size:   clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  color:       var(--color-text);
  margin-bottom: var(--space-4);
}

.work__sub {
  font-size:   var(--text-base);
  color:       var(--color-text-muted);
  line-height: 1.7;
}

/* 20.3 Ambient background
   ─────────────────────────────────────────────────────────────────────── */

.work__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.work__bg-orb {
  position: absolute;
  top: 8%;
  right: -6%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 67, 120, 0.14) 0%, transparent 70%);
  filter: blur(60px);
  animation: glowPulse 12s ease-in-out infinite;
}

.work__container { position: relative; z-index: 1; }

/* 20.4 Showcase bento grid
   ─────────────────────────────────────────────────────────────────────── */

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-5);
}

/* ── Draggable showcase carousel (hexcode-style) ─────────────────────── */
.work-carousel {
  position: relative;
  margin-top: var(--space-10);
}

.work-carousel__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-3);
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.work-carousel__track::-webkit-scrollbar { display: none; }

/* Active pointer-drag state (set by JS) */
.work-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.work-carousel__track.is-dragging .work-card {
  pointer-events: none;
}

/* Cards become fixed-width slides inside the carousel */
.work-carousel__track .work-card {
  grid-column: auto;
  grid-row: auto;
  flex: 0 0 clamp(280px, 34vw, 420px);
  scroll-snap-align: start;
}

.work-carousel__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.work-carousel__hint svg { color: var(--color-violet-500); }

/* Card — image-led, links to its case study */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  text-decoration: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 300ms var(--ease-out), box-shadow 360ms ease, border-color 360ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(21, 67, 120, 0.28);
  box-shadow: 0 30px 64px rgba(21, 67, 120, 0.16);
  outline: none;
}

/* Feature card spans wide + tall */
.work-card--feature {
  grid-column: span 4;
  grid-row: span 2;
}

/* Media */
.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-bg-subtle);
}

.work-card--feature .work-card__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 240px;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 640ms var(--ease-out);
}

.work-card:hover .work-card__img,
.work-card:focus-visible .work-card__img {
  transform: scale(1.06);
}

/* Category chip */
.work-card__cat {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(7, 19, 34, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 4px var(--space-2-5);
}

/* Project TYPE tag — top-right, so it never collides with the category badge */
.work-card__type {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(21, 67, 120, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-full);
  padding: 4px var(--space-2-5);
  white-space: nowrap;
}

/* Hover shine sweep across the image */
.work-card__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 720ms var(--ease-out);
}

.work-card:hover .work-card__shine,
.work-card:focus-visible .work-card__shine {
  transform: translateX(120%);
}

/* Body */
.work-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.work-card__num {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
  color: var(--color-brand-400);
}

.work-card__name {
  font-family: var(--font-display);
  font-size: var(--text-h6);
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text);
}

.work-card--feature .work-card__name {
  font-size: clamp(var(--text-h5), 2.4vw, var(--text-h4));
}

.work-card__tag {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand-500);
  transition: gap 220ms ease;
}

.work-card:hover .work-card__cta,
.work-card:focus-visible .work-card__cta {
  gap: var(--space-3);
}

.work-card__cta svg {
  transition: transform 220ms ease;
}

.work-card:hover .work-card__cta svg { transform: translateX(2px); }

/* 20.5 Footer CTA
   ─────────────────────────────────────────────────────────────────────── */

.work__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding-top: var(--space-4);
}

.work__footer-text {
  font-size: var(--text-body-lg);
  font-weight: var(--font-medium);
  color: var(--color-text);
  max-width: 46ch;
}

.work__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.work__footer-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* 20.6 Responsive
   ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .work-card { grid-column: span 1; }
  .work-card--feature { grid-column: span 2; grid-row: auto; }
  .work-card--feature .work-card__media { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 639px) {
  .work__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .work-card,
  .work-card--feature { grid-column: span 1; }
  .work-card--feature .work-card__media { aspect-ratio: 3 / 2; }
  .work__footer-actions { width: 100%; }
  .work__footer-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .work__bg-orb,
  .work-card__img,
  .work-card__shine { animation: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   §21 — ENGINEERING PROCESS — HORIZONTAL 3D SCROLL EXPERIENCE
   ═══════════════════════════════════════════════════════════════════════ */

/* 21.1 Section shell
   ─────────────────────────────────────────────────────────────────────── */

.process {
  background: var(--color-bg);
  overflow:   hidden;
}

/* 21.2 Static header (above the scroll experience)
   ─────────────────────────────────────────────────────────────────────── */

.process__header-wrap {
  padding-block: var(--space-24) var(--space-12);
}

.process__header {
  text-align: center;
  max-width:  600px;
  margin:     0 auto;
}

.process__eyebrow-wrap {
  display:         flex;
  justify-content: center;
  margin-bottom:   var(--space-4);
}

.process__eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-2);
  font-size:      var(--text-xs);
  font-weight:    var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-brand-500);
  background:     rgba(21, 67, 120, 0.08);
  border:         1px solid rgba(21, 67, 120, 0.18);
  border-radius:  var(--radius-full);
  padding:        var(--space-1) var(--space-3);
}

.process__eyebrow::before {
  content:       '';
  display:       block;
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--color-brand-500);
  animation:     badgePulse 2.4s ease-in-out infinite;
}

.process__headline {
  font-size:     clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:   var(--font-extrabold);
  line-height:   1.1;
  color:         var(--color-text);
  margin-bottom: var(--space-4);
}

.process__sub {
  font-size:   var(--text-base);
  color:       var(--color-text-muted);
  line-height: 1.7;
  margin:      0;
}

/* 21.3 Scroll trigger — creates vertical scroll space for jacking
   ─────────────────────────────────────────────────────────────────────── */

.process__scroll-trigger {
  height:   360vh;   /* shorter = snappier pacing, less empty scrolling */
  position: relative;
}

/* 21.4 Sticky viewport — the 3D stage
   ─────────────────────────────────────────────────────────────────────── */

.process__sticky {
  position:        sticky;
  /* Full-height pin centres a COMPACT stage band in the viewport — the grey
     stage now hugs the cards (no more full-viewport padded box). */
  top:             var(--navbar-height);
  height:          calc(100vh - var(--navbar-height));
  overflow:        hidden;
  display:         flex;
  flex-direction:  column;
  justify-content: center;   /* centres the compact stage band vertically */
  background:      transparent;
}

/* The visible "stage" — a compact band that hugs HUD · cards · nav */
.process__stage {
  position:        relative;
  width:           100%;
  display:         flex;
  flex-direction:  column;
  gap:             var(--space-4);
  padding-block:   var(--space-6);
  overflow:        hidden;
  background:      var(--color-bg-subtle);
  border-top:      1px solid var(--color-border);
  border-bottom:   1px solid var(--color-border);
}

/* Ambient depth contained within the stage band — navy glow + gold + dot grid */
.process__stage::before {
  content:       '';
  position:      absolute;
  inset:         0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(21, 67, 120, 0.07) 0%, transparent 62%),
    radial-gradient(circle at 84% 16%, rgba(21, 67, 120, 0.07) 0%, transparent 42%),
    radial-gradient(circle, rgba(9, 25, 47, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  pointer-events: none;
  z-index:       0;
}

/* 21.5 HUD — stage counter (top-centre)
   ─────────────────────────────────────────────────────────────────────── */

.process__hud {
  align-self:  center;   /* in-flow now: sits directly above the cards */
  display:     flex;
  align-items: baseline;
  gap:         var(--space-1);
  z-index:     10;
  pointer-events: none;
}

.process__hud-current {
  font-size:           clamp(var(--text-3xl), 3.4vw, 42px);
  font-weight:         var(--font-extrabold);
  color:               var(--color-brand-500);
  font-variant-numeric: tabular-nums;
  line-height:         1;
  transition:          color 0.2s var(--ease-out);
}

.process__hud-sep {
  font-size:   var(--text-sm);
  font-weight: var(--font-medium);
  color:       var(--color-text-subtle);
  margin-bottom: 2px;
}

.process__hud-total {
  font-size:   var(--text-sm);
  font-weight: var(--font-semibold);
  color:       var(--color-text-subtle);
  margin-bottom: 2px;
}

/* 21.6 Card track — horizontal flex
   ─────────────────────────────────────────────────────────────────────── */

.process__track {
  display:    flex;
  gap:        32px; /* must match CARD_G in process.js */
  list-style: none;
  margin:     0;
  padding:    0;  /* overridden by JS inline: paddingLeft/Right */
  position:   relative;
  z-index:    1;
  will-change: transform;
}

/* 21.7 Individual stage card
   ─────────────────────────────────────────────────────────────────────── */

/* Static responsive grid of the six steps (no scroll-jacking, no 3D) */
.process__grid {
  list-style:            none;
  margin:                0;
  padding:               0;
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--space-6);
}

.process__stage-card {
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-2xl);
  padding:        var(--space-8);
  box-shadow:     var(--shadow-card);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-4);
  position:       relative;
  overflow:       hidden;
  transition:     transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}

.process__stage-card:hover {
  transform:    translateY(-4px);
  border-color: rgba(21, 67, 120, 0.28);
  box-shadow:   0 18px 40px rgba(21, 67, 120, 0.10), 0 4px 10px rgba(0,0,0,0.04);
}

/* Large decorative bg number — purely visual depth */
.process__card-bg-num {
  position:       absolute;
  top:            -12px;
  right:          var(--space-6);
  font-size:      120px;
  font-weight:    var(--font-extrabold);
  line-height:    1;
  color:          var(--color-text);
  opacity:        0.04;
  pointer-events: none;
  user-select:    none;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

/* 21.8 Card header — icon + meta
   ─────────────────────────────────────────────────────────────────────── */

.process__card-top {
  display:     flex;
  align-items: flex-start;
  gap:         var(--space-3);
}

.process__icon-wrap {
  width:          40px;
  height:         40px;
  border-radius:  var(--radius-lg);
  display:        flex;
  align-items:    center;
  justify-content: center;
  flex-shrink:    0;
}

.process__icon-wrap--blue   { background: rgba(21, 67, 120, 0.10); color: var(--color-brand-500);  }
.process__icon-wrap--violet { background: rgba(18, 60, 108, 0.10); color: var(--color-violet-600); }
.process__icon-wrap--amber  { background: rgba(245, 158,  11, 0.10); color: #F59E0B; }
.process__icon-wrap--green  { background: rgba( 16, 185, 129, 0.10); color: #10B981; }
.process__icon-wrap--teal   { background: rgba( 13, 148, 136, 0.10); color: #0D9488; }
.process__icon-wrap--rose   { background: rgba(244,  63,  94, 0.10); color: #F43F5E; }

.process__card-meta {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.process__stage-num {
  font-size:           var(--text-xs);
  font-weight:         var(--font-bold);
  color:               var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
  letter-spacing:      0.08em;
}

.process__stage-label {
  font-size:      var(--text-xs);
  font-weight:    var(--font-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color:          var(--color-text-subtle);
}

/* 21.9 Card body copy
   ─────────────────────────────────────────────────────────────────────── */

.process__card-title {
  font-size:   var(--text-lg);
  font-weight: var(--font-bold);
  color:       var(--color-text);
  line-height: 1.3;
  margin:      0;
}

.process__card-desc {
  font-size:   var(--text-sm);
  color:       var(--color-text-muted);
  line-height: 1.7;
  margin:      0;
}

/* 21.10 Deliverable pills
   ─────────────────────────────────────────────────────────────────────── */

.process__deliverables {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--space-2);
  list-style: none;
  margin:     0;
  padding:    0;
}

.process__deliverables li {
  font-size:     11px;
  font-weight:   var(--font-medium);
  color:         var(--color-text-muted);
  background:    var(--color-bg-subtle);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding:       3px var(--space-3);
  white-space:   nowrap;
}

/* 21.11 Collaboration note
   ─────────────────────────────────────────────────────────────────────── */

.process__collab {
  display:      flex;
  align-items:  flex-start;
  gap:          var(--space-2);
  font-size:    var(--text-xs);
  color:        var(--color-text-subtle);
  border-top:   1px solid var(--color-border);
  padding-top:  var(--space-3);
  margin-top:   auto; /* push to bottom of card */
  line-height:  1.5;
}

.process__collab-icon {
  flex-shrink: 0;
  margin-top:  1px;
  opacity:     0.55;
}

/* 21.12 Progress nav (bottom-centre)
   ─────────────────────────────────────────────────────────────────────── */

.process__nav {
  align-self:      center;   /* in-flow now: sits directly below the cards */
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             var(--space-3);
  width:           280px;
  z-index:         10;
  pointer-events:  none;
}

.process__progress-bar {
  width:         100%;
  height:        2px;
  background:    var(--color-border);
  border-radius: 1px;
  overflow:      hidden;
}

.process__progress-fill {
  height:        100%;
  width:         0%;
  background:    linear-gradient(to right, var(--color-brand-500), var(--color-violet-600));
  border-radius: 1px;
  transition:    width 0.08s linear;
}

.process__dots {
  display:     flex;
  gap:         var(--space-2);
  align-items: center;
}

.process__dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--color-border-strong);
  transition:    background 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}

.process__dot--active {
  background: var(--color-brand-500);
  transform:  scale(1.5);
}

/* 21.13 Static footer CTA (below scroll trigger)
   ─────────────────────────────────────────────────────────────────────── */

.process__footer-wrap {
  padding-block: var(--space-12) var(--space-16);
}

.process__footer {
  text-align: center;
}

.process__footer-text {
  font-size:     var(--text-sm);
  color:         var(--color-text-subtle);
  margin-bottom: var(--space-4);
}

/* 21.14 Responsive — mobile: CSS scroll-snap, no JS jacking
   ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

@media (max-width: 767px) {
  .process__header-wrap { padding-block: var(--space-16) var(--space-8); }
  .process__grid        { grid-template-columns: 1fr; }
  .process__stage-card  { padding: var(--space-6); }
  .process__card-bg-num { font-size: 90px; }
  .process__footer-wrap { padding-block: var(--space-8) var(--space-12); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §22 — TECHNOLOGY ECOSYSTEM
   ─────────────────────────────────────────────────────────────────────────── */

/* 22.1 Section shell
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem {
  background:  var(--color-bg);
  padding:     var(--space-24) 0 var(--space-20);
  position:    relative;
  overflow:    hidden;
}

/* 22.2 Background decoration
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__bg {
  position:       absolute;
  inset:          0;
  pointer-events: none;
  z-index:        0;
}

.ecosystem__bg-mesh {
  position:           absolute;
  inset:              0;
  background-image:   radial-gradient(circle, rgba(21, 67, 120,0.12) 1px, transparent 1px);
  background-size:    44px 44px;
  opacity:            0.6;
}

.ecosystem__bg-orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(90px);
}

.ecosystem__bg-orb--1 {
  width:      640px;
  height:     640px;
  background: var(--color-brand-500);
  opacity:    0.07;
  top:        -180px;
  right:      -140px;
}

.ecosystem__bg-orb--2 {
  width:      480px;
  height:     480px;
  background: var(--color-violet-500);
  opacity:    0.06;
  bottom:     80px;
  left:       -120px;
}

/* 22.3 Section header
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__header {
  text-align: center;
  max-width:  680px;
  margin:     0 auto var(--space-14);
  position:   relative;
  z-index:    1;
}

.ecosystem__eyebrow-wrap {
  margin-bottom: var(--space-4);
}

.ecosystem__eyebrow {
  display:        inline-block;
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-brand-500);
  position:       relative;
  padding:        0 var(--space-6);
}

.ecosystem__eyebrow::before,
.ecosystem__eyebrow::after {
  content:    '';
  position:   absolute;
  top:        50%;
  width:      28px;
  height:     1px;
  background: var(--color-brand-500);
  opacity:    0.5;
  transform:  translateY(-50%);
}

.ecosystem__eyebrow::before { right: 100%; }
.ecosystem__eyebrow::after  { left:  100%; }

.ecosystem__headline {
  font-size:   clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 800;
  line-height: 1.15;
  color:       var(--color-text-primary);
  margin:      0 0 var(--space-5);
  letter-spacing: -0.02em;
}

.ecosystem__sub {
  font-size:  var(--text-body-lg);
  color:      var(--color-text-tertiary);
  line-height: 1.7;
  max-width:  520px;
  margin:     0 auto;
}

/* 22.4 Category filter pills
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__cats {
  margin-bottom: var(--space-10);
  position:      relative;
  z-index:       1;
}

.ecosystem__cat-list {
  display:         flex;
  flex-wrap:       wrap;
  gap:             var(--space-2);
  justify-content: center;
  list-style:      none;
  margin:          0;
  padding:         0;
}

.ecosystem__cat-btn {
  font-size:      var(--text-sm);
  font-weight:    600;
  color:          var(--color-text-tertiary);
  background:     transparent;
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-full);
  padding:        var(--space-2) var(--space-5);
  cursor:         pointer;
  transition:     color 200ms ease, background 200ms ease,
                  border-color 200ms ease, box-shadow 200ms ease;
  white-space:    nowrap;
}

.ecosystem__cat-btn:hover {
  border-color: var(--color-brand-500);
  color:        var(--color-brand-500);
  background:   var(--color-brand-50);
}

.ecosystem__cat-btn--active {
  background:   var(--color-brand-500);
  border-color: var(--color-brand-500);
  color:        #fff;
  box-shadow:   0 4px 14px rgba(21, 67, 120,0.35);
}

.ecosystem__cat-btn--active:hover {
  background:   var(--color-brand-600);
  border-color: var(--color-brand-600);
  color:        #fff;
}

/* 22.5 Card grid
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap:                   var(--space-3);
  list-style:            none;
  margin:                0 0 var(--space-12);
  padding:               0;
  position:              relative;
  z-index:               1;
}

/* 22.6 Flip card shell
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__card {
  perspective: 1100px;
  height:      168px;
  transition:  opacity 200ms ease, transform 200ms ease;
}

.ecosystem__card--hidden {
  display: none;
}

.ecosystem__card--dimmed {
  opacity:   0.35;
  transform: scale(0.97);
}

.ecosystem__card--related .ecosystem__card-front {
  border-color: rgba(21, 67, 120,0.45) !important;
  box-shadow:   0 0 0 3px rgba(21, 67, 120,0.12),
                0 6px 20px rgba(21, 67, 120,0.14) !important;
}

/* 22.7 Inner — handles the flip transform
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__card-inner {
  position:        relative;
  width:           100%;
  height:          100%;
  transform-style: preserve-3d;
  transition:      transform 480ms var(--ease-smooth);
  cursor:          pointer;
}

.ecosystem__card:hover .ecosystem__card-inner,
.ecosystem__card:focus-within .ecosystem__card-inner {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem__card-inner,
  .ecosystem__card:hover .ecosystem__card-inner,
  .ecosystem__card:focus-within .ecosystem__card-inner {
    transition: none;
    transform:  none;
  }

  .ecosystem__card:hover .ecosystem__card-front,
  .ecosystem__card:focus-within .ecosystem__card-front {
    display: none;
  }

  .ecosystem__card:hover .ecosystem__card-back,
  .ecosystem__card:focus-within .ecosystem__card-back {
    transform: rotateY(0);
    opacity:   1;
  }
}

/* 22.8 Card faces
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__card-front,
.ecosystem__card-back {
  position:           absolute;
  inset:              0;
  border-radius:      var(--radius-xl);
  padding:            var(--space-4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front face */
.ecosystem__card-front {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  display:       flex;
  flex-direction: column;
  gap:           var(--space-3);
  box-shadow:    0 1px 3px rgba(0,0,0,0.05),
                 0 4px 12px rgba(0,0,0,0.03);
  transition:    box-shadow 220ms ease, border-color 220ms ease;
}

.ecosystem__card:hover .ecosystem__card-front {
  box-shadow:   0 8px 32px rgba(21, 67, 120,0.13),
                0 2px 6px rgba(0,0,0,0.06);
  border-color: rgba(21, 67, 120,0.25);
}

/* Back face */
.ecosystem__card-back {
  background:  linear-gradient(145deg, #0f172a 0%, #12233f 100%);
  transform:   rotateY(180deg);
  display:     flex;
  flex-direction: column;
  gap:         var(--space-3);
  color:       #fff;
  box-shadow:  0 8px 32px rgba(15,23,42,0.25);
  border:      1px solid rgba(255,255,255,0.07);
}

/* 22.9 Card front content
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__card-icon {
  width:           44px;
  height:          44px;
  border-radius:   var(--radius-xl);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

/* Icon colour themes by category */
.ecosystem__card-icon--mobile   { background: rgba(21, 67, 120,0.10);  color: var(--color-brand-500);  }
.ecosystem__card-icon--frontend { background: rgba(245,158,11,0.10);  color: #F59E0B;                  }
.ecosystem__card-icon--backend  { background: rgba(16,185,129,0.10);  color: #10B981;                  }
.ecosystem__card-icon--database { background: rgba(18, 60, 108,0.10);  color: var(--color-violet-600);  }
.ecosystem__card-icon--cloud    { background: rgba(6,182,212,0.10);   color: #06B6D4;                  }
.ecosystem__card-icon--ai       { background: rgba(244,63,94,0.10);   color: #F43F5E;                  }
.ecosystem__card-icon--devops   { background: rgba(13,148,136,0.10);  color: #0D9488;                  }

.ecosystem__card-cat-badge {
  display:        inline-flex;
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color:          var(--color-text-tertiary);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-full);
  padding:        2px var(--space-2);
  align-self:     flex-start;
  line-height:    1.4;
}

.ecosystem__card-name {
  font-size:   var(--text-body);
  font-weight: 700;
  color:       var(--color-text-primary);
  margin:      0;
  line-height: 1.3;
}

.ecosystem__card-purpose {
  font-size:  var(--text-xs);
  color:      var(--color-text-tertiary);
  line-height: 1.5;
  margin:     0 0 auto;
}

/* 22.10 Card back content
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__card-back .ecosystem__card-name {
  color:       rgba(255,255,255,0.95);
  font-size:   var(--text-sm);
  font-weight: 700;
}

.ecosystem__card-use {
  font-size:   var(--text-xs);
  line-height: 1.65;
  color:       rgba(255,255,255,0.72);
  margin:      0;
  flex:        1;
}

.ecosystem__related-label {
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.45);
  display:        block;
  margin-bottom:  var(--space-2);
}

.ecosystem__related-tags {
  display:  flex;
  flex-wrap: wrap;
  gap:      var(--space-1);
}

.ecosystem__related-tags span {
  font-size:     10px;
  font-weight:   500;
  background:    rgba(255,255,255,0.10);
  color:         rgba(255,255,255,0.85);
  border-radius: var(--radius-full);
  padding:       2px 8px;
  border:        1px solid rgba(255,255,255,0.14);
  line-height:   1.6;
}

/* 22.11 Card entrance animation
   ─────────────────────────────────────────────────────────────────────────── */

@keyframes ecosystemCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

.ecosystem__card--entering {
  animation: ecosystemCardIn 280ms var(--ease-out) both;
}

/* 22.12 Stats strip
   ─────────────────────────────────────────────────────────────────────────── */

.ecosystem__stats {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             var(--space-16);
  padding-top:     var(--space-10);
  border-top:      1px solid var(--color-border);
  position:        relative;
  z-index:         1;
}

.ecosystem__stat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-1);
  text-align:     center;
}

.ecosystem__stat-num {
  font-size:      clamp(var(--text-h5), 2.5vw, var(--text-h3));
  font-weight:    800;
  color:          var(--color-brand-500);
  letter-spacing: -0.02em;
  line-height:    1;
}

.ecosystem__stat-label {
  font-size:   var(--text-xs);
  color:       var(--color-text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.ecosystem__stats-divider {
  width:      1px;
  height:     40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* 22.13 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .ecosystem__grid {
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: var(--space-3);
  }
}

@media (max-width: 767px) {
  .ecosystem__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
  }

  .ecosystem__card { height: 182px; }

  .ecosystem__stats {
    gap:      var(--space-8);
    flex-wrap: wrap;
  }

  .ecosystem__stats-divider { display: none; }

  .ecosystem__cat-list {
    justify-content: flex-start;
    overflow-x:      auto;
    flex-wrap:       nowrap;
    padding-bottom:  var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ecosystem__cat-list::-webkit-scrollbar { display: none; }
}

@media (max-width: 479px) {
  .ecosystem__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .ecosystem__card { height: 178px; }

  .ecosystem__card-front,
  .ecosystem__card-back {
    padding: var(--space-4);
  }

  .ecosystem__stats { gap: var(--space-6); }
}

/* 22.14 Modern enhancements — cursor spotlight, lift, live icons
   ─────────────────────────────────────────────────────────────────────────── */

/* Cursor-tracking spotlight that glides across the whole grid */
.ecosystem__grid::before {
  content:        '';
  position:       absolute;
  inset:          -60px;
  z-index:        0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(21, 67, 120, 0.12), transparent 62%);
  opacity:    0;
  transition: opacity 320ms ease;
}
.ecosystem__grid.is-live::before { opacity: 1; }
[data-theme="dark"] .ecosystem__grid::before {
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(61, 107, 160, 0.22), transparent 62%);
}

/* Cards sit above the spotlight; whole card lifts on hover (independent of flip) */
.ecosystem__card {
  position: relative;
  z-index:  1;
  transition: opacity 200ms ease, transform 320ms var(--ease-out);
}
.ecosystem__card:hover { transform: translateY(-6px); z-index: 2; }

/* Richer glow on the visible (back) face while hovered */
.ecosystem__card-back {
  position: relative;
  overflow: hidden;
  transition: box-shadow 260ms ease, border-color 260ms ease;
}
.ecosystem__card-back::before {
  content:        '';
  position:       absolute;
  inset:          0;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% -12%, rgba(61, 107, 160, 0.38), transparent 60%);
}
.ecosystem__card-back > * { position: relative; z-index: 1; }
.ecosystem__card:hover .ecosystem__card-back,
.ecosystem__card:focus-within .ecosystem__card-back {
  box-shadow:   0 26px 56px rgba(21, 67, 120, 0.30);
  border-color: rgba(110, 147, 190, 0.28);
}

/* Idle-floating icons keep the grid alive at rest (staggered by column) */
@keyframes ecoIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.ecosystem__card-icon {
  animation:  ecoIconFloat 4s ease-in-out infinite;
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}
.ecosystem__card:nth-child(3n)   .ecosystem__card-icon { animation-delay: -1.3s; }
.ecosystem__card:nth-child(3n+1) .ecosystem__card-icon { animation-delay: -2.6s; }

@media (prefers-reduced-motion: reduce) {
  .ecosystem__card-icon { animation: none; }
  .ecosystem__card:hover { transform: none; }
  .ecosystem__grid.is-live::before { opacity: 0; }
}

/* 22.15 Compact + premium refinement
   Denser tiles, cleaner front, category accent bar, clamped copy so the
   shorter cards never clip. Content and the flip interaction are unchanged.
   ─────────────────────────────────────────────────────────────────────────── */

/* Front — tighter, with a category-coloured accent bar that lifts on hover */
.ecosystem__card-front {
  position: relative;
  overflow: hidden;
  gap: var(--space-2);
}
.ecosystem__card-front::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
  background: var(--color-brand-500);
}
.ecosystem__card:hover .ecosystem__card-front::after,
.ecosystem__card:focus-within .ecosystem__card-front::after { transform: scaleX(1); }

/* Category accent colours (mirror the icon palette) */
.ecosystem__card[data-cat="mobile"]   .ecosystem__card-front::after { background: var(--color-brand-500); }
.ecosystem__card[data-cat="frontend"] .ecosystem__card-front::after { background: #F59E0B; }
.ecosystem__card[data-cat="backend"]  .ecosystem__card-front::after { background: #10B981; }
.ecosystem__card[data-cat="database"] .ecosystem__card-front::after { background: var(--color-violet-600); }
.ecosystem__card[data-cat="cloud"]    .ecosystem__card-front::after { background: #06B6D4; }
.ecosystem__card[data-cat="ai"]       .ecosystem__card-front::after { background: #F43F5E; }
.ecosystem__card[data-cat="devops"]   .ecosystem__card-front::after { background: #0D9488; }

/* Smaller icon; the category badge is redundant (icon + accent already encode it) */
.ecosystem__card-icon { width: 38px; height: 38px; border-radius: var(--radius-lg); }
.ecosystem__card-icon svg { width: 18px; height: 18px; }
.ecosystem__card-cat-badge { display: none; }
.ecosystem__card-name { font-size: var(--text-sm); }
.ecosystem__card-purpose {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Back — clamp copy so nothing spills at the reduced height */
.ecosystem__card-back { gap: var(--space-2); overflow: hidden; }
.ecosystem__card-use {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ecosystem__card-back .ecosystem__related-label { margin-bottom: var(--space-1); }


/* ═══════════════════════════════════════════════════════════════════════════
   §23 — WHY PARTNER WITH FIRMEZA
   ─────────────────────────────────────────────────────────────────────────── */

/* 23.1 Section shell
   ─────────────────────────────────────────────────────────────────────────── */

.partners {
  background:  var(--color-bg);
  padding:     var(--space-24) 0;
  position:    relative;
  overflow:    hidden;
}

/* 23.2 Floating background decoration
   ─────────────────────────────────────────────────────────────────────────── */

.partners__bg {
  position:       absolute;
  inset:          0;
  pointer-events: none;
  z-index:        0;
  overflow:       hidden;
}

.partners__orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(100px);
  will-change:   transform;
}

.partners__orb--1 {
  width:      560px;
  height:     560px;
  background: var(--color-brand-500);
  opacity:    0.08;
  top:        -160px;
  left:       -120px;
}

.partners__orb--2 {
  width:      460px;
  height:     460px;
  background: var(--color-violet-500);
  opacity:    0.07;
  bottom:     -140px;
  right:      -100px;
}

/* Animated connector line — a soft dashed thread drawn behind the grid */
.partners__connectors {
  position:  absolute;
  inset:     0;
  width:     100%;
  height:    100%;
  opacity:   0.5;
}

.partners__connector-path {
  fill:              none;
  stroke:            url(#partners-line-grad);
  stroke-width:      1.5;
  stroke-dasharray:  6 10;
  animation:         partnersDash 2.4s linear infinite;
}

@keyframes partnersDash {
  to { stroke-dashoffset: -160; }
}

@media (prefers-reduced-motion: reduce) {
  .partners__connector-path { animation: none; }
}

/* 23.3 Section header
   ─────────────────────────────────────────────────────────────────────────── */

.partners__header {
  text-align: center;
  max-width:  720px;
  margin:     0 auto var(--space-16);
  position:   relative;
  z-index:    1;
}

.partners__eyebrow-wrap { margin-bottom: var(--space-4); }

.partners__eyebrow {
  display:        inline-block;
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-brand-500);
  position:       relative;
  padding:        0 var(--space-6);
}

.partners__eyebrow::before,
.partners__eyebrow::after {
  content:    '';
  position:   absolute;
  top:        50%;
  width:      28px;
  height:     1px;
  background: var(--color-brand-500);
  opacity:    0.5;
  transform:  translateY(-50%);
}

.partners__eyebrow::before { right: 100%; }
.partners__eyebrow::after  { left:  100%; }

.partners__headline {
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    800;
  line-height:    1.14;
  color:          var(--color-text-primary);
  margin:         0 0 var(--space-5);
  letter-spacing: -0.02em;
}

.partners__sub {
  font-size:   var(--text-body-lg);
  color:       var(--color-text-tertiary);
  line-height: 1.7;
  max-width:   560px;
  margin:      0 auto;
}

/* 23.4 Bento grid
   ─────────────────────────────────────────────────────────────────────────── */

.partners__grid {
  display:               grid;
  grid-template-columns: repeat(12, 1fr);
  gap:                   var(--space-5);
  list-style:            none;
  margin:                0;
  padding:               0;
  position:              relative;
  z-index:               1;
}

/* Desktop bento spans */
.partners__card:nth-child(1) { grid-column: span 7; }
.partners__card:nth-child(2) { grid-column: span 5; }
.partners__card:nth-child(3) { grid-column: span 4; }
.partners__card:nth-child(4) { grid-column: span 4; }
.partners__card:nth-child(5) { grid-column: span 4; }
.partners__card:nth-child(6) { grid-column: span 12; }

/* 23.5 Value card — tilt shell
   ─────────────────────────────────────────────────────────────────────────── */

.partners__card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;

  position:        relative;
  background:      var(--color-surface);
  border:          1px solid var(--color-border);
  border-radius:   var(--radius-2xl);
  padding:         var(--space-8);
  overflow:        hidden;
  transform:       perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:      transform 500ms var(--ease-out),
                   box-shadow 320ms ease,
                   border-color 320ms ease;
  box-shadow:      0 1px 3px rgba(0,0,0,0.04),
                   0 6px 20px rgba(0,0,0,0.03);
}

/* While the cursor is inside, drop the transform transition for 1:1 tracking */
.partners__card--tilting {
  transition: box-shadow 320ms ease, border-color 320ms ease;
}

.partners__card:hover {
  border-color: rgba(21, 67, 120,0.28);
  box-shadow:   0 18px 44px rgba(21, 67, 120,0.13),
                0 4px 12px rgba(0,0,0,0.05);
}

/* Cursor-tracking glow sheen */
.partners__card::before {
  content:     '';
  position:    absolute;
  inset:       0;
  border-radius: inherit;
  background:  radial-gradient(420px circle at var(--mx) var(--my),
               rgba(21, 67, 120,0.10), transparent 45%);
  opacity:     0;
  transition:  opacity 320ms ease;
  pointer-events: none;
}

.partners__card:hover::before { opacity: 1; }

/* 23.6 Card content
   ─────────────────────────────────────────────────────────────────────────── */

.partners__card-icon {
  width:           52px;
  height:          52px;
  border-radius:   var(--radius-xl);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  margin-bottom:   var(--space-5);
  background:      linear-gradient(145deg,
                   rgba(21, 67, 120,0.12), rgba(18, 60, 108,0.10));
  color:           var(--color-brand-500);
  transition:      transform 400ms var(--ease-spring);
}

.partners__card:hover .partners__card-icon {
  transform: translateZ(28px) scale(1.05);
}

.partners__card-title {
  font-size:      var(--text-h5);
  font-weight:    700;
  color:          var(--color-text-primary);
  line-height:    1.3;
  margin:         0 0 var(--space-3);
  letter-spacing: -0.01em;
}

.partners__card-desc {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  line-height: 1.7;
  margin:      0;
  max-width:   46ch;
}

/* 23.7 Business-value reveal — fades/expands in on hover
   ─────────────────────────────────────────────────────────────────────────── */

.partners__card-value {
  max-height:  0;
  opacity:     0;
  overflow:    hidden;
  margin-top:  0;
  /* box-sizing: border-box (global) means max-height:0 + overflow:hidden
     also clips the inner padding, so the row collapses fully to nothing */
  transition:  max-height 460ms var(--ease-out),
               opacity 300ms ease,
               margin-top 460ms var(--ease-out);
}

.partners__card:hover .partners__card-value,
.partners__card:focus-within .partners__card-value {
  max-height:  160px;
  opacity:     1;
  margin-top:  var(--space-5);
}

.partners__card-value-inner {
  display:      flex;
  align-items:  flex-start;
  gap:          var(--space-2-5);
  padding-top:  var(--space-4);
  border-top:   1px solid var(--color-border);
  font-size:    var(--text-sm);
  font-weight:  500;
  color:        var(--color-brand-600);
  line-height:  1.55;
}

.partners__card-value-icon {
  flex-shrink: 0;
  margin-top:  2px;
}

/* On touch / reduced-motion, always show the business value (no hover) */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .partners__card-value {
    max-height: 160px;
    opacity:    1;
    margin-top: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__card,
  .partners__card:hover .partners__card-icon {
    transform:  none;
    transition: box-shadow 200ms ease, border-color 200ms ease;
  }
}

/* 23.8 Card stat cue (used on wider cards)
   ─────────────────────────────────────────────────────────────────────────── */

.partners__card-stat {
  display:      flex;
  align-items:  baseline;
  gap:          var(--space-2);
  margin-top:   var(--space-6);
}

.partners__card-stat-num {
  font-size:      clamp(var(--text-h4), 3vw, var(--text-h3));
  font-weight:    800;
  color:          var(--color-brand-500);
  letter-spacing: -0.02em;
  line-height:    1;
}

.partners__card-stat-label {
  font-size: var(--text-sm);
  color:     var(--color-text-tertiary);
  font-weight: 500;
}

/* 23.9 Closing partnership card (card 6 — wide banner)
   ─────────────────────────────────────────────────────────────────────────── */

.partners__card--feature {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-10);
  background:      linear-gradient(135deg, #0f172a 0%, #12233f 55%, #154378 100%);
  border-color:    transparent;
  padding:         var(--space-10) var(--space-12);
}

.partners__card--feature::before {
  background: radial-gradient(520px circle at var(--mx) var(--my),
             rgba(129,140,248,0.20), transparent 45%);
}

.partners__card--feature:hover {
  border-color: transparent;
  box-shadow:   0 24px 60px rgba(15,23,42,0.35);
}

.partners__feature-body { max-width: 620px; }

.partners__card--feature .partners__card-icon {
  background: rgba(255,255,255,0.10);
  color:      #fff;
}

.partners__card--feature .partners__card-title {
  color:     #fff;
  font-size: var(--text-h4);
}

.partners__card--feature .partners__card-desc {
  color:     rgba(255,255,255,0.72);
  max-width: 58ch;
}

.partners__feature-cta {
  flex-shrink: 0;
}

/* 23.10 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .partners__grid { grid-template-columns: repeat(2, 1fr); }

  .partners__card:nth-child(1) { grid-column: span 2; }
  .partners__card:nth-child(2) { grid-column: span 1; }
  .partners__card:nth-child(3),
  .partners__card:nth-child(4),
  .partners__card:nth-child(5) { grid-column: span 1; }
  .partners__card:nth-child(6) { grid-column: span 2; }

  .partners__card { padding: var(--space-7); }
}

@media (max-width: 767px) {
  .partners { padding: var(--space-20) 0; }

  .partners__header { margin-bottom: var(--space-12); }

  .partners__grid { grid-template-columns: 1fr; }

  .partners__card:nth-child(1),
  .partners__card:nth-child(2),
  .partners__card:nth-child(3),
  .partners__card:nth-child(4),
  .partners__card:nth-child(5),
  .partners__card:nth-child(6) { grid-column: span 1; }

  /* Tilt is disabled on touch, but neutralise transform defensively */
  .partners__card { transform: none; }

  .partners__card--feature {
    flex-direction: column;
    align-items:    flex-start;
    gap:            var(--space-6);
    padding:        var(--space-8);
  }

  .partners__feature-cta { width: 100%; }
  .partners__feature-cta .btn { width: 100%; }
}

@media (max-width: 479px) {
  .partners__card { padding: var(--space-6); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §24 — CLIENT SUCCESS & TESTIMONIALS
   ─────────────────────────────────────────────────────────────────────────── */

/* 24.1 Section shell
   ─────────────────────────────────────────────────────────────────────────── */

.success {
  background:  var(--color-bg-subtle);
  padding:     var(--space-24) 0;
  position:    relative;
  overflow:    hidden;
}

.success__bg {
  position:       absolute;
  inset:          0;
  pointer-events: none;
  z-index:        0;
}

.success__bg-orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(100px);
}

.success__bg-orb--1 {
  width: 540px; height: 540px;
  background: var(--color-brand-500);
  opacity: 0.06; top: -160px; right: -120px;
}

.success__bg-orb--2 {
  width: 440px; height: 440px;
  background: var(--color-violet-500);
  opacity: 0.05; bottom: -120px; left: -100px;
}

/* 24.2 Header
   ─────────────────────────────────────────────────────────────────────────── */

.success__header {
  text-align: center;
  max-width:  700px;
  margin:     0 auto var(--space-14);
  position:   relative;
  z-index:    1;
}

.success__eyebrow-wrap { margin-bottom: var(--space-4); }

.success__eyebrow {
  display:        inline-block;
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-brand-500);
  position:       relative;
  padding:        0 var(--space-6);
}

.success__eyebrow::before,
.success__eyebrow::after {
  content: ''; position: absolute; top: 50%;
  width: 28px; height: 1px;
  background: var(--color-brand-500); opacity: 0.5;
  transform: translateY(-50%);
}
.success__eyebrow::before { right: 100%; }
.success__eyebrow::after  { left:  100%; }

.success__headline {
  font-size:      clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight:    800;
  line-height:    1.14;
  color:          var(--color-text-primary);
  margin:         0 0 var(--space-5);
  letter-spacing: -0.02em;
}

.success__sub {
  font-size:   var(--text-body-lg);
  color:       var(--color-text-tertiary);
  line-height: 1.7;
  max-width:   560px;
  margin:      0 auto;
}

/* 24.3 Featured band — story card + trust counters
   ─────────────────────────────────────────────────────────────────────────── */

.success__featured-band {
  display:               grid;
  grid-template-columns: 1.5fr 1fr;
  gap:                   var(--space-6);
  margin-bottom:         var(--space-6);
  position:              relative;
  z-index:               1;
}

/* Featured story card (glassmorphism over gradient) */
.success__featured {
  position:      relative;
  overflow:      hidden;
  border-radius: var(--radius-3xl);
  padding:       var(--space-10);
  background:    linear-gradient(150deg, #0f172a 0%, #12233f 55%, #154378 100%);
  color:         #fff;
  display:       flex;
  flex-direction: column;
  min-height:    320px;
  box-shadow:    0 24px 60px rgba(15, 23, 42, 0.22);
}

.success__featured-glow {
  position:      absolute;
  top:           -120px;
  right:         -80px;
  width:         360px;
  height:        360px;
  border-radius: 50%;
  background:    radial-gradient(circle, rgba(129,140,248,0.55), transparent 62%);
  filter:        blur(30px);
  pointer-events: none;
  will-change:   transform;
}

.success__featured-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-2);
  align-self:     flex-start;
  font-size:      var(--text-2xs);
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.9);
  background:     rgba(255,255,255,0.10);
  border:         1px solid rgba(255,255,255,0.16);
  border-radius:  var(--radius-full);
  padding:        var(--space-1-5) var(--space-3);
  position:       relative;
  z-index:        1;
}

.success__featured-badge svg { color: #A5B4FC; }

.success__featured-body {
  position: relative;
  z-index:  1;
  margin-top: var(--space-6);
}

.success__featured-lead {
  font-size:   var(--text-h5);
  font-weight: 600;
  line-height: 1.5;
  color:       #fff;
  margin:      0 0 var(--space-6);
  letter-spacing: -0.01em;
  max-width:   34ch;
}

.success__featured-client {
  display:     flex;
  align-items: center;
  gap:         var(--space-4);
  margin-top:  auto;
  position:    relative;
  z-index:     1;
}

.success__avatar {
  width:           54px;
  height:          54px;
  border-radius:   var(--radius-xl);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       var(--text-body);
  font-weight:     800;
  letter-spacing:  0.02em;
  flex-shrink:     0;
  color:           #fff;
  background:      linear-gradient(145deg, var(--color-brand-500), var(--color-violet-600));
  box-shadow:      0 6px 18px rgba(21, 67, 120,0.4);
}

.success__featured-client .success__avatar {
  background: linear-gradient(145deg, #F59E0B, #FB923C);
  box-shadow: 0 6px 18px rgba(245,158,11,0.35);
}

.success__client-name {
  font-size:   var(--text-body);
  font-weight: 700;
  color:       #fff;
  margin:      0;
  line-height: 1.3;
}

.success__client-meta {
  font-size: var(--text-sm);
  color:     rgba(255,255,255,0.65);
  margin:    2px 0 0;
}

.success__featured-chips {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--space-2);
  margin-top: var(--space-6);
  position:  relative;
  z-index:   1;
}

.success__featured-chips span {
  font-size:     var(--text-2xs);
  font-weight:   500;
  color:         rgba(255,255,255,0.85);
  background:    rgba(255,255,255,0.08);
  border:        1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  padding:       3px var(--space-3);
}

/* 24.4 Trust indicators (2×2 counters)
   ─────────────────────────────────────────────────────────────────────────── */

.success__stats {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   var(--space-4);
}

.success__stat {
  background:      var(--color-surface);
  border:          1px solid var(--color-border);
  border-radius:   var(--radius-2xl);
  padding:         var(--space-6);
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  gap:             var(--space-1);
  transition:      transform 300ms var(--ease-out), box-shadow 300ms ease;
}

.success__stat:hover {
  transform:  translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.success__stat-num {
  font-size:      clamp(var(--text-h4), 3.4vw, var(--text-h2));
  font-weight:    800;
  color:          var(--color-brand-500);
  letter-spacing: -0.03em;
  line-height:    1;
  font-variant-numeric: tabular-nums;
}

.success__stat-suffix { color: var(--color-violet-500); }

.success__stat-label {
  font-size:   var(--text-sm);
  color:       var(--color-text-tertiary);
  font-weight: 500;
  line-height: 1.4;
}

/* 24.5 Partnership success cards
   ─────────────────────────────────────────────────────────────────────────── */

.success__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--space-6);
  list-style:            none;
  margin:                0 0 var(--space-6);
  padding:               0;
  position:              relative;
  z-index:               1;
}

.success__card {
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-2xl);
  padding:        var(--space-7);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-4);
  transition:     transform 340ms var(--ease-out),
                  box-shadow 340ms ease,
                  border-color 340ms ease;
}

.success__card:hover {
  transform:    translateY(-5px);
  border-color: rgba(21, 67, 120,0.25);
  box-shadow:   0 16px 40px rgba(21, 67, 120,0.10),
                0 4px 10px rgba(0,0,0,0.04);
}

.success__card-top {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-3);
}

.success__card .success__avatar {
  width: 46px; height: 46px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.success__card--amber  .success__avatar { background: linear-gradient(145deg,#F59E0B,#FB923C); box-shadow:0 6px 16px rgba(245,158,11,0.30); }
.success__card--sky    .success__avatar { background: linear-gradient(145deg,#0EA5E9,#38BDF8); box-shadow:0 6px 16px rgba(14,165,233,0.30); }
.success__card--emerald .success__avatar{ background: linear-gradient(145deg,#10B981,#34D399); box-shadow:0 6px 16px rgba(16,185,129,0.30); }

.success__card-status {
  font-size:      var(--text-2xs);
  font-weight:    600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color:          #10B981;
  background:     rgba(16,185,129,0.10);
  border-radius:  var(--radius-full);
  padding:        3px var(--space-3);
  white-space:    nowrap;
}

.success__card-name {
  font-size:   var(--text-h6);
  font-weight: 700;
  color:       var(--color-text-primary);
  margin:      0;
  line-height: 1.3;
}

.success__card-tag {
  font-size:      var(--text-xs);
  font-weight:    600;
  color:          var(--color-brand-500);
  letter-spacing: 0.02em;
  margin:         -8px 0 0;
}

.success__card-desc {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-tertiary);
  line-height: 1.65;
  margin:      0;
}

/* 24.6 Voices band — testimonial template + video placeholder
   ─────────────────────────────────────────────────────────────────────────── */

.success__voices {
  position: relative;
  z-index:  1;
}

.success__voices-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             var(--space-3);
  margin-bottom:   var(--space-6);
}

.success__voices-title {
  font-size:   var(--text-h5);
  font-weight: 700;
  color:       var(--color-text-primary);
  margin:      0;
  letter-spacing: -0.01em;
}

.success__voices-note {
  font-size: var(--text-sm);
  color:     var(--color-text-tertiary);
  margin:    0;
}

.success__voices-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   var(--space-6);
}

/* Quote card — template ready to fill */
.success__quote {
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-2xl);
  padding:        var(--space-7);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-4);
  transition:     transform 340ms var(--ease-out), box-shadow 340ms ease;
}

.success__quote:hover {
  transform:  translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.success__quote-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-2);
}

.success__quote-mark {
  font-size:   48px;
  font-weight: 800;
  line-height: 0.6;
  color:       var(--color-brand-200);
  font-family: var(--font-display);
}

.success__quote-sample {
  font-size:      var(--text-2xs);
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--color-text-tertiary);
  background:     var(--color-bg-muted);
  border:         1px dashed var(--color-border-strong);
  border-radius:  var(--radius-full);
  padding:        2px var(--space-3);
  align-self:     flex-start;
}

.success__quote-rating {
  display: flex;
  gap:     2px;
  color:   var(--color-border-strong);
}

/* Add "is-on" to a star svg to highlight it when a real rating is filled in */
.success__quote-rating svg.is-on { color: #F59E0B; }

.success__quote-text {
  font-size:   var(--text-body-sm);
  color:       var(--color-text-secondary);
  line-height: 1.7;
  margin:      0;
  flex:        1;
}

.success__quote--template .success__quote-text {
  color:      var(--color-text-tertiary);
  font-style: italic;
}

.success__quote-client {
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
  padding-top: var(--space-4);
  border-top:  1px solid var(--color-border);
}

.success__quote .success__avatar {
  width: 42px; height: 42px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  background: linear-gradient(145deg, var(--color-bg-muted), #E4E4E7);
  color: var(--color-text-tertiary);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.success__quote-name {
  font-size:   var(--text-body-sm);
  font-weight: 700;
  color:       var(--color-text-secondary);
  margin:      0;
  line-height: 1.3;
}

.success__quote-role {
  font-size: var(--text-xs);
  color:     var(--color-text-tertiary);
  margin:    1px 0 0;
}

/* Video testimonial placeholder */
.success__video {
  position:       relative;
  overflow:       hidden;
  border-radius:  var(--radius-2xl);
  border:         1px solid var(--color-border);
  background:     linear-gradient(150deg, #12233f 0%, #154378 100%);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            var(--space-4);
  text-align:     center;
  padding:        var(--space-8);
  min-height:     240px;
  color:          #fff;
  cursor:         default;
}

.success__video-play {
  width:           64px;
  height:          64px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(255,255,255,0.12);
  border:          1px solid rgba(255,255,255,0.22);
  color:           #fff;
  transition:      transform 300ms var(--ease-spring), background 300ms ease;
}

.success__video:hover .success__video-play {
  transform:  scale(1.08);
  background: rgba(255,255,255,0.20);
}

.success__video-label {
  font-size:   var(--text-body-sm);
  font-weight: 600;
  color:       #fff;
  margin:      0;
}

.success__video-note {
  font-size: var(--text-xs);
  color:     rgba(255,255,255,0.6);
  margin:    0;
}

/* Floating monogram accent on the video card */
@media (prefers-reduced-motion: no-preference) {
  .success__video-play { animation: float 4.5s var(--ease-in-out) infinite; }
}

/* 24.7 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .success__featured-band { grid-template-columns: 1fr; }
  .success__stats         { grid-template-columns: repeat(4, 1fr); }
  .success__grid          { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .success__voices-grid   { grid-template-columns: 1fr 1fr; }
  .success__video         { grid-column: span 2; min-height: 200px; }
}

@media (max-width: 767px) {
  .success        { padding: var(--space-20) 0; }
  .success__featured { padding: var(--space-7); min-height: 280px; }
  .success__stats { grid-template-columns: repeat(2, 1fr); }
  .success__grid  { grid-template-columns: 1fr; }
  .success__voices-grid { grid-template-columns: 1fr; }
  .success__video { grid-column: span 1; }
  .success__voices-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 479px) {
  .success__featured, .success__card, .success__quote { padding: var(--space-6); }
  .success__stat { padding: var(--space-5); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §25 — SMART FAQ
   ─────────────────────────────────────────────────────────────────────────── */

/* 25.1 Section shell
   ─────────────────────────────────────────────────────────────────────────── */

.faq {
  background: var(--color-bg);
  padding:    var(--space-24) 0;
  position:   relative;
  overflow:   hidden;
}

.faq__bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

.faq__bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
}

.faq__bg-orb--1 {
  width: 480px; height: 480px;
  background: var(--color-brand-500);
  opacity: 0.06; top: -140px; left: 50%;
  transform: translateX(-50%);
}

/* 25.2 Header
   ─────────────────────────────────────────────────────────────────────────── */

.faq__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
  position: relative; z-index: 1;
}

.faq__eyebrow-wrap { margin-bottom: var(--space-4); }

.faq__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  position: relative;
  padding: 0 var(--space-6);
}

.faq__eyebrow::before, .faq__eyebrow::after {
  content: ''; position: absolute; top: 50%;
  width: 28px; height: 1px;
  background: var(--color-brand-500); opacity: 0.5;
  transform: translateY(-50%);
}
.faq__eyebrow::before { right: 100%; }
.faq__eyebrow::after  { left:  100%; }

.faq__headline {
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
}

.faq__sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* 25.3 Layout: rail + panel
   ─────────────────────────────────────────────────────────────────────────── */

.faq__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-10);
  position: relative; z-index: 1;
  align-items: start;
}

/* 25.4 Left rail (search + categories + CTA)
   ─────────────────────────────────────────────────────────────────────────── */

.faq__rail {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: opacity 260ms ease;
}

.faq__rail--searching .faq__cats { opacity: 0.4; pointer-events: none; }

/* Search */
.faq__search {
  position: relative;
}

.faq__search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.faq__search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-10);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.faq__search-input::placeholder { color: var(--color-text-tertiary); }

.faq__search-input:focus-visible {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-border-brand);
  box-shadow: 0 0 0 4px rgba(21, 67, 120,0.12);
}

.faq__count {
  display: block;
  min-height: 1em;
  margin-top: var(--space-2);
  padding-left: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Category list */
.faq__cats {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  margin: 0; padding: 0;
  transition: opacity 260ms ease;
}

.faq__cat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.faq__cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  flex-shrink: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.faq__cat:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
}

/* Compound selector (0,2,0) so the active state also wins over :hover (0,2,0, earlier) */
.faq__cat.faq__cat--active {
  color: var(--color-brand-600);
  background: var(--color-brand-50);
  border-color: rgba(21, 67, 120,0.20);
}

.faq__cat.faq__cat--active .faq__cat-dot {
  background: var(--color-brand-500);
  transform: scale(1.25);
}

/* Rail CTA */
.faq__rail-cta {
  margin-top: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-2xl);
  background: linear-gradient(150deg, #0f172a 0%, #12233f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__rail-cta-title {
  font-size: var(--text-body-sm);
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.faq__rail-cta-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

.faq__rail-cta .btn { width: 100%; }

/* 25.5 Panel (accordion)
   ─────────────────────────────────────────────────────────────────────────── */

.faq__panel {
  min-height: 300px;
  position: relative;
}

.faq__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease;
  animation: faqItemIn 360ms var(--ease-out) both;
}

.faq__item--hidden { display: none; }

.faq__item:hover { border-color: var(--color-border-strong); }

.faq__item--open {
  border-color: rgba(21, 67, 120,0.30);
  box-shadow: 0 12px 30px rgba(21, 67, 120,0.08);
}

@keyframes faqItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item { animation: none; }
}

/* Question button */
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  background: transparent;
  border: none;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: color 200ms ease;
}

.faq__q:hover { color: var(--color-brand-600); }

.faq__q-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-subtle);
  color: var(--color-brand-500);
  transition: transform 360ms var(--ease-spring), background 260ms ease, color 260ms ease;
}

.faq__item--open .faq__q-icon {
  transform: rotate(180deg);
  background: var(--color-brand-500);
  color: #fff;
}

/* Answer — grid-rows collapse trick (fully collapses; padding lives deeper) */
.faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms var(--ease-out);
}

.faq__item--open .faq__a-wrap { grid-template-rows: 1fr; }

.faq__a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__a-content {
  padding: 0 var(--space-6) var(--space-6);
}

.faq__a-content p {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.75;
  margin: 0;
  max-width: 64ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq__a-wrap { transition: none; }
}

/* Empty state */
.faq__empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-tertiary);
}

.faq__empty-icon {
  color: var(--color-border-strong);
  margin-bottom: var(--space-4);
}

.faq__empty-title {
  font-size: var(--text-h6);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-2);
}

.faq__empty-text {
  font-size: var(--text-body-sm);
  margin: 0;
}

/* 25.6 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .faq__layout { grid-template-columns: 1fr; gap: var(--space-6); }

  .faq__rail {
    position: static;
    gap: var(--space-4);
  }

  /* Horizontal scrollable category chips */
  .faq__cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    scrollbar-width: none;
  }
  .faq__cats::-webkit-scrollbar { display: none; }

  .faq__cat {
    white-space: nowrap;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
  }

  .faq__rail-cta { display: none; }
}

@media (max-width: 767px) {
  .faq { padding: var(--space-20) 0; }
  .faq__q { padding: var(--space-4) var(--space-5); font-size: var(--text-body-sm); }
  .faq__a-content { padding: 0 var(--space-5) var(--space-5); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §26 — FINAL CTA & CONTACT
   ─────────────────────────────────────────────────────────────────────────── */

/* 26.1 Section shell
   ─────────────────────────────────────────────────────────────────────────── */

.contact {
  background: var(--color-bg-subtle);
  padding:    var(--space-24) 0;
  position:   relative;
  overflow:   hidden;
}

/* Blueprint grid — the site's signature drafting texture, matching the heroes */
.contact::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(21, 67, 120, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.07) 1px, transparent 1px),
    linear-gradient(to right,  rgba(21, 67, 120, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.032) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 92% 80% at 50% 26%, #000 18%, transparent 100%);
          mask-image: radial-gradient(ellipse 92% 80% at 50% 26%, #000 18%, transparent 100%);
}

.contact__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.contact__orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.contact__orb--1 { width: 560px; height: 560px; background: rgba(21, 67, 120, 0.08); opacity: 1; top: -180px; left: -140px; }
.contact__orb--2 { width: 460px; height: 460px; background: rgba(21, 67, 120, 0.06); opacity: 1; bottom: -160px; right: -120px; }

/* 26.2 Layout
   ─────────────────────────────────────────────────────────────────────────── */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-12);
  position: relative; z-index: 1;
  align-items: start;
}

/* 26.3 Left — message + benefits + CTAs
   ─────────────────────────────────────────────────────────────────────────── */

.contact__intro {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + var(--space-8));
}

.contact__eyebrow-wrap { margin-bottom: var(--space-4); }

.contact__eyebrow {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-brand-500);
}

.contact__headline {
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 800; line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
}

.contact__sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 var(--space-8);
}

/* Partnership benefits */
.contact__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  list-style: none; margin: 0 0 var(--space-8); padding: 0;
}

.contact__benefit {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-body-sm); font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  transition: border-color 260ms ease, transform 260ms var(--ease-out), box-shadow 260ms ease;
}

.contact__benefit:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 67, 120,0.28);
  box-shadow: 0 10px 24px rgba(21, 67, 120,0.08);
}

.contact__benefit-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(21, 67, 120,0.12), rgba(18, 60, 108,0.10));
  color: var(--color-brand-500);
}

/* CTAs */
.contact__actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.contact__actions .btn { display: inline-flex; align-items: center; gap: var(--space-2); }

.contact__actions-note {
  margin: var(--space-4) 0 var(--space-8);
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
}
.contact__actions-note a {
  color: var(--color-brand-500);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 67, 120, 0.3);
  transition: border-color 180ms ease;
}
.contact__actions-note a:hover { border-color: var(--color-brand-500); }

/* "What happens next" — a 3-step ladder that removes uncertainty */
.contact__steps {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.contact__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
}
/* connecting line between steps */
.contact__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: calc(-1 * var(--space-5));
  width: 1px;
  background: linear-gradient(180deg, rgba(21, 67, 120, 0.28), transparent);
}
.contact__step-num {
  flex-shrink: 0;
  width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-brand-500);
  background: var(--color-brand-50);
  border: 1px solid rgba(21, 67, 120, 0.18);
}
.contact__step-body { display: flex; flex-direction: column; gap: 3px; }
.contact__step-title {
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--color-text-primary);
}
.contact__step-text {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.65;
  max-width: 44ch;
}

/* Trust chips — condensed reassurance at the decision point */
.contact__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.contact__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1-5) var(--space-3);
}
.contact__chip::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(31, 122, 92, 0.12);
  /* tick mark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a5c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

/* "(optional)" hint inside field labels */
.contact__opt {
  font-weight: 500;
  opacity: 0.62;
  font-size: 0.92em;
}

/* 26.4 Right — form + contact cards + calendar
   ─────────────────────────────────────────────────────────────────────────── */

.contact__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  box-shadow: 0 20px 50px rgba(21, 67, 120, 0.08);
}

.contact__card-title {
  font-size: var(--text-h5);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
}

.contact__card-note {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-6);
}

/* 26.5 Form
   ─────────────────────────────────────────────────────────────────────────── */

.contact__form { display: flex; flex-direction: column; gap: var(--space-4); }

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact__field { position: relative; }

.contact__input,
.contact__select,
.contact__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4) var(--space-2);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  appearance: none;
}

.contact__textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: var(--space-6);
}

.contact__input:focus-visible,
.contact__select:focus-visible,
.contact__textarea:focus-visible {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-border-brand);
  box-shadow: 0 0 0 4px rgba(21, 67, 120,0.12);
}

/* Floating label */
.contact__label {
  position: absolute;
  left: calc(var(--space-4) + 1px);
  top: var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 180ms var(--ease-out), color 180ms ease;
}

.contact__input:focus-visible + .contact__label,
.contact__input:not(:placeholder-shown) + .contact__label,
.contact__textarea:focus-visible + .contact__label,
.contact__textarea:not(:placeholder-shown) + .contact__label,
.contact__field--select .contact__label {
  transform: translateY(-9px) scale(0.78);
  color: var(--color-brand-600);
}

/* Select chevron */
.contact__field--select::after {
  content: '';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--color-text-tertiary);
  border-bottom: 2px solid var(--color-text-tertiary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact__select { color: var(--color-text-primary); cursor: pointer; }
.contact__select:required:invalid { color: var(--color-text-tertiary); }

/* Error state */
.contact__error {
  display: block;
  min-height: 0;
  font-size: var(--text-xs);
  color: #E11D48;
  margin-top: var(--space-1);
  padding-left: var(--space-1);
}

.contact__field--invalid .contact__input,
.contact__field--invalid .contact__select,
.contact__field--invalid .contact__textarea {
  border-color: #F43F5E;
  box-shadow: 0 0 0 4px rgba(244,63,94,0.10);
}

.contact__submit { margin-top: var(--space-2); width: 100%; }

.contact__form-fineprint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-align: center;
  margin: var(--space-1) 0 0;
}

.contact__send-error {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #E11D48;
  text-align: center;
  margin: var(--space-2) 0 0;
}

/* Success state */
.contact__success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.contact__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
  background: linear-gradient(145deg, #10B981, #34D399);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16,185,129,0.35);
}

.contact__success-title {
  font-size: var(--text-h5); font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}

.contact__success-text {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.6;
  max-width: 40ch; margin: 0 auto var(--space-5);
}

/* 26.6 Contact cards
   ─────────────────────────────────────────────────────────────────────────── */

.contact__methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.contact__method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  text-decoration: none;
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.contact__method:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 67, 120,0.28);
  box-shadow: 0 16px 36px rgba(21, 67, 120,0.10);
}

.contact__method-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(21, 67, 120,0.12), rgba(18, 60, 108,0.10));
  color: var(--color-brand-500);
  transition: transform 300ms var(--ease-spring);
}

.contact__method:hover .contact__method-icon { transform: scale(1.08); }

.contact__method--wa .contact__method-icon { background: rgba(37,211,102,0.12); color: #1FA855; }

.contact__method-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 2px;
}

.contact__method-value {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.contact__method--full { grid-column: span 2; }

/* Calendar booking placeholder */
.contact__calendar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand-500);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 12px 32px rgba(21, 67, 120, 0.06);
}

.contact__calendar-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-500);
  color: #fff;
}

.contact__calendar-body { flex: 1; }

.contact__calendar-title { font-size: var(--text-body-sm); font-weight: 700; margin: 0; color: var(--color-text-primary); }
.contact__calendar-text  { font-size: var(--text-xs); color: var(--color-text-tertiary); margin: 2px 0 0; line-height: 1.5; }

.contact__calendar .btn { flex-shrink: 0; }

/* 26.7 Scroll-to-top button (global)
   ─────────────────────────────────────────────────────────────────────────── */

.scroll-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-600);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 67, 120,0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms var(--ease-spring), background 200ms ease;
}

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

.scroll-top:hover { background: var(--color-brand-700); }
.scroll-top:focus-visible { outline: 2px solid var(--color-brand-600); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity 200ms ease; transform: none; }
  .scroll-top--visible { transform: none; }
}

/* 26.8 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .contact__intro { position: static; }
  .contact__benefits { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .contact { padding: var(--space-20) 0; }
  .contact__benefits { grid-template-columns: repeat(2, 1fr); }
  .contact__row { grid-template-columns: 1fr; }
  .contact__methods { grid-template-columns: 1fr; }
  .contact__method--full { grid-column: span 1; }
  .contact__card { padding: var(--space-6); }
  .contact__calendar { flex-direction: column; align-items: flex-start; }
  .contact__calendar .btn { width: 100%; }
  .scroll-top { right: var(--space-4); bottom: var(--space-4); }
}

@media (max-width: 479px) {
  .contact__benefits { grid-template-columns: 1fr; }
  .contact__actions .btn { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §27 — PREMIUM FOOTER
   ─────────────────────────────────────────────────────────────────────────── */

#site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.footer__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.footer__bg-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  width: 520px; height: 520px;
  background: var(--color-brand-500); opacity: 0.05;
  top: -240px; left: 50%; transform: translateX(-50%);
}

#site-footer .container { position: relative; z-index: 1; }

/* 27.1 Newsletter
   ─────────────────────────────────────────────────────────────────────────── */

.footer__newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
}

.footer__news-copy { max-width: 44ch; }

.footer__news-title {
  font-size: var(--text-h5);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.footer__news-text {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.6;
  margin: 0;
}

.footer__news-form { width: 100%; max-width: 420px; justify-self: end; }

.footer__news-row {
  display: flex;
  gap: var(--space-2);
}

.footer__news-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.footer__news-input::placeholder { color: var(--color-text-tertiary); }

.footer__news-input:focus-visible {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-border-brand);
  box-shadow: 0 0 0 4px rgba(21, 67, 120,0.12);
}

.footer__news-input[aria-invalid="true"] {
  border-color: #F43F5E;
  box-shadow: 0 0 0 4px rgba(244,63,94,0.10);
}

.footer__news-error {
  display: block;
  min-height: 1em;
  font-size: var(--text-xs);
  color: #E11D48;
  margin-top: var(--space-2);
  padding-left: var(--space-5);
}

.footer__news-success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: #10B981;
}

.footer__news-success svg { flex-shrink: 0; }

/* 27.2 Main columns
   ─────────────────────────────────────────────────────────────────────────── */

.footer__main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  gap: var(--space-10);
  padding: var(--space-16) 0 var(--space-12);
}

.footer__brand-logo {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer__brand-logo span { color: var(--color-brand-500); }

/* Footer logo image — sized by height, width auto preserves aspect ratio */
.footer__brand-logo img {
  display: block;
  height:  42px;
  width:   auto;
}

.footer__brand-desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
  max-width: 40ch;
}

.footer__brand-tagline {
  font-size: var(--text-body-sm);
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-6);
  max-width: 38ch;
}

/* Social */
.footer__social {
  display: flex;
  gap: var(--space-3);
  list-style: none; margin: 0; padding: 0;
}

.footer__social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-tertiary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  transition: transform 260ms var(--ease-spring), color 220ms ease,
              background 220ms ease, border-color 220ms ease;
}

.footer__social-link:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--color-brand-500);
  border-color: var(--color-brand-500);
}

/* Column headings + links */
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-5);
}

.footer__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
  position: relative;
  width: fit-content;
}

.footer__link:hover {
  color: var(--color-brand-600);
  padding-left: var(--space-3);
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--color-brand-500);
  transform: translateY(-50%);
  transition: width 200ms ease;
}

.footer__link:hover::before { width: var(--space-2); }

/* Contact column */
.footer__contact {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  line-height: 1.5;
  transition: color 200ms ease;
}

a.footer__contact-item:hover { color: var(--color-brand-600); }

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--color-brand-500);
  margin-top: 1px;
}

/* 27.3 Trust strip
   ─────────────────────────────────────────────────────────────────────────── */

.footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
}

.footer__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}

.footer__trust-badge svg { color: var(--color-brand-500); flex-shrink: 0; }

/* 27.4 Bottom bar
   ─────────────────────────────────────────────────────────────────────────── */

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  list-style: none; margin: 0; padding: 0;
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer__legal-link:hover { color: var(--color-brand-600); }

.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand-600);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 200ms ease;
}

.footer__totop:hover { gap: var(--space-3); }
.footer__totop svg { transition: transform 240ms var(--ease-spring); }
.footer__totop:hover svg { transform: translateY(-2px); }

/* 27.5 Responsive
   ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer__main { grid-template-columns: 1.6fr 1fr 1fr; row-gap: var(--space-10); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .footer__newsletter { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer__news-form { justify-self: stretch; max-width: none; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: var(--space-8); padding-top: var(--space-12); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 479px) {
  .footer__main { grid-template-columns: 1fr; }
  .footer__news-row { flex-direction: column; }
  .footer__news-row .btn { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §XX — BOOKING MODAL (Google Calendar scheduler in an on-site overlay)
   ─────────────────────────────────────────────────────────────────────────── */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.book-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 240ms ease;
}

.book-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 34, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.book-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 280ms var(--ease-out);
}
.book-modal.is-open .book-modal__dialog { transform: none; }

.book-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.book-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-h6);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
}
.book-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.book-modal__close:hover { color: var(--color-text-primary); transform: rotate(90deg); }

.book-modal__frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 640px;
  max-height: 74vh;
  background: var(--color-bg-subtle);
}
.book-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.book-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.book-modal.is-loaded .book-modal__loader { display: none; }
.book-modal__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand-500);
  animation: bookSpin 0.8s linear infinite;
}
@keyframes bookSpin { to { transform: rotate(360deg); } }

.book-modal__fallback {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-decoration: none;
  border-top: 1px solid var(--color-border);
  transition: color 180ms ease;
}
.book-modal__fallback:hover { color: var(--color-brand-500); }

body.no-scroll { overflow: hidden; }

@media (max-width: 560px) {
  .book-modal { padding: 0; }
  .book-modal__dialog { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .book-modal__frame-wrap { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .book-modal, .book-modal__dialog { transition: none; }
  .book-modal__close:hover { transform: none; }
  .book-modal__spinner { animation-duration: 1.6s; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §22b — TECH STACK — "Stack of Technology" four-quadrant hub
   Our navy/gold styling; dark panels around a central hub. Replaces the
   former 27-card grid. (Legacy .ecosystem__card rules are now unused.)
   ─────────────────────────────────────────────────────────────────────────── */

.techstack__header { text-align: center; max-width: 640px; margin: 0 auto var(--space-14); position: relative; z-index: 1; }
.techstack__headline {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
  color: var(--color-text-primary); margin: var(--space-3) 0 var(--space-4);
}
.techstack__sub { font-size: var(--text-body-lg); color: var(--color-text-tertiary); line-height: 1.7; margin: 0; }

/* Diagram — 2×2 panels with a centred hub in the gap */
/* Tech stack — category cards with text chips */
.ts-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6); max-width: 1080px; margin: 0 auto;
}
.ts-cat {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-7) var(--space-7) var(--space-6);
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}
.ts-cat:hover { transform: translateY(-5px); border-color: rgba(21, 67, 120, 0.22); box-shadow: 0 20px 44px rgba(21, 67, 120, 0.10); }
.ts-cat__label { font-family: var(--font-display); font-size: var(--text-h6); font-weight: 700; letter-spacing: -0.01em; color: var(--color-text-primary); }
.ts-cat__desc { font-size: var(--text-body-sm); color: var(--color-text-tertiary); line-height: 1.6; }
.ts-cat__chips { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ts-cat__chips li {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  color: var(--color-brand-700); background: rgba(21, 67, 120, 0.07);
  border: 1px solid rgba(21, 67, 120, 0.14); border-radius: var(--radius-md);
  padding: var(--space-1-5) var(--space-3); white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.ts-cat__chips li:hover { background: var(--color-brand-500); color: #fff; border-color: var(--color-brand-500); }
@media (max-width: 560px) { .ts-grid { grid-template-columns: 1fr; } }

.techstack__diagram {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(5rem, 9vw, 8.5rem) clamp(3rem, 7vw, 7rem);
  max-width: 1040px;
  margin: 0 auto;
}

/* Decorative ring behind the hub */
.techstack__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(240px, 34vw, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 1px solid rgba(21, 67, 120, 0.22);
  border-radius: 50%;
  pointer-events: none;
  animation: techRingSpin 44s linear infinite;
}
/* Orbiting marker so the clockwise rotation reads clearly */
.techstack__ring::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #6E93BE;
  box-shadow: 0 0 10px 1px rgba(110, 147, 190, 0.6);
}
@keyframes techRingSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
[data-theme="dark"] .techstack__ring { border-color: rgba(110, 147, 190, 0.20); }
.techstack__ring::before {
  content: '';
  position: absolute; inset: 22px;
  border: 1px dashed rgba(21, 67, 120, 0.14);
  border-radius: 50%;
}
[data-theme="dark"] .techstack__ring::before { border-color: rgba(255,255,255,0.10); }

/* Central hub */
.techstack__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(150px, 20vw, 190px);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #123c6c 0%, #0a1a2c 70%);
  box-shadow: 0 24px 60px rgba(7, 19, 34, 0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.techstack__hub::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(110, 147, 190, 0.35);
}
.techstack__hub-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  color: #fff;
}

/* Panels */
.techstack__panel {
  --acc: var(--color-brand-500);
  --acc-soft: rgba(21, 67, 120, 0.14);
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, #0c1f35 0%, #0a1a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 48px rgba(7, 19, 34, 0.16);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}
.techstack__panel:hover { transform: translateY(-4px); border-color: rgba(110, 147, 190, 0.24); box-shadow: 0 30px 64px rgba(7, 19, 34, 0.28); }

.techstack__panel--web    { --acc: #4d86c8; --acc-soft: rgba(77, 134, 200, 0.16); }
.techstack__panel--design { --acc: #6E93BE; --acc-soft: rgba(110, 147, 190, 0.16); }
.techstack__panel--app    { --acc: #2dd4bf; --acc-soft: rgba(45, 212, 191, 0.15); }
.techstack__panel--mkt    { --acc: #4ade80; --acc-soft: rgba(74, 222, 128, 0.15); }

/* Label pill overlapping the top edge */
.techstack__panel-label {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.01em;
  color: var(--acc);
  background: #0e2338;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  box-shadow: 0 6px 18px rgba(7, 19, 34, 0.4);
}

/* Item grid inside each panel */
.techstack__items {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4) var(--space-2);
}
.techstack__panel--design .techstack__items,
.techstack__panel--app .techstack__items { grid-template-columns: repeat(3, 1fr); }

.techstack__item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  text-align: center;
}
.techstack__logo {
  width: 44px; height: 44px; flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform 260ms var(--ease-out), filter 260ms ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.techstack__item:hover .techstack__logo {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.techstack__name {
  font-size: var(--text-2xs); font-weight: 500; line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .techstack__diagram { grid-template-columns: 1fr; gap: var(--space-6); max-width: 460px; }
  .techstack__ring { display: none; }
  .techstack__hub {
    position: static; transform: none; margin: 0 auto var(--space-2);
    width: 150px;
  }
  .techstack__panel { padding: var(--space-7) var(--space-5) var(--space-5); }
}
@media (max-width: 380px) {
  .techstack__items,
  .techstack__panel--design .techstack__items,
  .techstack__panel--app .techstack__items { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .techstack__ring { animation: none; }
  .techstack__panel:hover { transform: none; }
  .techstack__item:hover .techstack__logo { transform: none; }
}
