/* ==========================================================================
   Manifesto — trava a tela, centralizado, escala de manchete, vídeo de fundo
   ========================================================================== */
.manifesto {
	position: relative;
	height: 200vh;
	background: var(--bg-navy);
}
.manifesto-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	overflow: clip;
	isolation: isolate;
}
.manifesto-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.manifesto-veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at center, rgba(2,6,24,0.62) 0%, rgba(2,6,24,0.9) 72%),
		linear-gradient(180deg, var(--bg-navy) 0%, rgba(2,6,24,0.55) 30%, rgba(2,6,24,0.55) 70%, var(--bg-navy) 100%);
}

.manifesto-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	padding-inline: var(--gutter);
	text-align: center;
}
.manifesto-eyebrow { margin-bottom: clamp(24px, 4vh, 44px); }

.manifesto-texto {
	font-family: var(--font-head);
	font-weight: 500;
	/* grande, mas contido: com 4 linhas curtas não estoura nem quebra feio */
	font-size: clamp(32px, 5.2vw, 82px);
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-transform: none;
	text-wrap: balance;
}
/* cada linha é um bloco: as quebras são as que eu defini, não do navegador */
.manifesto-linha { display: block; white-space: nowrap; }
.mw { display: inline-block; }

/* letra apagada -> acesa (acende uma a uma no scroll) */
.ml {
	color: rgba(241,243,249,0.15);
	transition: color 0.18s ease;
}
.ml.is-lit { color: var(--text-light); }
.ml.is-key { color: var(--gold-1); }

@media (prefers-reduced-motion: reduce) {
	.manifesto { height: auto; }
	.manifesto-pin { position: relative; height: auto; min-height: 80vh; padding-block: 120px; }
	.ml { color: var(--text-light); }
	.is-key-word .ml { color: var(--gold-1); }
}
@media (max-width: 900px) {
	.manifesto { height: 170vh; }
	.manifesto-texto { font-size: clamp(28px, 8.5vw, 48px); }
}

/* ==========================================================================
   Serviços — índice editorial (ref. floyka). Imagem preenche o card no hover.
   ========================================================================== */
.works { padding-block: clamp(90px, 11vw, 150px); }

.works-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: clamp(28px, 3vw, 44px);
}
.works-title {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(38px, 6vw, 88px);
	line-height: 0.98;
	letter-spacing: -0.03em;
}
.works-title .accent { color: var(--gold-1); }
.works-all {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	color: var(--text-light-80);
	padding-bottom: 12px;
	transition: color 0.3s ease, gap 0.3s ease;
}
.works-all .arrow { width: 12px; height: 12px; transform: rotate(-135deg); }
.works-all:hover { color: var(--gold-1); gap: 15px; }

.works-list { border-top: 1px solid rgba(255,255,255,0.14); }

/* --- linha --- */
.work-row {
	position: relative;
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr) 40px;
	gap: clamp(20px, 3vw, 48px);
	align-items: center;
	min-height: clamp(140px, 15vw, 210px);
	padding-block: clamp(22px, 2.4vw, 34px);
	border-bottom: 1px solid rgba(255,255,255,0.14);
	overflow: clip;
}
/* detalhe laranja: barra que entra pela esquerda no hover */
.work-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	z-index: 2;
	background: var(--gold-1);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-row:hover::before { transform: scaleY(1); }

/* imagem: camada de fundo da linha inteira, revelada a partir da direita.
   No repouso mostra só uma faixa à direita; no hover desliza e cobre tudo. */
.work-visual {
	position: absolute;
	inset: 0;
	z-index: 0;
	clip-path: inset(0 0 0 66%);
	transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
	filter: saturate(0.6) brightness(0.7);
	transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
/* scrim: escurece a imagem no lado do texto quando ela cobre a linha */
.work-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(2,6,24,0.9) 0%, rgba(2,6,24,0.55) 42%, rgba(2,6,24,0.15) 100%);
	opacity: 0;
	transition: opacity 0.6s ease;
}
.work-row:hover .work-visual { clip-path: inset(0 0 0 0); }
.work-row:hover .work-visual img { transform: scale(1); filter: saturate(1) brightness(0.92); }
.work-row:hover .work-visual::after { opacity: 1; }

.work-idx {
	position: relative;
	z-index: 1;
	align-self: start;
	padding-top: 6px;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--gold-1);
}

.work-info { position: relative; z-index: 1; }
.work-name {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(22px, 2.7vw, 40px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-row:hover .work-name { transform: translateX(14px); }

.work-meta {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-light-80);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-row:hover .work-meta { transform: translateX(14px); }
.work-year { color: var(--gold-1); text-transform: none; letter-spacing: 0; }

/* descrição: some por padrão, abre no hover (sobre a imagem) */
.work-desc {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	margin-top: 0;
	max-width: 56ch;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--text-light-90);
	transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.45s ease, margin-top 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-desc > * { overflow: hidden; }
.work-row:hover .work-desc {
	grid-template-rows: 1fr;
	opacity: 1;
	margin-top: 16px;
	transform: translateX(14px);
}

.work-cta {
	position: relative;
	z-index: 1;
	align-self: center;
	justify-self: end;
	width: 18px;
	height: 18px;
	opacity: 0.35;
	transition: opacity 0.4s ease, transform 0.5s ease;
}
.work-cta img { width: 100%; height: 100%; transform: rotate(-135deg); }
.work-row:hover .work-cta { opacity: 1; transform: translate(4px, -4px); }

@media (max-width: 900px) {
	.works-head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.work-row {
		grid-template-columns: 1fr;
		gap: 14px;
		min-height: 0;
		overflow: visible;
	}
	.work-idx, .work-cta { display: none; }
	/* no mobile a imagem fica sempre visível (sem hover) e a descrição também */
	.work-visual {
		position: relative;
		clip-path: none;
		aspect-ratio: 16 / 10;
		border-radius: var(--radius-md);
		order: -1;
		overflow: hidden;
	}
	.work-visual img { transform: none; filter: saturate(1) brightness(0.95); }
	.work-visual::after { display: none; }
	.work-row:hover .work-name,
	.work-row:hover .work-meta,
	.work-row:hover .work-desc { transform: none; }
	.work-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
}
