/*
Theme Name: DeAhn
Author: Fivement
Author URI: https://www.fivement.com/
Description: DeAhn Company Website theme.
Version: 1.0.0
Text Domain: deahn
*/

/*--- Reset ---*/

:root {
	--black: #000;
	--white: #fff;
	--padding-l: 60px;
	--padding-m: 30px;
	--padding-s: 20px;
	--ease-in: cubic-bezier(0.11, 0, 0.5, 0);
	--ease-out: cubic-bezier(0.25, 1, 0.5, 1);
	--ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
	--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 600px) {
	:root {
		--padding-l: 20px;
		--padding-m: 20px;
		--padding-s: 12px;
	}
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,figure,img { 
	margin: 0; 
	padding: 0; 
}
html { 
	width: 100%; 
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
body { 
	background-color: var(--black);
	color: var(--white);
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.428;
	width: 100%;
	min-width: 100% !important;
	min-height: 100%;
	word-break: keep-all;
}

h1 {
	font-size: 80px;
	line-height: 1.2;
}
h2 {
	font-size: 40px;
	margin-bottom: 20px;
}
h3 {
	font-size: 30px;
}
h4 {
	font-size: 24px;
}
p {
	font-size: 20px;
	line-height: 1.6;
}

@media (max-width: 600px) {
	body {
		font-size: 14px;
	}
	h1 {
		font-size: 48px;
	}
	h1 br {
		display: none;
	}
	h2 {
		font-size: 30px;
	}
	h3 {
		font-size: 24px;
	}
	h4 {
		font-size: 20px;
	}
	p {
		font-size: 18px;
	}
}

a {
	color: inherit;
	text-decoration: none;
}
.button {
	background-color: var(--white);
	color: var(--black);
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	transform: scale(1);
	transition: transform 0.2s var(--ease-out);
}
.button.size-l {
	font-size: 20px;
	padding: 14px 24px;
}
.button:hover {
	transform: scale(1.03);
}
.button[target="_blank"] span {
	background-image: url('images/external-icon.svg');
	background-size: 18px;
	background-repeat: no-repeat;
	background-position: center right;
	display: block;
	padding-right: 22px;
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	mix-blend-mode: difference;
	padding: var(--padding-m);
	z-index: 9;
}

@media (max-width: 600px) {
	.button {
		padding: 6px 12px;
	}
	.button.size-l {
		font-size: 16px;
		padding: 12px 20px;
	}
	.site-header {
		padding: var(--padding-m) calc(var(--padding-m) + 4px);
	}
	.site-header .logo {
		display: flex;
		align-items: center;
	}
	.site-header .logo img {
		width: 110px;
		height: auto;
	}
}

.background {
	background-color: var(--black);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 1;
}
.background .layer {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: absolute;
	width: 100%;
	height: 100%;
	mix-blend-mode: difference;
	transition: margin-left 0.4s var(--ease-out);
}
.background .layer.left {
	animation: background-left 20s var(--ease-in-out) infinite;
	background-image: url('images/background-left.svg');
	background-position: center right;
}
.background .layer.right {
	animation: background-right 20s var(--ease-in-out) infinite 2s;
	background-image: url('images/background-right.svg');
	background-position: center left;
}

body.inquiry-mode .background .layer.left {
	margin-left: -50vw;
}
body.inquiry-mode .background .layer.right {
	margin-left: 50vw;
}

@keyframes background-left {
	0%, 100% {
		transform: translate3d(0,0,0);
	}
	50% {
		transform: translate3d(-20%,0,0);
	}
}

@keyframes background-right {
	0%, 100% {
		transform: translate3d(0,0,0);
	}
	50% {
		transform: translate3d(20%,0,0);
	}
}

@media (prefers-color-scheme: dark) {
	.background {
		background-color: var(--white);
	}
}

@media (orientation: portrait) {
	.background .layer {
		width: 180%;
	}
}

@media (max-width: 600px) {
	body.inquiry-mode .background .layer.left {
		margin-left: -150vw;
	}
	body.inquiry-mode .background .layer.right {
		margin-left: 150vw;
	}
}

.main {
	position: relative;
	mix-blend-mode: difference;
	z-index: 3;
}
body.inquiry-mode .main {
	transform: translate3d(-100%,0,0);
}

.section {
	padding: var(--padding-l);
}
.section.has-full-height {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
}
.container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.hero .copy {
	padding: var(--padding-l) var(--padding-m) 0;
}
.hero .scroll-down {
	animation: scroll-down 2s linear infinite;
	display: flex;
	margin-top: var(--padding-l);
	margin-left: 4px;
}

@keyframes scroll-down {
	0%, 60%, 80%, 100% {
		transform: translate3d(0,0,0);
	}
	70%, 90% {
		transform: translate3d(0,5px,0);
	}
}

.services .container {
	display: flex;
	flex-direction: column;
	gap: var(--padding-l);
}
.services .item {
	background-color: var(--white);
	color: var(--black);
	border-radius: 8px;
	padding: 8%;
	min-height: 70vh;
	position: relative;
}
.services .item .title {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--padding-m);
	filter: saturate(0) contrast(1.2);
}
.services .item .title .emoji {
	filter: saturate(0) contrast(1.2) invert(1);
}
.services .item .copy {
	position: relative;
}
.services .item .description {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transform: translate3d(0,10px,0);
}
.services .item.is-active .copy h3 {
	display: none;
}
.services .item.is-active .description {
	opacity: 1;
	transform: translate3d(0,0,0);
	transition: opacity 0.6s var(--ease-out), transform 0.4s var(--ease-out);
}
.services .item .more-button {
	cursor: pointer;
	position: absolute;
	display: block;
	width: 60px;
	height: 60px;
	background-color: var(--black);
	border-radius: 50%;
	bottom: var(--padding-l);
	right: var(--padding-l);
	transition: transform 0.3s var(--ease-out);
}
.services .item .more-button::before,
.services .item .more-button::after {
	content: '';
	display: block;
	background-color: var(--white);
	width: 30%;
	height: 3px;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%,-50%,0);
	position: absolute;
}
.services .item .more-button::after {
	transform: translate3d(-50%,-50%,0) rotate(90deg);
}
.services .item.is-active .more-button {
	transform: rotate(45deg);
}

