/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


html.about-document {

    direction: ltr;
    background: #e8e7e2;
}


html.home-document {
    overflow: hidden;
}


body {

    background: #000;

    color: white;

    font-family: "PT Mono", "Courier New", monospace;

    overflow: hidden;
}


body.page-about,
body.page-secondary {

    overflow: hidden;
    position: relative;
    isolation: isolate;
    direction: ltr;
    background: #e8e7e2;
    font-family: "PT Mono", "Courier New", monospace;
}


body.page-about::before,
body.page-secondary::before {

    display: none;
}


button,
a {
    font: inherit;
}


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


/* =========================
   CV CIRCLES
========================= */

.cv-circle-layer {

    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}


.cv-circle-hit-layer {

    position: fixed;
    z-index: 4;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}


.cv-circle {

    position: absolute;
    top: var(--circle-top);
    left: var(--circle-left);
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    background: #f177a9;
    opacity: 1;
    transform: translate(-50%, calc(-50% + var(--circle-scroll-offset, 0px)));
    animation: cv-circle-float var(--circle-duration) ease-in-out var(--circle-delay) infinite alternate;
    cursor: grab;
    pointer-events: auto;
    will-change: transform, top, left;
}


.cv-circle-hit {

    position: absolute;
    top: var(--circle-top);
    left: var(--circle-left);
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    pointer-events: auto;
    transform: translate(-50%, calc(-50% + var(--circle-scroll-offset, 0px)));
    animation: cv-circle-float var(--circle-duration) ease-in-out var(--circle-delay) infinite alternate;
}


.cv-circle:active {

    cursor: grabbing;
}


@keyframes cv-circle-float {

    33% {
        transform: translate(calc(-50% + var(--circle-drift-x)), calc(-50% + var(--circle-drift-y) + var(--circle-scroll-offset, 0px)));
    }

    66% {
        transform: translate(calc(-50% + var(--circle-drift-x-alt)), calc(-50% + var(--circle-drift-y-alt) + var(--circle-scroll-offset, 0px)));
    }

    to {
        transform: translate(-50%, calc(-50% + var(--circle-scroll-offset, 0px)));
    }
}


/* =========================
   SLIDESHOW
========================= */

.slideshow {

    position: fixed;

    z-index: 1;

    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;

    background: #000;
}


.artwork {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    opacity: 0;
    transform: scale(1.025);

    filter: saturate(0.9) contrast(1.02);

    transition: opacity 1.8s ease-in-out;
    animation: artwork-drift 18s ease-in-out infinite alternate;
}


.artwork.active {

    opacity: 1;
}


@keyframes artwork-drift {

    from {
        transform: scale(1.025);
    }

    to {
        transform: scale(1.08);
    }
}


/* =========================
   HEADER
========================= */

.site-header {

    position: fixed;
    inset: 0;

    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100vw;
    height: 100vh;
    padding: 0 28px;
}


.name {

    font-size: 30px;
    font-weight: 300;
    line-height: 1.05;

    color: #ffffff;

    letter-spacing: 0.16em;

    white-space: nowrap;
}


.main-nav {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 36px;

    flex-wrap: nowrap;

    width: auto;
    margin: 0;
}


.social-links {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    margin-top: 0;
}


.social-link {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color: rgba(255, 255, 255, 0.92);
    opacity: 1;

    transition:
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}


.social-link:hover,
.social-link:focus-visible {

    color: #f67d9f;
    opacity: 1;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.28));
}


