
/* ==========================================
   TINY RIOT — EDITORIAL COLLAGE + PROJECT VIEWS
   WIDE MARGINS / REFINED EDITION
   ========================================== */

:root {
    --paper: #ffffff;
    --ink: #111111;
    --pink: #ff2b91;
    --yellow: #eaff00;
    --purple: #8c45ff;
    --orange: #ff672b;
    --font-display: Impact, "Arial Narrow", sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
    --font-typewriter: "Courier New", Courier, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body.view-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

/* ==========================================
   LANDING PAGE
   ========================================== */

.landing-view {
    transition: opacity 0.65s ease, transform 0.65s ease;
}

body.view-open .landing-view {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.985);
}

.site-header {
    position: relative;
    min-height: 72vh;
    padding: 22px clamp(28px, 9vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
}

/* THE RIVER — EXISTING DECORATIVE ARTWORK */

.site-header {
    overflow: visible;
    isolation: isolate;
}

.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    display: block;
    width: 37vw;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    top: -95px;
    z-index: 1;
    pointer-events: none;
}

.site-header::before {
    left: 19%;
    transform: rotate(-9deg);
    background:
        radial-gradient(circle at 50% 45%, #eaff00 0 13%, transparent 14%),
        radial-gradient(circle at 50% 45%, #111 0 27%, transparent 28%),
        repeating-linear-gradient(
            135deg,
            #ff2b91 0 12px,
            #ff85c2 12px 20px,
            #ffffff 20px 25px
        );
    border: 5px solid #111;
}

.site-header::after {
    left: 51%;
    transform: rotate(8deg);
    background:
        radial-gradient(ellipse at 50% 45%, #ff672b 0 18%, transparent 19%),
        radial-gradient(circle at 50% 45%, #ffffff 0 30%, transparent 31%),
        repeating-linear-gradient(
            45deg,
            #8c45ff 0 14px,
            #c4a4ff 14px 23px,
            #111111 23px 28px
        );
    border: 5px solid #111;
}

.edition {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    z-index: 5;
}

.brand {
    display: block;
    width: fit-content;
    max-width: 100%;
    position: relative;
    z-index: 4;
    font-family: var(--font-display);
    font-size: clamp(80px, 16vw, 220px);
    line-height: 0.72;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    color: var(--pink);
    transform: rotate(-4deg);
}

/* INTRODUCTION */

.intro {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px clamp(28px, 10vw, 160px) 90px;
}

.intro p {
    display: inline-block;
    background: var(--yellow);
    padding: 8px 12px;
    font-size: clamp(11px, 1.8vw, 16px);
    font-weight: 900;
    transform: rotate(-2deg);
}

.intro h1 {
    margin: 15px 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 7.8vw, 90px);
    line-height: 0.82;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

/* PROJECTS */

.projects {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: -100px auto 0;
    padding: 30px clamp(28px, 10vw, 160px) 150px;
    z-index: 2;
}

.projects h2 {
    position: relative;
    z-index: 4;
    font-family: var(--font-display);
    font-size: clamp(17px, 2.6vw, 24px);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(14px, 2vw, 28px);
    row-gap: clamp(25px, 4vw, 50px);
    position: relative;
}

.project-card {
    min-width: 0;
    position: relative;
    grid-column: span 3;
}

.project-card:nth-child(1) {
    grid-column: 1 / 5;
    margin-top: 0;
    transform: rotate(-4deg);
    z-index: 2;
}

.project-card:nth-child(2) {
    grid-column: 3 / 7;
    margin-top: -60px;
    transform: rotate(5deg);
    z-index: 1;
}

.project-card:nth-child(3) {
    grid-column: 1 / 5;
    margin-top: -20px;
    transform: rotate(-3deg);
    z-index: 2;
}

.project-image {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.project-image:disabled {
    cursor: default;
}

.image-placeholder {
    display: flex;
    aspect-ratio: 4 / 5;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(27px, 6vw, 78px);
    line-height: 0.85;
    text-align: center;
    transform: rotate(2deg);
    overflow: hidden;
}

.pillow-art {
    background: var(--pink);
    color: white;
    font-size: clamp(32px, 6vw, 74px);
}

.pillow-art span {
    font-size: 1.5em;
    color: var(--yellow);
}

.project-two .image-placeholder {
    background: var(--purple);
    color: white;
}

.project-three .image-placeholder {
    background: var(--ink);
    color: var(--yellow);
}

.project-caption {
    padding: 10px 7px;
}

.project-caption span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.project-caption h3 {
    margin: 5px 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 40px);
    line-height: 0.9;
}

.project-caption p {
    font-size: 12px;
    line-height: 1.4;
    max-width: 230px;
}

/* ==========================================
   BOTTOM NAVIGATION
   ========================================== */

.bottom-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 62px;
    padding: 12px clamp(24px, 6vw, 85px);
    background: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 40px);
}

.bottom-nav button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(10px, 1.6vw, 16px);
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;
    text-align: left;
    white-space: nowrap;
    color: #000000;
}

.bottom-nav button:hover,
.bottom-nav button.active {
    color: var(--pink);
}

/* ==========================================
   SHARED FULL-SCREEN VIEWS
   ========================================== */

.experience-view {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--paper);
    padding: 95px clamp(28px, 11vw, 175px) 120px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(22px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        visibility 0.65s;
}

.experience-view.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.experience-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    animation: content-arrives 0.7s ease both;
}

