:root {
	--page-bg: #ede5d8;
	--panel-bg: rgba(22, 18, 15, 0.55);
	--text-primary: #302a25;
	--text-secondary: rgba(48, 42, 37, 0.6);
	--hero-text: rgba(249, 245, 238, 0.96);
	--hero-muted: rgba(249, 245, 238, 0.72);
	--shadow-hero: 0 32px 64px rgba(30, 22, 14, 0.22);
	--accent: #c4a882;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	background: var(--page-bg);
	color: var(--text-primary);
	font-family: 'Poppins', sans-serif;
	letter-spacing: -0.04em;
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.landing-shell {
	min-height: 100dvh;
	padding: 1.4rem;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 1rem;
}

.hero-stage {
	min-height: 0;
}

.hero-frame {
	position: relative;
	height: 100%;
	min-height: calc(100dvh - 6.4rem);
	border-radius: 1.6rem;
	overflow: hidden;
	background: #2a2420;
	box-shadow: var(--shadow-hero);
	isolation: isolate;
}

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

.hero-media {
	background-image: var(--hero-image);
	background-size: cover;
	background-position: 30% 75%;
	filter: brightness(0.62) contrast(1.05) saturate(0.85);
}

.hero-overlay {
	background:
		linear-gradient(180deg, rgba(10, 8, 6, 0.08) 0%, rgba(10, 8, 6, 0.12) 35%, rgba(10, 8, 6, 0.6) 75%, rgba(10, 8, 6, 0.78) 100%);
}

.hero-top-row,
.hero-copy-panel {
	position: absolute;
	z-index: 1;
}

.hero-top-row {
	top: 1.9rem;
	left: 1.9rem;
	right: 1.9rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.8rem;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0;
	color: var(--hero-text);
}

.brand-logo {
	width: clamp(14rem, 18vw, 18rem);
	height: auto;
}

/* --- Contact popup card --- */

.contact-card {
	position: relative;
	width: min(16rem, 100%);
	padding: 1.4rem 1.4rem 1.3rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--panel-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	color: var(--hero-text);
	box-shadow: 0 20px 40px rgba(10, 8, 6, 0.28);
	transition: opacity 300ms ease, transform 300ms ease;
	text-align: center;
}

.contact-close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: rgba(249, 245, 238, 0.7);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-label {
	display: none;
}

.contact-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.04em;
}

.contact-text {
	margin: 0.45rem 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: rgba(249, 245, 238, 0.72);
}

.contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.6rem;
	border-radius: 0.35rem;
	background: #ecb13e;
	color: #1a1612;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --- Bottom text panel --- */

.hero-copy-panel {
	left: 1.95rem;
	bottom: 1.95rem;
	max-width: min(30rem, calc(100% - 3.9rem));
	color: var(--hero-text);
}

.hero-kicker {
	margin: 0 0 0.15rem;
	font-size: 0.92rem;
	font-weight: 300;
	font-style: italic;
	letter-spacing: -0.02em;
	color: rgba(249, 245, 238, 0.82);
}

.hero-title {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 300;
	font-style: italic;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: rgba(249, 245, 238, 0.6);
	max-width: 38rem;
}

.hero-description {
	margin: 0.6rem 0 0;
	max-width: 38rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	font-size: clamp(0.82rem, 1.1vw, 0.95rem);
	line-height: 1.45;
	text-align: justify;
	letter-spacing: -0.03em;
	color: rgba(249, 245, 238, 0.88);
}

/* --- Footer --- */

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 0.15rem;
	min-height: 2.8rem;
}

.footer-note {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 300;
	line-height: 1.4;
	color: var(--text-secondary);
}

.footer-links {
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
}

.footer-links a {
	position: relative;
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--text-secondary);
}

.footer-links a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.15rem;
	height: 1px;
	background: var(--accent);
	opacity: 0.45;
}

/* --- Animations --- */

body.is-ready .hero-frame,
body.is-ready .contact-card,
body.is-ready .hero-copy-panel,
body.is-ready .site-footer {
	animation: fade-up 680ms ease forwards;
}

body.is-ready .contact-card {
	animation-delay: 90ms;
}

body.is-ready .hero-copy-panel {
	animation-delay: 140ms;
}

body.is-ready .site-footer {
	animation-delay: 180ms;
}

.hero-frame,
.contact-card,
.hero-copy-panel,
.site-footer {
	opacity: 0;
	transform: translateY(12px);
}

@keyframes fade-up {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Responsive: Tablet --- */

@media (max-width: 920px) {
	body {
		overflow: auto;
	}

	.landing-shell {
		padding: 1rem;
		gap: 0.9rem;
	}

	.hero-frame {
		min-height: clamp(42rem, 88svh, 54rem);
	}

	.hero-media {
		background-position: 60% 50%;
	}

	.hero-top-row {
		flex-direction: column;
		align-items: stretch;
	}

	.contact-card {
		align-self: flex-end;
		width: min(15rem, 100%);
	}

	.hero-copy-panel {
		max-width: calc(100% - 2.8rem);
	}
}

/* --- Responsive: Mobile --- */

@media (max-width: 640px) {
	.hero-frame {
		min-height: calc(100dvh - 5.6rem);
		border-radius: 1.2rem;
	}

	.hero-media {
		background-position: 55% 45%;
	}

	.hero-top-row {
		top: 1rem;
		left: 1rem;
		right: 1rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.brand-logo {
		width: 12rem;
	}

	.contact-card {
		position: fixed;
		z-index: 10;
		top: 28%;
		left: 0;
		right: 0;
		width: calc(100vw - 3.6rem);
		max-width: 20rem;
		height: fit-content;
		margin: 0 auto;
		padding: 1.4rem;
		border-radius: 1.05rem;
	}

	.hero-copy-panel {
		left: 1.2rem;
		right: 1.2rem;
		bottom: 1rem;
		max-width: none;
	}

	.hero-kicker {
		font-size: 0.85rem;
	}

	.hero-title {
		font-size: 0.72rem;
		max-width: 88%;
	}

	.hero-description {
		font-size: 0.78rem;
		max-width: 92%;
		text-align: justify;
	}

	.site-footer {
		flex-direction: row;
		gap: 0.6rem;
		padding: 0 0.15rem 0.2rem;
	}

	.footer-note {
		font-size: 0.68rem;
	}

	.footer-links a {
		font-size: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-frame,
	.contact-card,
	.hero-copy-panel,
	.site-footer {
		opacity: 1;
		transform: none;
		animation: none;
	}
}
