      :root {
        --blue: #013fa7;
        --light-gray: #f2f2f2;
        --card-gray: #d9d9d9;
        --image-container-border: #cccccc;
        --image-container-fill: #f2f2f2;
        --white: #ffffff;
        --black: #1c1c1c;
        --max-width: 1440px;
        --content-width: 90%;
        --section-gap: 112px;
        --radius: 8px;

        /* Header spacing controls */
        --nav-gap: 36px;
        --nav-gap-large: 64px;

        /* Header arrow controls for Resume + LinkedIn */
        --external-arrow-size: 16px;
        --external-arrow-scale-x: 1.2;

        /* Offset used when clicking anchor links like “Projects” */
        --featured-anchor-offset: 76px;

        /* Shared image height for featured and recent cards */
        --project-image-height: 390px;

        /* Smaller body scale used for secondary labels and hover CTA */
        --body-small-size: 14px;

        /* Mobile nav backdrop when hamburger menu is open */
        --nav-menu-overlay-color: rgba(0, 0, 0, 0.3);
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
        overflow-x: clip;
      }

      body {
        margin: 0;
        overflow-x: clip;
        max-width: 100%;
        font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
        font-size: 16px;
        color: var(--black);
        background: var(--light-gray);
      }

      body.preload-ui .hero-copy,
      body.preload-ui .topbar {
        opacity: 0;
      }

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

      .container {
        width: min(var(--max-width), var(--content-width));
        max-width: 100%;
        margin: 0 auto;
      }

      img,
      video {
        max-width: 100%;
      }

      .topbar,
      .footer {
        background: var(--blue);
        color: var(--white);
      }

      .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transform: translateY(0);
        opacity: 1;
        transition: transform 260ms ease, opacity 260ms ease;
      }

      .topbar.is-hidden {
        transform: translateY(-100%);
        opacity: 0;
      }

      .topbar-inner,
      .footer-inner {
        width: min(100%, calc(100% - 24px));
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 10px;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;
      }

      .topbar,
      .footer,
      .topbar .brand,
      .topbar .nav a,
      .footer .brand,
      .footer .nav a,
      .footer-note,
      .copyright {
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      .brand {
        font-weight: 500;
      }

      .nav {
        display: flex;
        gap: var(--nav-gap);
        align-items: center;
      }

      .topbar .nav .external:first-of-type {
        margin-left: var(--nav-gap-large);
      }

      .nav a {
        opacity: 0.95;
      }

      .external {
        display: inline-flex;
        align-items: center;
      }

      .external-arrow {
        width: var(--external-arrow-size);
        height: var(--external-arrow-size);
        margin-left: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
      }

      .external-arrow img {
        width: 100%;
        height: 100%;
        display: block;
      }

      .menu-toggle {
        display: none;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        padding: 8px;
        margin: -8px;
        flex-shrink: 0;
      }

      .menu-toggle-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: transform 200ms ease, opacity 200ms ease;
      }

      body.nav-menu-open {
        overflow: hidden;
      }

      .nav-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        border: 0;
        padding: 0;
        margin: 0;
        background: var(--nav-menu-overlay-color);
        cursor: pointer;
        opacity: 0;
        transition: opacity 220ms ease, visibility 220ms ease;
        visibility: hidden;
      }

      body.nav-menu-open .nav-menu-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
      }

      .hero {
        background: var(--blue);
        color: var(--white);
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 72px 0;
        padding-top: 118px;
      }

      .hero-content {
        max-width: 90%;
      }

      .hero h1 {
        margin: 0 0 36px;
        font-size: 48px;
        line-height: 1.12;
        font-weight: 500;
        letter-spacing: 0;
      }

      .hero-title {
        display: block;
        max-width: min(720px, 100%);
      }

      .hero-phrase {
        display: inline;
        white-space: nowrap;
      }

      .hero-copy {
        margin: 0 0 18px;
        max-width: 760px;
        font-size: 18px;
        line-height: 1.55;
        font-weight: 400;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 500ms ease, transform 500ms ease;
      }

      .hero-copy.is-visible,
      .topbar.is-visible-on-load {
        opacity: 1;
        transform: translateY(0);
      }

      main {
        padding: 84px 0 72px;
      }

      section {
        margin-bottom: var(--section-gap);
      }

      #projects,
      #archive,
      #home {
        scroll-margin-top: var(--featured-anchor-offset);
      }

      #featured-projects {
        scroll-margin-top: var(--featured-anchor-offset);
      }

      h2 {
        margin: 0 0 24px;
        color: var(--blue);
        font-size: 32px;
        line-height: 1.2;
        font-weight: 400;
      }

      .projects-section-header h2 {
        margin-bottom: 0;
      }

      .projects-section-header {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 32px;
      }

      .project-tag-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .project-tag {
        appearance: none;
        border: 1px solid var(--blue);
        background: transparent;
        color: var(--blue);
        border-radius: 100px;
        padding: 10px 16px;
        font-family: inherit;
        font-size: var(--body-small-size);
        line-height: 1;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        cursor: pointer;
        transition:
          background 220ms ease,
          color 220ms ease,
          border-color 220ms ease;
      }

      .project-tag:hover,
      .project-tag:focus-visible {
        background: rgba(1, 63, 167, 0.08);
        outline: none;
      }

      .project-tag.is-active {
        background: var(--blue);
        border-color: var(--blue);
        color: var(--white);
      }

      .featured-item.is-filter-hidden {
        display: none;
      }

      section.is-filter-empty {
        display: none;
      }

      .subtitle {
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
      }

      .grid {
        display: grid;
        gap: 20px;
      }

      .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 65px;
        align-items: start;
      }

      .featured-item {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
      }

      .featured-item.reveal-card,
      .recent-item.reveal-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 600ms ease, transform 600ms ease;
      }

      .featured-item.reveal-card.is-revealed,
      .recent-item.reveal-card.is-revealed {
        opacity: 1;
        transform: translateY(0);
      }

      .featured-item.reveal-card .featured-image,
      .featured-item.reveal-card .project-meta,
      .recent-item.reveal-card .recent-image,
      .recent-item.reveal-card .project-meta {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 480ms ease, transform 480ms ease;
      }

      .featured-item.reveal-card.is-revealed .featured-image,
      .featured-item.reveal-card.is-revealed .project-meta,
      .recent-item.reveal-card.is-revealed .recent-image,
      .recent-item.reveal-card.is-revealed .project-meta {
        opacity: 1;
        transform: translateY(0);
      }

      .featured-image {
        width: 100%;
        max-width: 100%;
        height: var(--project-image-height);
        overflow: hidden;
        border: 1px solid var(--image-container-border);
        border-radius: 0;
      }

      .featured-media {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 0;
        background: var(--image-container-fill);
      }

      .featured-media video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .featured-media video.align-top-left {
        object-position: left top;
      }

      @media (pointer: fine) {
        .featured-item a.featured-image,
        .featured-item a.featured-image:hover,
        .featured-item a.featured-image:focus-visible,
        .featured-media,
        .featured-media img,
        .featured-media video {
          cursor: none;
        }
      }

      .featured-cursor {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--white);
        background: var(--blue);
        color: var(--white);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
        font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
        font-size: var(--body-small-size);
        line-height: 1;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.32);
        clip-path: circle(0% at 50% 50%);
        transition:
          opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
          transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
          clip-path 420ms cubic-bezier(0.22, 1, 0.36, 1),
          box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
        white-space: nowrap;
        border-radius: 100px;
        will-change: transform, opacity, clip-path;
      }

      .featured-cursor > span:first-child,
      .featured-cursor-arrow {
        opacity: 0;
        transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
      }

      .featured-cursor-arrow {
        width: 12px;
        height: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
      }

      .featured-cursor-arrow img {
        width: 100%;
        height: 100%;
        display: block;
      }

      .featured-item.is-cursor-active .featured-cursor,
      .featured-item:focus-within .featured-cursor {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        clip-path: circle(150% at 50% 50%);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
      }

      .featured-item.is-cursor-active .featured-cursor > span:first-child,
      .featured-item.is-cursor-active .featured-cursor-arrow,
      .featured-item:focus-within .featured-cursor > span:first-child,
      .featured-item:focus-within .featured-cursor-arrow {
        opacity: 1;
      }

      @media (prefers-reduced-motion: reduce) {
        .featured-cursor,
        .featured-cursor > span:first-child,
        .featured-cursor-arrow {
          transition-duration: 0.01ms;
          transition-delay: 0ms;
        }
      }

      .project-meta {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        min-width: 0;
      }

      .project-meta h2 {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
        color: var(--blue);
        font-size: 16px;
        line-height: 1.2;
        font-weight: 400;
        letter-spacing: 0.05em;
      }

      .project-status {
        font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
        color: #6b7280;
        font-size: var(--body-small-size);
        line-height: 1.2;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        flex: 0 0 auto;
      }

      .recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 80px;
      }

      .recent-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
      }

      .card.recent-image {
        display: block;
        width: 100%;
        min-height: 0;
        border: 1px solid var(--image-container-border);
        border-radius: 0;
        background: var(--image-container-fill);
      }

      .recent-image-frame {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        position: relative;
        background: var(--image-container-fill);
      }

      .recent-image-frame img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background: var(--image-container-fill);
        transition: transform 220ms ease;
        transform-origin: center;
      }

      .card.recent-image:hover .recent-image-frame img,
      .card.recent-image:focus-visible .recent-image-frame img {
        transform: scale(1.05);
      }

      .card {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 0;
        min-height: 100%;
        background: var(--image-container-fill);
      }

      .card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--image-container-fill);
      }

      .contact {
        margin-top: 28px;
        margin-bottom: calc(var(--section-gap) / 2);
        display: grid;
        justify-items: center;
        text-align: center;
      }

      .recent-intro {
        margin: 0 0 32px;
        max-width: 720px;
        font-size: 16px;
        line-height: 1.5;
        color: var(--black);
      }

      .contact h2 {
        margin: 0 0 12px;
        color: var(--blue);
        font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
        font-size: 48px;
        line-height: 1.12;
        font-weight: 500;
        letter-spacing: 0;
      }

      .contact a {
        color: var(--blue);
        font-size: 32px;
        line-height: 1.2;
        font-weight: 400;
        overflow-wrap: anywhere;
      }

      .footer-inner {
        align-items: flex-end;
      }

      .footer-left {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .footer-note {
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        opacity: 0.9;
      }

      .footer-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
      }

      .copyright {
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        opacity: 0.9;
      }

      @media (max-width: 980px) {
        :root {
          --section-gap: 72px;
          --nav-gap-large: 40px;
          --featured-anchor-offset: 132px;
          --project-image-height: 260px;
        }

        .menu-toggle {
          display: inline-flex;
          flex-direction: column;
          justify-content: center;
          gap: 5px;
          align-items: center;
        }

        .topbar-inner {
          flex-wrap: wrap;
          align-items: center;
          width: min(100%, calc(100% - 20px));
          max-width: 100%;
        }

        .topbar .brand {
          flex: 1 1 auto;
          min-width: 0;
        }

        .topbar .nav {
          display: none;
          flex-basis: 100%;
          flex-direction: column;
          align-items: flex-start;
          flex-wrap: nowrap;
          gap: 14px;
          padding: 16px 0 4px;
        }

        .topbar.is-menu-open .nav {
          display: flex;
        }

        .topbar .nav .external:first-of-type {
          margin-left: 0;
        }

        .topbar.is-menu-open .menu-toggle-bar:nth-child(1) {
          transform: translateY(7px) rotate(45deg);
        }

        .topbar.is-menu-open .menu-toggle-bar:nth-child(2) {
          opacity: 0;
        }

        .topbar.is-menu-open .menu-toggle-bar:nth-child(3) {
          transform: translateY(-7px) rotate(-45deg);
        }

        .hero-phrase {
          white-space: normal;
        }

        .hero {
          min-height: auto;
          padding: 96px 0 92px;
          padding-top: 136px;
        }

        .hero h1,
        .hero-title {
          font-size: 40px;
          max-width: none;
        }

        .featured-grid,
        .recent-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          row-gap: 48px;
        }

        .featured-item {
          gap: 12px;
        }

        .projects-section-header {
          gap: 16px;
          margin-bottom: 28px;
        }

        .project-tag {
          padding: 8px 14px;
          font-size: 12px;
        }

        .featured-image {
          height: 260px;
        }

        .featured-cursor {
          font-size: var(--body-small-size);
        }

        .project-meta {
          gap: 8px 12px;
          flex-wrap: wrap;
        }

        .project-meta h2,
        .project-status {
          font-size: 16px;
        }

        .project-status {
          white-space: normal;
        }

        .recent-item {
          gap: 12px;
        }

        .contact a {
          font-size: 28px;
          word-break: break-word;
        }
      }

      @media (max-width: 768px) {
        :root {
          --section-gap: 64px;
        }

        .footer-inner {
          flex-direction: column;
          align-items: flex-start;
          gap: 28px;
          width: min(100%, calc(100% - 20px));
        }

        .footer-left,
        .footer-right {
          width: 100%;
          align-items: flex-start;
          gap: 12px;
        }

        .footer-right {
          gap: 16px;
        }

        .footer-right .nav {
          flex-direction: column;
          align-items: flex-start;
          flex-wrap: nowrap;
          gap: 12px;
        }

        .hero {
          padding-top: 152px;
          padding-bottom: 84px;
        }

        .hero-content {
          max-width: 100%;
        }

        .hero h1,
        .hero-title {
          font-size: 34px;
          max-width: none;
        }

        .hero-copy {
          font-size: 17px;
        }

        main {
          padding: 72px 0 62px;
        }

        .featured-grid,
        .recent-grid {
          grid-template-columns: 1fr;
          row-gap: 39px;
        }

        .featured-image {
          height: 240px;
        }
      }

      @media (max-width: 640px) {
        :root {
          --section-gap: 56px;
        }

        main {
          padding: 64px 0 52px;
        }

        .hero h1,
        .hero-title {
          font-size: 32px;
          max-width: none;
          min-height: auto;
        }

        .hero-copy {
          font-size: 18px;
        }

        h2,
        .contact a {
          font-size: 28px;
        }

        .featured-grid,
        .recent-grid {
          grid-template-columns: 1fr;
        }

        .featured-image {
          height: 220px;
        }

        .contact a {
          word-break: break-word;
        }

        .brand {
          font-size: 14px;
          letter-spacing: 0.03em;
        }
