/* Nuevo Estadio Belvedere - landing inmersiva
   Paleta alineada al sitio Liverpool FC Uruguay
   Dials: VARIANCE 8 / MOTION 7 / DENSITY 3 */

:root {
	--blue: #002d80;
	--blue-deep: #001a4d;
	--blue-mid: #0a2048;
	--blue-bright: #2f6df5;
	--ink: #050a14;
	--paper: #f4f6fb;
	--muted: #9eb0c9;
	--accent: #f0a01a;
	--accent-soft: rgba(240, 160, 26, 0.85);
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--sans: "Barlow", system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--radius: 0;
	--z-progress: 40;
}

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

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Contenedor de scroll paso a paso */
.scroller {
	height: 100%;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
	.scroller {
		scroll-snap-type: y proximity;
	}
}

/* Pantallas paso a paso */
[data-snap] {
	box-sizing: border-box;
	height: 100%;
	height: 100dvh;
	min-height: 100dvh;
	max-height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: inherit;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ── Crest flotante (hero → esquina → cierre) ── */
.crest-fly {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 45;
	width: 160px;
	height: auto;
	margin: 0;
	pointer-events: none;
	transform-origin: 0% 0%;
	filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
	will-change: transform;
	opacity: 0;
	visibility: hidden;
}

.crest-fly.is-ready {
	opacity: 1;
	visibility: visible;
}

.crest-slot {
	flex-shrink: 0;
	pointer-events: none;
}

.crest-slot__mark {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
}

/* Oculta la marca estática solo cuando el escudo volador ya cubre ese slot */
.crest-slot.is-covered .crest-slot__mark {
	opacity: 0;
}

.crest-slot--hero {
	width: clamp(110px, 20vw, 180px);
	aspect-ratio: 1;
}

.crest-slot--corner {
	position: fixed;
	top: max(1rem, env(safe-area-inset-top, 0px) + 0.75rem);
	left: max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
	width: clamp(44px, 6vw, 56px);
	aspect-ratio: 1;
	z-index: 44;
}

.crest-slot--closing {
	width: 80px;
	aspect-ratio: 1;
	margin-bottom: 0.6rem;
}

/* ── Progress ── */
.progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: var(--z-progress);
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--blue-bright), var(--accent));
	transform-origin: left center;
}

/* ── Shared ── */
.bleed {
	width: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--ink);
}

.bleed img {
	width: 100%;
	height: auto;
	object-fit: cover;
	will-change: transform;
}

.bleed--tall img {
	width: 100%;
	height: min(100dvh, 900px);
	object-fit: cover;
	object-position: center;
}

.parallax-frame {
	position: relative;
	overflow: hidden;
}

.reveal {
	opacity: 0;
	transform: translateY(28px);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.9s var(--ease),
		transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* ── Hero fullscreen ── */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
	overflow: hidden;
	background: var(--blue-deep);
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	opacity: 0.48;
	filter: saturate(0.7) contrast(1.08) brightness(0.95);
}

.hero__wash {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 100% 70% at 50% 18%, rgba(0, 45, 128, 0.35), transparent 60%),
		radial-gradient(ellipse 55% 40% at 85% 95%, rgba(240, 160, 26, 0.08), transparent 50%),
		linear-gradient(
			165deg,
			rgba(0, 45, 128, 0.55) 0%,
			rgba(4, 10, 24, 0.45) 48%,
			rgba(2, 6, 15, 0.62) 100%
		);
}

.hero__wash::after {
	content: "";
	position: absolute;
	inset: 0;
	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)' opacity='0.45'/%3E%3C/svg%3E");
	opacity: 0.1;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.75rem;
	width: min(920px, 100%);
}

.hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.hero__club {
	margin: 0.65rem 0 0;
	font-family: var(--display);
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(3.4rem, 12vw, 8rem);
	font-weight: 800;
	font-style: italic;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--paper);
	padding-bottom: 0.12em;
}

.hero__title em {
	font-style: italic;
	color: var(--accent);
	font-weight: 800;
}

.hero__lead {
	margin: 0.4rem 0 0;
	max-width: 34ch;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.45;
	color: var(--muted);
}

.hero__tag {
	margin: 1.1rem 0 0;
	font-family: var(--display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--accent-soft);
}

/* ── Story overlays (empresas / inclusión) ── */
.story {
	position: relative;
	display: grid;
	place-items: center;
	isolation: isolate;
}

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

.story__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	will-change: transform;
}

.story__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.72) 40%, rgba(5, 10, 20, 0.94) 100%),
		linear-gradient(90deg, rgba(0, 26, 77, 0.55), transparent 60%);
	pointer-events: none;
}

.story__scrim--soft {
	background:
		linear-gradient(180deg, rgba(5, 10, 20, 0.35) 0%, rgba(5, 10, 20, 0.78) 55%, rgba(5, 10, 20, 0.96) 100%);
}

