/*______________________________________________________SCROLL*/
html, body {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
}

/*______________________________________________________FONTS*/

/* LEGAL DISCLAIMER
 *
 * These Fonts are licensed only for use on these domains and their subdomains:
 * whowill.xyz
 *
 * It is illegal to download or use them on other websites.
 *
 * While the @font-face statements below may be modified by the client, this
 * disclaimer may not be removed.
 *
 * Optimo webfonts are protected by copyright law and provided under license. To modify, alter, translate, convert, decode or reverse engineer in any manner whatsoever, including converting the Font Software into a different format is strictly prohibited. The webfont files are not to be used for anything other than web font use.
 *
 * optimo.ch
 */

@font-face {
    font-family: 'Basel Grotesk';
    src: url('/fonts/Basel-Grotesk-Medium.eot');
    src: url('/fonts/Basel-Grotesk-Medium.eot?#iefix') format('embedded-opentype'),
    url('/fonts/Basel-Grotesk-Medium.woff2') format('woff2'),
    url('/fonts/Basel-Grotesk-Medium.woff') format('woff');
    font-weight: 535;
    font-style: normal;
}

h1, h2, h3, p {
    font-size: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important; /* or inline-block if you want to control width/height */
}

/*_____________________________________________________________TEXT SIZES*/
/*___________LARGE*/

