@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

:root {
	--bg-dark: #2c2c2c;
	--bg-beige: #fdfaf7;
	--bg-warm: #f5ede0;
	--brown: #6f4e37;
	--brown-lt: #a0896c;
	--text-dark: #2c2a26;
	--text-mid: #7a6e62;
	--text-soft: rgba(253, 250, 247, 0.78);
	--border: #e8e0d5;
	--serif: Georgia, "Times New Roman", serif;
	--sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	min-height: 100%;
	margin: 0;
}

html {
	overflow-x: hidden;
	overflow-y: auto;
}

body {
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--bg-dark);
	color: var(--text-dark);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}

body.light-mode {
	background: var(--bg-beige);
}

html.intro-lock,
body.intro-lock {
	overflow: hidden;
}

.intro-overlay {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-dark);
	transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-overlay.intro-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.intro-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(180deg, rgba(44, 42, 38, 0.42) 0%, rgba(44, 42, 38, 0.68) 100%),
		url('./bunohoq_intro_bg.webp');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.intro-bg.visible {
	opacity: 1;
}

.intro-text-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-family: var(--serif);
}

.text-clip {
	overflow: hidden;
	line-height: 1.15;
	padding: 0.18em 0;
}

.text-up,
.text-down {
	display: block;
	font-size: clamp(2.3rem, 6vw, 5rem);
	font-weight: 700;
	color: var(--brown);
	white-space: nowrap;
	visibility: hidden;
	will-change: transform;
	transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.text-up {
	transform: translateY(120%);
}

.text-down {
	transform: translateY(-120%);
}

.text-up.active,
.text-down.active {
	transform: translateY(0);
	visibility: visible;
}

.site-shell {
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.site-shell::before,
.site-shell::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.site-shell::before {
	background-image: url('./bunohoq_intro_bg.webp');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1.03);
	z-index: -2;
}

.site-shell::after {
	background:
		linear-gradient(90deg, rgba(253, 250, 247, 0.95) 0%, rgba(253, 250, 247, 0.82) 40%, rgba(253, 250, 247, 0.26) 72%, rgba(44, 42, 38, 0.14) 100%),
		linear-gradient(180deg, rgba(44, 42, 38, 0.06) 0%, rgba(44, 42, 38, 0.2) 100%);
	z-index: -1;
}

.site-shell.revealed {
	opacity: 1;
	transform: none;
}

.site-header,
.site-footer {
	width: min(1160px, calc(100% - 2rem));
	margin: 0 auto;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.35rem 0 0.75rem;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.brand-mark {
	display: inline-block;
	font-family: var(--serif);
	font-size: 1.35rem;
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--brown);
}

.brand-status,
.header-kicker {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brand-status {
	padding: 0.48rem 0.8rem;
	border-radius: 999px;
	background: rgba(253, 250, 247, 0.72);
	border: 1px solid rgba(111, 78, 55, 0.16);
	color: var(--brown);
}

.header-kicker {
	color: rgba(44, 42, 38, 0.72);
	text-align: right;
}

.hero-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 0 1.4rem;
}

.hero-panel {
	width: min(1160px, calc(100% - 2rem));
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: clamp(1.4rem, 4vw, 4rem);
	align-items: center;
	padding: clamp(1.3rem, 3vw, 2rem);
	border: 1px solid rgba(111, 78, 55, 0.12);
	border-radius: 20px;
	background: rgba(253, 250, 247, 0.68);
	box-shadow: 0 30px 80px rgba(111, 78, 55, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.section-label {
	display: block;
	margin-bottom: 0.95rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--brown-lt);
}

.section-title {
	margin: 0 0 1.2rem;
	font-family: var(--serif);
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1.05;
	color: var(--text-dark);
}

.message-stack {
	display: grid;
	gap: 0.85rem;
	max-width: 48ch;
}

.message-stack p {
	margin: 0;
	font-size: clamp(0.94rem, 1.25vw, 1.02rem);
	line-height: 1.75;
	color: var(--text-mid);
}

.message-stack .message-note {
	color: var(--brown);
	font-weight: 600;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-box {
	position: relative;
	width: min(100%, 360px);
	aspect-ratio: 0.83;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: linear-gradient(145deg, rgba(232, 223, 208, 0.78) 0%, rgba(214, 202, 187, 0.56) 100%);
	box-shadow: 0 22px 50px rgba(111, 78, 55, 0.16);
}

.hero-box::before {
	content: "";
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(111, 78, 55, 0.18);
	border-radius: 2px;
}

.hero-box::after {
	content: "";
	position: absolute;
	right: -12px;
	bottom: -12px;
	width: 60%;
	height: 40%;
	border-radius: 3px;
	background: rgba(245, 237, 224, 0.92);
	z-index: -1;
}

.hero-box-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-brand {
	display: inline-block;
	font-family: var(--serif);
	font-size: clamp(2.3rem, 4vw, 3.4rem);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(44, 42, 38, 0.48);
	text-transform: lowercase;
}

.site-footer {
	padding: 0.4rem 0 1.3rem;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.2rem;
	border-radius: 16px;
	background: rgba(35, 31, 26, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand,
.footer-copy {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 860px) {
	.site-header {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 1rem;
		gap: 0.65rem;
	}

	.header-kicker {
		text-align: left;
	}

	.hero-panel {
		grid-template-columns: 1fr;
		gap: 1.4rem;
		padding: 1.15rem;
	}

	.hero-visual {
		order: -1;
	}

	.hero-box {
		width: min(100%, 300px);
	}

	.message-stack {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.site-header,
	.site-footer,
	.hero-panel {
		width: min(100% - 1rem, 100% - 1rem);
	}

	.brand-lockup {
		width: 100%;
		justify-content: space-between;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.brand-mark {
		font-size: 1.15rem;
	}

	.brand-status {
		margin-left: auto;
		text-align: right;
	}

	.brand-status,
	.header-kicker,
	.footer-brand,
	.footer-copy {
		font-size: 0.66rem;
	}

	.header-kicker {
		display: none;
	}

	.hero-stage {
		align-items: flex-start;
		padding-top: 0.35rem;
	}

	.hero-panel {
		display: block;
		padding-top: 1rem;
	}

	.hero-visual {
		display: none;
	}

	.hero-copy {
		padding-top: 0;
	}

	.section-title {
		font-size: clamp(1.7rem, 8vw, 2.6rem);
	}

	.message-stack {
		gap: 0.72rem;
	}

	.message-stack p {
		line-height: 1.62;
		font-size: 0.92rem;
	}

	.hero-box {
		width: min(100%, 240px);
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-height: 760px) {
	.site-header {
		padding-top: 0.8rem;
	}

	.hero-stage {
		padding: 0.4rem 0 0.8rem;
	}

	.hero-panel {
		gap: 1rem;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	.message-stack {
		gap: 0.65rem;
	}

	.message-stack p {
		line-height: 1.52;
		font-size: 0.89rem;
	}

	.hero-box {
		width: min(100%, 220px);
	}

	.site-footer {
		padding-bottom: 0.8rem;
	}
}
