:root {
	--page: #090909;
	--text: #f5f5f5;
	--muted: #a3a3a3;
	--line: rgba(255, 255, 255, .10);
	--line-strong: rgba(255, 255, 255, .30);
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	background: #090909;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--page);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	user-select: none;
	-webkit-user-select: none;
}

img {
	display: block;
	max-width: 100%;
	-webkit-user-drag: none;
	user-select: none;
}

button, a { font: inherit; }
button { cursor: pointer; }
.noscript { padding: 24px; background: #0a0a0a; color: #fff; }

.wrap,
.hero-inner {
	width: min(100% - 40px, 1280px);
	margin: 0 auto;
}

.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 80px 0 48px;
}

.hero-media,
.hero-media img,
.hero-overlay,
.hero-bridge,
.hero-glow {
	position: absolute;
	inset: 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
	animation: heroIn .7s ease-out both;
}

.hero-overlay { background: linear-gradient(to top, rgba(10,10,10,1), rgba(10,10,10,.6), rgba(10,10,10,.4)); }
.hero-bridge { top: auto; height: 210px; background: linear-gradient(to bottom, transparent, rgba(10,10,10,.72), rgba(10,10,10,1)); }
.hero-glow { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.16), transparent 28%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 30%); }

.hero-inner {
	position: relative;
	display: grid;
	gap: 40px;
	align-items: end;
}

.eyebrow {
	margin: 0 0 16px;
	color: #d4d4d4;
	font-size: 10px;
	letter-spacing: .42em;
	text-transform: uppercase;
}

.eyebrow.muted {
	color: #737373;
	letter-spacing: .36em;
}

h1, h2 {
	margin: 0;
	color: #fff;
	letter-spacing: -.08em;
	line-height: .92;
}

h1 {
	max-width: 11ch;
	font-size: clamp(3rem, 12vw, 8rem);
	font-weight: 650;
}

h2 {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 500;
	letter-spacing: -.04em;
}

.hero-text {
	margin: 20px 0 0;
	max-width: 620px;
	color: #d4d4d4;
	font-size: clamp(.95rem, 1.8vw, 1.25rem);
	line-height: 1.6;
}

.down-arrow {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 999px;
	background: rgba(255,255,255,.035);
	color: #fff;
	font-size: 28px;
	text-decoration: none;
	backdrop-filter: blur(5px);
	animation: arrowBounce 1.5s ease-in-out .55s infinite, fadeUp .3s ease-out both;
	transition: .15s ease;
}

.down-arrow:hover {
	background: #fff;
	color: #000;
}

.gallery-section {
	border-block: 1px solid var(--line);
}

.gallery-section .wrap {
	padding: 64px 0;
}

.gallery-heading {
	display: flex;
	justify-content: space-between;
	gap: 28px;
	align-items: end;
	margin-bottom: 28px;
}

.gallery-description {
	max-width: 450px;
	margin: 0;
	color: #a3a3a3;
	font-size: .9rem;
	line-height: 1.65;
}

.divider {
	height: 1px;
	margin-bottom: 32px;
	background: linear-gradient(to right, rgba(255,255,255,.30), rgba(255,255,255,.10), transparent);
}

.gallery-controls {
	position: sticky;
	top: 16px;
	z-index: 30;
	margin-bottom: 32px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: rgba(10,10,10,.9);
	backdrop-filter: blur(12px);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.category-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.category-tabs button,
.mode-toggle button,
.models-toggle,
.load-actions button,
.modal-actions button {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255,255,255,.04);
	color: #a3a3a3;
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 11px;
	transition: .12s ease;
}

.category-tabs button {
	position: relative;
	flex: 0 0 auto;
	padding: 9px 14px;
	overflow: hidden;
}

.category-tabs button span {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.category-tabs button small {
	color: #575757;
	font-size: 10px;
}

.category-tabs button.active {
	border-color: rgba(255,255,255,.35);
	color: #000;
	background: #fff;
}

.category-tabs button.active small {
	color: rgba(0,0,0,.45);
}

.category-tabs button:not(.active):hover,
.models-toggle:hover,
.mode-toggle button:not(.active):hover,
.load-actions button:hover,
.modal-actions button:hover {
	border-color: rgba(255,255,255,.3);
	color: #fff;
}

.right-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.mode-toggle {
	display: flex;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255,255,255,.035);
}

.mode-toggle button {
	padding: 7px 11px;
	border: 0;
	background: transparent;
	font-size: 10px;
}

.mode-toggle button.active,
.models-toggle.active {
	background: #fff;
	color: #000;
}

.models-toggle { padding: 8px 12px; }

.showing-count {
	margin: 0;
	color: #737373;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .16em;
}

.models-panel,
.mood-intro {
	margin-bottom: 24px;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: rgba(255,255,255,.025);
	padding: 16px;
	animation: fadeUp .15s ease-out both;
}

.models-panel.hidden,
.model-chip.hidden,
.modal.hidden,
.load-actions.hidden { display: none; }

.models-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	color: #737373;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .22em;
}

.models-grid {
	display: grid;
	gap: 8px;
}

.model-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255,255,255,.035);
	color: #d4d4d4;
	padding: 10px 12px;
	text-align: left;
	transition: .12s ease;
}

.model-card:hover,
.model-card.active {
	border-color: rgba(255,255,255,.35);
	background: #fff;
	color: #000;
}

