/* ====== RESET & BASE ====== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --navy: #050c1a;
      --navy-mid: #0d1b35;
      --blue: #1d6ef5;
      --blue-light: #3b82f6;
      --teal: #06b6d4;
      --accent: #e8f0fe;
      --gray-50: #f8fafc;
      --gray-100: #f1f5f9;
      --gray-200: #e2e8f0;
      --gray-400: #94a3b8;
      --gray-600: #475569;
      --gray-800: #1e293b;
      --white: #ffffff;
      --font-head: 'Syne', sans-serif;
      --font-body: 'DM Sans', sans-serif;
    }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body {
      font-family: var(--font-body);
      color: var(--navy);
      background: #ffffff;
      overflow-x: hidden;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.15; }

    /* ====== CUSTOM CURSOR ====== */
    .cursor {
      width: 10px; height: 10px;
      background: var(--blue);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9999;
      transition: transform 0.15s ease, opacity 0.15s ease;
      mix-blend-mode: multiply;
    }
    .cursor-ring {
      width: 36px; height: 36px;
      border: 1.5px solid var(--blue);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9998;
      transition: transform 0.35s cubic-bezier(.17,.67,.83,.67), opacity 0.3s ease;
      opacity: 0.4;
    }
    body:hover .cursor { opacity: 1; }

    /* ====== SCROLLBAR ====== */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--gray-100); }
    ::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 9px; }

    /* ====== UTILITIES ====== */
    .section-label {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: var(--font-body);
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--blue);
      background: rgba(29,110,245,0.08);
      border: 1px solid rgba(29,110,245,0.18);
      padding: 5px 14px; border-radius: 100px;
    }
    .btn-primary {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--navy);
      color: white;
      padding: 13px 28px; border-radius: 10px;
      font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
      text-decoration: none; border: none; cursor: pointer;
      transition: all 0.22s cubic-bezier(.4,0,.2,1);
      position: relative; overflow: hidden;
    }
    .btn-primary::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
      opacity: 0; transition: opacity 0.22s ease;
    }
    .btn-primary:hover::before { opacity: 1; }
    .btn-primary span { position: relative; z-index: 1; }
    .btn-primary svg { position: relative; z-index: 1; transition: transform 0.2s ease; }
    .btn-primary:hover svg { transform: translateX(3px); }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,110,245,0.35); }

    .btn-outline {
      display: inline-flex; align-items: center; gap: 8px;
      background: transparent; color: var(--navy);
      padding: 12px 28px; border-radius: 10px;
      font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
      text-decoration: none; border: 1.5px solid var(--gray-200); cursor: pointer;
      transition: all 0.22s ease;
    }
    .btn-outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(29,110,245,0.04); transform: translateY(-1px); }

    .card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: 16px; padding: 32px;
      transition: all 0.3s cubic-bezier(.4,0,.2,1);
      position: relative; overflow: hidden;
    }
    .card::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(29,110,245,0.03) 0%, rgba(6,182,212,0.03) 100%);
      opacity: 0; transition: opacity 0.3s ease;
    }
    .card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(5,12,26,0.1); border-color: rgba(29,110,245,0.25); }
    .card:hover::after { opacity: 1; }

    /* ====== REVEAL ANIMATIONS ====== */
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1); }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1); }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }
    .reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1); }
    .reveal-right.visible { opacity: 1; transform: translateX(0); }
    .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
    /* All children become visible when parent is observed */
    .stagger.visible > * { opacity: 1; transform: translateY(0); }
    /* First 7 get staggered delays; rest animate immediately */
    .stagger.visible > *:nth-child(1) { transition-delay: 0s; }
    .stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
    .stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
    .stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
    .stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
    .stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }
    .stagger.visible > *:nth-child(7) { transition-delay: 0.36s; }
    .stagger.visible > *:nth-child(8) { transition-delay: 0.40s; }
    .stagger.visible > *:nth-child(9) { transition-delay: 0.44s; }
    .stagger.visible > *:nth-child(10) { transition-delay: 0.48s; }
    .stagger.visible > *:nth-child(11) { transition-delay: 0.50s; }
    .stagger.visible > *:nth-child(12) { transition-delay: 0.52s; }

    /* ====== NAV ====== */
    #navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      transition: all 0.3s ease;
      padding: 20px 0;
    }
    #navbar.scrolled {
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--gray-200);
      padding: 14px 0;
      box-shadow: 0 4px 24px rgba(5,12,26,0.06);
    }
    .nav-link {
      font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
      color: var(--gray-600); text-decoration: none;
      transition: color 0.2s ease; position: relative; padding-bottom: 2px;
    }
    .nav-link::after {
      content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
      height: 1.5px; background: var(--blue);
      transform: scaleX(0); transform-origin: left;
      transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    }
    .nav-link:hover, .nav-link.active { color: var(--navy); }
    .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

    /* ====== HERO GRID BG ====== */
    .hero-grid {
      background-image: radial-gradient(circle at 1px 1px, rgba(29,110,245,0.1) 1px, transparent 0);
      background-size: 32px 32px;
    }
    .hero-glow {
      position: absolute;
      width: 700px; height: 700px;
      background: radial-gradient(circle, rgba(29,110,245,0.1) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    /* ====== GRADIENT TEXT ====== */
    .gradient-text {
      background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 60%, #818cf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ====== STATS COUNTER ====== */
    .stat-num { font-family: var(--font-head); font-weight: 800; }

    /* ====== SERVICE ICON ====== */
    .service-icon {
      width: 52px; height: 52px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(29,110,245,0.1), rgba(6,182,212,0.1));
      border: 1px solid rgba(29,110,245,0.15);
      transition: all 0.3s ease;
    }
    .card:hover .service-icon {
      background: linear-gradient(135deg, var(--blue), var(--teal));
      border-color: transparent;
    }
    .card:hover .service-icon svg { color: white !important; }

    /* ====== TECH BADGE ====== */
    .tech-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 14px; border-radius: 100px;
      font-size: 0.78rem; font-weight: 500;
      background: var(--gray-100); color: var(--gray-600);
      border: 1px solid var(--gray-200);
      transition: all 0.2s ease;
    }
    .tech-badge:hover { background: rgba(29,110,245,0.08); color: var(--blue); border-color: rgba(29,110,245,0.2); }

    /* ====== TESTIMONIAL ====== */
    .testimonial-card {
      background: white; border: 1px solid var(--gray-200);
      border-radius: 20px; padding: 32px;
      transition: all 0.3s ease;
    }
    .testimonial-card:hover { box-shadow: 0 16px 48px rgba(5,12,26,0.09); transform: translateY(-3px); }

    /* ====== PROCESS STEP ====== */
    .process-step { position: relative; }
    .process-step:not(:last-child)::after {
      content: ''; position: absolute;
      top: 28px; left: 28px; bottom: -28px; width: 1px;
      background: linear-gradient(to bottom, var(--blue), transparent);
    }
    .step-num {
      width: 56px; height: 56px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--blue), var(--teal));
      color: white; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
      flex-shrink: 0; position: relative; z-index: 1;
      box-shadow: 0 8px 24px rgba(29,110,245,0.35);
    }

    /* ====== FOOTER ====== */
    .footer-link {
      font-size: 0.87rem; color: var(--gray-400); text-decoration: none;
      transition: color 0.2s ease;
    }
    .footer-link:hover { color: white; }

    /* ====== PAGE TRANSITIONS ====== */
    #page-content { transition: opacity 0.3s ease; }
    #page-content.fade-out { opacity: 0; }

    /* ====== MARQUEE ====== */
    .marquee-container { overflow: hidden; }
    .marquee-track {
      display: flex; gap: 48px; width: max-content;
      animation: marquee 30s linear infinite;
    }
    @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    .marquee-item {
      display: flex; align-items: center; gap: 12px;
      font-size: 0.85rem; font-weight: 500; color: var(--gray-400);
      white-space: nowrap;
    }

    /* ====== BLOG CARD ====== */
    .blog-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s ease; }
    .blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(5,12,26,0.1); }
    .blog-img { height: 200px; background: linear-gradient(135deg, var(--navy-mid) 0%, #162040 100%); position: relative; overflow: hidden; }
    .blog-img .pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0); background-size: 20px 20px; }

    /* ====== PORTFOLIO CARD ====== */
    .portfolio-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s ease; cursor: pointer; }
    .portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(5,12,26,0.12); }
    .portfolio-img { height: 240px; position: relative; overflow: hidden; }
    .portfolio-overlay { position: absolute; inset: 0; background: rgba(5,12,26,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
    .portfolio-card:hover .portfolio-overlay { opacity: 1; }

    /* ====== CONTACT FORM ====== */
    .form-input {
      width: 100%; padding: 13px 16px; border-radius: 10px;
      border: 1.5px solid var(--gray-200); font-family: var(--font-body); font-size: 0.9rem;
      color: var(--navy); background: white;
      transition: all 0.2s ease; outline: none; box-sizing: border-box;
    }
    .form-input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(29,110,245,0.1); }
    .form-input:hover:not(:focus) { border-color: var(--gray-300); }
    .form-input::placeholder { color: var(--gray-400); }
    .form-input[data-error="true"] { border-color: #ef4444; background: rgba(239,68,68,0.02); }
    .form-label { font-size: 0.82rem; font-weight: 700; color: var(--gray-600); margin-bottom: 7px; display: block; letter-spacing: 0.01em; }
    select.form-input { cursor: pointer; }
    textarea.form-input { resize: vertical; min-height: 120px; }
    /* Contact grid responsive */
    .contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
    @media(max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

    /* ====== MAP PLACEHOLDER ====== */
    .map-placeholder {
      height: 300px; border-radius: 16px; overflow: hidden;
      background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
      border: 1px solid var(--gray-200);
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .map-placeholder::before {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle at 1px 1px, var(--gray-300) 1px, transparent 0);
      background-size: 24px 24px;
    }

    /* ====== VALUE CARD ====== */
    .value-card {
      padding: 32px; border-radius: 16px;
      border: 1px solid var(--gray-200);
      background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
      transition: all 0.3s ease;
    }
    .value-card:hover { border-color: rgba(29,110,245,0.3); box-shadow: 0 12px 36px rgba(5,12,26,0.08); transform: translateY(-3px); }

    /* ====== HERO MOCKUP ====== */
    .hero-mockup {
      background: white; border: 1px solid var(--gray-200);
      border-radius: 20px; overflow: hidden;
      box-shadow: 0 32px 80px rgba(5,12,26,0.15), 0 0 0 1px rgba(255,255,255,0.5);
    }
    .mockup-bar { height: 40px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; padding: 0 16px; gap: 8px; }
    .mockup-dot { width: 10px; height: 10px; border-radius: 50%; }

    /* ====== TEAM CARD ====== */
    .team-card { text-align: center; }
    .team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: white; }

    /* ====== STORY YEAR GRID — always 2 cols ====== */
    .story-year-grid {
      grid-template-columns: 1fr 1fr !important;
      gap: 14px !important;
    }

    /* ====== ACTIVE NAV ====== */
    .nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); display: inline-block; margin-left: 3px; vertical-align: middle; }

    /* ====== SCROLL PROGRESS ====== */
    #scroll-progress {
      position: fixed; top: 0; left: 0; height: 2px; z-index: 9997;
      background: linear-gradient(90deg, var(--blue), var(--teal));
      transition: width 0.1s linear;
    }

    /* ====== SECTION DIVIDER ====== */
    .section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200), transparent); }

    /* ====== BACK TO TOP ====== */
    #back-to-top {
      position: fixed; bottom: 32px; right: 32px; z-index: 100;
      width: 44px; height: 44px; border-radius: 12px;
      background: var(--navy); color: white; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: all 0.3s ease;
      box-shadow: 0 8px 24px rgba(5,12,26,0.3);
    }
    #back-to-top.visible { opacity: 1; pointer-events: all; }
    #back-to-top:hover { background: var(--blue); transform: translateY(-2px); }

    /* ====== NUMBERED LIST ====== */
    .num-list { counter-reset: num; }
    .num-list li { counter-increment: num; padding-left: 32px; position: relative; margin-bottom: 12px; }
    .num-list li::before {
      content: counter(num, decimal-leading-zero);
      position: absolute; left: 0;
      font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
      color: var(--blue); top: 2px;
    }

    /* ====== DIVIDER ====== */
    .divider { border: none; border-top: 1px solid var(--gray-200); }

    /* === LOADING === */
    #page-loader {
      position: fixed; inset: 0; z-index: 10000;
      background: white;
      align-items: center; justify-content: center;
      transition: opacity 0.4s ease;
    }
    #page-loader.gone { display: none !important; opacity: 0; }
    .loader-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
    .loader-bar { width: 48px; height: 3px; border-radius: 2px; background: var(--gray-200); margin-top: 16px; overflow: hidden; }
    .loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); animation: load 1s ease forwards; }
    @keyframes load { to { width: 100%; } }


    /* ════ FOCUS OUTLINES — accessibility ════ */
    :focus { outline: none; }
    :focus-visible {
      outline: 2.5px solid var(--blue);
      outline-offset: 3px;
      border-radius: 4px;
    }
    a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
    input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 2.5px solid var(--blue);
      outline-offset: 3px;
      box-shadow: 0 0 0 5px rgba(29,110,245,0.15);
    }
    /* High-contrast nav links */
    .nav-link:focus-visible { outline-offset:6px; border-radius:6px; }
    /* Skip to content link */
    .skip-link {
      position:absolute; top:-100px; left:12px; z-index:99999;
      background:var(--blue); color:white; padding:8px 16px; border-radius:0 0 8px 8px;
      font-family:var(--font-head); font-weight:700; font-size:0.85rem;
      text-decoration:none; transition:top 0.2s;
    }
    .skip-link:focus { top:0; }

    /* ══════════════════════════════════════════════════
       HEED TECHNOLOGIES — LOGO SYSTEM
       ══════════════════════════════════════════════════ */
    .heed-logo {
      display: inline-flex;
      align-items: center;
      gap: 0;
      text-decoration: none;
      user-select: none;
      flex-shrink: 0;
    }
    .heed-wm {
      display: block;
      height: 34px;
      width: auto;
    }
    .heed-wm-sm { height: 28px; }
    .heed-tag {
      display: block;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 0.46rem;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--gray-400);
      margin-top: 3px;
    }
    .heed-logo-inv .heed-tag { color: rgba(255,255,255,0.35); }

        /* ====== MOBILE MENU REDESIGN ====== */
    #mobile-menu {
      position:fixed; top:0; right:0; bottom:0; width:min(310px,88vw);
      background:white; z-index:1002;
      transform:translateX(100%);
      transition:transform 0.36s cubic-bezier(.4,0,.2,1);
      box-shadow:-8px 0 48px rgba(5,12,26,0.18);
      display:flex; flex-direction:column; padding:0;
    }
    #mobile-menu.open { transform:translateX(0); }
    .mob-menu-header {
      display:flex; align-items:center; justify-content:space-between;
      padding:18px 22px; border-bottom:1px solid var(--gray-200);
    }
    .mob-close-btn {
      width:36px; height:36px; border-radius:8px; background:var(--gray-100);
      border:1.5px solid var(--gray-200); display:flex; align-items:center;
      justify-content:center; cursor:pointer; transition:background 0.2s; flex-shrink:0;
    }
    .mob-close-btn:hover { background:var(--gray-200); }
    .mob-nav-list {
      display:flex; flex-direction:column; gap:3px;
      padding:16px 18px; flex:1; overflow-y:auto;
    }
    .mob-nav-link {
      display:flex; align-items:center; justify-content:space-between;
      padding:13px 14px; border-radius:12px; font-family:var(--font-head);
      font-weight:600; font-size:1.0rem; color:var(--navy);
      text-decoration:none; border:1.5px solid transparent;
      transition:all 0.2s ease;
    }
    .mob-nav-link:hover, .mob-nav-link.active {
      background:rgba(29,110,245,0.06); border-color:rgba(29,110,245,0.15); color:var(--blue);
    }
    .mob-nav-link svg { opacity:0.4; transition:opacity 0.2s; }
    .mob-nav-link:hover svg, .mob-nav-link.active svg { opacity:1; }
    .mob-menu-footer { padding:18px 22px; border-top:1px solid var(--gray-200); }
    #mobile-overlay {
      position:fixed; inset:0; background:rgba(5,12,26,0.45);
      z-index:1001; opacity:0; pointer-events:none;
      transition:opacity 0.36s ease; backdrop-filter:blur(2px);
    }
    #mobile-overlay.open { opacity:1; pointer-events:all; }

    /* ====== MOBILE CAROUSEL ====== */
    .mobile-carousel-wrap { position:relative; }
    .mobile-carousel-outer { overflow:hidden; }
    .mobile-carousel-track {
      display:flex; gap:20px;
      transition:transform 0.45s cubic-bezier(.4,0,.2,1);
      will-change:transform;
    }
    /* Each slide takes full width by default (mobile), overridden at wider breakpoints */
    .mc-slide { flex:0 0 100%; min-width:0; }
    @media(min-width:600px) { .mc-slide { flex:0 0 calc(50% - 10px); } }
    @media(min-width:1024px) { .mc-slide { flex:0 0 calc(33.333% - 14px); } }
    /* Testimonial carousel */
    .testi-slide { flex:0 0 100%; min-width:0; transition: transform 0.4s ease, opacity 0.4s ease; }
    @media(min-width:600px) { .testi-slide { flex:0 0 calc(50% - 10px); } }
    /* Desktop 3-up: dim and shrink side cards, elevate centre */
    @media(min-width:1024px) {
      .testi-slide { flex:0 0 calc(33.333% - 14px); opacity:0.4; transform:scale(0.92); transition: opacity 0.45s ease, transform 0.45s ease; }
      .testi-slide.testi-active { opacity:1; transform:scale(1); z-index:2; }
    }
    .testimonial-card { transition: box-shadow 0.4s ease, border-color 0.4s ease; }
    @media(min-width:1024px) {
      .testi-slide.testi-active .testimonial-card {
        border-color: var(--blue) !important;
        box-shadow: 0 20px 56px rgba(29,110,245,0.16), 0 4px 16px rgba(5,12,26,0.08) !important;
        background: white !important;
      }
    }

    .mc-dots { display:flex; justify-content:center; gap:7px; margin-top:22px; }
    .mc-dot {
      width:7px; height:7px; border-radius:50%; border:none; cursor:pointer;
      background:var(--gray-300,#cbd5e1); padding:0;
      transition:all 0.25s ease;
      /* override global button min-size */
      min-width:7px !important; min-height:7px !important;
    }
    .mc-dot.active { background:var(--blue); width:22px; min-width:22px !important; border-radius:50px; }
    .mc-arrows { display:flex; gap:10px; justify-content:center; margin-top:14px; }
    .mc-arrow {
      width:40px; height:40px; border-radius:10px; border:1.5px solid var(--gray-200);
      background:white; display:flex; align-items:center; justify-content:center;
      cursor:pointer; transition:all 0.2s;
    }
    .mc-arrow:hover { border-color:var(--blue); background:rgba(29,110,245,0.05); }
    .mc-arrow:disabled { opacity:0.35; cursor:default; pointer-events:none; }
    /* Hide dots & arrows on desktop where grid is shown */
    @media(min-width:1024px) { .mc-dots, .mc-arrows { display:none; } }

    /* ====== TEAM SWIPER (mobile horizontal, grid on desktop) ====== */
    .team-swiper-outer { overflow:hidden; }
    .team-swiper-track {
      display:flex; gap:18px;
      transition:transform 0.45s cubic-bezier(.4,0,.2,1);
      will-change:transform;
    }
    .team-swipe-slide { flex:0 0 72vw; max-width:240px; min-width:0; }
    @media(min-width:500px) { .team-swipe-slide { flex:0 0 200px; } }
    @media(min-width:900px) {
      .team-swiper-outer { overflow:visible; }
      .team-swiper-track {
        display:grid; grid-template-columns:repeat(4,1fr);
        gap:24px; transform:none !important;
      }
      .team-swipe-slide { flex:none; max-width:none; }
    }

    /* ====== FOOTER GRID LAYOUT ====== */
    .footer-grid-inner {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 64px;
    }
    /* Tablet */
    @media(max-width:900px) {
      .footer-grid-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
      }
      .footer-grid-inner > div:first-child {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 24px;
      }
    }
    /* Mobile — fully stacked */
    @media(max-width:599px) {
      .footer-grid-inner {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 36px;
      }
      .footer-grid-inner > div:first-child {
        grid-column: 1;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 24px;
        margin-bottom: 4px;
      }
    }

    /* ====== HAMBURGER & MOBILE MENU z-index fix ====== */
    #hamburger { position: relative; z-index: 1001; }
    .mob-close-btn { position: relative; z-index: 1002; }
    .footer-col-head {
      display:flex; align-items:center; justify-content:space-between;
      cursor:pointer; user-select:none; padding:14px 0;
      border-bottom:1px solid rgba(255,255,255,0.1);
      transition: border-color 0.2s ease;
    }
    .footer-col-head:hover { border-color: rgba(255,255,255,0.2); }
    .footer-col-head-title {
      font-family:var(--font-head); font-size:0.9rem; font-weight:700;
      color:white; letter-spacing:0.04em;
    }
    .footer-col-chevron {
      width:28px; height:28px;
      border-radius:6px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      display:flex; align-items:center; justify-content:center;
      transition: transform 0.3s ease, background 0.2s ease;
      flex-shrink:0;
    }
    .footer-col-head:hover .footer-col-chevron { background: rgba(255,255,255,0.12); }
    .footer-col-head.expanded .footer-col-chevron {
      transform:rotate(180deg);
      background: rgba(29,110,245,0.2);
      border-color: rgba(29,110,245,0.3);
    }
    .footer-col-body {
      max-height:0; overflow:hidden;
      transition:max-height 0.38s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
      opacity: 0;
    }
    .footer-col-body.expanded { max-height:320px; opacity: 1; }
    .footer-col-body ul { padding:12px 0 16px; }
    /* On desktop restore original appearance */
    @media(min-width:600px) {
      .footer-col-head { cursor:default; border-bottom:none; padding:0 0 18px; }
      .footer-col-head:hover { border-color: transparent; }
      .footer-col-chevron { display:none; }
      .footer-col-body { max-height:none !important; overflow:visible; opacity:1 !important; }
    }

    /* ====== GLOBAL RESPONSIVE IMPROVEMENTS ====== */
    /* Container padding */
    .page-container { max-width:1200px; margin:0 auto; padding:0 20px; }
    @media(min-width:640px) { .page-container { padding:0 28px; } }
    @media(min-width:1024px) { .page-container { padding:0 24px; } }

    /* Section padding scale */
    @media(max-width:767px) {
      section[style*="padding:96px 24px"], section[style*="padding:80px 24px"] { padding-top:60px !important; padding-bottom:40px !important; padding-left:18px !important; padding-right:18px !important; }
      /* Industries sections — tighter padding */
      section[style*="padding:64px 24px 48px"] { padding-top:40px !important; padding-bottom:24px !important; padding-left:18px !important; padding-right:18px !important; }
      section[style*="padding:56px 24px 40px"] { padding-top:40px !important; padding-bottom:24px !important; padding-left:18px !important; padding-right:18px !important; }
      /* Portfolio section */
      section[style*="padding:48px 24px 48px"] { padding-top:32px !important; padding-bottom:32px !important; padding-left:18px !important; padding-right:18px !important; }
      /* All other standard sections */
      section[style*="padding:64px 24px"] { padding-top:40px !important; padding-bottom:40px !important; padding-left:18px !important; padding-right:18px !important; }
      section[style*="padding:56px 24px"] { padding-top:36px !important; padding-bottom:36px !important; padding-left:18px !important; padding-right:18px !important; }
      section[style*="padding:48px 24px"] { padding-top:32px !important; padding-bottom:32px !important; padding-left:18px !important; padding-right:18px !important; }
      /* Industry grids — 2 columns on mobile */
      .home-industries-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
      .about-industries-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
      /* Reduce card padding in industry grids on mobile */
      .home-industries-grid > div { padding: 16px 12px !important; }
      .about-industries-grid > div { padding: 18px !important; }
      /* Reduce section heading margin-bottom on mobile */
      div[style*="margin-bottom:64px"] { margin-bottom:32px !important; }
      div[style*="margin-bottom:56px"] { margin-bottom:28px !important; }
      div[style*="margin-bottom:48px"] { margin-bottom:24px !important; }
      .hero-grid { background-size:22px 22px; }
      .hero-glow { width:300px; height:300px; }
      /* Hide desktop hero visual, show text only */
      .hero-grid-content { grid-template-columns:1fr !important; }
      .hero-grid-content > div:last-child { display:none !important; }
      /* Why Heed two-col fix */
      div[style*="grid-template-columns:1fr 1fr;gap:80px"] { grid-template-columns:1fr !important; gap:36px !important; }
      /* Mission/Vision two-col */
      div[style*="grid-template-columns:1fr 1fr;gap:32px"] { grid-template-columns:1fr !important; gap:20px !important; }
      /* Story grid */
      div[style*="grid-template-columns:1fr 1fr;gap:80px;align-items:center"] { grid-template-columns:1fr !important; gap:36px !important; }
      /* Card padding on mobile */
      .card { padding:22px !important; }
      /* Value card */
      .value-card { padding:22px !important; }
      /* About timeline 2-col stays on mobile, ok */
      /* Buttons full-width on small mobile */
      .hero-btns { flex-direction:column !important; }
      .hero-btns .btn-primary, .hero-btns .btn-outline { width:100%; justify-content:center; }
      /* Marquee item font */
      .marquee-item { font-size:0.78rem; }
      /* Stats grid — 2 col on mobile */
      div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] { grid-template-columns:repeat(2,1fr) !important; gap:14px !important; }
      /* Services auto-fit */
      div[style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"] { grid-template-columns:1fr !important; }
      /* Value cards */
      div[style*="grid-template-columns:repeat(auto-fit,minmax(240px,1fr))"] { grid-template-columns:1fr !important; }
      /* Page headers */
      div[style*="padding:120px 24px 80px"] { padding:90px 18px 48px !important; }
      /* footer */
      footer[style*="padding:80px 24px 40px"] { padding:40px 18px 28px !important; }
      /* Back to top repositioned */
      #back-to-top { bottom:20px; right:16px; width:40px; height:40px; }
      /* Mission/Vision card padding */
      div[style*="padding:48px;border-radius:24px"] { padding:28px !important; }
      /* Process step */
      .process-step { gap:14px; }
    }
    @media(min-width:768px) and (max-width:1023px) {
      .hero-grid { background-size:26px 26px; }
      .hero-grid-content { grid-template-columns:1fr !important; }
      .hero-grid-content > div:last-child { display:none !important; }
      div[style*="grid-template-columns:1fr 1fr;gap:80px"] { grid-template-columns:1fr 1fr !important; gap:40px !important; }
    }
    /* Nav CTA hide on small screens */
    @media(max-width:640px) { #nav-cta { display:none !important; } }

    /* ====== HAMBURGER BUTTON ====== */
    #hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      width: 40px; height: 40px;
      border-radius: 8px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    #hamburger:hover { background: rgba(255,255,255,0.1); }
    .hb {
      display: block;
      width: 22px;
      height: 1.5px;
      border-radius: 2px;
      background: #ffffff;
      transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s, width 0.3s;
      transform-origin: center;
    }
    .hb-mid { width: 16px; }

    /* Open state — clean X */
    #hamburger.is-open .hb-long  { transform: translateY(7.5px) rotate(45deg); width: 22px; }
    #hamburger.is-open .hb-mid   { opacity: 0; transform: scaleX(0); }
    #hamburger.is-open .hb-short { transform: translateY(-7.5px) rotate(-45deg); width: 22px; }

    /* Show hamburger on mobile, hide nav links */
    @media(max-width:899px) {
      #hamburger { display: flex !important; }
      #nav-links { display: none !important; }
    }
    /* Scrolled state — navy lines on white bg */
    #navbar.scrolled #hamburger:hover { background: rgba(29,110,245,0.08); }
    #navbar.scrolled .hb { background: var(--navy); }

    /* ====== COMPREHENSIVE RESPONSIVE FIXES ====== */

    /* === EXTRA SMALL SCREENS (< 400px) === */
    @media(max-width:399px) {
      body { font-size:14px; }
      h1 { font-size:clamp(1.8rem,6vw,2.4rem) !important; }
      h2 { font-size:clamp(1.3rem,5vw,1.8rem) !important; }
      h3 { font-size:clamp(1rem,4vw,1.3rem) !important; }

      /* Reduce all padding further */
      section { padding:36px 14px !important; }
      .page-container { padding:0 14px !important; }

      /* Ensure no text overflow */
      p, span, div { word-wrap:break-word; overflow-wrap:break-word; }

      /* Fix grid layouts */
      [style*="grid-template-columns"] { grid-template-columns:1fr !important; }

      /* Reduce button size */
      button:not(.mc-dot), .btn-primary, .btn-outline {
        padding:10px 18px !important;
        font-size:0.8rem !important;
        min-height:40px;
      }

      /* Form inputs */
      input, textarea, select {
        padding:10px 12px !important;
        font-size:16px !important;
        min-height:40px;
      }

      /* Ensure cards are readable */
      .card { padding:16px !important; }

      /* Fix navbar */
      nav { padding:12px 14px !important; }

      /* Newsletter responsive fix */
      .newsletter-grid { grid-template-columns:1fr !important; }
      .newsletter-form-compact { width:100%; }
      .newsletter-form-compact input { min-width:0 !important; }
      .newsletter-form-compact button { padding:8px 16px !important; font-size:0.75rem !important; }
    }

    /* === SMALL SCREENS (400px - 599px) === */
    @media(min-width:400px) and (max-width:599px) {
      h1 { font-size:clamp(1.8rem,6vw,2.6rem) !important; }
      h2 { font-size:clamp(1.4rem,5vw,2rem) !important; }

      /* Proper grid 1 column */
      [style*="grid-template-columns:repeat(auto"] {
        grid-template-columns:1fr !important;
        gap:14px !important;
      }

      /* Two column grids become 1 */
      [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns:1fr !important;
        gap:24px !important;
      }

      /* Section padding */
      section[style*="padding:80px"], section[style*="padding:96px"] {
        padding:48px 16px !important;
      }

      /* Page headers */
      [style*="padding:120px 24px 80px"] {
        padding:70px 16px 40px !important;
      }

      /* Newsletter properly spaced */
      .newsletter-form-compact { flex-direction:column; gap:10px; }
      .newsletter-form-compact input { width:100%; }
      .newsletter-form-compact button { width:100%; }

      /* FAQ proper spacing */
      .faq-trigger { padding:16px !important; font-size:0.9rem !important; }
    }

    /* === MEDIUM SCREENS (600px - 767px) === */
    @media(min-width:600px) and (max-width:767px) {
      h1 { font-size:clamp(2rem,5vw,2.8rem) !important; }
      h2 { font-size:clamp(1.5rem,4vw,2.2rem) !important; }

      /* 2 column grids stay but optimized */
      [style*="grid-template-columns:1fr 1fr"] {
        gap:32px !important;
      }

      /* Grid auto-fit becomes 2 columns */
      [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
        grid-template-columns:repeat(2, 1fr) !important;
        gap:16px !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(240px"] {
        grid-template-columns:repeat(2, 1fr) !important;
        gap:16px !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
        grid-template-columns:repeat(2, 1fr) !important;
        gap:16px !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(320px"] {
        grid-template-columns:repeat(2, 1fr) !important;
        gap:16px !important;
      }

      /* Section padding */
      section[style*="padding:80px 24px"], section[style*="padding:96px 24px"] {
        padding:56px 20px !important;
      }

      /* Page headers */
      [style*="padding:120px 24px 80px"] {
        padding:80px 20px 48px !important;
      }

      /* Newsletter side-by-side works */
      .newsletter-grid { gap:24px; }

      /* Forms full width */
      .form-input { width:100%; }
    }

    /* === TABLETS (768px - 1023px) === */
    @media(min-width:768px) and (max-width:1023px) {
      h1 { font-size:clamp(2.2rem,5vw,3rem) !important; }
      h2 { font-size:clamp(1.6rem,4vw,2.4rem) !important; }

      /* 2-3 column grids */
      [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
        grid-template-columns:repeat(2, 1fr) !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(240px"] {
        grid-template-columns:repeat(2, 1fr) !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
        grid-template-columns:repeat(2, 1fr) !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(320px"] {
        grid-template-columns:repeat(3, 1fr) !important;
      }

      /* Two-column content stays two columns */
      [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns:1fr 1fr !important;
        gap:40px !important;
      }

      /* Section padding */
      section[style*="padding:80px 24px"], section[style*="padding:96px 24px"] {
        padding:64px 28px !important;
      }

      /* Page headers */
      [style*="padding:120px 24px 80px"] {
        padding:90px 28px 56px !important;
      }
    }

    /* === DESKTOPS (> 1024px) === */
    @media(min-width:1024px) {
      /* Everything flows naturally, no restrictions */
      h1 { line-height:1.1; }
      h2 { line-height:1.2; }

      /* 3+ column grids work */
      [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
        grid-template-columns:repeat(3, 1fr) !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(240px"] {
        grid-template-columns:repeat(3, 1fr) !important;
      }
      [style*="grid-template-columns:repeat(auto-fit,minmax(320px"] {
        grid-template-columns:repeat(4, 1fr) !important;
      }
    }

    /* === UNIVERSAL OVERFLOW PREVENTION === */
    * {
      max-width:100%;
      box-sizing:border-box;
    }

    body {
      overflow-x:hidden;
      word-wrap:break-word;
      overflow-wrap:break-word;
    }

    img {
      max-width:100%;
      height:auto;
      display:block;
    }

    /* Ensure all text containers don't overflow */
    p, span, li, h1, h2, h3, h4, h5, h6 {
      max-width:100%;
      word-wrap:break-word;
      overflow-wrap:break-word;
      hyphens:auto;
    }

    /* Prevent table overflow */
    table {
      width:100%;
      overflow-x:auto;
      display:block;
    }

    /* SVG responsive */
    svg {
      max-width:100%;
      height:auto;
    }

    /* Flex containers prevent overflow */
    [style*="display:flex"] {
      flex-wrap:wrap;
      min-width:0;
    }

    /* Ensure buttons are always clickable */
    button:not(.mc-dot), a[href], input[type="button"], input[type="submit"] {
      min-height:44px;
      min-width:44px;
      cursor:pointer;
    }

    /* Form elements minimum sizes */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    textarea,
    select {
      min-height:40px;
      width:100%;
      box-sizing:border-box;
    }


    /* === FAQ RESPONSIVE ADJUSTMENTS === */
    @media(max-width:640px) {
      #faq-container { gap:10px !important; }
      .faq-item { border-radius:8px; }
      .faq-trigger {
        padding:14px !important;
        font-size:0.85rem !important;
      }
      .faq-content { padding:0 14px !important; }
      .faq-content > div { padding:12px 0 16px !important; font-size:0.9rem; }
    }

    /* === NAVIGATION RESPONSIVE === */
    @media(max-width:640px) {
      nav { padding:12px 16px !important; }
      #navbar { height:auto; }
    }

    /* === FOOTER RESPONSIVE === */
    @media(max-width:767px) {
      footer { padding:40px 16px 20px !important; }
      footer a, footer p { font-size:0.85rem; }
    }

    /* === CAROUSEL RESPONSIVE === */
    @media(max-width:767px) {
      .mobile-carousel-outer { padding:0 8px; }
      .testi-slide { margin:0 4px; }
      .mc-slide { margin:0 4px; }
    }

    /* === HERO SECTION RESPONSIVE === */
    @media(max-width:767px) {
      .hero-grid { min-height:80vh; padding:60px 16px; }
      .section-label { font-size:0.75rem; padding:4px 10px; }
    }

    /* === ENSURE NO HIDDEN CONTENT === */
    @media(max-width:1200px) {
      /* Make sure nothing is hidden by default breakpoints */
      .hidden-mobile { display:none; }
      .visible-mobile { display:block; }
    }

    @media(min-width:1201px) {
      .hidden-desktop { display:none; }
      .visible-desktop { display:block; }
    }

/* ──────────────────────────────────────────────────────
   PAGE-SPECIFIC & COMPONENT STYLES
────────────────────────────────────────────────────── */

.process-section {
      padding: 80px 24px;
      background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
      border-top: 1px solid var(--gray-200);
    }
    .process-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      position: relative;
    }
    /* connector line between cards */
    .process-grid::before {
      content: '';
      position: absolute;
      top: 40px;
      left: calc(16.666% + 20px);
      right: calc(16.666% + 20px);
      height: 1px;
      background: linear-gradient(90deg, var(--blue), #6366f1, var(--teal), #f59e0b, #22c55e, #ec4899);
      opacity: 0.25;
      z-index: 0;
      pointer-events: none;
    }
    .process-card {
      position: relative; z-index: 1;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: 18px;
      padding: 28px 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: all 0.28s ease;
    }
    .process-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 48px rgba(5,12,26,0.09);
      border-color: transparent;
    }
    .process-num {
      font-family: var(--font-head); font-weight: 900; font-size: 0.72rem;
      letter-spacing: 0.12em;
      display: inline-flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; border-radius: 10px;
      border: 1.5px solid; flex-shrink: 0;
    }
    .process-icon-wrap {
      width: 48px; height: 48px; border-radius: 12px;
      border: 1.5px solid;
      display: flex; align-items: center; justify-content: center;
    }
    .process-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
    .process-label {
      font-family: var(--font-head); font-weight: 700;
      font-size: 1rem; color: var(--navy); line-height: 1.2;
    }
    .process-desc {
      font-size: 0.875rem; color: var(--gray-600); line-height: 1.72; margin: 0;
    }
    .process-duration {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
      padding: 4px 10px; border-radius: 100px; border: 1px solid;
      align-self: flex-start; margin-top: auto; font-family: var(--font-head);
    }
    @media(max-width: 1024px) {
      .process-grid { grid-template-columns: repeat(2, 1fr); }
      .process-grid::before { display: none; }
    }
    @media(max-width: 580px) {
      .process-grid { grid-template-columns: 1fr; gap: 16px; }
      .process-card { padding: 22px 18px; }
    }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
    @keyframes slideIn { from{width:0} }
    @media(max-width:768px) {
      .hero-grid-content { grid-template-columns:1fr !important; }
      .hero-grid-content > div:last-child { display:none; }
    }
    /* On desktop, PROJECT carousel becomes a 3-col grid */
    @media(min-width:1024px) {
      .mobile-carousel-wrap[data-slide-class="mc-slide"] .mobile-carousel-outer { overflow:visible; }
      .mobile-carousel-wrap[data-slide-class="mc-slide"] .mobile-carousel-track {
        display:grid !important;
        grid-template-columns:repeat(3,1fr);
        gap:24px;
        transform:none !important;
      }
      .mc-slide { flex:none !important; min-width:0; }
      /* Testimonials: 3-wide flex carousel on desktop, centre = active */
      .mobile-carousel-wrap[data-slide-class="testi-slide"] .mobile-carousel-outer { overflow:visible; }
      .mobile-carousel-wrap[data-slide-class="testi-slide"] .mobile-carousel-track { display:flex !important; gap:16px; }
      /* 3 slides exactly fill the container */
      .mobile-carousel-wrap[data-slide-class="testi-slide"] .testi-slide { flex:0 0 calc(33.333% - 14px) !important; }
      /* Show dots & arrows on desktop for testimonials */
      .mobile-carousel-wrap[data-slide-class="testi-slide"] .mc-dots { display:flex !important; }
      .mobile-carousel-wrap[data-slide-class="testi-slide"] .mc-arrows { display:flex !important; }
      /* Hide dots/arrows for project grid */
      .mobile-carousel-wrap[data-slide-class="mc-slide"] .mc-dots,
      .mobile-carousel-wrap[data-slide-class="mc-slide"] .mc-arrows { display:none !important; }
    }
    /* Tablet: 2 cols */
    @media(min-width:600px) and (max-width:1023px) {
      .mobile-carousel-outer { overflow:hidden; }
    }

@media(max-width:768px){section > div > div[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr !important;}}

.heed-post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}
/* Quill outputs <p> tags - keep spacing tight */
.heed-post-body p {
  margin: 0 0 1.1em;
}
.heed-post-body p:last-child { margin-bottom: 0; }
/* Strip Quill empty paragraphs in case any slip through */
.heed-post-body p:empty,
.heed-post-body p br:only-child { display: none; }
.heed-post-body h1,
.heed-post-body h2 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.heed-post-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8em 0 0.5em;
  line-height: 1.3;
}
.heed-post-body h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.4em 0 0.4em;
}
.heed-post-body ul,
.heed-post-body ol {
  margin: 0 0 1.1em 1.4em;
  line-height: 1.75;
}
.heed-post-body li { margin-bottom: 0.35em; }
.heed-post-body li:last-child { margin-bottom: 0; }
.heed-post-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 14px 22px;
  margin: 1.6em 0;
  background: rgba(29,110,245,0.04);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--navy);
}
.heed-post-body blockquote p { margin: 0; }
.heed-post-body pre {
  background: #0d1117;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.82rem;
  overflow-x: auto;
  display: block;
  margin: 0 0 1.1em;
  line-height: 1.65;
}
.heed-post-body code {
  font-family: 'Fira Code','Courier New',monospace;
  font-size: 0.82rem;
}
.heed-post-body :not(pre) > code {
  background: var(--gray-100);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82em;
}
.heed-post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.heed-post-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.4em 0;
  display: block;
}
.heed-post-body strong { color: var(--navy); font-weight: 700; }
.heed-post-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2em 0;
}
/* Quill specific class resets */
.heed-post-body .ql-align-center { text-align: center; }
.heed-post-body .ql-align-right  { text-align: right; }
.heed-post-body .ql-align-justify { text-align: justify; }

