/* ─── ROOT ───────────────────────────────────────────────── */
:root {
	--red: #f62500;
	--red-dk: #c01f00;
	--yellow: #ffcc00;
	--blue: #1c69d4;
	--blue-dk: #0a3d9c;
	--orange: #ff8000;
	--c0: #0d0d0d;
	--c1: #141416;
	--c2: #1c1c20;
	--c3: #252529;
	--c4: #303036;
	--cb: rgba(255, 255, 255, 0.07);
	--cb2: rgba(255, 255, 255, 0.13);
	--lt: #f4f4ef;
	--ltS: #ffffff;
	--text-sec: rgba(181, 175, 174, 0.89);
	--txm: #707070;
	--font: "Figtree", sans-serif;
	--gr: linear-gradient(135deg, var(--red), var(--red-dk));
	--radius: 12px;
	--radius-lg: 20px;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--t: 0.24s var(--ease);
	--focus-ring: 0 0 0 3px rgba(246, 37, 0, 0.6);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font);
	background: var(--c0);
	color: var(--lt);
	min-height: 100vh;
	overflow-x: hidden;
	font-size: 15px;
	line-height: 1.6;
	cursor: default;
}

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	background: var(--ltS);
	color: var(--c0);
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 13px;
	z-index: 9999;
	text-decoration: none;
	transition: top 0.2s;
}
.skip-link:focus {
	top: 1rem;
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

/* ─── FOCO GLOBAL (acessibilidade) ───────────────────────── */
:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Remove outline apenas quando não for teclado */
:focus:not(:focus-visible) {
	outline: none;
}

/* ─── NOISE ──────────────────────────────────────────────── */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	opacity: 0.3;
}

/* ─── ORBS ───────────────────────────────────────────────── */
.orb {
	position: fixed;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(90px);
}
.o1 {
	width: 600px;
	height: 600px;
	background: var(--red);
	top: -200px;
	right: -150px;
	opacity: 0.12;
}
.o2 {
	width: 500px;
	height: 500px;
	background: var(--blue);
	bottom: -100px;
	left: -150px;
	opacity: 0.11;
}
.o3 {
	width: 300px;
	height: 300px;
	background: var(--yellow);
	top: 50%;
	left: 40%;
	opacity: 0.06;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	height: 64px;
	background: rgba(13, 13, 13, 0.75);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--cb);
}
.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 16px;
	color: var(--ltS);
	letter-spacing: -0.01em;
	text-decoration: none;
	border-radius: 6px;
}
.nav-logo-img {
	width: 120px;
	height: 32px;
	object-fit: contain;
	display: flex;
}
.nav-logo-img.show {
	display: block;
}
.nav-logo-text.hide {
	display: none;
}

/* LOGO SLOT no nav */
.nav-logo-slot {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	position: relative;
}
.nav-logo-slot input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
}
.nav-wordmark {
	font-weight: 900;
	font-size: 15px;
	letter-spacing: -0.02em;
	color: var(--ltS);
}
.nav-wordmark em {
	font-style: normal;
	color: var(--red);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
}
.nav-link {
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-sec);
	text-decoration: none;
	transition: var(--t);
}
.nav-link:hover {
	color: var(--ltS);
	background: var(--cb);
}
.nav-link.active {
	color: var(--ltS);
	background: var(--cb2);
}
.nav-link:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}
.nav-cta {
	padding: 8px 18px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	background: var(--gr);
	color: #fff;
	text-decoration: none;
	transition: var(--t);
}
.nav-cta:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}
.nav-cta:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── PAGE WRAP ──────────────────────────────────────────── */
.page {
	position: relative;
	z-index: 1;
	padding-top: 64px;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
	padding: 90px 40px 70px;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.hero-left {
	max-width: 620px;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--cb);
	border: 1px solid var(--cb2);
	border-radius: 100px;
	padding: 5px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--text-sec);
	text-transform: uppercase;
	margin-bottom: 22px;
}
.hero-eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.7);
	}
}

