@font-face {
    font-family: 'PF Pixelscript';
    src: url('../fonts/pf-pixelscript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.retro-initial {
    font-family: 'PF Pixelscript', var(--font-serif) !important;
    font-weight: normal;
    font-size: 6.5cqi;
    display: inline-block;
    vertical-align: baseline;
}


@media (max-width: 1024px) {
    .retro-initial {
        font-size: 6cqi;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;


    background-image: url('../assets/images/resources/texture.webp');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-blend-mode: multiply;
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--color-text);
    border-radius: 50px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}


.u-hidden {
    display: none !important;
}

.u-visible {
    display: block !important;
}

.is-initialized {
    opacity: 1 !important;
}

.u-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


.navigation {
    color: var(--color-text);
    padding: 1rem 0;
    position: fixed;
    width: calc(100% - (2 * var(--spacing-md)));
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0 auto;
    font-family: var(--font-sans);
}

.navigation__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation__logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
}

.navigation__menu-btn {
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown {
    background-color: var(--color-bg);
    color: var(--color-text);
    width: calc(100% - (2 * var(--spacing-md)));
    position: fixed;
    top: -50vh;
    height: 50vh;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 var(--spacing-md);
    will-change: transform;
    left: var(--spacing-md);

}

.dropdown__section {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.dropdown__section--one {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 30%;
    width: 100%;
}

.dropdown__word {
    font-family: var(--font-serif);
    font-size: 5vw;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.dropdown__quote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    text-align: center;
    max-width: 80%;
}

.dropdown__section--three {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 30%;
}

.dropdown__nav {
    padding: 1rem 0 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.divider {
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width 0.2s ease;
    will-change: width;
    opacity: 0.5;
}

.dropdown__button {
    padding: 0.5rem 0;
    margin-right: 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.dropdown__section--one h1,
.dropdown__section--one p,
.dropdown__button {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.dropdown.open .dropdown__section--one h1,
.dropdown.open .dropdown__section--one p,
.dropdown.open .dropdown__button {
    transform: translateY(0);
}


.hero {
    min-height: 100vh;
    padding-bottom: var(--spacing-md);



    position: relative;
}

.hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    min-height: 85vh;
    justify-content: space-between;
}


.hero-header {
    container-type: inline-size;

    text-align: center;
    margin-bottom: var(--spacing-lg);
    width: 100%;
    overflow: hidden;

    padding: 0;

}

.hero-title {
    font-family: var(--font-serif);
    font-size: 18cqi;

    font-weight: 400;
    line-height: 0.9;
    color: var(--color-text);
    white-space: nowrap;

    letter-spacing: -0.05em;


    display: inline-block;
    opacity: 1;

}

.hero-title span {
    display: inline-block;
    position: relative;

}


.hero-main-content {
    margin-top: -120px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    flex-grow: 1;
}

.hero-spacer {
    width: 100%;
    height: 230px;

}


.hero-visual {

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
    pointer-events: none;
}

.hero-visual-placeholder {
    grid-column: 2;
    width: 310px;
    height: 394px;
}

.image-container {
    position: relative;
    width: 310px;
    height: 394px;

    flex-shrink: 0;
    perspective: 800px;

    transform-style: preserve-3d;
    pointer-events: auto;
    cursor: pointer;
}

.background-stack,
.foreground-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;

}

.background-stack {
    z-index: 1;

    transform: translateZ(-50px);

}

.foreground-stack {
    z-index: 10;

    transform: rotate(6.5deg);
    transform-origin: center center;
    transform-style: preserve-3d;

}

.bg-card,
.fg-card {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

}

.bg-card img,
.fg-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

}

.fg-card {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;

    transform-style: preserve-3d;
}

.image-container:hover .fg-card {
    transition: opacity 0.5s ease-in-out, transform 0.1s ease-out;

}


.fg-card.active {
    opacity: 1;
    z-index: 20;

    will-change: transform;

    transform: translateZ(50px);

}


.tilt-hitbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;

    pointer-events: auto;

    background: transparent;

}


.bg-card,
.fg-card {
    pointer-events: none !important;
}


.zoom-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;

    overflow: hidden;
}

.zoom-content {
    position: relative;
    width: 100%;
    z-index: 1;
}