@keyframes content-arrives {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BACK TO RIOT CONTROL */

.close-view {
    position: fixed;
    z-index: 70;
    top: 22px;
    right: clamp(24px, 5vw, 75px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.3px;
    color: var(--ink);
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-view span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    line-height: 0.8;
}

.close-view small {
    font-family: var(--font-typewriter);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.5px;
}

.close-view:hover {
    color: var(--pink);
    transform: translateX(-3px);
}

.eyebrow,
.section-number {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-title {
    margin: 25px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(55px, 11vw, 130px);
    line-height: 0.76;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.page-title span,
.project-detail-heading h1 span {
    color: var(--pink);
}

.page-intro {
    max-width: 520px;
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.4;
}

/* ==========================================
   PILLOW'D PROJECT VIEW
   ========================================== */

.project-detail-hero {
    position: relative;
    margin: 5px 0 60px;
    padding-top: 20px;
}

.detail-artwork {
    position: relative;
    min-height: clamp(210px, 31vw, 340px);
    margin-top: 25px;
    background: var(--pink);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: rotate(-1deg);
}

.detail-artwork::before,
.detail-artwork::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border: 13px solid var(--yellow);
    border-radius: 50%;
    opacity: 0.85;
}

.detail-artwork::before {
    top: -85px;
    left: -45px;
}

.detail-artwork::after {
    bottom: -100px;
    right: -40px;
}

.artwork-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(52px, 11vw, 135px);
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.artwork-star {
    position: absolute;
    top: 15px;
    right: 7%;
    font-size: clamp(45px, 8vw, 95px);
    color: var(--yellow);
}

.artwork-subtitle {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 11px;
}

.hero-side-note {
    display: block;
    margin-top: 15px;
    text-align: right;
    font-family: var(--font-display);
    font-size: 14px;
    transform: rotate(-2deg);
}

.project-detail-heading {
    margin: 55px 0 30px;
}

.project-detail-heading h1 {
    margin: 12px 0;
    font-family: var(--font-display);
    font-size: clamp(55px, 11vw, 130px);
    line-height: 0.8;
}

.project-tagline {
    font-size: 18px;
    font-weight: 700;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ink);
    border: 1px solid var(--ink);
    margin: 40px 0 75px;
}

.project-meta div {
    background: white;
    padding: 16px;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.project-meta span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.project-meta strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: normal;
    text-transform: uppercase;
}

.detail-section {
    margin: clamp(55px, 7vw, 85px) 0;
}

.detail-section h2,
.download-section h2 {
    margin: 15px 0 25px;
    font-family: var(--font-display);
    font-size: clamp(45px, 9vw, 100px);
    line-height: 0.82;
    text-transform: uppercase;
}

.description-section p {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.75;
}

/* GALLERY */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 35px;
}

.gallery-thumb {
    position: relative;
    min-height: 165px;
    padding: 14px;
    border: 0;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.gallery-thumb:hover {
    transform: rotate(-2deg) scale(1.025);
}

.gallery-thumb span {
    font-family: var(--font-display);
    font-size: 25px;
}

.gallery-thumb strong {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.7vw, 32px);
    line-height: 0.9;
}

.gallery-thumb small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.thumb-one {
    background: var(--yellow);
}

.thumb-two {
    background: var(--pink);
    color: white;
}

.thumb-three {
    background: var(--purple);
    color: white;
}

.thumb-four {
    background: var(--ink);
    color: var(--yellow);
}

.thumb-five {
    background: var(--orange);
}

.thumb-six {
    background: #d9d9d9;
}

/* DOWNLOAD */

.download-section {
    margin: 85px 0;
    padding: 48px 7%;
    background: var(--yellow);
    transform: rotate(-1deg);
}

.download-section p {
    font-size: 16px;
}

.play-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--ink);
    color: white;
    font-family: var(--font-display);
    font-size: 25px;
    transition: background 0.2s ease;
}

