/*
 * Index
 * ----------------------------
 * 1. Reset & Base Styles
 * 2. Typography
 * 2.1 Links
 * 3. Forms
 * 4. Helper Classes
 * 5. Preloader
 * 6. Site Header
 * 6.1 Logo
 * 6.2 Navigation
 * 6.3 Site Footer
 * 7. Pages & Contents
 * 8. Home Section
 * 8.1 Hero
 * 8.2 Intro
 * 8.3 Newsletter form
 * 8.4 Circle text
 * 8.5 Countdown
 * 9. Portfolio Gallery
 * 9.1 Custom Lightbox Controls (Lity)
 * 10. Skillbars
 */

/* 1. Reset & Base Styles */
*,
*:before,
*:after {
	box-sizing: border-box;
}

html,
body {
	overflow-x: hidden;
}

:root {
	font-size: 16px;
	/* --color-base: #f8fafc;
	--color-primary: #1e293b;
	--color-accent: #ff6b6b; */
/* Midnight Ink — deep navy base with off-white text and electric coral, bold and striking */
	/* --color-base: #0d1b2a;
--color-primary: #f0ebe3;
--color-accent: #ff4d6d; */
/*Forest Sage — organic, nature-toned palette for an earthy lifestyle photographer */
/* --color-base: #f2f4f0;
--color-primary: #1e2d1f;
--color-accent: #7daa6f; */
/* Monochrome Silver — pure grayscale with a single warm accent, timeless and gallery-like */
--color-base: #f7f7f7;
--color-primary: #1a1a1a;
--color-accent: #b08d6a;
/* Electric Citrus — deep black base lets the lime explode */
/* --color-base: #f9fafb;
--color-primary: #0a0a0a;
--color-accent: #c8f500; */
	--image-overlay: rgba(0,0,0,0.2);
	--font-primary: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
}

@media screen and (max-width: 832px) { 
	:root {
		font-size: 13px;
	}
}

body {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	font-family: var(--font-body);
	/*font-optical-sizing: auto;*/
	font-weight: normal;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--color-primary);
	background-image: var(--bg-image);
	background-attachment: fixed;
	background-size: cover;
	background-color: var(--color-base);
}

body:before,
body:after {
	content: "";
	position: fixed;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--color-accent);
	opacity: .2;
	z-index: -2;
}

body:before {
	left: 20vw;
}

body:after {
	right: 20vw;
}

img {
	max-width: 100%;
}

ul {
	margin: 0;
	padding: 0;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 400;
	font-style: normal;
	color: var(--color-accent);
}

p {
	line-height: 1.6;
}

/* 2.1 Links */
a {
	color: inherit;
	text-decoration: none;
	outline: none;
	cursor: pointer;
}

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

a:focus {
	outline: none;
}

/* 3. Forms */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

input,
textarea {
	display: block;
	font-family: inherit;
	width: 100%;
	padding: 16px 20px;
	margin-bottom: 20px;
	color: var(--color-base);
	border: solid 1px var(--color-primary);
	border-radius: 20px;
	background: var(--color-primary);
	transition: opacity .2s linear;
}

input:focus,
textarea:focus {
	color: var(--color-base);
	/* background: var(--color-accent); */
	outline: none;
}

textarea {
	min-height: 160px;
}

::placeholder {
	color: var(--color-accent);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--color-accent);
    transition: 0.3s ease all;
    pointer-events: none;
}

@media screen and (max-width: 832px) {
	.input-group label {
		top: 16px;
	}
}

input:focus ~ label, 
input:not(:placeholder-shown) ~ label,
textarea:focus ~ label,
textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 18px;
    font-size: 13px;
	color: var(--color-primary);
    background: var(--color-accent);
	border-radius: 4px;
    padding: 0 5px;
}

input[type="submit"] {
	display: inline-block;
	cursor: pointer;
	width: auto;
	border: none;
	padding: 18px 28px;
	background: var(--color-primary);
	color: var(--color-base);
	font-size: 12px;
	letter-spacing: 2px;
	transition: background .5s ease;
}