.zoom-image-container {
    width: 100%;
    height: 100vh;
    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    perspective: 500px;
    overflow: hidden;
    pointer-events: none;
}


.zoom-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;

}

.zoom-postcards {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;

    height: auto;

    transform: translate(-50%, -50%);
    z-index: 2;

    object-fit: contain;
}


.hero-content-right {
    grid-column: 3;
    display: flex;
    flex-direction: row;

    align-items: flex-start;
    justify-content: center;

    padding-top: 0;

    margin-top: -2rem;

}

.pd-text-img {
    width: 60px;
    margin-right: 1rem;
    margin-bottom: 0;
    margin-top: 0.5rem;

    display: block;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 350px;
    text-align: left;

}


.hero-footer-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-sm);
    font-family: var(--font-serif);
    color: var(--color-secondary);
}

.footer-edition {
    height: 25px;
    width: auto;
}

.footer-signature {
    height: 25px;
    width: auto;
}

.copyright {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}




.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-serif);
}

.visually-hidden {
    display: none;
}





.custom-cursor-active body,
.custom-cursor-active a,
.custom-cursor-active button,
.custom-cursor-active input,
.custom-cursor-active textarea,
.custom-cursor-active select,
.custom-cursor-active .btn {
    cursor: none !important;
}

.cursor {
    pointer-events: none;
}

.cursorball {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.cursorball--big img {
    width: 49px;
    height: auto;
}

.cursorball--small img {
    width: 30px;
    height: auto;
}


.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.loading-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/resources/texture.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.loading-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.loading-logo-group {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: logo-reveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;

    animation-delay: 0.1s;
    flex-shrink: 0;

    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

}


.logo-path {
    fill: transparent;
    stroke: #2c2c2c;
    stroke-width: 0.5px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards, fill-in 0.3s ease forwards;

    animation-delay: 0.1s, 0.6s;


}

.circle-path {
    stroke-width: 1.5px;

}


.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}


.loading-logo {
    height: auto;
    width: 25px;

    z-index: 2;

}

.loading-text-wrapper {
    overflow: hidden;
    width: fit-content;
    display: flex;
}

.loading-text {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: .2em;
    color: #2c2c2c;
    white-space: nowrap;
    opacity: 0;
}


.loading-text span {
    display: inline-block;

}


