@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.light-theme {
	--bg-1: rgb(249 249 249 / 100%);
	--bg-2: rgb(242 242 242 / 100%);
	--bg-2-transparent: rgb(250 250 252 / 80%);
	--bg-3: #ffffff;

	--fg-1: #000;
	--fg-2: #7D7D7D;
	--fg-2-transparent: rgba(0 0 0 / 50%);
	--fg-3: #AEAEAE;

	--border: #ededed;
	--border-transparent: rgba(0 0 0 / 5%);

	/* --acc: #FF6106; */
	--acc: #FF4F01;
}

.dark-theme {
	--bg-1: #010101;
	--bg-2: #0e121a;
	--bg-3: #000000;

	--fg-1: #E1E5EB;
	--fg-2: #555d71;
	--fg-3: #414858;

	--border: #1f2a3d;

	--acc: #6FA1F7;
}


* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	text-decoration: none;
	color: var(--fg-1);
}

*:focus-visible {
	transition: outline 0s !important;
}

html,
body {
	height: 100%;
	width: 100%;
	background: var(--bg-1);
	/* font-family: 'Helvetica Neue Regular', sans-serif; */
	font-family: "Inter", sans-serif;
	scroll-behavior: smooth;
}

body.no-overflow {
	overflow: hidden;
}

h1 {
	font-size: 40px;
	font-weight: 600;
	line-height: 120%;
}

h2 {
	font-size: 24px;
	color: var(--fg-2);
	line-height: 130%;
	font-weight: 500;
}

h3 {
	font-weight: 600;
	line-height: 130%;
}

p {
	font-size: 16px;
	line-height: 150%;
}

.accent {
	color: var(--acc);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--fg-1);
	outline-offset: 2px;
	outline-style: dashed;
	border-radius: 2px;
}

banner {
	background: var(--bg-3);
	width: 100%;
	border-radius: 6px;
	border: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	overflow: hidden;
}

banner>* {
	padding: 8px 12px 6px 12px;
}

banner p {
	color: var(--fg-2);
	font-size: 14px;
}

banner a {
	border-left: 1px solid var(--border);
	color: var(--fg-2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	font-size: 14px;
	height: 100%;
}

banner a:hover {
	background: var(--bg-1);
}

banner a svg {
	stroke: var(--fg-2);
	width: 20px;
	transition: 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	transform: translate(1px, -1px);
}

banner a:hover svg {
	transform: translate(3px, -3px);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 128px;
	width: 100%;
	border-bottom: var(--border);
	position: fixed;
	z-index: 10;
	transition: background 120ms ease-out;
	background: var(--bg-2-transparent);
	/* backdrop-filter: blur(32px); */
	backdrop-filter: saturate(180%) blur(20px);
	left: 50%;
	transform: translate(-50%, 0);
	max-width: 1400px;
}

nav.scrolled {
	background: var(--bg-2-transparent);
	backdrop-filter: blur(12px);
}

nav>a {
	font-weight: 600;
}

nav .right {
	display: flex;
	align-items: center;
	gap: 8px;
}

nav .right a {
	padding: 8px 12px;
	border-radius: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fg-2);
	transition: background 120ms ease-out, color 120ms ease-out;
}

@media (hover: hover) {
	nav .right a:hover {
		background: var(--bg-2);
	}
}


.nav-link-selected {
	background: var(--fg-1) !important;
	color: var(--bg-1) !important;
}

nav button {
	display: none;
}

.mobile-nav {
	display: none;
}

.mobile-nav.open {
	display: flex;
	background: var(--fg-1);
	position: fixed;
	z-index: 20;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 24px;
	align-items: center;
}

.mobile-nav.open a {
	color: var(--bg-1);
	font-size: 64px;
}

