:root {
      --sf: 'Space Grotesk', sans-serif;
      --bf: 'Inter', sans-serif;
      --deep-sea: #0a1628;
      --purple: #8b5cf6;
      --blue: #00adff;
      --mint: #00d9c0;
      --white: #ffffff;
      --gray-300: #d1d5db;
      --gray-400: #9ca3af;
      --gray-500: #6b7280;

      /* HubSpot form theming (included per cross-page spec §8.1) */
      --hsf-global__font-family: 'Inter', sans-serif;
      --hsf-global__font-size: 14px;
      --hsf-global__color: #d1d5db;
      --hsf-global-error__color: #f87171;
      --hsf-background__background-color: transparent;
      --hsf-background__border-color: transparent;
      --hsf-background__border-radius: 0px;
      --hsf-background__padding: 0px;
      --hsf-field-input__background-color: rgba(255,255,255,0.1);
      --hsf-field-input__border-color: rgba(255,255,255,0.2);
      --hsf-field-input__border-radius: 8px;
      --hsf-field-input__color: #ffffff;
      --hsf-field-input__font-size: 16px;
      --hsf-field-input__placeholder-color: #9ca3af;
      --hsf-field-label__color: #d1d5db;
      --hsf-field-label__font-size: 14px;
      --hsf-button__background-color: rgba(139,92,246,0.8);
      --hsf-button__color: #ffffff;
      --hsf-button__border-color: rgba(139,92,246,0.5);
      --hsf-button__border-radius: 8px;
      --hsf-button__font-family: 'Inter', sans-serif;
      --hsf-button__font-size: 14px;
      --hsf-button__font-weight: 500;
      --hsf-button--hover__background-color: #8b5cf6;
      --hsf-button--hover__color: #ffffff;
      --hsf-button--hover__border-color: #8b5cf6;
      --hsf-legal-consent__color: #9ca3af;
      --hsf-legal-consent__font-size: 12px;
      --hsf-rich-text__color: #9ca3af;
      --hsf-rich-text__font-size: 12px;
      --hsf-row__vertical-spacing: 16px;
      --hsf-module__vertical-spacing: 12px;
    }

    /* ═══════════════════════════════════════════════════════════
       RESET & BASE (Cross-Page Spec §0.4)
       ═══════════════════════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: var(--bf);
      font-size: 1rem;
      line-height: 1.5;
      color: var(--gray-300);
      background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    img { max-width: 100%; height: auto; }
    a { text-decoration: none; }
    .pagination .page-btn, .page-numbers {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-family: var(--bf);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    transition: all 0.3s;
    padding: 10px 16px;
    text-decoration: none;
    font-size:0.875rem;
}
.pagination .page-btn.active, .page-numbers.current {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    text-decoration: none;
}
.pagination .page-next, .page-numbers.next, .prev.page-numbers {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-family: var(--bf);
    font-weight: 500;
    cursor: pointer;
    margin-left: 8px;
    min-height: 44px;
    transition: all 0.3s;
    width: 100px;
    text-align:center;
}
    /* ═══════════════════════════════════════════════════════════
       TAILWIND UTILITY CLASSES (Cross-Page Spec §0.1, §0.2, §0.3)
       ═══════════════════════════════════════════════════════════ */
    .relative { position: relative; }
    .z-10 { z-index: 10; }
    .text-white { color: #ffffff; }
    .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .text-xs { font-size: 0.75rem; line-height: 1rem; }
    .text-base { font-size: 1rem; line-height: 1.5rem; }
    .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .text-5xl { font-size: 3rem; line-height: 1; }
    .font-bold { font-weight: 700; }
    .font-semibold { font-weight: 600; }
    .font-medium { font-weight: 500; }
    .mb-2 { margin-bottom: 0.5rem; }
    .mb-3 { margin-bottom: 0.75rem; }
    .mb-4 { margin-bottom: 1rem; }
    .mb-6 { margin-bottom: 1.5rem; }
    .mb-8 { margin-bottom: 2rem; }
    .mb-12 { margin-bottom: 3rem; }
    .mt-auto { margin-top: auto; }
    .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .pt-40 { padding-top: 10rem; }
    .pb-16 { padding-bottom: 4rem; }
    .max-w-7xl { max-width: 80rem; }
    .max-w-4xl { max-width: 56rem; }
    .mx-auto { margin-left: auto; margin-right: auto; }
    .text-center { text-align: center; }
    .flex { display: flex; }
    .inline-flex { display: inline-flex; }
    .items-center { align-items: center; }
    .justify-center { justify-content: center; }
    .gap-1 { gap: 0.25rem; }
    .gap-2 { gap: 0.5rem; }
    .gap-3 { gap: 0.75rem; }
    .gap-4 { gap: 1rem; }
    .flex-wrap { flex-wrap: wrap; }
    .rounded-xl { border-radius: 0.75rem; }
    .overflow-hidden { overflow: hidden; }
    .h-full { height: 100%; }

    /* ═══════════════════════════════════════════════════════════
       GRADIENT TEXT (Cross-Page Spec §2)
       ═══════════════════════════════════════════════════════════ */
    .grad-text {
      color: #8b5cf6; /* fallback */
      background: linear-gradient(90deg, #8b5cf6, #00adff, #00d9c0);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ═══════════════════════════════════════════════════════════
       ACCESSIBILITY (Cross-Page Spec §9)
       ═══════════════════════════════════════════════════════════ */
    a:focus-visible, button:focus-visible, input:focus-visible {
      outline: 2px solid #8b5cf6;
      outline-offset: 2px;
      border-radius: 4px;
    }
    .skip-link {
      position: absolute; top: -40px; left: 0;
      background: #8b5cf6; color: white;
      padding: 8px 16px; z-index: 100;
      transition: top 0.3s;
      font-family: var(--bf);
    }
    .skip-link:focus { top: 0; }
    .visually-hidden {
      position: absolute; width: 1px; height: 1px;
      padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }

    /* ═══════════════════════════════════════════════════════════
       AMBIENT GLOWS
       ═══════════════════════════════════════════════════════════ */
    .ambient-glow-top {
      position: fixed; inset: 0;
      background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
      pointer-events: none; z-index: 0;
    }
    .ambient-glow-bottom {
      position: fixed; inset: 0;
      background: radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.04) 0%, transparent 50%);
      pointer-events: none; z-index: 0;
    }

    /* ═══════════════════════════════════════════════════════════
       NEURAL CANVAS
       ═══════════════════════════════════════════════════════════ */
    #neuralCanvas {
      position: fixed; inset: 0;
      pointer-events: none; z-index: 0;
    }

    /* ═══════════════════════════════════════════════════════════
       BUTTONS (Cross-Page Spec §0.10, System of Record §5.1)
       ═══════════════════════════════════════════════════════════ */
    .btn-primary {
      position: relative; overflow: hidden;
      padding: 12px 24px; border-radius: 8px;
      font-family: var(--bf); font-size: 14px; font-weight: 500;
      color: white; background: rgba(139,92,246,0.8);
      border: 1px solid rgba(139,92,246,0.5);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      transition: all 0.3s;
      display: inline-flex; align-items: center; gap: 8px;
      min-height: 44px; cursor: pointer;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(139,92,246,0.3);
    }
    .btn-primary .btn-fill {
      position: absolute; inset: 0;
      background: linear-gradient(90deg, #8b5cf6, #00adff);
      transform: translateX(-100%);
      transition: transform 0.5s;
    }
    .btn-primary:hover .btn-fill { transform: translateX(0); }
    .btn-primary .btn-text,
    .btn-primary .btn-arrow { position: relative; z-index: 1; }
    .btn-primary .btn-arrow { transition: transform 0.3s; }
    .btn-primary:hover .btn-arrow { transform: translateX(4px); }

    /* Secondary button (Cross-Page Spec §0.10) */
    .btn-secondary {
      position: relative;
      padding: 12px 24px; border-radius: 8px;
      font-family: var(--bf); font-size: 14px; font-weight: 500;
      color: white;
      background: rgba(255,255,255,0.05);
      backdrop-filter: blur(10px);
      display: inline-flex; align-items: center; gap: 8px;
      min-height: 44px; cursor: pointer;
      overflow: visible;
      transition: all 0.3s;
      border: none;
    }
    .btn-secondary:hover {
      background: rgba(255,255,255,0.1);
      transform: translateY(-2px);
    }
    .btn-secondary .btn-border-static {
      position: absolute; inset: 0; border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.2);
      transition: opacity 0.3s; pointer-events: none;
    }
    .btn-secondary:hover .btn-border-static { opacity: 0; }
    .btn-secondary .border-svg {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      overflow: visible;
    }
    .btn-secondary .border-svg rect {
      stroke-dasharray: 1000;
      stroke-dashoffset: 1000;
      transition: stroke-dashoffset 0.6s ease-out;
    }
    .btn-secondary:hover .border-svg rect { stroke-dashoffset: 0; }
    .btn-secondary .btn-glow {
      position: absolute; inset: 0; border-radius: 8px;
      box-shadow: 0 0 20px rgba(139,92,246,0.3);
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
    }
    .btn-secondary:hover .btn-glow { opacity: 1; }
    .btn-secondary .btn-text,
    .btn-secondary .btn-arrow { position: relative; z-index: 1; }
    .btn-secondary .btn-arrow { transition: transform 0.3s; }
    .btn-secondary:hover .btn-arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════════════════════
       CATEGORY HERO
       ═══════════════════════════════════════════════════════════ */
    .category-hero {
      display: flex; align-items: center; gap: 40px;
    }
    /* Icon container — CSS mask gradient (Cross-Page Spec §3) */
    .category-icon-wrap {
      width: 100px; min-width: 100px; height: 100px;
      border-radius: 1rem; flex-shrink: 0;
      background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,173,255,0.2));
      display: flex; align-items: center; justify-content: center;
    }
    .category-icon {
      width: 56px; height: 56px;
      background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
      -webkit-mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
    }

    /* ═══════════════════════════════════════════════════════════
       BLOG GRID
       ═══════════════════════════════════════════════════════════ */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    /* ═══════════════════════════════════════════════════════════
       BLOG CARD — Feature Card (Light Glass) Spec
       Lighter-weight variant: no blur/shadow at rest,
       lets neural canvas show through. Full glass on hover.
       ═══════════════════════════════════════════════════════════ */
    .blog-card {
      border-radius: 0.75rem;
      overflow: hidden;
      height: 100%;
      display: flex; flex-direction: column;
      position: relative;
      /* Light Glass defaults (§3.1) */
      background: rgba(255,255,255,0.03);
      backdrop-filter: none;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: none;
      transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    }
    .blog-card:hover {
      /* Light Glass hover (§3.2) */
      background: rgba(255,255,255,0.07);
      border-color: rgba(139,92,246,0.2);
      box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
      transform: translateY(-2px);
    }
    /* Inner glow layer (§3.3) */
    .blog-card .card-glow {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.5s;
      pointer-events: none;
    }
    .blog-card:hover .card-glow { opacity: 1; }

    .blog-card-link {
      position: absolute; inset: 0; z-index: 10;
    }
    .blog-card-hero {
      width: 100%; height: 180px;
      background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(0,173,255,0.2) 100%);
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 8px;
    }
    /* Content wrapper sits above glow via source order (no z-index, so
       read-more's z-index: 12 can escape to the card stacking context
       and sit above the overlay link at z-index: 10) */
    .blog-card-body {
      padding: 1.25rem; flex: 1;
      display: flex; flex-direction: column;
      position: relative;
    }
    /* Category pill — accessible purple (#a78bfa, ~6.5:1 on #0a1628) */
    .blog-card .category-pill {
      padding: 3px 10px; border-radius: 9999px;
      background: rgba(139,92,246,0.13);
      color: #a78bfa; font-size: 11px; font-weight: 600;
      font-family: var(--bf);
    }
    /* Blog title — white */
    .blog-card h4 {
      font-family: var(--sf); font-size: 1rem; line-height: 1.4;
      font-weight: 700; color: #ffffff; margin-bottom: 0.5rem;
      flex-grow: 1;
    }
    .blog-card .excerpt {
      font-size: 0.875rem; line-height: 1.25rem; color: var(--gray-300);
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
      margin-bottom: 0.75rem;
    }
    /* Read More — two-stage hover:
       1. Card hover → appears in plain Electric Blue (no underline, arrow at rest)
       2. Read More hover → text underlines, arrow shifts
       Elevated above the overlay link (z-index 12 > 10) so it receives its own :hover */
    .blog-card .read-more {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.875rem; font-weight: 500;
      color: #00adff;
      opacity: 0; transition: opacity 0.3s; margin-top: auto;
      position: relative; z-index: 12;
      text-decoration: none;
    }
    /* Stage 1: card hover — appear, plain blue */
    .blog-card:hover .read-more { opacity: 1; }
    .blog-card .read-more .rm-text {
      text-decoration: none;
      transition: text-decoration-color 0.3s;
      text-decoration-line: underline;
      text-decoration-color: transparent;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
    }
    /* Stage 2: read-more hover — underline text only, shift arrow */
    .blog-card .read-more:hover .rm-text {
      text-decoration-color: #00adff;
    }
    .blog-card .read-more .rm-arrow {
      color: #00adff;
      transition: transform 0.3s;
    }
    .blog-card .read-more:hover .rm-arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════════════════════
       PAGINATION
       ═══════════════════════════════════════════════════════════ */
    .pagination {
      display: flex; justify-content: center; align-items: center;
      gap: 8px; margin-top: 3rem; flex-wrap: wrap;
    }
    .page-btn {
      padding: 10px 16px; border-radius: 8px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: #e5e7eb; font-family: var(--bf);
      font-weight: 500; cursor: pointer;
      min-height: 44px; transition: all 0.3s;
      font-size: 0.875rem;
    }
    .page-btn:hover {
      background: rgba(255,255,255,0.1);
    }
    .page-num {
      width: 44px; height: 44px; border-radius: 8px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: #e5e7eb; font-family: var(--bf);
      font-weight: 500; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; transition: all 0.3s;
    }
    .page-num[aria-current="page"] {
      background: rgba(139,92,246,0.2);
      border-color: rgba(139,92,246,0.3);
      color: white; font-weight: 600;
    }
    .page-ellipsis {
      color: var(--gray-300); padding: 0 4px;
    }

    /* ═══════════════════════════════════════════════════════════
       FADE-IN ANIMATION
       ═══════════════════════════════════════════════════════════ */
    .fade-in {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .fade-in.visible {
      opacity: 1; transform: translateY(0);
    }

    /* ═══════════════════════════════════════════════════════════
       RESPONSIVE (Cross-Page Spec §10)
       ═══════════════════════════════════════════════════════════ */

    /* Wider horizontal padding on laptop+ displays (1280–1440px range).
       Established on the L'Oréal case study page; apply consistently. */
    @media (min-width: 1200px) {
      .px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
    }

    @media (max-width: 900px) {
      .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
    }
    @media (max-width: 768px) {
      .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
      .text-5xl { font-size: 2.25rem; line-height: 2.5rem; }
    }
    @media (max-width: 640px) {
      .category-hero {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 24px !important;
      }
      .category-bio-wrap { align-items: center !important; }
    }
    @media (max-width: 600px) {
      .blog-grid { grid-template-columns: 1fr !important; }
    }
    @media (max-width: 500px) {
      .pt-40 { padding-top: 7rem; }
    }

    /* ═══════════════════════════════════════════════════════════
       REDUCED MOTION (Cross-Page Spec §9)
       ═══════════════════════════════════════════════════════════ */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .fade-in { opacity: 1; transform: none; }
    }