@keyframes loading-exit {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes content-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logo-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes text-reveal {
    0% {
        width: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        width: 100%;

        opacity: 1;
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-in {
    to {
        fill: #2c2c2c;
        stroke: transparent;

    }
}

:root {
    --color-foreground: var(--color-text);
    --color-background: var(--color-bg);
    --margin: var(--spacing-md);
    --gutter: var(--spacing-sm);
    --font-size-medium: 1rem;
    --font-size-large: 1.5rem;
}


.navigation {
    color: #FFFFFF;
    padding: var(--gutter) 0;
    position: fixed;
    width: calc(100% - (3.5 * var(--margin)));
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    margin: 0 auto;
    pointer-events: auto;

    mix-blend-mode: difference;

}

.navigation__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation__logo {
    font-size: 24px;
    font-family: var(--font-serif);
}

.navigation__menu-btn {
    font-size: var(--font-size-medium);
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown {
    background-color: #FAF9F5;

    color: var(--color-foreground);
    width: calc(100% - (2 * var(--margin)));
    position: fixed;
    top: -50vh;
    height: 50vh;
    z-index: 90;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 calc(var(--spacing-lg) + 1.5rem);
    will-change: transform;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

}

.dropdown__section {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.dropdown__section--one {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 30%;
    width: 100%;
}

.dropdown__word {
    font-size: 8vw;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    font-family: var(--font-serif);
}

.dropdown__quote {
    font-size: var(--font-size-large);
    text-align: center;
    max-width: 80%;
    font-family: var(--font-serif);
    font-style: italic;
}

.dropdown__section--three {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 30%;
}

.dropdown__nav {
    padding: 1rem 0 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.divider {
    width: 0;
    height: 1px;
    background-color: rgba(200, 180, 160, 0.2);
    transition: width 0.2s ease;
    will-change: width;
}

.dropdown__button {
    padding: 0.5rem 0;
    margin-right: 1rem;
    font-size: var(--font-size-medium);
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}




.content {

    transition: transform 0.4s ease;

}

.content--shifted {
    transform: translateY(50vh);
}

.navigation--shifted {
    transform: translateY(50vh);
    transition: transform 0.2s ease;
}

.dropdown__section--one h1,
.dropdown__section--one p,
.dropdown__button {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.dropdown.open .dropdown__section--one h1,
.dropdown.open .dropdown__section--one p,
.dropdown.open .dropdown__button {
    transform: translateY(0);
}




.overlay-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #232120;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    transform: translateY(100%);
    color: var(--color-white);
    will-change: transform;
    overflow: hidden;
}

.pixel-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;

    mix-blend-mode: screen;
    opacity: 1;
}


.cursorball.cursor-pixel-active img {
    opacity: 0 !important;

}

.cursorball.cursor-pixel-active {
    background-image: url('../assets/images/cursor/cursor-pixel.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}


.overlay-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
    background-size: 300px 300px;
    animation: noise-animation 0.3s steps(5) infinite;
    opacity: 1;
    will-change: transform;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: overlay;

}

@keyframes noise-animation {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -3%);
    }

    20% {
        transform: translate(-4%, 2%);
    }

    30% {
        transform: translate(2%, -4%);
    }

    40% {
        transform: translate(-2%, 5%);
    }

    50% {
        transform: translate(-4%, 2%);
    }

    60% {
        transform: translate(3%, 0);
    }

    70% {
        transform: translate(0, 3%);
    }

    80% {
        transform: translate(-3%, 0);
    }

    90% {
        transform: translate(2%, 2%);
    }

    100% {
        transform: translate(1%, 0);
    }
}

.shader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.overlay-content {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
}

.overlay-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.overlay-col-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
}

.col-num {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

.col-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.overlay-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;

    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-align: center;

}

.hero-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    margin: 0;
    pointer-events: none;
    z-index: 50;
    color: #FFFFFF;
    mix-blend-mode: difference;

}




.gallery-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 10vh;

}



.hero-title.scrolled-out {
    position: absolute;
    transform: translateX(-50%);

}


.travel-wrapper {
    width: 100vw;

    overflow: hidden;
    font-family: var(--font-sans);
    position: absolute;
    bottom: 5vh;

    left: 0;
    z-index: 25;

}

.travel-txt {
    width: 300vw;

    font-size: 4.9vw;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    will-change: transform;
}


.gallery-section {
    padding: var(--spacing-md);
    padding-top: 0;

    position: relative;
    z-index: 5;
}


.gallery-header {
    position: absolute;
    top: 5vh;

    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.gallery-header * {
    pointer-events: auto;

}

.gallery-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(3rem, 13vw, 12rem);
    text-align: left;
    color: var(--color-black);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
}


.gallery-retro-initial {
    font-family: 'PF Pixelscript', var(--font-serif) !important;
    font-weight: normal;
    display: inline-block;
    font-size: 0.4em;
    vertical-align: middle;
    line-height: 0.8;
}

.gallery-nav-arrow {
    display: none;
}

.travel-txt__each {
    cursor: pointer;
    transition: 0.8s color ease-out;
    color: rgba(255, 255, 255, 0.4);

    padding: 0 2rem;
}

.travel-txt__each:hover {
    color: red;
}

.gallery-section {
    position: relative;
    z-index: 5;
    user-select: none;

}

.gallery-subtitle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;

    max-width: 300px;
}

.subtitle-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
}

.subtitle-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-black);
    margin: 0;
}

.pixel-cursor-icon {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('../assets/images/cursor/cursor-pixel.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 9999 !important;
    display: none;
}


body {
    cursor: none;

}


.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);

    transition: opacity 0.3s ease;
    display: block;

    will-change: transform;
}

.cursor-lotus {
    width: 30px;

    height: 30px;
    z-index: 9998;
}

.cursor-pixel-dom {
    width: 25px;
    height: 25px;
    z-index: 9998;
}

.cursor-circle {
    width: 50px;
    height: 50px;
    z-index: 9998;
    transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.3s ease;
}

.cursor-circle.is-hovering {
    width: 60px;
    height: 60px;
}


