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

    :root {
      --bg: #03080f;
      --cream: #f0fafa;
      --dim: #4a9aaa;
      --accent: #5eead4;
    }

    html, body {
      width: 100%; height: 100%;
      background: var(--bg);
      overflow: hidden;
      cursor: none;
    }

    /* ── 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;
    }

    /* ── Ambient blob ── */
    .blob {
      position: fixed;
      width: 700px; height: 700px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(20,180,180,0.28) 0%, rgba(10,80,120,0.18) 50%, transparent 70%);
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      animation: drift 18s ease-in-out infinite alternate;
      pointer-events: none;
      z-index: 0;
      filter: blur(40px);
    }
    .blob2 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(10,60,120,0.35) 0%, transparent 70%);
      animation-duration: 24s;
      animation-direction: alternate-reverse;
    }
    @keyframes drift {
      0%   { transform: translate(-60%, -55%) scale(1);   }
      33%  { transform: translate(-40%, -50%) scale(1.1); }
      66%  { transform: translate(-55%, -45%) scale(0.95);}
      100% { transform: translate(-45%, -55%) scale(1.05);}
    }

    /* ── Thin horizontal rule ── */
    .rule {
      position: fixed;
      bottom: 172px; right: 60px;
      width: 0;
      height: 1px;
      background: linear-gradient(to left, var(--accent), transparent);
      z-index: 10;
      animation: expandRule 1.4s 0.4s cubic-bezier(0.77,0,0.175,1) forwards;
    }
    @keyframes expandRule {
      to { width: 420px; }
    }

    /* ── Main wordmark ── */
    .wordmark {
      position: fixed;
      bottom: 78px; right: 52px;
      z-index: 10;
      text-align: right;
      line-height: 1;
    }

    .wordmark__grecu {
      display: block;
      font-family: 'Jost', sans-serif;
      font-style: normal;
      font-weight: 800;
      font-size: clamp(110px, 14vw, 210px);
      color: var(--cream);
      letter-spacing: -0.04em;
      opacity: 0;
      transform: translateY(40px);
      animation: riseIn 1.1s 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
      text-shadow: 0 0 80px rgba(94,234,212,0.28);
    }

    .wordmark__digital {
      display: block;
      font-family: 'Jost', sans-serif;
      font-weight: 100;
      font-size: clamp(18px, 2.2vw, 34px);
      color: var(--accent);
      letter-spacing: 0.55em;
      text-transform: uppercase;
      margin-top: -6px;
      padding-right: 4px; /* compensate letter-spacing on last char */
      opacity: 0;
      transform: translateY(14px);
      animation: riseIn 1s 1s cubic-bezier(0.22,1,0.36,1) forwards;
    }

    @keyframes riseIn {
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── Terminal prompt (top-left trigger) ── */
    #term-prompt {
      position: fixed;
      top: 36px; left: 44px;
      z-index: 500;
      font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
      font-size: 12px;
      letter-spacing: 0.04em;
      color: var(--accent);
      cursor: none;
      opacity: 0;
      display: none;
      align-items: center;
      gap: 0;
      animation: fadeIn 1s 1.4s ease forwards;
      user-select: none;
    }
    #term-prompt .tp-user { color: #86efac; }
    #term-prompt .tp-at   { color: rgba(94,234,212,0.45); }
    #term-prompt .tp-host { color: var(--accent); }
    #term-prompt .tp-path { color: rgba(94,234,212,0.55); }
    #term-prompt .tp-sym  { color: rgba(255,255,255,0.7); margin: 0 5px 0 3px; }
    #term-prompt .tp-cursor {
      display: inline-block;
      width: 7px; height: 13px;
      background: var(--accent);
      margin-left: 1px;
      vertical-align: middle;
      animation: termBlink 1.1s step-end infinite;
    }
    #term-prompt:hover .tp-cursor { animation-play-state: paused; }

    /* pulse glow on the whole prompt */
    #term-prompt {
      filter: drop-shadow(0 0 6px rgba(94,234,212,0));
      transition: filter 0.3s ease, color 0.2s;
    }
    #term-prompt:hover {
      filter: drop-shadow(0 0 10px rgba(94,234,212,0.5));
    }
    @keyframes termBlink  { 0%,100%{opacity:1} 50%{opacity:0} }
    @keyframes termPulse  {
      0%,100% { filter: drop-shadow(0 0 4px rgba(94,234,212,0.2)); }
      50%     { filter: drop-shadow(0 0 12px rgba(94,234,212,0.55)); }
    }
    #term-prompt { animation: termPulse 3s 2.5s ease-in-out infinite; transition: opacity 0.8s ease, filter 0.3s ease; }

    @keyframes fadeIn { to { opacity: 1; } }

    /* ── Terminal window overlay ── */
    #term-overlay {
      position: fixed; inset: 0;
      z-index: 400;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(3,8,15,0.82);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
    }
    #term-overlay.open { opacity: 1; pointer-events: all; }

    #term-window {
      width: min(720px, 92vw);
      height: min(480px, 80vh);
      background: #0d1117;
      border: 1px solid rgba(94,234,212,0.22);
      border-radius: 10px;
      box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(94,234,212,0.06);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: translateY(18px) scale(0.97);
      transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
      font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    }
    #term-overlay.open #term-window { transform: translateY(0) scale(1); }

    /* title bar */
    #term-titlebar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: #161b22;
      border-bottom: 1px solid rgba(94,234,212,0.1);
      flex-shrink: 0;
    }
    #term-titlebar > span:first-child {
      font-size: 11px; letter-spacing: 0.08em;
      color: rgba(94,234,212,0.4);
    }
    #term-close {
      font-size: 13px;
      color: rgba(94,234,212,0.4);
      cursor: none;
      transition: color 0.2s;
      line-height: 1;
      padding: 2px 4px;
    }
    #term-close:hover { color: rgba(94,234,212,0.9); }

    /* output area */
    #term-output {
      flex: 1;
      overflow-y: auto;
      padding: 16px 20px 8px;
      font-size: 12.5px;
      line-height: 1.75;
      color: rgba(220,240,235,0.85);
      scroll-behavior: smooth;
    }
    #term-output::-webkit-scrollbar { width: 4px; }
    #term-output::-webkit-scrollbar-track { background: transparent; }
    #term-output::-webkit-scrollbar-thumb { background: rgba(94,234,212,0.2); border-radius: 2px; }

    .t-line  { display: block; white-space: pre-wrap; word-break: break-word; }
    .t-cmd   { color: #f0fafa; }
    .t-prompt-echo .t-user { color: #86efac; }
    .t-prompt-echo .t-host { color: var(--accent); }
    .t-prompt-echo .t-path { color: rgba(94,234,212,0.55); }
    .t-prompt-echo .t-sym  { color: rgba(255,255,255,0.65); }
    .t-accent  { color: var(--accent); }
    .t-green   { color: #86efac; }
    .t-dim     { color: rgba(94,234,212,0.45); }
    .t-warn    { color: #fbbf24; }
    .t-err     { color: #f87171; }
    .t-head    { color: #f0fafa; font-weight: 600; letter-spacing: 0.06em; }
    .t-rule    { color: rgba(94,234,212,0.25); }
    .t-gap     { display: block; height: 6px; }

    /* input row */
    #term-input-row {
      display: flex;
      align-items: center;
      padding: 8px 20px 14px;
      gap: 8px;
      border-top: 1px solid rgba(94,234,212,0.08);
      flex-shrink: 0;
    }
    #term-input-row .t-input-prompt {
      font-size: 12.5px;
      white-space: nowrap;
      color: var(--accent);
      flex-shrink: 0;
    }
    #term-input-row .t-input-prompt .ti-user { color: #86efac; }
    #term-input-row .t-input-prompt .ti-dim  { color: rgba(94,234,212,0.45); }
    #term-input-row .t-input-prompt .ti-path { color: rgba(94,234,212,0.55); }
    #term-input-row .t-input-prompt .ti-sym  { color: rgba(255,255,255,0.65); }
    #term-input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-family: inherit;
      font-size: 12.5px;
      color: #f0fafa;
      caret-color: var(--accent);
      letter-spacing: 0.02em;
    }

    /* ── Mobile ── */
    @media (max-width: 600px) {
      #term-window { height: min(520px, 88vh); border-radius: 8px; }
      #term-output  { font-size: 11.5px; padding: 12px 14px 6px; }
      #term-input   { font-size: 11.5px; }
      #term-input-row { padding: 6px 14px 12px; }
      #term-titlebar span { font-size: 10px; }
    }

    /* ── Custom cursor ── */
    #cursor-dot,
    #cursor-ring {
      position: fixed;
      top: 0; left: 0;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
    }
    #cursor-dot {
      width: 5px; height: 5px;
      background: var(--cream);
    }
    #cursor-ring {
      width: 32px; height: 32px;
      border: 1px solid rgba(94,234,212,0.65);
      transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    }

    /* ── Game overlay ── */
    #game-overlay {
      position: fixed; inset: 0;
      z-index: 200;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(3,8,15,0.97);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }
    #game-overlay.active { opacity: 1; pointer-events: all; }
    #game-canvas { display: block; }
    #game-close {
      position: absolute; top: 28px; right: 36px;
      font-family: 'Jost', sans-serif; font-weight: 200;
      font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
      color: rgba(94,234,212,0.65); cursor: none; transition: color 0.2s;
    }
    #game-close:hover { color: rgba(94,234,212,1); }
    .click-ripple {
      position: fixed; width: 44px; height: 44px; border-radius: 50%;
      border: 1px solid rgba(94,234,212,0.85);
      transform: translate(-50%,-50%) scale(0);
      pointer-events: none; z-index: 9998;
      animation: rippleOut 0.55s ease-out forwards;
    }
    @keyframes rippleOut { to { transform: translate(-50%,-50%) scale(3); opacity: 0; } }

    /* ── Quote rotator ── */
    #quote-bar {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      z-index: 50;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-top: 1px solid rgba(94,234,212,0.18);
      background: linear-gradient(to bottom, transparent, rgba(3,8,15,0.92));
      pointer-events: none;
      overflow: hidden;
    }
    .quote-slot {
      position: absolute;
      display: flex;
      align-items: center;
      gap: 18px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.9s ease, transform 0.9s ease;
    }
    .quote-slot.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .quote-slot.exit {
      opacity: 0;
      transform: translateY(-10px);
    }
    .quote-text {
      font-family: 'Jost', sans-serif;
      font-weight: 200;
      font-style: italic;
      font-size: 11.5px;
      letter-spacing: 0.04em;
      color: rgba(214,240,240,0.85);
    }
    .quote-attr {
      font-family: 'Jost', sans-serif;
      font-weight: 200;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(94,234,212,0.75);
    }
    .quote-divider {
      width: 20px; height: 1px;
      background: rgba(94,234,212,0.45);
      flex-shrink: 0;
    }


    /* ── Scanline flicker ── */
    .scanline {
      position: fixed;
      inset: 0;
      background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.03) 3px,
        rgba(0,0,0,0.03) 4px
      );
      pointer-events: none;
      z-index: 99;
    }