.hero h1 {
	font-size: clamp(38px, 6vw, 64px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--ltS);
}
.hero h1 .line2 {
	display: block;
	background: var(--gr);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	padding-bottom: 10px;
}
.hero-sub {
	margin-top: 18px;
	font-size: 16px;
	color: var(--text-sec);
	max-width: 480px;
	line-height: 1.7;
}

.hero-stats {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	align-items: flex-end;
	padding-bottom: 4px;
}
.stat {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.stat-num {
	font-size: 38px;
	font-weight: 900;
	letter-spacing: -0.04em;
	color: var(--ltS);
	line-height: 1;
}
.stat-num span {
	color: var(--red);
}
.stat-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--txm);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	border-top: 1px solid var(--cb);
}

/* ─── FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 40px 28px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.filter-btn {
	padding: 8px 16px;
	border-radius: 100px;
	border: 1.5px solid var(--cb2);
	background: transparent;
	font-family: var(--font);
	font-size: 12px;
	font-weight: 700;
	color: var(--text-sec);
	cursor: pointer;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: var(--t);
}
.filter-btn:hover {
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--ltS);
}
.filter-btn.active {
	background: var(--gr);
	border-color: transparent;
	color: #fff;
}
.filter-btn:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── PROJECTS GRID ──────────────────────────────────────── */
.projects-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px 100px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ─── PROJECT CARD ───────────────────────────────────────── */
.proj-card {
	background: var(--c1);
	border: 1px solid var(--cb2);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition:
		border-color var(--t),
		transform var(--t);
	cursor: pointer;
}
.proj-card:hover {
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-4px);
}
.proj-card:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
	border-color: var(--red);
}
.proj-card.featured {
	grid-column: span 2;
}
.proj-card.hidden {
	display: none;
}

/* Card image area */
.proj-img {
	width: 100%;
	aspect-ratio: 16/9;
	background: var(--c2);
	position: relative;
	overflow: hidden;
}
.proj-card.featured .proj-img {
	aspect-ratio: 21/9;
}

.proj-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--txm);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.proj-img-placeholder svg {
	opacity: 0.3;
}

/*
 * Imagem ocupa 100% da largura do card.
 * JS adiciona .is-tall (imagem alta = scroll) ou .is-short (zoom).
 */
.proj-img img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center top;
	transition:
		object-position 0s,
		transform 0s;
}

/* ── Imagem ALTA: scroll do topo ao fundo ─────────────────── */
.proj-img.is-tall img {
	height: auto; /* altura natural, maior que o container */
	object-fit: unset;
	transform: translateY(0);
	transition: transform 3.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-card:hover .proj-img.is-tall img,
.proj-card:focus-visible .proj-img.is-tall img {
	transform: translateY(var(--scroll-dist, -60%));
}

/* ── Imagem CURTA: zoom suave ─────────────────────────────── */
.proj-img.is-short img {
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transform: scale(1);
	transform-origin: center top;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-card:hover .proj-img.is-short img,
.proj-card:focus-visible .proj-img.is-short img {
	transform: scale(1.06);
}

/* Status badge */
.proj-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.badge-live {
	background: rgba(62, 207, 142, 0.15);
	color: #3ecf8e;
	border: 1px solid rgba(62, 207, 142, 0.3);
}
.badge-dev {
	background: rgba(255, 204, 0, 0.12);
	color: var(--yellow);
	border: 1px solid rgba(255, 204, 0, 0.25);
}
.badge-done {
	background: rgba(255, 255, 255, 0.07);
	color: var(--text-sec);
	border: 1px solid var(--cb2);
}

/* Tech tags on image */
.proj-techs {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.tech-tag {
	padding: 3px 8px;
	border-radius: 5px;
	background: rgba(13, 13, 13, 0.75);
	backdrop-filter: blur(8px);
	font-size: 10px;
	font-weight: 700;
	color: var(--lt);
	letter-spacing: 0.03em;
	border: 1px solid var(--cb2);
}

/* Card body */
.proj-body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}
.proj-category {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
}
.proj-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ltS);
	letter-spacing: -0.02em;
	line-height: 1.25;
}
.proj-card.featured .proj-title {
	font-size: 22px;
}
.proj-client {
	font-size: 12px;
	color: var(--txm);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}
