:root {
	--wine: #6b1f33;
	--wine-deep: #4d1524;
	--gold: #c9a382;
	--gold-deep: #a97e57;
	--paper: #faf4ef;
	--ink: #241318;
	--muted: #6d5a60;
	--surface: #ffffff;
	--line: #e9ddd6;
	--radius: 16px;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, sans-serif;
	--display: "Bricolage Grotesque", "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	font-family: var(--sans);
	background: var(--paper);
	color: var(--ink);
	line-height: 1.6;
	font-size: 1rem;
}

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 100;
	background: var(--wine); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
	outline: 3px solid var(--wine);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- topbar ---------- */
.topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	flex-wrap: wrap;
	padding: 18px clamp(20px, 5vw, 64px);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
.brand {
	font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
	color: var(--ink); text-decoration: none;
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
}
.brand-mark {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--wine); color: var(--gold);
	font-size: 1.1rem;
}
.brand-sub {
	font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
	padding: 10px 14px; border-radius: 999px; min-height: 44px;
	display: inline-flex; align-items: center;
}
.topbar nav a:hover { background: #f0e4dc; }

/* ---------- hero ---------- */
.hero {
	padding: clamp(56px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px);
	max-width: 1200px; margin: 0 auto; text-align: left;
}
.eyebrow {
	display: inline-block;
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--wine);
	border: 1px solid var(--wine); border-radius: 999px;
	padding: 6px 16px; margin-bottom: 22px;
}
.num-hero {
	font-family: var(--display); font-style: italic; font-weight: 800;
	color: var(--wine); letter-spacing: -0.02em;
}
.hero h1 {
	font-family: var(--serif); font-weight: 600;
	font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08;
	max-width: 20ch;
}
.hero h1 em {
	font-family: var(--display); font-style: italic; font-weight: 800;
	color: var(--wine);
}
.hero-sub {
	margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	color: var(--muted); max-width: 62ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.mini-link { margin-top: 14px; font-size: 0.88rem; }
.mini-link a { color: var(--muted); text-decoration: underline; }
.mini-link a:hover { color: var(--wine); }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 26px; border-radius: 999px;
	font-weight: 600; font-size: 1rem; text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(107, 31, 51, 0.28); }