.play-link:hover {
    background: var(--pink);
}

.play-link span {
    font-size: 31px;
}

.placeholder-note {
    display: block;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* PROJECT LEGAL FOOTER */

.project-legal {
    border-top: 2px solid var(--ink);
    padding: 25px 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    font-weight: 900;
}

.project-legal div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-legal a:hover {
    color: var(--pink);
    text-decoration: underline;
}

/* ==========================================
   SUPPORT
   ========================================== */

.game-selector-area {
    margin: 60px 0;
}

.game-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.game-selector button {
    border: 2px solid var(--ink);
    padding: 11px 16px;
    background: white;
    font-family: var(--font-display);
    font-size: 20px;
    cursor: pointer;
}

.game-selector button.selected {
    background: var(--yellow);
    font-weight: 900;
}

.game-selector button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.support-content h2 {
    margin: 55px 0 20px;
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 58px);
    line-height: 0.9;
}

.support-list {
    border-top: 2px solid var(--ink);
}

.support-list details {
    border-bottom: 1px solid var(--ink);
}

.support-list summary {
    padding: 18px 5px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-display);
    font-size: clamp(19px, 3.5vw, 29px);
}

.support-list summary::-webkit-details-marker {
    display: none;
}

.support-list summary span {
    color: var(--pink);
}

.support-list details p {
    max-width: 650px;
    padding: 0 5px 20px;
    line-height: 1.6;
}

.legal-list {
    border-top: 2px solid var(--ink);
}

.legal-list button {
    width: 100%;
    padding: 16px 5px;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(20px, 3.5vw, 31px);
}

.legal-list button:hover {
    color: var(--pink);
}

.support-footnote {
    margin-top: 70px;
    font-size: 14px;
}

.support-footnote button {
    border: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 18px;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================
   CUSTOMER SERVICE
   ========================================== */

.contact-form {
    max-width: 700px;
    margin: 55px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    margin-top: 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: white;
    color: var(--ink);
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
}

.form-submit {
    align-self: flex-start;
    margin-top: 20px;
    padding: 14px 20px;
    border: 0;
    background: var(--pink);
    color: white;
    font-family: var(--font-display);
    font-size: 22px;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--ink);
}

.form-note {
    font-size: 11px;
    line-height: 1.5;
    color: #555;
}

/* ==========================================
   ABOUT
   ========================================== */

.about-content h2 {
    margin: 70px 0 28px;
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 90px);
    line-height: 0.8;
}

.about-content > p:not(.eyebrow):not(.about-signature) {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.7;
}

.about-signature {
    display: inline-block;
    margin-top: 65px;
    padding: 14px;
    background: var(--yellow);
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 0.95;
    transform: rotate(-2deg);
}

/* ==========================================
   LANGUAGE
   ========================================== */

.language-list {
    max-width: 700px;
    margin: 55px 0;
    border-top: 2px solid var(--ink);
}

.language-list button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 18px 5px;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 58px);
}

.language-list button.selected,
.language-list button:hover {
    color: var(--pink);
}

/* ==========================================
   LEGAL DOCUMENT
   ========================================== */

.legal-document {
    max-width: 750px;
    margin: 45px 0;
    font-size: 15px;
    line-height: 1.7;
}

.legal-document h2 {
    margin-top: 38px;
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1;
}

.legal-document p {
    margin: 15px 0;
}

/* ==========================================
   GALLERY LIGHTBOX
   ========================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--ink);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-lightbox p {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 85px);
    text-align: center;
}

.gallery-lightbox span {
    color: var(--yellow);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 5vw;
    border: 0;
    background: transparent;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* ==========================================
   DESKTOP
   ========================================== */

@media (min-width: 800px) {

    .site-header {
        min-height: 75vh;
        padding: 35px clamp(55px, 10vw, 170px);
    }

    .brand {
        font-size: clamp(145px, 16.5vw, 230px);
    }

    .intro {
        padding: 30px clamp(55px, 11vw, 175px) 110px;
    }

    .projects {
        padding: 45px clamp(55px, 11vw, 175px) 165px;
        margin-top: -145px;
    }

    .project-grid {
        max-width: 1000px;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 27px;
    }

    .project-card:nth-child(1) {
        grid-column: 1 / 6;
        margin-top: 0;
    }

    .project-card:nth-child(2) {
        grid-column: 8 / 13;
        margin-top: 85px;
    }

    .project-card:nth-child(3) {
        grid-column: 3 / 8;
        margin-top: -45px;
    }

    .bottom-nav {
        padding: 16px clamp(35px, 6vw, 85px);
        min-height: 70px;
    }

    .experience-view {
        padding-left: clamp(55px, 11vw, 175px);
        padding-right: clamp(55px, 11vw, 175px);
    }
}