.faq-item.active .faq-content { display:block !important; }
    .faq-item.active .faq-icon-plus { opacity:0 !important; }
    .faq-item.active .faq-icon-minus { opacity:1 !important; }
    @media(max-width:640px) {
      .faq-trigger { padding:16px !important; font-size:0.95rem !important; }
      .faq-content { padding:0 16px !important; }
    }

@media(max-width:768px){.service-detail-grid{grid-template-columns:1fr !important;}}

@media(max-width:900px) {
  .post-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
  aside { position: static !important; top: auto !important; }
}
/* heed-post-body styles defined globally above */

@keyframes spin{to{transform:rotate(360deg)}}
  @media(max-width:768px){.contact-grid{grid-template-columns:1fr !important;}}

@media(max-width:640px){.proj-two-col{grid-template-columns:1fr !important}}

/* ── Section shell ── */
    .nl-section {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, var(--navy) 0%, #0d2151 55%, #0b1f44 100%);
      padding: 72px 24px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    /* ── Decorative orbs ── */
    .nl-orb { position:absolute; border-radius:50%; pointer-events:none; }
    .nl-orb1 { width:500px; height:500px; top:-180px; right:-120px; background:radial-gradient(circle, rgba(29,110,245,0.18) 0%, transparent 70%); }
    .nl-orb2 { width:320px; height:320px; bottom:-100px; left:-60px; background:radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%); }
    .nl-orb3 { width:2px; height:100%; top:0; left:50%; background:linear-gradient(180deg, transparent, rgba(29,110,245,0.15), transparent); }

    /* ── Layout ── */
    .nl-wrap {
      position: relative; z-index: 1;
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    }

    /* ── Left copy ── */
    .nl-badge {
      display: inline-flex; align-items: center; gap: 7px;
      font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--teal);
      background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
      padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
    }
    .nl-heading {
      font-family: var(--font-head); font-weight: 800;
      font-size: clamp(1.7rem, 3.2vw, 2.4rem);
      color: white; letter-spacing: -0.03em; line-height: 1.15;
      margin-bottom: 16px;
    }
    .nl-desc {
      font-size: 0.97rem; color: rgba(255,255,255,0.55);
      line-height: 1.75; max-width: 400px; margin-bottom: 32px;
    }
    .nl-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
    .nl-stat { display: flex; flex-direction: column; gap: 2px; }
    .nl-stat-num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: white; }
    .nl-stat-label { font-size: 0.73rem; color: rgba(255,255,255,0.4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
    .nl-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.12); }

    /* ── Right form ── */
    .nl-form-col {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 20px; padding: 36px 32px;
      backdrop-filter: blur(12px);
    }
    .nl-field-label {
      display: block; font-family: var(--font-head); font-size: 0.8rem;
      font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 10px; letter-spacing: 0.03em;
    }
    .nl-input-row { display: flex; gap: 10px; margin-bottom: 14px; }
    .nl-input {
      flex: 1; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 10px; padding: 13px 16px; font-size: 0.9rem;
      font-family: var(--font-body); color: white; outline: none;
      transition: all 0.2s ease; min-height: unset !important; min-width: unset !important;
    }
    .nl-input::placeholder { color: rgba(255,255,255,0.3); }
    .nl-input:focus { border-color: var(--blue); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 4px rgba(29,110,245,0.15); }
    .nl-submit {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(135deg, var(--blue), var(--teal));
      color: white; border: none; border-radius: 10px; padding: 13px 22px;
      font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
      cursor: pointer; white-space: nowrap; flex-shrink: 0;
      transition: all 0.22s ease;
      min-height: unset !important; min-width: unset !important;
    }
    .nl-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,110,245,0.4); }
    .nl-submit:active { transform: translateY(0); }
    .nl-privacy {
      display: flex; align-items: center; gap: 6px;
      font-size: 0.75rem; color: rgba(255,255,255,0.3); line-height: 1.5; margin: 0;
    }
    .nl-msg {
      margin-top: 12px; padding: 10px 14px; border-radius: 8px;
      font-size: 0.84rem; font-weight: 600;
    }

    /* ── Responsive ── */
    @media(max-width: 860px) {
      .nl-wrap { grid-template-columns: 1fr; gap: 36px; }
      .nl-desc { max-width: 100%; }
      .nl-orb3 { display: none; }
    }
    @media(max-width: 480px) {
      .nl-section { padding: 52px 20px; }
      .nl-form-col { padding: 24px 20px; border-radius: 16px; }
      .nl-input-row { flex-direction: column; }
      .nl-submit { width: 100%; justify-content: center; }
    }

