@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');
:root {
	--bg: #fafafa;
	--bg2: #f3f0ff;
	--surface: #ffffff;
	--border: #e8e0ff;
	--accent: #7c3aed;
	--accent2: #a855f7;
	--accent3: #c084fc;
	--accent4: #36006d;
	--accent-light: #f5f0ff;
	--text: #1a1a2e;
	--muted: #494e59;
	--caution: #df0050;
	--gradient: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
a {text-decoration: none;}
html {scroll-behavior: smooth;}
img {
	max-width: 100%;
	height: auto;
}
body {
	background: var(--bg);
	color: var(--text);
	font-family: 'Montserrat', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}
body.scroll-hidden {
	overflow:hidden;
}
*:focus {
	outline: none;
}

*:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.6);
}
input, 
textarea {
	width: 100%;
	border: 1px solid var(--accent3);
	font-size: clamp(0.75rem, 0.6972rem + 0.2254vw, 0.9rem);
	padding: .5rem;
	font-family: 'Montserrat', sans-serif;
}
button {cursor: pointer;}

/* ─── HEADER ─── */
header {
	position: fixed;
	inset: 0;
	z-index: 10;
	padding: 0 5%;
	height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(250, 250, 250, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.logo {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.02em;
	text-decoration: none;
	cursor: pointer;
}

.logo span {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Desktop nav */
nav {
	display: flex;
	gap: 2rem;
}
nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: .88rem;
	font-weight: 500;
	position: relative;
	transition: color .25s;
	padding-bottom: 2px;
}
nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--gradient);
	border-radius: 2px;
	transition: width .3s;
}
:is(nav a:hover, nav a.active)::after {
	width: 100%;
}
@media (hover: hover) and (pointer: fine) {
	nav a:hover {
		color: var(--accent);
	}
}
nav a.active {
	color: var(--accent);
}

/* ─── HAMBURGER ─── */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 4px;
	border-radius: 8px;
	position: relative;
	z-index: 310;
}
.hamburger span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: all .35s cubic-bezier(.4, 0, .2, 1);
	transform-origin: center;
}

.hamburger span:nth-child(1) {
	width: 22px;
}

.hamburger span:nth-child(2) {
	width: 16px;
}

.hamburger span:nth-child(3) {
	width: 22px;
}

.hamburger.open span {
	background: var(--text);
}

.hamburger.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
	width: 22px;
}

.hamburger.open span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
	width: 22px;
}

/* ─── MOBILE MENU (Drawer + Dimmed BG) ─── */
.drawer-dim {
	display: none;
	position: fixed;
	inset: 66px 0 0;
	z-index: 250;
	background: rgba(0, 0, 0, 0);
}

.drawer-dim.open {
	display: block;
	background: rgba(0, 0, 0, 0.45);
}

/* 드로어 패널 */
.mobile-menu {
	position: fixed;
	inset: 66px 0 0;
	z-index: 300;
	width: 80%;
	max-width: 320px;
	background: #fff;
	box-shadow: 4px 0 40px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	padding: 32px 36px 48px;
	transform: translateX(-100%);
	transition: transform .38s cubic-bezier(.4, 0, .2, 1);
	pointer-events: none;
}

.mobile-menu.open {
	transform: translateX(0);
	pointer-events: all;
}

/* 드로어 메뉴 아이템 */
.mobile-menu a {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	transition: color .2s;
	text-align: left;
	display: block;
}

.mobile-menu a:last-child {
	border-bottom: none;
}
.skip-nav {
	position: absolute;
	top: -100%;
	left: 0;
}
.skip-nav:focus {
	top: 0;
}

/* ─── HERO ─── */
#hero {
	width: 100%;
	height: 100vh;
	display: grid;
	place-items: center;
	padding: 120px 5% 100px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(-45deg, #F8B3C5 20%, #cba0fc 50%, #96DAFF 80%);
}
#hero:after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../images/img_noise.webp);
}
/* Hero text */
.hero-inner {
	/* max-width: 1200px;
	width: 100%; */
	position: relative;
	z-index: 1;
	margin-left: -35vw;
	margin-top: 10vh;
	background: url(../images/img_bg_sun.webp) no-repeat 50% 0 / 74%;
	padding-top: 5%;
}
.hero-chips {
	display: flex;
	justify-content: center;
	gap: .6rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
	animation: heroFadeUp .8s .1s both;
	width: 48%
}
.hero-chips .chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 100px;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hero-chips .chip-main {
	background: var(--gradient);
	color: #fff;
}
.hero-chips .chip-outline {
	background: var(--accent-light);
	border: 1px solid var(--border);
	color: var(--accent);
}
.hero-chips .chip-dot::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	animation: blink 1.8s ease-in-out infinite;
}