/* ==========================================
   SMALL SCREENS
   ========================================== */

@media (max-width: 480px) {

    .site-header {
        min-height: 55vh;
        padding: 18px 22px;
    }

    .brand {
        font-size: 19vw;
    }

    .intro {
        padding: 20px 26px 70px;
    }

    .intro h1 {
        font-size: 11.5vw;
    }

    .projects {
        padding-left: 26px;
        padding-right: 26px;
        margin-top: -65px;
    }

    .project-card:nth-child(2) {
        margin-top: -35px;
    }

    .project-card:nth-child(3) {
        margin-top: -15px;
    }

    .bottom-nav {
        min-height: 58px;
        padding: 10px 14px;
        gap: 8px;
    }

    .bottom-nav button {
        font-size: 10px;
        white-space: normal;
    }

    .experience-view {
        padding: 75px 26px 105px;
    }

    .close-view {
        top: 10px;
        right: 12px;
        padding: 9px 10px;
        gap: 7px;
    }

    .close-view span {
        font-size: 25px;
    }

    .close-view small {
        font-size: 9px;
    }

    .project-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-thumb {
        min-height: 135px;
    }

    .detail-artwork {
        min-height: 220px;
    }

    .project-legal {
        flex-direction: column;
    }

    .project-legal div {
        gap: 12px;
    }

    .download-section {
        padding: 35px 6%;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================
   TINY RIOT — PROJECT IMAGE REFINEMENT
   10% SMALLER + SLOW FLOATING MOVEMENT
   ========================================== */

.project-image {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    animation: project-float 28s ease-in-out infinite;
    will-change: transform;
}

/* Give each picture its own gentle rhythm */

.project-card:nth-child(1) .project-image {
    animation-duration: 26.5s;
    animation-delay: -8s;
}

.project-card:nth-child(2) .project-image {
    animation-duration: 23s;
    animation-delay: -17s;
}

.project-card:nth-child(3) .project-image {
    animation-duration: 29s;
    animation-delay: -12s;
}

/* Slow, subtle drifting — the cards stay in place */

@keyframes project-float {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(7px, -9px);
    }

    45% {
        transform: translate(-5px, -15px);
    }

    70% {
        transform: translate(-9px, -4px);
    }

    85% {
        transform: translate(4px, 7px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Keep the movement subtle on small screens */

@media (max-width: 480px) {
    @keyframes project-float {
        0% {
            transform: translate(0, 0);
        }

        25% {
            transform: translate(4px, -6px);
        }

        50% {
            transform: translate(-3px, -9px);
        }

        75% {
            transform: translate(-5px, 3px);
        }

        100% {
            transform: translate(0, 0);
        }
    }
}

/* Respect visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
    .project-image {
        animation: none;
    }
}

/* ==========================================
   PROJECT IMAGE — HOVER & TOUCH EFFECTS
   ========================================== */

.image-placeholder {
    opacity: 1;
    transform:
        perspective(700px)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg))
        rotate(2deg);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* DESKTOP — slightly transparent on hover */

@media (hover: hover) and (pointer: fine) {
    .project-image:hover .image-placeholder {
        opacity: 0.60;
    }
}

/* TOUCH — slightly transparent while pressed or swiping */

.project-image.touch-active .image-placeholder {
    opacity: 0.60;
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .image-placeholder {
        transition: none;
    }
}

/* ==========================================
   TINY RIOT — RANDOM EDITION ART DIRECTION
   ========================================== */

/* Shared edition variables */

:root {
    --edition-accent: #eaff00;
    --edition-secondary: #ff2b91;
}

/* The brand becomes a printable object */

.brand {
    position: relative;
    isolation: isolate;
    color: var(--edition-accent);
    text-shadow: 2px 2px 0 var(--edition-secondary);
    transition: color 0.5s ease;
}

/* Scratches and imperfect ink */

.brand::before,
.brand::after {
    content: "";
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.brand::before {
    width: 38%;
    height: 5px;
    top: 28%;
    left: 32%;
    background: var(--ink);
    transform: rotate(-12deg);
    opacity: 0.8;
}

.brand::after {
    width: 23%;
    height: 3px;
    top: 66%;
    left: 59%;
    background: var(--edition-secondary);
    transform: rotate(8deg);
}

/* Editorial heading treatment */

.intro h1,
.projects h2,
.project-caption h3,
.page-title,
.project-detail-heading h1,
.detail-section h2,
.about-content h2 {
    position: relative;
    color: var(--ink);
}

/* Vintage paper editions */

body[data-edition="pink"],
body[data-edition="orange"] {
    background: var(--paper);
}

body[data-edition="pink"] .brand,
body[data-edition="orange"] .brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.085em;
    line-height: 0.78;
    transform: rotate(-3deg);
    text-shadow: 3px 3px 0 var(--edition-secondary);
}

body[data-edition="pink"] .intro h1,
body[data-edition="orange"] .intro h1,
body[data-edition="pink"] .page-title,
body[data-edition="orange"] .page-title,
body[data-edition="pink"] .detail-section h2,
body[data-edition="orange"] .detail-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.065em;
    line-height: 0.85;
}

body[data-edition="pink"] .intro p,
body[data-edition="orange"] .intro p {
    background: var(--edition-secondary);
    color: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    transform: rotate(-1deg);
}

body[data-edition="pink"] .project-caption h3,
body[data-edition="orange"] .project-caption h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

body[data-edition="pink"] .projects h2,
body[data-edition="orange"] .projects h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    text-transform: none;
}

/* Cobalt — oversized italic editorial */

body[data-edition="cobalt"] .brand {
    font-style: italic;
    transform: rotate(-7deg) skewX(-5deg);
    letter-spacing: -0.09em;
    text-shadow: -5px 4px 0 var(--edition-secondary);
}

body[data-edition="cobalt"] .intro h1,
body[data-edition="cobalt"] .page-title,
body[data-edition="cobalt"] .detail-section h2 {
    font-style: italic;
    transform: skewX(-4deg);
    letter-spacing: -0.075em;
}

body[data-edition="cobalt"] .intro p {
    background: var(--edition-secondary);
    color: white;
    transform: rotate(2deg);
}

/* Acid — loud, compressed and aggressive */

body[data-edition="acid"] .brand {
    letter-spacing: -0.09em;
    transform: rotate(-5deg) scaleY(1.08);
    text-shadow: 5px 3px 0 var(--edition-secondary);
}

body[data-edition="acid"] .intro h1,
body[data-edition="acid"] .page-title,
body[data-edition="acid"] .detail-section h2 {
    letter-spacing: -0.075em;
    text-shadow: 2px 2px 0 var(--edition-accent);
}

body[data-edition="acid"] .intro p {
    background: var(--edition-accent);
    color: var(--ink);
    transform: rotate(2deg);
}

/* Purple — experimental collage */

body[data-edition="purple"] .brand {
    transform: rotate(3deg) skewX(-4deg);
    text-shadow: -5px 5px 0 var(--edition-secondary);
    letter-spacing: -0.08em;
}

body[data-edition="purple"] .intro h1,
body[data-edition="purple"] .page-title {
    transform: rotate(-1deg);
    letter-spacing: -0.065em;
}

body[data-edition="purple"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    transform: rotate(-3deg);
}

/* Ink — stark monochrome print */

body[data-edition="ink"] .brand {
    font-style: italic;
    letter-spacing: -0.09em;
    text-shadow: 4px 4px 0 var(--edition-secondary);
    transform: rotate(-2deg);
}

body[data-edition="ink"] .intro p {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(1deg);
}

body[data-edition="ink"] .project-card .image-placeholder {
    filter: grayscale(1);
}

body[data-edition="ink"] .project-caption h3 {
    font-style: italic;
}

/* Scratches across selected editorial elements */

body[data-edition="pink"] .intro h1::after,
body[data-edition="orange"] .intro h1::after,
body[data-edition="purple"] .intro h1::after {
    content: "";
    position: absolute;
    left: 12%;
    top: 48%;
    width: 65%;
    height: 4px;
    background: var(--edition-secondary);
    transform: rotate(-7deg);
    pointer-events: none;
}

body[data-edition="acid"] .projects h2::after,
body[data-edition="cobalt"] .projects h2::after,
body[data-edition="ink"] .projects h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 110px;
    height: 3px;
    background: var(--edition-accent);
    transform: rotate(-2deg);
}

