@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #f3f1ff;
    --muted: #b4b0c8;
    --line: #ffffff20;
    --green: #c5ff62;
    --paper: #10101a
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.featured-copy .project-context,
.project-context {
    color: var(--green);
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .4px;
}

.featured-copy .demo-prompt {
    padding: 12px 14px;
    border-left: 2px solid var(--green);
    background: #c5ff6209;
    font-size: 13px;
    line-height: 1.7;
}

.case-study-link {
    display: inline-block;
    color: var(--green);
    font-size: 14px;
    padding: 12px 0;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.skill-filter-row {
    margin-top: 24px;
}

.filter-help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 12px 0 20px;
}

.featured-preview {
    position: relative;
}

.featured-preview .project-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: top left;
}

.featured-preview .preview-caption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    background: #10101af2;
    color: var(--ink);
    border-radius: 6px;
    font-size: 10px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    background-image: radial-gradient(ellipse at 5% 10%, #6834a525, transparent 35%), radial-gradient(ellipse at 95% 30%, #20c6ff12, transparent 35%)
}

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

button,
input {
    font: inherit
}

button {
    cursor: pointer
}

[hidden] {
    display: none !important
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #c5ff62;
    outline-offset: 5px
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 30;
    background: #c5ff62;
    color: #10101a;
    padding: 15px
}

.skip-link:focus {
    top: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 5%;
    background: #10101ae8;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line)
}

.wordmark {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    font-weight: 700
}

.brand-mark {
    display: grid;
    place-items: center;
    background: #c5ff62;
    color: #14141e;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    transform: rotate(-8deg);
    font-size: 24px;
    letter-spacing: -2px
}

.wordmark-sub {
    color: var(--muted);
    font-weight: 400
}

.site-header nav {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 12px
}

.nav-portfolio {
    border: 1px solid var(--line);
    padding: 12px 18px;
    border-radius: 30px
}

.hero {
    position: relative;
    max-width: 1440px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 85px 5% 75px;
    min-height: 740px
}

.eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5ff62;
    margin-right: 9px;
    box-shadow: 0 0 16px #c5ff62
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(64px, 7.3vw, 106px);
    line-height: .95;
    letter-spacing: -6px;
    margin: 28px 0;
    font-weight: 700
}

.serif-word {
    display: inline-block;
    color: #c5ff62;
    font-family: inherit;
    font-style: normal;
    letter-spacing: -6px;
    position: relative;
    text-shadow: 5px 5px 0 #58338f
}

.hero-copy>p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 420px
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px
}

.primary-link,
.surprise-button {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 17px 22px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #c5ff62;
    background: #c5ff62;
    color: #10101a;
    transition: transform .2s
}

.surprise-button {
    gap: 10px;
    background: transparent;
    color: #f3f1ff;
    border-color: #ffffff40
}

.primary-link:hover,
.surprise-button:hover {
    transform: translateY(-4px)
}

.hero-caption {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-size: 10px;
    color: var(--muted)
}

.hero-caption span+span {
    border-left: 1px solid var(--line);
    padding-left: 20px
}

.hero-art {
    position: relative;
    height: 560px;
    isolation: isolate
}