@media only screen and (min-width: 320px) and (max-width: 479.98px) {
    .description, h1 {
        font-size: 1.8em;
        line-height: 0.93em;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767.98px) {
    .description, h1 {
        font-size: 1.92em;
        line-height: 0.93em;
        letter-spacing: -0.01em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .description, h1 {
        font-size: 2.94em;
        line-height: 0.92em;
        letter-spacing: -0.01em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
    .description, h1 {
        font-size: 2.85em;
        line-height: 0.91em;
        letter-spacing: -0.01em;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399.98px) {
    .description, h1 {
        font-size: 3.55em;
        line-height: 0.91em;
        letter-spacing: -0.01em;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1919.98px) {
    .description, h1 {
        font-size: 4.2em;
        line-height: 0.91em;
        letter-spacing: -0.02em;
    }
}

@media only screen and (min-width: 1920px) {
    .description, h1 {
        font-size: 5.8em;
        line-height: 0.91em;
        letter-spacing: -0.02em;
    }
}

/*___________MEDIUM*/

@media only screen and (min-width: 320px) and (max-width: 479.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 1.1em;
        line-height: 1.035em;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 1.4em;
        line-height: 1.0em;
        letter-spacing: -0.006em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 1.3em;
        line-height: 1.0em;
        letter-spacing: -0.006em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 1.5em;
        line-height: 1.0em;
        letter-spacing: -0.008em;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 1.8em;
        line-height: 1em;
        letter-spacing: -0.008em;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1919.98px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 2.12em;
        line-height: 1em;
        letter-spacing: -0.01em;
    }
}

@media only screen and (min-width: 1920px) {
    .grid-item, header.menu, #text-cursor {
        font-size: 2.6em;
        line-height: 1em;
        letter-spacing: -0.01em;
    }
}

/*___________SMALL*/

@media only screen and (min-width: 320px) and (max-width: 479.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.8em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.8em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.8em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.85em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.85em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1919.98px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 0.9em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

@media only screen and (min-width: 1920px) {
    .grid-header, .image-text, .about-contact, h2, h3, p {
        font-size: 1em;
        line-height: 1.05em;
        letter-spacing: -0.0em;
    }
}

/*______________________________________________________PRELOAD*/
.preload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    overflow: hidden;
    background-color: #000;
}

@media (max-width: 768px) {
    #preload {
    cursor: default;
    }
}

.media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preload.fade-out {
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

/* Cursor Image (follows the cursor) */
.cursor-image {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 40px;
    height: 40px;
    opacity: 1;
}

.cursor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/*______________________________________________________MENU*/
header.menu {
    font-family: 'Basel Grotesk', sans-serif;
    font-weight: 535;
    font-style: normal;
    color: #ffffff;
    position: fixed;
    padding: 2%;
    left: 1%;
    bottom: 1.26%;
    z-index: 1000;
}

header.menu.show {
    display: flex; 
    color: #000000; 
}

/*_____MOBILE*/
@media (max-width: 768px) {
    header.menu {
        padding: 5%;
        left: 3%;
        bottom: 0.7%;
    }
}

.who-will {
    display: flex;
    align-items: center;
    gap: 0.25em;
    position: absolute;
    left: 0;
}

header.menu a {
    color: #ffffff;
    text-decoration: none;
}

header.menu.show a {
    color: #000000;
    text-decoration: none;
}

header.menu a:hover {
    color: #c6c6c6;
}

.clock {
    white-space: nowrap;
    min-width: max-content; 
}

.description a {
    color: #000000;
    text-decoration: none;
}

.description a:hover {
    color: #c0c0c0;
    text-decoration: none;
}
/*__________________________________________________________HOMEPAGE*/
video::-webkit-media-controls {
    display: none;
}

.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1% 0.25% 0 1%;
}

/*_____MOBILE*/
@media (max-width: 768px) {
    .scroll-container {
        padding: 2.5% 1% 0 2.5%;
    }
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.image-wrapper {
    display: inline-block;
    position: relative;
    margin-right: 0.7%;
    vertical-align: top;
}

/*_____MOBILE*/
@media (max-width: 768px) {
    .image-wrapper {
        margin-right: 2%;
    }
}

.image-placeholder {
    display: inline-block;
    transition: transform 0.4s ease;
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.4s ease;
    z-index: 1;
}

.scroll-container img,
.scroll-container video {
    height: auto;
    max-height: 62vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 0;
    transition: opacity 0.4s ease;
}

/*_____MOBILE*/
@media (max-width: 768px) {
    .scroll-container img,
    .scroll-container video {
    max-height: 53vh;
    width: auto;
    }
}

.image-text {
    font-family: 'Basel Grotesk', sans-serif;
    font-weight: 535;
    font-style: normal;
    color: #000000;
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

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

.sub-text {
    text-align: left;
    margin-top: 0;
}

.sub-text a {
    color: #000000;
    text-decoration: none;
}

.sub-text a:hover {
    color: #c0c0c0;
    text-decoration: none;
}

.image-wrapper:hover .image-text,
.image-wrapper.tapped .image-text {
    opacity: 1;
    transform: translateY(34.5px);
}

.image-wrapper:hover .image-placeholder,
.image-wrapper.tapped .image-placeholder {
    transform: translateY(40px);
}

.image-wrapper:hover img,
.image-wrapper.tapped img {
    opacity: 0;
}

/*______VIDEO*/
video {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    outline: none;
}
  /* Hide default controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-moz-media-controls {
    display: none !important;
}

/*___________________________________________________________ABOUT*/
body {
    transition: background-color 0.3s ease;
}

.about-content {
    display: block;
    height: 100vh;
    padding-top: 1%;
    padding-left: 1.2%;
    padding-right: 2%;
}

/*_____MOBILE*/
@media (max-width: 768px) {
    .about-content {
        padding-top: 2.3%;
        padding-left: 2.8%;
        padding-right: 2.3%;
    }
}

.description {
    font-family: 'Basel Grotesk', sans-serif;
    font-weight: 535;
    font-style: normal;
    color: #000000;
    display: block;
    
}

.container {
    padding: 1%;
    margin-bottom: 50vh;
}

/*____MOBILE*/
@media (max-width: 768px) {
    .container {
        padding-top: 2.3%;
        padding-left: 2.8%;
        padding-right: 2.3%;
    }
}

.grid-header, .grid-item .item-content {
    display: flex;
    font-family: 'Basel Grotesk', sans-serif;
    font-weight: 535;
    font-style: normal;
    padding: 0em 0;
}

.grid-header {
    padding-bottom: 0.4em;
}
.grid-header {
    color: #000000;
}

.grid-header .title,
.grid-item .title {
    flex: 0 0 26.5%;
}

.grid-header .industry,
.grid-item .industry {
    flex: 0 0 21.5%;
}

.grid-header .category,
.grid-item .category {
    flex: 0 0 42%;
}

.grid-header .year,
.grid-item .year {
    flex: 0 0 10%;
    text-align: right;
    cursor: pointer;
}

.hover-image {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: clamp(200px, 25vw, 300px);
    background-size: cover;
    background-position: center;
    z-index: 999;
    display: none;
    transition: opacity 0.2s ease;
}

.hover-image img,
.hover-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grid-item.hovered .item-content {
    opacity: 0.25; /* Reduce opacity */
    transition: color 0.3s ease, opacity 0.3s ease;
}

/*____________MOBILE*/
@media (max-width: 768px) {
    .grid-header .industry,
    .grid-header .category,
    .grid-item .industry,
    .grid-item .category {
    display: none;
}

    .grid-header .title,
    .grid-item .title {
        flex: 0 0 70%;
    }

    .grid-header .year,
    .grid-item .year {
        flex: 0 0 30%;
    }
}

/*________CURSOR*/
.grid-item,
.grid-item * {
    cursor: default;
    user-select: none;
}



/*_________________________________________________________LINKS*/

.a, .a:link, .a:visited, .a:focus, .a:hover, .a:active {
    color: #c0c0c0;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    cursor: auto;
}

/*__________________________________________________________TEXT SELECTION*/

::selection {
    background-color: #c0c0c0 !important; 
    color: #ffffff; 
}

  * ::selection {
    background-color: #c0c0c0!important;
    color: #ffffff; 
}