/* Decorative print damage */

body[data-edition="pink"] .site-header::before,
body[data-edition="orange"] .site-header::before {
    filter: sepia(0.65) saturate(0.8);
}

body[data-edition="cobalt"] .site-header::after {
    filter: hue-rotate(35deg) contrast(1.3);
}

body[data-edition="ink"] .site-header::before,
body[data-edition="ink"] .site-header::after {
    filter: grayscale(1) contrast(1.4);
}

/* Edition-specific navigation */

body[data-edition="pink"] .bottom-nav button:hover,
body[data-edition="pink"] .bottom-nav button.active,
body[data-edition="orange"] .bottom-nav button:hover,
body[data-edition="orange"] .bottom-nav button.active {
    color: var(--edition-accent);
}

body[data-edition="cobalt"] .bottom-nav button:hover,
body[data-edition="cobalt"] .bottom-nav button.active,
body[data-edition="purple"] .bottom-nav button:hover,
body[data-edition="purple"] .bottom-nav button.active {
    color: var(--edition-accent);
}

/* Shared accent colour for interactive details */

body[data-edition] .close-view:hover,
body[data-edition] .legal-list button:hover,
body[data-edition] .language-list button:hover {
    color: var(--edition-accent);
}

/* Mobile adjustments */

@media (max-width: 480px) {
    .brand::before {
        height: 3px;
    }

    .brand::after {
        height: 2px;
    }

    body[data-edition="pink"] .brand,
    body[data-edition="orange"] .brand {
        letter-spacing: -0.09em;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .brand {
        transition: none;
    }
}

/* ==========================================
   TINY RIOT — NEW EDITIONS
   CORAL / MOSS / RISO / POOL / CUTOUT
   ========================================== */

/* Shared paper and navigation */

.bottom-nav {
    background: var(--paper);
}

.experience-view {
    background: var(--paper);
}

/* CORAL — vintage serif, without mustard */

body[data-edition="coral"] .brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.085em;
    line-height: 0.78;
    transform: rotate(-3deg);
    text-shadow: 3px 3px 0 var(--edition-secondary);
}