.hero-art:before {
    content: '';
    position: absolute;
    inset: 40px 0;
    background: radial-gradient(ellipse, #905aff35, transparent 65%);
    filter: blur(20px);
    z-index: -1
}

.art-grid {
    position: absolute;
    inset: 20px;
    background-image: radial-gradient(#ffffff30 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse, #000, transparent 70%)
}

.art-label,
.art-footnote {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted)
}

.art-label {
    top: 7px
}

.art-footnote {
    bottom: 0
}

.orbit {
    position: absolute;
    border: 1px dashed #b39cf855;
    border-radius: 50%;
    width: 440px;
    height: 440px;
    top: 55px;
    left: calc(50% - 220px);
    animation: orbit-spin 65s linear infinite
}

.orbit-two {
    width: 310px;
    height: 310px;
    left: calc(50% - 155px);
    top: 120px;
    border-style: solid;
    border-color: #c5ff6225;
    animation-direction: reverse
}

.floating-tile {
    position: absolute;
    width: 155px;
    height: 166px;
    padding: 19px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 45px #0006;
    transition: scale .25s;
    animation: bob 6s ease-in-out infinite;
    --angle: 0deg
}

.floating-tile:hover {
    scale: 1.1;
    z-index: 5
}

.floating-tile span {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700
}

.floating-tile b {
    font-size: 68px;
    line-height: 1;
    align-self: center
}

.floating-tile em {
    font-size: 12px;
    font-style: normal;
    font-weight: 600
}

.tile-lab {
    left: 6%;
    top: 65px;
    background: #c5ff62;
    color: #192019;
    border-radius: 38% 38% 20% 38%;
    --angle: -13deg
}

.tile-build {
    right: 5%;
    top: 73px;
    background: #58d6ff;
    color: #122435;
    border-radius: 24px;
    --angle: 12deg;
    animation-delay: -2s
}

.tile-study {
    left: calc(50% - 78px);
    top: 213px;
    background: #a58aff;
    color: #201736;
    border-radius: 50%;
    width: 164px;
    height: 164px;
    text-align: center;
    z-index: 3;
    animation-delay: -3s
}

.tile-study b {
    font-size: 57px
}

.tile-play {
    left: 5%;
    bottom: 67px;
    background: #ff924f;
    color: #331b13;
    border-radius: 25px 25px 55px 25px;
    --angle: 8deg;
    animation-delay: -1s
}

.tile-art {
    right: 5%;
    bottom: 58px;
    background: #ff77bc;
    color: #391629;
    border-radius: 40% 20% 40% 20%;
    --angle: -12deg;
    animation-delay: -4s
}

.ticker {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #c5ff62;
    color: #15151e;
    transform: rotate(-1.5deg);
    padding: 15px 0;
    margin: 10px 0 65px
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 32s linear infinite;
    gap: 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px
}

.ticker-track span {
    white-space: nowrap
}

.ticker-track b {
    color: #5d7442
}

.featured {
    max-width: 1280px;
    margin: 0 auto 55px;
    padding: 20px 30px;
}

.featured-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.5px;
    margin: 15px 0;
}

.featured-heading>p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #1c1c2a;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.featured-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.featured-preview:hover .preview-title {
    text-decoration: underline;
}

.featured-preview:focus-visible {
    outline-offset: -5px;
}

.preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.preview-caption {
    font-size: 9px;
    color: var(--muted);
    margin-top: 20px;
}

.preview-pipeline {
    background: linear-gradient(135deg, #1c3340, #151d2a);
}

.preview-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.preview-board>div {
    background: #ffffff06;
    border: 1px solid #58d6ff30;
    border-radius: 8px;
    padding: 10px;
}

.preview-board b {
    font-size: 9px;
    color: #a1e8ff;
}

.preview-board i {
    display: block;
    height: 19px;
    background: #58d6ff25;
    border-left: 2px solid #58d6ff;
    border-radius: 3px;
    margin-top: 10px;
}

.preview-algorithm {
    background: linear-gradient(135deg, #263620, #181e23);
}

.preview-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 96px;
    margin-top: 22px;
    border-bottom: 1px solid #c5ff6250;
}

.preview-bars i {
    flex: 1;
    height: 35%;
    background: #c5ff62;
    border-radius: 4px 4px 0 0;
}

.preview-bars i:nth-child(2) {
    height: 75%;
}

.preview-bars i:nth-child(3) {
    height: 48%;
}

.preview-bars i:nth-child(4) {
    height: 90%;
    background: #58d6ff;
}

.preview-bars i:nth-child(5) {
    height: 60%;
}

.preview-bars i:nth-child(6) {
    height: 40%;
}

.preview-bars i:nth-child(7) {
    height: 80%;
}

.preview-bars i:nth-child(8) {
    height: 55%;
}

.preview-animation {
    background: linear-gradient(135deg, #35275b, #251a30);
}

.preview-shapes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    height: 85px;
    margin-top: 15px;
}

.preview-shapes i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #a58aff;
}

.preview-shapes i:nth-child(2) {
    background: #ff77bc;
    border-radius: 8px;
    transform: rotate(25deg);
}