.hero-title {
	display: inline-block;
	font-family: 'Russo One';
	text-align: center;
	font-size: clamp(2.6rem, 1.7549rem + 3.6056vw, 5rem);
	/* font-weight: 700; */
	line-height: 1.08;
	letter-spacing: .03em;
	/* letter-spacing: -.03em; */
	margin-bottom: 1.5rem;
	color: var(--text);
	animation: heroFadeUp .9s .25s both;
}

.hero-title .gr {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	/* background-size: 200% 200%;
	animation: gradientShift 5s ease infinite; */
}
@keyframes gradientShift {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

.hero-desc {
	font-size: clamp(0.85rem, 0.762rem + 0.3756vw, 1.1rem);
	/* color: var(--muted); */
	text-align: center;
	/* line-height: 1.9; */
	animation: heroFadeUp .9s .4s both;
}

.hero-btns {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	animation: heroFadeUp .9s .55s both;
}

@keyframes heroFadeUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.btn-grad {
	padding: 14px 30px;
	background: var(--gradient);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: clamp(0.85rem, 0.8254rem + 0.1052vw, 0.92rem);
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all .3s;
	box-shadow: 0 6px 24px rgba(124, 58, 237, .3);
	background-size: 200% 200%;
	/* animation: heroFadeUp .9s .55s both, gradientShift 4s 1s ease infinite; */
}
.btn-ghost {
	padding: 14px 30px;
	background: var(--surface);
	color: var(--text);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	font-size: clamp(0.85rem, 0.8254rem + 0.1052vw, 0.92rem);
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all .3s;
}
@media (hover: hover) and (pointer: fine) {
	.btn-ghost:hover {
		border-color: var(--accent2);
		color: var(--accent);
		transform: translateY(-3px);
	}
}

.scroll-hint {
	position: absolute;
	left: 0;
	bottom: 40px;
	z-index: 2;
	width: fit-content;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	animation: heroFadeUp .8s 1s both;
}

.scroll-hint .mouse {
	width: 22px;
	height: 34px;
	border: 2px solid #c4b5fd;
	border-radius: 11px;
	position: relative;
}

.scroll-hint .mouse::before {
	content: '';
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 3px;
	height: 6px;
	background: var(--accent2);
	border-radius: 2px;
	animation: ms 2s 1.2s infinite;
}
@keyframes ms {
	0% {
		opacity: 1;
		top: 5px
	}

	100% {
		opacity: 0;
		top: 16px
	}
}
.hero-date {
	position: absolute;
	top: 67%;
	left: 44%;
	padding: 2rem 2% 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .3rem;
	text-align: center;
	transform: translateX(-50%);
	background: url(../images/img_bg_date.webp) no-repeat;
	background-size: contain;
	width: 21vw;
	min-width: 220px;
	height: auto;
	font-family: 'Russo One';
	font-size: clamp(0.7rem, 0.5592rem + 0.6009vw, 1.1rem);
	line-height: 1.4;
	z-index: 2;
	opacity: 0;
	animation: leftup .6s ease-out .8s forwards;
	aspect-ratio: 434 / 188;
}
.hero-date span {
	font-size: clamp(0.9rem, 0.7239rem + 0.7512vw, 1.4rem);
}
.img-bg .obj-cloud {
	left: 2.5%;
	top: 12%;
	background-image: url(../images/img_bg_cloud.webp);
	width: 93vw;
	aspect-ratio: 1816 / 564;
}
.img-bg .obj-grid {
	right: -2.4%;
	top: -9%;
	background-image: url(../images/img_bg_grid.webp);
	width: 20vw;
	aspect-ratio: 538 / 538;
}
.img-bg .obj-grid.grid2 {
	left: 0;
	top: auto;
	bottom: -15%;
}
.img-bg .obj-planet {
	left: 13.5%;
	top: 22%;
	background-image: url(../images/img_bg_planet.webp);
	width: 8vw;
	aspect-ratio: 219 / 182;
	animation: floating 2.5s ease-in-out infinite both;
}
/* .img-bg .obj-sun {
	left: 26%;
	top: 35.5vh;
	background-image: url(../images/img_bg_sun.webp);
	width: 16%;
	aspect-ratio: 308 / 215;
} */
.img-bg .obj-tree1 {
	right: -0.5%;
	bottom: -8%;
	background-image: url(../images/img_bg_tree1.webp);
	width: 14vw;
	aspect-ratio: 251 / 394;
	animation: moveUp .8s 1s both;
}
.img-bg .obj-tree2 {
	left: -0.5%;
	bottom: -6%;
	background-image: url(../images/img_bg_tree2.webp);
	width: 20vw;
	aspect-ratio: 387 / 421;
	animation: moveUp .9s 1.2s both;
}
.img-bg .obj-folder {
	right: 15.5%;
	bottom: 5%;
	background-image: url(../images/img_bg_folder4.webp);
	width: 12vw;
	aspect-ratio: 231 / 165;
	opacity: 0;
	animation: moveUp .5s .8s both;
}
.img-bg .obj-memo {
	right: 10.5%;
	top: 16%;
	background-image: url(../images/img_bg_memo.webp);
	width: 4vw;
	aspect-ratio: 89 / 105;
	opacity: 0;
	animation: leftdown .5s ease-out .9s forwards;
}
.img-bg .obj-load {
	left: 28.5%;
	bottom: 17%;
	width: 1.5vw;
	aspect-ratio: 48 / 90;
	overflow: visible;
	animation: floating 1.25s ease-in-out infinite both;
}
.img-bg .obj-load i {
	display: block;
	background: url(../images/img_bg_load.webp) no-repeat 50% 50% / contain;
	width: 100%;
	height: 100%;
	overflow: hidden;
	animation: rotating 6s ease-in-out infinite;
}
.img-bg .obj-computer {
	right: 22.5%;
	top: 20%;
	background-image: url(../images/img_bg_computer.webp);
	width: 25vw;
	min-width: 210px;
	aspect-ratio: 539 / 539;
	opacity: 0;
	animation: leftdown .8s ease-out .6s forwards;
}
.img-bg .obj-star {
	display: inline-block;
	width: auto;
	height: auto;
	color: var(--surface);
    text-indent: 0;
	animation: twinkle .5s ease-in-out infinite;
}
.img-bg .obj-star i {
	display: inline-block;
	font-style: normal;
	animation: blink 1s ease-in-out infinite;
}
.img-bg .obj-star.star1 {
	top: 13%;
	left: 36%;
    font-size: 2.2rem;
	animation-duration: .8s;
}
.img-bg .obj-star.star2 {
	top: 25%;
	left: 40%;
    font-size: 1.4rem;
	animation-duration: .5s;
}
.img-bg .obj-star.star3 {
	top: 48%;
	left: 3%;
    font-size: 2.3rem;
	animation-duration: 1s;
}
.img-bg .obj-star.star4 {
	top: 72%;
	left: 36%;
    font-size: 1.2rem;
	animation-duration: .6s;
}
.img-bg .obj-star.star5 {
	top: 58%;
	left: 8%;
    font-size: 1.4rem;
	animation-duration: .7s;
}
.img-bg .obj-star.star5 i {
	animation: blink2 2.5s ease-in-out infinite;
}
.img-bg .obj-star.star6 {
	top: 12%;
	left: 69%;
    font-size: 1.4rem;
	animation-duration: 1s;
}
.img-bg .obj-star.star6 i {
	animation: blink2 4s ease-in-out infinite;
}
.img-bg .obj-star.star7 {
	top: 28%;
	right: 6%;
    font-size: 1.1rem;
	animation-duration: .6s;
}
.img-bg .obj-star.star8 {
	top: 41%;
	right: 12%;
    font-size: 2rem;
	animation-duration: .9s;
}
.img-bg .obj-star.star9 {
	top: 67%;
	right: 17%;
    font-size: 1.2rem;
	animation-duration: .8s;
}
.img-bg .obj-star.star9 i {
	animation: blink2 2s ease-in-out infinite;
}
.img-bg span {
	position: absolute;
	display: block;
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	width: 100%;
	height: auto;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
@keyframes floating {
	0% {transform: translateY(0);}
	50% {transform: translateY(-3vh);}
}
@keyframes rotating {
	0% {transform: rotate(0deg);}
	10% {transform: rotate(180deg);}
	50% {transform: rotate(180deg);}
	60% {transform: rotate(360deg);}
	100% {transform: rotate(360deg);}
}
@keyframes leftdown {
	from {
		transform: translate(20%, -20%);
		opacity: 0;
	}
	to {
		transform: translate(0, 0);
		opacity: 1;
	}
}
@keyframes leftup {
	from {
		transform: translate(40%, 40%);;
		opacity: 0;
	}
	to {
		transform: translate(0, 0);
		opacity: 1;
	}
}
@keyframes moveUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
@keyframes twinkle {
	0% {transform: scale(1);}
	50% {transform: scale(1.2);}
	100% {transform: scale(1);}
}
@keyframes blink {
	0%,
	100% {opacity: 1}
	50% {opacity: .7}
}
@keyframes blink2 {
	0% {opacity: 1}
	2% {opacity: .2}
	4% {opacity: 1}
	8% {opacity: .2}
	10% {opacity: 1}
	45% {opacity: .7}
	100% {opacity: 1}
}

/* ─── GO TO TOP BUTTON ─── */
.goto-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 100;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gradient);
	background-size: 200% 200%;
	border: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 24px rgba(124, 58, 237, .35);
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
	transition: opacity .35s ease, transform .35s ease, box-shadow .25s;
	animation: gradientShift 4s ease infinite;
}
@media (hover: hover) and (pointer: fine) {
	.goto-top:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 36px rgba(124, 58, 237, .5);
	}
}
.goto-top.visible {
	opacity: .8;
	pointer-events: all;
	transform: translateY(0);
}
.goto-top svg {
	width: 20px;
	height: 20px;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

/* ─── SECTIONS ─── */
.sec-wrap {
    position: relative;
	padding: 8vw 5% 12vw;
	width: 100%;
    background: var(--bg);
	overflow: hidden;
}
.sec-inner {
    max-width:1200px;
	margin: 0 auto;
}

.sec-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: clamp(0.6rem, 0.5577rem + 0.1803vw, 0.72rem);
	font-weight: 700;
	color: var(--accent);
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: .8rem;
}

