/*
Theme Name: hobelix
Theme URI: 
Author: Angel Petrov
Author URI: 
Description: Theme for hobelix
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hobelix
*/

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #fff;
	--color-link-hover: #907030;
	--color-title: #907030;
	--perspective: 1500px;
	--grid-item-ratio: 1.5;
	--grid-width: 100%;
	--grid-height: auto;
	--grid-gap: 2vw;
	--grid-columns: 4;
	--grid-inner-scale: 1;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	  font-family: "Montserrat Alternates", sans-serif;
	  font-weight: 400;
	      background: url(https://2025.hobelix.com/wp-content/themes/hobelix/noise.png), radial-gradient(circle, #1f1f1f 0%, #0b0b0b 100%)
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Morphing container styles */
.morphing-svg-container {
    transition: all 0.3s ease;
}

.morphing-svg-container svg {
    transition: all 0.3s ease;
}

.content__title_pdd, span.osf-title.osf-title--down{
    text-align: center;
    font-weight: 600;
    font-family: "Montserrat Alternates", sans-serif;
    font-size: clamp(1.5rem, 15vw, 4.5rem);
    text-shadow: 0px 0px 30px #000;
}

/* X parts animations */
.scroll-guide.animate .x-part-1,
.scroll-guide.animate .x-part-2,
.scroll-guide.animate .x-part-3 {
    transition: all 0.3s ease;
    animation: fadeInOut 2s infinite alternate ease-in-out;
}

.scroll-guide.animate .x-part-1 {
    animation-delay: 0s;
}

.scroll-guide.animate .x-part-2 {
    animation-delay: 0.3s;
}

.scroll-guide.animate .x-part-3 {
    animation-delay: 0.6s;
}


@keyframes pulseLine {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.scroll-guide__icon svg {
    width: 100%;
}

h1.csa-headings__main.gloock-regular img {
    width: 20vw;
}

/* Scroll Guide */
.scroll-guide {
    position: fixed;
    left: 50%;
    top: 0;
    height: 100vh;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}


.scroll-guide__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Scroll Guide */
.scroll-guide {
    position: fixed;
    left: 50%;
    top: 0;
    height: 100vh;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.scroll-guide__line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%);
     transform: translateZ(-1);
}

.scroll-guide__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.intro-subheading {
   font-family: "Montserrat Alternates", sans-serif;
    font-weight: 400!important;
    font-size: clamp(1.5rem, 15vw, 2.5rem)!important;
    color: #fff !important;
    text-transform: none !important;
    margin: 0px !important;
}

.frame-top {
    display: flex;
    position: fixed;
    right: 2rem;
    z-index: 999;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:not(.card__image):focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:not(.card__image):focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:not(.card__image):focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

main {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.frame {
	position: relative;
	width: 100%;
	padding: 1rem;
	display: grid;
	grid-template-columns: 100%;
	grid-template-areas: 'projects' 'contact';
	grid-gap: 0.5rem;
	justify-items: start;
	align-self: start;
	justify-self: start;
	pointer-events: none;
	align-items: center;
	text-transform: uppercase;
	font-size: 0.85rem;
	background: var(--color-bg-alt);
}

body #cdawrap {
    justify-self: start;
}

.frame a {
	pointer-events: auto;
}

.frame a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.15rem;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
}

.intro {
	height: calc(100vh - 3rem);
    text-align: center;
    place-items: center;
    display: grid;
    margin-bottom: 140vh;
    background: linear-gradient(0deg, transparent, var(--color-bg-alt));
}

.intro__title {
    place-items: center;
    margin: 0;
    line-height: .9;
    display: grid;
    margin-top: 15vh;
    font-weight: 400;
}

.intro__title-pre {
	font-weight: 300;
    font-size: clamp(2rem,8vw,5rem);
    color: var(--color-title);
    text-transform: uppercase;
}

.intro__title-sub {
    font-size: clamp(1.5rem,20vw,8rem);
    max-width: 15ch;
    margin: 0 auto;
}

.intro__info {
    max-width: 10%;
    opacity: 1;
    padding-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    align-self: end;
    color: #fff;
    margin: 0 auto;
    margin-top: 8%;
    font-family: "Montserrat Alternates", sans-serif;
}

.osf-intro__info {
    max-width: 30%;
    opacity: 1;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    align-self: end;
    font-family: "Montserrat Alternates", sans-serif;
}

.osf-content.osf-content--layout.osf-content--layout-4{
    text-align: center;
    text-shadow: 0px 0px 30px #000;
}

.intro__info::after {
	content: "";
	width: 1px;
	height: 2rem;
	background: #fff;
	position: absolute;
	top: 100%;
	left: 50%;
}

.card-wrap {
	margin-top: 5vh;
	display: grid;
	grid-gap: 2rem;
	grid-auto-flow: row;
	grid-template-columns: 250px;
}

/* Logo styles */
.logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    will-change: transform, filter;
    transform-origin: center center;
}

.logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

/* Hide logo on mobile */
@media screen and (max-width: 767px) {
	
	.intro {
    margin-bottom: 60vh;
}
	
    .logo {
        display: none;
    }

    h1.csa-headings__main.gloock-regular svg {
    width: 80% !important;
}

.csa-scene {
    top: 0vh!important;
    transform: translateY(0);
}

main > section.content:nth-of-type(6) .content__title{
    top: -40px !important;
}

.osf-content {
    display: flex;
    place-items: center;
    line-height: 1.2;
    grid-template-areas: 'content';
    flex-direction: column;
}

.osf-content__img {
    grid-area: img;
    max-width: 100%;
    height: auto;
}

.intro-subheading {
    font-size: 22px !important;
}

.intro__info {
    max-width: 70% !important;
}

.content__title {
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.4;
}

.osf-intro__info {
    max-width: 70% !important;
}

.outro {
    display: grid;
    place-items: center;
    margin: 40vh 0;
    width: 100% !important;
    justify-content: center !important;
}

.content__title_pdd, span.osf-title.osf-title--down {
    font-size: 45px !important;
}

.osf-content__text {
    width: 80% !important;
}
    
    
}

.card__image {
	display: block;
	border-radius: 7px;
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	filter: contrast(0.8);
}

.credits {
	font-size: 1.5rem;
	text-align: center;
}

.content {
	position: relative;
	margin-bottom: 20vh;
}

.content--spacing {
	margin-bottom: 100vh;
}

.content__title {
	position: absolute;
	height: 100vh;
	width: 100vw;
	top: 50%;
	left: 50%;
	margin: -50vh 0 0 -50vw;
	padding: 0 10vw;
	display: grid;
	place-items: center;
	text-align: center;
	font-weight: 600;
	font-size: clamp(1.5rem, 15vw, 4.5rem);
	text-shadow: 0px 0px 30px #000;
}

.content__title--top {
	align-items: start;
}

.frame-top a{
    padding: 2rem;
}

.content__title--bottom {
	align-items: end;
}

.content__title--left {
	justify-items: start;
	text-align: left;
}

.content__title--right {
	justify-items: end;
	text-align: right;
}

.outro {
	display: grid;
	place-items: center;
	margin: 40vh 0;
}

.grid {
	display: grid;
	place-items: center;
	padding: 2rem;
	width: 100%;
	perspective: var(--perspective);
}

.grid-wrap {
	height: var(--grid-height);
	width: var(--grid-width);
	display: grid;
	grid-template-columns: repeat(var(--grid-columns),1fr);
	gap: var(--grid-gap);
	transform-style: preserve-3d;
}

.grid__item {
	aspect-ratio: var(--grid-item-ratio);
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
	display: grid;
	place-items: center;
}

.grid__item-inner {
	position: relative;
	width: calc(1 / var(--grid-inner-scale) * 100%);
	height: calc(1 / var(--grid-inner-scale) * 100%);
	background-size: cover;
	background-position: 50% 50%;
}

@media screen and (min-width: 53em) {
	.frame {
		grid-template-columns: auto auto auto 1fr;
		grid-template-areas: 'projects contact';
		align-content: space-between;
		justify-items: start;
		grid-gap: 2rem;
	}
	.frame__demos {
		justify-self: end;
	}

	.content--outro {
		height: 100vh;
		justify-content: center;
	}

	.card-wrap {
		grid-template-columns: repeat(3,250px);
	}

	body #cdawrap {
	    justify-self: end;
	}
}