.preview-shapes i:nth-child(3) {
    background: #58d6ff;
    border-radius: 50% 10% 50% 10%;
}

.preview-slider {
    height: 4px;
    margin: 12px 18px 0;
    background: #ffffff25;
    border-radius: 4px;
}

.preview-slider i {
    display: block;
    margin-left: 60%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff77bc;
    transform: translateY(-4px);
}

.featured-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.featured-copy>.eyebrow {
    color: var(--green);
}

.featured-copy h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    letter-spacing: -.8px;
    margin: 16px 0 12px;
}

.featured-copy p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 18px;
}

.featured-detail strong {
    display: block;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 4px;
}

.featured-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.featured-links a:first-child {
    color: var(--green);
}

.featured-links a:hover {
    text-decoration: underline;
}

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

    .featured-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .featured-preview {
        border-bottom: 0;
        border-right: 1px solid var(--line);
        justify-content: center;
    }
}

@media(max-width: 600px) {
    .featured {
        padding: 20px 25px;
        margin-bottom: 30px;
    }

    .featured-card {
        display: flex;
    }

    .featured-preview {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

.directory {
    max-width: 1280px;
    margin: auto;
    padding: 20px 30px 55px
}

.directory-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.directory h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 37px;
    letter-spacing: -1.5px;
    margin: 15px 0 25px
}

.search-label {
    width: 300px
}

.search-label>span {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px
}

input {
    width: 100%;
    background: #ffffff07;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 14px 18px;
    color: var(--ink)
}

input::placeholder {
    color: #9690ad
}

.chapter-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 25px
}

.chapter-nav a {
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 15px 20px;
    font-size: 12px;
    transition: background .2s, transform .2s
}

.chapter-nav a:hover {
    transform: translateY(-4px);
    background: #ffffff12
}

.chapter-nav a span:first-child {
    font-size: 10px;
    color: var(--muted)
}

.chapter-nav a:nth-child(1) {
    border-color: #c5ff6260
}

.chapter-nav a:nth-child(2) {
    border-color: #58d6ff60
}

.chapter-nav a:nth-child(3) {
    border-color: #a58aff60
}

.chapter-nav a:nth-child(4) {
    border-color: #ff924f60
}

.chapter-nav a:nth-child(5) {
    border-color: #ff77bc60
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.filter-row>.eyebrow {
    font-size: 9px
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1
}

.filter-chip {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 10px;
    color: var(--muted)
}

.filter-chip.active {
    background: #f3f1ff;
    color: #10101a
}

#resultCount {
    font-size: 10px;
    color: var(--muted)
}

.chapter {
    max-width: 1250px;
    margin: 0 auto 90px;
    padding: 40px;
    position: relative;
    scroll-margin-top: 100px;
    --accent: #c5ff62;
    isolation: isolate
}

.chapter-intro {
    position: relative;
    margin-bottom: 40px;
    padding-right: 120px
}

.chapter-intro h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -3px;
    line-height: 1.05;
    margin: 16px 0;
    font-weight: 700
}

.chapter-intro h2 br {
    display: none
}

.chapter-intro p {
    max-width: 560px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8
}

.chapter-intro .eyebrow {
    color: var(--accent)
}

.chapter-symbol {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 110px;
    line-height: 1;
    color: var(--accent);
    transform: rotate(-15deg)
}

.chapter-count {
    font-size: 10px;
    color: var(--muted);
    display: inline-block;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 20px
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 24px;
    background: #1c1c2a;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    --tilt: 0deg;
    transform: rotate(var(--tilt))
}

.project-card:hover {
    transform: translateY(-8px) rotate(0);
    border-color: var(--accent);
    box-shadow: 0 15px 35px #0005;
    z-index: 3
}

.card-top {
    display: flex;
    align-items: center;
    gap: 9px
}

.card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--accent)
}

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

.platform {
    font-size: 9px;
    color: var(--muted)
}

.platform+.platform:before {
    content: '/ ';
    padding-right: 3px
}

.card-arrow {
    margin-left: auto;
    font-size: 25px;
    color: var(--accent)
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    letter-spacing: -.8px;
    margin: 30px 0 12px;
    position: relative
}

