:root {
    --gap: 2rem;
    --accent: #39FF14;
}

* {
    cursor: none;
}


/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */

p {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 300;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

h1 {
    margin: 0;
    font-family: "doto";
    color: black;
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 300;
    color: black;
    font-size: 2rem;
    margin: 0;
}

h3 {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 300;
    color: #404040;
    font-size: 1.2rem;
    margin: 0;
}

h4 {
    font-family: "doto";
    font-size: 1rem;
    font-weight: 200;
    color: black;
    margin: 0;
}


/* ─── LAYOUT ─────────────────────────────────────────────────── */

html,
body {
    padding-top: 4rem;
    background: white;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

hr.styledHr {
    border: none;
    height: 1px;
    background-color: grey;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ─── CURSOR ───────────────────────────────────────────────────*/

.cursor {
    width: 1px;
    height: 1rem;
    left: -10px;
    top: -10px;
    background: #fff;
    mix-blend-mode: exclusion;
    border-radius: 0;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999999;
    transition:
        width 0.25s ease,
        height 0.25s ease,
        transform 0.25s ease;
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1px;
    background: #fff;
    transition:
        width 0.25s ease,
        height 0.25s ease;
}

.cursor.is-hovering {
    width: 1px;
    height: 0.6rem;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.75);
}

.cursor.is-hovering::after {
    width: 0.6rem;
    height: 1px;
}


/* ─── BOUNCING IMAGE ─────────────────────────────────────────── */

.bouncingImg {
    display: block;
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 999;
}

.bouncingImg.is-hovering {
    width: 20rem;
    height: 20rem;
    z-index: 999;
}

.bouncingImg.active {
    opacity: 1;
}


/* ─── TAGS ───────────────────────────────────────────────────── */

.headingWithTags {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .headingWithTags {
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.15rem, 0.35vw, 0.25rem) clamp(0.45rem, 1.2vw, 0.75rem);
    border-radius: 0;
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.5rem, 0.75vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    user-select: none;
    background: transparent;
    border: 1px solid currentColor;
}

.tag-discursive {
    color: #39FF14;
    border-color: #39FF14;
}

/* neon green */
.tag-product {
    color: #0047FF;
    border-color: #0047FF;
}

/* neon blue */
.tag-graphic {
    color: #FF073A;
    border-color: #FF073A;
}

/* neon red */
.tag-motion {
    color: #FF00FF;
    border-color: #FF00FF;
}

/* magenta */
.tag-interactive {
    color: #00AAFF;
    border-color: #00AAFF;
}

/* sky blue */
.tag-conceptual {
    color: #888888;
    border-color: #888888;
}

/* gray */
.tag-research {
    color: #FF6600;
    border-color: #FF6600;
}

/* electric orange */
.tag-experimental {
    color: #CC00FF;
    border-color: #CC00FF;
}

/* ─── NAVIGATION / GLASS PANEL ───────────────────────────────── */

.glassPanel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.timeContainer {
    position: relative;
    overflow: hidden;
    width: 100vw;
    white-space: nowrap;
    border-bottom: 1px solid rgba(160, 160, 160, 0.45);
}

.clock {
    display: inline-block;
    white-space: nowrap;
    animation: slideClock 17s linear infinite;
    animation-delay: 0s;
}

.clock h4 {
    margin: 0;
    padding-right: var(--gap);
    white-space: nowrap;
}

.headerContainer {
    overflow: hidden;
    border-bottom: 1px solid rgba(160, 160, 160, 0.45);
    transition: background 0.15s ease;
}

.headerContainer:hover {
    background: black;
}

.headerContainer:hover .animatedHeader {
    color: white;
}

header {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: slide 20s linear infinite;
    --from: 0;
    --to: -50%;
    /* remove the border-bottom from header itself */
}

.animatedHeader {
    margin: 0;
    padding-right: 0;
    white-space: nowrap;
}

.timeContainer:hover {
    background: black;
}

.animatedHeader:hover {
    background: black;
}

.timeContainer:hover h4,
header:hover .animatedHeader {
    color: white;
}

@keyframes slide {
    from {
        transform: translateX(var(--from));
    }

    to {
        transform: translateX(var(--to));
    }
}

@keyframes slideClock {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100vw);
    }
}

.navContainer {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(160, 160, 160, 0.45);
}

.navContainer a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;

    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 100;
    font-size: 1rem;
    background: none;
    border: 0;
    border-right: 1px solid rgba(160, 160, 160, 0.45);
    text-decoration: none;
    color: inherit;
    transition: font-weight 0.15s ease;
}

.navContainer a::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #d9d9d9;
    border: 1px solid rgba(160, 160, 160, 0.45);
    box-sizing: border-box;
    right: -4px;
    bottom: -4px;
}

.navContainer a:last-child {
    border-right: none;
}

.navContainer a:last-child::after {
    display: none;
}

.navContainer a::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
}

.navContainer a:hover {
    font-weight: 400;
    color: #FFFFFF;
    background: black;
}