.overlay-section {
    cursor: none !important;


}


.cursor-text {
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: white;
    /* Required for difference blend mode to work reliably */
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

body.hide-custom-cursor .custom-cursor,
.custom-cursor.u-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.gallery-interactive {
    position: relative;
    width: 100%;
    height: 90vh;

    background: transparent;
    overflow: hidden;
    margin-bottom: 0;
    user-select: none;

    touch-action: pan-y;

}

.gallery-interactive footer {
    position: absolute;
    width: 100%;
    padding: 2em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    mix-blend-mode: difference;
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gallery-interactive footer p {
    color: white;
    margin: 0;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    /* cursor: grab; removed */
    margin-top: 0;

    opacity: 0;
    transition: opacity 0.5s ease;
    user-select: none !important;
}

/* #canvas:active removed */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}


#titles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-title {
    position: absolute;
    color: var(--color-black);

    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.title-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 0.9;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.title-number {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    margin: 0;
    position: relative;
    padding-top: 10px;
    display: flex;
    align-items: center;
}

.title-number::before {
    content: "";
    display: block;
    width: 45px;
    height: 8px;
    background-image: url('../assets/images/resources/line-gallery.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}




@media (max-width: 1024px) {

    .hero-main-content {
        margin-top: 0;
        grid-template-columns: 1fr;

        gap: 0.5rem;

    }

    .image-container {
        width: 280px;
        height: 360px;

        margin: 0 auto;

    }

    .hero-visual {
        top: 43%;

    }

    .hero-visual-placeholder {
        display: none;

    }

    .hero-spacer {
        height: 60vh;

    }

    .hero-content-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
        margin-top: 0;
        width: 100%;
        max-width: 600px;

        margin-left: auto;
        margin-right: auto;

        position: relative;

    }

    .hero-footer-strip {
        margin-top: 1rem;

        padding-top: 0.5rem;
    }

    .pd-text-img {
        position: absolute;
        top: 10px;

        left: -67px;

        margin: 0;
        display: block;
        width: 50px;

    }

    .hero-description {
        text-align: center;
        width: 100%;

        margin: 0;

    }
}


@media (max-width: 768px) {

    .hero-wrapper {
        padding: 0 !important;

        width: 100% !important;
        max-width: none !important;
    }

    .studio-text,
    .studio-retro-initial {
        display: none !important;
    }

    .hero-title span:nth-child(n+8) {
        display: none !important;
    }

    .hero-title {
        font-size: 30vw !important;
        font-size: 30cqi !important;
        margin-top: 0.5rem;
        width: 100%;
    }

    .retro-initial {
        font-size: 8vw !important;
    }

    .hero-main-content,
    .hero-footer-strip {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);

    }

    .hero-header {
        margin-bottom: 0;

    }

    .hero-main-content {
        margin-top: 0;
        grid-template-columns: 1fr;
        gap: 0.5rem;

    }

    .image-container {
        width: 220px;
        height: 280px;
    }

    .hero-visual {
        top: 48% !important;

    }

    .hero-visual,
    .hero-content-right {
        grid-column: auto;
    }

    .hero-spacer {
        height: 20vh;
    }

    .hero-content-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
        width: 100%;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;

        position: relative;

    }

    .pd-text-img {
        position: absolute;
        top: -35px;

        left: 0;
        margin: 0;
        width: 45px;

    }

    .hero-description {
        text-align: center;
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    .hero-footer-strip {
        margin-top: 2rem;
    }

    .footer-edition,
    .footer-signature {
        display: none !important;
    }

    .hero-footer-strip {
        padding-bottom: 1.5rem !important;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .hero-footer-strip .footer-edition,
    .hero-footer-strip .footer-signature,
    .hero-footer-strip .copyright {
        order: unset;
        margin: 0;
    }

    .hero-footer-strip .copyright {
        font-size: 0.9rem;
        text-align: center;
    }
}


@media (min-width: 650px) and (max-width: 768px) {
    .image-container {
        width: 340px;
        height: 430px;
    }

    .hero-title {
        font-size: 14cqi !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 100% !important;
    }
}


@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        height: 100vh;

        top: -100vh;
        padding: 2rem 1.5rem;
        justify-content: space-evenly;

    }

    .dropdown__section--one {
        display: none;

    }

    .dropdown__word {
        font-size: 15vw;

    }

    .dropdown__quote {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .dropdown__section--three {
        height: 100%;

        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;

    }

    .dropdown__nav {
        flex-direction: column;
        align-items: center;
        gap: 2rem;

        margin-top: 20vh;

    }

    .dropdown__button {
        font-size: 1.2rem;
        margin-right: 0;

        padding: 0.5rem;
    }
}


@media (max-width: 1024px) {


    .overlay-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 20vh;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
        padding-bottom: 2rem;
    }

    .overlay-col {
        align-items: center;
        padding: 0 1rem;
    }

    .overlay-desc {
        text-align: center;

    }


    .hero-visual {
        transform: translate(-50%, -50%) scale(0.8);
    }
}


