@font-face {
	font-family: 'Futura-Light';
	src: url('../fonts/futura_light-webfont.woff2') format('woff2'),
	     url('../fonts/futura_light-webfont.woff') format('woff'),
	     url('../fonts/futura_light-webfont.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Futura-Book';
	src: url('../fonts/futura_book-webfont.woff') format('woff'),
	     url('../fonts/futura_book-webfont.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #060606;
	--ink: #f3f1ec;
	--muted: #8d8d8a;
	--rule: rgba(243, 241, 236, 0.14);
	--display: 'Futura-Light', 'Futura Light', Futura, 'Century Gothic', sans-serif;
	--body: 'Futura-Book', 'Futura', 'Century Gothic', sans-serif;
	--pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
}

html {
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
}

body {
	font-family: var(--body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---- identity strip ---- */

.identity {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: clamp(18px, 3vw, 32px) var(--pad);
	font-family: var(--display);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	z-index: 40;
	pointer-events: none;
	mix-blend-mode: difference;
}

.identity span { color: var(--ink); }
.identity .sub { color: var(--muted); }

/* ---- hero ---- */

.hero {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: var(--pad);
	position: relative;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.hero h1 {
	font-family: var(--display);
	font-weight: 300;
	font-size: clamp(2.4rem, 7vw, 6.2rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
	max-width: 16ch;
	text-wrap: balance;
}

.hero p {
	max-width: 46ch;
	font-size: clamp(0.95rem, 1.1vw + 0.55rem, 1.15rem);
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

.scroll-cue {
	position: absolute;
	left: var(--pad);
	bottom: clamp(20px, 4vh, 40px);
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.scroll-cue .line {
	width: 1px;
	height: 34px;
	background: var(--rule);
	position: relative;
	overflow: hidden;
}

.scroll-cue .line::after {
	content: '';
	position: absolute;
	left: 0; top: -100%;
	width: 100%; height: 100%;
	background: var(--ink);
	animation: cue-fall 1.8s ease-in-out infinite;
}

@keyframes cue-fall {
	0% { top: -100%; }
	60%, 100% { top: 100%; }
}

/* ---- plates ---- */

.plate {
	min-height: 100svh;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	justify-items: center;
	padding: clamp(80px, 12vh, 140px) var(--pad) clamp(64px, 10vh, 96px);
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--rule);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.plate-figure {
	width: 100%;
	display: flex;
	justify-content: center;
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 900ms cubic-bezier(.22,.61,.36,1), transform 900ms cubic-bezier(.22,.61,.36,1);
	will-change: opacity, transform;
}

.plate.is-visible .plate-figure {
	opacity: 1;
	transform: translateY(0);
}

.plate img {
	display: block;
	max-width: 100%;
	max-height: 78svh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.plate--wide img {
	max-height: 62svh;
}

.plate-caption {
	position: absolute;
	left: var(--pad);
	bottom: clamp(28px, 6vh, 56px);
	max-width: 42ch;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 700ms ease 120ms, transform 700ms ease 120ms;
}

.plate.is-visible .plate-caption {
	opacity: 1;
	transform: translateY(0);
}

.plate-kicker {
	display: block;
	font-family: var(--display);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent, var(--muted));
	margin-bottom: 0.6em;
	white-space: nowrap;
}

.plate-name {
	display: block;
	font-family: var(--display);
	font-weight: 300;
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.plate-index {
	position: absolute;
	right: var(--pad);
	bottom: clamp(28px, 6vh, 56px);
	font-family: var(--display);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	opacity: 0;
	transition: opacity 700ms ease 200ms;
}

.plate.is-visible .plate-index {
	opacity: 1;
}

/* ---- footer ---- */

.site-footer {
	border-top: 1px solid var(--rule);
	padding: clamp(48px, 8vh, 88px) var(--pad);
	text-align: center;
	font-family: var(--display);
	scroll-snap-align: start;
}

.site-footer .mark {
	font-size: 1rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 1.4em;
}

.site-footer address {
	font-style: normal;
	color: var(--muted);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	line-height: 1.9;
	margin-bottom: 2em;
}

.site-footer address a:hover { color: var(--ink); }

.site-footer .credit {
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
}

.corporate-link {
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.corporate-link:hover { color: var(--ink); }

/* ---- corporate modal ---- */

#corporate-modal {
	border: none;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	opacity: 0;
	transition: opacity 320ms ease;
}

#corporate-modal[open] {
	position: fixed;
	inset: 0;
	margin: 0;
}

#corporate-modal.is-open { opacity: 1; }

#corporate-modal::backdrop {
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 320ms ease;
}

#corporate-modal.is-open::backdrop { opacity: 1; }

#corporateFrame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	width: 36px;
	height: 36px;
	border: 1px solid var(--rule);
	background: var(--bg);
	color: var(--ink);
	font-family: var(--display);
	font-size: 0.9rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	#corporate-modal,
	#corporate-modal::backdrop {
		transition: none;
	}
}

.to-top {
	position: fixed;
	right: clamp(16px, 3vw, 28px);
	bottom: clamp(16px, 3vw, 28px);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background: var(--bg);
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-family: var(--display);
	font-size: 1.1rem;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease, border-color 150ms ease;
	z-index: 60;
}

.to-top.show {
	opacity: 0.7;
	pointer-events: auto;
}

.to-top:hover {
	opacity: 1;
	border-color: var(--ink);
}

@media (max-width: 640px) {
	.identity { font-size: 0.7rem; }
	.plate-index { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.plate-figure,
	.plate-caption,
	.plate-index {
		transition: none;
		opacity: 1;
		transform: none;
	}
	.scroll-cue .line::after { animation: none; display: none; }
	.to-top { transition: none; }
}