.sec-label::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 2px;
	background: var(--gradient);
	border-radius: 2px;
}

.sec-title {
	font-size: clamp(1.4rem, 0.907rem + 2.1033vw, 2.8rem);
	font-weight: 700;
	color: var(--text);
	letter-spacing: -.02em;
	line-height: 1.2;
	margin-bottom: 4vh;
}
.sec-subtitle {
    font-size: clamp(1rem, 0.8592rem + 0.6009vw, 1.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: .7rem;
	margin-top: 10rem;
}
.sec-subtext {
	font-size: clamp(0.8rem, 0.7366rem + 0.2704vw, 0.98rem);
	margin-bottom: 1rem;
}
:is(.sec-title, .sec-subtitle) span {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.sec-title + .sec-subtitle {margin-top: 0;}
.divider {
    position: relative;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border), transparent);
	max-width: 1200px;
	margin: -1px auto 0;
}

/* ─── ABOUT ─── */
#about {
	background: url(../images/bg_about3.webp) no-repeat center center / cover;
	background-attachment: fixed;
}
#about .sec-inner {
	background: var(--bg);
    border-radius: 2rem;
    padding: 7vh;
	box-shadow: 0 20px 50px rgba(12, 0, 59, .3);
}
.about-wrap {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 5rem;
	align-items: center;
}
.about-profile {
	display: grid;
	place-items: center;
	flex-direction: column;
}
.avatar-wrap {
	position: relative;
	display: inline-block;
	width: 30vh;
	margin-bottom: 1.2rem;
	background: url(../images/img_tv.webp) no-repeat 50% 50%;
	background-size: contain;
	aspect-ratio: 376 / 411;
}
.avatar video {
    position: absolute;
    left: 2.1vh;
    width: 22.8vh;
    margin-top: 10.5vh;
}

