:root {
	--ink: #0b1210;
	--ink-soft: #121a17;
	--forest: #163026;
	--moss: #6b8f71;
	--mist: #c5d0c4;
	--ivory: #f2eee6;
	--washi: rgba(242, 238, 230, 0.78);
	--gold: #c4a574;
	--line: rgba(242, 238, 230, 0.18);
	--shadow: rgba(0, 0, 0, 0.45);

	--font-display: "Cormorant Garamond", "Times New Roman", serif;
	--font-body: "Zen Kaku Gothic New", "Helvetica Neue", sans-serif;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 4.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video {
	max-width: 100%;
	display: block;
}

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--ivory);
	color: var(--ink);
}

/* ——— Header ——— */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	padding: 1.25rem 1.5rem;
	transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
	background: rgba(11, 18, 16, 0.72);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	letter-spacing: 0.04em;
}

.brand__mark {
	display: grid;
	place-items: center;
	color: var(--moss);
}

.brand__text {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.site-nav__link {
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.86;
	transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.site-nav__link:hover {
	opacity: 1;
	color: var(--gold);
}

.menu-toggle {
	width: 2rem;
	height: 1.25rem;
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0.15rem 0;
}

.menu-toggle__line {
	display: block;
	height: 1px;
	width: 100%;
	background: var(--ivory);
	transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
	transform: translateY(0.45rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child {
	transform: translateY(-0.45rem) rotate(-45deg);
}

.site-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(11, 18, 16, 0.94);
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s var(--ease);
}

.site-menu.is-open {
	opacity: 1;
	pointer-events: auto;
}

.site-menu__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}

.site-menu__panel a {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 8vw, 4.5rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	transition: color 0.25s var(--ease);
}

.site-menu__panel a:hover {
	color: var(--gold);
}

/* ——— Hero (Bloom-like) ——— */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__video,
.hero__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	animation: kenburns 28s var(--ease) infinite alternate;
}

.hero__video {
	position: absolute;
	inset: 0;
}

.hero__fallback {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 18, 16, 0.35) 0%, rgba(11, 18, 16, 0.2) 35%, rgba(11, 18, 16, 0.72) 72%, rgba(11, 18, 16, 0.92) 100%),
		radial-gradient(ellipse at 70% 20%, rgba(107, 143, 113, 0.18), transparent 55%);
}

.hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	pointer-events: none;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem 5.5rem;
	display: grid;
	gap: 2rem;
	align-items: end;
}

@media (min-width: 900px) {
	.hero__content {
		grid-template-columns: 1.4fr 1fr;
		padding-bottom: 4.5rem;
	}

	.hero__actions {
		justify-self: end;
	}
}

.hero__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mist);
}

.hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(3.6rem, 12vw, 7.5rem);
	font-weight: 600;
	line-height: 0.92;
	letter-spacing: 0.02em;
}

.hero__lede {
	margin: 1.1rem 0 0;
	max-width: 28rem;
	font-size: 1.02rem;
	font-weight: 300;
	color: var(--washi);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.4rem;
	border: 1px solid var(--line);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--ghost {
	background: transparent;
	color: var(--ivory);
}

.btn--ghost:hover {
	border-color: var(--ivory);
	background: rgba(242, 238, 230, 0.08);
}

.btn--solid {
	background: var(--ivory);
	color: var(--ink);
	border-color: var(--ivory);
}

.btn--solid:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.4rem;
	z-index: 2;
	transform: translateX(-50%);
}

.hero__scroll span {
	display: block;
	width: 1px;
	height: 42px;
	background: linear-gradient(to bottom, transparent, var(--ivory));
	animation: scrollPulse 2.4s var(--ease) infinite;
}

/* ——— Atmosphere ——— */
.atmosphere,
.invite {
	position: relative;
	padding: 6rem 1.5rem;
	background:
		radial-gradient(ellipse at top, rgba(22, 48, 38, 0.55), transparent 55%),
		var(--ink);
}

.atmosphere__intro,
.invite__panel {
	max-width: 720px;
	margin: 0 auto 3rem;
	text-align: center;
}

.section-kicker {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold);
}

.section-title,
.invite__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	font-weight: 500;
	line-height: 1.1;
}