.navContainer a:hover::before {
    opacity: 1;
}

.navContainer a.active,
.navContainer a.active:hover {
    font-weight: 500;
    color: #FFFFFF;
    background: black;
}

.navContainer a.active::before {
    opacity: 1;
}


/* ─── POPUP ──────────────────────────────────────────────────── */

#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#popupBox {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 20px;
    text-align: center;
    max-width: 300px;
}

.closeButton {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 10px 20px;
    border: none;
}

#closeButton {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
}

/* ─── WORK GRID ──────────────────────────────────────────────── */

.workContainer {
    width: 80%;
    margin: 2rem auto;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(5, auto);
    row-gap: 9rem;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
    padding-bottom: 0;
}

.workContainer>div:last-child {
    margin-bottom: 0;
}

.workContainer .workButton {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.workContainer .workButton h3 {
    position: relative;
}

.workContainer .workButton h3::after {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    white-space: nowrap;
}

.workContainer .workButton:hover h3 {
    color: transparent;
}

.workContainer .workButton:hover h3::after {
    opacity: 1;
    font-weight: 500;
    color: var(--accent);
}


/* ─── FOOTER ─────────────────────────────────────────────────── */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: black;
    color: white;
    position: relative;
    z-index: 2;
}

.animatedFooterWrap {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(160, 160, 160, 0.45);
}

.animatedFooterTrack {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: slideFooter 22s linear infinite;
    --from: 0;
    --to: -20%;
}

.animatedFooter {
    color: white;
    margin: 0;
    white-space: nowrap;
}

.staticFooter {
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(160, 160, 160, 0.45);
}

.staticFooterContent {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "doto";
    font-size: 1rem;
    font-weight: 300;
    padding: 4px 0;
}

.staticFooterContent button,
.staticFooterContent a {
    font: inherit;
    color: white;
    background: none;
    border: none;
    cursor: none;
    text-decoration: none;
}

.staticFooter button:hover,
.staticFooter a:hover {
    font-weight: 600;
}

