       FONTS
       ============================================= */
    @font-face { font-family: 'Signifier'; src: url('../assets/Signifier_Light-normal-400-100.ttf') format('truetype'); font-weight: 300; font-display: swap; }
    @font-face { font-family: 'Neue Montreal'; src: url('../assets/PPNeueMontrealArabic-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

    /* =============================================
       CSS VARIABLES 
       ============================================= */
    :root {
      --font-display: 'Signifier', Georgia, 'Times New Roman', serif;
      --font-body: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
      --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
      --section-padding: clamp(80px, 10vw, 140px);
      --section-margin: clamp(24px, 6vw, 120px);
      --max-width: 100%;
      
      /* Island nav */
      --scale: 1;
      --island-width: calc(380px * var(--scale));
      --island-height: calc(72px * var(--scale));
      --search-width: calc(300px * var(--scale));
      --search-height: calc(60px * var(--scale));
      --ham-size: calc(60px * var(--scale));
      --mega-width: min(980px, 94vw);
      --mega-height: min(680px, 88vh);
      --ticker-height: 56px;
      --sidebar-width: 240px;
    }
    
    [data-theme="light"] {
      --bg: #f8f5e7;
      --bg-elevated: #ffffff;
      --bg-dark: #1F1F23;
      --bg-card: rgba(255, 255, 255, 0.8);
      --text: #0a0a0c;
      --text-dim: rgba(10,10,12,0.6);
      --text-muted: rgba(10,10,12,0.35);
      --border: rgba(0,0,0,0.06);
      --border-hover: rgba(0,0,0,0.12);
      --nav-bg: rgba(248, 245, 231, 0.88);
      --nav-bg-solid: #f8f5e7;
      --cell-bg: rgba(245, 245, 248, 0.7);
      --cell-bg-hover: rgba(235, 235, 240, 0.85);
      --accent: #1a1a1a;
      --accent-muted: rgba(26, 26, 26, 0.08);
      --warm-dark: #3E3A34;
      --warm-beige: #E7DBD0;
      --warm: #E7DBD0;
      --brown: #3E3A34;
    }
    
    
    /* =============================================
       RESET & BASE 
       ============================================= */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      transition: background 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth);
    }
    a { text-decoration: none; color: inherit; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }
    
    /* =============================================
       TOP NAV
       ============================================= */
    .top-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 var(--section-margin);
      height: 72px;
      transition: transform 0.4s var(--ease), background 0.3s, backdrop-filter 0.3s;
    }
    .top-nav.scrolled {
      background: var(--nav-bg);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border-bottom: 1px solid var(--border);
    }
    .top-nav.hidden { transform: translateY(-100%); }
    
    .nav-left { display: flex; align-items: center; gap: 48px; }
    .nav-logo {
      display: flex;
      align-items: center;
    }
    .nav-logo img { width: 48px; height: 48px; transition: filter 0.3s; }
    .top-nav:not(.scrolled) .nav-logo { color: #fff; }
    .top-nav:not(.scrolled) .nav-logo img { filter: invert(1) brightness(2); }
    [data-theme="light"] .nav-logo img { filter: invert(1); }
    [data-theme="light"] .top-nav:not(.scrolled) .nav-logo img { filter: none; }
    
    .nav-index {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dim);
      margin-left: 35px;
      cursor: pointer;
      padding: 8px 12px;
      border-radius: 8px;
      transition: all 0.2s;
    }
    .nav-index:hover {
      background: var(--cell-bg);
      color: var(--text);
    }
    .top-nav:not(.scrolled) .nav-index { color: rgba(255,255,255,0.7); }
    .top-nav:not(.scrolled) .nav-index:hover { 
      background: rgba(255,255,255,0.1); 
      color: #fff;
    }
    .nav-index-arrow {
      width: 12px;
      height: 12px;
      opacity: 0.5;
      transition: opacity 0.2s, transform 0.2s;
    }
    .nav-index:hover .nav-index-arrow {
      opacity: 1;
      transform: translateX(2px);
    }
    .nav-index-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #a3e635;
      box-shadow: 0 0 8px rgba(163, 230, 53, 0.6);
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    
    .nav-center { display: flex; align-items: center; gap: 8px; }
    .nav-item {
      position: relative;
      font-size: 14px;
      color: var(--text-dim);
      padding: 10px 16px;
      border-radius: 8px;
      transition: all 0.2s;
    }
    .nav-item sup {
      font-size: 9px;
      font-weight: 500;
      opacity: 0.5;
      margin-left: 2px;
      vertical-align: super;
    }
    .nav-item:hover { color: var(--text); background: var(--cell-bg); }
    .nav-item.mega-active { color: var(--text); background: var(--cell-bg); }
    .top-nav:not(.scrolled) .nav-item { color: rgba(255,255,255,0.7); }
    .top-nav:not(.scrolled) .nav-item:hover { color: #fff; background: rgba(255,255,255,0.1); }
    .top-nav:not(.scrolled) .nav-item.mega-active { color: #fff; background: rgba(255,255,255,0.1); }
    
    /* TOP NAV MEGA DROPDOWNS - Smoked Glass Effect */
    .nav-mega {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      opacity: 0;
      visibility: hidden;
      transition: all 0.25s var(--ease);
      background: rgba(150, 150, 150, 0.15);
      backdrop-filter: blur(40px) saturate(150%);
      -webkit-backdrop-filter: blur(40px) saturate(150%);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
      min-width: 300px;
    }
    [data-theme="light"] .nav-mega {
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    }
    .nav-item:hover .nav-mega {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
    .nav-mega-grid {
      display: grid;
      gap: 4px;
    }
    .nav-mega-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 10px;
      transition: background 0.2s;
    }
    .nav-mega-item:hover {
      background: rgba(255,255,255,0.15);
    }
    [data-theme="light"] .nav-mega-item:hover {
      background: var(--cell-bg);
    }
    .nav-mega-item-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    [data-theme="light"] .nav-mega-item-icon {
      background: var(--accent-muted);
    }
    .nav-mega-item-icon svg {
      width: 18px;
      height: 18px;
      color: var(--text);
      stroke-width: 1.5;
    }
    .nav-mega-item-text {
      flex: 1;
    }
    .nav-mega-item-title {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 2px;
    }
    .nav-mega-item-desc {
      font-size: 11px;
      color: var(--text-muted);
    }
    .nav-mega-item-arrow {
      width: 14px;
      height: 14px;
      color: var(--text-muted);
      opacity: 0;
      transform: translateX(-4px);
      transition: all 0.2s;
      stroke-width: 1.5;
    }
    .nav-mega-item:hover .nav-mega-item-arrow {
      opacity: 1;
      transform: translateX(0);
    }
    
    .nav-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .nav-search-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .nav-search-btn svg { width: 18px; height: 18px; color: var(--text); }
    .top-nav:not(.scrolled) .nav-search-btn svg { color: #fff; }
    .nav-search-btn:hover { opacity: 0.6; }

      width: 44px; height: 44px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s;
    /* FIXED: Show moon in light mode, sun in dark mode */
    
    .nav-subscribe {
      font-size: 14px;
      color: var(--text-dim);
      padding: 10px 16px;
      transition: color 0.2s;
    }
    .nav-subscribe:hover { color: var(--text); }
    .nav-subscribe sup { font-size: 9px; color: var(--text-muted); margin-left: 1px; }
    .top-nav:not(.scrolled) .nav-subscribe { color: rgba(255,255,255,0.7); }
    
    .nav-cta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 400;
      padding: 14px 24px;
      border-radius: 0 18px 0 18px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text);
      transition: all 0.3s;
    }
    .nav-cta:hover { 
      background: var(--text);
      color: var(--bg);
      border-color: var(--text);
    }
    .nav-cta svg { width: 14px; height: 14px; }
    .top-nav:not(.scrolled) .nav-cta {
      border-color: rgba(255,255,255,0.3);
      color: #fff;
    }
    .top-nav:not(.scrolled) .nav-cta:hover {
      background: #fff;
      color: #0a0a0c;
      border-color: #fff;
    }
    
    @media (max-width: 1024px) {
      .nav-center, .nav-index { display: none; }
    }
    @media (max-width: 768px) {
      .nav-subscribe { display: none; }
      /* Hide logo text on mobile, show only logomark */
      /* Smaller nav-cta on mobile */
      .nav-cta {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
      }
      .nav-cta svg { width: 12px; height: 12px; }
    }
    @media (max-width: 480px) {
      /* Even more compact CTA on small mobile */
      .nav-cta {
        padding: 10px 14px;
      }
    }

    /* =============================================
       NAV OVERLAY
       ============================================= */
    .nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      z-index: 999;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    .nav-overlay.is-visible { opacity: 1; visibility: visible; }

    /* =============================================
       ISLAND NAV - Updated glassmorphic style
       ============================================= */
    .island-nav {
      position: fixed;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      width: var(--island-width);
      height: var(--island-height);
      /* UPDATED: Figma spec - blur 24, #969696 at 25% */
      background: rgba(150, 150, 150, 0.25);
      backdrop-filter: blur(24px) saturate(150%);
      -webkit-backdrop-filter: blur(24px) saturate(150%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: width 0.5s var(--ease-smooth), height 0.5s var(--ease-smooth), border-radius 0.4s ease;
    }
    .island-nav.is-open {
      width: var(--mega-width);
      height: var(--mega-height);
      border-radius: 24px;
      background: rgba(30, 30, 30, 0.85);
    }

    .island-closed {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      gap: 8px;
      height: var(--island-height);
      flex-shrink: 0;
    }
    .island-nav.is-open .island-closed { display: none; }

    .island-ham {
      width: var(--ham-size);
      height: var(--ham-size);
      background: rgba(128, 128, 128, 0.15);
      border: none;
      border-radius: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.2s ease;
    }
    .island-ham:hover { background: rgba(128, 128, 128, 0.25); }
    
    .island-ham-lines {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 18px;
    }
    .island-ham-line {
      height: 2px;
      background: var(--text);
      border-radius: 1px;
    }
    .island-ham-line:nth-child(1) { width: 50%; margin-left: auto; }
    .island-ham-line:nth-child(2) { width: 100%; }
    .island-ham-line:nth-child(3) { width: 50%; }

    .island-search {
      display: flex;
      align-items: center;
      width: var(--search-width);
      height: var(--search-height);
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0 18px;
      gap: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
    }
    .island-search:hover { 
      background: var(--bg);
      border-color: var(--border-hover);
    }
    .island-search-text { flex: 1; color: var(--text); font-size: 15px; font-weight: 400; }
    .island-search-arrow { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-muted); }

    /* MEGA CONTENT */
    .mega-content {
      flex: 1;
      display: none;
      flex-direction: column;
      opacity: 0;
      min-height: 0;
      min-width: 0;
      overflow: hidden;
    }
    .island-nav.is-open .mega-content { display: flex; }

    .mega-main {
      flex: 1;
      display: flex;
      min-height: 0;
      min-width: 0;
      overflow: hidden;
    }

    .mega-left {
      width: var(--sidebar-width);
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      padding: 28px 24px;
      border-right: 1px solid rgba(255,255,255,0.1);
    }
    /* UPDATED: Logo 10px bigger */
    .mega-logo-nav { width: 46px; height: 46px; margin-bottom: 24px; opacity: 0.9; }
    .mega-logo-nav img { 
      width: 100%; 
      height: 100%; 
      object-fit: contain; 
      filter: brightness(0) invert(1); /* Force white: first make black, then invert to white */
    }

    .mega-nav { display: flex; flex-direction: column; flex: 1; }
    .mega-nav-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0;
      color: rgba(255,255,255,0.6);
      font-size: 22px;
      font-weight: 400;
      transition: color 0.25s ease;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      cursor: pointer;
    }
    .mega-nav-link:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
    .mega-nav-link:hover, .mega-nav-link.is-active { color: #fff; }
    
    .mega-nav-arrow {
      width: 18px; height: 18px;
      opacity: 0;
      transform: translateX(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      color: #fff;
    }
    .mega-nav-link:hover .mega-nav-arrow,
    .mega-nav-link.is-active .mega-nav-arrow { opacity: 1; transform: translateX(0); }

    .mega-socials { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 24px; }
    .mega-social { color: rgba(255,255,255,0.5); font-size: 14px; transition: color 0.2s ease; }
    .mega-social:hover { color: #fff; }

    .mega-left-bottom { margin-top: 24px; }
    .mega-left-line {
      width: 24px; height: 2px;
      background: rgba(255,255,255,0.5);
      opacity: 0.5;
      cursor: pointer;
      transition: opacity 0.2s ease, width 0.2s ease;
    }
    .mega-left-line:hover { opacity: 1; width: 32px; }

    .mega-right { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
    .mega-right-content { flex: 1; position: relative; min-height: 0; min-width: 0; }
    .mega-content-panel {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mega-content-panel.is-active { opacity: 1; visibility: visible; }

    /* SCHOLARS GRID - with expanding row hover effect */
    .scholars-grid-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
      width: 100%; height: 100%;
      padding: 12px;
      gap: 6px;
      transition: grid-template-rows 0.35s var(--ease);
    }
    
    /* Row hover expansion classes */
    .scholars-grid-nav.row-1-hover { grid-template-rows: 1.4fr 0.8fr 0.8fr; }
    .scholars-grid-nav.row-2-hover { grid-template-rows: 0.8fr 1.4fr 0.8fr; }
    .scholars-grid-nav.row-3-hover { grid-template-rows: 0.8fr 0.8fr 1.4fr; }
    
    .scholar-nav-card {
      background: var(--cell-bg);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 16px 18px;
      cursor: pointer;
      overflow: hidden;
      border-radius: 10px;
      transition: background 0.3s ease;
    }
    .scholar-nav-card:hover { background: var(--cell-bg-hover); }
    
    .scholar-nav-card-photo {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      opacity: 0;
      z-index: 1;
      border-radius: 10px;
      filter: saturate(0.5);
      transition: opacity 0.35s ease, filter 0.35s ease;
    }
    .scholar-nav-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 100%);
      opacity: 0;
      z-index: 2;
      border-radius: 10px;
      transition: opacity 0.35s ease;
    }
    /* UPDATED: Better saturation on hover */
    .scholar-nav-card:hover .scholar-nav-card-photo { opacity: 1; filter: saturate(1.2) contrast(1.05) brightness(1.05); }
    .scholar-nav-card:hover::after { opacity: 1; }
    
    .scholar-nav-card-count { color: var(--text-dim); font-size: 14px; position: relative; z-index: 3; transition: color 0.3s; }
    .scholar-nav-card:hover .scholar-nav-card-count { color: rgba(255,255,255,0.7); }
    .scholar-nav-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 3; }
    .scholar-nav-card-name { color: var(--text); font-size: 20px; font-weight: 400; line-height: 1.15; transition: color 0.3s; }
    .scholar-nav-card:hover .scholar-nav-card-name { color: #fff; }
    .scholar-nav-card-icon { width: 14px; height: 14px; opacity: 0; transition: opacity 0.25s ease; color: #fff; }
    .scholar-nav-card:hover .scholar-nav-card-icon { opacity: 1; }

    /* PANEL GRID - with expanding row hover effect */
    .panel-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
      width: 100%; height: 100%;
      padding: 12px;
      gap: 6px;
      transition: grid-template-rows 0.35s var(--ease);
    }
    
    /* Row hover expansion classes */
    .panel-grid.row-1-hover { grid-template-rows: 1.4fr 0.8fr 0.8fr; }
    .panel-grid.row-2-hover { grid-template-rows: 0.8fr 1.4fr 0.8fr; }
    .panel-grid.row-3-hover { grid-template-rows: 0.8fr 0.8fr 1.4fr; }
    
    .panel-card {
      background: #636363;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px 18px;
      cursor: pointer;
      overflow: hidden;
      border-radius: 10px;
      transition: background 0.3s ease;
    }
    .panel-card:hover { background: #4a4a4a; }
    
    .panel-card-bg {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      opacity: 0;
      z-index: 1;
      border-radius: 10px;
      filter: saturate(0.8);
      transition: opacity 0.35s ease, filter 0.35s ease;
    }
    .panel-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(25,25,30,0.85) 0%, rgba(25,25,30,0.2) 100%);
      opacity: 0;
      z-index: 2;
      border-radius: 10px;
      transition: opacity 0.35s ease;
    }
    /* Full opacity and vibrant on hover */
    .panel-card:hover .panel-card-bg { opacity: 1; filter: saturate(1.2) contrast(1.05) brightness(1.05); }
    .panel-card:hover::after { opacity: 1; }
    
    .panel-card-label { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 4px; position: relative; z-index: 3; }
    .panel-card-title {
      color: #fff;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.2;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      position: relative;
      z-index: 3;
    }
    .panel-card-arrow {
      width: 16px; height: 16px;
      color: #fff;
      opacity: 0;
      transform: translate(-4px, 4px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      flex-shrink: 0;
    }
    .panel-card:hover .panel-card-arrow { opacity: 1; transform: translate(0, 0); }

    .about-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 2.5rem;
      text-align: center;
    }
    .about-logo-large { width: 56px; height: 56px; margin-bottom: 20px; opacity: 0.9; filter: brightness(0) invert(1); }
    .about-text { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.55; max-width: 360px; margin-bottom: 32px; }
    .about-stats-nav { display: flex; gap: 48px; }
    .about-stat-num { font-size: 40px; font-weight: 500; color: #fff; line-height: 1; }
    .about-stat-label { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 6px; line-height: 1.35; }

    .contact-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 2.5rem;
      text-align: center;
    }
    .contact-title-nav { font-size: 28px; font-weight: 400; margin-bottom: 20px; color: #fff; }
    .contact-links-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .contact-link-nav { color: rgba(255,255,255,0.7); font-size: 18px; transition: color 0.2s ease; }
    .contact-link-nav:hover { color: #fff; }
    .contact-address-nav { color: rgba(255,255,255,0.5); font-size: 15px; }

    .mega-ticker {
      flex-shrink: 0;
      background: var(--text);
      height: var(--ticker-height);
      display: flex;
      align-items: center;
      overflow: hidden;
      position: relative;
      margin: 0 12px 12px 0;
      border-radius: 10px;
    }
    .mega-ticker-track {
      display: flex;
      animation: tickerScroll 20s linear infinite;
      width: max-content;
    }
    @keyframes tickerScroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .mega-ticker-item {
      display: flex;
      align-items: center;
      gap: 28px;
      padding: 0 36px;
      color: var(--bg);
      font-size: 16px;
      font-weight: 400;
      white-space: nowrap;
      cursor: pointer;
      transition: opacity 0.2s ease;
    }
    .mega-ticker-item:hover { opacity: 0.6; }
    .mega-ticker-item svg { width: 14px; height: 14px; }
    
    .mega-ticker::before,
    .mega-ticker::after {
      content: '';
      position: absolute;
      top: 0; bottom: 0;
      width: 48px;
      z-index: 2;
      pointer-events: none;
    }
    .mega-ticker::before { left: 0; background: linear-gradient(to right, var(--text), transparent); }
    .mega-ticker::after { right: 0; background: linear-gradient(to left, var(--text), transparent); }

    /* Mega Search Bar (bottom of mega nav) */
    .mega-search-bar {
      flex-shrink: 0;
      height: var(--ticker-height);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 24px;
      margin: 20px 24px;
      border-radius: 10px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      cursor: pointer;
      transition: all 0.2s;
    }
    .mega-search-bar:hover {
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,255,255,0.2);
    }
    .mega-search-bar-icon { width: 18px; height: 18px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
    .mega-search-bar-text { font-size: 15px; color: rgba(255,255,255,0.4); flex: 1; }
    .mega-search-bar-key {
      font-size: 12px;
      color: rgba(255,255,255,0.3);
      padding: 4px 8px;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 6px;
      font-family: inherit;
    }

    /* Mega Search Panel (inside mega content) */
    .mega-search-panel {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 40px 0;
    }
    .mega-search-header { margin-bottom: 32px; }
    .mega-search-icon { width: 28px; height: 28px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
    .mega-search-title {
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 400;
      color: #fff;
      margin-bottom: 8px;
    }
    .mega-search-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); }
    .mega-search-input-wrap {
      position: relative;
      margin-bottom: 20px;
    }
    .mega-search-input {
      width: 100%;
      padding: 18px 60px 18px 24px;
      font-size: 16px;
      font-family: inherit;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 14px;
      color: #fff;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .mega-search-input::placeholder { color: rgba(255,255,255,0.4); }
    .mega-search-input:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); }
    .mega-search-submit {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: linear-gradient(135deg, #3b82f6, #8b5cf6);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }
    .mega-search-submit:hover { transform: translateY(-50%) scale(1.05); }
    .mega-search-submit svg { width: 20px; height: 20px; color: #fff; }
    .mega-search-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }
    .mega-search-tag {
      padding: 10px;
      font-size: 13px;
      color: rgba(255,255,255,0.6);
      background: rgba(255,255,255,0.08);
      border-radius: 20px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .mega-search-tag:hover { background: rgba(255,255,255,0.15); color: #fff; }
    .mega-search-results {
      margin-top: 24px;
      max-height: 50vh;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.2) transparent;
    }
    .mega-search-results::-webkit-scrollbar { width: 4px; }
    .mega-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
    .mega-search-results-count {
      font-size: 13px;
      color: rgba(255,255,255,0.4);
      margin-bottom: 16px;
      font-family: var(--font-body);
    }
    .search-result-item {
      display: flex;
      gap: 16px;
      padding: 16px;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 10px;
      transition: all 0.2s;
      text-decoration: none;
      cursor: pointer;
    }
    .search-result-item:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.12);
    }
    .search-result-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .search-result-icon svg { width: 16px; height: 16px; color: rgba(255,255,255,0.5); }
    .search-result-icon.type-study { background: rgba(59,130,246,0.15); }
    .search-result-icon.type-study svg { color: #60a5fa; }
    .search-result-icon.type-brief { background: rgba(168,85,247,0.15); }
    .search-result-icon.type-brief svg { color: #a78bfa; }
    .search-result-icon.type-media { background: rgba(234,179,8,0.15); }
    .search-result-icon.type-media svg { color: #fbbf24; }
    .search-result-icon.type-event { background: rgba(34,197,94,0.15); }
    .search-result-icon.type-event svg { color: #4ade80; }
    .search-result-icon.type-podcast { background: rgba(244,63,94,0.15); }
    .search-result-icon.type-podcast svg { color: #fb7185; }
    .search-result-icon.type-testimony { background: rgba(251,146,60,0.15); }
    .search-result-icon.type-testimony svg { color: #fb923c; }
    .search-result-icon.type-scholar { background: rgba(99,102,241,0.15); }
    .search-result-icon.type-scholar svg { color: #818cf8; }
    .search-result-icon.type-webinar { background: rgba(34,197,94,0.15); }
    .search-result-icon.type-webinar svg { color: #4ade80; }
    .search-result-icon.type-conference { background: rgba(14,165,233,0.15); }
    .search-result-icon.type-conference svg { color: #38bdf8; }
    .search-result-icon.type-dashboard { background: rgba(163,230,53,0.15); }
    .search-result-icon.type-dashboard svg { color: #a3e635; }
    .search-result-body { flex: 1; min-width: 0; }
    .search-result-title {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
      font-family: var(--font-body);
      line-height: 1.3;
    }
    .search-result-title mark {
      background: rgba(163,230,53,0.25);
      color: #fff;
      border-radius: 2px;
      padding: 0 2px;
    }
    .search-result-meta {
      font-size: 12px;
      color: rgba(255,255,255,0.4);
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      font-family: var(--font-body);
    }
    .search-result-meta-sep { opacity: 0.3; }
    .search-result-excerpt {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      margin-top: 6px;
      line-height: 1.5;
      font-family: var(--font-body);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .search-empty-state {
      text-align: center;
      padding: 48px 24px;
      color: rgba(255,255,255,0.4);
      font-family: var(--font-body);
    }
    .search-empty-state svg { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.3; }
    .search-empty-state p { font-size: 14px; margin-top: 8px; }

    /* Search-active: hide sidebar, full-width centered search */
    .mega-main.search-active .mega-left { display: none; }
    .mega-main.search-active .mega-right { flex: 1; }
    .mega-main.search-active .mega-right-content { display: flex; align-items: center; justify-content: center; }
    .mega-main.search-active .mega-content-panel[data-panel="search"] {
      position: relative;
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
    }
    .mega-main.search-active ~ .mega-search-bar { display: none; }
    .mega-main.search-active .mega-search-bar { display: none; }
    .mega-search-panel { text-align: center; }
    .mega-search-input-wrap { text-align: left; }
    .mega-search-suggestions { justify-content: center; }
    
    /* Back button for search */
    .mega-search-back {
      position: absolute;
      left: 24px;
      top: 24px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 0 18px 0 18px;
      color: rgba(255,255,255,0.6);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
      opacity: 0;
      pointer-events: none;
    }
    .mega-main.search-active .mega-search-back {
      opacity: 1;
      pointer-events: auto;
    }
    .mega-search-back:hover {
      background: rgba(255,255,255,0.12);
      color: #fff;
    }
    .mega-search-back svg { width: 16px; height: 16px; }

    /* INDEX DASHBOARD POPUP */
    .index-popup-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }
    .index-popup-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    /* =============================================
       FOOTER (New Design)
       ============================================= */
    .footer {
      background: var(--bg-dark);
      color: #fff;
    }
    .footer__expertise {
      padding: 80px var(--section-margin) 64px;
    }
    .footer__expertise-inner {
      max-width: var(--max-width);
      margin: 0 auto;
    }
    .footer__expertise-title {
      font-family: var(--font-display);
      font-size: clamp(32px, 4vw, 48px);
      font-weight: 300;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin-bottom: 48px;
    }
    .footer__expertise-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 32px 24px;
    }
    .footer__expertise-col {}
    .footer__expertise-heading {
      font-size: 13px;
      font-weight: 500;
      color: rgba(255,255,255,0.5);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .footer__expertise-heading svg {
      width: 12px;
      height: 12px;
    }
    .footer__expertise-list {
      list-style: none;
    }
    .footer__expertise-link {
      display: block;
      font-size: 14px;
      color: rgba(255,255,255,0.7);
      padding: 5px 0;
      transition: color 0.2s;
    }
    .footer__expertise-link:hover {
      color: #fff;
    }
    
    .footer__bottom {
      padding: 32px var(--section-margin) 48px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .footer__bottom-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .footer__logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .footer__logo img {
      height: 24px;
      width: auto;
    }
    .footer__copyright {
      font-size: 13px;
      color: rgba(255,255,255,0.4);
    }
    .footer__legal {
      display: flex;
      gap: 24px;
    }
    .footer__legal-link {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      transition: color 0.2s;
    }
    .footer__legal-link:hover {
      color: #fff;
    }
    
    @media (max-width: 1100px) {
      .footer__expertise-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (max-width: 768px) {
      .footer__expertise-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .footer__expertise-grid {
        grid-template-columns: 1fr;
      }
      .footer__bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }
      .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
      }
    }

    /* =============================================
       DARK MODE OVERRIDES
       ============================================= */
      color: var(--text);
      color: var(--text-dim);
      background: var(--bg-elevated);
      color: var(--text-muted);
      color: var(--text-muted);
      color: var(--text);
      color: var(--text);
      color: var(--text-dim);
      color: var(--text);
      color: var(--text);
      color: var(--text-muted);
      border-color: var(--border);
      color: var(--text);
      color: var(--text-dim);
    
    @media (max-width: 600px) {
      .contact-drawer__panel {
        max-width: 100%;
        padding: 28px 24px;
        border-radius: 24px 24px 0 0;
        top: auto;
        bottom: 0;
        max-height: 90vh;
      }
      .contact-drawer__title {
        font-size: 24px;
      }
    }
    
    @media (max-width: 900px) {
      .pre-footer__inner {
        grid-template-columns: 1fr;
        gap: 48px;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      .form-group.full {
        grid-column: span 1;
      }
    }


    /* =============================================
       BUTTONS — Shared Component
       ============================================= */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 500;
      padding: 14px 28px;
      border-radius: 0 18px 0 18px;
      border: none;
      cursor: pointer;
      transition: all 0.25s var(--ease);
      text-decoration: none;
    }
    .btn svg { width: 14px; height: 14px; }
    .btn-primary {
      background: var(--text);
      color: var(--bg);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: var(--text); color: var(--bg); }

    .btn-secondary {
      background: transparent;
      border: 1px solid var(--border-dark);
      color: var(--text);
    }
    .btn-secondary:hover { background: var(--bg-warm); transform: translateY(-1px); }
    .btn-ghost {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.7);
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
    .btn-white {
      background: #fff;
      color: var(--bg-dark);
    }
    .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

    /* Page transition — instant cover before JS loads */

    /* ========== SEARCH MODAL ========== */
    .search-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 10000;
      display: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s var(--ease), visibility 0.3s;
    }
    .search-modal-overlay.is-open {
      display: block;
      opacity: 1;
      visibility: visible;
    }
    .search-modal {
      position: fixed;
      top: 10vh;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      width: min(680px, 94vw);
      max-height: 80vh;
      background: #0f0f11;
      border-radius: 20px;
      overflow: hidden;
      z-index: 10001;
      display: none;
      opacity: 0;
      visibility: hidden;
      transition: all 0.35s var(--ease);
      box-shadow: 
        0 0 0 1px rgba(255,255,255,0.08),
        0 40px 80px rgba(0,0,0,0.5),
        0 0 1px rgba(255,255,255,0.1) inset;
      flex-direction: column;
    }
    .search-modal-overlay.is-open .search-modal {
      display: flex;
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
    
    /* Search Header */
    .search-modal__header {
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .search-modal__input-wrap {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .search-modal__icon {
      width: 20px;
      height: 20px;
      color: rgba(255,255,255,0.4);
      flex-shrink: 0;
    }
    .search-modal__input {
      flex: 1;
      background: transparent;
      border: none;
      font-size: 17px;
      color: #fff;
      font-family: var(--font-body);
      outline: none;
    }
    .search-modal__input::placeholder {
      color: rgba(255,255,255,0.35);
    }
    .search-modal__close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(255,255,255,0.06);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .search-modal__close:hover {
      background: rgba(255,255,255,0.12);
    }
    .search-modal__close svg {
      width: 14px;
      height: 14px;
      color: rgba(255,255,255,0.5);
    }
    .search-modal__kbd {
      font-size: 11px;
      color: rgba(255,255,255,0.3);
      background: rgba(255,255,255,0.06);
      padding: 4px 8px;
      border-radius: 6px;
      font-family: var(--font-body);
    }
    
    /* Segmented Toggle */
    .search-modal__toggle {
      display: flex;
      padding: 6px;
      margin: 16px 24px 0;
      background: rgba(255,255,255,0.04);
      border-radius: 12px;
      gap: 4px;
    }
    .search-modal__toggle-btn {
      flex: 1;
      padding: 10px 16px;
      font-size: 13px;
      font-weight: 500;
      color: rgba(255,255,255,0.5);
      background: transparent;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: var(--font-body);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .search-modal__toggle-btn:hover {
      color: rgba(255,255,255,0.7);
    }
    .search-modal__toggle-btn.active {
      background: rgba(255,255,255,0.1);
      color: #fff;
    }
    .search-modal__toggle-btn svg {
      width: 16px;
      height: 16px;
    }
    .search-modal__toggle-badge {
      font-size: 10px;
      padding: 2px 6px;
      background: rgba(99,102,241,0.3);
      color: #a5b4fc;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    /* Search Body */
    .search-modal__body {
      flex: 1;
      overflow-y: auto;
      padding: 20px 24px 24px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.15) transparent;
    }
    .search-modal__body::-webkit-scrollbar { width: 6px; }
    .search-modal__body::-webkit-scrollbar-thumb { 
      background: rgba(255,255,255,0.15); 
      border-radius: 3px; 
    }
    
    /* View containers */
    .search-view { display: none; }
    .search-view.active { display: block; }
    
    /* Results View */
    .search-results__group {
      margin-bottom: 28px;
    }
    .search-results__group:last-child {
      margin-bottom: 0;
    }
    .search-results__group-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .search-results__group-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
    }
    .search-results__group-count {
      font-size: 11px;
      color: rgba(255,255,255,0.3);
    }
    .search-results__list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    /* Result Item */
    .search-result {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 16px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }
    .search-result:hover {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
    }
    .search-result__icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .search-result__icon svg {
      width: 18px;
      height: 18px;
    }
    .search-result__icon--research {
      background: rgba(59,130,246,0.15);
      color: #60a5fa;
    }
    .search-result__icon--scholar {
      background: rgba(168,85,247,0.15);
      color: #c4b5fd;
    }
    .search-result__icon--event {
      background: rgba(34,197,94,0.15);
      color: #4ade80;
    }
    .search-result__icon--media {
      background: rgba(251,191,36,0.15);
      color: #fbbf24;
    }
    .search-result__content {
      flex: 1;
      min-width: 0;
    }
    .search-result__title {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 4px;
      line-height: 1.35;
    }
    .search-result__title mark {
      background: rgba(163,230,53,0.25);
      color: #fff;
      border-radius: 2px;
      padding: 0 2px;
    }
    .search-result__meta {
      font-size: 12px;
      color: rgba(255,255,255,0.4);
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .search-result__excerpt {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      margin-top: 6px;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .search-result__arrow {
      width: 20px;
      height: 20px;
      color: rgba(255,255,255,0.2);
      flex-shrink: 0;
      align-self: center;
      transition: transform 0.2s, color 0.2s;
    }
    .search-result:hover .search-result__arrow {
      color: rgba(255,255,255,0.5);
      transform: translateX(2px);
    }
    
    /* Media results - visually distinct */
    .search-results__group--media .search-result {
      background: rgba(251,191,36,0.03);
      border-color: rgba(251,191,36,0.08);
    }
    .search-results__group--media .search-result:hover {
      background: rgba(251,191,36,0.06);
      border-color: rgba(251,191,36,0.15);
    }
    
    /* AI Answer View */
    .ai-answer {
      padding: 8px 0;
    }
    .ai-answer__thinking {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px;
      background: rgba(99,102,241,0.08);
      border-radius: 12px;
      margin-bottom: 20px;
    }
    .ai-answer__thinking-dots {
      display: flex;
      gap: 4px;
    }
    .ai-answer__thinking-dots span {
      width: 6px;
      height: 6px;
      background: #818cf8;
      border-radius: 50%;
      animation: thinking-pulse 1.4s ease-in-out infinite;
    }
    .ai-answer__thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
    .ai-answer__thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes thinking-pulse {
      0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
      40% { opacity: 1; transform: scale(1); }
    }
    .ai-answer__thinking-text {
      font-size: 14px;
      color: #a5b4fc;
    }
    .ai-answer__content {
      font-size: 15px;
      line-height: 1.75;
      color: rgba(255,255,255,0.85);
    }
    .ai-answer__content p {
      margin-bottom: 16px;
    }
    .ai-answer__content p:last-child {
      margin-bottom: 0;
    }
    .ai-answer__citation {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      font-size: 10px;
      font-weight: 600;
      background: rgba(99,102,241,0.2);
      color: #a5b4fc;
      border-radius: 4px;
      vertical-align: super;
      margin: 0 2px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .ai-answer__citation:hover {
      background: rgba(99,102,241,0.35);
    }
    .ai-answer__sources {
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .ai-answer__sources-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: 12px;
    }
    .ai-answer__source {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }
    .ai-answer__source:hover {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
    }
    .ai-answer__source-num {
      width: 22px;
      height: 22px;
      background: rgba(99,102,241,0.15);
      color: #a5b4fc;
      font-size: 11px;
      font-weight: 600;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .ai-answer__source-info {
      flex: 1;
      min-width: 0;
    }
    .ai-answer__source-title {
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ai-answer__source-meta {
      font-size: 11px;
      color: rgba(255,255,255,0.4);
    }
    .ai-answer__source-arrow {
      width: 16px;
      height: 16px;
      color: rgba(255,255,255,0.2);
      flex-shrink: 0;
    }
    
    /* Empty / Initial State */
    .search-empty {
      text-align: center;
      padding: 48px 24px;
    }
    .search-empty__icon {
      width: 48px;
      height: 48px;
      color: rgba(255,255,255,0.15);
      margin: 0 auto 16px;
    }
    .search-empty__title {
      font-size: 15px;
      color: rgba(255,255,255,0.5);
      margin-bottom: 8px;
    }
    .search-empty__hint {
      font-size: 13px;
      color: rgba(255,255,255,0.3);
    }
    
    /* Quick tags */
    .search-quick-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 20px;
      justify-content: center;
    }
    .search-quick-tag {
      padding: 10px;
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 100px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .search-quick-tag:hover {
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.8);
      border-color: rgba(255,255,255,0.15);
    }
    
    /* Global search trigger in nav */
    .nav-search-trigger {
      /* ICON ONLY - text hidden */
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 100px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .nav-search-trigger:hover {
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,255,255,0.15);
    }
    .nav-search-trigger svg {
      /* icon-only size */
      width: 18px;
      height: 18px;
      color: rgba(255,255,255,0.5);
    }
    .nav-search-trigger span {
      display: none; /* hidden - icon only */
      font-size: 13px;
      color: rgba(255,255,255,0.4);
    }
    .nav-search-trigger kbd {
      display: none; /* hidden - icon only */
      font-size: 11px;
      color: rgba(255,255,255,0.3);
      background: rgba(255,255,255,0.08);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: var(--font-body);
    }
    .top-nav.scrolled .nav-search-trigger {
      /* ICON ONLY - text hidden */
      background: rgba(0,0,0,0.05);
      border-color: var(--border);
    }
    .top-nav.scrolled .nav-search-trigger svg {
      /* icon-only size */
      color: var(--text-muted);
    }
    .top-nav.scrolled .nav-search-trigger span {
      display: none; /* hidden - icon only */
      color: var(--text-muted);
    }
    .top-nav.scrolled .nav-search-trigger kbd {
      display: none; /* hidden - icon only */
      background: var(--cell-bg);
      color: var(--text-muted);
    }
    @media (max-width: 900px) {
      .nav-search-trigger span,
      .nav-search-trigger kbd {
      display: none; /* hidden - icon only */ display: none; }
      .nav-search-trigger {
      /* ICON ONLY - text hidden */ padding: 10px; }
    }


    /* Page transition — instant cover before JS loads */
    html.ptr-cover::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: #817828;
      pointer-events: none;
    }

    /* B&W scholar photos sitewide */
    .team__card-photo img,
    .gi-sc__photo img,
    .rb-scholar__photo img,
    .rel-card__photo img,
    .pk-expert__photo img,
    .mr-person__photo img,
    .scholar-nav-card-photo {
      filter: saturate(0) brightness(1.1) !important;
      transition: filter 0.5s var(--ease), transform 0.5s var(--ease) !important;
    }
    .team__card:hover .team__card-photo img,
    .gi-sc:hover .gi-sc__photo img,
    .rb-scholar:hover .rb-scholar__photo img,
    .rel-card:hover .rel-card__photo img,
    .pk-expert:hover .pk-expert__photo img,
    .mr-person:hover .mr-person__photo img {
      filter: saturate(0.8) brightness(1.05) !important;
    }
