  a {
    color: rgb(233, 233, 233);
    cursor: pointer !important;
  }

  :root {
    --pixel-size: 6px;
    --cols: 5;
    --rows: 7;
    --gap: calc(var(--pixel-size) / 4);
    --char-width: calc(var(--pixel-size) * var(--cols) + var(--gap) * (var(--cols) - 1));
    --char-height: calc(var(--pixel-size) * var(--rows) + var(--gap) * (var(--rows) - 1));
    --left-column-width: 230px;
    --content-column-gap: 8vw;
    --content-left-offset: calc(var(--left-column-width) + var(--content-column-gap));
    --content-max-width-narrow: 700px;
    --content-max-width-wide: 900px;
    --content-max-width-current: var(--content-max-width-narrow);
  }

  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.45em !important;
  }

  #screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
  }

  .pixel-text {
    display: flex;
    gap: calc(var(--pixel-size) * 1);
  }

  .char {
    display: grid;
    grid-template-columns: repeat(var(--cols), var(--pixel-size));
    grid-template-rows: repeat(var(--rows), var(--pixel-size));
    gap: var(--gap);
    width: var(--char-width);
    height: var(--char-height);
  }

  .pixel {
    background: transparent;
    width: var(--pixel-size);
    height: var(--pixel-size);
  }

  .on {
    background: white;
  }

  .cursor {
    width: var(--char-width);
    height: var(--char-height);
    background: rgb(255, 255, 255);
    animation: blink 1s steps(1) infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: transparent;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0 0.5px, transparent 0.6px),
      radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.04) 0 0.5px, transparent 0.6px),
      radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.035) 0 0.5px, transparent 0.6px);
    background-size: 3px 3px, 3px 3px, 13px 13px, 17px 17px, 19px 19px;
    background-position: 0 0, 0 0, 0 0, 4px 8px, 10px 3px;
  }

  #gradient,
  .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
    transform: translateZ(0);
  }

  #gradient.gradient-portfolio,
  .gradient-overlay.gradient-portfolio {
    background:
      -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), to(white)),
      -webkit-linear-gradient(top, black, white),
      -moz-linear-gradient(top, black, white),
      -ms-linear-gradient(top, black, white),
      -o-linear-gradient(top, black, white),
      linear-gradient(top, black, white);
  }

  #gradient.gradient-project,
  .gradient-overlay.gradient-project {
    background:
      -webkit-gradient(linear, 0% 0%, 0% 100%, from(black), to(white)),
      -webkit-linear-gradient(top, black, white),
      -moz-linear-gradient(top, black, white),
      -ms-linear-gradient(top, black, white),
      -o-linear-gradient(top, black, white),
      linear-gradient(top, black, white);
  }

  #screen::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }

  .pixel.on {
    background-color: rgb(255, 255, 255);
  }

  .glitch {
    animation: glitch 1s infinite;
  }

  @keyframes glitch {
    0% {
      transform: translate(0px, 0px);
    }

    20% {
      transform: translate(-1px, 0px);
    }

    40% {
      transform: translate(1px, 1px);
    }

    60% {
      transform: translate(0px, -1px);
    }

    80% {
      transform: translate(1px, 0px);
    }

    100% {
      transform: translate(0px, 0px);
    }
  }

  canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #main-canvas {
    z-index: 0;
  }

  #rocket-canvas {
    z-index: 1;
  }

  #header-bar {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    display: grid;
    grid-template-columns: var(--left-column-width) minmax(340px, 1fr);
    column-gap: var(--content-column-gap);
    align-items: start;
    z-index: 100;
    color: #c9c9c9;
  }

  #header-bar .header-left {
    display: flex;
    flex-direction: column;
    gap: 34px;
    pointer-events: auto;
  }

  #home-trigger {
    text-decoration: none;
    color: #e9e9e9;
  }

  .header-nav {
    cursor: default;
  }


  /* #intro-copy {
    margin-top: 54px;
  } */

  .header-nav-link {
    all: unset;
    color: #e9e9e9;
    cursor: pointer;
    display: inline-block;
    line-height: 1.2;
    transition: opacity 220ms ease;
  }

  .header-nav-link:hover,
  .header-nav-link:focus-visible {
    opacity: 0.7;
  }

  .header-nav-link.is-maintenance,
  .header-nav-link[aria-disabled="true"] {
    text-decoration: line-through;
    opacity: 0.45;
    cursor: not-allowed;
  }

  .header-nav-link.is-maintenance:hover,
  .header-nav-link[aria-disabled="true"]:hover,
  .header-nav-link.is-maintenance:focus-visible,
  .header-nav-link[aria-disabled="true"]:focus-visible {
    opacity: 0.45;
  }

  #header-bar .header-middle {
    position: relative;
    top: 4px;
    width: min(var(--content-max-width-current), 100%);
    height: auto;
    /* border: 1px solid red; */
  }

  #header-bar.layout-wide {
    --content-max-width-current: var(--content-max-width-wide);
  }

  .header-content {
    min-height: 220px;
  }

  .header-copy,
  .subpage-panel {
    margin: 0;
  }

  .header-copy.is-hidden {
    display: none;
  }

  .subpage-panel {
    display: none;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
.subpage-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.subpage-panel img{
   width: 100%;
  }
  .subpage-panel.is-visible {
    display: block;
  }

  .subpage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
  }

  #subpage-title {
    margin: 0;
    padding-bottom: 0;
    flex: 1;
  }

  .project-nav {
    display: none;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .project-nav.is-visible {
    display: flex;
  }

  .project-nav-btn {
    all: unset;
    color: #c9c9c9;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 220ms ease;
  }

  .project-nav-btn:hover,
  .project-nav-btn:focus-visible {
    opacity: 0.65;
  }

  .project-nav-btn[disabled] {
    opacity: 0.35;
    cursor: default;
  }

  .header-copy strong {
    display: block;
    margin: 0;
     padding-bottom: 26px;
    font-weight: 700;
  }

  .header-copy p {
    margin: 0;
    padding-bottom: 0.5em;
  }

  .subpage-panel p {
    margin: 0;
    /* padding-bottom: 0.5em; */
  }

  @media (max-width: 860px) {
    .subpage-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }

  .portfolio-table {
    width: 100%;
    font: inherit;
    line-height: inherit;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    table-layout: auto;
  }

  .portfolio-table th,
  .portfolio-table td {
    border: 0;
    border-left: 0;
    border-right: 0;
    text-align: left;
    font: inherit;
    line-height: inherit;
    padding: 0;
    vertical-align: baseline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e9e9e9;
  }

  .portfolio-table th {
    font-weight: inherit;
  }

  .portfolio-table th:last-child,
  .portfolio-table td:last-child {
    text-align: right;
  }

  .portfolio-table th:first-child,
  .portfolio-table td:first-child {
    min-width: 28ch;
    width: 8ch;
  }

  .portfolio-table th:nth-child(2),
  .portfolio-table td:nth-child(2) {
    min-width: 28ch;
    width: auto;
  }

  .portfolio-table th:last-child,
  .portfolio-table td:last-child {
    min-width: 6ch;
    width: 6ch;
  }

  .portfolio-table tbody tr {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .portfolio-table tbody tr::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background-color 140ms ease;
    z-index: 0;
  }

  .portfolio-table tbody td {
    position: relative;
    z-index: 1;
    background: transparent;
    transition: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .portfolio-table tbody tr:hover td {
      background: #fff;
      color: #000;
    }
  }

  @media (hover: none), (pointer: coarse) {
    .portfolio-table,
    .portfolio-table * {
      -webkit-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
    }

    .portfolio-table tbody tr:active::before {
      background: transparent;
    }

    .portfolio-table tbody tr:active td {
      color: #e9e9e9;
    }
  }

  .project-view {
    width: 100%;
  }

  .project-back {
    all: unset;
    cursor: pointer;
    display: inline-block;
    padding-bottom: 1.1em;
    color: #c9c9c9;
    opacity: 0.9;
  }

  .project-back:hover,
  .project-back:focus-visible {
    opacity: 0.65;
  }

  .project-view img {
    display: block;
    width: 100%;
    height: auto;
    margin: 6px 0 6px 0;
    filter: grayscale(100%);
    transition: filter 320ms ease;
    will-change: filter;
  }

  .project-view .project-embed {
    width: 100%;
    margin: 6px 0 6px 0;
    aspect-ratio: 16 / 9;
    filter: grayscale(100%);
    transition: filter 320ms ease;
    will-change: filter;
    overflow: hidden;
  }

  .project-view .project-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .project-view img:hover {
    filter: grayscale(0%);
  }

  .project-view img.is-activated {
    filter: grayscale(0%);
  }

  .project-view .project-embed:hover {
    filter: grayscale(0%);
  }

  .project-view .project-embed.is-activated {
    filter: grayscale(0%);
  }

  .project-view p {
    margin: 0;
    /* padding-bottom: 0.6em; */
  }

  #footer-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    width: 94%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: #c9c9c9;
    z-index: 1000;
    pointer-events: none;
    letter-spacing: -0.01em;
  }

  .footer-middle {
    position: absolute;
    left: var(--content-left-offset);
    word-spacing: 20px;
    pointer-events: auto;
  }

  .page-project .footer-middle {
    display: none;
  }

  #footer-bar .footer-left,
  #footer-bar .footer-right {
    pointer-events: auto;
  }

  #footer-bar .footer-right a {
    color: #c9c9c9;
    text-decoration: none;
    font-weight: normal;
  }

  #controls {
    text-align: right !important;
  }

  @media (max-width: 860px) {
    :root {
      --pixel-size: 1px;
    }

    #header-bar {
      grid-template-columns: 1fr;
      row-gap: 20px;
      width: 90%;
    }

    #header-bar .header-middle {
      width: 100%;
    }

    .header-copy {
      display: none !important;
    }

    #footer-bar {
      display: none;
    }

    .portfolio-table td:not(:first-child),
    .portfolio-table th:not(:first-child) {
      display: none;
    }

    .portfolio-table td:first-child,
    .portfolio-table th:first-child {
      min-width: 0;
      width: 100%;
    }

    .subpage-panel {
      max-height: calc(100dvh - 70px);
      padding-bottom: 120px;
    }
  }

  .page-404 {
    overflow: hidden;
  }

  .page-404::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(900px 420px at 76% 20%, rgba(120, 160, 255, 0.11), transparent 62%),
      radial-gradient(700px 360px at 16% 82%, rgba(255, 255, 255, 0.06), transparent 66%);
  }

  .error-shell {
    min-height: 100dvh;
    min-height: calc(var(--app-height, 100vh));
    display: grid;
    place-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
  }

  .error-card {
    width: min(880px, 100%);
    border: 1px solid rgba(233, 233, 233, 0.22);
    background: rgba(10, 10, 10, 0.76);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 28px;
    color: #e9e9e9;
    backdrop-filter: blur(3px);
  }

  .error-minimal {
    text-align: center;
    color: #e9e9e9;
    max-width: 44ch;
  }

  .error-minimal .error-code {
    margin: 0;
    font-size: clamp(26px, 8vw, 72px);
    text-shadow: none;
  }

  .error-minimal .error-title {
    margin-top: 10px;
    font-size: clamp(14px, 1.8vw, 22px);
  }

  .error-minimal .error-text {
    margin-top: 10px;
    font-size: clamp(12px, 1.2vw, 15px);
  }

  .error-code {
    font-size: clamp(34px, 12vw, 112px);
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin: 0 0 16px;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
  }

  .error-title {
    margin: 0;
    font-size: clamp(18px, 2.3vw, 28px);
    line-height: 1.2;
    color: #dfdfdf;
  }

  .error-text {
    margin: 16px 0 0;
    max-width: 56ch;
    color: #c3c3c3;
  }

  .error-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .error-btn {
    all: unset;
    display: inline-block;
    border: 1px solid rgba(233, 233, 233, 0.38);
    padding: 10px 14px;
    color: #f2f2f2;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .error-btn:hover,
  .error-btn:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(233, 233, 233, 0.7);
    transform: translateY(-1px);
  }

  .error-btn-ghost {
    background: transparent;
    color: #cfcfcf;
  }