/* Relentless Art Gallery — dark editorial, gold accent.
   Palette mirrors RelentlessAaron.net. */

.rag-root {
	--rag-black: #0a0a0a;
	--rag-charcoal: #111111;
	--rag-surface: #1a1a1a;
	--rag-border: #2a2a2a;
	--rag-gold: #c9a84c;
	--rag-gold-light: #e5c97a;
	--rag-offwhite: #d4d4cc;
	--rag-white: #f5f5f0;
	background: var(--rag-black);
	color: var(--rag-offwhite);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	margin: 0 calc(50% - 50vw);
	width: 100vw;
}

.rag-root *,
.rag-root *::before,
.rag-root *::after {
	box-sizing: border-box;
}

/* ── Hero ─────────────────────────────────────────────── */
.rag-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--rag-border);
}

.rag-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.rag-hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at center, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.82) 78%),
		linear-gradient(to top, var(--rag-black) 0%, transparent 32%);
}

.rag-hero-content {
	text-align: center;
	padding: 96px 24px;
	max-width: 860px;
}

.rag-eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--rag-gold);
	margin-bottom: 20px;
}

.rag-hero-title {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 1.04;
	color: var(--rag-white);
	margin: 0 0 22px;
}

.rag-hero-title span {
	display: inline-block;
	transform: translateY(0.55em);
	opacity: 0.001;
	animation: rag-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rag-hero-title span:nth-child(2) { animation-delay: 0.12s; }
.rag-hero-title span:nth-child(3) { animation-delay: 0.24s; }

@keyframes rag-rise {
	to { transform: translateY(0); opacity: 1; }
}

.rag-hero-sub {
	font-size: 17px;
	line-height: 1.65;
	color: rgba(212, 212, 204, 0.78);
	max-width: 560px;
	margin: 0 auto 34px;
}

/* ── CTA (bespoke, gold) ──────────────────────────────── */
.rag-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 30px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rag-cta-gold {
	background: var(--rag-gold);
	color: var(--rag-black);
}

.rag-cta-gold:hover {
	background: var(--rag-gold-light);
	color: var(--rag-black);
	box-shadow: 0 0 34px rgba(201, 168, 76, 0.35);
	transform: translateY(-2px);
}

.rag-cta-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.rag-cta:hover .rag-cta-arrow {
	transform: translateX(5px);
}

/* ── Grid ─────────────────────────────────────────────── */
.rag-grid-wrap {
	padding: 72px clamp(20px, 5vw, 64px) 96px;
	background: var(--rag-charcoal);
}

.rag-empty {
	text-align: center;
	font-style: italic;
	color: rgba(212, 212, 204, 0.6);
}

.rag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 26px;
	max-width: 1280px;
	margin: 0 auto;
}

.rag-tile {
	appearance: none;
	border: 1px solid var(--rag-border);
	background: var(--rag-surface);
	padding: 0;
	text-align: left;
	cursor: pointer;
	display: block;
	transform-style: preserve-3d;
	will-change: transform;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rag-tile:hover,
.rag-tile:focus-visible {
	border-color: rgba(201, 168, 76, 0.55);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(201, 168, 76, 0.12);
	outline: none;
}

.rag-tile-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--rag-black);
}

.rag-tile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rag-tile:hover .rag-tile-media img {
	transform: scale(1.05);
}

.rag-tile-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 18px;
}

.rag-tile-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 19px;
	color: var(--rag-white);
}

.rag-tile-price {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--rag-gold);
	white-space: nowrap;
}

/* ── Modal ────────────────────────────────────────────── */
.rag-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rag-modal[hidden] {
	display: none;
}

.rag-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 5, 0.88);
	backdrop-filter: blur(6px);
}

.rag-modal-card {
	position: relative;
	background: var(--rag-surface);
	border: 1px solid var(--rag-border);
	max-width: 1000px;
	width: 100%;
	max-height: 92vh;
	overflow: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

@media (max-width: 780px) {
	.rag-modal-card {
		grid-template-columns: 1fr;
	}
}

.rag-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
	appearance: none;
	background: none;
	border: none;
	color: var(--rag-offwhite);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.rag-modal-close:hover {
	color: var(--rag-gold-light);
	transform: rotate(90deg);
}

.rag-modal-preview {
	background: var(--rag-black);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.rag-mockup {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.rag-mockup img.rag-mockup-bg {
	width: 100%;
	display: block;
}

.rag-mockup img.rag-mockup-art {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	pointer-events: none;
}

.rag-modal-info {
	padding: 40px 34px 34px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rag-modal-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 32px;
	color: var(--rag-white);
	margin: 0;
}

.rag-modal-desc {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(212, 212, 204, 0.75);
	margin: 0;
}

.rag-format-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rag-format-tab {
	appearance: none;
	background: transparent;
	border: 1px solid var(--rag-border);
	color: var(--rag-offwhite);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 9px 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rag-format-tab:hover {
	border-color: rgba(201, 168, 76, 0.6);
	color: var(--rag-gold-light);
}

.rag-format-tab.is-active {
	background: var(--rag-gold);
	border-color: var(--rag-gold);
	color: var(--rag-black);
}

.rag-format-room {
	display: block;
	width: 100%;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(201, 168, 76, 0.7);
}

.rag-modal-buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 6px;
	padding-top: 20px;
	border-top: 1px solid var(--rag-border);
}

.rag-modal-price {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	color: var(--rag-gold);
}

.rag-modal-note {
	font-size: 12px;
	color: rgba(212, 212, 204, 0.5);
	margin: 0;
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.rag-hero-video {
		display: none;
	}

	.rag-hero {
		background: url("img/hero-poster.jpg") center / cover no-repeat;
	}

	.rag-hero-title span {
		animation: none;
		transform: none;
		opacity: 1;
	}

	.rag-tile,
	.rag-tile-media img,
	.rag-cta {
		transition: none;
	}
}
