      /* ==================================================
       Base
    ================================================== */

      :root {
        color-scheme: dark;
        font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
        font-synthesis: none;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        --paper: #f1efe9;
        --ink: #171715;
        --muted: rgba(241, 239, 233, 0.58);
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        height: 100%;
        overflow: hidden;
        background: var(--ink);
      }


      /* ==================================================
       Hero
    ================================================== */

      .hero {
        position: relative;
        height: 100vh;
        height: 100dvh;
        z-index: 1;
        overflow: hidden;
      }

      #webgl {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        cursor: grab;
        touch-action: none;
      }

      #webgl.is-dragging {
        cursor: grabbing;
      }

      #webgl.is-clickable {
        cursor: pointer;
      }


      /* ==================================================
       Category page
    ================================================== */

      html.category-open,
      html.category-open body {
        overflow: hidden;
      }

      #category-page {
        position: fixed;
        inset: 0;
        z-index: 10000;
        overflow-y: auto;
        background: var(--paper);
        color: var(--ink);
      }

      #category-page[hidden] {
        display: none;
      }

      .category-header {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 1rem 3.5vw;
        background: rgba(241, 239, 233, 0.92);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(23, 23, 21, 0.12);
      }

      .category-header h2 {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: 0.04em;
      }

      .category-header p {
        margin: 0.15rem 0 0;
        color: #77756f;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
      }

      #category-close {
        padding: 0.6rem 1rem;
        border: 1px solid rgba(23, 23, 21, 0.3);
        border-radius: 999px;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        cursor: pointer;
      }

      #category-close:hover {
        background: var(--ink);
        color: var(--paper);
      }

      #category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        padding: 1.5rem 3.5vw 4rem;
      }

      #category-grid figure {
        margin: 0;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: #dcd9d1;
      }

      #category-grid img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      #category-grid figure {
        cursor: zoom-in;
      }

      #lightbox {
        position: fixed;
        inset: 0;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(10, 10, 9, 0.94);
        touch-action: pan-y;
      }

      #lightbox[hidden] {
        display: none;
      }

      #lightbox-image {
        max-width: 92vw;
        max-height: 88vh;
        object-fit: contain;
        user-select: none;
      }

      #lightbox button {
        position: absolute;
        border: 0;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        cursor: pointer;
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        font-size: 1.8rem;
        line-height: 1;
      }

      #lightbox button:hover {
        background: rgba(255, 255, 255, 0.28);
      }

      #lightbox-close {
        top: 1rem;
        right: 1rem;
      }

      #lightbox-prev {
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
      }

      #lightbox-next {
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
      }

      #lightbox-counter {
        position: absolute;
        bottom: 1rem;
        left: 0;
        right: 0;
        margin: 0;
        text-align: center;
        color: #bbb;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
      }

      @media (max-width: 600px) {
        #category-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 0.4rem;
          padding: 1rem 1rem 3rem;
        }

        .category-header {
          gap: 1rem;
          padding: 0.75rem 1rem;
        }
      }

      .hero-meta {
        position: fixed;
        inset: 2rem 3.5vw auto;
        z-index: 3;
        display: flex;
        justify-content: space-between;
        color: var(--paper);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        pointer-events: none;
      }

      .meta-year {
        color: var(--muted);
      }

      #category-select {
        pointer-events: auto;
        max-width: 50vw;
        padding: 0.45rem 2rem 0.45rem 0.9rem;
        border: 1px solid rgba(241, 239, 233, 0.35);
        border-radius: 999px;
        background-color: rgba(23, 23, 21, 0.7);
        color: var(--paper);
        font: inherit;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        cursor: pointer;
      }

      #category-select:hover,
      #category-select:focus-visible {
        border-color: var(--paper);
        outline: none;
      }

      .scroll-cue {
        position: fixed;
        right: 3.5vw;
        bottom: 2rem;
        z-index: 3;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0.5rem 0;
        border: 0;
        background: none;
        font: inherit;
        cursor: pointer;
        color: var(--paper);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
      }

      .scroll-cue::before {
        content: "";
        width: 2.25rem;
        height: 1px;
        background: currentColor;
        transform-origin: left;
        animation: cue-pulse 1.6s ease-in-out infinite alternate;
      }

      @keyframes cue-pulse {
        to {
          transform: scaleX(0.45);
          opacity: 0.45;
        }
      }

      /* ==================================================
       Content
    ================================================== */

      .content {
        position: relative;
        z-index: 4;
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 8rem 8vw;
        /* background: var(--paper); */
        color: var(--ink);
      }

      .content-inner {
        width: min(100%, 960px);
      }

      .content-inner .eyebrow {
        color: #77756f;
      }

      .content-inner h2 {
        margin: 0;
        font-size: clamp(2.3rem, 6vw, 5.5rem);
        font-weight: 500;
        letter-spacing: 0.025em;
        line-height: 1.3;
      }

      .content-description {
        max-width: 34rem;
        margin: 2rem 0 0;
        color: #65635e;
        font-size: 0.95rem;
        line-height: 2;
      }

      .category-list {
        display: flex;
        gap: 0.65rem;
        margin-top: 2rem;
      }

      .category-list span {
        padding: 0.65rem 1rem;
        border: 1px solid rgba(23, 23, 21, 0.25);
        border-radius: 999px;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
      }


      /* ==================================================
       Loading
    ================================================== */

      #loading {
        position: fixed;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        background: var(--ink);

        z-index: 9999;

        transition: opacity 0.8s ease;
      }

      #loading.hide {
        opacity: 0;
        pointer-events: none;
      }

      .loading-title {
        margin: 0;

        font-size: clamp(1.5rem, 30vw, 2.2rem);
        font-weight: 400;
        letter-spacing: -0.06em;
        white-space: nowrap;

        color: transparent;
        background: linear-gradient(90deg,
            var(--paper) 0%,
            var(--paper) var(--loading-progress, 0%),
            #d9d9d9 var(--loading-progress, 0%),
            #d9d9d9 100%);
        background-clip: text;
        -webkit-background-clip: text;
      }

      @media (max-width: 600px) {
        .hero-meta {
          inset: 1.25rem 1.25rem auto;
          font-size: 0.58rem;
        }

        .meta-count {
          max-width: 7rem;
          text-align: right;
        }

        .scroll-cue {
          right: 1.25rem;
          bottom: 1.25rem;
        }

        .content {
          padding: 6rem 1.5rem;
        }
      }

      @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          scroll-behavior: auto !important;
        }
      }