@media (prefers-color-scheme: dark) {
	.services .item .title .emoji {
		filter: saturate(0) contrast(1.2);
	}
}

@media (max-width: 600px) {
	.services .item h3 br {
		display: none;
	}
	.services .item .more-button {
		width: 40px;
		height: 40px;
	}
	.services .item .more-button::before,
	.services .item .more-button::after {
		height: 2px;
	}
}

.history .tab-nav {
	display: flex;
	gap: var(--padding-m);
	margin-bottom: var(--padding-l);
}
.history .tab-nav .nav-item {
	cursor: pointer;
}
.history .tab-nav .nav-item h2 {
	line-height: 1.2;
	margin-bottom: 0;
}
.history .tab-nav .nav-item.is-active {
	border-bottom: 4px solid var(--black);
}
.history .tab-content {
	display: none;
}
.history .tab-content.is-active {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 0;
}
.history .tab-content p {
	width: 50%;
}

@media (max-width: 600px) {
	.history .tab-content p {
		width: 100%;
	}
}

.partners {
	padding: 0;
}
.partners .carousel-wrapper {
	width: 100%;
	height: 80px;
	overflow: hidden;
	position: relative;
	margin-top: var(--padding-l);
}
.partners .carousel {
	display: flex;
	position: absolute;
	left: 0;
	top: 0;
}
.partners .carousel img {
	width: auto;
	height: 80px;
	margin-left: 100px;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.partners {
		height: auto !important;
		padding: 20vh 0;
	}
	.partners .container {
		padding: 0 var(--padding-l);
	}
	.partners .carousel-wrapper {
		height: 50px;
	}
	.partners .carousel img {
		height: 50px;
		margin-left: 60px;
	}
}

.closure .container {
	padding-bottom: calc(var(--padding-l) * 2);
}
.closure .actions {
	display: flex;
	gap: 16px;
	margin-top: var(--padding-l);
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: var(--padding-m);
}

@media (max-width: 600px) {
	.footer {
		flex-direction: column;
	}
}