body[data-edition="coral"] .intro h1,
body[data-edition="coral"] .page-title,
body[data-edition="coral"] .detail-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.065em;
    line-height: 0.85;
}

body[data-edition="coral"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    transform: rotate(-1deg);
}

body[data-edition="coral"] .project-caption h3,
body[data-edition="coral"] .projects h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

body[data-edition="coral"] .projects h2 {
    text-transform: none;
}

body[data-edition="coral"] .site-header::before {
    filter: sepia(0.25) saturate(1.1);
}

body[data-edition="coral"] .intro h1::after {
    content: "";
    position: absolute;
    left: 12%;
    top: 48%;
    width: 65%;
    height: 4px;
    background: var(--edition-secondary);
    transform: rotate(-7deg);
    pointer-events: none;
}

/* MOSS — imperfect green print */

body[data-edition="moss"] .brand {
    font-style: italic;
    letter-spacing: -0.09em;
    text-shadow: 4px 4px 0 var(--edition-secondary);
    transform: rotate(-2deg);
}

body[data-edition="moss"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    transform: rotate(1deg);
}

body[data-edition="moss"] .project-caption h3 {
    font-style: italic;
}

body[data-edition="moss"] .project-card .image-placeholder {
    border: 2px solid var(--ink);
}

body[data-edition="moss"] .site-header::before,
body[data-edition="moss"] .site-header::after {
    filter: sepia(0.25) hue-rotate(55deg) saturate(0.8);
}

body[data-edition="moss"] .projects h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 110px;
    height: 3px;
    background: var(--edition-accent);
    transform: rotate(-2deg);
}

/* RISO — two-colour screen-print collision */

body[data-edition="riso"] .brand {
    font-weight: 900;
    letter-spacing: -0.09em;
    text-shadow:
        6px 3px 0 var(--edition-secondary),
        -2px -2px 0 var(--edition-accent);
    transform: rotate(-3deg);
}

body[data-edition="riso"] .intro h1,
body[data-edition="riso"] .page-title,
body[data-edition="riso"] .detail-section h2 {
    letter-spacing: -0.07em;
    text-shadow: 2px 2px 0 var(--edition-secondary);
}

body[data-edition="riso"] .intro p {
    background: var(--edition-accent);
    color: white;
    transform: rotate(2deg);
    box-shadow: 5px 4px 0 var(--edition-secondary);
}

body[data-edition="riso"] .project-card:nth-child(1) .image-placeholder {
    background:
        radial-gradient(circle, rgba(48,44,72,.2) 1px, transparent 1.5px),
        var(--edition-accent);
    background-size: 7px 7px;
}

