/* ==========================================================================
   HERIS — Design tokens (v2 — neo-brutalista)
   ========================================================================== */
:root {
	--blue: #0055FF;
	--blue-dim: #0044CC;
	--blue-soft: rgba(0, 85, 255, .12);
	--graphite: #161616;
	--graphite-soft: #202020;
	--graphite-line: rgba(242, 242, 242, .14);
	--ice: #F2F2F2;
	--ice-dim: #dedcd6;
	--ink: #161616;
	--ink-muted: #55585c;
	--fog: #a7aeb8;

	--font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

	--container: 1260px;
	--pad: clamp(20px, 5vw, 64px);
	--section-pad: clamp(72px, 11vw, 150px);
	--line: 3px;
	--shadow-blue: 9px 9px 0 var(--blue);
	--shadow-ink: 9px 9px 0 var(--ink);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ice);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.04;
}

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px; width: 1px;
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 9999;
	clip: auto; width: auto; height: auto;
	background: var(--blue); color: #fff; padding: 10px 18px; border: var(--line) solid var(--ink);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

/* Tag / label estilo carimbo — usada como "eyebrow" em toda a página */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--ice);
	border: 2px solid var(--ink);
	padding: 7px 14px 6px;
	margin: 0 0 22px;
}
.tag::before { content: ''; width: 7px; height: 7px; background: var(--blue); display: inline-block; }
.tag--light { color: var(--ice); background: var(--graphite); border-color: var(--ice); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 30px;
	border: var(--line) solid var(--ink);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	background: var(--ice);
	color: var(--ink);
	box-shadow: 6px 6px 0 var(--ink);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--blue); color: #fff; border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); background: var(--ice); }
.btn--block { width: 100%; padding: 18px 30px; }
.btn--nav { padding: 11px 20px; font-size: 13.5px; box-shadow: 4px 4px 0 var(--blue); }
.btn--nav:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: var(--graphite);
	border-bottom: var(--line) solid var(--blue);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 78px;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ice);
}
.site-logo__mark { width: 28px; height: 28px; color: var(--blue); }
.site-logo__mark svg { width: 100%; height: 100%; }
.site-logo__text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.01em;
}
.site-logo__text sup { color: var(--blue); font-size: 11px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list { display: flex; gap: 30px; }
.site-nav__list a {
	color: var(--ice);
	font-size: 14.5px;
	font-weight: 600;
	opacity: .85;
	transition: opacity .2s ease, color .2s ease;
	position: relative;
}
.site-nav__list a:hover { opacity: 1; color: var(--blue); }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
}
.menu-toggle span {
	display: block; height: 3px; width: 22px; background: var(--ice);
	transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
	.menu-toggle { display: flex; }
	.site-nav {
		position: fixed;
		top: 78px; left: 0; right: 0;
		background: var(--graphite);
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
		padding: 36px var(--pad) 44px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
		border-bottom: var(--line) solid var(--blue);
	}
	.site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
	.site-nav__list { flex-direction: column; gap: 22px; }
	.site-nav__list a { font-size: 20px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	background: var(--graphite);
	color: var(--ice);
	padding: 210px 0 150px;
	overflow: hidden;
	border-bottom: var(--line) solid var(--blue);
}
.hero__grid-texture {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(242,242,242,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242,242,242,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}
.hero__bridge {
	position: absolute; inset: 0;
	opacity: .55;
	pointer-events: none;
}
.hero__bridge svg { width: 100%; height: 100%; }
.bridge-pillar { stroke: var(--blue); stroke-width: 2; opacity: .4; }
.bridge-span { stroke: var(--blue); stroke-width: 2; fill: none; opacity: .6; }

.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__title {
	font-size: clamp(42px, 6.6vw, 76px);
	margin-bottom: 30px;
}
.hero__title span { color: var(--blue); }
.hero__lede {
	font-size: 19px;
	color: var(--fog);
	max-width: 540px;
	margin-bottom: 44px;
	border-left: var(--line) solid var(--blue);
	padding-left: 20px;
}
.hero__cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn { background: var(--graphite); color: var(--ice); border-color: var(--ice); box-shadow: 6px 6px 0 var(--blue); }
.hero .btn--primary { background: var(--blue); border-color: var(--ice); }
.hero .btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--blue); }