input[type="submit"]:hover {
	background: var(--color-accent);
	color: var(--color-base);
}

.form-alert {
	display: none;
	margin: 0;
	padding: 6px 10px;
	background: var(--color-primary);
	border-radius: 20px;
	color: var(--color-base);
	font-size: 12px;
}

.newsletter-form input[type="email"] {
	width: min(280px, 100%);
	color: var(--color-base);
	background: var(--color-primary);
	border: solid 1px var(--color-accent);
}

@media screen and (max-width: 832px) {
	.newsletter-form input[type="email"] {
		width: 100%;
	}
}

.newsletter-form input[type="submit"] {
	background: var(--color-base);
	color: var(--color-primary);
}

.newsletter-form input[type="submit"]:hover {
	background: var(--color-accent);
	color: var(--color-base);
}

.form-submitted input,
.form-submitted textarea {
	pointer-events: none;
	opacity: .4;
}

.form-submitted .form-alert {
	display: inline-block;
}

/* 4. Helper Classes */
.max-width-50 {
	max-width: 50%;
}

.max-width-60 {
	max-width: 60%;
}

.max-width-80 {
	max-width: 80%;
}

@media screen and (max-width: 832px) {
	.max-width-50,
	.max-width-60,
	.max-width-80 {
		max-width: 100%;
	}
}

.spacer-30 {
	height: 30px;
}

.spacer-60 {
	height: 60px;
}

.hidden {
	display: none;
}

.flex {
	display: flex;
	align-content: flex-start;
	gap: 40px;
}

@media screen and (max-width: 832px) {
	.flex {
		display: block;
	}
}

.flex-align-center {
	align-items: center;
}

[class*="flex-col-"] {
	width: 100%;
}

.flex-col-30 {
	flex: 30%;
}

.flex-col-40 {
	flex: 40%;
}

.flex-col-50 {
	flex: 50%;
}

.flex-col-60 {
	flex: 60%;
}

.flex-col-70 {
	flex: 70%;
}

@media screen and (max-width: 832px) {
	[class*="flex-col-"] {
		margin: 0 0 20px;
	}
}

.grayscale-img {
	filter: grayscale(100%);
	transition: filter .5s;
}

.grayscale-img:hover {
	filter: grayscale(0%);
}

/* 5. Preloader */
.preloader {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999;
	overflow: hidden;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	background: var(--color-base);
	transform: translateY(0);
	transition: transform 1s 1s cubic-bezier(0.71, 0.08, 0.43, 0.88), color 1s 1s linear, background 1s 1s linear;
}

.loaded .preloader {
	transform: translateY(100%);
}

.preloader-text {
	text-align: center;
	margin-top: 0;
	transition: margin-top 2s 1s cubic-bezier(0.71, 0.08, 0.43, 0.88);
}

.preloader-text > h2,
.preloader-text > p {
	margin: 0;
	letter-spacing: 2px;
}

.preloader-text > p {
	font-size: 12px;
	color: var(--color-primary);
	font-style: italic;
}

.loaded .preloader-text {
	margin-top: -50%;
}

/* 6. Site Header */
.site-header {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 40px;
	min-height: 80px;
}

@media screen and (max-width: 832px) {
	.site-header {
		padding: 0 16px;
	}
}

/* 6.1 Logo */
.center-logo {
	justify-content: center;
}

@media screen and (max-width: 448px) {
	.center-logo {
		justify-content: left;
	}
}

.right-logo {
	justify-content: right;
}

.right-logo .logo {
	margin-right: 100px;
}

.logo h1 {
	font-size: 36px;
	font-weight: 600;
}

.logo a,
.logo a:hover {
	color: var(--color-primary);
}

.logo img {
	max-width: 90px;
}