/* .avatar-ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px dashed var(--accent3);
	animation: spin 12s linear infinite;
} */

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.profile-name {
	font-size: clamp(0.9rem, 0.7944rem + 0.4507vw, 1.2rem);
	font-weight: 700;
	color: var(--text);
	margin-bottom: .3rem;
}

.profile-role {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 100px;
	background: var(--accent-light);
	color: var(--accent);
	font-size: clamp(0.6rem, 0.5366rem + 0.2704vw, 0.78rem);
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.profile-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .5rem;
	margin-top: 1.5rem;
	width: 100%;
}
.pstat {
	background: var(--bg2);
	border-radius: 10px;
	padding: 10px 8px;
}
.pstat-n {
	font-size: clamp(1rem, 0.9296rem + 0.3005vw, 1.2rem);
	font-weight: 700;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.pstat-l {
	font-size: .65rem;
	color: var(--muted);
}

.about-body p {
	color: var(--muted);
	line-height: 1.9;
	margin-bottom: 1.1rem;
	font-size: clamp(0.9rem, 0.8648rem + 0.1502vw, 1rem);
}

.about-body strong {
	color: var(--text);
	font-weight: 600;
}

.about-body ul {
	font-size: clamp(0.85rem, 0.7972rem + 0.2254vw, 1rem);
	color: var(--muted);
	line-height: 1.7;
	padding: 0;
	margin: 2px 0 0 0;
	list-style: none;
}
.about-body ul li {
	position: relative;
	padding-left: 8px;
	margin-bottom: .4rem;
}
.about-body ul li:before {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	width: 2px;
	height: 2px;
	background-color: var(--muted);
	font-size: .82rem;
}
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: 1.5rem;
}

