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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Montserrat", system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}

h1 {
	font-family: "Pacifico", cursive;
	font-weight: 400;
	font-style: normal;
	font-size: 3rem;
}

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

/* ── NAV BAR ── */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.8rem 3rem;
	transition:
		background 0.4s,
		backdrop-filter 0.4s,
		border-color 0.4s;
}

.nav.scrolled {
	background: rgba(14, 13, 12, 0.72);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.nav-logo {
	position: relative;
	z-index: 1001;
	transition: opacity 0.3s;
}

.nav-logo img {
	width: 100%;
	height: auto;
	max-width: 160px;
}

/* ── MENU BUTTON ── */
.menu-btn {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	background: none;
	border: 1px solid rgba(240, 237, 232, 0.18);
	border-radius: 50px;
	padding: 0.55rem 1.1rem 0.55rem 0.8rem;
	cursor: pointer;
	position: relative;
	z-index: 1001;
	color: var(--text);
	font-family: "Montserrat", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	transition:
		border-color 0.4s,
		color 0.4s;
}

.nav.open .menu-btn {
	color: var(--text);
	border-color: rgba(240, 237, 232, 0.2);
}

.burger {
	width: 18px;
	height: 11px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.burger span {
	display: block;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transform-origin: left center;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.burger span:last-child {
	width: 60%;
}

.nav.open .burger span:first-child {
	transform: rotate(45deg);
	width: 18px;
}

.nav.open .burger span:last-child {
	transform: rotate(-45deg);
	width: 18px;
}

/* ── OVERLAY ── */
.overlay {
	position: fixed;
	inset: 0;
	background: #0e0d0c;
	z-index: 999;
	clip-path: circle(0% at calc(100% - 3.6rem) 3.4rem);
	transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 7rem 3.5rem 3rem;
}

.overlay.open {
	clip-path: circle(170% at calc(100% - 3.6rem) 3.4rem);
	pointer-events: all;
}

.menu-links {
	display: flex;
	flex-direction: column;
}

.menu-links a {
	display: block;
	overflow: hidden;
	text-decoration: none;
	transition: opacity 0.25s;
}

.menu-links a .divider {
	display: block;
	height: 1px;
	background: rgba(240, 237, 232, 0.06);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-links a .inner {
	display: flex;
	align-items: baseline;
	gap: 1.2rem;
	padding: 0.15rem 0;
	transform: translateY(115%);
	transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay.open .menu-links a .divider {
	transform: scaleX(1);
}

.overlay.open .menu-links a .inner {
	transform: translateY(0);
}

.menu-links a:nth-child(1) .inner,
.menu-links a:nth-child(1) .divider {
	transition-delay: 0.2s;
}

.menu-links a:nth-child(2) .inner,
.menu-links a:nth-child(2) .divider {
	transition-delay: 0.28s;
}

.menu-links a:nth-child(3) .inner,
.menu-links a:nth-child(3) .divider {
	transition-delay: 0.36s;
}

.menu-links a:nth-child(4) .inner,
.menu-links a:nth-child(4) .divider {
	transition-delay: 0.44s;
}

.menu-links a:nth-child(5) .inner,
.menu-links a:nth-child(5) .divider {
	transition-delay: 0.52s;
}

.link-text {
	font-family: "Dongle", sans-serif;
	font-size: clamp(3.2rem, 9vw, 8rem);
	font-weight: 700;
	color: var(--text);
	letter-spacing: -1px;
	line-height: 1.05;
	transition: color 0.25s;
}

.link-num {
	font-family: "Montserrat", sans-serif;
	font-size: 0.72rem;
	font-weight: 300;
	color: rgba(240, 237, 232, 0.22);
	letter-spacing: 1.5px;
	align-self: center;
	flex-shrink: 0;
}

.link-arrow {
	font-size: 1.8rem;
	color: var(--accent);
	margin-left: auto;
	align-self: center;
	transform: translateX(-10px);
	opacity: 0;
	transition:
		transform 0.3s,
		opacity 0.3s;
}

.menu-links:hover a {
	opacity: 0.12;
}

.menu-links a:hover {
	opacity: 1 !important;
}

.menu-links a:hover .link-text {
	color: var(--accent);
}

.menu-links a:hover .link-arrow {
	transform: translateX(0);
	opacity: 1;
}

.overlay-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 2.5rem;
	color: rgba(240, 237, 232, 0.22);
	font-size: 0.76rem;
	font-weight: 300;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 0.4s 0.6s,
		transform 0.4s 0.6s;
}

.overlay.open .overlay-footer {
	opacity: 1;
	transform: translateY(0);
}

/* ── TRAVEL CARDS ── */
.container {
	max-width: 1350px;
	margin: 0 auto;
	padding: 0 20px;
}

.work-collection {
	position: relative;
}

.work-card {
	position: sticky;
	top: calc(180px + (var(--i) * 18px));
	margin: 0 auto 28px;
	border-radius: 28px;
	transform-origin: 50% 80%;
	will-change: transform;
}

.work-card--intro {
	display: grid;
	place-items: center;
	min-height: 60vh;
	padding: 64px 48px;
	border-radius: 28px;
	margin-bottom: 120px;
}

.work-card--intro .intro-content {
	max-width: 720px;
	text-align: center;
}

.work-card--intro h2 {
	margin: 0 0 16px;
	font-size: clamp(36px, 6vw, 64px);
	letter-spacing: -0.02em;
}

.work-media {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.work-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 0;
}

.work-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: radial-gradient(
		circle at center,
		rgba(0, 0, 0, 0) 55%,
		rgba(0, 0, 0, 0.5) 75%,
		rgba(0, 0, 0, 0.9) 100%
	);
}

.card-meta {
	display: flex;
	position: absolute;
	left: 18px;
	right: 18px;
	top: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.14);
	z-index: 2;
}

.work-card--intro .work-media {
	display: none;
}

.actives {
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
	transition:
		box-shadow 0.35s ease,
		transform 0.35s ease;
}

.actives:hover {
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.card-title h2 {
	font-family: "Dongle", sans-serif;
	font-size: 3rem;
	color: #fff;
}

.card-sub p {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #aa0900;
}

.clickme {
	padding: 8px 12px;
	cursor: pointer;
	align-self: center;
	margin-left: auto;
}

.clickme a {
	text-decoration: none;
	color: #fff;
}

.work-media a {
	z-index: 1001110;
	cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
	.overlay {
		padding: 7.6rem 1.8rem 2.5rem;
	}

	.container {
		padding: 0 14px;
	}

	.work-collection {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.work-card {
		position: relative;
		top: auto;
		margin: 0;
		border-radius: 20px;
	}

	.work-card--intro {
		min-height: auto;
		padding: 20px 12px 8px;
		margin-bottom: 0;
	}

	.work-card--intro h1 {
		font-size: clamp(2rem, 8vw, 3rem);
		line-height: 1;
	}

	.work-card--intro h2 {
		font-size: clamp(1.6rem, 6vw, 2.5rem);
		line-height: 0.95;
		margin: 0;
	}

	.work-media {
		aspect-ratio: 4 / 5;
		border-radius: 18px;
	}

	.card-meta {
		left: 12px;
		right: 12px;
		top: 12px;
		padding: 10px 12px;
		border-radius: 12px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.card-title h2 {
		font-size: 2rem;
		line-height: 0.9;
	}

	.card-sub p {
		font-size: 14px;
	}

	.clickme {
		margin-left: 0;
		padding: 0;
		align-self: flex-start;
	}

	.clickme a p {
		font-size: 14px;
	}
}

@media (max-width: 600px) {
	.nav {
		padding: 1.4rem 1.5rem;
	}

	.overlay {
		padding: 6.8rem 1.8rem 2.5rem;
	}
}

@media (max-width: 480px) {
	.work-card--intro {
		padding: 12px 6px 0;
	}

	.work-card--intro h1 {
		font-size: 2rem;
	}

	.work-card--intro h2 {
		font-size: 1.9rem;
	}

	.work-media {
		aspect-ratio: 3 / 4;
	}

	.card-title h2 {
		font-size: 1.7rem;
	}

	.card-sub p,
	.clickme a p {
		font-size: 13px;
	}
}