/* 6.2 Navigation */
.menu-toggle {
	cursor: pointer;
	position: absolute;
	right: 40px;
	z-index: 3;
	display: flex;
	width: 66px;
	height: 46px;
	padding: 14px 0;
	background: var(--color-primary);
	border-radius: 30px;
	align-items: center;
	flex-direction: column;
	justify-content: space-between;
	transition: transform .4s ease-in-out;
}

@media screen and (max-width: 832px) {
	.menu-toggle {
		right: 16px;
	}
}

.menu-toggle.close:before,
.menu-toggle.close:after {
	content: none;
}

.menu-toggle:before,
.menu-toggle:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: 100%;
	transform: translate3d(0,0,0) scale(0);
	opacity: 1;
	animation: rippleMenuIcon 2s infinite;
	background: var(--color-primary);
}

@keyframes rippleMenuIcon {
	to {
		transform: translate3d(-20%, 0, 0) scale(1.5);
		opacity: 0;
	}
}

.menu-toggle:after {
	animation-delay: .6s;
}

.menu-toggle > span {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--color-base);
}

.menu-toggle > span:nth-child(1),
.menu-toggle > span:nth-child(3) {
	transform: translateX(0) translateY(0) rotate(0deg);
	transition: transform .2s .2s linear;
}

.menu-toggle > span:nth-child(2) {
	transform: scale(1, 1);
	transition: transform .2s linear;
}

.menu-toggle.close > span:nth-child(2) {
	transform: scale(0, 0);
}

.menu-toggle.close > span:nth-child(1) {
	transform: translateX(-1px) translateY(7px) rotate(45deg);
}

.menu-toggle.close > span:nth-child(3) {
	transform: translateX(-1px) translateY(-9px) rotate(-45deg);
}

.menu-toggle.close {
	position: fixed;
	background: var(--color-base);
}

.menu-toggle.close {
	position: fixed;
	background: var(--color-base);
}

.menu-toggle.close > span {
	background: var(--color-primary);
}


.menu-toggle.close > span {
	background: var(--color-primary);
}

.site-navigation {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 2;
	overflow-y: auto;
	background: var(--color-primary);
	width: 400px;
	transform: translateX(100%);
	transition: transform .6s .3s cubic-bezier(0.45, 0.05, 0.63, 0.87);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media screen and (max-width: 832px) {
	.site-navigation {
		width: 260px;
	}
}

.site-navigation.open {
	transform: translateX(0);
}

.site-navigation > ul {
	padding: 140px 40px 40px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media screen and (max-width: 832px) {
	.site-navigation > ul {
		padding: 140px 20px 20px;
	}
}

.site-navigation > ul > li {
	overflow: hidden;
}

.site-navigation a {
	position: relative;
	overflow: hidden;
	font-size: 24px;
	color: var(--color-base);
	display: block;
	text-align: center;
	letter-spacing: 2px;
	padding: 10px 14px;
	border-radius: 30px;
	transform: translateY(100%);
	transition: color .5s .2s linear, transform .4s 1s cubic-bezier(0.4, 0, 1, 1);
}

@media screen and (max-width: 832px) {
	.site-navigation a {
		font-size: 18px;
		padding: 12px;
	}
}

.site-navigation.open a {
	transform: translateY(0);
}

.site-navigation a:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	border-bottom: solid 16px var(--color-accent);
	background: var(--color-base);
	transform: translateY(100%);
	transition: transform .5s cubic-bezier(0.71, 0.08, 0.43, 0.88);
}

.site-navigation a:hover,
.site-navigation a.active {
	color: var(--color-primary);
}

.site-navigation a:hover:before,
.site-navigation a.active:before {
	transform: translateY(0);
}

/* 6.3 Site Footer */
.site-footer {
	width: 100%;
	padding: 20px 40px;
	text-align: right;
	font-size: 12px;
	color: var(--color-base);
}

@media screen and (max-width: 832px) {
	.site-footer {
		padding: 20px 16px;
	}
}

/* 7. Pages & Contents */
.page {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	max-width: 1440px;
	display: none;
	padding: 60px 40px 0px 40px;
	width: 100%;
	height: calc(100% - 200px);
	transition: opacity .2s ease;
}

@media screen and (max-width: 832px) {
	.page {
		height: auto;
		min-height: calc(100% - 80px);
		padding: 40px 16px 40px;
	}
}

.page.show {
	display: block;
}

.page.show:before {
	content: "";
	position: fixed;
	top: -600px;
	right: 0;
	left: 0;
	z-index: 1;
	overflow: hidden;
	height: calc(100vh + 600px);
	background: var(--color-base);
	opacity: .99;
	animation: slideDown 2s .8s forwards ease-out;
}

@keyframes slideDown {
	0% {
		transform: translateY(0) scale(1, 1);
	}
	99% {
		transform: translateY(100%);
	}
	100% {
		transform: scale(0, 0);
	}
}

.page.exit {
	display: block;
	opacity: 0;
}

.title {
	font-size: 48px;
	color: var(--color-primary);
}

@media screen and (max-width: 832px) {
	.title {
		font-size: 28px;
	}
}

.title:first-letter {
	background: var(--color-accent);
	padding: 0 10px;
	color: var(--color-base);
	margin-right: 2px;
	border-radius: 20px;
}

.page:not(#home) img {
	border-radius: 30px;
}

/* 8. Home Section */
#home > .wrap {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	height: 100%;
}

