:root {
    --floral-white: #FFFCF2;
    --silver: #CCC5B9;
    --carbon: #252422;
    --paprika: #EB5E28;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Lato', sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background: #252422;
    color: var(--floral-white);
    font-family: var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(235,94,40,0.1), transparent 65%), #201e1c;
  }
  .err-num {
    font-family: var(--serif);
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    color: var(--paprika);
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 40px rgba(235,94,40,0.3);
  }
  h1 {
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 500;
    margin: 16px 0 12px;
  }
  p {
    color: var(--silver);
    font-size: 16px;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 32px;
  }
  .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paprika);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(235,94,40,0.35);
  }
  .btn-home:hover {
    background: #d34c18;
    transform: translateY(-2px);
  }

  /* ============ BESPOKE TIE CURSOR ============ */
  #tieCursor {
    position: fixed; top: 0; left: 0;
    width: 26px; height: 46px;
    pointer-events: none; z-index: 999999;
    opacity: 0; will-change: transform, opacity;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
    transition: opacity 0.2s ease, filter 0.25s ease;
  }
  #tieCursor.visible { opacity: 1 !important; }
  #tieCursor.hovering { filter: drop-shadow(0 4px 14px rgba(235,94,40,0.85)); }
  #tieCursor .tie-svg { width: 100%; height: 100%; overflow: visible; display: block; }
  #tieCursor .cursor-tip {
    position: absolute; top: 0; left: 0; width: 5px; height: 5px;
    background: var(--paprika, #eb5e28); border-radius: 50%;
    transform: translate(-50%, -50%); box-shadow: 0 0 8px var(--paprika, #eb5e28);
  }
  @media (hover: none), (pointer: coarse) {
    #tieCursor { display: none !important; }
  }

