:root {
    --orange: #FE8534;
    --red: #7F1100;
    --white: #F0ECE5;
    --black: #140C0B;
    --redhsl: 8, 100%, 25%;
    --whitehsl: 38, 27%, 92%;
    --trans: 1.5s cubic-bezier(.35,0,0,1);   
}

html {
    font-size: 5px;
}

html, body {
    background-color: var(--white);
    overflow-x: hidden;
}

body, * {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    line-height: 1;
    color: var(--black);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 3.25rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section {
    min-height: 100vh;
    width: 100vw;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    width: 1px;
}

h1 {
    font-family: 'Forum', cursive;
    font-weight: 400;
    font-size: 15rem;
}

h2, nav a {
    font-family: 'Forum', cursive;
    font-weight: 400;
    font-size: 8rem;
    color: var(--red);
}

strong {
    font-weight: 400;
    font-family: inherit;
    color: inherit;
}

small {
    font-size: .65em;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
}

a, #current-year, span {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}

button, a.button {
    border: none;
    cursor: pointer;
    padding: 1.85rem 5rem 1.3rem 5rem;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
}

button.red-button, a.button.red-button {
    background-color: var(--red);
}

button.orange-button, a.button.orange-button {
    background-color: var(--orange);
}

em {
    font-style: normal;
    font-weight: 400;
    font-family: 'Homemade Apple', cursive;
    color: inherit;
    font-size: inherit;
    text-decoration: inherit;
}




/* lines */

.lines-bg {
    z-index: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: opacity var(--trans);
}

.lines-bg .line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--white) 0%, var(--red) 100%);
    transition: opacity var(--trans);
    opacity: 0.3;
}

.lines-bg .line:nth-child(1) {
    width: 0px;
}

body:has(.services-slice.open) .lines-bg .line {
    opacity: 0;
}

.lines-bg-inline {
    z-index: 3;
    position: relative;
    height: 10vh;
    background: var(--white);
}

.lines-bg-inline.flip, .lines-bg.flip {
    transform: scaleY(-1);
}






/* nav */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
}

header img {
    height: 10rem;
    width: auto;
}

header .nav-button {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    transform: translateX(0);
    transition: transform var(--trans);
}

header .nav-button.open {
    transform: translateX(-1rem);
}

header .nav-button span {
    width: 1rem;
    height: 1rem;
    background-color: var(--red);
    display: block;
    border-radius: 50%;
    transform: translateX(0) scale(1);    
    transition: transform var(--trans);
}

header .nav-button.open span:nth-child(1) {
    transform: translateX(4rem);
}

header .nav-button.open span:nth-child(2) {
    transform: translateX(2rem) scale(2);
}

header .nav-button.open span:nth-child(3) {
    transform: translateX(0) scale(3);
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    z-index: 99;
    transform: scale(0.8);
    transition: all var(--trans);
    pointer-events: none;
}

nav .nav-circle {
    width: auto;
    height: 112vh;
    aspect-ratio: 1/1;
    background-color: var(--white);
    border: 5px solid var(--orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--trans);
    z-index: 98;
}

nav.open {
    pointer-events: all;
    transform: scale(1);
}

nav.open .nav-circle {
    transform: translate(-50%, -50%) scale(1);
}

nav a {
    z-index: 99;
    text-decoration: none;
    transition: all var(--trans);
    transition-delay: calc(var(--index) * 0.025s);
    transform: scale(0.75);
    opacity: 0;
}

nav.open a {
    transform: scale(1);
    opacity: 1;
    transition-delay: calc(var(--index) * 0.1s);
}

nav .menu-services {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    row-gap: .5rem;
    margin-top: -7.5rem;
    width: 80%;
}

nav .menu-services a {
    font-size: 4rem;
}

nav a .squiggly-icon {
    width: 5rem;
    height: 5rem;
    -o-object-fit: contain;
       object-fit: contain;
}






/* hero */

#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

#hero .hero-words, #hero .hero-circle, #hero img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1/1;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
}

#hero button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#hero .hero-circle {
    height: 25vh;
    border: solid 1px var(--orange);
    border-radius: 50%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero .hero-circle img:nth-child(1) {
    width: 100%;
    height: auto;
    opacity: 0;
    -webkit-filter: blur(10px);
            filter: blur(10px);
}

#hero .hero-circle img:nth-child(2) {
    width: 50%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

#hero .hero-words {
    height: 37vh;
    width: auto;
}

.hero-words-text {
    fill: var(--red);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 1.45rem;
}


/* about */

#about {
    padding-top: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 85vh;
}

#about img:not(.about-circle-img), #about .about-text {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    -o-object-fit: cover;
       object-fit: cover;
}

#about img:not(.about-circle-img) {
    -webkit-clip-path: circle(90% at 50% 70vh);
            clip-path: circle(90% at 50% 70vh);
}

#about img:nth-of-type(1):not(.about-circle-img) {
    top: 105vh;
    height: 95vh;
}

#about img:nth-of-type(2) {
    top: 110vh;
    height: 90vh;
}

#about img:nth-of-type(3) {
    top: 115vh;
    height: 85vh;
}

#about .about-text {
    text-align: center;
    top: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    background: linear-gradient(to bottom, hsla(var(--whitehsl), 0) 0%, hsla(var(--whitehsl), 0.5) 50%, hsla(var(--whitehsl), 1) 100%);
    padding-inline: 10rem;
}

#about .about-text h1 {
    line-height: 0.5;
    margin-top: 10rem;
}

#about .about-text h1 small {
    font-size: 0.65em;
}

