  html,
    body {
      min-height: 100%;
      margin: 0;
      background: #000;
      overflow-x: hidden;
      overflow-y: auto;
    }

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

    body {
      position: relative;
      color: rgba(255, 255, 255, 0.82);
      -webkit-overflow-scrolling: touch;
      font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }

    canvas#bg,
    canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .gifs {
      position: fixed;
      inset: 0;
      pointer-events: none;
      user-select: none;
      z-index: 1;
    }

    .gif {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: min(28vw, 320px);
      height: auto;
      opacity: 0.18;
      filter: blur(0.3px);
      mix-blend-mode: screen;
    }

    .gif-left {
      left: 3vw;
    }

    .gif-right {
      right: 3vw;
    }

    .hud {
      position: fixed;
      left: 14px;
      top: 14px;
      z-index: 5;
      display: flex;
      gap: 10px;
      align-items: center;
      pointer-events: none;
      user-select: none;
      color: rgba(255, 255, 255, 0.7);
      mix-blend-mode: screen;
      font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #666;
      box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
    }

    .dot.on {
      background: #47ff9b;
      box-shadow: 0 0 18px rgba(71, 255, 155, 0.55);
    }

    .out {
      position: fixed;
      left: 14px;
      right: 14px;
      bottom: 14px;
      max-width: 720px;
      pointer-events: none;
      user-select: none;
      color: rgba(255, 255, 255, 0.5);
      mix-blend-mode: screen;
      white-space: pre-wrap;
      font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      z-index: 3;
    }

    main.page-shell {
      position: relative;
      z-index: 2;
      min-height: 100dvh;
      display: grid;
      padding:
        max(20px, env(safe-area-inset-top))
        12px
        max(24px, env(safe-area-inset-bottom));
    }

    .site-shell {
      width: min(100%, 1000px);
      margin: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
      text-align: center;
    }

    .card {
      width: 100%;
      max-width: 100%;
      letter-spacing: 0.2px;
      text-shadow: 0 0 22px rgba(120, 180, 255, 0.22);
      pointer-events: auto;
    }

    .card h1 {
      margin: 0 0 8px;
      font-size: clamp(28px, 4vw, 44px);
      font-weight: 700;
    }

    .card p {
      width: min(100%, 72ch);
      margin: 10px auto;
      font-size: clamp(16px, 2vw, 20px);
      color: rgba(255, 255, 255, 0.75);
    }

    .card p strong {
      color: rgba(255, 255, 255, 0.92);
    }

    .card .welcome,
    .card .soon {
      color: rgba(255, 255, 255, 0.68);
    }

    .card .copy {
      width: min(100%, 72ch);
      margin: 20px auto 0;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.55);
    }

    .card .copy a {
      color: rgba(255, 255, 255, 0.65);
      text-decoration: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .card .copy a:hover,
    .card .copy a:focus-visible {
      color: rgba(255, 255, 255, 0.85);
      border-bottom-color: rgba(255, 255, 255, 0.45);
      outline: none;
    }

    .tip {
      position: relative;
      display: inline-block;
    }

    .tip .tiptext {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 12px);
      transform: translateX(-50%) translateY(6px);
      width: 280px;
      max-width: min(88vw, 320px);
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(10, 10, 14, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(120, 180, 255, 0.15);
      color: rgba(255, 255, 255, 0.9);
      font: 12.5px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      text-align: justify;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 20;
    }

    .tip .tiptext::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 7px solid transparent;
      border-top-color: rgba(0, 0, 0, 0.7);
    }

    .tip:hover .tiptext,
    .tip:focus-visible .tiptext {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(-2px);
    }

    .project-carousel-wrap {
      --carousel-gap: clamp(12px, 2vw, 22px);
      --visible-cards: 3;
      width: 100%;
      max-width: 100%;
      margin-top: 20px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
    }

    .project-carousel-wrap.is-two-cards {
      --visible-cards: 2;
    }

    .project-carousel-wrap.is-single-card {
      --visible-cards: 1;
    }

    .project-carousel-viewport {
      width: 100%;
      min-width: 0;
      overflow: hidden;
      padding: 18px 0 24px;
      touch-action: pan-y;
    }

    .project-deck {
      display: flex;
      align-items: stretch;
      gap: var(--carousel-gap);
      will-change: transform;
      transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .project-card-literal {
      flex: 0 0 calc(
        (100% - (var(--carousel-gap) * (var(--visible-cards) - 1))) /
        var(--visible-cards)
      );
      min-width: 0;
      min-height: 340px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.92));
      color: #111;
      border: 2px solid rgba(0, 0, 0, 0.15);
      border-radius: 18px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
      overflow: hidden;
      position: relative;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .project-card-literal:hover {
      transform: translateY(-6px);
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    }

    .card-top {
      padding: 14px 18px;
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      background: rgba(0, 0, 0, 0.04);
      font-weight: 700;
    }

    .card-body {
      padding: 22px 18px;
      flex: 1;
    }

    .card-body h2 {
      margin: 0 0 14px;
      font-size: clamp(1.2rem, 2vw, 1.5rem);
      line-height: 1.2;
      word-break: break-word;
    }

    .card-body p {
      width: 100%;
      margin: 0;
      line-height: 1.6;
      font-size: 0.96rem;
      color: #333;
    }

    .card-bottom {
      padding: 18px 18px 22px;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .card-bottom a {
      display: inline-block;
      padding: 10px 14px;
      border-radius: 999px;
      background: #111;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
    }

    .card-bottom a:hover {
      opacity: 0.88;
    }

    .carousel-btn {
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.94);
      color: #111;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .carousel-btn:hover {
      transform: scale(1.05);
    }

    .carousel-btn:disabled,
    .carousel-btn[hidden] {
      display: none !important;
    }

    .project-carousel-wrap.is-static .project-carousel-viewport {
      overflow: visible;
    }

    .project-carousel-wrap.is-static .project-deck {
      transform: none !important;
      transition: none !important;
      justify-content: center;
      flex-wrap: wrap;
    }

    .project-carousel-wrap.is-static .carousel-btn {
      display: none !important;
    }

    footer {
      width: 100%;
      text-align: center;
    }

    footer nav {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
    }

    footer a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
    }

    footer a:hover,
    footer a:focus-visible {
      color: rgba(255, 255, 255, 0.92);
      outline: none;
    }

    @media (max-width: 980px) {
      .project-carousel-wrap {
        --visible-cards: 2;
      }

      .site-shell {
        width: min(100%, 920px);
      }
    }

    @media (max-width: 700px) {
      main.page-shell {
        padding:
          max(16px, env(safe-area-inset-top))
          12px
          max(24px, env(safe-area-inset-bottom));
      }

      .site-shell {
        width: 100%;
      }

      .card {
        text-shadow: 0 0 14px rgba(120, 180, 255, 0.16);
      }

      .card p {
        font-size: 16px;
      }

      .card .soon {
        font-size: 14px;
      }

      .gifs {
        display: none;
      }

      .project-carousel-wrap {
        --visible-cards: 1;
        gap: 8px;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
      }

      .project-carousel-viewport {
        padding: 10px 0 18px;
      }

      .project-card-literal {
        min-height: unset;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
      }

      .project-card-literal:hover {
        transform: none;
      }

      .card-body {
        padding: 18px 16px;
      }

      .card-body h2 {
        font-size: 1.25rem;
      }

      .card-body p {
        font-size: 0.95rem;
        line-height: 1.55;
      }

      .card-bottom {
        padding: 16px;
      }

      .card-bottom a {
        display: block;
        width: 100%;
        text-align: center;
      }

      .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
      }

      .project-carousel-wrap.is-static .project-deck {
        flex-direction: column;
      }

      footer nav {
        flex-direction: column;
        gap: 10px;
      }

      .out {
        display: none;
      }
    }

    @media (max-width: 430px) {
      main.page-shell {
        padding:
          max(14px, env(safe-area-inset-top))
          10px
          max(20px, env(safe-area-inset-bottom));
      }

      .project-carousel-wrap:not(.is-static) {
        grid-template-columns: 1fr auto auto 1fr;
        row-gap: 10px;
      }

      .project-carousel-wrap:not(.is-static) .project-carousel-viewport {
        grid-column: 1 / -1;
        grid-row: 1;
      }

      .project-carousel-wrap:not(.is-static) .carousel-btn.prev {
        grid-column: 2;
        grid-row: 2;
      }

      .project-carousel-wrap:not(.is-static) .carousel-btn.next {
        grid-column: 3;
        grid-row: 2;
      }

      .card h1 {
        font-size: 30px;
      }

      .tip .tiptext {
        width: min(88vw, 320px);
      }
    }

    @media (max-width: 520px) {
      .gif {
        width: min(34vw, 180px);
        opacity: 0.14;
      }
    }