.project-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin: 0 0 20px;
    position: relative
}

.card-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    position: relative
}

.card-tech span {
    font-size: 9px;
    padding: 5px 8px;
    background: #ffffff08;
    border: 1px solid #ffffff15;
    border-radius: 20px
}

.personal {
    border: 1px solid #c5ff6225;
    border-radius: 60px 20px 60px 20px;
    background: radial-gradient(ellipse at top left, #c5ff6210, transparent 55%)
}

.personal .project-card:nth-child(3n+1) {
    --tilt: -2deg;
    background: #242c20;
    border-radius: 35px 12px 35px 12px
}

.personal .project-card:nth-child(3n+2) {
    --tilt: 2deg;
    background: #21272b;
    border-radius: 12px 35px 12px 35px
}

.personal .project-card:before {
    content: '✳';
    position: absolute;
    bottom: 45px;
    right: -13px;
    font-size: 130px;
    color: #c5ff6207
}

.professional {
    --accent: #58d6ff;
    background: #141d2a;
    border-radius: 32px
}

.professional:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background-image: linear-gradient(#58d6ff06 1px, transparent 1px), linear-gradient(90deg, #58d6ff06 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: -1
}

.professional .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.professional .project-card {
    background: #0e1723;
    border-radius: 15px;
    border-color: #58d6ff30;
    padding-top: 45px
}

.professional .project-card:before {
    content: '● ● ●';
    position: absolute;
    top: 13px;
    left: 20px;
    font-size: 10px;
    letter-spacing: 4px;
    color: #58d6ff70
}

.professional .project-card:after {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    border-top: 1px solid #58d6ff20
}

.professional .project-card h3 {
    color: #a1e8ff
}

.academic {
    --accent: #a58aff
}

.academic .card-grid {
    gap: 24px
}

.academic .project-card {
    background: linear-gradient(135deg, #35275b, #1b172c);
    border: 1px solid #a58aff40;
    border-radius: 45px 45px 18px 18px;
    min-height: 290px
}

.academic .project-card:nth-child(2n) {
    border-radius: 18px 18px 45px 45px;
    background: linear-gradient(135deg, #262047, #171729)
}

.academic .card-number {
    font-size: 28px;
    font-weight: 700
}

.academic .project-card:after {
    content: '';
    position: absolute;
    right: -30px;
    top: 40px;
    width: 120px;
    height: 120px;
    border: 1px solid #a58aff25;
    border-radius: 50%;
    pointer-events: none
}

.games {
    --accent: #ff924f;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    background: radial-gradient(ellipse at 85% 50%, #ff924f18, transparent 60%), #20171e;
    border: 1px solid #ff924f35;
    border-radius: 45px;
    padding: 55px
}

.games .chapter-intro {
    padding: 0;
    margin: 0
}

.games .chapter-intro h2 {
    font-size: 60px;
    text-transform: uppercase;
    color: #fff0de;
    text-shadow: 4px 4px 0 #904120
}

.games .chapter-intro h2 br {
    display: block
}

.games .chapter-symbol {
    position: static;
    font-size: 70px;
    margin: 20px 0;
    display: inline-block
}

.games .card-grid {
    grid-template-columns: 1fr
}

.games .project-card {
    min-height: 360px;
    border: 5px solid #ff924f;
    border-radius: 30px 30px 70px 70px;
    background: repeating-linear-gradient(0deg, #ffffff03, #ffffff03 2px, transparent 2px, transparent 5px), #151321;
    box-shadow: 0 0 30px #ff924f15, inset 0 0 40px #ff924f0a;
    padding: 32px
}

.games .project-card h3 {
    font-size: 43px;
    text-transform: uppercase;
    color: #ffb17e
}

.games .card-arrow {
    font-size: 45px
}

.art {
    --accent: #ff77bc;
    background: radial-gradient(ellipse at 20% 30%, #ff77bc10, transparent 60%)
}

.art .chapter-intro h2 {
    color: #ffb3d8
}

.art .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px
}

.art .project-card {
    min-height: 280px;
    background: #30202f;
    border: 1px solid #ff77bc35;
    border-radius: 60px 15px 60px 15px;
    --tilt: -2deg;
    padding: 30px
}

.art .project-card:nth-child(2n) {
    --tilt: 2deg;
    border-radius: 15px 60px 15px 60px;
    background: #242035
}

.art .project-card:before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff77bc18, #9c73ff10);
    right: -45px;
    bottom: -40px;
    pointer-events: none
}

.art .project-card h3 {
    font-size: 27px
}

.activity {
    max-width: 1170px;
    margin: 60px auto 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 40px
}

.activity h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    letter-spacing: -2px;
    line-height: 1.1
}

.activity p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted)
}

