:root {
      --bg: #0c0d0f;
      --surface: #131518;
      --surface-2: #191c20;
      --text: #f4f4f2;
      --muted: #a9aeb6;
      --line: #343840;
      --accent: #9dc1ff;
      --focus: #ffd76a;
      --max: 1160px;
      --radius: 18px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family:
        "Source Sans 3", "Segoe UI Variable", "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: inherit;
    }

    img {
      max-width: 100%;
    }

    :focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 1000;
      padding: 10px 14px;
      border-radius: 8px;
      background: var(--focus);
      color: #111214;
      font-weight: 700;
      text-decoration: none;
      transform: translateY(-160%);
      transition: transform .15s ease;
    }

    .skip-link:focus-visible {
      transform: translateY(0);
    }

    #main-content {
      scroll-margin-top: 76px;
    }

    #main-content:focus {
      outline: none;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

    .wrap {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
    }

    /* ---------- NAV ---------- */

    .nav {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(12, 13, 15, .82);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .nav-inner {
      height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      font-weight: 700;
      letter-spacing: -.02em;
      text-decoration: none;
    }


    .nav-links {
      display: flex;
      align-items: center;
      gap: 18px;
    }
    .nav-link {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      padding: 0 4px;
      color: var(--muted);
      font-size: 14px;
      text-decoration: underline;
      text-decoration-color: transparent;
      text-underline-offset: .22em;
      transition: color .2s ease, text-decoration-color .2s ease;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--text);
      text-decoration-color: currentColor;
    }

    /* ---------- HERO ---------- */

    .hero {
      padding: 72px 0 58px;
      border-bottom: 1px solid var(--line);
      background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
      background-size: 40px 40px;
      background-position: center top;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, .5fr) minmax(280px, 1fr);
      gap: 8px;
      align-items: center;
    }

    .eyebrow {
      margin: 0 0 12px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      max-width: 850px;
      font-size: clamp(46px, 6vw, 78px);
      line-height: .98;
      letter-spacing: -.055em;
      font-weight: 650;
    }

    .brand-title {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      max-width: none;
      line-height: .84;
      letter-spacing: -.06em;
    }

    .brand-joamas {
      display: block;
      font-family: "Source Sans 3", "Segoe UI", sans-serif;
      font-size: clamp(58px, 7.2vw, 94px);
      font-weight: 700;
      color: var(--text);
    }

    .brand-games {
      display: block;
      margin-left: clamp(34px, 4.6vw, 70px);
      color: var(--accent);
      font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
      font-size: clamp(50px, 6.2vw, 82px);
      font-weight: 600;
      font-style: italic;
      letter-spacing: -.035em;
    }

    .hero-copy-main {
      max-width: none;
      padding-left: 10px;
      border-left: 2px solid var(--line);
      color: #c0c4ca;
      font-size: 15px;
      line-height: 1.62;
      overflow-wrap: anywhere;
    }

    .hero-copy {
      margin: 0;
      max-width: none;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    /* ---------- PROJECTS ---------- */

    .projects {
      padding: 48px 0 72px;
    }

    .section-heading {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 20px;
      margin-bottom: 20px;
    }

    .section-heading h2 {
      margin: 0;
      font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
      font-size: 24px;
      letter-spacing: -.02em;
      font-weight: 600;
    }

    .project-count {
      color: var(--muted);
      font-size: 13px;
    }

    .project-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .project {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
      transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
    }

    .project:hover {
      transform: translateY(-2px);
      border-color: #353941;
      background: #15171b;
    }

    .project-media {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: var(--surface-2);
      border-bottom: 1px solid var(--line);
    }

    .project-media img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center center;
      background: var(--surface-2);
      transition: transform .45s ease;
    }

    .project:hover .project-media img {
      transform: scale(1.015);
    }

    /* Neutral placeholder if there is no screenshot yet */
    .placeholder {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 20%, rgba(143,184,255,.13), transparent 30%),
        linear-gradient(145deg, #17191e 0%, #101215 100%);
    }

    .placeholder::before,
    .placeholder::after {
      content: "";
      position: absolute;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 50%;
    }

    .placeholder::before {
      width: 34%;
      aspect-ratio: 1;
      right: 12%;
      top: 16%;
    }

    .placeholder::after {
      width: 20%;
      aspect-ratio: 1;
      left: 17%;
      bottom: 13%;
    }

    .placeholder-mark {
      position: relative;
      z-index: 2;
      color: rgba(255,255,255,.28);
      font-size: clamp(56px, 9vw, 120px);
      font-weight: 600;
      letter-spacing: -.07em;
    }

    .status {
      position: absolute;
      top: 18px;
      left: 18px;
      z-index: 5;
      padding: 7px 10px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      background: rgba(10,11,13,.7);
      backdrop-filter: blur(10px);
      color: #d8dbe0;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .project-info {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: end;
      padding: 18px 20px 20px;
    }

    .project-title-row {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 10px 14px;
    }

    .project-title {
      margin: 0;
      font-size: clamp(23px, 2.6vw, 32px);
      line-height: 1.08;
      font-weight: 650;
      letter-spacing: -.025em;
      overflow-wrap: anywhere;
    }

    .project-year {
      color: #969ca5;
      font-size: 12px;
    }

    .project-desc {
      max-width: 56ch;
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 12px;
    }

    .tag {
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 7px;
      color: #aeb3bb;
      font-size: 12px;
    }

    .play {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 112px;
      min-height: 46px;
      padding: 0 15px;
      border-radius: 10px;
      background: var(--text);
      color: #0c0d0f;
      font-size: 14px;
      font-weight: 650;
      text-decoration: none;
      white-space: nowrap;
      transition:
        background .2s ease,
        transform .2s ease;
    }

    .play:hover {
      background: #ffffff;
      transform: translateY(-1px);
    }

    .play svg {
      width: 16px;
      height: 16px;
    }

    .play[aria-disabled="true"] {
      pointer-events: none;
      opacity: .35;
    }

    /* ---------- FOOTER ---------- */


    .ai-note {
      border-top: 1px solid var(--line);
      background: #101215;
      scroll-margin-top: 76px;
    }

    .ai-note-inner {
      display: grid;
      grid-template-columns: minmax(220px, .55fr) minmax(0, 1.25fr);
      gap: 44px;
      align-items: start;
      padding-top: 34px;
      padding-bottom: 34px;
    }

    .ai-kicker {
      margin: 0 0 6px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .ai-note h2 {
      margin: 0;
      font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
      font-size: 22px;
      line-height: 1.2;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .ai-copy {
      margin: 0;
      max-width: 760px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    footer {
      border-top: 1px solid var(--line);
    }

    .footer-inner {
      min-height: 88px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      color: #9ba1aa;
      flex-wrap: wrap;
      font-size: 13px;
    }

    .footer-mail {
      color: #9ba1aa;
      text-decoration: underline;
      text-decoration-color: transparent;
      text-underline-offset: .22em;
      transition: color .2s ease, text-decoration-color .2s ease;
    }

    .footer-mail:hover,
    .footer-mail:focus-visible {
      color: var(--text);
      text-decoration-color: currentColor;
    }

    /* ---------- RESPONSIVE ---------- */

    @media (max-width: 900px) {
      .project-list {
        grid-template-columns: 1fr;
      }

      .wrap {
        width: min(100% - 32px, var(--max));
      }

      .hero {
        padding: 58px 0 48px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      h1 {
        font-size: clamp(48px, 14vw, 78px);
      }

      .brand-title {
        line-height: .88;
      }

      .brand-joamas,
      .brand-games {
        font-size: clamp(52px, 17vw, 76px);
      }

      .brand-games {
        margin-left: 28px;
      }

      .hero-copy-main {
        max-width: none;
      }

      .projects {
        padding: 40px 0 58px;
      }

      .project-media {
        aspect-ratio: 16 / 9;
      }

      .project-info {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 18px;
      }

      .play {
        width: 100%;
      }
    }

    @media (max-width: 520px) {
      .nav-inner {
        height: 64px;
      }

      .nav-links {
        gap: 10px;
      }

      .nav-link {
        min-height: 40px;
        font-size: 12px;
      }

      .nav-link:first-child {
        display: none;
      }

      .ai-note-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 28px;
        padding-bottom: 28px;
      }

      .hero {
        padding-top: 58px;
      }

      .project-media {
        aspect-ratio: 16 / 9;
      }

      .project-info {
        grid-template-columns: 1fr;
      }

      .status {
        top: 12px;
        left: 12px;
      }

      .footer-inner {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 6px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      .project,
      .project-media img,
      .play,
      .skip-link {
        transition: none;
      }
    }

    @media (prefers-contrast: more) {
      :root {
        --muted: #d4d7dc;
        --line: #777d87;
      }

      .project {
        border-width: 2px;
      }
    }

    @media (forced-colors: active) {
      .nav {
        backdrop-filter: none;
      }

      .play,
      .status,
      .tag,
      .project {
        border: 1px solid ButtonText;
      }

      .play {
        forced-color-adjust: auto;
      }
    }
