*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #0d0d0d;
    --fg: #fafaf8;
    --accent: #7c5cfc;
    --cursor-size: 12px;
    --cursor-ring-size: 40px;
  }

  /* Hide native cursor on desktop */
  @media (pointer: fine) {
    * { cursor: none !important; }
  }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Helvetica Neue', sans-serif;
    min-height: 200vh;
    overflow-x: hidden;
  }

  /* ─── OKAMI GRAIN OVERLAY ─── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: overlay;
  }

  /* ─── BOKEH FOCAL RING CURSOR ─── */
  #focal-indicator {
    position: fixed;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%,-50%);
    transition: left 0.05s, top 0.05s;
  }
  @keyframes fspin { to { rotate: 360deg; } }

  /* ─── CURSOR STATES (set via JS on body) ─── */
  /* Legacy blend zone support */
  body.cursor-blend #focal-indicator {
    opacity: 0.4;
    mix-blend-mode: difference;
  }

  /* ─── PAGE CONTENT ─── */
  .page {
    padding: 8vw;
  }

  h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
    line-height: 1;
  }

  .demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
  }

  /* ─── MAGNETIC ELEMENTS ─── */
  /*
    .magnetic class = element attracts the cursor.
    JS calculates distance and moves cursor toward center.
    Also moves the element slightly toward the cursor (full magnet).
  */
  .magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    border: 1px solid rgba(250,250,248,0.2);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
    user-select: none;
  }

  .magnetic:hover {
    border-color: var(--accent);
  }

  /* Inner text of magnetic button also moves (2nd axis) */
  .magnetic .magnetic-text {
    display: block;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  }

  /* ─── IMAGE AREA (blend mode demo) ─── */
  .blend-zone {
    height: 50vh;
    background: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
  }

  .blend-zone h2 {
    font-size: clamp(2rem, 6vw, 5rem);
    color: var(--bg);
    font-weight: 900;
  }