.story__content {
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	max-height: 100%;
	overflow: auto;
}

.story__content--narrow {
	width: min(720px, calc(100% - 2.5rem));
}

.story__content--mid {
	width: min(760px, calc(100% - 2.5rem));
}

.story__title {
	margin: 0 0 0.65rem;
	font-family: var(--display);
	font-size: clamp(2.6rem, 7vw, 5rem);
	font-weight: 800;
	font-style: italic;
	letter-spacing: -0.01em;
	line-height: 1.05;
	text-transform: uppercase;
	padding-bottom: 0.1em;
}

.story__lead {
	margin: 0;
	max-width: 40ch;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.5;
	color: var(--muted);
}

.story__list {
	margin-top: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.story__list li {
	position: relative;
	padding: 0.85rem 0 0.85rem 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	font-size: 1.08rem;
	line-height: 1.4;
	color: rgba(244, 246, 251, 0.92);
}

.story__list li:last-child {
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.story__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.2em;
	width: 5px;
	height: 5px;
	background: var(--accent);
}

.story--sustain .story__content {
	justify-self: start;
	margin-left: clamp(1.25rem, 6vw, 5rem);
	margin-right: auto;
}

@media (max-width: 767px) {
	.story--sustain .story__content {
		margin-left: auto;
		margin-right: auto;
		justify-self: center;
	}
}

/* Empresas layout: asymmetric, no 3 equal cards */
.empresas {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
	.empresas {
		grid-template-columns: 1.15fr 1fr;
		grid-template-areas:
			"invest timeline"
			"team timeline";
		align-items: end;
		column-gap: clamp(2rem, 5vw, 4rem);
	}

	.empresas__invest {
		grid-area: invest;
	}

	.empresas__team {
		grid-area: team;
	}

	.empresas__timeline {
		grid-area: timeline;
		align-self: stretch;
	}
}

.empresas__kicker {
	margin: 0 0 0.35rem;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.empresas__amount {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(4.5rem, 14vw, 9rem);
	font-weight: 800;
	font-style: italic;
	line-height: 0.95;
	letter-spacing: -0.03em;
	padding-bottom: 0.08em;
}

.empresas__h {
	margin: 0 0 0.75rem;
	font-family: var(--display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.1;
	padding-bottom: 0.08em;
}

.empresas__team p {
	margin: 0;
	max-width: 46ch;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(244, 246, 251, 0.88);
}

.empresas__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	border-left: 2px solid rgba(240, 160, 26, 0.55);
}

.empresas__timeline li {
	padding: 1.15rem 0 1.15rem 1.25rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.empresas__timeline li:last-child {
	border-bottom: 0;
}

.empresas__timeline strong {
	display: block;
	font-family: var(--display);
	font-size: 1.15rem;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.25rem;
}

.empresas__timeline span {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.4;
}

/* ── Descripción fullscreen ── */
.desc {
	position: relative;
	display: grid;
	place-items: center;
	isolation: isolate;
	background: var(--ink);
}

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

.desc__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	will-change: transform;
}

.desc__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(5, 10, 20, 0.5) 0%, rgba(5, 10, 20, 0.78) 45%, rgba(5, 10, 20, 0.94) 100%),
		linear-gradient(90deg, rgba(0, 26, 77, 0.45), transparent 55%);
	pointer-events: none;
}

.desc__content {
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) 0;
	max-height: 100%;
	overflow: auto;
}

.desc__head {
	margin: 0 0 1.5rem;
}

.desc__title {
	margin: 0 0 0.55rem;
	font-family: var(--display);
	font-size: clamp(2.4rem, 6.5vw, 4.5rem);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.05;
	padding-bottom: 0.1em;
}

.desc__lead {
	margin: 0;
	max-width: 42ch;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: var(--muted);
	line-height: 1.45;
}

.desc__metrics {
	margin: 0 0 1.75rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 1.25rem;
}