.proj-desc {
	font-size: 13px;
	color: var(--text-sec);
	line-height: 1.65;
	flex: 1;
}

/* Metrics strip */
.proj-metrics {
	display: flex;
	gap: 0;
	border-top: 1px solid var(--cb);
	margin-top: 4px;
	padding-top: 14px;
}
.metric {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-right: 1px solid var(--cb);
	padding: 0 12px;
}
.metric:first-child {
	padding-left: 0;
}
.metric:last-child {
	border-right: none;
	padding-right: 0;
}

.metric-val {
	font-size: 16px;
	font-weight: 800;
	color: var(--ltS);
	letter-spacing: -0.02em;
}
.metric-val.red {
	color: var(--red);
}
.metric-val.yellow {
	color: var(--yellow);
}
.metric-val.blue {
	color: var(--blue);
}

.metric-lbl {
	font-size: 10px;
	color: var(--txm);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Card footer */
.proj-footer {
	padding: 14px 24px;
	border-top: 1px solid var(--cb);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.proj-year {
	font-size: 12px;
	color: var(--txm);
	font-weight: 600;
}
.proj-arrow {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: 1.5px solid var(--cb2);
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--t);
	color: var(--text-sec);
	cursor: pointer;
	text-decoration: none;
}
.proj-card:hover .proj-arrow,
.proj-card:focus-visible .proj-arrow {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.proj-arrow:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── MODAL OVERLAY ──────────────────────────────────────── */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.modal {
	background: var(--c1);
	border: 1px solid var(--cb2);
	border-radius: var(--radius-lg);
	max-width: 680px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(20px) scale(0.97);
	transition: transform 0.3s var(--ease);
	position: relative;
}
.modal-overlay.open .modal {
	transform: translateY(0) scale(1);
}

/* Scrollbar do modal */
.modal::-webkit-scrollbar {
	width: 6px;
}
.modal::-webkit-scrollbar-track {
	background: transparent;
}
.modal::-webkit-scrollbar-thumb {
	background: var(--cb2);
	border-radius: 3px;
}

.modal-img {
	width: 100%;
	aspect-ratio: 16/8;
	background: var(--c2);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
	position: relative;
}
.modal-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.modal-img img.loaded {
	display: block;
}
.modal-img-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--txm);
	font-size: 12px;
	font-weight: 600;
	height: 100%;
}
.modal-img-placeholder svg {
	opacity: 0.25;
}

/* SLOT real de imagem do modal */
.modal-img-slot {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(13, 13, 13, 0.8);
	border: 1px solid var(--cb2);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 11px;
	font-weight: 600;
	color: var(--text-sec);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: var(--t);
}
.modal-img-slot:hover {
	color: var(--ltS);
	border-color: rgba(255, 255, 255, 0.25);
}
.modal-img-slot input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.modal-body {
	padding: 28px 32px 32px;
}
.modal-cat {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 8px;
}
.modal-title {
	font-size: 26px;
	font-weight: 900;
	color: var(--ltS);
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}
.modal-client {
	font-size: 13px;
	color: var(--txm);
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.modal-section {
	margin-bottom: 22px;
}
.modal-section h3 {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-sec);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.modal-section h3::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--cb);
}
.modal-desc {
	font-size: 14px;
	color: var(--text-sec);
	line-height: 1.7;
}

.modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.modal-tag {
	padding: 5px 11px;
	border-radius: 7px;
	background: var(--c2);
	border: 1px solid var(--cb2);
	font-size: 12px;
	font-weight: 600;
	color: var(--lt);
}

.modal-feats {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.modal-feat {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--text-sec);
	line-height: 1.5;
}
.modal-feat::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
	flex-shrink: 0;
	margin-top: 6px;
}

