/* --- Root --- */

:root {
    --main-white: #ffffff;
    --bg-white: #ffffff;
    --main-black: #000000;
    --bg-black: #000000;
    --gray-text: #505050;
    --font-heavy: 'TheOakLeafHeavy', sans-serif;
    --font-medium: 'TheOakLeafMedium', sans-serif;
    --font-cursive: 'Hughetta', sans-serif;
}

/* --- Body --- */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.scrollable-section {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.scrollable-section::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.section {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.screen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    position: relative;
    box-sizing: border-box;
}


/* --- Fonts --- */

@font-face {
    font-family: 'TheOakLeafHeavy';
    src:
        url('../fonts/TheOakLeaf/ttf/TheOakLeafHeavy.ttf') format('truetype'),
        url('../fonts/TheOakLeaf/woff/TheOakLeafHeavy.woff') format('woff'),
        url('../fonts/TheOakLeaf/woff2/TheOakLeafHeavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'TheOakLeafMedium';
    src:
        url('../fonts/TheOakLeaf/ttf/TheOakLeafMedium.ttf') format('truetype'),
        url('../fonts/TheOakLeaf/woff/TheOakLeafMedium.woff') format('woff'),
        url('../fonts/TheOakLeaf/woff2/TheOakLeafMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Hughetta';
    src:
    url('../fonts/Hughetta/ttf/Hughetta.ttf') format('truetype'),
    url('../fonts/Hughetta/woff/Hughetta.woff') format('woff'),
    url('../fonts/Hughetta/woff2/Hughetta.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

h1 {   
    font-family: var(--font-heavy);
    font-size: 128px;
    line-height: 106px;
    text-transform: uppercase;
    margin: 0;
}

h2 {   
    font-family: var(--font-heavy);
    font-size: 64px;
    text-transform: uppercase;
    margin: 0;
}

h3 {
    font-family: var(--font-medium);
    text-transform: uppercase;
    color: var(--main-white);
    line-height: 1.6;
}

p {
    font-family: var(--font-medium);
    text-transform: uppercase;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.cursive {
    font-family: var(--font-cursive);
    text-transform: lowercase;
    line-height: 1.6;
    font-size: 32px;
    margin-left: 4px;
    margin-right: 2px;
}

/* --- Overlay --- */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 20;
    color: var(--color-white);
    transition: color 0.5s, opacity 0.5s;
}


.topsection, .bottomsection {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    height: 20vh;
    padding: 0 80px;
    position: relative;
}

.menubutton, .contactbutton, .arrow, .fullscreen {
    flex: 0 0 auto;
}

.menubutton, .contactbutton, .undertypo {
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

#undertypoLink,
#undertypoLink .undertypo {
    text-decoration: none;
}

.linkoverlay{
    text-decoration: none;
}

.logo, .sections {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo{
    max-width: 50px;
    display: block;
    vertical-align: middle;
    height: auto;
}

.logolink {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fullscreen, .arrow{
    max-width: 20px;
}

.logo, .fullscreen, .arrow, .menubutton, .contactbutton, .undertypo{
    height: auto;
    cursor: pointer;
    transition-duration: 300ms;
    transition-timing-function: ease;
    transition-property: opacity;
}

.logo:hover, .fullscreen:hover, .arrow:hover, .menubutton:hover, .contactbutton:hover, .undertypo:hover{
    opacity: 0.75;
}

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

/* --  Overlay Animation -- */

.overlay-transperent,
.overlay-transperent .arrow,
.overlay-transperent h3,
.overlay-transperent .logo
.overlay-transperent .fullscreen {
    opacity: 0;
    transition: 300ms ease-in-out;
}

/*  - White-to-Black - */

.overlay-black,
.overlay-black h3{
    color: black;
    transition: 300ms ease-in-out;
}

.overlay-black .logo {
    content: url('../img/logo/black_wide_header_logo.png');
    transition: 300ms ease-in-out;
}

.overlay-black .arrow {
    content: url('../img/controls/arrow_up_black.png');
    transition: 300ms ease-in-out;
}

.overlay-black .fullscreen {
    content: url('../img/controls/full_screen_black.png');
    transition: 300ms ease-in-out;
}

/* --- First Screen --- */

.Home {
    width: 100dvw;
    height: 100dvh;
    background-color: var(--bg-black);
    z-index: 0;
}

.mainsection {  
    position: absolute;
    padding: 0 80px;
    z-index: 5;
    height: 60%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--main-white);
    box-sizing: border-box;
    will-change: opacity, transform;
    transform-style: preserve-3d;
}

.grain-overlay {
    position: absolute;
    opacity: 100%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 3; 
    will-change: transform;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 4; 
    will-change: transform;
}

.undertypo{
    text-align: center;
    width: 100%;
}

.controls {
    width: 120px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.playbutton, .fullscreen {
    width: 20px;
    height: 20px;
}

.iframewrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.iframewrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh; 
    transform: translate(-50%, -50%) scale(1.1);
}

.grain-overlay {
    position: absolute;
    opacity: 0.7;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* --- Second Screen --- */

.secondscreen {
    background-color: white;
}

.welcomesection {  
    position: absolute;
    height: 60%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-text);
    box-sizing: border-box;
}

.welcometext, .welcometextmobile{
    width: 360px;
    text-align: left;
}

.welcometextmobile{
    margin-top: 10px;
    display: none;
}

.welcome{
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.photoarthur {
    background-image: url(../img/photos/arthuroakford.png);
    background-size: cover;
    background-position: center;
    width: 360px;
    height: 100%;
    margin-right: 64px;
    margin-left: 64px;
}

.signature {
    max-width: 128px;
    margin-top: 10px;
}

/* --- Third Screen --- */

.carousel-controls-mobile{
    display: none;
}

.videocarousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-black);
}

.carousel-iframe {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.carousel-iframe iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1s;
    backface-visibility: hidden;
    will-change: opacity, transform;
    transform-style: preserve-3d;
}

.carousel-controls{
    z-index: 10;
    display: flex;
    gap: 64px;
    height: 60%;
    width: 100%;
    position: absolute;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    box-sizing: border-box;
    color: var(--main-white);
    will-change: transform;
}

.carousel-arrow {
    max-width: 20px;
    max-height: 20px;
    height: auto;
    cursor: pointer;
    transition: 300ms ease-in-out;
}

.carousel-arrow:hover {
    opacity: 0.75;
}

#video-black {
    z-index: 1;
    opacity: 1;
}

.current-video {
    z-index: 2;
    opacity: 1;
}

.testemonials{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.testemonialstext{
    margin-top: 18px;
    width: 360px;
    text-align: center;
}

.names{
    width: 560px;
}

.mobilearrows{
    display: none;
}

/* --- Media --- */

@media screen and (max-width: 1400px) {
    
    .welcometext{
        width: 300px;
    }

    .welcome{
        width: 300px;
    }

}

@media screen and (max-width: 1300px) {
    
    h2 {   
        font-size: 52px;
    }

    .welcometext{
        width: 240px;
    }

    .welcome{
        width: 240px;
    }

}

@media screen and (max-width: 1200px) {
    
    .topsection, .bottomsection {
        padding: 0 40px;
        height: 80px;
        
    }
    
    .photoarthur {
        width: 280px;
    }
}

@media screen and (max-width: 1000px) {
    
    h1 {   
        font-size: 92px;
        line-height: 78px;
    }
   
    .welcomesection {  
        flex-direction: column;
        gap: 20px;
    }

    .photoarthur {
        display: none;
    }

    .signature{
        display: none;
    }

    .welcometext{
        width: 400px;
        text-align: center;
    }

    .welcome{
        width: 400px;
        align-items: center;
    }

    .carousel-controls {
        gap: 30px;
    }
}
  
@media screen and (max-width: 800px) {
    
    h1 {   
        font-size: 82px;
        line-height: 70px;
    }

    .carousel-controls {
        gap: 0px;
    }

    .testemonialstext{
        width: 360px;
    }
    
    .names{
        width: 520px;
    }
}
  
@media screen and (max-width: 700px) {

    .mobilearrows{
        display: flex;
        margin-top: 32px;
    }

    .carousel-arrow.destop{
        display: none;
    }

    .carousel-arrow.mobile{
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media screen and (max-width: 600px) {

    .mobilearrows{
        display: flex;
        margin-top: 32px;
    }

    .carousel-arrow.destop{
        display: none;
    }

    .carousel-arrow.mobile{
        margin-left: 30px;
        margin-right: 30px;
    }

    .photoarthur {
        display: flex;
        width: 100%;
    }

    .welcometextmobile{
        display: flex;
        width: 100%;
        text-align: justify;
        text-align-last: center;
    }

    .welcometext{
        display: none;
    }

    .welcomesection {  
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .welcome{
        width: 100%;
    }

    .testemonialstext{
        width: 100%;
        text-align: justify;
        text-align-last: center;
    }

    .testemonials{
        width: 100%;
    }

    .carousel-controls{
        padding-left: 40px;
        padding-right: 40px;
    }

    .hello{
        display: none;
    }
}

@media screen and (max-width: 500px) {

    h1{
        font-size: 64px;
    }

    h2{
        font-size: 42px;
    }

    .mainsection{
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

}

@media screen and (max-width: 400px) {

    h1{
        font-size: 64px;
    }

    h2{
        font-size: 34px;
    }
    .menubutton, .contactbutton, .undertypo, p{
        font-size: 12px;
    }
    .logo{
        max-width: 40px;
    }
    
    .fullscreen, .arrow{
        max-width: 16px;
        max-height: 16px;
    }

    .cursive {
        font-size: 28px;
        margin-left: 3px;
        margin-right: 2px;
    }

}