.hero__stamp {
	position: absolute;
	right: clamp(20px, 4vw, 60px);
	bottom: 28px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	color: var(--graphite);
	background: var(--blue);
	border: 2px solid var(--ice);
	padding: 6px 12px;
	transform: rotate(-4deg);
	z-index: 1;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Section head (shared)
   ========================================================================== */
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 20px; }
.section-head__lede { color: var(--ink-muted); font-size: 17px; max-width: 520px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.services .section-head__lede,
.services .tag { color: var(--fog); }

/* ==========================================================================
   Positioning / Sobre
   ========================================================================== */
.positioning { padding: var(--section-pad) 0; border-bottom: var(--line) solid var(--ink); }
.positioning__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 64px;
}
.positioning__head h2 { font-size: clamp(28px, 4vw, 42px); }
.positioning__body p { font-size: 18px; color: var(--ink-muted); margin-bottom: 30px; }
.positioning__quote {
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	color: var(--ink) !important;
	border: var(--line) solid var(--ink);
	background: var(--ice);
	box-shadow: var(--shadow-blue);
	padding: 26px 28px;
}
@media (max-width: 880px) {
	.positioning__grid { grid-template-columns: 1fr; gap: 36px; }
	.positioning__quote { box-shadow: 6px 6px 0 var(--blue); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: var(--section-pad) 0; background: var(--graphite); color: var(--ice); border-bottom: var(--line) solid var(--blue); }
.services__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 56px;
}
.services__item {
	position: relative;
	background: var(--graphite-soft);
	border: 2px solid var(--ice);
	padding: 40px 32px 36px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
	box-shadow: 7px 7px 0 var(--blue);
}
.services__item:hover { transform: translate(-4px, -4px); box-shadow: 11px 11px 0 var(--blue); }
.services__num {
	position: absolute;
	top: -6px; right: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 96px;
	color: rgba(242,242,242,.06);
	line-height: 1;
	pointer-events: none;
}
.services__item h3 { position: relative; font-size: 25px; margin-bottom: 14px; }
.services__item p { position: relative; color: var(--fog); font-size: 15.5px; }
.services__cta { text-align: center; }
@media (max-width: 880px) {
	.services__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Method
   ========================================================================== */
.method { padding: var(--section-pad) 0; border-bottom: var(--line) solid var(--ink); }
.method__timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border: 2px solid var(--ink);
}
.method__step {
	position: relative;
	padding: 32px 26px;
	border-right: 2px solid var(--ink);
}
.method__step:last-child { border-right: none; }
.method__marker {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 42px; height: 42px;
	background: var(--blue);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 22px;
}
.method__step h3 { font-size: 19px; margin-bottom: 10px; }
.method__step p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 880px) {
	.method__timeline { grid-template-columns: 1fr; }
	.method__step { border-right: none; border-bottom: 2px solid var(--ink); }
	.method__step:last-child { border-bottom: none; }
}

/* ==========================================================================
   Team — grid editorial assimétrica
   ========================================================================== */