.section-lede {
	margin: 1rem auto 0;
	max-width: 34rem;
	color: var(--mist);
	font-weight: 300;
}

.atmosphere__grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.atmosphere__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

.atmosphere__frame {
	margin: 0;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--forest);
}

.atmosphere__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
	filter: saturate(0.9) contrast(1.05);
}

.atmosphere__frame:hover img {
	transform: scale(1.05);
}

.atmosphere__frame figcaption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 16px var(--shadow);
}

.invite__panel {
	margin-bottom: 0;
	padding: 3.5rem 1.5rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.invite__title {
	margin-bottom: 1.75rem;
}

/* ——— Generic pages ——— */
.page-shell {
	min-height: 100vh;
	padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
	max-width: 880px;
	margin: 0 auto;
}

.page-shell__title {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 7vw, 3.8rem);
	font-weight: 500;
	margin: 0 0 1.5rem;
}

.page-shell__content {
	color: var(--mist);
	font-weight: 300;
}

.page-shell__content a {
	color: var(--gold);
}

/* ——— Chat template ——— */
body.is-chat-page {
	background: var(--ink);
	overflow: hidden;
}

.chat-chrome {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr;
}

.chat-chrome__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.95rem 1.25rem;
	border-bottom: 1px solid var(--line);
	background: rgba(11, 18, 16, 0.92);
	backdrop-filter: blur(10px);
}

.chat-chrome__back {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.8;
}

.chat-chrome__back:hover {
	opacity: 1;
	color: var(--gold);
}

.chat-stage {
	min-height: 0;
	position: relative;
}

.chat-stage__mount {
	height: 100%;
	min-height: calc(100vh - 3.6rem);
	min-height: calc(100dvh - 3.6rem);
}

.chat-placeholder {
	position: relative;
	height: 100%;
	min-height: inherit;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.chat-placeholder__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.chat-placeholder__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.35) saturate(0.85);
}

.chat-placeholder__card {
	position: relative;
	z-index: 1;
	max-width: 28rem;
	margin: 1.5rem;
	text-align: center;
}

.chat-placeholder__card h1 {
	margin: 0 0 0.85rem;
	font-family: var(--font-display);
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 500;
}

.chat-placeholder__card p:last-child {
	margin: 0;
	color: var(--mist);
	font-weight: 300;
}

/* ——— Footer ——— */
.site-footer {
	padding: 2.5rem 1.5rem 3rem;
	border-top: 1px solid var(--line);
	background: var(--ink-soft);
}

.site-footer__inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	align-items: baseline;
	justify-content: space-between;
}

.site-footer__brand {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	letter-spacing: 0.06em;
}

.site-footer__note {
	margin: 0;
	color: var(--mist);
	font-size: 0.9rem;
	font-weight: 300;
}

body.is-landing .site-footer {
	display: none;
}

body.is-chat-page .site-header,
body.is-chat-page .site-footer {
	display: none;
}

/* ——— Motion / reveal ——— */
[data-reveal],
[data-reveal-item],
[data-reveal-section] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible,
[data-reveal-item].is-visible,
[data-reveal-section].is-visible {
	opacity: 1;
	transform: none;
}

[data-reveal="hero-actions"] {
	transition-delay: 0.15s;
}

[data-reveal="scroll"] {
	transition-delay: 0.35s;
}

.atmosphere__frame:nth-child(2) {
	transition-delay: 0.08s;
}

.atmosphere__frame:nth-child(3) {
	transition-delay: 0.16s;
}

.atmosphere__frame:nth-child(4) {
	transition-delay: 0.24s;
}

@keyframes kenburns {
	from {
		transform: scale(1.06) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.14) translate3d(-1.5%, -1%, 0);
	}
}

@keyframes scrollPulse {
	0%,
	100% {
		opacity: 0.25;
		transform: scaleY(0.7);
		transform-origin: top;
	}
	50% {
		opacity: 1;
		transform: scaleY(1);
		transform-origin: top;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero__video,
	.hero__fallback,
	.hero__scroll span,
	[data-reveal],
	[data-reveal-item],
	[data-reveal-section],
	.atmosphere__frame img {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
