*,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      :root {
        --bg: #f7f4ef;
        --ink: #1a1612;
        --rust: #c1440e;
        --rust-dim: rgba(193, 68, 14, 0.08);
        --muted: #7a7168;
        --card: #ffffff;
        --border: #e4dfd8;
        --ff: "DM Serif Display", serif;
        --fb: "DM Sans", sans-serif;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--fb);
        font-size: 15px;
      }
      a {
        text-decoration: none;
        color: inherit;
      }
      nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(247, 244, 239, 0.94);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6vw;
        height: 62px;
      }
      .nav-logo {
        font-family: var(--ff);
        font-size: 1.3rem;
        letter-spacing: -0.01em;
      }
      .nav-links {
        display: flex;
        gap: 4px;
      }
      .nav-links a {
        font-size: 0.87rem;
        color: var(--muted);
        padding: 6px 13px;
        border-radius: 5px;
        transition: all 0.18s;
      }
      .nav-links a:hover,
      .nav-links a.active {
        color: var(--ink);
        background: rgba(0, 0, 0, 0.05);
      }
      .nav-cta {
        background: var(--ink);
        color: var(--bg);
        font-size: 0.82rem;
        font-weight: 600;
        padding: 8px 18px;
        border-radius: 5px;
        transition: background 0.2s;
        margin-left: 16px;
      }
      .nav-cta:hover {
        background: var(--rust);
      }
      .burger {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 4px;
        width: 30px;
        height: 30px;
      }
      .burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
      }
      .burger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .burger.active span:nth-child(2) {
        opacity: 0;
      }
      .burger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
      .mobile-menu {
        display: flex;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 6vw;
        z-index: 99;
        flex-direction: column;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
      }
      .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
      }
      .mobile-menu a {
        font-size: 0.95rem;
        color: var(--muted);
        padding: 10px 14px;
        border-radius: 6px;
      }
      .mobile-menu a.active,
      .mobile-menu a:hover {
        color: var(--ink);
        background: rgba(0, 0, 0, 0.05);
      }
      .mobile-menu .nav-cta {
        margin: 8px 0 0;
        text-align: center;
      }

      .page-hero {
        padding: 110px 6vw 60px;
        border-bottom: 1px solid var(--border);
      }
      .breadcrumb {
        font-size: 0.78rem;
        color: var(--muted);
        margin-bottom: 16px;
      }
      .breadcrumb span {
        color: var(--rust);
      }
      .page-title {
        font-family: var(--ff);
        font-size: clamp(2.4rem, 5vw, 4rem);
        letter-spacing: -0.02em;
        margin-bottom: 14px;
      }
      .page-title em {
        font-style: italic;
        color: var(--rust);
      }
      .page-sub {
        color: var(--muted);
        font-size: 1rem;
        line-height: 1.7;
        max-width: 520px;
      }
      .sec-eyebrow {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--rust);
        margin-bottom: 10px;
      }
      .sec-title {
        font-family: var(--ff);
        font-size: clamp(1.6rem, 2.8vw, 2.3rem);
        margin-bottom: 28px;
        letter-spacing: -0.02em;
      }

      /* FILTERS */
      .filter-bar {
        padding: 32px 6vw;
        border-bottom: 1px solid var(--border);
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
      }
      .filter-label {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-right: 8px;
      }
      .filter-btn {
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--muted);
        font-family: var(--fb);
        font-size: 0.82rem;
        font-weight: 500;
        padding: 7px 16px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.18s;
      }
      .filter-btn:hover,
      .filter-btn.active {
        background: var(--ink);
        color: var(--bg);
        border-color: var(--ink);
      }

      /* PROJECTS GRID */
      .projects-sec {
        padding: 60px 6vw;
        border-bottom: 1px solid var(--border);
      }
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      .proj-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        transition:
          box-shadow 0.25s,
          transform 0.25s;
      }
      .proj-card:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
      }
      .proj-thumb {
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        position: relative;
      }
      .proj-cat-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: var(--rust);
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }
      .proj-body {
        padding: 20px;
      }
      .proj-name {
        font-family: var(--ff);
        font-size: 1.1rem;
        margin-bottom: 6px;
      }
      .proj-desc {
        font-size: 0.84rem;
        color: var(--muted);
        line-height: 1.6;
        margin-bottom: 14px;
      }
      .proj-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 16px;
      }
      .proj-tech {
        background: var(--rust-dim);
        color: var(--rust);
        border: 1px solid rgba(193, 68, 14, 0.2);
        padding: 3px 9px;
        border-radius: 3px;
        font-size: 0.72rem;
        font-weight: 600;
      }
      .proj-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 14px;
        border-top: 1px solid var(--border);
      }
      .proj-year {
        font-size: 0.75rem;
        color: var(--muted);
      }
      .proj-link {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--rust);
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .proj-link:hover {
        text-decoration: underline;
      }

      /* STATS */
      .stats-band {
        padding: 60px 6vw;
        background: var(--ink);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }
      .st-item {
        text-align: center;
        padding: 0 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
      }
      .st-item:last-child {
        border-right: none;
      }
      .st-num {
        font-family: var(--ff);
        font-size: 2.8rem;
        color: var(--rust);
        margin-bottom: 6px;
      }
      .st-label {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.45);
        line-height: 1.4;
      }

      /* CTA */
      .cta-section {
        padding: 72px 6vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        flex-wrap: wrap;
      }
      .cta-section h2 {
        font-family: var(--ff);
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        margin-bottom: 8px;
      }
      .cta-section p {
        color: var(--muted);
        font-size: 0.95rem;
      }
      .btn-dark {
        background: var(--ink);
        color: var(--bg);
        padding: 13px 26px;
        border-radius: 5px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: background 0.2s;
        display: inline-block;
      }
      .btn-dark:hover {
        background: var(--rust);
      }

      footer {
        text-align: center;
        padding: 28px 6vw;
        color: var(--muted);
        font-size: 0.8rem;
        border-top: 1px solid var(--border);
      }
      footer span {
        color: var(--rust);
      }

      .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition:
          opacity 0.55s ease,
          transform 0.55s ease;
      }
      .reveal.vis {
        opacity: 1;
        transform: none;
      }

      @media (max-width: 900px) {
        .projects-grid {
          grid-template-columns: 1fr 1fr;
        }
        .stats-band {
          grid-template-columns: 1fr 1fr;
        }
        .st-item {
          border-right: none;
          border-bottom: 1px solid rgba(255, 255, 255, 0.08);
          padding: 20px 0;
        }
      }
      @media (max-width: 600px) {
        .projects-grid {
          grid-template-columns: 1fr;
        }
        .burger {
          display: flex;
        }
        .nav-links,
        nav > .nav-cta {
          display: none;
        }
      }