@media screen and (max-width: 832px) {
	#home > .wrap {
		display: block;
	}
}

@media screen and (min-width: 833px) and (max-width: 992px) {
	#home > .wrap {
		align-items: center;
		gap: 10px;
	}

	#home > .wrap:has(.single-image-wide) {
		align-items: end;
	}
}

/* #home:before {
	content: none;
} */

/* 8.1 Hero */
.single-image-wide,
.single-image-portrait,
.portrait-video {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	overflow: hidden;
}

.single-image-wide {
	left: -4%;
	right: -4%;
	bottom: -10%;
}

@media screen and (max-width: 832px) {
	.single-image-wide {
		top: -2%;
		bottom: -42px;
	}
}

.single-image-portrait,
.portrait-video {
	max-width: 50%;
	margin: -60px auto;
}

@media screen and (min-width: 833px) and (max-width: 992px) {
	.single-image-portrait,
	.portrait-video {
		max-width: 55%;
		margin: -20px auto;
	}
}

@media screen and (max-width: 832px) {
	.single-image-portrait,
	.portrait-video {
		max-width: 90%;
		height: 66vh;
		margin: -20px auto;
	}
}

.single-image-wide img,
.single-image-portrait img,
.portrait-video video {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.portrait-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* This is 9/16 of 100vw, maintaining 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* This is 16/9 of 100vh */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Prevents the user from clicking the video */
}

@media (max-aspect-ratio: 16/9) {
    .portrait-video iframe {
        width: 300vh; /* Force a massive width to ensure height covers everything */
        height: 100%;
    }
}

.image-overlay:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--image-overlay);
}

/* 8.2 Intro */
.intro {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 440px;
	max-width: 480px;
	padding: 20px 60px;
	z-index: 2;
	background: var(--color-primary);
}

@media screen and (min-width: 833px) and (max-width: 992px) {
	.intro {
		min-height: unset;
		max-width: 360px;
		padding: 20px 30px;
		flex-shrink: 0;
	}
}

@media screen and (max-width: 832px) {
	.intro {
		min-height: unset;
		max-width: 100%;
		padding: 24px 20px;
	}
}

/*.intro:before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 60px;
	z-index: -1;
	width: 64%;
	height: 100%;
	border: solid 26px var(--color-primary);
	opacity: 0.2;
}*/

/*@media screen and (max-width: 832px) {
	.intro:before {
		left: 50%;
		transform: translateX(-50%);
	}
}*/

/* .intro h2:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--color-base);

} */