.tag {
	padding: 5px 12px;
	background: var(--accent-light);
	border: 1px solid var(--border);
	border-radius: 100px;
	font-size: clamp(0.65rem, 0.6077rem + 0.1803vw, 0.77rem);
	color: var(--accent4);
}

/* ─── WORKS ─── */
.works-wrap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
	gap: 1.5rem;
}
.work-card {
	position: relative;
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	transition: all .35s;
}
@media (hover: hover) and (pointer: fine) {
	.work-card:hover {
		border-color: var(--accent3);
		/* transform: translateY(-6px); */
		box-shadow: 0 20px 50px rgba(124, 58, 237, .12);
	}
}
.work-thumb {
	/* aspect-ratio: 16/9; */
	position: relative;
	background: linear-gradient(135deg, #f5f0ff, #ede9fe 50%, #fdf4ff);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.work-thumb a {
	line-height: 0;
}
.work-thumb a:focus-visible {
	outline: 3px solid rgba(168, 85, 247, 0.6);
	outline-offset: -3px;
}
.work-thumb img {width: 100%;}
.work-thumb-overlay {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	background: linear-gradient(135deg, rgba(124, 58, 237, .06), rgba(236, 72, 153, .04));
}
.work-body {
	position: relative;
	padding: 1.5rem 1.5rem 4.5rem;
}

.work-chips {
	display: flex;
	gap: .35rem;
	flex-wrap: wrap;
	margin-bottom: .8rem;
}

.wchip {
	padding: 2px 9px;
	border-radius: 100px;
	background: var(--accent-light);
	border: 1px solid var(--border);
	font-size: clamp(0.6rem, 0.5718rem + 0.1202vw, 0.68rem);
	color: var(--accent4);
	font-weight: 500;
}

.work-body h4 {
	font-size: clamp(0.9rem, 0.8296rem + 0.3005vw, 1.1rem);
	font-weight: 700;
	color: var(--text);
	margin-bottom: .45rem;
}

.work-body p {
	position: relative;
	font-size: clamp(0.8rem, 0.7648rem + 0.1502vw, 0.9rem);
	color: var(--text);
	line-height: 1.7;
}
.work-body ul {
	font-size: clamp(0.8rem, 0.7648rem + 0.1502vw, 0.9rem);
	color: var(--text);
	line-height: 1.7;
	padding: 0;
	margin: 2px 0 0 0;
	list-style: none;
}
.work-body ul li {
	position: relative;
	padding-left: 8px;
}
.work-body ul li:before {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	width: 2px;
	height: 2px;
	background-color: var(--muted);
	font-size: .82rem;
}
.work-role {
	margin-bottom: 1vh;
	padding-left: 14px;
	font-weight: 500;
	color: var(--text);
}
.work-role:before {
	content: "✦";
	position: absolute;
	top: 4px;
	left: 0;
	color: var(--accent2);
	font-size: .6rem;
}
.work-view {
	position: absolute;
	left: 1.5rem;
	bottom: 1.5rem;
	width: 90%;
	display: flex;
	gap: 7%;
}

.work-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: clamp(0.65rem, 0.6087rem + 0.1761vw, 0.82rem);
	font-weight: 600;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/* transition: gap .2s; */
}
@media (hover: hover) and (pointer: fine) {
	.citem:hover {
		border-color: var(--accent2);
		color: var(--accent);
		background: var(--accent-light);
		transform: translateY(-2px);
	}
	.popup-view::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, 0.8);
	}
}
.work-link:before {
	content: "";
	display: inline-flex;
	width: 18px;
	height:18px;
	background-size: contain;
}
.work-link.ico-pc:before {
	background-image: url(../images/ico_pc.svg);
}
.work-link.ico-mo:before {
	background-image: url(../images/ico_mo.svg);
}
.work-link.ico-git:before {
	background-image: url(../images/ico_git.svg);
}

/* 4열 타입 포트폴리오*/
.works-wrap2 {
	display: grid;
	gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    will-change: transform;
    position: relative;
}
.works-wrap2 .work-card {
	height: 100%;
}