.mobile-nav .links {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.mobile-nav button {
	position: absolute;
	top: 22px;
	right: 24px;
	background: none;
	border: none;
	width: 24px;
	height: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}

.mobile-nav button .line {
	background: var(--bg-1);
	width: 24px;
	height: 2px;
	border-radius: 2px;
	transform: rotate(45deg);
	top: 10px;
	position: relative;
}

.mobile-nav button .line.bottom {
	transform: rotate(-45deg);
	top: 4px;
}


content {
	display: flex;
	flex-direction: column;
	padding: 128px;
	gap: 128px;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.hero {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hero .not-banner {
	display: flex;
	gap: 64px;
}

.hero .left {
	min-width: 200px;
}

.hero .left img {
	width: 200px;
	border-radius: 6px;
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5), box-shadow 120ms ease-out, filter 120ms ease-out;
}

.hero .left img:hover {
	box-shadow:
		0 8px 32px rgba(0 0 0 / 48%);
	transform: scale(1.05);
	filter: brightness(120%);
}

.hero .left img:active {
	box-shadow:
		0 8px 32px rgba(0 0 0 / 16%);
	transform: scale(1);
}

@keyframes spin {
	0% {
		transform: rotate(0deg) scale(1.05);
	}

	100% {
		transform: rotate(360deg) scale(1.05);
	}
}

.hero .left img.spin {
	animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .left img.rotate-1 {
	transform: rotate(50deg);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .left img.rotate-2 {
	transform: rotate(100deg);
	transition: transform 1s cubic-bezier(0.67, 0.06, 0.2, 1);
}

.main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.work {
	display: flex;
	gap: 64px;
	scroll-margin-top: 96px;
}

.work .left {
	width: 200px;
	display: flex;
	gap: 16px;
	flex-direction: column;
	position: sticky;
	top: 96px;
	height: 100%;
}

.work .left .item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	width: fit-content;
}

.work .left .item .line {
	width: 16px;
	height: 1px;
	background: var(--border);
	transition: background 50ms ease-out, width 120ms ease-out;
	top: -1px;
	position: relative;
}

.work .left .item p {
	color: var(--fg-2);
	font-size: 16px;
	transition: color 50ms ease-out;
	white-space: nowrap;
}

.work .left .item.selected .line {
	background: var(--fg-1);
}

.work .left .item.selected p {
	color: var(--fg-1);
}

.work .left .item:hover:not(.selected) .line {
	background: var(--acc);
	width: 24px;
}

.work .left .item:hover:not(.selected) p {
	color: var(--acc);
}

.work .main {
	display: flex;
	flex-direction: column;
	gap: 64px;
	flex: 1;
}

.work .main .experience {
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 96px;
}

.work .main .experience .header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.work .main .experience .header .top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.work .main .experience .header .top .brand {
	display: flex;
	gap: 8px;
}

.work .main .experience .header .top .brand h3 {
	font-size: 24px;
	color: var(--fg-3);
}

.work .main .experience .header .top h2 {

	font-weight: 600;
	color: var(--fg-1);
}

.work .main .experience .header .top a {
	padding: 8px 12px;
	border-radius: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bg-1);
	background: var(--fg-1);
	transition: background 50ms ease-out;
	white-space: nowrap;
}

@media (hover: hover) {
	.work .main .experience .header .top a:hover {
		background: var(--acc);
	}
}

.work .main .experience .header .bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.work .main .experience .header .bottom p {
	white-space: nowrap;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 2px;
	color: var(--fg-2);
}

.work .main .experience .header .bottom p .sep {
	font-size: 10px;
	color: var(--fg-2);
	padding: 0 8px;
}

.work .images {
	display: flex;
	flex-direction: column;
	gap: 32px;
	position: relative;
}

.work .images.wip figure {
	background: #f2f2f2;
	height: 300px;
}

.work .images.wip .row:last-child figure {
	height: 150px;
}

.work .images figure a figcaption p {
	transition: color 50ms ease-out;
}

.work .images figure a:hover figcaption p {
	color: var(--acc);
}

.work .images figure img {
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
}

.work .images figure a:hover img {
	transform: scale(1.05);
}

.work .images figure .img-wrapper {
	overflow: hidden;
	border-radius: 8px;
	display: flex;
	margin-bottom: 8px;
}


.work .images.wip .overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 200px;
	background: linear-gradient(180deg, transparent, var(--bg-1));
	display: flex;
	justify-content: center;
	align-items: center;
}

.work .images.wip .overlay p {
	margin-top: 64px;
	color: var(--fg-3);
	background: -webkit-linear-gradient(#AEAEAE, #e8e8e8);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.work .images .row {
	display: flex;
	gap: 32px;
	flex: 1;
}

.work .images .col {
	display: flex;
	flex-direction: column;
	gap: 32px;
	flex: 1;
}

.work .images figure {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.work .images figure.faq {
	flex: 1.87;
}

.work .images figure.iwater-pages {
	flex: 2.1
}

.work .images figure img {
	width: 100%;
	background: var(--bg-2);
	border-radius: 8px;
}

.work .images figure figcaption {
	display: flex;
	justify-content: space-between;
}

.work .images figure figcaption p {
	color: var(--fg-2);
	font-size: 14px;
}

.about {
	display: flex;
	gap: 64px;
	scroll-margin-top: 96px;
}

.about .left {
	min-width: 200px;
}

.about .main {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.about .main .bio {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about .main .bio .text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.about .main .bio p {
	font-size: 16px;
	color: var(--fg-2);
}

.about .main .experience {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 1;
}

.about .main .clients {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about .main .column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about h2 {
	color: var(--fg-1);
	font-weight: 600;
	/* border-top: 1px solid var(--border); */
	/* padding-top: 16px; */
}

.about .main .experience .table {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.about .main .experience .table .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.about .main .experience .table .row::before {
	content: '';
	position: absolute;
	top: -13px;
	left: -16px;
	width: 100%;
	height: 100%;
	background: #ededed70;
	z-index: -1;
	padding: 12px 16px;
	border-radius: 12px;
	opacity: 0;
	transition: 80ms ease-out;
	border: 1px solid var(--border);
}

.about .main .experience .table .row:hover::before {
	opacity: 1;
}

.about .main .experience .table .row .left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.about .main .experience .table .row .left img {
	height: 54px;
}

.about .main .bottom {
	display: flex;
	gap: 32px;
	flex: 1;
}


.about .main .experience .table .row .left .text {
	display: flex;
	flex-direction: column;
}

.about .main .experience .table .row .left .text .name {
	font-weight: 600;
}

.about .main .experience .table .row .left .text .sub {
	color: var(--fg-2);
	font-size: 14px;
}

.about .main .experience .table .row .date {
	color: var(--fg-3);
}

.about .main .experience .table .line {
	width: 100%;
	height: 1px;
	background: var(--border);
}

.contact {
	display: flex;
	justify-content: center;
	padding: 128px 0;
}

.contact .mail {
	position: relative;
	width: fit-content;
}

.contact .mail:hover .note {
	transform: rotate(-2deg) scale(1.01);
	top: -20px;
	left: -8px;
	box-shadow: 0 4px 16px rgba(0 0 0 / 12%);
}

.contact .mail .mail-front {
	position: absolute;
	bottom: -4px;
	left: -8px;
}

.contact .mail .note {
	width: 300px;
	height: 300px;
	border-radius: 4px;
	background: var(--bg-3);
	display: flex;
	align-items: center;
	padding-top: 32px;
	flex-direction: column;
	gap: 24px;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	margin-left: auto;
	margin-right: auto;
	transform: rotate(2deg);
	box-shadow: 0 4px 16px rgba(0 0 0 / 8%);
	border: 1px solid rgba(0 0 0 / 10%);
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5), top 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5), left, 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5), box-shadow 120ms ease-out;
}

.contact .mail .note h2 {
	color: var(--fg-1);
	font-weight: 600;
}

.contact .mail .note a {
	font-size: 16px;
	padding: 16px 36px;
	background: var(--fg-1);
	color: var(--bg-1);
	border-radius: 32px;
	cursor: pointer;
	transition: background 50ms ease-out;
}

.contact .mail .note a:hover {
	background: var(--acc);
}

footer {
	background: var(--bg-3);
	padding: 32px 128px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	border-top: 1px dashed var(--border);
}

footer .links {
	display: flex;
	justify-content: space-between;
}

footer .links .socials {
	display: flex;
	gap: 20px;
}

footer .links a,
.archive-hero a {
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
	transition: 120ms ease-out;
	padding: 8px 12px 6px 12px;
	border-radius: 64px;
	border: 1px solid var(--border);
	width: fit-content;
}

footer .links a:hover {
	background: var(--bg-1);
}

.archive-hero a {
	padding: 16px 24px 12px 24px;
	margin-bottom: 16px;
}

.archive-hero a span {
	font-size: 20px;
}

.archive-hero a ion-icon {
	width: 20px;
	height: 20px;
}

.archive-hero a:hover {
	background: var(--bg-2);
}

footer .links a:hover span,
footer .links a:hover ion-icon,
.archive-hero a:hover span,
.archive-hero a:hover ion-icon {
	color: var(--acc);
}

footer .links a:hover svg path {
	stroke: var(--acc);
}

footer .links .socials svg {
	stroke: var(--fg-2);
	width: 24px;
	transition: 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	transform: translate(1px, -1px);
}

footer .links ion-icon,
footer .links span {
	color: var(--fg-2);
}

footer .links ion-icon {
	width: 24px;
	height: 24px;
	top: -1px;
	position: relative;
}

footer .links a:hover svg.arrow {
	transform: translate(3px, -3px);
}

footer .bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

footer .bottom .copyright {
	color: var(--fg-3);
	font-size: 14px;
}


footer .bottom button {
	padding: 8px 12px;
	background: none;
	font-size: 14px;
	border-radius: 6px;
	border: 1px solid var(--border);
	cursor: pointer;
	transition: 120ms ease-out;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 310px;
}

footer .bottom button p,
footer .bottom button span,
footer .bottom button ion-icon {
	color: var(--fg-2);
}

footer .bottom button ion-icon {
	transform: rotate(180deg);
}

footer .bottom button:hover {
	background: var(--bg-1);
}

footer .changelog {
	position: absolute;
	bottom: -16px;
	right: 0;
	opacity: 0;
	transition: 120ms ease-out;
	width: 310px;
	height: 600px;
	border-radius: 8px;
	border: 1px solid var(--border);
	box-shadow: 0px 4px 8px rgba(0 0 0 / 8%);
	background: var(--bg-3);
	z-index: -1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

footer .changelog.visible {
	opacity: 1;
	bottom: 0;
	z-index: 1;
}

footer .changelog .header {
	display: flex;
	padding: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}

footer .changelog .header h2 {
	color: var(--fg-1);
}

footer .changelog .main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;
	padding: 12px;
}

footer .changelog .main p {
	color: var(--fg-3);
}

footer .changelog button {
	border-radius: 0 0 8px 8px;
	border: none;
	border-top: 1px solid var(--border);
}

footer .changelog button ion-icon {
	transform: rotate(0deg);
}

::selection {
	background: var(--acc);
	color: var(--bg-1);
}

.archive-hero {
	display: flex;
	flex-direction: column;
}

.coming-soon {
	border: 1px solid var(--border);
	padding: 32px 64px;
	border-radius: 6px;
	background: var(--bg-3);
	display: flex;
	justify-content: center;
	align-items: center;
}

.coming-soon p {
	color: var(--fg-3);
}

.archive-hero h1:last-child {
	color: var(--fg-3);
}

@media only screen and (max-width: 1200px) {
	nav {
		padding: 16px 64px;
	}

	content {
		padding: 128px 64px;
	}

	.work,
	.hero,
	.about {
		gap: 32px;
	}

	.work .main {
		/* X padding + left sidebar + gap */
		width: calc(100% - 128px - 200px - 32px);
	}


	footer {
		padding: 32px 64px;
	}
}

@media only screen and (max-width: 1000px) {
	.work {
		flex-direction: column;
	}

	.work .left {
		flex-direction: row;
		top: 64px;
		background: var(--bg-2-transparent);
		/* backdrop-filter: blur(32px); */
		backdrop-filter: saturate(180%) blur(20px);
		border-top: 1px solid var(--border-transparent);
		/* border-bottom: 1px solid var(--border-transparent); */
		padding: 0 64px;
		margin-left: -64px;
		width: calc(100% + 128px);
		z-index: 5;
		gap: 0;
	}

	.work .left::after {
		content: '';
		background: var(--border);
		width: 100%;
		height: 1px;
		position: absolute;
		bottom: 1px;
		left: 0;
	}

	.work .left .item {
		padding: 8px 16px;
		position: relative;
	}

	.work .left .item::before {
		content: '';
		position: absolute;
		left: 0;
		bottom: 1px;
		width: 100%;
		height: 1px;
		z-index: 5;
	}

	.work .left .item.selected::before {
		background: var(--fg-1);
	}

	.work .left .item:hover::before {
		background: var(--acc);
	}

	.work .left .item .line {
		display: none;
	}

	.work .left .item p {
		font-size: 14px;
	}

	.work .main {
		width: 100%;
	}

	.about .left {
		display: none;
	}

	banner a {
		height: 56px;
	}

	.hero .not-banner {
		flex-direction: column;
		gap: 32px;
	}
}

@media only screen and (max-width: 800px) {
	nav {
		padding: 24px;
	}

	content {
		gap: 64px;
		padding: 64px 24px;
	}

	.hero {
		flex-direction: column;
	}

	.work .left {
		padding: 0 24px;
		margin-left: -24px;
		width: calc(100% + 48px);
		overflow-x: scroll;
	}

	.work .main .experience .header .bottom p {
		flex-direction: column;
		align-items: flex-start;
	}

	.work .main .experience .header .bottom p .sep {
		display: none;
	}

	footer {
		padding: 24px;
	}

	footer .links .socials {
		flex-direction: column;
		gap: 8px;
	}

	nav button {
		display: flex;
		flex-direction: column;
		gap: 4px;
		border: none;
		background: none;
		cursor: pointer;
	}

	nav button .line {
		width: 24px;
		height: 2px;
		background: var(--fg-1);
		border-radius: 2px;
	}

	nav .right a {
		display: none;
	}
}

@media only screen and (max-width: 600px) {
	.work .main .experience .header .top .brand {
		flex-direction: column;
		gap: 0;
	}

	footer .bottom {
		flex-direction: column;
		gap: 8px;
	}

	footer .bottom button {
		width: 100%;
		justify-content: center;
	}

	footer .changelog {
		width: 100%;
	}

	.work .images .row {
		flex-direction: column;
	}

	.contact {
		transform: scale(0.8);
	}

	banner {
		flex-direction: column;
	}

	banner a {
		border-left: none;
		border-top: 1px solid var(--border);
		width: 100%;
		height: fit-content;
		color: var(--fg-1);
	}

	banner a svg {
		stroke: var(--fg-1);
	}

	h1 {
		font-size: 32px;
		line-height: 110%;
	}

	h2 {
		font-size: 20px;
	}

	.work .main .experience .header .top h2 {
		font-size: 24px;
	}

	.hero .not-banner {
		gap: 16px;
	}

	.hero .left img {
		width: 128px;
	}
}

@media only screen and (max-width: 450px) {
	.contact {
		transform: scale(0.6);
	}
}

@media only screen and (max-width: 400px) {
	footer .links {
		flex-direction: column;
		gap: 8px;
	}

	footer .links .socials {
		flex-direction: column;
		gap: 8px;
	}

	footer .links .socials a {
		justify-content: center;
	}
}