.team { padding: var(--section-pad) 0; background: var(--ice); }
.team__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.team__card--2 { margin-top: 44px; }
.team__card--4 { margin-top: 44px; }
.team__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--graphite);
	border: 2px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 20px;
	overflow: hidden;
	transition: transform .25s ease;
}
.team__card:hover .team__photo { transform: translate(-4px, -4px); }
.team__photo span {
	font-family: var(--font-display);
	font-size: 74px;
	font-weight: 700;
	color: rgba(242,242,242,.14);
}
.team__photo-corner {
	position: absolute;
	top: 0; right: 0;
	width: 34px; height: 34px;
	background: var(--blue);
	clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.team__card h3 { font-size: 19px; margin-bottom: 3px; }
.team__role { color: var(--blue); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.team__bio { color: var(--ink-muted); font-size: 14.5px; }
@media (max-width: 980px) {
	.team__grid { grid-template-columns: repeat(2, 1fr); }
	.team__card--2, .team__card--4 { margin-top: 0; }
}
@media (max-width: 560px) {
	.team__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portfolio — carrossel único
   ========================================================================== */
.portfolio { padding: var(--section-pad) 0; border-top: var(--line) solid var(--ink); }
.portfolio__nav { display: flex; gap: 12px; }
.portfolio__arrow {
	width: 46px; height: 46px;
	border: 2px solid var(--ink);
	background: var(--ice);
	font-size: 18px;
	box-shadow: 4px 4px 0 var(--ink);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.portfolio__arrow:hover { background: var(--blue); color: #fff; transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.portfolio__carousel-wrap { overflow: hidden; margin-top: 8px; }
.portfolio__carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 8px 4px 28px;
	cursor: grab;
	scrollbar-width: none;
}
.portfolio__carousel:active { cursor: grabbing; }
.portfolio__carousel::-webkit-scrollbar { display: none; }

.portfolio__card {
	flex: 0 0 clamp(260px, 32vw, 360px);
	scroll-snap-align: start;
	background: var(--ice);
	border: 2px solid var(--ink);
	box-shadow: 7px 7px 0 var(--blue);
	padding: 22px;
	cursor: pointer;
	transition: transform .22s ease, box-shadow .22s ease;
}
.portfolio__card:hover { transform: translate(-4px, -4px); box-shadow: 11px 11px 0 var(--blue); }
.portfolio__thumb {
	background: var(--graphite);
	aspect-ratio: 4 / 3;
	display: flex; align-items: flex-end; justify-content: flex-start;
	margin-bottom: 18px;
	position: relative;
	overflow: hidden;
}
.portfolio__thumb-index {
	font-family: var(--font-display);
	color: rgba(242,242,242,.16);
	font-size: 54px;
	font-weight: 700;
	padding: 10px 16px;
	line-height: 1;
}
.portfolio__cat {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 10px;
}
.portfolio__card h3 { font-size: 18px; margin-bottom: 8px; }
.portfolio__card p { color: var(--ink-muted); font-size: 14px; }

.portfolio__progress { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.portfolio__dot { width: 10px; height: 10px; border: 2px solid var(--ink); background: transparent; transition: background .2s ease; }
.portfolio__dot.is-active { background: var(--blue); border-color: var(--blue); }

/* Modal */
.project-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.project-modal.is-open { display: block; }
.project-modal__backdrop { position: absolute; inset: 0; background: rgba(22,22,22,.78); }
.project-modal__box {
	position: relative;
	max-width: 640px;
	margin: 7vh auto;
	background: var(--ice);
	border: var(--line) solid var(--ink);
	box-shadow: 10px 10px 0 var(--blue);
	padding: 42px;
	max-height: 84vh;
	overflow-y: auto;
}
.project-modal__close {
	position: absolute; top: 14px; right: 16px;
	width: 34px; height: 34px;
	border: 2px solid var(--ink);
	font-size: 22px; line-height: 1; color: var(--ink);
	background: var(--ice);
}
.project-modal__close:hover { background: var(--blue); color: #fff; }
.project-modal__thumb {
	background: var(--graphite);
	aspect-ratio: 16/9;
	margin-bottom: 24px;
	border: 2px solid var(--ink);
}
.project-modal__cat { color: var(--blue); font-weight: 700; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.project-modal__box h3 { font-size: 25px; margin-bottom: 14px; }
.project-modal__desc { color: var(--ink-muted); }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto {
	position: relative;
	background: var(--graphite);
	color: var(--ice);
	padding: var(--section-pad) 0;
	overflow: hidden;
	text-align: center;
	border-top: var(--line) solid var(--blue);
	border-bottom: var(--line) solid var(--blue);
}
.manifesto__bridge { position: absolute; inset: 0; opacity: .65; }
.manifesto__bridge svg { width: 100%; height: 100%; }
.manifesto .dot { fill: var(--blue); }
.manifesto__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.manifesto__inner h2 { font-size: clamp(28px, 4.6vw, 46px); margin-bottom: 26px; }
.manifesto__inner p { color: var(--fog); font-size: 18px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: var(--section-pad) 0; }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.contact__head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 18px 0 20px; }
.contact__head p { color: var(--ink-muted); font-size: 16.5px; }
.contact__direct { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.contact__email { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--blue); }
.contact__whatsapp { font-size: 15px; color: var(--ink-muted); }
.contact__social { display: flex; gap: 20px; margin-top: 6px; }
.contact__social a { font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.contact__social a:hover { color: var(--blue); border-color: var(--blue); }

.contact__form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
.field input, .field textarea {
	border: 2px solid var(--ink);
	background: #fff;
	padding: 13px 16px;
	transition: box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); }
.contact__success {
	background: var(--blue-soft);
	border: var(--line) solid var(--blue);
	color: var(--ink);
	padding: 30px;
	font-size: 16px;
}
@media (max-width: 880px) {
	.contact__grid { grid-template-columns: 1fr; gap: 44px; }
	.field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--graphite); color: var(--ice); padding: 64px 0 36px; border-top: var(--line) solid var(--blue); }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--graphite-line);
	margin-bottom: 28px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .site-logo__mark { width: 30px; height: 30px; }
.site-footer__slogan { color: var(--fog); font-size: 14.5px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.site-footer__nav a { opacity: .8; transition: opacity .2s ease, color .2s ease; }
.site-footer__nav a:hover { opacity: 1; color: var(--blue); }
.site-footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.site-footer__contact a { opacity: .8; transition: opacity .2s ease, color .2s ease; }
.site-footer__contact a:hover { opacity: 1; color: var(--blue); }
.site-footer__copy { color: var(--fog); font-size: 13px; }
@media (max-width: 720px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