/* ─── LIST LAYOUT ─── */
.works-list {
	display: flex;
	flex-direction: column;
	border-top: 1.5px solid var(--border);
}

.work-list-item {
	/* background: var(--surface);  */
	border-bottom: 1.5px solid var(--border);
	padding: 1.2rem .8rem;
	transition: all .28s;
	text-decoration: none;
	list-style: none;
	display: grid;
	grid-template-columns: 30% 50% auto;
	align-items: center; gap: 1.4rem;
}
.work-list-item h4 {
	font-size: clamp(0.92rem, 0.8989rem + 0.0901vw, 0.98rem);
	font-weight: 700;
	color: var(--text);
	margin-bottom: .3rem;
}
.work-list-item p {
	font-size: .8rem;
	color: var(--muted);
	line-height: 1.5;
}

/* ─── OTHER ─── */
.works-other {
	overflow: visible;
	padding-bottom: 12px;
}
.works-other .swiper-slide {
	height: 32vh;
	overflow: hidden;
	background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 18px;
}

.works-other .swiper-slide .popup-trigger {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: block;
	width: 100%;
	height: 100%;
}
.works-other .swiper-slide .popup-trigger:focus-visible {
	outline: 3px solid rgba(168, 85, 247, 0.6);
	outline-offset: -3px;
}
.works-other .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	image-rendering: -webkit-optimize-contrast; /* 크롬/사파리 */
	image-rendering: crisp-edges;
	-ms-interpolation-mode: bicubic; /* IE */
}
.sec-inner .swiper-scrollbar .swiper-scrollbar-drag {
    background: var(--gradient);
    opacity: .5;
}

/* ─── CONTACT ─── */
#contact-sec {
	text-align: center;
	background: url(../images/bg_contact.webp) no-repeat 50% 40%;
	background-size: cover;
	padding: 8vw 5% 10vw;
}
#contact-sec .sec-inner {
	position: relative;
	z-index: 2;
}
#contact-sec .sec-label {justify-content: center;}
#contact-sec .sec-title {text-align: center;}
#contact-sec .sec-subtitle {margin-top: 0;}
.contact-card {
	max-width: 500px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
}
.contact-emoji {
	margin-bottom: 1rem;
	display: inline-block;
	width: 7vw;
	height: 7vw;
	background: url(../images/img_smile.webp) no-repeat;
	background-size:contain;
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
}
.contact-card p {
	color: var(--text);
	margin-bottom: 1.5rem;
	line-height: 1.8;
	font-size: clamp(0.8rem, 0.7366rem + 0.2704vw, 0.98rem);
}
.contact-items {
	display: flex;
	gap: .7rem;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
}
.citem {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: 1vh 3.5%;
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: .6rem;
	color: var(--muted);
	text-decoration: none;
	font-size: clamp(0.65rem, 0.7554rem + 0.1052vw, 0.85rem);
	font-weight: 500;
	transition: all .25s;
}
@media (hover: hover) and (pointer: fine) {
	.citem:hover {
		border-color: var(--accent2);
		color: var(--accent);
		background: var(--accent-light);
		transform: translateY(-2px);
	}
}
.citem.mail:before {
	background-image: url(../images/ico_email.svg);
}
.citem.github:before {
	background-image: url(../images/ico_github.svg);
}
.citem.resume:before {
	background-image: url(../images/ico_resume.svg);
}
.citem:before {
	content:"";
	display: inline-block;
	width: 15px;
	height: 15px;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: contain;
}
.contact-message {
	width: 100%;
	background: rgba(255, 255, 255, .4);
	margin-top: 1.5rem;
	padding: 1rem 1.5rem 2.5rem;
	/* border: 1px solid var(--surface); */
	font-size: clamp(0.8rem, 0.7648rem + 0.1502vw, 0.9rem);
}
.contact-message .message-title {
	font-size: clamp(0.85rem, 0.7972rem + 0.2254vw, 1rem); 
	margin-bottom: 1rem;
	font-weight: 500;
}
.contact-message .message-title a {
	text-decoration: none;
	background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
	background-size: 100% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	color: var(--text);
	padding-bottom: 3px;
}
#contactForm {
	display: grid;
	place-items: center;
	gap: .5rem;
}
#contactForm label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}
#contactForm button {
	width: 100%;
	padding: 1vh 3.5%;
	background: var(--accent2);
	border: none;
	border-radius: .6rem;
	color: var(--surface);
	text-decoration: none;
	font-size: clamp(0.65rem, 0.7554rem + 0.1052vw, 0.85rem);
	font-weight: 500;
	transition: all .25s;
}
#formMsg {
	position: absolute;
	bottom: .8rem;
	left: 0;
	right: 0;
	margin: 0;
	color: var(--accent4);
	text-align: center;
	font-size: clamp(0.65rem, 0.7554rem + 0.1052vw, 0.85rem);
}