#about .about-circle {
    width: 20vh;
    height: 20vh;
    border: solid 1px var(--orange);
    border-radius: 50%;
    background: var(--white);
    position: relative;
}

#about .about-circle img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

#about .about-words {
    height: 30vh;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-words-text {
    fill: var(--red);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 1.45rem;
}



/* services */

#services {
    margin-block: -1rem;
    width: 180vw;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    overflow-x: visible;
    overflow-y: hidden;
    height: 80vh;
    min-height: unset;
    transform: translateX(0);
    transition: transform var(--trans);
}

#services .services-slice {
    width: 20vw;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: var(--white);
    border-right: 1px solid hsla(var(--redhsl), 0.3);
    flex-shrink: 0;
    overflow: hidden;
    transition: width var(--trans), border-right var(--trans);
}

#services .services-slice .services-outer {
    width: 20vw;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    background-color: var(--white);
}

#services .services-slice .services-outer h2 {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100vh;
    text-align: right;
    text-wrap: nowrap;
}

#services .services-slice .services-outer button {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--red);
    transition: background-color var(--trans);
}

#services .services-slice .services-outer .squiggly-icon {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 10rem;
    height: 10rem;
    -o-object-fit: contain;
       object-fit: contain;
}

#services .services-slice .services-outer button span {
    color: var(--white);
    font-size: 4rem;
    transform: rotate(0deg);
    transition: transform var(--trans);
}

#services .services-slice .services-inner {
    width: 0%;
    transition: width var(--trans);
    flex-shrink: 0;
    padding: 5rem;
    position: relative;
    z-index: 1;
}

#services .services-slice .services-inner .services-imgs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#services .services-slice .services-inner .services-imgs img {
    left: 0;
    width: 80vw;
    height: 33.33%;
    -o-object-fit: cover;
       object-fit: cover;
}

#services .services-slice .services-inner p {
    position: absolute;
    top: 0;
    left: 0;
    width: 80vw;
    padding: 5rem;
    height: 100%;
    background: linear-gradient(to bottom, hsla(var(--whitehsl), 0.9) 50%, hsla(var(--whitehsl), 0) 100%);
    z-index: 5;
    text-align: justify;
}

#services .services-slice .services-inner .services-imgs img,
#services .services-slice .services-inner p {
    opacity: 0;
    transform: translateX(-10rem);
    transition: transform var(--trans), opacity var(--trans);
}

/* services animations */

#services[data-open-slice="1"] {
    transform: translateX(-20vw);
}

#services[data-open-slice="2"] {
    transform: translateX(-40vw);
}

#services[data-open-slice="3"] {
    transform: translateX(-60vw);
}

#services[data-open-slice="4"] {
    transform: translateX(-80vw);
}

#services .services-slice.open {
    width: 100vw;    
    border-right: 1px solid hsla(var(--redhsl), 0);
}

#services .services-slice.open .services-inner {
    width: 80vw;
    overflow: hidden;
}

#services .services-slice.open .services-outer button {
    background-color: var(--orange);
}

#services .services-slice.open .services-outer button span {
    transform: rotate(135deg);
}

#services .services-slice.open .services-inner .services-imgs img,
#services .services-slice.open .services-inner p {
    transform: translateX(0rem);
    opacity: 1;
}

#services .services-slice.open .services-inner .services-imgs img:nth-child(1) {
    transition-delay: 0;
}

#services .services-slice.open .services-inner .services-imgs img:nth-child(2) {
    transition-delay: 0.1s;
}

#services .services-slice.open .services-inner .services-imgs img:nth-child(3) {
    transition-delay: 0.2s;
}

#services .services-slice.open .services-inner p {
    transition-delay: 0.3s;
}



/* footer */

#footer {
    z-index: 4;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem;
    background: var(--white);
    gap: 5rem;
    text-align: center;
}

#footer .lines-bg {
    position: absolute;
}

#footer img {
    height: 20rem;
    width: auto;
}

#footer h2 {
    line-height: 0.75;
}

#footer h2 span {
    color: var(--orange);
}

#footer p:has(small) {
    position: absolute;
    bottom: 10rem;
    left: 0;
    width: 100%;
    line-height: 0.7;
}

#footer p small a {
    text-decoration: underline;
}






.squiggly-icon {
    -webkit-animation: squiggly-anim 1s infinite;
            animation: squiggly-anim 1s infinite;
}

@-webkit-keyframes squiggly-anim {
    0% {
        -webkit-filter: url('#squiggly-0');
                filter: url('#squiggly-0');
    }
    25% {
        -webkit-filter: url('#squiggly-1');
                filter: url('#squiggly-1');
    }
    50% {
        -webkit-filter: url('#squiggly-2');
                filter: url('#squiggly-2');
    }
    75% {
        -webkit-filter: url('#squiggly-3');
                filter: url('#squiggly-3');
    }
    100% {
        -webkit-filter: url('#squiggly-4');
                filter: url('#squiggly-4');
    }
}

@keyframes squiggly-anim {
    0% {
        -webkit-filter: url('#squiggly-0');
                filter: url('#squiggly-0');
    }
    25% {
        -webkit-filter: url('#squiggly-1');
                filter: url('#squiggly-1');
    }
    50% {
        -webkit-filter: url('#squiggly-2');
                filter: url('#squiggly-2');
    }
    75% {
        -webkit-filter: url('#squiggly-3');
                filter: url('#squiggly-3');
    }
    100% {
        -webkit-filter: url('#squiggly-4');
                filter: url('#squiggly-4');
    }
}