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

  body {
    background: #000;
    width: 100vw;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    font-family: 'Hahmlet', serif;
    cursor: none;
    touch-action: none;
  }

  #bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
  }

  #overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
    pointer-events: none;
  }

  #ambient-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
  }

  #vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.72) 100%);
    pointer-events: none;
    z-index: 4;
  }

  #scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 5;
  }

  #cursor {
    position: fixed;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  #cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0.5px solid rgba(255,255,255,0.2);
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
  }

  #logo-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-block;
    z-index: 6;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: perspective(900px) translate3d(-50%, -50%, 0);
    transition: transform 0.08s ease-out;
    will-change: transform;
    opacity: 0;
    animation: logoReveal 1.2s cubic-bezier(0.2,0.8,0.3,1) 0.3s forwards;
  }

  #logo-img {
    width: clamp(520px, 84vw, 1120px);
    max-height: 86vh;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    mix-blend-mode: screen;
    transition: filter 0.3s;
  }

  #info {
    position: fixed;
    top: 2.2rem; right: 2.4rem;
    max-width: 260px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 2s 1.5s forwards;
  }

  #info p {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255,255,255,0.32);
    letter-spacing: 0.01em;
  }

  #social-links {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 18px;
  }

  #social-links a {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.34);
    transition: color 0.25s ease, transform 0.25s ease;
  }

  #social-links a:hover,
  #social-links a:focus-visible {
    color: rgba(255,255,255,0.72);
    transform: translateY(-1px);
  }

  #social-links svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #type-hint {
    position: fixed;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s 2.2s forwards;
    white-space: nowrap;
  }

  body.touch-device #type-hint {
    display: none !important;
  }

  body.mobile-layout #type-hint {
    display: none !important;
  }

  #type-hint span {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.22);
    text-transform: uppercase;
    font-weight: 300;
  }

  #typed-display {
    margin-top: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    min-height: 14px;
  }

  .typed-correct { color: rgba(255,255,255,0.5) !important; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes logoReveal {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes flashLogo {
    0%   { filter: brightness(1); }
    40%  { filter: brightness(1.6); }
    100% { filter: brightness(1); }
  }

  .logo-flash #logo-img {
    animation: flashLogo 0.4s ease-out !important;
  }

  @media (max-width: 900px) {
    #info {
      top: auto;
      right: 1.4rem;
      left: 1.4rem;
      bottom: 5.7rem;
      max-width: none;
    }

    #type-hint {
      display: none !important;
    }
  }

  @media (hover: none), (pointer: coarse) {
    body {
      cursor: auto;
    }

    #scene {
      padding: 0;
    }

    #cursor,
    #cursor-ring {
      display: none;
    }

    #logo-img {
      width: min(94vw, 1040px);
    }

    #info {
      bottom: calc(6.6rem + env(safe-area-inset-bottom, 0px));
    }

    #info p {
      font-size: 10px;
      line-height: 1.75;
      color: rgba(255,255,255,0.42);
    }

    #social-links {
      justify-content: flex-start;
    }

    #type-hint {
      display: none;
    }

    #type-hint span,
    #typed-display {
      letter-spacing: 0.22em;
    }

    #typed-display {
      min-height: 28px;
      line-height: 1.6;
    }
  }

  @media (max-width: 560px) {
    #logo-img {
      width: min(94vw, 840px);
    }

    #info {
      right: 1rem;
      left: 1rem;
      bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px));
    }

    #info p {
      font-size: 9.5px;
      line-height: 1.68;
    }

    #type-hint {
      width: calc(100vw - 2rem);
    }
  }