.intro h2 {
	position: relative;
	font-family: var(--font-body);
	font-size: 28px;
	line-height: 1.36;
	max-width: 516px;
	filter: opacity(0.8);
	margin-bottom: 0;
	background: linear-gradient(
		to right,
		var(--color-accent) 20%,
		var(--color-base) 30%,
		var(--color-base) 70%,
		var(--color-accent) 80%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	/* text-fill-color: transparent; */
	background-size: 500% auto;
	animation: textShine 8s ease-in-out infinite alternate;
}

@keyframes textShine {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

@media screen and (max-width: 832px) {
	.intro h2 {
		font-size: 22px;
	}
}

@media screen and (min-width: 833px) and (max-width: 992px) {
	.intro h2 {
		font-size: 20px;
		max-width: 100%;
	}
}

@media screen and (max-width: 480px) {
	.intro h2 {
		font-size: 18px;
	}
}

.intro h2 span {
	font-family: var(--font-primary);
}

.intro p {
	color: var(--color-accent);
}

/* 8.3 Newsletter form */

/* 8.4 Circle text */
.circle-text {
	width: 240px;
	height: 240px;
	margin-left: 120px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow: visible;
	animation: spin 8s infinite linear;
	color: var(--color-base);
}

.circle-text:before {
	content:'';
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
    border-radius: 100%;
	border: solid 22px var(--color-primary);
    box-shadow: 0 0 0 6px var(--color-primary);
}

@keyframes spin {
	to {
		rotate: -360deg;
	}
}

@media screen and (max-width: 832px) {
	.circle-text {
		width: 160px;
		height: 160px;
		margin: 0;
	}
}

@media screen and (min-width: 833px) and (max-width: 1120px) {
	.circle-text {
		width: 180px;
		height: 180px;
		margin-left: 60px;
	}
}

.circle-text span {
	position: absolute;
	height: 120px;
	transform-origin: bottom center;
	text-transform: uppercase;
	line-height: 1;
}

@media screen and (max-width: 832px) {
	.circle-text span {
		height: 80px;
	}
}

@media screen and (min-width: 833px) and (max-width: 1120px) {
	.circle-text span {
		height: 90px;
	}
}

/* 8.5 Countdown */
.counter {
	position: relative;
	z-index: 2;
	padding: 40px 0;
}

@media screen and (max-width: 832px) {
	.counter {
		height: 66vh;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
	}
}

.counter h2 {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 14px;
	letter-spacing: 2px;
	padding: 0 6px;
	border-radius: 6px;
	color: var(--color-base);
	background: var(--color-accent);
}

@media screen and (max-width: 832px) {
	.counter h2 {
		font-size: 12px;
	}
}

.timer {
    display: flex;
    background: var(--color-base);
    padding: 0 22px;
    border-radius: 60px;
}

.timer > div {
	display: flex;
	padding-right: 20px;
	font-family: var(--font-primary);
	font-size: 26px;
	align-items: center;
}

@media screen and (max-width: 832px) {
	.timer > div {
		display: block;
		font-size: 12px;
		text-align: center;
		padding-right: 0;
		min-width: 60px;
	}
}

@media screen and (min-width: 833px) and (max-width: 1120px) {
	.timer > div {
		font-size: 18px;
	}
}

.timer > div > span {
	font-size: 48px;
	display: inline-block;
	padding-right: 10px;
}

@media screen and (max-width: 832px) {
	.timer > div > span {
		display: block;
		font-size: 18px;
		padding-right: 0;
	}
}

@media screen and (min-width: 833px) and (max-width: 1120px) {
	.timer > div > span {
		font-size: 32px;
	}
}

/* 9. Portfolio Gallery */
.portfolio-grid {
	columns: 360px;
	gap: 60px;
}

@media screen and (max-width: 832px) {
	.portfolio-grid {
		gap: 24px;
	}
}

.portfolio-grid > a {
	position: relative;
	display: block;
	margin-bottom: 80px;
}

@media screen and (max-width: 832px) {
	.portfolio-grid > a {
		margin-bottom: 40px;
	}
}

.portfolio-grid > a:hover {
	box-shadow: 0px 0px 0px rgb(0 0 0 / 15%);
}

.portfolio-grid a > h2 {
	margin: 20px 0 0;
	font-size: 18px;
	color: var(--color-accent);
}

.portfolio-grid > a:before {
	display: flex;
	font-size: 100px;
	z-index: 2;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	background: url("../images/expand_content.svg") no-repeat center;
}

.portfolio-grid > a:has(video):before {
	background: url("../images/play_arrow.svg") no-repeat center;
}

.portfolio-grid > a:after {
	width: 100px;
	height: 100px;
	border-radius: 100%;
	margin: auto;
	z-index: 1;
	background: var(--color-primary);
}

.portfolio-grid > a:before,
.portfolio-grid > a:after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateY(5%) scale(0.8);
	opacity: 0;
	transition: all .2s ease-in-out;
}

.portfolio-grid > a:hover:before,
.portfolio-grid > a:hover:after {
	transform: translateY(0%) scale(1);
	opacity: 1;
}

.portfolio-grid > a:hover:after {
	opacity: .2;
}

.portfolio-grid > a:hover img,
.portfolio-grid > a:hover video {
	filter: grayscale(0%);
	opacity: 0.8;
	transition: opacity .4s ease;
}

.portfolio-grid > a > img,
.portfolio-grid > a > video {
	object-fit: cover;
	width: 100%;
	max-height: 410px;
	border-radius: 30px;
}

.portfolio-grid > a > p {
	margin: 0;
	font-size: 12px;
	font-style: italic;
	color: var(--color-primary);
}

/* 9.1 Custom Lightbox Controls (Lity) */

.lity-prev,
.lity-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	color: var(--color-primary);
	border: none;
	font-size: 40px;
	cursor: pointer;
	z-index: 9999;
	opacity: 0.7;
	transition: opacity 0.2s;
	padding: 20px;
}