.social-link svg {

    display: block;
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.nav-link {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    background: none;

    color: rgba(255, 255, 255, 0.85);

    font-family: "PT Mono", "Courier New", monospace;

    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        font-weight 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


.nav-link:hover,
.nav-link:focus-visible {

    color: #f67d9f;
    font-weight: 600;
    opacity: 1;
    transform: translateY(-1px);
}


.main-nav + .social-links {

    margin-top: 0;
}


.work-section {

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 0;
}


.work-button {

    position: relative;
    z-index: 2;
}


.years {

    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-8px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 72px;
    padding: 0;

    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;

    text-align: center;

    transition:
        opacity 0.55s ease,
        max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


.years.open {

    opacity: 1;
    max-height: 260px;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


.year-block {

    width: 100%;
}


.year-button {

    display: block;
    width: 100%;
    padding: 0;
    margin: 0;

    border: none;
    background: none;

    color: rgba(255, 255, 255, 0.8);

    font-family: "PT Mono", "Courier New", monospace;

    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;

    cursor: pointer;

    transition:
        color 0.25s ease,
        font-weight 0.25s ease,
        transform 0.25s ease;
}


.year-button:hover,
.year-button:focus-visible {

    color: #ffffff;
    font-weight: 600;
    transform: translateX(2px);
}


.about-header {

    position: fixed;
    top: 0;
    left: 0;

    z-index: 10;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 100%;
    padding: 30px 36px 0 36px;
    isolation: isolate;
}


.about-header::before {

    position: absolute;
    z-index: 0;
    top: -24px;
    right: 0;
    left: 0;
    height: 190px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.86) 22%,
        rgba(255, 255, 255, 0.68) 43%,
        rgba(255, 255, 255, 0.42) 63%,
        rgba(255, 255, 255, 0.2) 81%,
        rgba(255, 255, 255, 0) 100%
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


.about-header > * {
    position: relative;
    z-index: 1;
}


.about-header.is-scrolled::before {

    opacity: 1;
}


.about-brand-wrap {

    display: flex;
    align-items: center;
}


.about-brand {

    display: block;
    width: 68px;
    height: 68px;

    font-size: 0;
    letter-spacing: 0;
    line-height: 0;
    transform: translate(-8px, -18px);
}


.about-brand img {

    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.about-brand-text {

    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1;
    color: #282824;
    text-transform: uppercase;
    font-family: "PT Mono", "Courier New", monospace;
}


.about-nav {

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;

    margin-top: 8px;
    font-family: "PT Mono", "Courier New", monospace;
}


.about-nav-link {

    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(40, 40, 36, 0.72);
    font-family: "PT Mono", "Courier New", monospace;
}


.about-nav-link:hover,
.about-nav-link:focus-visible {

    color: #f67d9f;
}


.about-nav-link.active {

    color: #f67d9f;
}


.page-secondary .years {

    top: calc(100% + 12px);
}


.page-secondary .year-button {

    color: rgba(40, 40, 36, 0.72);
    font-family: "PT Mono", "Courier New", monospace;
}


.page-secondary .year-button:hover,
.page-secondary .year-button:focus-visible {

    color: #282824;
}


.about-page,
.secondary-page {

    position: fixed;
    isolation: isolate;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;

    overflow-y: auto;
    min-height: 0;
    padding: 42px 36px 80px 36px;
}


.about-content,
.secondary-content {

    position: relative;
    z-index: 1;
    max-width: 780px;
    margin-left: 120px;
    color: #282824;
    font-family: "PT Mono", "Courier New", monospace;
}


.about-image {

    position: absolute;
    z-index: 1;
    top: 42px;
    right: 8%;

    width: min(18vw, 250px);
    height: auto;

    display: block;
    opacity: 1;
}


.about-image img {

    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


.work-page {

    position: fixed;
    z-index: 1;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;

    overflow-y: auto;
    min-height: 0;
    padding: 42px 36px 80px 156px;
}


.work-content {

    max-width: 1080px;
    margin-left: 180px;
    color: #282824;
    font-family: "PT Mono", "Courier New", monospace;
}


.work-menu-toggle {

    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 5px 8px;
    border: 1px solid rgba(40, 40, 36, 0.25);
    background: rgba(255, 255, 255, 0.45);
    color: #282824;
    font: inherit;
    font-size: 10px;
    line-height: 1.2;
    cursor: pointer;
}


.menu-search-icon {

    width: 12px;
    height: 12px;
    fill: none;
    stroke: #f67d9f;
    stroke-width: 1.8;
    stroke-linecap: round;
}


.work-year-index {

    position: absolute;
    top: 42px;
    left: 36px;

    width: max-content;
    max-width: none;
    z-index: 2;
    color: #282824;
    font-family: "PT Mono", "Courier New", monospace;
    transition: transform 0.35s ease;
}


.work-page.menu-collapsed .work-year-index {
    transform: translateX(calc(-100% - 24px));
    pointer-events: none;
}


.work-page.menu-collapsed .work-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
}


@media (min-width: 769px) {

    .work-page.menu-collapsed {
        padding-left: 36px;
    }
}


.work-year-toggle {

    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 8px 0;

    border: 0;
    background: none;
    color: rgba(40, 40, 36, 0.72);

    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}


.work-year-toggle:hover,
.work-year-toggle:focus-visible,
.work-year-toggle.selected-year,
.work-all-link.selected {

    color: #f67d9f;
}


.work-all-link {

    display: block;
    width: max-content;
    padding: 0;
    margin: 0 0 8px 0;
    color: rgba(40, 40, 36, 0.72);
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}


.work-all-link:hover,
.work-all-link:focus-visible {

    color: #f67d9f;
}


.work-title-list {

    display: flex;
    flex-direction: column;
    gap: 5px;

    max-height: 0;
    width: max-content;
    min-width: 100%;
    margin: -2px -24px 10px -24px;
    padding: 0 24px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    will-change: max-height, opacity;

    transition:
        max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        margin 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.42s;
}


.work-title-list.open {

    margin-bottom: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}


.work-title-list a {

    display: block;
    align-self: flex-start;
    width: max-content;
    white-space: nowrap;
    color: rgba(40, 40, 36, 0.68);
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}


.work-title-list a:hover,
.work-title-list a:focus-visible {

    color: #f67d9f;
    transform: scale(1.08);
}


.work-title-list a.selected {

    color: #f67d9f;
}


.work-title-list .walk-with-the-eyes-link {

    white-space: normal;
}


.work-title-list a {

    transition-property: transform;
    transform-origin: left center;
    transition-duration: 0.16s;
    transition-timing-function: ease-out;
}


.work-content h1 {

    margin: 0 0 42px 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.15;
    text-transform: uppercase;
}


.work-detail {

    max-width: 1040px;
    scroll-margin-top: 42px;
    animation: work-detail-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}


.work-detail-year {

    margin: 0 0 8px 0;
    color: rgba(40, 40, 36, 0.62);
    font-size: 12px;
    line-height: 1.35;
}


.work-detail-title {

    margin: 0 0 28px 0;
    color: #282824;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
}


.work-detail-media {

    min-height: 220px;
}


.work-catalogue {

    column-count: 3;
    column-gap: 16px;
    width: 100%;
}


.work-catalogue[hidden] {

    display: none;
}


.work-catalogue-item {

    position: relative;
    display: block;
    margin: 0 0 16px 0;
    break-inside: avoid;
    color: #ffffff;
    overflow: hidden;
}


.work-catalogue-item img {

    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.92) contrast(1.02);
}


.work-catalogue-overlay {

    position: absolute;
    inset: 0;
    display: grid;
    padding: 14px;
    background: rgba(25, 25, 23, 0.58);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    place-items: center;
    text-align: center;
    transition: opacity 0.1s linear;
    will-change: opacity;
}


.work-catalogue-item:hover .work-catalogue-overlay,
.work-catalogue-item:focus-visible .work-catalogue-overlay {

    opacity: 1;
}


.work-detail-gallery {

    position: relative;
    width: calc(100% - 120px);
    margin: 0 auto;
}


@media (min-width: 1440px) {

    .about-image {
        width: min(34vw, 600px, calc(92vw - 960px));
    }

    .work-content {
        width: calc(100% - 180px);
        max-width: none;
    }

    .work-detail {
        max-width: none;
    }

    .work-detail-gallery {
        width: calc(100% - 120px);
    }

    .work-catalogue-item[href="#the-flag"] {
        break-before: column;
    }
}


@media (min-width: 769px) and (max-width: 1439px) {

    .about-content {
        max-width: calc(100% - 450px);
    }
}


.work-detail-gallery.has-multiple-images {

    width: calc(100% - 120px);
}


.work-detail-figure {

    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
}


.work-detail-figure img {

    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}


.work-detail-figure.portrait img {

    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    margin-right: auto;
    margin-left: auto;
}


.work-detail-figure.portrait {

    width: 100%;
    max-width: 100%;
}


.work-detail-figure figcaption {

    display: block;
    margin-top: 8px;
    color: rgba(40, 40, 36, 0.62);
    font-size: 11px;
    line-height: 1.4;
    text-transform: none;
    white-space: pre-line;
}


#faisca-the-cat .work-detail-figure figcaption {

    width: max-content !important;
    max-width: none;
    white-space: nowrap;
}


.work-detail-previous,
.work-detail-next {

    position: absolute;
    top: calc(var(--carousel-image-height, 100%) / 2);
    display: grid;
    width: 40px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(40, 40, 36, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    color: #282824;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    place-items: center;
    transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    transform: translateY(-50%);
}


.work-detail-previous {

    left: -60px;
}


.work-detail-next {

    right: -60px;
}


.work-detail-previous[hidden],
.work-detail-next[hidden] {

    display: none;
}


.work-detail-previous:hover,
.work-detail-previous:focus-visible,
.work-detail-next:hover,
.work-detail-next:focus-visible {

    color: #ff78b9;
    background: #ffffff;
}


.work-detail-previous:hover,
.work-detail-previous:focus-visible {

    transform: translate(-3px, -50%);
}


.work-detail-next:hover,
.work-detail-next:focus-visible {

    transform: translate(3px, -50%);
}


.work-detail-link {

    display: inline-flex;
    align-items: center;
    margin-top: -16px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(40, 40, 36, 0.7);
    color: #282824;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}


.work-detail-placeholder {

    margin: 0;
    color: rgba(40, 40, 36, 0.58);
    font-size: 12px;
    line-height: 1.4;
}


@keyframes work-detail-reveal {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.work-year {

    margin: 0 0 64px 0;
    scroll-margin-top: 42px;
}


.work-gallery.work-lead-gallery {

    display: block;
}


.work-lead-item {

    position: relative;
    width: fit-content;
    max-width: 100%;
}


.work-lead-item img {

    width: auto !important;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    aspect-ratio: auto !important;
    object-fit: contain;
}


.work-lead-item figcaption {

    position: static;

    margin: 9px 0 0 0;
    color: rgba(40, 40, 36, 0.68);
    font-size: 12px;
    line-height: 1.35;
}


.work-year h2 {

    margin: 0 0 18px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35;
}


.work-entry-list {

    display: flex;
    flex-direction: column;
    gap: 34px;
}


.work-entry {

    min-height: 72px;
    scroll-margin-top: 42px;
}


.work-entry h3 {

    margin: 0;
    color: #282824;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
}


.work-gallery {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


.work-item {

    margin: 0;
}


.work-item img {

    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    filter: saturate(0.92) contrast(1.02);
}


.work-item figcaption {

    margin-top: 9px;
    color: rgba(40, 40, 36, 0.68);
    font-size: 11px;
    line-height: 1.4;
}


.about-content h1,
.secondary-content h1 {

    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #282824;
}


.page-about .about-content,
.page-about .about-content h1,
.page-about .about-content h2,
.page-about .about-content h3,
.page-about .about-content p,
.page-about .about-content li,
.page-about .about-content a {

    color: #f67d9f;
}


.page-about .about-content .press-media-link {

    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border: 1px solid #f67d9f;
    border-radius: 2px;
    color: #f67d9f;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}


.page-about .about-content .press-media-link:hover,
.page-about .about-content .press-media-link:focus-visible {

    background: #f67d9f;
    border-color: #f67d9f;
    color: #282824;
}


.page-about .about-content .press-media-link:focus-visible {

    outline: 2px solid #282824;
    outline-offset: 2px;
}


.press-media-section li + li {

    margin-top: 14px;
}


.page-about .about-content .cv-letter {

    color: inherit;
}


.page-about .cv-text-overlay,
.page-about .cv-text-overlay h1,
.page-about .cv-text-overlay h2,
.page-about .cv-text-overlay h3,
.page-about .cv-text-overlay p,
.page-about .cv-text-overlay li,
.page-about .cv-text-overlay a,
.page-about .cv-text-overlay .cv-letter {

    color: #ffffff;
}


.page-about .cv-text-overlay {

    position: absolute;
    z-index: 2;
    margin: 0;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(transparent, transparent);
    mask-image: linear-gradient(transparent, transparent);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


.about-content h2,
.about-content h3 {

    margin: 26px 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.education-section h2 {

    margin-top: 26px;
    margin-bottom: 10px;
}


.education-section p:first-of-type {

    margin-top: 26px;
}


.about-content p,
.about-content li,
.secondary-content p {

    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(40, 40, 36, 0.9);
}


.top-row .about-section:first-child p {

    margin-bottom: 2px;
    line-height: 1.35;
}


.email-link {

    margin: 0 !important;
    line-height: 1.2;
}


.email-link a {

    color: #282824;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
}


.instagram-link {

    margin: 0 0 34px 0 !important;
    line-height: 1.2 !important;
}


.instagram-link a {

    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.about-content ul {

    margin: 0;
    padding-left: 0;
    list-style: none;
}


.about-content li {

    margin-bottom: 2px;
    list-style: none;
    line-height: 1.35;
}


html,
body.page-about,
body.page-secondary,
.about-page,
.secondary-page,
.work-page {

    scrollbar-width: thin;
    scrollbar-color: rgba(40, 40, 36, 0.28) transparent;
}


html::-webkit-scrollbar,
body.page-about::-webkit-scrollbar,
body.page-secondary::-webkit-scrollbar,
.about-page::-webkit-scrollbar,
.secondary-page::-webkit-scrollbar,
.work-page::-webkit-scrollbar {

    width: 8px;
    height: 8px;
    background: transparent;
}


html::-webkit-scrollbar-track,
body.page-about::-webkit-scrollbar-track,
body.page-secondary::-webkit-scrollbar-track,
.about-page::-webkit-scrollbar-track,
.secondary-page::-webkit-scrollbar-track,
.work-page::-webkit-scrollbar-track {

    background: transparent;
}


html::-webkit-scrollbar-thumb,
body.page-about::-webkit-scrollbar-thumb,
body.page-secondary::-webkit-scrollbar-thumb,
.about-page::-webkit-scrollbar-thumb,
.secondary-page::-webkit-scrollbar-thumb,
.work-page::-webkit-scrollbar-thumb {

    background: rgba(40, 40, 36, 0.2);
    border-radius: 999px;
    border: 0;
}


html::-webkit-scrollbar-thumb:hover,
body.page-about::-webkit-scrollbar-thumb:hover,
body.page-secondary::-webkit-scrollbar-thumb:hover,
.about-page::-webkit-scrollbar-thumb:hover,
.secondary-page::-webkit-scrollbar-thumb:hover,
.work-page::-webkit-scrollbar-thumb:hover {

    background: rgba(40, 40, 36, 0.32);
}


.page-about .about-content {

    animation: about-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}


.page-about .about-content {

    animation-delay: 0.08s;
}


@keyframes about-reveal {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-reduced-motion: reduce) {

    .page-about .about-content {

        animation: none;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    html.home-document {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: #ffffff;
        background-image: url("../images/work05.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    body.page-home {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        background: transparent;
    }

    body.page-home .slideshow {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    body.page-home .site-header {
        height: 100vh;
    }

    @supports (height: 100dvh) {
        body.page-home .site-header {
            height: 100dvh;
        }
    }

    /* Keep the desktop structure on phones, just tighter:
       header top-left/right, year index fixed on the left,
       content beside it, CV image top-right. */

    .about-header {
        padding: 18px 16px 0 16px;
    }

    .about-brand {
        width: 52px;
        height: 52px;
        transform: translate(-4px, -10px);
    }

    .about-nav {
        gap: 14px;
        margin-top: 6px;
    }

    .about-nav-link {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .about-page,
    .secondary-page,
    .work-page {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        overflow: visible;
        padding: 20px 16px 60px 16px;
    }

    body.page-about,
    body.page-secondary {
        position: static;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .about-content,
    .secondary-content {
        margin-left: 0;
        max-width: none;
    }

    .about-content h1,
    .secondary-content h1 {
        font-size: 15px;
        max-width: 60%;
    }

    .about-content p,
    .about-content li,
    .secondary-content p {
        font-size: 12px;
        line-height: 1.7;
    }

    .about-content h2,
    .about-content h3 {
        font-size: 11px;
        margin: 20px 0 8px 0;
    }

    .about-image {
        position: relative;
        float: right;
        top: auto;
        right: auto;
        width: 34vw;
        max-width: 160px;
        margin: 0 0 12px 12px;
    }

    .info-grid.top-row,
    .exhibitions-grid {
        display: block;
    }

    /* WORK: sidebar stays on the left, content next to it */
    .work-page {
        padding-left: 16px;
    }

    .work-year-index {
        top: 20px;
        left: 16px;
        width: 96px;
        max-width: 96px;
    }

    .work-year-toggle,
    .work-all-link {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .work-title-list {
        margin: -2px -8px 8px -8px;
        padding: 0 8px;
        min-width: 0;
        width: 100%;
        gap: 9px;
    }

    .work-title-list a {
        width: 100%;
        white-space: normal;
        font-size: 10px;
        line-height: 1.4;
    }

    .work-content {
        width: calc(100% - 108px);
        margin-left: 108px;
        max-width: none;
    }

    .work-catalogue {
        column-count: 1;
        column-gap: 8px;
    }

    .work-catalogue-item {
        margin-bottom: 8px;
    }

    .work-catalogue-overlay {
        font-size: 9px;
        padding: 6px;
    }

    .work-detail-year {
        width: calc(100% - 48px);
        margin-right: auto;
        margin-left: auto;
        font-size: 10px;
    }

    .work-content .work-detail-title {
        width: calc(100% - 48px);
        margin-bottom: 16px;
        margin-right: auto;
        margin-left: auto;
        font-size: 15px;
        line-height: 1.3;
    }

    .work-detail-link {
        display: inline-flex;
        width: auto;
        margin-top: 0;
        margin-left: 24px;
    }

    .education-section p + p {
        margin-top: 10px;
    }

    .work-detail-figure.portrait img {
        max-height: calc(100vh - 160px);
    }

    .work-detail-figure figcaption {
        font-size: 10px;
    }

    .work-detail-previous,
    .work-detail-next {
        width: 22px;
        height: 32px;
        font-size: 19px;
    }

    .work-detail-previous {
        left: -24px;
    }

    .work-detail-next {
        right: -24px;
    }

    .work-detail-gallery,
    .work-detail-gallery.has-multiple-images {
        width: calc(100% - 48px);
    }

    #faisca-the-cat .work-detail-figure figcaption {
        width: 100% !important;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .exhibitions-content {
        width: auto;
    }

    .exhibition h3,
    .exhibition-meta,
    .exhibition-text {
        font-size: 12px;
    }

    .exhibition h3 {
        font-size: 11px;
    }

    .exhibition h3,
    .exhibition-meta,
    .exhibition-link {
        width: calc(100% - 48px);
        margin-right: auto;
        margin-left: auto;
    }

    .exhibition-link {
        display: block;
    }

    .page-secondary .work-detail-previous,
    .page-secondary .work-detail-next {
        width: 22px;
        height: 32px;
        font-size: 19px;
    }

    .page-secondary .exhibition-previous {
        left: -24px;
    }

    .page-secondary .exhibition-next {
        right: -24px;
    }

    .exhibition-slide figcaption {
        font-size: 10px;
    }

    /* HOME */
    .site-header {
        padding: 0 16px;
        gap: 10px;
    }

    .name {
        font-size: 22px;
        letter-spacing: 0.14em;
    }

    .main-nav {
        gap: 20px;
    }

    .nav-link,
    .year-button {
        font-size: 11px;
    }
}


@media (display-mode: standalone) {

    html.home-document {
        height: 100dvh;
        overflow: hidden;
    }
}


/* =========================
   EXHIBITIONS PAGE
========================= */

.exhibitions-content {

    width: calc(100% - 120px);
    max-width: none;
}


.exhibition-year h2 {

    margin: 34px 0 14px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #282824;
}


.exhibition {

    margin: 0 0 40px 0;
}


.exhibition h3 {

    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #282824;
}


.exhibition-meta,
.exhibition-text {

    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(40, 40, 36, 0.9);
}


.exhibition-text {

    max-width: 680px;
}


.exhibition-link {

    display: inline-block;
    margin: 0 0 8px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    color: #282824;
}


.exhibition-carousel {

    position: relative;
    width: calc(100% - 120px);
    margin: 14px auto 0;
}


.exhibition-slide {

    margin: 0;
}


.exhibition-slide img {

    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 900px);
    object-fit: contain;
    filter: saturate(0.92) contrast(1.02);
}


.exhibition-slide figcaption {

    margin: 6px 0 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(40, 40, 36, 0.75);
}




/* =========================
   PRIVATE PREVIEW
========================= */

.exhibition-badge {

    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border: 1px solid #b3261e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #b3261e;
}


.exhibition-draft {

    padding-left: 14px;
    border-left: 2px solid rgba(179, 38, 30, 0.45);
}


.preview-note {

    margin: 0 0 26px 0;
    padding: 10px 14px;
    border: 1px solid rgba(40, 40, 36, 0.25);
    font-size: 12px;
    line-height: 1.7;
    color: rgba(40, 40, 36, 0.8);
}


.preview-checklist {

    width: 100%;
    margin: 10px 0 34px 0;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.6;
}


.preview-checklist th,
.preview-checklist td {

    padding: 5px 10px 5px 0;
    border-bottom: 1px solid rgba(40, 40, 36, 0.15);
    text-align: left;
    vertical-align: top;
    color: rgba(40, 40, 36, 0.9);
}


.preview-checklist th {

    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 10px;
}


.preview-checklist .todo {

    color: #b3261e;
}


.preview-checklist .done {

    color: #2f6b3a;
}


.preview-checklist a {

    text-decoration: underline;
}


@media (max-width: 768px) {

    .page-secondary .exhibitions-content {
        width: auto;
    }

    .page-secondary .exhibition-carousel {
        width: calc(100% - 48px);
    }

    .page-secondary .exhibition h3,
    .page-secondary .exhibition-meta,
    .page-secondary .exhibition-link {
        width: calc(100% - 48px);
        margin-right: auto;
        margin-left: auto;
    }

    .page-secondary .exhibition h3 {
        font-size: 11px;
    }

    .page-secondary .exhibition-link {
        display: block;
    }
}