@keyframes slideFooter {
    from {
        transform: translateX(var(--to));
    }

    to {
        transform: translateX(var(--from));
    }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────── */

.aboutContainer {
    width: 97%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 8rem;
}

.aboutContainer a {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    background: none;
    border: none;
    cursor: none;
}

.aboutItem,
.aboutItemMerged {
    padding: 20px;
    text-align: left;
}

.aboutItemMerged {
    grid-column: span 2;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    align-self: center;
}

.aboutImg {
    display: block;
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    top: 0;
    left: 0;
    pointer-events: none;
}

.subHeadingOffset {
    margin-left: 2.7%;
    text-align: left;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

/* ─── PROJECTS  ─────────────────────────────────────────────── */

.fixedExhibition {
    position: fixed;
    text-align: right;
    top: auto;
    margin-top: 2.3%;
    right: 2.5%;
    width: clamp(220px, 30vw, 420px);
    box-sizing: border-box;
}

.fixedExhibition :hover {
    color: var(--accent);
}

.fixedProject {
    position: fixed;
    left: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    width: 30%;
    max-width: 360px;
    box-sizing: border-box;
    background: #FFFFFF;
}

@media (max-width: 900px) {
    .fixedProject {
        width: 10vw;
        max-width: 150px;
        min-width: 110px;
    }

    .fixedProject a p {
        font-size: 0.80rem;
    }
}

.fixedProject a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fixedProject a::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    flex-shrink: 0;
}

.fixedProject a h3 {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 200;
    font-size: 1rem;
    background: none;
    border: none;
    text-decoration: none;
    color: inherit;
}

.fixedProject a:hover p {
    color: #000;
    font-weight: 500;
}

.fixedProject a.active p {
    color: #000;
    font-weight: 700;
}

.fixedProject a:hover::before,
.fixedProject a.active::before {
    opacity: 1;
}

.scrollProject {
    text-align: justify;
    margin-left: 32.5%;
    margin-top: 2.5%;
    width: 62.5%;
    max-width: 95%;
    box-sizing: border-box;
    overflow-y: auto;
}

.scrollProject-Text {
    background: #FFFFFF;
    color: #FFFFFF;
}

.scrollProject-Media {
    background: var(--accent);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* ─── IMAGE SLIDER ───────────────────────────────────────────── */

.imgSlider {
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.track {
    margin: 0;
    padding: 0;
    display: flex;
    animation: mySlider 70s linear infinite;
}

.mySlider {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.mySlider img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid gainsboro;
}

@keyframes mySlider {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-900%);
    }
}

.landscapeImg {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.landscapeImg img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    display: block;
}


/* ─── DOC BUTTON ─────────────────────────────────────────────── */

.doc-button {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    background: none;
    border: none;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    display: inline-block;
    transform-origin: left center;
}

.doc-button:hover,
.doc-button:focus-visible {
    color: black;
    font-weight: 700;
    background-color: #39FF14;
    text-decoration: none;
    transform: scaleX(0.8);
}

/* ─── CAROUSEL ───────────────────────────────────────────────────────────────── */

.carousel {
    --img-height: 70vh;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
}

.carousel-main {
    flex: 1 1 0;
    min-width: 0;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide:first-child,
.carousel-slide:target {
    display: block;
}

.carousel-main:has(.carousel-slide:target) .carousel-slide:first-child:not(:target) {
    display: none;
}

.carousel-slide img {
    width: 100%;
    height: var(--img-height);
    object-fit: cover;
    object-position: center;
    display: block;
}

.thumbs {
    width: 110px;
    height: var(--img-height);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-sizing: border-box;
}

.thumb {
    display: block;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    opacity: .25;
    transition: opacity 0.15s ease;
    outline: none;
    cursor: pointer;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    outline-offset: -2px;
}

@media (max-width: 768px) {
    .carousel {
        flex-direction: column;
    }

    .carousel-slide img {
        height: 50vh;
    }

    .thumbs {
        width: 100%;
        height: 80px;
        flex-direction: row;
    }

    .thumb {
        min-height: unset;
        height: 80px;
    }

    .thumb img {
        height: 80px;
    }
}

/* ─── PROJECT GRID ───────────────────────────────────────────── */

.projectGridContainer {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    grid-auto-rows: var(--row-height, 300px);
    gap: 10px;
}

.projectGridImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projectGridCaption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.projectGridContainer>div {
    display: flex;
    flex-direction: column;
}

.projectGridImg.featured {
    grid-column: span 1;
}

@media (min-width: 650px) {
    .projectGridImg.featured {
        grid-column: span var(--featured-span, 2);
    }
}

.projectGridImg.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.projectGridContainer.grid-auto {
    grid-auto-rows: auto;
    overflow: hidden;
}

.projectGridContainer.grid-auto .projectGridImg {
    height: auto;
    object-fit: contain;
}

/* ─── GRAPHICS SECTION ───────────────────────────────────────── */

.graphicsContainer {
    width: 95%;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.graphicsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    align-items: center;
}

.graphicsImg {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.graphicsImg:hover {
    transform: scale(1.05);
}


/* ─── VIDEO ──────────────────────────────────────────────────── */

.videoContainer {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
}

.videoContainer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ─── ARCHIVE / INDEX TABLE ──────────────────────────────────── */

.archiveWrap {
    width: 92%;
    margin: 2rem auto 4rem;
}

.archiveColHeader {
    display: grid;
    grid-template-columns: 4rem 1fr 5rem 8rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.35rem;
    margin-bottom: 0.2rem;
}

.archiveColHeader span {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
}

.archiveColHeader span:last-child {
    text-align: right;
}

.archiveHint {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 200;
    color: #bbb;
    letter-spacing: 0.08em;
    padding: 0.3rem 0 0.5rem;
    font-style: italic;
}

.archiveTable {
    width: 100%;
}

.archiveRow {
    display: grid;
    grid-template-columns: 4rem 1fr 5rem 8rem;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.22rem 0;
    cursor: pointer;
}

.archiveRow .cell {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    font-weight: 300;
    color: #333;
    line-height: 1.5;
    transition: color 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archiveRow .cell-index {
    color: #bbb;
    font-weight: 200;
}

.archiveRow .cell-title {
    padding-right: 1rem;
}

.archiveRow .cell-year {
    color: #888;
}

.archiveRow .cell-medium {
    color: #aaa;
    text-align: right;
    font-style: italic;
}

.archiveRow:hover .cell-index,
.archiveRow:hover .cell-year,
.archiveRow:hover .cell-medium {
    color: var(--accent);
    opacity: 0.7;
}

.archiveRow:hover .cell-title {
    color: var(--accent);
    opacity: 1;
}

.archiveRow.is-open .cell {
    color: var(--accent);
}

.archiveRow.is-open .cell-index,
.archiveRow.is-open .cell-year,
.archiveRow.is-open .cell-medium {
    opacity: 0.7;
}

.archiveRow.is-open .cell-title {
    opacity: 1;
}

/* expand/collapse panel */
.archivePanel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid #f0f0f0;
}

.archivePanelInner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0 2rem;
    align-items: start;
}

/* text-only entries span full width */
.archivePanelInner--text {
    grid-template-columns: 1fr;
    max-width: 60%;
}

.archiveMedia {
    /* individual */
    width: 100%;
    height: auto;
    display: block;
}

.archiveMediaGroup {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 70vh;
}

.archiveDescription {
    font-size: 0.82rem;
    font-weight: 300;
    color: #555;
    line-height: 1.7;
}

.archiveMeta {
    margin-top: 1.2rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    font-weight: 200;
    color: #bbb;
    letter-spacing: 0.1em;
}

.archivePanelInner--pdf {
    grid-template-columns: 2fr 1fr;
}

.archivePdf {
    width: 100%;
    height: 70vh;
    border: 1px solid #f0f0f0;
    display: block;
}