.btn-ghost { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-ghost:hover { background: #f4e6de; }

/* ---------- sections ---------- */
.section {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
	max-width: 1200px; margin: 0 auto;
}
.section-wide { max-width: 1440px; }
.section-alt {
	max-width: none;
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1072px; margin-left: auto; margin-right: auto; }
.section-head h2 {
	font-family: var(--serif); font-weight: 600;
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.section-num {
	font-family: var(--display); font-style: italic; font-weight: 800;
	font-size: clamp(3rem, 8vw, 6rem); line-height: 0.8;
	color: var(--gold-deep); opacity: 0.32; margin-bottom: 2px;
}

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 8px; }
.chip {
	font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
	color: var(--ink); background: transparent;
	border: 1.5px solid var(--line); border-radius: 999px;
	padding: 10px 18px; min-height: 44px; cursor: pointer;
}
.chip:hover { border-color: var(--gold-deep); }
.chip.is-active { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- grid + cards ---------- */
.grid {
	list-style: none;
	display: grid; gap: 20px; margin-top: 24px;
	grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1300px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36, 19, 24, 0.12); }
.card[hidden] { display: none; }

.cover {
	position: relative;
	aspect-ratio: 1200 / 630;
	overflow: hidden;
	color: #fff;
}
.pill {
	position: absolute; left: 12px; bottom: 12px;
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
	background: rgba(0, 0, 0, 0.45); color: #fff;
	padding: 5px 12px; border-radius: 999px;
	backdrop-filter: blur(4px);
}

/* ---------- real share preview (thumbnail + og title/domain, tipo card de WhatsApp) ---------- */
.og-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-live {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; opacity: 0; pointer-events: none; background: #fff;
	transition: opacity 0.3s ease;
}
.card:hover .og-live, .card:focus-within .og-live { opacity: 1; }
.og-bar {
	padding: 12px 20px 2px;
	display: flex; flex-direction: column; gap: 3px;
	border-bottom: 1px solid var(--line);
}
.og-title { font-family: var(--sans); font-weight: 700; font-size: 0.86rem; color: var(--ink); line-height: 1.3; }
.og-domain { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* covers por projeto */
.c-samba { background: linear-gradient(135deg, #ff5a3c 0%, #0e7c66 100%); }
.c-lgx { background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%); }
.c-crm { background: linear-gradient(135deg, #10312b 0%, #2d6a4f 100%); }
.c-tm { background: linear-gradient(135deg, #4a2c17 0%, #d9a441 100%); }
.c-pipe { background: linear-gradient(135deg, #0f172a 0%, #47617e 100%); }
.c-cat { background: linear-gradient(135deg, #8a1538 0%, #c99700 100%); }
.c-bicho { background: linear-gradient(135deg, #e07b00 0%, #f6c445 100%); }
.c-charm { background: linear-gradient(135deg, #3d0a0a 0%, #a01212 100%); }
.c-glen { background: linear-gradient(135deg, #101010 0%, #3a3a3a 60%, #d02020 160%); }
.c-self { background: linear-gradient(135deg, var(--wine-deep) 0%, var(--gold) 130%); }

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.badge {
	display: inline-block; vertical-align: middle;
	font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--wine); background: #f4e2d9;
	padding: 3px 8px; border-radius: 999px; margin-left: 4px;
}
.card-body p { font-size: 0.92rem; color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
	font-size: 0.74rem; font-weight: 600; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line);
	padding: 4px 10px; border-radius: 999px;
}

.metric { font-size: 0.9rem; color: var(--ink); }
.metric strong { color: var(--wine); }

.card-link {
	margin-top: auto;
	color: var(--wine); font-weight: 600; font-size: 0.95rem; text-decoration: none;
	display: inline-flex; align-items: center; min-height: 44px;
}
.card-link:hover { text-decoration: underline; }
.card-links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.card-links .card-link { margin-top: 0; }
.card-link-secondary { color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.lock { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- método ---------- */
.steps {
	list-style: none;
	display: grid; gap: 20px; margin-top: 30px;
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 22px;
}
.steps .n {
	font-family: var(--serif); font-style: italic; font-size: 1.6rem;
	color: var(--gold-deep); display: block; margin-bottom: 6px;
}
.steps h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 6px; }
.steps p { font-size: 0.92rem; color: var(--muted); }

.a11y-note {
	margin-top: 28px; padding: 18px 22px;
	background: #f4e6de; border-left: 4px solid var(--wine); border-radius: 8px;
	font-size: 0.95rem;
}
.stack-strip { margin-top: 24px; }

/* ---------- editorial dark section (charmmone/glenlobo-inspired) ---------- */
.section-dark {
	max-width: none;
	background: var(--ink);
	color: var(--paper);
	border-top: 1px solid var(--wine-deep);
	border-bottom: 1px solid var(--wine-deep);
}
.section-dark > * { max-width: 1072px; margin-left: auto; margin-right: auto; }
.section-dark .section-num { color: var(--gold); opacity: 0.85; }
.section-dark .section-head h2 { color: var(--paper); }
.section-dark .section-head p { color: #cbb9be; }
.section-dark .steps li { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
.section-dark .steps .n { color: var(--gold); }
.section-dark .steps h3 { color: var(--paper); }
.section-dark .steps p { color: #cbb9be; }
.section-dark .a11y-note { background: rgba(201, 163, 130, 0.14); border-left-color: var(--gold); color: var(--paper); }
.section-dark .chips li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: var(--paper); }

/* ---------- footer ---------- */
.footer {
	padding: 32px clamp(20px, 5vw, 64px);
	text-align: center; color: var(--muted); font-size: 0.85rem;
	border-top: 1px solid var(--line);
}