.activity-links {
    align-self: center
}

.activity-links a {
    display: flex;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px
}

.activity-links a:hover {
    color: #c5ff62
}

footer {
    border-top: 1px solid var(--line);
    padding: 35px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

footer>div {
    display: flex;
    gap: 25px;
    font-size: 12px
}

footer p {
    width: 100%;
    font-size: 10px;
    color: var(--muted)
}

.empty-state {
    text-align: center;
    padding: 60px
}

.empty-state button {
    background: #c5ff62;
    color: #10101a;
    border: 0;
    border-radius: 30px;
    padding: 15px 24px
}

.discovery-flash {
    animation: discovery 1.4s ease-out
}

.motion-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 10px
}

.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
    animation-play-state: paused !important
}

.motion-paused {
    scroll-behavior: auto
}

.motion-paused .floating-tile {
    transform: rotate(var(--angle))
}

.motion-paused .project-card {
    transition: none
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0) rotate(var(--angle))
    }

    50% {
        transform: translateY(-15px) rotate(calc(var(--angle) + 4deg))
    }
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes ticker {
    to {
        transform: translateX(-50%)
    }
}

@keyframes discovery {

    0%,
    40% {
        box-shadow: 0 0 0 4px var(--accent), 0 0 60px var(--accent)
    }

    100% {
        box-shadow: none
    }
}