body[data-edition="riso"] .project-card:nth-child(2) .image-placeholder {
    background:
        repeating-linear-gradient(
            -45deg,
            var(--edition-secondary) 0 9px,
            #75b1e8 9px 15px
        );
}

body[data-edition="riso"] .project-card:nth-child(3) .image-placeholder {
    background: var(--edition-secondary);
}

body[data-edition="riso"] .site-header::before {
    filter: hue-rotate(100deg) saturate(1.5);
}

body[data-edition="riso"] .site-header::after {
    filter: hue-rotate(-35deg) saturate(1.5);
}

body[data-edition="riso"] .project-caption h3 {
    text-shadow: 2px 2px 0 var(--edition-secondary);
}

/* POOL — fluid, aquatic and playful */

body[data-edition="pool"] .brand {
    font-style: italic;
    letter-spacing: -0.1em;
    transform: rotate(-5deg) skewX(-5deg);
    text-shadow: 5px 4px 0 var(--edition-secondary);
}

body[data-edition="pool"] .intro h1,
body[data-edition="pool"] .page-title,
body[data-edition="pool"] .detail-section h2 {
    font-style: italic;
    letter-spacing: -0.07em;
    transform: skewX(-3deg);
}

body[data-edition="pool"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    border-radius: 30px;
    transform: rotate(-3deg);
}

body[data-edition="pool"] .project-card .image-placeholder {
    border-radius: 45% 45% 8px 8px;
}

body[data-edition="pool"] .project-card:nth-child(2) .image-placeholder {
    border-radius: 8px 45% 8px 45%;
}

body[data-edition="pool"] .site-header::before,
body[data-edition="pool"] .site-header::after {
    border-radius: 45%;
    filter: hue-rotate(110deg) saturate(1.2);
}

body[data-edition="pool"] .projects h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 130px;
    height: 5px;
    border-radius: 50%;
    background: var(--edition-secondary);
}

/* CUTOUT — torn-paper collage */

body[data-edition="cutout"] .brand {
    letter-spacing: -0.08em;
    transform: rotate(-2deg);
    text-shadow:
        5px 5px 0 var(--edition-secondary),
        -2px -2px 0 var(--ink);
}

body[data-edition="cutout"] .intro h1,
body[data-edition="cutout"] .page-title,
body[data-edition="cutout"] .detail-section h2 {
    letter-spacing: -0.065em;
}

body[data-edition="cutout"] .intro p {
    background: var(--edition-secondary);
    color: white;
    transform: rotate(3deg);
    box-shadow: 5px 5px 0 var(--edition-accent);
}

body[data-edition="cutout"] .project-card:nth-child(1) .image-placeholder {
    clip-path: polygon(3% 0, 100% 5%, 96% 100%, 0 94%);
    background: var(--edition-accent);
}

body[data-edition="cutout"] .project-card:nth-child(2) .image-placeholder {
    clip-path: polygon(0 5%, 95% 0, 100% 92%, 5% 100%);
    background: var(--edition-secondary);
    color: white;
}

body[data-edition="cutout"] .project-card:nth-child(3) .image-placeholder {
    clip-path: polygon(5% 0, 100% 3%, 94% 100%, 0 95%);
}

body[data-edition="cutout"] .project-caption h3 {
    display: inline-block;
    padding: 3px 7px;
    background: var(--edition-secondary);
    color: white;
    transform: rotate(-2deg);
}

body[data-edition="cutout"] .site-header::before {
    filter: hue-rotate(125deg);
}

body[data-edition="cutout"] .site-header::after {
    filter: sepia(0.3) saturate(1.3);
}

/* Shared colour for active navigation */

body[data-edition] .bottom-nav button:hover,
body[data-edition] .bottom-nav button.active {
    color: var(--edition-accent);
}

body[data-edition] .close-view:hover,
body[data-edition] .legal-list button:hover,
body[data-edition] .language-list button:hover {
    color: var(--edition-accent);
}

/* Small-screen adjustments */

@media (max-width: 480px) {
    body[data-edition="coral"] .brand {
        letter-spacing: -0.09em;
    }

    body[data-edition="riso"] .brand {
        text-shadow: 3px 2px 0 var(--edition-secondary);
    }

    body[data-edition="cutout"] .project-card .image-placeholder {
        clip-path: none;
    }
}

/* ==========================================
   TINY RIOT — CLEAN COLOUR EDITIONS
   POP / FRESH / CANDY
   ========================================== */

/* POP — bold primary-colour graphics */

body[data-edition="pop"] .brand {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.065em;
    transform: rotate(-3deg);
    text-shadow: 5px 5px 0 var(--edition-secondary);
}