/* ── WhatsApp Button ── */
  #wa-btn {
    position:fixed; bottom:28px; right:24px; z-index:9000;
    background:#25D366; color:white;
    display:flex; align-items:center; gap:8px;
    padding:12px 18px 12px 14px; border-radius:100px;
    text-decoration:none;
    box-shadow:0 6px 24px rgba(37,211,102,0.4);
    transition:all 0.25s ease;
    font-family:var(--font-head); font-weight:700; font-size:0.82rem;
    letter-spacing:0.01em; white-space:nowrap;
  }
  #wa-btn:hover { background:#1ebe5d; transform:translateY(-2px); box-shadow:0 10px 32px rgba(37,211,102,0.5); }
  #wa-btn:focus-visible { outline:3px solid white; outline-offset:3px; }
  .wa-label { display:inline; }
  @media(max-width:480px) {
    #wa-btn { padding:13px; border-radius:50%; bottom:20px; right:16px; }
    .wa-label { display:none; }
  }
  /* ── Cookie Banner ── */
  #cookie-banner {
    position:fixed; bottom:0; left:0; right:0; z-index:8900;
    padding:0 24px 20px;
    animation:slideUpCk 0.4s cubic-bezier(0.16,1,0.3,1) both;
  }
  @keyframes slideUpCk { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
  #cookie-inner {
    max-width:860px; margin:0 auto;
    background:#0d1829; border:1px solid rgba(255,255,255,0.1); border-radius:16px;
    padding:18px 22px; display:flex; align-items:center;
    justify-content:space-between; gap:20px; flex-wrap:wrap;
    box-shadow:0 -8px 40px rgba(0,0,0,0.3);
  }
  #cookie-text { display:flex; align-items:flex-start; gap:12px; flex:1; min-width:200px; }
  #cookie-actions { display:flex; gap:10px; flex-shrink:0; }
  #cookie-accept {
    background:linear-gradient(135deg,var(--blue),var(--teal)); color:white; border:none;
    padding:8px 20px; border-radius:8px; font-family:var(--font-head); font-weight:700;
    font-size:0.82rem; cursor:pointer; transition:opacity 0.2s;
    min-height:unset!important; min-width:unset!important;
  }
  #cookie-accept:hover { opacity:0.87; }
  #cookie-accept:focus-visible { outline:3px solid var(--teal); outline-offset:2px; }
  #cookie-decline {
    background:transparent; color:rgba(255,255,255,0.5);
    border:1px solid rgba(255,255,255,0.15); padding:8px 18px; border-radius:8px;
    font-family:var(--font-head); font-weight:600; font-size:0.82rem;
    cursor:pointer; transition:all 0.2s; min-height:unset!important; min-width:unset!important;
  }
  #cookie-decline:hover { color:white; border-color:rgba(255,255,255,0.4); }
  #cookie-decline:focus-visible { outline:3px solid rgba(255,255,255,0.4); outline-offset:2px; }
  @media(max-width:560px) {
    #cookie-inner { flex-direction:column; gap:14px; }
    #cookie-actions { width:100%; }
    #cookie-accept,#cookie-decline { flex:1; text-align:center; }
  }
/* Benefits grid responsive */
@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
