  html { scroll-padding-top: 96px; scrollbar-color: #C3CCDA transparent; scrollbar-width: thin; }
  ::selection { background: #F59E0B; color: #0B132B; }
  body { text-rendering: optimizeLegibility; }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #C3CCDA; border-radius: 999px; background-clip: padding-box; border: 2px solid transparent; }
  ::-webkit-scrollbar-thumb:hover { background: #93A1B5; }

  :where(a, button, input, select, textarea):focus-visible { outline: 2px solid #D97706; outline-offset: 2px; }

  /* ---------- Textures ---------- */
  .grid-bg {
    background-image: linear-gradient(to right, rgba(11,19,43,.045) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(11,19,43,.045) 1px, transparent 1px);
    background-size: 44px 44px;
  }
  .grid-bg-dark {
    background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
  }
  .noise-layer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .045; mix-blend-mode: overlay; pointer-events: none;
  }
  .fade-mask {
    -webkit-mask-image: radial-gradient(85% 72% at 50% 20%, #000 30%, transparent 100%);
            mask-image: radial-gradient(85% 72% at 50% 20%, #000 30%, transparent 100%);
  }

  /* ---------- Gradient text ---------- */
  .text-gold-grad {
    background-image: linear-gradient(95deg, #E88A0C 0%, #D97706 50%, #B45309 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #D97706;
  }
  .text-gold-grad-dark {
    background-image: linear-gradient(95deg, #FCD34D 0%, #F59E0B 55%, #EE8F0A 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #F59E0B;
  }

  /* ---------- Buttons ---------- */
  .btn-gold {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(180deg, #FFB53A 0%, #F59E0B 100%); color: #0B132B;
    font-weight: 600; font-size: .875rem; border-radius: .75rem; padding: .72rem 1.25rem;
    line-height: 1.25; text-align: center;
    box-shadow: 0 1px 2px rgba(11,19,43,.22), 0 10px 24px -10px rgba(245,158,11,.5), inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .2s, box-shadow .2s;
  }
  .btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(11,19,43,.2), 0 16px 30px -12px rgba(245,158,11,.6), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .btn-gold:active { transform: translateY(0); }
  .btn-gold::after {
    content: ''; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 34%;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.5) 50%, rgba(255,255,255,0));
    transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
  }
  .btn-gold:hover::after { left: 125%; }

  .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 1px solid rgba(11,19,43,.22); color: #0B132B; font-weight: 600; font-size: .875rem;
    border-radius: .75rem; padding: .68rem 1.25rem; background: rgba(255,255,255,.72);
    box-shadow: 0 1px 2px rgba(11,19,43,.06);
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  }
  .btn-ghost:hover { border-color: #0B132B; background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(11,19,43,.25); }

  /* ---------- Form controls ---------- */
  .input-field {
    width: 100%; border: 1px solid #D5DCE6; border-radius: .7rem;
    padding: .66rem .8rem; font-size: .9rem; color: #0B132B; background: #fff;
    transition: border-color .2s, box-shadow .2s;
  }
  .input-field::placeholder { color: #94A3B8; }
  .input-field:focus { outline: none; border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
  .input-field.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
  select.input-field {
    appearance: none; -webkit-appearance: none; padding-right: 2.3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .65rem center;
  }

  /* ---------- Small components ---------- */
  .tag {
    display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 10px;
    letter-spacing: .05em; color: #64748B; background: #F8FAFC;
    border: 1px solid #E6EAF1; border-radius: 6px; padding: 3px 8px; white-space: nowrap;
  }
  .pill {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1px solid rgba(15,23,42,.08); background: #fff; border-radius: 999px;
    padding: .42rem .8rem; font-size: 11.5px; font-weight: 600; color: #475569;
    box-shadow: 0 1px 2px rgba(11,19,43,.05);
    transition: border-color .2s, color .2s, transform .2s;
  }
  .pill:hover { border-color: rgba(245,158,11,.5); color: #0B132B; transform: translateY(-1px); }
  .pill svg { width: 13px; height: 13px; color: #F59E0B; }

  /* ---------- Cards ---------- */
  .fcard {
    position: relative; background: #fff; border: 1px solid rgba(15,23,42,.07); border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(11,19,43,.04), 0 12px 32px -16px rgba(11,19,43,.10);
    transition: transform .35s cubic-bezier(.22,.68,.31,1), box-shadow .35s, border-color .35s;
  }
  .fcard:hover {
    transform: translateY(-4px); border-color: rgba(245,158,11,.45);
    box-shadow: 0 2px 4px rgba(11,19,43,.05), 0 24px 48px -18px rgba(11,19,43,.22);
  }
  .fcard::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
    background: linear-gradient(140deg, rgba(245,158,11,.55), rgba(245,158,11,.08) 32%, rgba(245,158,11,0) 58%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
  }
  .fcard:hover::after { opacity: 1; }

  .icon-tile {
    display: flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: .9rem; color: #F59E0B;
    background: linear-gradient(150deg, #16223F, #0B132B);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 8px 16px -8px rgba(11,19,43,.5);
    transition: background .3s, color .3s, box-shadow .3s;
  }
  .group:hover .icon-tile {
    background: linear-gradient(150deg, #FFC53D, #F59E0B); color: #0B132B;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 20px -8px rgba(245,158,11,.55);
  }

  /* ---------- Nav ---------- */
  .nlink { position: relative; }
  .nlink::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
    background: linear-gradient(90deg, #F59E0B, #D97706); transition: right .25s ease;
  }
  .nlink:hover::after { right: 0; }
  .nlink.nav-active { color: #0B132B; }
  .nlink.nav-active::after { right: 0; }

  #siteNav { transition: background-color .3s, border-color .3s, box-shadow .3s; }
  #siteNav.is-scrolled {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border-color: rgba(15,23,42,.07); box-shadow: 0 1px 24px -12px rgba(11,19,43,.2);
  }

  #scrollProgress { transform-origin: 0 50%; will-change: transform; }

  /* ---------- Scroll reveal ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.6,.3,1), transform .7s cubic-bezier(.22,.6,.3,1); }
  .reveal.revealed { opacity: 1; transform: translateY(0); }
  .d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; }

  /* ---------- Motion details ---------- */
  .flow-line { stroke-dasharray: 5 7; animation: dashmove 1.4s linear infinite; }
  @keyframes dashmove { to { stroke-dashoffset: -24; } }

  @keyframes pulsering { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); } 70%,100% { box-shadow: 0 0 0 9px rgba(245,158,11,0); } }
  .pulse-dot { animation: pulsering 1.9s ease-out infinite; }

  @keyframes tdot { 0%,80%,100% { opacity:.25; transform: translateY(0); } 40% { opacity:1; transform: translateY(-2px); } }
  .tdot { animation: tdot 1.1s infinite; }
  .tdot:nth-child(2) { animation-delay: .15s; }
  .tdot:nth-child(3) { animation-delay: .3s; }

  .lead-won { background: #ECFDF5 !important; border-color: #A7F3D0 !important; animation: wonpulse 1s ease-out 1; }
  @keyframes wonpulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); } 100% { box-shadow: 0 0 0 12px rgba(16,185,129,0); } }

  @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
  .shake { animation: shake .32s ease 2; }

  .spin { width: 14px; height: 14px; border: 2px solid rgba(245,158,11,.3); border-top-color: #F59E0B; border-radius: 50%; animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .res-row { transition: opacity .5s ease, transform .5s cubic-bezier(.22,.9,.3,1), background-color .2s, border-color .2s; }
  .res-hidden { opacity: 0; transform: translateY(10px); }

  /* Animated score bars (fill when card reveals) */
  .scorebar { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.22,.68,.31,1) .4s; }
  .reveal.revealed .scorebar { width: var(--w); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
  }