@media (max-width: 768px) {


    .hero-title {
        font-size: clamp(4rem, 18vw, 8rem);
        line-height: 1.1;
        word-spacing: normal;
        top: 12%;
        transform: translate(-50%, -50%);
        white-space: normal;
        text-align: center;
        width: 90%;
    }


    .hero-visual {
        top: 48%;

        transform: translate(-50%, -50%);
        z-index: 60;
    }

    .hero-main-content {
        display: block;

    }

    .hero-content-right {
        position: fixed;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        z-index: 50;

        color: var(--color-text);
    }

    .postscript-svg {
        width: 20px;
        flex-shrink: 0;
    }

    .hero-description {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: left;
        color: #2c2c2c;
        max-width: 120% !important;

        padding: 0 !important;

    }


    .hero-footer-strip {
        position: fixed;
        bottom: -7rem !important;
        left: 0;
        width: 100%;
        padding: 0 1.5rem;
        justify-content: space-between;
        z-index: 50;
    }

    .footer-edition,
    .footer-signature {
        height: 1rem !important;
    }

    .copyright {
        font-size: 0.7rem !important;
    }
}


@media (max-width: 1024px) {
    .gallery-header {
        justify-content: flex-start;
        padding: 0 2rem;
        gap: 2rem;
        flex-wrap: nowrap;

        align-items: center;

        top: 8vh;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        margin-top: 0;
    }

    .gallery-header {

        gap: 1rem;
        padding: 0 1rem;
        align-items: flex-end;

        top: 12vh;

    }

    .gallery-title {
        display: flex;
        align-items: center;
        margin-bottom: -15px;
        /* Offset spacing introduced by flexbox to match retro design */
    }

    .gallery-retro-initial {
        line-height: 1;
        /* Match normal height of other letters */
        transform: translateY(-8%);
        /* Specific alignment tweak */
    }

    .gallery-nav-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--color-black);
        z-index: 100;
        cursor: pointer;
        transition: transform 0.2s ease, opacity 0.2s ease;
        padding: 0;
        opacity: 0.6;
    }

    .gallery-nav-arrow:active {
        transform: translateY(-50%) scale(0.9);
        opacity: 1;
    }

    .gallery-nav-arrow svg {
        width: 32px;
        height: 32px;
        stroke-width: 1.5;
    }

    .gallery-nav-arrow.left-arrow {
        left: 5px;
    }

    .gallery-nav-arrow.right-arrow {
        right: 5px;
    }

    .gallery-subtitle {
        padding-bottom: 0.8rem;
        padding-left: 0;
        min-width: 120px;
    }

    .subtitle-number {
        font-size: 0.75rem;
    }

    .subtitle-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Hide custom cursor on tablets and phones */
@media (max-width: 1024px) {

    /* Restore default cursors */
    body,
    .custom-cursor-active body,
    .overlay-section {
        cursor: auto !important;
    }

    a,
    button,
    .btn,
    .custom-cursor-active a,
    .custom-cursor-active button,
    .custom-cursor-active .btn {
        cursor: pointer !important;
    }

    input,
    textarea,
    select,
    .custom-cursor-active input,
    .custom-cursor-active textarea,
    .custom-cursor-active select {
        cursor: text !important;
    }

    /* Hide custom cursor elements */
    .custom-cursor,
    .cursorball,
    .cursor {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}