/* ─────────────────────────────────────────────────────
   Page shell — fixed full viewport, no scroll
   ───────────────────────────────────────────────────── */
.page {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   Site header — logo only (toggle lives in content column)
   ───────────────────────────────────────────────────── */
.site-header {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: var(--space-md) var(--space-lg);
	z-index: 10;
	flex-shrink: 0;
}

.logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--c-accent);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-weight: 900;
	font-size: 11px;
	line-height: 1.05;
	text-align: center;
	letter-spacing: -0.01em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.logo:hover {
	transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────
   Main grid — content left, hero right
   ───────────────────────────────────────────────────── */
.layout {
	flex: 1;
	display: grid;
	grid-template-areas: "content hero";
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	position: relative;
	overflow: hidden;
	min-height: 0;
}

/* ─────────────────────────────────────────────────────
   Left column — content
   ───────────────────────────────────────────────────── */
.content {
	grid-area: content;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-md) var(--space-xl) var(--space-xl);
	gap: var(--space-md);
	z-index: 2;
	min-width: 0;
}

.title {
	font-weight: 900;
	font-size: clamp(3rem, 7.5vw, 7.5rem);
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: var(--c-accent);
	margin: 0;
	animation: rise 0.5s ease-out 0.1s both;
}

.title__line {
	display: block;
}

.subtitle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-md);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--c-fg);
	margin-top: var(--space-sm);
	animation: rise 0.5s ease-out 0.2s both;
}

.subtitle::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background-color: var(--c-accent);
}

.tagline {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	font-weight: 400;
	color: var(--c-muted);
	line-height: 1.5;
	max-width: 32ch;
	animation: rise 0.5s ease-out 0.3s both;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	margin: var(--space-md) 0 0;
	padding: 0;
	animation: rise 0.5s ease-out 0.4s both;
}

.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--c-surface);
	border: 1px solid var(--c-border);
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
}

.social__link img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.social__link:hover,
.social__link:focus-visible {
	transform: translateY(-2px);
	background-color: var(--c-bg);
	border-color: var(--c-fg);
	outline: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ─────────────────────────────────────────────────────
   Right column — hero image (bottom-right anchor)
   ───────────────────────────────────────────────────── */
.hero {
	grid-area: hero;
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.hero__image {
	position: absolute;
	bottom: 0;
	right: 0;
	height: 100%;
	width: auto;
	max-width: 130%;
	object-fit: contain;
	object-position: bottom right;
	mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
	animation: heroRise 0.6s ease-out 0.1s both;
	pointer-events: none;
}

/* ─────────────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────────────── */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.title,
	.subtitle,
	.tagline,
	.social,
	.hero__image {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* ─────────────────────────────────────────────────────
   Mobile (≤ 768px) — hero on top, content below
   ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.site-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		justify-content: space-between;
		padding: var(--space-md);
	}

	.logo {
		width: 48px;
		height: 48px;
		font-size: 10px;
	}

	.layout {
		grid-template-areas:
			"hero"
			"content";
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		align-content: center;
		justify-items: center;
		gap: var(--space-lg);
		padding: var(--space-md);
	}

	.hero {
		display: block;
		overflow: visible;
	}

	.hero__image {
		position: static;
		width: 160px;
		height: 160px;
		max-width: 100%;
		border-radius: 50%;
		object-fit: cover;
		object-position: 50% 26%;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
		mask-image: none;
		-webkit-mask-image: none;
	}

	.content {
		padding: 0;
		gap: var(--space-sm);
		text-align: center;
		align-items: center;
		justify-content: center;
	}

	.title {
		font-size: clamp(2rem, 11vw, 3.5rem);
	}

	.subtitle {
		font-size: 0.8rem;
		letter-spacing: 0.2em;
		margin-top: 0;
	}

	.subtitle::before {
		width: 1.5rem;
	}

	.tagline {
		font-size: 0.95rem;
	}

	.social {
		margin-top: var(--space-sm);
		gap: var(--space-sm);
		justify-content: center;
	}

	.social__link {
		width: 44px;
		height: 44px;
	}

	.social__link img {
		width: 40px;
		height: 40px;
	}
}

/* ─────────────────────────────────────────────────────
   Short / wide screens (landscape mobile, small laptops)
   ───────────────────────────────────────────────────── */
@media (max-height: 600px) and (min-width: 769px) {
	.title {
		font-size: clamp(2.5rem, 6vw, 5rem);
	}

	.tagline {
		display: none;
	}
}