#contact-sec .img-bg {
	left: -1vh;
    top: -9vh;
}
#contact-sec .img-bg .obj-star.star4 {
	top: 59%;
	left: 30%;
}
#contact-sec .img-bg .obj-star.star5 {
	top: 40%;
	left: 24%;
}
#contact-sec .img-bg .obj-star.star9 {
	top: 48%;
	right: 22%;
}

/* ─── FOOTER ─── */
footer {
    position: relative;
	/* border-top: 1px solid var(--border); */
	/* padding: 2rem 5%; */
	text-align: center;
	color: var(--muted);
	font-size: clamp(0.7rem, 0.6648rem + 0.1502vw, 0.8rem);
    /* background: var(--bg); */
	margin-top: -5.5vh;
}
footer strong {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ─── SCROLL FADE ─── */
.fade-up {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ─── MODAL POPUP ─── */
.popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.75);
	place-items: center;
	padding: 20px;
	box-sizing: border-box;
}
.popup-overlay.active { display: grid; }
.popup-box {
	position: absolute;
	max-width: 600px;
	max-height: 90vh;
	border-radius: 8px;
	/* background-color: rgba(255, 255, 255, .7); */
}
.popup-box.is-design {
	max-width: 344px;
}
.popup-view {
	/* max-width: 600px; */
}
.popup-view .swiper-slide {
	display: grid;
	place-items: center;
	height: 100%;
	max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
	text-align: center;
}
.popup-view .swiper-wrapper {
	align-items: center;
}
.popup-view .swiper-slide::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, 0.8);
	}
.popup-view .swiper-slide::-webkit-scrollbar {
	width: 4px;
}
.popup-view .swiper-slide::-webkit-scrollbar-track {
	background: transparent;
}
.popup-view .swiper-slide::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.45);
	border-radius: 99px;
}
.swiper-button-next, 
.swiper-button-prev {
	color: var(--surface);
	background-color: rgba(0, 0, 0, .5);
	padding: .5rem;
	width:  5vh;
	height:  5vh;
	border: none;
}
.swiper-button-next {
	right: var(--swiper-navigation-sides-offset, 0px);
    transform: translateX(50%);
}
.swiper-button-prev {
	left: var(--swiper-navigation-sides-offset, 0px);
    transform: translateX(-50%);
}
#popupImg {
	width: 100%;
	max-width: 600px;
	display: block;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: pointer;
}
#popupImg.loaded {
	opacity: 1;
}
.popup-close {
	position: absolute; 
	top: -42px;
	right: -10px;
	width: 4vh; height: 4vh;
	/* border-radius: 50%;
	background: rgba(0, 0, 0, 0.5); */
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer; z-index: 1;
	display: grid; place-items: center;
	line-height: 1;
}