@media screen and (max-width: 832px) {
	.lity-prev {
		left: 0;
	}

	.lity-next {
		right: 0;
	}

	.lity-prev,
	.lity-next {
		font-size: 30px;
	}
}

.lity-prev:hover,
.lity-next:hover {
	opacity: 1;
}

.lity-prev {
	left: -60px;
}

.lity-next {
	right: -60px;
}

/* 10. Skillbars */
.skillbar {
	position: relative;
}

.skillbar > h4 {
	margin-bottom: 8px;
}

.skillbar > span {
	position: relative;
	display: block;
	height: 8px;
	width: 100%;
	background: var(--color-accent);
}

.skillbar > span:before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	background: var(--color-primary);
	height: 100%;
	width: 0;
}

#about.page.show .skillbar > span:before {
	animation: skillLevel 2s .5s 1 linear forwards;
}

@keyframes skillLevel {
	to {
		width: var(--level);
	}
}

.skillbar > span:after {
	position: absolute;
	right: 0;
	top: -20px;
	display: flex;
	content: attr(style);
	width: 50px;
	height: 0;
	text-align: right;
	word-break: keep-all;
	overflow: hidden;
	align-items: flex-end;
	font-size: 0.8em;
	line-height: 1.5;
}

#about.page.show .skillbar > span:after {
	animation: skillLevelText .5s .5s 1 linear forwards;
}

@keyframes skillLevelText {
	to {
		height: 16px;
	}
}

/* @layer experimental {

@supports (animation-timeline: view()) {

	#about.page.show .skillbar > span:before {
		animation: skillLevel linear forwards;
		animation-timeline: view();
		animation-range: entry 0% cover 40%;
	}

	#about.page.show .skillbar > span:after {
		animation: skillLevelText linear forwards;
		animation-timeline: view();
		animation-range: entry 0% cover 40%;
	}

}

} */