@font-face {
    font-family: 'Barlow Semi Condensed';
    src: url('fonts/BarlowSemiCondensed-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-SemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('fonts/InstrumentSerif-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('fonts/InstrumentSerif-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}




/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    overflow-x: hidden;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

button {
    -webkit-appearance: none;
    border-radius: 0;
    text-align: inherit;
    background: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    border: none;
    color: inherit;
    font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* CSS reset end */

* {
    font-family: "Barlow", Helvetica, Arial, sans-serif;
    --main-bg-color: #453F45;
    --main-bg-color-light: #484248;

    --main-text-color: #dadbf1;
    --highlight-text-color: #f5f8ff;
    --link-color: #8eb5f0;
    --link-color-hover: #e4d98a;
    --dark-orange: #b85e4e;
    --teal: #007b76;
}

html {
    transition: 0.8s;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

#homepage.overlay-open {
    background: rgba(3, 1, 3, 0.9);
    overflow: hidden;
}

.home-header {
    z-index: 101;
    padding: 2vw;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
    cursor: pointer;

}

.home-header.fade-out {
    opacity: 0;
    pointer-events: none;
}

nav.top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em;
    width: 100%;
    z-index: 100;
    top: 0;
}

nav.secondary-nav {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 2vw);
    position: fixed;
    top: calc(50% - 4em);
    text-align: center;
    pointer-events: none;
    z-index: 100;
}


nav.secondary-nav a {
    writing-mode: vertical-rl;
    pointer-events: auto;
}

nav.secondary-nav a:nth-child(2) {
    rotate: 180deg;
}

nav *,
.back-to-top,
.act-link {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--link-color)
}

.back-to-top:hover {
    color: var(--link-color-hover)
}

a {
    font-weight: 300;
    color: var(--link-color);
}

hr {
    margin: 2em 0;
    color: var(--dark-orange);
}

img {
    max-width: 100vw;
    height: auto;
    margin: 0 auto;
}

h1,
h1 span,
h2,
h3,
h4 {
    font-family: 'Instrument Serif', serif;
    letter-spacing: 0.008em;
    font-weight: 400;
}

h1,
h1 span {
    font-size: clamp(15px, calc(1.5rem + 2vw), 12vw);
}

h2 {
    font-size: clamp(13px, calc(1.2rem + 1.2vw), 9vw);

}

p {
    font-weight: 300;
}

body {
    font-size: 1.2rem;
    margin: 0 1vw;
}

/* Video sections container */
main {
    width: 100%;
    margin: 0 auto;
    transform: translate(0, 0);

    overscroll-behavior-y: contain;

}

.scroll-snap-section {
    scroll-behavior: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    width: 100%;
    margin: 0 auto;
    transform: translate(0, 0);

}

.video-section {
    position: relative;
    height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


.video-container {
    position: relative;
    z-index: 50;
    max-width: 70vw;
    max-height: 90em;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: pan-y;
}

.video-container img {
    width: auto;
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

@media screen and (max-width: 50em) {
    .video-container {
        max-width: 80vw;
    }

    .video-container img {
        max-width: 92%;
        margin: 0 auto;
    }
}

/* Panels are positioned at their sides by default */
.gray-panel.left-panel {
    left: 0;
    transform: translateX(0);
}

.gray-panel.right-panel {
    right: 0;
    transform: translateX(0);
}

.gray-panel {
    position: absolute;
    top: 0;
    height: 100vh;
    width: 50%;
    background-color: var(--main-bg-color);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* control how much of the center remains visible when panels are "mostly closed" */

:root {
    --panel-gap: 5vw;
    /* visible center gap when panels are partially closed */
}

/* When a section has the partial-closed modifier, shrink panels to reveal a center gap */
.video-section.partial-closed .gray-panel {
    width: calc(50% - (var(--panel-gap) / 2));
}

/* When section is active (on screen), panels open (slide off-screen) */
.video-section.active .gray-panel.left-panel {
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;

    transform: translateX(-100%);
}

.video-section.active .gray-panel.right-panel {
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;

    transform: translateX(100%);
}

/* Panels closing state for transition */
.video-section .gray-panel.closing {
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/*
header {
    pointer-events: none;
}
nav {
    pointer-events: auto;
}*/

@media screen and (max-width: 74em) {

    .home-title-container h1 {
        display: grid;
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        justify-content: space-between;
        align-content: space-between;
        height: 80vh;
        pointer-events: none;
    }

    .home-title-2,
    .home-title-4 {
        text-align: right;
        width: calc(100vw - 0.5em);
    }
}

@media screen and (min-width: 74em) {

    .home-title-container h1 {
        display: grid;
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        justify-content: space-between;
        align-content: space-between;
        height: 80vh;
    }

    .home-title-3,
    .home-title-4 {
        text-align: right;
    }
}


.project-info {}

.project-text {
    width: clamp(40ch, 40%, 50ch);

}

.project-text p:first-of-type {
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .project-info {
        margin-right: 5%;
    }
}

.curatorial-main,
.zine-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--main-bg-color);
    margin: 0 15%;
    width: auto;
    min-height: 100vh;
}

.zine-container {
    margin: 0 8%;
}

@media screen and (max-width: 50em) {

    .curatorial-main,
    .zine-container {
        margin: 1em;
    }
}

.curatorial-statement {
    max-width: 70ch;
    margin: 2.5em 1.4em 1.4em 1.4em;
    padding-block-end: 5em;
}

.zine-spreads {
    padding-block-end: 5em;
    max-width: 80em;
    margin: 0 auto;
}

.zine-wrapper {
    width: 95%;
}

@media screen and (min-width: 50em) {
    .zine-wrapper {
        margin-top: 8%;
    }

}

.zine-container .desc {
    margin: 0 auto;
    padding-block-start: 5%;
    padding-block-end: 3em;
    padding-inline: 8%;
    max-width: 70ch;
}

.byline {
    text-transform: uppercase;
    font-family: "Barlow Semi Condensed";
    letter-spacing: 0.08em;
    text-align: right;
}

.uppercase-header {
    text-transform: uppercase;
    font-family: "Barlow Semi Condensed";
    letter-spacing: 0.08em;
    font-weight: 600;
}

.curatorial-statement .byline {
    margin-bottom: 4rem;
}

.curatorial-statement h2 {
    margin-top: 1.6em;
}

nav a,
nav p,
.back-to-top,
.act-link {
    transition: color 0.3s;
    font-family: "Barlow Semi Condensed";
}

@media screen and (min-width: 768px) {
    nav {
        gap: 0.5em;
    }
}

nav p {
    margin: 0;
    padding: 0;
}


a:hover {
    color: var(--link-color-hover);
}

.scroll-prompt p {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
}

.scroll-prompt {
    position: fixed;
    bottom: 0;
    right: 0.2em;
    z-index: 99999;
}

@media screen and (min-width: 768px) {
    .scroll-prompt {
        right: 0;
    }
}

.scroll-line {
    margin-left: 1rem;
    width: 1px;
    height: 70px;
    background-color: var(--main-text-color);
    margin-top: 10px;
}

.scroll-icon {
    display: block;
    position: relative;
    height: 3em;
    width: 1.5em;
    border: 1px solid #000;
    border-radius: 1em;
}

.grid {
    display: flex;
    flex-direction: column;
}

.grid__item {}


.echo-vid-1.video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.video-16-9 {
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    z-index: 50;
}

.video-9-16 {
    aspect-ratio: 9/16;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 50;
}

.video-4-3 {
    aspect-ratio: 4/3;
    width: 80%;
    position: relative;
    z-index: 50;
}



.hidden {
    display: none;
}


@media (prefers-reduced-motion: reduce) {
    dialog[open] {
        animation: none;
    }
}

.back-to-top {
    position: fixed;
    bottom: 1em;
    right: 1em;
    z-index: 1000;
}

.act-link {
    position: absolute;
    bottom: 1em;
    right: 1em;
}

.act-link-center {
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    pointer-events: none;
}

/* Performance Stills */
:root {
    --stripe-thickness: 1vw;
}

body.striped-bg {
    overflow-x: hidden;
    margin: 0;
    /*background: url("images/stripes/pink and green two.jpg") 0 0/contain no-repeat, url("images/stripes/gray\ six.jpg") center 100%/contain repeat;*/
}

.striped-bg nav a {
    background-color: #453F45;
    height: 100%;
    padding: 0 0.5em;
    font-weight: 500;
    z-index: 100;
    position: relative;
}

/* Fixed diagonal stripes overlay */
.stripe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: repeating-linear-gradient(50deg,
            #453F45 0,
            #453F45 var(--stripe-thickness),
            transparent var(--stripe-thickness),
            transparent calc(var(--stripe-thickness) * 2));
    pointer-events: none;
}

/* Background image container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: auto;
    min-height: 100vh;
    object-fit: cover;
    will-change: transform;
}

/* Main content container */
.content {
    position: relative;
    z-index: 10;
}

/* Gallery container */
.gallery {
    display: flex;
    justify-content: center;
    gap: 10vw;
    max-width: 100%;
}

/* Individual columns */
.column {
    flex: 0 0 35vw;
    margin-top: 7vw;
    display: flex;
    flex-direction: column;
    gap: 12vw;
    will-change: transform;
}

@media screen and (max-width: 768px) {
    .gallery {
        gap: 5vw;
    }

    .column {
        flex: 0 0 45vw;
        gap: 5vw;
    }

    .striped-nav-sub {
        display: flex;
        gap: 1rem;
        flex-direction: column;
    }

    .striped-bg .home-header {
        position: relative;
    }
}

.column-1 {
    /* This column will scroll at 0.8x speed */
}

.column-2 {
    /* This column will scroll at 0.6x speed */
    margin-top: 40vh;
    /* Offset start position */
}

/* Image items */

.gallery-item img {
    width: 100%;
    height: 100%;
}

.desc {
    color: var(--main-text-color);
    max-width: 70ch;
    margin: 1.7rem;
}

.desc h2 {
    font-size: unset;
}

@media screen and (max-width: 55em) {
    .proj {
        display: flex;
        flex-direction: row;
    }

    .desc {
        max-width: 100%;
    }
}

.info-wrap {
    position: absolute;
    left: 0;
    bottom: 1em;
}

.info-btn {
    all: unset;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    border: 1px solid currentColor;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: italic 1rem sans-serif;
    color: var(--link-color);
    background: var(--main-bg-color-light);
}

.info-btn:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

.partial-closed .info-wrap {
    opacity: 1;
}


/* Overlay */

dialog[open] {
    background: transparent;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.8s ease normal;
    display: flex;
    justify-content: center;
    padding: 0;
}

dialog.video[open] {
    align-items: center;
}

.overlay::backdrop {
    background: rgba(3, 1, 3, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

dialog:not([open]) {
    display: none !important;
}

.close-btn {
    color: var(--link-color);
    padding: 1em;
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 100;
    /* WCAG 2.2: visible focus indicator */
    border-radius: 4px;
}

.close-btn:hover {
    color: var(--link-color-hover);
}

.close-btn:focus-visible {
    outline: 3px solid var(--link-color);
    outline-offset: 3px;
}

@media screen and (max-width: 768px) {
    .close-btn {
        right: 1em;
        left: auto;
    }
}

iframe {
    border: none;
}

.work-thumb {
    width: clamp(380px, 50vw, 49em);
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    margin: 0;
    transition: opacity 0.5s;
    opacity: 1;
    z-index: -9999;
}

.work-thumb:hover {
    opacity: 0.5;
}

.view-note {
    position: relative;
}

.view-note p {
    padding: 0.2em 0.5em;
    margin-top: -1.9em;
    position: absolute;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8em;
    background-color: var(--main-bg-color);
    color: var(--link-color)
}

#homepage.overlay-open .view-note p {
    background: rgba(3, 1, 3, 0.9);
}

a:has(sup) {
    text-decoration: none;
}

/* Striped background toggle */

@keyframes stripe-shift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 28px 0;
    }
}

/* ── Warning notice ── */

.warning-wrapper {
    gap: 0.6rem;
    font-size: 0.83rem;
    max-width: 24ch;
    margin-block-end: 1rem;
    opacity: 1;
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.warning-notice {
    overflow: hidden;
}

.warning-wrapper.hidden,
.switch-label.hidden {
    grid-template-rows: 0fr;
    opacity: 0;
    margin: 0;
}

.home-header .top-nav .switch-row * {
    text-transform: none;
    letter-spacing: 0;
}

/* ── Switch row ── */
.switch-row {
    order: 2;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    border: 1px solid var(--link-color-hover);
    background-color: var(--main-bg-color);
}

.switch-row.scrolled {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
}

.switch-toggle-wrapper {
    display: flex;

}

.switch-label-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.switch-label {
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding-inline-end: 1em;
    color: var(--link-color-hover);

}

/* ── Toggle switch ── */
.switch-wrapper {
    position: relative;
    flex-shrink: 0;
    height: 1.1em;
    /* match .switch-track */
}

/* Hide native checkbox visually but keep it accessible */
.switch-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.switch-track {
    display: block;
    /*width: 48px;
    height: 28px;*/
    width: 2em;
    height: 1.1em;
    border: 1px solid var(--link-color);
    border-radius: 999px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-sizing: border-box;

}

.switch-thumb {
    position: absolute;
    top: 0.13em;
    left: 0.2em;
    /*width: 20px;
    height: 20px;*/
    width: 0.75em;
    height: 0.75em;
    background: var(--link-color);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}

/* Checked state */
.switch-input:checked+.switch-track {
    background: var(--link-color-hover);
    box-shadow: 0 0 1px var(--link-color-hover);
}

.switch-input:checked+.switch-track .switch-thumb {
    transform: translateX(0.85em);
    background: var(--main-bg-color);

}

/* Focus-visible ring */
.switch-input:focus-visible+.switch-track {
    outline: 2px solid var(--link-color-hover);
    outline-offset: 2px;
}

/* ── Status announcement (visually hidden, for screen readers) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-to-main-content-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 0.6em 1em;
    background-color: var(--link-color);
    color: var(--main-bg-color);
    opacity: 0;
    font-weight: 600;
}

.skip-to-main-content-link:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

.zine-page {
    max-width: 100%;
}

.zine-spreads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max(300px, 34%), 1fr));
    row-gap: 3em;
}