@media(max-width:1100px) {
    .wordmark-sub {
        display: none
    }

    .hero {
        padding-top: 55px;
        min-height: 650px
    }

    .hero h1 {
        font-size: 78px
    }

    .hero-art {
        height: 510px
    }

    .floating-tile {
        width: 135px;
        height: 150px
    }

    .tile-study {
        width: 145px;
        height: 145px;
        left: calc(50% - 72px)
    }

    .orbit {
        width: 340px;
        height: 340px;
        left: calc(50% - 170px);
        top: 85px
    }

    .orbit-two {
        width: 240px;
        height: 240px;
        left: calc(50% - 120px);
        top: 135px
    }

    .chapter {
        margin-left: 25px;
        margin-right: 25px;
        padding: 30px
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .games {
        padding: 35px
    }

    .games .chapter-intro h2 {
        font-size: 45px
    }

    .activity {
        gap: 35px
    }
}

@media(max-width:760px) {
    .site-header {
        padding: 12px 20px
    }

    .wordmark {
        font-size: 12px;
        gap: 9px
    }

    .brand-mark {
        width: 33px;
        height: 33px;
        font-size: 20px
    }

    .site-header nav {
        gap: 15px;
        font-size: 11px
    }

    .nav-portfolio {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 50px 25px 35px;
        gap: 25px
    }

    .hero h1 {
        font-size: clamp(60px, 12vw, 90px);
        letter-spacing: -4px
    }

    .serif-word {
        letter-spacing: -4px
    }

    .hero-art {
        height: 480px;
        width: 100%;
        max-width: 490px;
        justify-self: center
    }

    .floating-tile {
        width: 145px;
        height: 155px
    }

    .tile-study {
        width: 150px;
        height: 150px;
        left: calc(50% - 75px);
        top: 180px
    }

    .tile-lab {
        top: 45px
    }

    .tile-build {
        top: 55px
    }

    .tile-play {
        bottom: 40px
    }

    .tile-art {
        bottom: 35px
    }

    .ticker {
        margin-bottom: 40px
    }

    .directory {
        padding: 20px 25px 40px
    }

    .directory-heading {
        flex-direction: column;
        align-items: start;
        gap: 0
    }

    .directory h2 {
        font-size: 30px
    }

    .search-label {
        width: 100%;
        margin-bottom: 10px
    }

    .chapter-nav {
        gap: 8px
    }

    .chapter-nav a {
        font-size: 11px;
        padding: 12px 14px;
        gap: 8px
    }

    .filter-row>.eyebrow {
        width: 100%
    }

    #resultCount {
        width: 100%
    }

    .chapter {
        padding: 27px 22px;
        margin: 0 16px 55px;
        border-radius: 30px
    }

    .chapter-intro {
        padding-right: 65px;
        margin-bottom: 28px
    }

    .chapter-intro h2 {
        font-size: 39px;
        letter-spacing: -2px
    }

    .chapter-symbol {
        right: -5px;
        font-size: 65px;
        top: 37px
    }

    .chapter-intro p {
        font-size: 12px
    }

    .project-card {
        padding: 20px;
        min-height: 250px
    }

    .project-card h3 {
        font-size: 20px
    }

    .games {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .games .chapter-intro h2 {
        font-size: 48px
    }

    .games .chapter-symbol {
        position: absolute;
        right: 0;
        top: 50px;
        font-size: 65px
    }

    .games .project-card {
        min-height: 300px
    }

    .art .card-grid {
        gap: 20px
    }

    .art .project-card {
        padding: 22px
    }

    .art .project-card h3 {
        font-size: 22px
    }

    .activity {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 15px 20px 50px;
        padding: 20px
    }

    .activity h2 {
        font-size: 38px
    }

    footer>div {
        flex-wrap: wrap;
        gap: 18px
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 61px
    }

    .hero-art {
        height: 420px
    }

    .floating-tile {
        width: 120px;
        height: 137px;
        padding: 15px
    }

    .floating-tile b {
        font-size: 54px
    }

    .floating-tile span {
        font-size: 8px
    }

    .floating-tile em {
        font-size: 10px
    }

    .tile-study {
        width: 135px;
        height: 135px;
        left: calc(50% - 67px);
        top: 156px
    }

    .tile-lab {
        left: 3%;
        top: 42px
    }

    .tile-build {
        right: 3%;
        top: 50px
    }

    .tile-play {
        left: 3%;
        bottom: 30px
    }

    .tile-art {
        right: 3%;
        bottom: 28px
    }

    .art-label,
    .art-footnote {
        font-size: 7px;
        letter-spacing: 1.5px
    }

    .orbit {
        width: 280px;
        height: 280px;
        left: calc(50% - 140px);
        top: 65px
    }

    .orbit-two {
        width: 200px;
        height: 200px;
        left: calc(50% - 100px);
        top: 105px
    }

    .hero-caption {
        font-size: 9px;
        gap: 12px
    }

    .hero-caption span+span {
        padding-left: 12px
    }

    .card-grid,
    .professional .card-grid,
    .art .card-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .project-card {
        min-height: 230px
    }

    .chapter-intro {
        padding-right: 42px
    }

    .chapter-intro h2 {
        font-size: 34px
    }

    .chapter-symbol {
        font-size: 49px;
        top: 40px
    }

    .games .chapter-intro h2 {
        font-size: 40px
    }

    .games .chapter-symbol {
        font-size: 45px
    }

    .art .project-card {
        min-height: 245px
    }

    .site-header nav {
        font-size: 10px;
        gap: 12px
    }

    .hero-actions {
        gap: 10px
    }

    .primary-link,
    .surprise-button {
        padding: 14px 17px;
        font-size: 12px
    }
}

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

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .floating-tile {
        transform: rotate(var(--angle))
    }
}

/* Application screenshots fill the existing preview frames at every breakpoint. */
.featured-preview:has(.project-screenshot) {
    padding: 0;
    height: 240px;
    min-height: 0;
    overflow: hidden;
}

.featured-preview .project-screenshot {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

@media (min-width: 701px) and (max-width: 1000px) {
    .featured-preview:has(.project-screenshot) {
        height: auto;
        min-height: 240px;
    }
}