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

    :root {
      --bg: #0c0c0b;
      --bg2: #141417;
      --bg3: #1c1c21;
      --surface: #141413;
      --border: #2a2a28;

      --text: #e8e4dc;
      --muted: #6e6b64;
      --accent: #c8f53a;
      --accent-dim: #8aaa22;
      --serif: 'DM Serif Display', Georgia, serif;
      --mono: 'DM Mono', 'Courier New', monospace;
      --radius: 4px;
      --card-gap: 2px;

      --border2: rgba(255, 255, 255, 0.13);
      --border-hover: rgba(255, 255, 255, 0.14);
      --text: #e8e8ea;
      --muted: #6b6b78;
      --muted2: rgba(232, 230, 225, 0.45);
      --amber: #d4935a;
      --amber-dim: #3a2515;
      --amber-txt: #f0b07a;
      --green: #4caf7a;
      --green-dim: rgba(76, 175, 122, 0.12);
      --accent: #b8ff6f;
      --accent2: #6fb8ff;
      --accent3: #c8b89a;
      --accent-dim: rgba(200, 184, 154, 0.12);
      --mono: 'DM Mono', monospace;
      --mono2: 'Geist Mono', monospace;
      --sans: 'DM Sans', sans-serif;
      --serif: 'Instrument Serif', serif;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--mono);
      font-size: 14px;
      line-height: 1.6;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    /* ── HEADER ────────────────────────────────────────── */
    header {
      padding: 2rem;
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 2rem;
      border-bottom: 1px solid var(--border);
    }

    .header-slug {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .header-sub {
      font-family: var(--mono);
      font-size: 13px;
      color: var(--muted);
      margin-top: 0.8rem;
    }

    /* .header-left {} */

    .header-right {

      /** todo any better way ? **/
      margin-bottom: 30px;
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
      text-align: right;
      flex-shrink: 0;
    }

    .header-right p {
      line-height: 1.5rem;
    }


    /* .header-name em {
      font-style: normal;
      color: var(--accent);
    } */

    .lk-link {
      text-decoration: none;
    }

    .lk-link:hover {
      text-decoration: underline;
    }

    .status-dot {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--green);
      letter-spacing: 0.06em;
    }

    .status-dot::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
    }

    .pulse::before {
      animation: pulse 2.4s ease-in-out infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }


    .site-eyebrow {
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.6rem;
    }

    h1.site-title {
      font-family: var(--serif);
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: 400;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    h1.site-title em {
      font-style: italic;
      color: var(--accent);
    }

    .header-right {
      font-size: 12px;
      color: var(--muted);
      text-align: right;
      flex-shrink: 0;
    }

    .header-right p+p {
      margin-top: 0.25rem;
    }

    /* ── MAIN ──────────────────────────────────────────── */
    main {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem 1rem;
    }

    .projects-list {
      margin-top: 0;
    }

    /* ── FILTER BAR ─────────────────────────────────────── */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 2rem 0 0;
      flex-wrap: wrap;
    }

    .filter-label {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      margin-right: 6px;
    }

    .filter-btn {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      padding: 4px 12px;
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--muted);
      background: var(--surface);
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
      white-space: nowrap;
    }

    .filter-btn:hover {
      border-color: var(--accent-dim);
      color: var(--accent);
    }

    .filter-btn.active {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(184, 255, 111, 0.06);
    }

    .filter-count {
      font-size: 9px;
      opacity: 0.55;
      margin-left: 4px;
    }

    /* hidden cards during filtering */
    .project-card.filtered-out {
      display: none;
    }

    /* category badge on each card */
    .category-badge {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent3);
      opacity: 0.5;
      margin-bottom: -0.4rem;
    }

    /* ── PROJECT CARD ───────────────────────────────────── */
    .project-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      padding: 3.5rem 0;
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    /* projects-list */
    .project-card:not(:last-of-type) {
      border-bottom: 1px solid var(--border);

    }

    .project-card.visible {
      opacity: 1;
      transform: none;
    }

    .project-card:first-child {
      border-top: none;
    }

    /* flip layout on even cards */
    .project-card:nth-child(even) {
      direction: rtl;
    }

    .project-card:nth-child(even)>* {
      direction: ltr;
    }

    /* ── INFO PANE ─────────────────────────────────────── */
    .info-pane {
      padding-right: 3rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 1.2rem;
    }

    .project-card:nth-child(even) .info-pane {
      padding-right: 0;
      padding-left: 3rem;
    }

    .project-index {
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.15em;
    }

    .project-title {
      font-family: var(--serif);
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 400;
      line-height: 1.1;
      letter-spacing: -0.015em;
    }

    .project-link {
      font-family: var(--mono);
      font-size: 11px;
      color: white;
      position: relative;
      top: -10px;
    }

    .project-desc {
      font-size: 13px;
      color: #b0ac9f;
      line-height: 1.75;
      max-width: 38ch;
    }

    .tech-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 0.4rem;
    }

    .stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .chip {
      font-family: var(--mono);
      font-size: 11px;
      padding: 3px 9px;
      border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border2);
      color: #aaaabc;
    }

    .tech-tag {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.07em;
      background: var(--amber-dim);
      color: var(--amber-txt);
      padding: 0.25rem 0.6rem;
      border-radius: 2px;
      white-space: nowrap;
    }

    .tag {
      font-size: 11px;
      letter-spacing: 0.08em;
      padding: 3px 10px;
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--muted);
      background: var(--surface);
      transition: border-color 0.2s, color 0.2s;
    }

    .tag:hover,
    .tech-tag:hover {
      border-color: var(--accent-dim);
      color: var(--accent);
    }

    .status-wip {
      background: #1f1c10;
      color: #8a7840;
    }

    .status-done {
      background: #0f1f14;
      color: #4a8a5a;
    }

    .status-badge {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 0.2rem 0.5rem;
      border-radius: 2px;
    }


    .card-footer-meta {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
    }

    .card-footer {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 0.6rem;
    }

    .repo-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.05em;
      border-bottom: 1px solid transparent;
      transition: color 0.2s, border-color 0.2s;
      padding-bottom: 1px;
    }

    .repo-link:hover {
      color: var(--accent);
      border-color: var(--accent-dim);
    }

    .repo-link svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .repo-btn {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--accent2);
      background: none;
      border: 1px solid rgba(111, 184, 255, 0.2);
      padding: 4px 10px;
      border-radius: 4px;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: background 0.15s;
    }

    .repo-btn:hover {
      background: rgba(111, 184, 255, 0.08);
    }

    .repo-placeholder {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
      font-style: italic;
    }



    /* ── CAROUSEL PANE ─────────────────────────────────── */
    .carousel-pane {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .carousel {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius);
      background: var(--surface);
      border: 1px solid var(--border);
      aspect-ratio: 16 / 10;
    }

    .carousel-track {
      display: flex;
      height: 100%;
      transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel-slide {
      min-width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--muted);
      position: relative;
      overflow: hidden;
      flex-direction: column;
      gap: 0.5rem;
    }

    /* placeholder gradient backgrounds – swap with real <img> tags */
    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      background: inherit;

      border: 1px solid var(--border);
      border-radius: 0;
    }

    /* ── LIGHTBOX ──────────────────────────────────────── */
    .carousel-slide img {
      cursor: pointer;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      background: rgba(0, 0, 0, 0.85);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .lightbox.open {
      opacity: 1;
      pointer-events: auto;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: var(--radius);
      box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .placeholder-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      opacity: 0.6;
    }

    /* Gradient placeholder patterns */
    .grad-a {
      background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 50%, #162032 100%);
    }

    .grad-b {
      background: linear-gradient(135deg, #1e1a0e 0%, #0d0c08 50%, #1a1500 100%);
    }

    .grad-c {
      background: linear-gradient(135deg, #1a0e1a 0%, #110d11 50%, #1a1422 100%);
    }

    .grad-d {
      background: linear-gradient(135deg, #0e1a18 0%, #081110 50%, #0d1a1f 100%);
    }

    .grad-e {
      background: linear-gradient(135deg, #1a140e 0%, #120d08 50%, #1a1108 100%);
    }

    .slide-icon {
      width: 36px;
      height: 36px;
      opacity: 0.18;
    }

    /* ── CAROUSEL CONTROLS ─────────────────────────────── */
    .carousel-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      padding: 0 2px;
    }

    .carousel-btn {
      background: none;
      border: 1px solid var(--border);
      color: var(--muted);
      width: 28px;
      height: 28px;
      border-radius: 2px;
      cursor: pointer;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s, color 0.2s;
      padding: 0;
      line-height: 1;
    }

    .carousel-btn:hover {
      border-color: var(--accent-dim);
      color: var(--accent);
    }

    .carousel-dots {
      display: flex;
      gap: 5px;
      flex: 1;
    }

    .dot {
      width: 20px;
      height: 3px;
      border-radius: 2px;
      background: var(--border);
      cursor: pointer;
      transition: background 0.2s, width 0.25s;
    }

    .dot.active {
      background: var(--accent);
      width: 32px;
    }

    .carousel-counter {
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.08em;
      min-width: 36px;
      text-align: right;
    }

    /* ── FOOTER ────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 2rem;
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    footer p {
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.08em;
    }


    /* --- FOOTER --- */
    .site-footer {
      /* margin-top: 4rem; */
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
    }

    .site-footer-l {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
    }

    .site-footer-r {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
    }

    .site-footer-r em {
      color: var(--accent);
      font-style: normal;
    }

    /* .header-name {
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 300;
      letter-spacing: -0.03em;
      line-height: 1.1;
      font-family: var(--sans);
    } */


    /* ── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 720px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.25rem 2rem;
      }

      .header-right {
        text-align: left;
      }

      main {
        padding: 0 1.25rem 4rem;
      }

      .project-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 0;
      }

      .project-card:nth-child(even) {
        direction: ltr;
      }

      .info-pane {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 1.5rem;
      }

      footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 1.25rem;
      }
    }