/* ==========================================================================
   Navigation Styling (Centered Main Menu & Top-Right Color Vision Menu)
   ========================================================================== */

/* Base navigation styling shared by both nav bars */
nav {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	position: fixed;
	top: 20px;
	z-index: 1000;
	font-weight: bold;
	display: flex;
	align-items: center;
	padding: 0.5rem 1.2rem;
	box-sizing: border-box;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-color: rgba(26, 26, 26, 0.85);
	border-radius: 20px;
}

	/* 1. Centered Navigation Pill (Home, Art) */
	nav.nav-center-pill {
		left: 50%;
		transform: translateX(-50%);
	}

	/* 2. Top Right Navigation Pill (Color Vision) */
	nav.nav-top-right {
		right: 20px;
	}

	/* List and dropdown layout rules */
	nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		align-items: center;
	}

		nav ul li {
			position: relative;
		}
/* Default (Desktop): Show text, hide icon */
.nav-top-right .color-icon {
	display: none;
}

.nav-top-right .color-text {
	display: inline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
	/* Keep home and art nav (center pill) centered */
	nav.nav-center-pill {
		left: 50%;
		transform: translateX(-50%);
	}

	/* Keep color nav in the top right, or adjust as needed */
	nav.nav-top-right {
		right: 20px;
	}

	/* On mobile: Hide the words "Color Vision" and show the rainbow icon */
	.nav-top-right .color-text {
		display: none;
	}

	.nav-top-right .color-icon {
		display: inline-block;
		width: 20px;
		height: 20px;
		object-fit: contain;
		vertical-align: middle;
	}
}
	/* Align dropdown container to the right side of the parent item */
	nav.nav-top-right ul ul {
		left: auto;
		right: 0;
		transform: none;
	}

	nav ul ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		width: max-content;
		max-width: min(320px, calc(100vw - 24px));
		background-color: #1a1a1a;
		border-radius: 8px;
		padding: 5px 0;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	}

/* Hover only opens the dropdown on devices that actually have a mouse. */
@media (hover: hover) {
	nav ul li:hover > ul {
		display: block;
	}
}

/* Opened by tap or keyboard */
nav ul li.open > ul {
	display: block;
}

nav ul ul li {
	float: none;
}

nav ul li a, nav ul li a:visited {
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	display: block;
	font-weight: bold;
	margin: 0;
	padding: 8px 14px;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.05em;
	-webkit-tap-highlight-color: transparent;
	border-radius: 20px;
}

/* Force right-alignment for Color Vision button text and all its dropdown links */
nav.nav-top-right a,
nav.nav-top-right ul ul a {
	text-align: right !important;
}

nav ul li a:hover, nav ul li a:focus,
nav ul li.open > a {
	text-decoration: none;
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

nav ul ul ul {
	position: absolute;
	top: 0;
	left: 100%;
}

/* ==========================================================================
   Footer & Mobile Responsive Overrides
   ========================================================================== */
.menu__foot {
	background-color: #000000 !important;
	color: #94a3b8 !important;
	padding: 24px 20px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

	.menu__foot p {
		margin: 0;
		font-size: 13px;
		letter-spacing: 0.05em;
		width: 100%;
	}

@media (max-width: 860px) {
	#story .wrap {
		margin-left: auto;
		margin-right: auto;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	#story .story__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 640px) {
	.hero__body {
		padding: clamp(72px, 13vh, 150px) 20px 0;
	}

	.hero__lead {
		font-size: 16.5px;
		max-width: 20ch;
	}

	.hero__mark {
		margin-bottom: 20px;
	}

	.btn {
		padding: 12px 18px;
		font-size: 9.5px;
		letter-spacing: 0.15em;
	}

	.hero__cta {
		gap: 10px;
	}
}