@media (min-width: 900px) {
	.desc__metrics {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.desc__metrics li {
	padding-top: 0.75rem;
	border-top: 2px solid var(--accent);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.desc__num {
	font-family: var(--display);
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	font-weight: 800;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -0.02em;
	padding-bottom: 0.06em;
}

.desc__lab {
	font-size: 0.9rem;
	color: var(--muted);
}

.desc__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 800px) {
	.desc__grid {
		grid-template-columns: 1.15fr 1fr;
	}
}

.desc__col h3 {
	margin: 0 0 0.75rem;
	font-family: var(--display);
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.1;
	padding-bottom: 0.08em;
}

.desc__col ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.desc__col li {
	position: relative;
	padding-left: 1rem;
	color: rgba(244, 246, 251, 0.88);
	font-size: 0.98rem;
	line-height: 1.4;
}

.desc__col li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 5px;
	height: 5px;
	background: var(--accent);
}

.desc__aside {
	margin: 1rem 0 0;
	font-family: var(--display);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* ── Triptych: tres exteriores + urbanismo ── */
.triptych {
	position: relative;
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 0.4rem;
	padding: 0.4rem;
	background: #060a14;
	box-sizing: border-box;
}

.triptych__cell {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: #0a1224;
	min-height: 0;
}

.triptych__cell--main {
	grid-row: 1 / -1;
	display: grid;
}

.triptych__cell--main > img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.triptych__cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	transition: transform 1.2s var(--ease);
}

.triptych__cell.is-in img {
	transform: scale(1);
}

.triptych__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: linear-gradient(
		160deg,
		rgba(4, 8, 18, 0.72) 0%,
		rgba(4, 8, 18, 0.8) 45%,
		rgba(0, 26, 77, 0.72) 100%
	);
	max-height: 100%;
	overflow: auto;
}

.triptych__title {
	margin: 0 0 0.65rem;
	font-family: var(--display);
	font-size: clamp(2.1rem, 4.2vw, 3.6rem);
	font-weight: 800;
	font-style: italic;
	letter-spacing: -0.01em;
	line-height: 1.08;
	text-transform: uppercase;
	padding-bottom: 0.1em;
	color: var(--paper);
}

.triptych__list {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.triptych__list li {
	position: relative;
	padding: 0.75rem 0 0.75rem 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	font-size: clamp(0.95rem, 1.4vw, 1.08rem);
	line-height: 1.4;
	color: rgba(244, 246, 251, 0.92);
}

.triptych__list li:last-child {
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.triptych__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.15em;
	width: 5px;
	height: 5px;
	background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
	.triptych__cell--top {
		transition-delay: 0.08s;
	}
	.triptych__cell--bot {
		transition-delay: 0.16s;
	}
}

@media (max-width: 767px) {
	.triptych {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr);
		gap: 0.3rem;
		padding: 0.3rem;
	}

	.triptych__cell--main {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.triptych__cell--top {
		grid-column: 1;
		grid-row: 2;
	}

	.triptych__cell--bot {
		grid-column: 2;
		grid-row: 2;
	}

	.triptych__overlay {
		justify-content: center;
		padding: 1.1rem 1.15rem;
		background: linear-gradient(
			160deg,
			rgba(4, 8, 18, 0.78) 0%,
			rgba(4, 8, 18, 0.85) 55%,
			rgba(0, 26, 77, 0.78) 100%
		);
	}

	.triptych__title {
		font-size: clamp(1.55rem, 6.5vw, 2rem);
		margin-bottom: 0.35rem;
	}

	.triptych__list {
		margin-top: 0.75rem;
	}

	.triptych__list li {
		padding: 0.5rem 0 0.5rem 0.9rem;
		font-size: 0.88rem;
		line-height: 1.35;
	}

	.triptych__list li::before {
		top: 0.95em;
	}
}

/* ── Pan horizontal ── */
.pan-wrap {
	position: relative;
	background: var(--ink);
	padding: 0;
}

.pan__track {
	display: flex;
	height: 100%;
	width: max-content;
	will-change: transform;
	transition: transform 0.75s var(--ease);
}

.pan__slide {
	flex: 0 0 100vw;
	width: 100vw;
	height: 100%;
	margin: 0;
}

.pan__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.pan__dots {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 0.5rem;
	pointer-events: none;
}

.pan__dot {
	width: 7px;
	height: 7px;
	border-radius: 0;
	background: rgba(244, 246, 251, 0.35);
	transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.pan__dot.is-active {
	background: var(--accent);
	transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
	.pan__track {
		transition: none;
	}
}

/* ── Closing fullscreen ── */
.closing {
	position: relative;
	display: grid;
	place-items: center;
	isolation: isolate;
}

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

.closing__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.closing__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(
		ellipse 70% 60% at 50% 45%,
		rgba(5, 10, 20, 0.55),
		rgba(5, 10, 20, 0.88)
	);
	pointer-events: none;
}

.closing__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
	padding: 2rem 1.25rem;
}

.closing__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.closing__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(2.4rem, 7vw, 4.8rem);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.05;
	padding-bottom: 0.1em;
}

.closing__sub {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.closing__tag {
	margin: 0.85rem 0 0;
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--accent);
}

.closing__founded {
	margin: 1.5rem 0 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.closing__link {
	margin-top: 0.75rem;
	text-decoration: none;
	border-bottom: 1px solid rgba(240, 160, 26, 0.45);
	padding-bottom: 2px;
	transition:
		color 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

.closing__link:hover,
.closing__link:focus-visible {
	color: var(--accent);
	border-color: var(--accent);
	outline: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	[data-snap] {
		scroll-snap-align: start;
	}
}
