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

    :root {
      --black: #0F0F0F;
      --grey: #6B7280;
      --bg: #F9F8F6;
      --card-bg: #F0EEE9;
      --dark: #111118;
      --indigo: #2B2D6E;
      --amber: #E8A838;
      --font: 'Source Sans 3', Arial, sans-serif;
      --max: 1200px;
      --pad: 80px;
    }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--black);
      cursor: none;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    #cursor {
      position: fixed;
      width: 10px;
      height: 10px;
      background: var(--indigo);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: width 0.2s, height 0.2s, background 0.2s;
    }

    #cursor.is-hovering {
      width: 28px;
      height: 28px;
      background: var(--amber);
      mix-blend-mode: multiply;
    }

    #transition {
      position: fixed;
      inset: 0;
      background: var(--indigo);
      z-index: 8888;
      transform: translateX(100%);
      transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #transition .xd-mono {
      font-size: 48px;
      font-weight: 600;
      color: #fff;
      letter-spacing: -0.02em;
      opacity: 0;
      transition: opacity 0.2s ease 0.15s;
    }

    #transition.is-active {
      transform: translateX(0);
    }

    #transition.is-active .xd-mono {
      opacity: 1;
    }

    #transition.is-loaded {
      transform: translateX(0);
    }

    #transition.is-loaded .xd-mono {
      opacity: 1;
    }

    #transition.is-leaving {
      transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
      transform: translateX(-100%);
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 32px var(--pad);
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
    }

    nav.is-past-first-window {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 231, 219, 0.34)),
        rgba(238, 231, 219, 0.58);
      border-bottom: 1px solid rgba(255, 255, 255, 0.58);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 36px rgba(15, 15, 15, 0.08);
      backdrop-filter: saturate(180%) blur(22px);
      -webkit-backdrop-filter: saturate(180%) blur(22px);
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .nav-link {
      font-size: 15px;
      font-weight: 400;
      color: var(--black);
      position: relative;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--indigo);
      transition: width 0.3s ease;
    }

    .nav-link:hover::after {
      width: 100%;
    }

    .nav-link:hover {
      color: var(--indigo);
    }

    .nav-logo {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.03em;
    }

    .nav-cta {
      color: var(--black);
      position: relative;
    }

    .social-rail {
      position: fixed;
      right: 28px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }

    .social-rail a {
      font-size: 14px;
      color: var(--grey);
      letter-spacing: 0.08em;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      transition: color 0.2s;
    }

    .social-rail a:hover {
      color: var(--indigo);
    }

    /* bottom nav removed */

    /* Page header */
    .page-header {
      padding: 160px var(--pad) 60px;
      max-width: var(--max);
      margin: 0 auto;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px;
    }

    .page-title {
      font-size: clamp(48px, 7vw, 96px);
      font-weight: 300;
      letter-spacing: -0.04em;
      line-height: 0.95;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.2s forwards;
    }

    .page-header-meta {
      font-size: 14px;
      color: var(--grey);
      line-height: 1.6;
      max-width: 300px;
      padding-bottom: 8px;
      opacity: 0;
      animation: fadeUp 0.7s ease 0.4s forwards;
    }

    /* Category filter */
    .cat-bar {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 var(--pad) 60px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .cat-btn {
      font-family: var(--font);
      font-size: 12px;
      letter-spacing: 0.08em;
      color: var(--grey);
      background: none;
      border: 1px solid rgba(0, 0, 0, 0.15);
      padding: 6px 16px;
      border-radius: 100px;
      cursor: none;
      transition: all 0.2s;
    }

    .cat-btn:hover,
    .cat-btn.active {
      background: var(--indigo);
      border-color: var(--indigo);
      color: #fff;
    }

    /* Cards grid */
    .articles {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 var(--pad) 160px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
    }

    .article-card {
      background: white;
      padding: 48px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      border-radius: 2px;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
      cursor: none;
    }

    .article-card::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--indigo);
      transition: width 0.4s ease;
    }

    .article-card:hover {
      background: var(--card-bg);
    }

    .article-card:hover::before {
      width: 100%;
    }

    /* Back to top */
    .back-to-top {
      position: fixed;
      right: 28px;
      bottom: 96px;
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.14);
      background: rgba(249, 248, 246, 0.92);
      color: var(--indigo);
      font-family: var(--font);
      font-size: 18px;
      line-height: 1;
      cursor: none;
      z-index: 650;
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .back-to-top.is-visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .back-to-top:hover {
      background: rgba(240, 238, 233, 0.96);
      border-color: rgba(0, 0, 0, 0.18);
    }

    .article-tags {
      display: flex;
      gap: 8px;
    }

    .article-tag {
      font-size: 14px;
      letter-spacing: 0.1em;
      color: var(--indigo);
      font-weight: 600;
    }

    .article-title {
      font-size: clamp(20px, 2.2vw, 30px);
      font-weight: 600;
      letter-spacing: -0.01em;
      line-height: 1.2;
      color: var(--black);
      transition: color 0.2s;
    }

    .article-card:hover .article-title {
      color: var(--indigo);
    }

    .article-meta {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .article-date {
      font-size: 13px;
      color: var(--grey);
      letter-spacing: 0.04em;
    }

    .article-time {
      font-size: 13px;
      color: var(--grey);
      letter-spacing: 0.04em;
    }

    /* Reveal */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

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

.delay-80 {
  transition-delay: 0.08s;
}

.delay-160 {
  transition-delay: 0.16s;
}

.delay-240 {
  transition-delay: 0.24s;
}

.delay-320 {
  transition-delay: 0.32s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-480 {
  transition-delay: 0.48s;
}

.delay-560 {
  transition-delay: 0.56s;
}

.is-filtered-out {
  display: none;
}

    @media (max-width: 900px) {
      :root {
        --pad: 24px;
      }

      .articles {
        grid-template-columns: 1fr;
      }

      .social-rail {
        display: none;
      }

      nav {
        padding: 24px var(--pad);
      }
    }