.model-card strong,
.model-card small {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.model-card small {
	margin-top: 3px;
	color: #737373;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .16em;
}

.model-chip {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255,255,255,.04);
	color: #d4d4d4;
	padding: 9px 16px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .18em;
}

.model-chip em {
	color: #737373;
	font-style: normal;
}

.model-chip button {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: #a3a3a3;
}

.mood-intro p { margin: 0; }

.mood-intro .label {
	margin-bottom: 8px;
	color: #737373;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .22em;
}

.mood-intro .text {
	color: #d4d4d4;
	font-size: .9rem;
}

.gallery-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-grid.compact {
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: rgba(10,10,10,.7);
	color: inherit;
	text-align: left;
	padding: 0;
	transition: .12s ease;
}

.card:hover { border-color: rgba(255,255,255,.30); }

.card-media {
	position: relative;
	overflow: hidden;
	background: rgba(255,255,255,.035);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .86;
	transition: transform .15s ease, opacity .15s ease;
}

.card:hover img {
	transform: scale(1.025);
	opacity: 1;
}

.card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
	opacity: 0;
	transition: .15s ease;
	pointer-events: none;
}

.card-hover {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transform: translateY(8px);
	transition: .15s ease;
	pointer-events: none;
}

.card:hover .card-overlay,
.card:hover .card-hover {
	opacity: 1;
	transform: translateY(0);
}

.card-footer {
	border-top: 1px solid var(--line);
	padding: 12px 16px;
}

.model-pill {
	display: inline-flex;
	max-width: 100%;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255,255,255,.045);
	color: #e5e5e5;
	padding: 7px 12px;
	font-size: .9rem;
	transition: .12s ease;
}

.model-pill:hover {
	transform: translateY(-1px);
	border-color: rgba(255,255,255,.30);
	background: rgba(255,255,255,.085);
	color: #fff;
}

.model-pill .truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.model-pill .arrow { color: #737373; }

.load-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}

.load-actions button {
	padding: 12px 22px;
	color: #fff;
}

.load-actions button.secondary {
	background: transparent;
	color: #a3a3a3;
}

.empty-state {
	border: 1px solid var(--line);
	border-radius: 28px;
	background: rgba(255,255,255,.025);
	padding: 64px 24px;
	text-align: center;
}

.empty-state p:first-child {
	color: #737373;
	text-transform: uppercase;
	letter-spacing: .24em;
}

.empty-state p:last-child { color: #a3a3a3; }

.image-box {
	position: relative;
	background: rgba(255,255,255,.035);
}

.image-box.is-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(110deg, rgba(255,255,255,.035), rgba(255,255,255,.12), rgba(255,255,255,.035));
	background-size: 260% 100%;
	animation: shimmer .75s linear infinite;
}

.image-box.is-error::after {
	content: "Image missing";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 2;
	color: #737373;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	background: rgba(255,255,255,.025);
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0,0,0,.90);
}

.modal-close,
.modal-arrow {
	position: absolute;
	z-index: 3;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	color: #fff;
	padding: 12px 15px;
	transition: .12s ease;
}

.modal-close {
	top: 20px;
	right: 20px;
	font-size: 20px;
}

.modal-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.modal-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.modal-close:hover,
.modal-arrow:hover {
	background: #fff;
	color: #000;
}

.modal.ui-hidden .modal-close,
.modal.ui-hidden .modal-arrow,
.modal.ui-hidden .modal-info {
	opacity: 0;
	pointer-events: none;
}

.modal-shell { width: min(100%, 1150px); }
.modal-image-wrap { cursor: pointer; }

.modal-image {
	position: relative;
	background: transparent;
}

.modal-image img {
	max-height: 74vh;
	width: 100%;
	object-fit: contain;
	border-radius: 28px;
}

.modal-info {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: rgba(255,255,255,.04);
	padding: 16px;
	transition: .12s ease;
}

.modal-info-top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.modal-meta p {
	margin: 8px 0 0;
	color: #737373;
	font-size: 12px;
}

.modal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: #737373;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .2em;
}

.modal-actions button {
	padding: 9px 12px;
	color: #d4d4d4;
}

.thumb-strip {
	margin-top: 16px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 64px;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	padding: 0;
	background: #111;
	opacity: .45;
	transition: .12s ease;
}

.thumb.active,
.thumb:hover {
	opacity: 1;
	border-color: rgba(255,255,255,.70);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes shimmer {
	to { background-position: -130% 0; }
}

@keyframes heroIn {
	from { opacity: 0; transform: scale(1.02); }
	to { opacity: .55; transform: scale(1); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes arrowBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

@media (min-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.hero-inner { grid-template-columns: 1.08fr .92fr; }
	.down-arrow { justify-self: end; }
	.gallery-controls { flex-direction: row; justify-content: space-between; align-items: center; }
	.right-controls { justify-content: flex-end; }
	.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gallery-grid.compact,
	.models-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
	.gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gallery-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
	.wrap,
	.hero-inner { width: min(100% - 32px, 1280px); }
	.gallery-heading { flex-direction: column; align-items: flex-start; }
	.modal-arrow { display: none; }
	.modal-info-top { align-items: flex-start; flex-direction: column; }
	.gallery-controls { top: 10px; }
	.category-tabs button { padding: 7px 11px; font-size: 10px; }
}

@media (min-width: 640px) {
	#mobilePrev,
	#mobileNext { display: none; }
}