/* ─── RESPONSIVE ─── */
/* tablet */
@media (min-width: 768px) and (max-width: 1024px) {
	.hero-inner {
		margin-left: -33vw;
		margin-top: 8vh;
		background-size: 64% auto;
	}
	.hero-date {
		top: 69%;
		left: 38%;
		width: 31vw;
	}

	/* 오브젝트 크기/위치 */
	.img-bg .obj-cloud {
		left: -3%;
		top: 10%;
		width: 110vw;
	}
	.img-bg .obj-grid {
		width: 30vw;
		right: -4%;
		top: -1%;
	}
	.img-bg .obj-grid.grid2 {
		bottom: -10%;
	}
	.img-bg .obj-planet {
		left: 10%;
		top: 20%;
		width: 11vw;
	}
	.img-bg .obj-computer {
		right: 11%;
        top: 34%;
        width: 30vw;
	}
	.img-bg .obj-tree1 {
		width: 18vw;
		right: 0;
		bottom: -5%;
	}
	.img-bg .obj-tree2 {
		width: 26vw;
		left: -0.5%;
		bottom	: -4%;
	}
	.img-bg .obj-folder {
		right: 20%;
		bottom: 3%;
		width: 16vw;
	}
	.img-bg .obj-memo {
		right: 8%;
		top: 14%;
		width: 7vw;
	}
	.img-bg .obj-load {
		left: 29%;
		bottom: 18%;
		width: 2.5vw;
	}

	/* 별 */
	.img-bg .obj-star.star1 { left: 34%; font-size: 1.8rem; }
	.img-bg .obj-star.star2 { left: 38%; font-size: 1.2rem; }
	.img-bg .obj-star.star8 { right: 15%; font-size: 1.6rem; }

	/* works 그리드 */
	.works-wrap2 {
		grid-template-columns: repeat(3, 1fr);
	}

	/* about */
	.about-wrap {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/*Mobile*/
@media (max-width: 767px) {
	nav {
		display: none;
	}
	.hamburger {
		display: flex;
	}
	.sec-wrap {
		padding: 12vw 5% 20vw;
	}
	.sec-subtitle {
		margin-top: 5rem;
	}
	input, textarea {
		padding: .3rem;
	}
	/*Main*/
	#hero {
		padding: 26% 6%;
		place-items: unset;
	}
	.hero-inner {
		margin: 0;
		text-align: center;
		background-size: 57% auto;
		padding-top: 5vh;
	}
	.hero-title {
		margin-bottom: .3rem;
	}
	.hero-date {
		top: 72%;
		left: 12%;
		padding: 1.6rem 2% 1rem;
	}
	.img-bg .obj-cloud {
		left: -11.5%;
		top: 9%;
		width: 182vw;
	}
	.img-bg .obj-grid {
		right: -7.4%;
		top: 4%;
		width: 39vw;
	}
	.img-bg .obj-grid.grid2{
		bottom: -6%;
	}
	.img-bg .obj-planet {
		left: 4.5%;
		top: 15%;
		width: 17vw;
	}
	.img-bg .obj-tree1 {
		right: 0.5%;
		bottom: -1%;
		width: 27vw;
	}
	.img-bg .obj-tree2 {
		left: -0.5%;
		bottom: -2%;
		width: 38vw;
	}
	.img-bg .obj-folder {
		display: none;
		right: 22.5%;
		bottom: 2%;
		width: 29vw;
	}
	.img-bg .obj-memo {
		display: none;
		right: 7.5%;
		top: 13%;
		width: 9vw;
	}
	.img-bg .obj-load {
		left: 16.5%;
		bottom: 31%;
		width: 4.5vw;
	}
	.img-bg :is(.star1, .star2, .star4, .star8, .star9) {
		display: none;
	}
	.img-bg .obj-star.star3 {
		top: 48%;
		left: 5%;
		font-size: 1.4rem;
	}
	.img-bg .obj-star.star5 {
		top: 58%;
		left: 9%;
		font-size: 1rem;
	}
	.img-bg .obj-star.star6 {
		left: 84%;
	}
	.img-bg .obj-computer {
		right: 11.5%;
		top: 45%;
	}

	#about {
		background-image: url(../images/bg_about3_mo.webp);
	}
	#about .sec-inner {
		padding: 5vh 8%;
	}
	.about-wrap {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
		
	.work-body {padding: 1rem 1rem 4rem;}
	.works-wrap {
		gap: 1rem;
		grid-template-columns: repeat(auto-fill, minmax(80%, 1fr));
	}
	.work-view {
		left: 1rem;
		bottom: 1rem;
	}
    .works-wrap2 {
		gap: 1rem;
		grid-template-columns: repeat(2, 1fr);
	}
	.work-list-item {
		grid-template-columns: 100%;
		gap: .2rem;
		padding: 1rem 0;
	}

	#contact-sec {
		padding: 16vw 5% 25vw;
		background: url(../images/bg_contact_mo.webp) no-repeat 50% 90%;
    	background-size: cover;
	}
	.contact-card {
		width: 80%;
	}
	.contact-card p {
		margin-bottom: 1rem;
	}
	.contact-message {
		margin-top: 1rem;
		padding: .8rem 1rem 1.8rem;
	}
	.contact-message .message-title {
		margin-bottom: .5rem;
	}
	#contactForm {
		gap: .3rem;
	}
	#contactForm button{
		border-radius: .3rem;
	}
	#formMsg {
		bottom: .3rem;
	}

	#contact-sec .img-bg .obj-star.star3 {
		top: 6%;
		left: 16%;
	}
	#contact-sec .img-bg .obj-star.star5 {
		top: 48%;
		left: 17%;
	}
	.citem {
		gap: .2rem;
		padding: .6vh 4%;
		border-radius: .3rem;
	}

	.goto-top {
		right: 20px;
		bottom: 24px;
		width: 40px;
		height: 40px;
	}

	.popup-box {
		max-width: 86%;
	}
}

@media (min-width: 768px) {
	.hamburger {
		display: none !important;
	}

	.drawer-dim {
		display: none !important;
	}

	.mobile-menu {
		display: none !important;
	}
}