.modal-metrics-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.modal-metric {
	background: var(--c2);
	border: 1px solid var(--cb);
	border-radius: var(--radius);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.modal-metric .val {
	font-size: 22px;
	font-weight: 900;
	color: var(--ltS);
	letter-spacing: -0.02em;
}
.modal-metric .lbl {
	font-size: 11px;
	color: var(--txm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(13, 13, 13, 0.8);
	backdrop-filter: blur(6px);
	border: 1px solid var(--cb2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-sec);
	transition: var(--t);
}
.modal-close:hover {
	color: var(--ltS);
	background: var(--c3);
}
.modal-close:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
	color: var(--ltS);
}

.btn-modal-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--gr);
	color: #fff;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: var(--t);
	margin-top: 4px;
}
.btn-modal-cta:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}
.btn-modal-cta:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px 100px;
}
.cta-inner {
	background: var(--c1);
	border: 1px solid var(--cb2);
	border-radius: var(--radius-lg);
	padding: 56px 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	position: relative;
	overflow: hidden;
}
.cta-inner::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: var(--red);
	opacity: 0.07;
	filter: blur(60px);
	pointer-events: none;
}
.cta-text h2 {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 900;
	color: var(--ltS);
	letter-spacing: -0.02em;
}
.cta-text p {
	margin-top: 8px;
	font-size: 15px;
	color: var(--text-sec);
	max-width: 460px;
}
.btn-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 28px;
	border-radius: 12px;
	background: var(--gr);
	color: #fff;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: var(--t);
	white-space: nowrap;
	flex-shrink: 0;
}
.btn-cta-primary:hover {
	opacity: 0.87;
	transform: translateY(-2px);
}
.btn-cta-primary:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
	border-top: 1px solid var(--cb);
	padding: 28px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--txm);
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
	z-index: 1;
}
footer a {
	color: var(--text-sec);
	text-decoration: none;
	border-radius: 3px;
}
footer a:hover {
	color: var(--lt);
}
footer a:focus-visible {
	box-shadow: var(--focus-ring);
	outline: none;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.reveal {
	opacity: 0;
	animation: fadeUp 0.55s var(--ease) forwards;
}
.reveal.d1 {
	animation-delay: 0.08s;
}
.reveal.d2 {
	animation-delay: 0.16s;
}
.reveal.d3 {
	animation-delay: 0.24s;
}
.reveal.d4 {
	animation-delay: 0.32s;
}
.reveal.d5 {
	animation-delay: 0.4s;
}
.reveal.d6 {
	animation-delay: 0.48s;
}
.reveal.d7 {
	animation-delay: 0.56s;
}
.reveal.d8 {
	animation-delay: 0.64s;
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.reveal {
		opacity: 1;
		transform: none;
	}
	/* Desativa scroll e zoom das imagens */
	.proj-card:hover .proj-img.is-tall img,
	.proj-card:focus-visible .proj-img.is-tall img {
		transform: translateY(0) !important;
	}
	.proj-card:hover .proj-img.is-short img,
	.proj-card:focus-visible .proj-img.is-short img {
		transform: scale(1) !important;
	}
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
	grid-column: 1/-1;
	text-align: center;
	padding: 80px 20px;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.empty-state.show {
	display: flex;
}
.empty-state p {
	color: var(--text-sec);
	font-size: 14px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
	.projects-grid {
		grid-template-columns: 1fr 1fr;
	}
	.proj-card.featured {
		grid-column: span 1;
	}
}
@media (max-width: 640px) {
	nav {
		padding: 0 20px;
	}
	.hero {
		padding: 60px 20px 48px;
		flex-direction: column;
		align-items: flex-start;
	}
	.hero-stats {
		flex-direction: row;
		align-items: flex-start;
	}
	.stat {
		align-items: flex-start;
	}
	.filter-bar,
	.projects-grid,
	.cta-section,
	.divider {
		padding-left: 20px;
		padding-right: 20px;
	}
	.projects-grid {
		grid-template-columns: 1fr;
	}
	.proj-card.featured {
		grid-column: span 1;
	}
	.cta-inner {
		padding: 32px 24px;
	}
	.modal-body {
		padding: 20px 22px 24px;
	}
	.modal-metrics-row {
		grid-template-columns: 1fr 1fr;
	}
	.hero-sub {
		font-size: 14px;
	}
	footer {
		padding: 20px;
	}
}
