  /* self-hosted so visitors needn't have the fonts installed, and both subset
     to only the glyphs this page renders:
       Adwaita Sans — ASCII + → (U+2192, the link bullet), variable weight axis
         kept (the card uses 400/500/600), ~70KB.
       Adwaita Mono — the logo's block glyphs (space ░▒▓█) only, ~0.8KB; the
         canvas is the one thing that uses it. */
  @font-face {
    font-family: "Adwaita Sans";
    src: url("/fonts/AdwaitaSans.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Adwaita Mono";
    src: url("/fonts/AdwaitaMono.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  :root {
    color-scheme: dark;
    /* everforest */
    --ef-bg0:   #2d353b;
    --ef-panel: #343f44;
    --ef-fg:    #d3c6aa;
    --ef-grey:  #859289;
    --ef-green: #a7c080;
    --ef-aqua:  #83c092;
    --sans: "Adwaita Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Adwaita Mono", ui-monospace, Menlo, Consolas, monospace;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; background: var(--ef-bg0); overflow: hidden; font-family: var(--sans); }
  #gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

  /* tilcayo as a faint, static shadow mask riding over the bouncing logo.
     black-ink SVG at low opacity over the dark everforest reads as a soft
     cast shadow; a hair of blur keeps it "slight". sits above the CRT canvas
     (z-index 0), below the interactive card (z-index 1). */
  .tilca {
    position: fixed; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .tilca img {
    width: min(75vw, 800px); height: auto;
    opacity: 0;                    /* revealed on canvas-ready */
    filter: blur(0.8px);
    mix-blend-mode: multiply;      /* darken the logo beneath, like a real shadow */
    transform: translateY(0%);     /* roughly centered */
    /* feather the square edges away so only the face emerges from the dark —
       ears/whiskers dissolve instead of ending in a hard crop */
    -webkit-mask-image: radial-gradient(ellipse 58% 64% at 50% 46%, #000 28%, transparent 76%);
    mask-image: radial-gradient(ellipse 58% 64% at 50% 46%, #000 28%, transparent 76%);
  }

  /* intro: the canvas paints its first frame UNDERNEATH a black cover; main.js
     adds `ready` once that frame is actually on screen, which fades the black
     out and then sequences the cat and card in. This way the fade can never
     reveal a blank/unpainted canvas, however long init takes. */
  .boot {
    position: fixed; inset: 0; z-index: 10;
    background: #000; pointer-events: none;
    opacity: 1; transition: opacity 0.9s ease;
  }
  .card { opacity: 0; }            /* revealed on canvas-ready */

  body.ready .boot { opacity: 0; }
  body.ready .tilca img { animation: cat-in 1.8s ease 0.3s both; }
  body.ready .card { animation: card-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s both; }

  @keyframes cat-in    { from { opacity: 0; } to { opacity: 0.12; } }
  @keyframes card-drop {
    from { opacity: 0; transform: translateY(-44px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* centered overlay; lets the canvas sit untouched behind, card is interactive */
  .overlay {
    position: fixed; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; pointer-events: none;
  }

  /* noctalia-style translucent card */
  .card {
    pointer-events: auto;
    width: min(92vw, 430px);
    padding: 34px 38px 24px;
    background: rgba(45, 53, 59, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(211, 198, 170, 0.14);
    border-radius: 20px;
    box-shadow:
      0 20px 55px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--ef-fg);
    font: 15px/1.6 var(--sans);
  }

  .card h1 {
    margin: 0;
    font: 600 2.3rem/1 var(--sans);
    letter-spacing: -0.02em;
    color: var(--ef-fg);
  }
  .tagline {
    margin: 6px 0 20px;
    font: 0.82rem/1.2 var(--sans);
    letter-spacing: 0.04em;
    color: var(--ef-grey);
  }
  .card p { margin: 0 0 14px; color: rgba(211, 198, 170, 0.9); }

  .links { list-style: none; margin: 18px 0 0; padding: 0; }
  .links li { margin: 0; }
  .links a {
    display: inline-flex; align-items: baseline; gap: 0.5ch;
    padding: 7px 0;
    color: var(--ef-green);
    text-decoration: none;
    font: 500 0.95rem/1.3 var(--sans);
    transition: color 0.15s ease;
  }
  .links a::before { content: "→"; color: var(--ef-grey); transition: transform 0.15s ease, color 0.15s ease; }
  .links a:hover { color: var(--ef-aqua); }
  .links a:hover::before { color: var(--ef-aqua); transform: translateX(2px); }
  .links a:focus-visible { outline: 2px solid var(--ef-green); outline-offset: 3px; border-radius: 3px; }

  .card footer {
    margin-top: 22px; padding-top: 14px;
    border-top: 1px solid rgba(211, 198, 170, 0.1);
    font: 0.75rem/1.2 var(--sans);
    letter-spacing: 0.06em;
    color: var(--ef-grey);
  }
  .card footer p { margin: 0; color: inherit; }

  @media (max-width: 420px) {
    .card { padding: 26px 24px 20px; }
    .card h1 { font-size: 2rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    .boot { display: none; }
    .tilca img, body.ready .tilca img { animation: none; opacity: 0.12; }
    .card, body.ready .card { animation: none; opacity: 1; }
  }