.inquiry {
	color: var(--white);
	display: flex;
	position: fixed;
	align-items: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: translate3d(-100%,0,0);
	z-index: 8;
}
body.inquiry-mode .inquiry {
	transform: translate3d(0,0,0);
}
.inquiry .container {
	opacity: 0;
	transform: scale(0.95);
	max-width: 420px;
}
body.inquiry-mode .inquiry .container {
	opacity: 1;
	transform: scale(1);
	transition: all 0.5s var(--ease-out) 0.1s;
}
.inquiry h3 {
	margin-bottom: var(--padding-s);
}
.inquiry p + p {
	margin-top: 4px;
}

.wpcf7 {
	margin-top: var(--padding-m);
}

.inquiry .container {
	padding: var(--padding-m);
}
.inquiry h2 {
	line-height: 1.2;
	filter: saturate(0);
}

.inquiry input[type="text"],
.inquiry input[type="email"],
.inquiry textarea {
	background-color: rgba(255,255,255,0.1);
	border: none;
	border-radius: 4px;
	padding: 16px;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
	outline: none;
}
.inquiry textarea {
	height: 100px;
}
.inquiry input[type="text"]:focus,
.inquiry input[type="email"]:focus,
.inquiry textarea:focus {
	background-color: rgba(255,255,255,0.15);
}

.inquiry input[type="checkbox"] {
	display: none;
}
.inquiry input[type="checkbox"] + span {
	padding-left: 22px;
	position: relative;
}
.inquiry input[type="checkbox"] + span::before {
	content: '';
	display: block;
	position: absolute;
	top: 1px;
	left: 0;
	width: 16px;
	height: 16px;
	background-color: rgba(255,255,255,0.1);
	border-radius: 3px;
}
.inquiry input[type="checkbox"] + span::after {
	content: '';
	display: block;
	position: absolute;
	top: 4px;
	left: 3px;
	width: 10px;
	height: 10px;
	background-color: var(--white);
	border-radius: 2px;
	transform: scale(0);
	transition: transform 0.2s var(--ease-out-back);
}
.inquiry input[type="checkbox"]:checked + span::after {
	transform: scale(1);
}

.inquiry form > p {
	font-size: 16px;
	font-weight: 600;
}
.inquiry form > p > span {
	display: block;
	margin-bottom: 12px;
}
.inquiry form > p > span + br {
	display: none;
}

.inquiry .wpcf7-not-valid-tip {
	display: none;
}

.inquiry .wpcf7-checkbox > span {
	margin-left: 0;
	margin-bottom: 8px;
	width: 25%;
}

.inquiry .wpcf7-form-control-wrap[data-name="user-interest"] {
	display: block;
	margin-top: 8px;
	margin-bottom: var(--padding-s);
}
.inquiry .wpcf7-submit {
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	background-color: var(--white);
	color: var(--black);
	border: none;
	border-radius: 4px;
	display: block;
	padding: 16px;
	width: 100%;
	margin-top: var(--padding-s);
}

@media (prefers-color-scheme: dark) {
	.inquiry {
		color: var(--black);
	}
	.inquiry input[type="text"],
	.inquiry input[type="email"],
	.inquiry textarea {
		background-color: rgba(0,0,0,0.06);
	}
	.inquiry input[type="text"]:focus,
	.inquiry input[type="email"]:focus,
	.inquiry textarea:focus {
		background-color: rgba(0,0,0,0.1);
	}
	.inquiry .wpcf7-submit {
		background-color: var(--black);
		color: var(--white);
	}
	
	.inquiry input[type="checkbox"] + span::before {
		background-color: rgba(0,0,0,0.1);
	}
	.inquiry input[type="checkbox"]:checked + span::after {
		background-color: var(--black);
	}
}

@media (max-width: 600px) {
	.inquiry {
		padding-top: 120px;
		overflow: auto;
	}
	.inquiry input[type="text"],
	.inquiry input[type="email"],
	.inquiry textarea {
		font-size: 14px;
		padding: 12px;
	}
}

.inquiry .wpcf7 form .wpcf7-response-output {
	border: none;
	margin: 0;
	padding: 0;
}