body[data-edition="pop"] .intro h1,
body[data-edition="pop"] .page-title,
body[data-edition="pop"] .detail-section h2 {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-shadow: none;
}

body[data-edition="pop"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    transform: rotate(2deg);
}

body[data-edition="pop"] .project-card .image-placeholder {
    border-radius: 0;
    filter: none;
}

body[data-edition="pop"] .projects h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
}

/* FRESH — bright, rounded and optimistic */

body[data-edition="fresh"] .brand {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-style: normal;
    letter-spacing: -0.09em;
    transform: rotate(-2deg);
    text-shadow: 5px 4px 0 var(--edition-secondary);
}

body[data-edition="fresh"] .intro h1,
body[data-edition="fresh"] .page-title,
body[data-edition="fresh"] .detail-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-style: normal;
    letter-spacing: -0.07em;
}

body[data-edition="fresh"] .intro p {
    background: var(--edition-secondary);
    color: var(--ink);
    border-radius: 30px;
    transform: rotate(-2deg);
}

body[data-edition="fresh"] .project-card .image-placeholder {
    border-radius: 18px;
}

body[data-edition="fresh"] .project-card:nth-child(2) .image-placeholder {
    border-radius: 45px 8px 45px 8px;
}

/* CANDY — playful, saturated and graphic */

body[data-edition="candy"] .brand {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-style: normal;
    letter-spacing: -0.095em;
    transform: rotate(-4deg);
    text-shadow: 6px 5px 0 var(--edition-secondary);
}

body[data-edition="candy"] .intro h1,
body[data-edition="candy"] .page-title,
body[data-edition="candy"] .detail-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-style: normal;
    letter-spacing: -0.075em;
}

body[data-edition="candy"] .intro p {
    background: var(--edition-accent);
    color: white;
    transform: rotate(2deg);
}

body[data-edition="candy"] .project-card:nth-child(1) .image-placeholder {
    background: var(--edition-accent);
    color: white;
    border-radius: 0 45px 0 45px;
}

body[data-edition="candy"] .project-card:nth-child(2) .image-placeholder {
    background: var(--edition-secondary);
    color: var(--ink);
    border-radius: 45px 0 45px 0;
}

body[data-edition="candy"] .project-card:nth-child(3) .image-placeholder {
    background: var(--edition-secondary);
    color: var(--ink);
    border-radius: 50%;
}

/* Clean editions: no distressed scratches */

body[data-edition="pop"] .brand::before,
body[data-edition="pop"] .brand::after,
body[data-edition="fresh"] .brand::before,
body[data-edition="fresh"] .brand::after,
body[data-edition="candy"] .brand::before,
body[data-edition="candy"] .brand::after {
    display: none;
}

body[data-edition="pop"] .intro h1::after,
body[data-edition="fresh"] .intro h1::after,
body[data-edition="candy"] .intro h1::after {
    display: none;
}

/* ==========================================
   PROJECT IMAGES — ANOTHER SMALL REDUCTION
   ========================================== */

.project-image {
    width: 85%;
}
/* =====================================
   PROJECT IMAGES — FREER FLOATING
   ===================================== */

.project-image {
    width: 85%;
    position: relative;
    z-index: 1;
}

.project-card {
    overflow: visible;
}

.project-image:nth-child(1) {
    animation-duration: 24s;
}

.project-image:nth-child(2) {
    animation-duration: 21s;
}

.project-image:nth-child(3) {
    animation-duration: 26s;
}

/* Larger, more organic movement */

@keyframes project-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(22px, -25px) rotate(2deg);
    }

    45% {
        transform: translate(-26px, 18px) rotate(-2.5deg);
    }

    70% {
        transform: translate(18px, 32px) rotate(1.5deg);
    }

    85% {
        transform: translate(-20px, -18px) rotate(-1.5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Keep the movement restrained on smaller screens */

@media (max-width: 700px) {
    .project-image:nth-child(1) {
        animation-duration: 24s;
    }

    .project-image:nth-child(2) {
        animation-duration: 22s;
    }

    .project-image:nth-child(3) {
        animation-duration: 26s;
    }

    @keyframes project-float {
        0% {
            transform: translate(0, 0) rotate(0deg);
        }

        25% {
            transform: translate(10px, -14px) rotate(1deg);
        }

        50% {
            transform: translate(-12px, 12px) rotate(-1deg);
        }

        75% {
            transform: translate(12px, 17px) rotate(1deg);
        }

        100% {
            transform: translate(0, 0) rotate(0deg);
        }
    }
}
