/*
 * Carlos Raposo Studio — design system "Folio" (com variante "Galeria").
 *
 * Tinta, papel e um único acento (Ocre Raposo, definido no backoffice).
 * Grelha de 12 colunas, tipografia Schibsted Grotesk + Instrument Serif
 * (itálico, a "voz") + JetBrains Mono (fichas técnicas).
 * Mobile first. O conteúdo é visível sem JavaScript; as animações só se
 * acrescentam por cima e respeitam "reduzir movimento".
 */

/* ---------------------------------------------------------------- fontes */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Recurso com as métricas da Schibsted Grotesk: o texto não salta quando a fonte chega (CLS). */
@font-face { font-family: "Schibsted Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 104.01%; ascent-override: 93.89%; descent-override: 24.79%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 800; size-adjust: 102.53%; ascent-override: 95.24%; descent-override: 25.14%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- tokens */
:root {
	--paper: #f2f3f4;
	--sheet: #ffffff;
	--soft: #e7e9ec;
	--ink: #111214;
	--graphite: #5a5e65;
	--rule: #d8dadd;
	--accent: #e0961c;
	--accent-ink: #8f5a00;
	--accent-display: #a87115;
	--on-accent: #1a1205;
	--band: #111214;
	--band-ink: #ecedee;
	--band-muted: #9ba0a8;
	--band-rule: #2a2c31;
	--band-card: #191a1e;
	--ok: #2f7a4b;
	--error: #b3261e;

	--f-display: "Schibsted Grotesk", "Schibsted Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
	--f-voice: "Instrument Serif", "Times New Roman", Georgia, serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--margin: 20px;
	--gap: 16px;
	--max: 1440px;
	--header: 64px;
	--section: clamp(88px, 11vw, 168px);

	--ease: cubic-bezier(.2, .7, .1, 1);
	--t-fast: 160ms;
	--t-base: 240ms;
	--t-reveal: 700ms;
	color-scheme: light;
}
html[data-theme="dark"] {
	--paper: #0f1012;
	--sheet: #16171a;
	--soft: #1e2024;
	--ink: #ecedee;
	--graphite: #9ba0a8;
	--rule: #2a2c31;
	--band: #16171a;
	--band-card: #1d1f23;
	--band-rule: #2c2e33;
	--ok: #5cbf80;
	--error: #f2867d;
	color-scheme: dark;
}
/* Galeria: branco absoluto, imagem em primeiro plano, sem marcas de produção. */
html.style-galeria:not([data-theme="dark"]) { --paper: #ffffff; --sheet: #f6f6f6; --soft: #efefef; --rule: #e5e5e5; }
html.style-galeria .crop, html.style-galeria .rail { display: none; }

@media (min-width: 640px) { :root { --margin: 32px; --gap: 24px; --header: 72px; } }
@media (min-width: 1024px) { :root { --margin: 48px; --gap: 32px; } }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--f-display);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
main { display: block; outline: none; }
.muted { color: var(--graphite); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); transition: top var(--t-fast); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ----------------------------------------------------------- tipografia */
.display-hero { font-size: clamp(40px, 5.4vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; }
.display-xl { font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -0.04em; font-weight: 700; }
.display-l { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.display-m { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.voice, .display-hero em, .display-xl em, .display-l em { font-family: var(--f-voice); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.07em; }
.voice { color: var(--accent-display); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--graphite); max-width: 60ch; }
.lead-xl { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 30ch; }
.label, .eyebrow { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- botões */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px;
	border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
	font: 600 16px/1 var(--f-display); letter-spacing: -0.01em; text-decoration: none;
	transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tlink {
	display: inline-flex; align-items: center; gap: 6px; width: fit-content;
	font-weight: 600; text-decoration: none; padding-bottom: 3px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
	transition: background-size .32s var(--ease);
}
.tlink:hover { background-size: 0 1.5px; background-position: 100% 100%; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--rule); background: transparent; color: var(--ink);
	transition: border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .i { width: 18px; height: 18px; }

.chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
	border: 1px solid var(--rule); border-radius: 999px;
	font: 400 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip .n { color: var(--graphite); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-current="true"] .n { color: inherit; opacity: .6; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 400 12px/1 var(--f-mono); letter-spacing: .04em; padding: 9px 12px; border: 1px solid var(--rule); }

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1.5px; background: var(--accent); }
.ticks-lg li { font-size: 18px; }

.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); vertical-align: 1px; }

/* ----------------------------------------------------------- cabeçalho */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: transform var(--t-base) var(--ease), border-color var(--t-base);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; }
.mono { color: var(--ink); }
.mono .ear { fill: var(--accent); }
.brand-mark { width: 36px; height: 36px; }

.nav ul { list-style: none; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding-block: 6px; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent); transition: right var(--t-base) var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; gap: 6px; align-items: center; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-decoration: none; padding: 8px 4px; }
.lang-desktop .lang-name { display: none; }
.lang:hover { color: var(--accent-ink); }
[data-theme-toggle] .i-sun { display: none; }
html[data-theme="dark"] [data-theme-toggle] .i-sun { display: block; }
html[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }

.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.menu-btn { display: inline-grid; }
	.header-cta, .lang-desktop { display: none; }
	.nav { display: none; }
	.nav-open .nav {
		display: flex; flex-direction: column; justify-content: space-between;
		position: fixed; inset: var(--header) 0 0 0; z-index: 40;
		padding: 32px var(--margin) calc(32px + env(safe-area-inset-bottom, 0px));
		background: var(--paper); overflow-y: auto;
	}
	.nav-open .nav ul { flex-direction: column; gap: 4px; }
	.nav-open .nav ul a { font-size: clamp(32px, 9vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; }
	.nav-open .nav-extra { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; border-top: 1px solid var(--rule); }
	.nav-open { overflow: hidden; }
	/* O desfoque criaria um bloco de contenção e cortaria o painel fixo. */
	.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); transform: none; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

/* Barra lateral (assinatura do estilo Folio, só em ecrãs largos). */
.rail { display: none; }
@media (min-width: 1500px) {
	.rail {
		position: fixed; left: 18px; top: 50%; z-index: 30; display: flex; gap: 28px;
		writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
		font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8d9198;
		mix-blend-mode: difference; pointer-events: none;
	}
}

/* -------------------------------------------------------------- secções */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.section-flush { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .muted { margin-top: 10px; max-width: 52ch; }
.section-label { margin-bottom: 28px; }
.split { display: grid; gap: 40px var(--gap); }
.split-aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 1024px) {
	.split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.split > :first-child { grid-column: 1 / span 4; }
	.split > :last-child { grid-column: 6 / span 7; }
	.split-aside { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
}
.band { background: var(--band); color: var(--band-ink); }
.band .muted, .band .label { color: var(--band-muted); }
.band .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.band .tlink { color: var(--band-ink); }
.band .chip, .band .tags li { border-color: var(--band-rule); }

.page-head { padding-block: clamp(56px, 9vw, 136px) clamp(48px, 6vw, 88px); display: grid; gap: 24px; }
.page-head-sm { padding-block: clamp(48px, 7vw, 96px) 40px; }
.empty { padding: 48px 0; color: var(--graphite); }

/* ----------------------------------------------------------------- home */
.hero { display: grid; gap: 40px var(--gap); padding-block: clamp(40px, 7vw, 112px) clamp(56px, 7vw, 104px); }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero .lead { max-width: 46ch; }
.hero-photo { margin: 0; display: grid; gap: 12px; }
.hero-photo img, .photo-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.photo-ph { display: grid; place-items: center; background: #111214; }
.photo-ph .mono { width: 34%; color: #f2f3f4; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); border-top: 1px solid var(--ink); padding-top: 20px; }
.facts div { display: grid; gap: 6px; align-content: start; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.facts dd.num { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
@media (min-width: 1024px) {
	.hero { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.hero-text { grid-column: 1 / span 7; padding-bottom: 8px; }
	.hero-photo { grid-column: 9 / span 4; }
	.hero .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Lista de especialização */
.expertise { list-style: none; border-top: 1px solid var(--rule); }
.expertise li { display: grid; gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.expertise h3 { font-size: 22px; letter-spacing: -0.02em; }
.expertise p { color: var(--graphite); max-width: 52ch; }
@media (min-width: 760px) { .expertise li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }

/* Logótipos */
.logos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.logos li { display: grid; place-items: center; min-height: 112px; padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.logos img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: opacity var(--t-base), filter var(--t-base); }
.logos li:hover img { filter: none; opacity: 1; }
.logos span { font-weight: 600; color: var(--graphite); text-align: center; }
html[data-theme="dark"] .logos img { filter: grayscale(1) invert(1) brightness(1.5); }
html[data-theme="dark"] .logos li:hover img { filter: grayscale(1) invert(1) brightness(1.8); }

/* Testemunhos */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 760px); gap: clamp(32px, 5vw, 80px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.quotes::-webkit-scrollbar { display: none; }
.quote { margin: 0; scroll-snap-align: start; display: grid; gap: 24px; align-content: start; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.quote blockquote p::before { content: "“"; font-family: var(--f-voice); font-style: italic; color: var(--accent); margin-right: .05em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption > span { display: grid; gap: 2px; font-size: 15px; }
.quote-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-lg blockquote p { font-size: clamp(24px, 3vw, 40px); }
.slider-nav { display: flex; gap: 8px; }

/* ------------------------------------------------------ cartão de projeto */
.work-grid { display: grid; gap: clamp(40px, 5vw, 72px) var(--gap); }
@media (min-width: 760px) {
	.work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.work-grid:not(.is-featured) > :nth-child(even) { margin-top: clamp(48px, 8vw, 128px); }
}
@media (min-width: 1024px) {
	.work-grid.is-featured { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.work-grid.is-featured > :nth-child(6n+1) { grid-column: span 7; }
	.work-grid.is-featured > :nth-child(6n+2) { grid-column: span 5; }
	.work-grid.is-featured > :nth-child(6n+2) .pcard-media { aspect-ratio: 4 / 5; }
	.work-grid.is-featured > :nth-child(6n+3), .work-grid.is-featured > :nth-child(6n+4), .work-grid.is-featured > :nth-child(6n+5) { grid-column: span 4; }
	.work-grid.is-featured > :nth-child(6n+6) { grid-column: 1 / -1; }
	.work-grid.is-featured > :nth-child(6n+6) .pcard-media { aspect-ratio: 21 / 9; }
	/* Menos de 6 destaques: a última fila fecha sempre a grelha. */
	.work-grid.n-1 > :first-child { grid-column: 1 / -1; }
	.work-grid.n-1 > :first-child .pcard-media { aspect-ratio: 21 / 9; }
	.work-grid.n-3 > :nth-child(3) { grid-column: 1 / -1; }
	.work-grid.n-3 > :nth-child(3) .pcard-media { aspect-ratio: 21 / 9; }
	.work-grid.n-4 > :nth-child(3) { grid-column: span 5; }
	.work-grid.n-4 > :nth-child(3) .pcard-media { aspect-ratio: 4 / 5; }
	.work-grid.n-4 > :nth-child(4) { grid-column: span 7; }
}
.pcard-link { display: grid; gap: 16px; text-decoration: none; }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card, #1b1c20); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard-link:hover .pcard-media img { transform: scale(1.035); }
.pcard-ph {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 10%;
	font: italic 400 clamp(28px, 3.6vw, 56px)/1.05 var(--f-voice); text-align: center; color: #f2f3f4;
	transition: transform .9s var(--ease);
}
.pcard-link:hover .pcard-ph { transform: scale(1.035); }
.pcard-meta { display: grid; gap: 4px; }
.pcard-title { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em; font-weight: 600; }
.pcard-lock { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(15, 16, 18, .72); color: #f2f3f4; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.pcard-lock .i { width: 13px; height: 13px; }
.crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--accent); opacity: 0; transition: opacity var(--t-base), transform var(--t-base) var(--ease); pointer-events: none; }
.crop.tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; transform: translate(-5px, -5px); }
.crop.tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; transform: translate(5px, -5px); }
.crop.bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; transform: translate(-5px, 5px); }
.crop.br { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; transform: translate(5px, 5px); }
.pcard-link:hover .crop, .pcard-link:focus-visible .crop { opacity: 1; transform: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }

/* -------------------------------------------------------------- apps */
.app-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.appcard { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--band-card); border: 1px solid var(--band-rule); }
.appcard-head { display: flex; align-items: center; gap: 16px; }
.appcard-head > div { display: grid; gap: 6px; }
.appcard h3 { font-size: 24px; }
.appcard h3 a { text-decoration: none; }
.appcard h3 a:hover { text-decoration: underline; }
.appcard-text { color: var(--band-muted); max-width: 48ch; }
.appicon {
	flex: none; display: grid; place-items: center; overflow: hidden;
	width: 56px; height: 56px; border-radius: 14px;
	background: var(--app, #22252b); color: #fff;
	font: 700 20px/1 var(--f-display); letter-spacing: -0.02em;
}
.appicon img { width: 100%; height: 100%; object-fit: cover; }
.appicon.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; }
.appicon.xl { width: clamp(96px, 12vw, 160px); height: clamp(96px, 12vw, 160px); border-radius: 22%; font-size: clamp(36px, 4.4vw, 60px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.state { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.state-concept::before { background: #8d9198; }
.state-beta::before { background: #5b8def; }
.state-live::before { background: #3fa36b; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.15; }
.store small { display: block; font: 400 10px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.store .i { width: 24px; height: 24px; }
a.store:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band a.store:hover { background: var(--band-ink); color: var(--band); }
.store.is-soon { border-style: dashed; cursor: default; }

.app-list { display: grid; }
.app-row { display: grid; gap: 32px var(--gap); padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--rule); }
.app-row-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.app-row-text h2 a { text-decoration: none; }
@media (min-width: 1024px) {
	.app-row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
	.app-row-text { grid-column: 1 / span 5; }
	.app-row-media { grid-column: 7 / span 6; }
}
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.phones .phone:nth-child(2) { transform: translateY(-8%); }
.phone { display: block; overflow: hidden; border-radius: clamp(18px, 2.4vw, 32px); border: clamp(4px, .5vw, 7px) solid #0d0e10; background: #0d0e10; aspect-ratio: 9 / 19.5; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.app-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(120% 100% at 30% 20%, color-mix(in srgb, var(--app, #22252b) 70%, #ffffff), var(--app, #22252b)); }
.app-hero { display: grid; gap: 48px var(--gap); padding-block: clamp(40px, 7vw, 104px); }
.app-hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.app-hero-media .phone-lg { max-width: 340px; margin-inline: auto; }
@media (min-width: 1024px) {
	.app-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
	.app-hero-text { grid-column: 1 / span 6; }
	.app-hero-media { grid-column: 8 / span 5; }
}
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 300px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--margin) 24px; scroll-padding-inline: var(--margin); }
.screens .phone { scroll-snap-align: start; }

/* ------------------------------------------------------- estudo de caso */
.case-cover { display: flex; flex-direction: column; }
.case-title { order: -1; display: grid; gap: 24px; padding-block: clamp(48px, 8vw, 128px) clamp(32px, 4vw, 56px); }
.case-cover-media { overflow: hidden; aspect-ratio: 16 / 9; max-height: 88vh; background: var(--card, var(--soft)); }
.case-cover-media img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.case-intro { display: grid; gap: 40px var(--gap); padding-block: clamp(40px, 5vw, 80px); }
.spec { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.spec dd { margin: 0; font-size: 15px; }
.case-thesis { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 1024px) {
	.case-intro { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.spec { grid-column: 1 / span 4; align-self: start; }
	.case-thesis { grid-column: 6 / span 7; }
}
.chapter { display: grid; gap: 16px var(--gap); padding-block: clamp(20px, 2.6vw, 40px); }
@media (min-width: 1024px) {
	.chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.chapter > .label { grid-column: 1 / span 3; padding-top: 6px; }
	.chapter > .prose, .chapter > .metrics, .chapter > .quote { grid-column: 6 / span 7; }
	.chapter > .prose-offset { grid-column: 6 / span 7; }
}
.prose { display: grid; gap: 1.1em; font-size: 18px; line-height: 1.7; max-width: 66ch; }
.modules { display: grid; gap: clamp(16px, 2vw, 32px); padding-block: clamp(24px, 4vw, 56px); }
.mod { margin-block: 0; display: grid; gap: 12px; }
.mod-grid { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.mod-full .mod-grid img { width: 100%; }
@media (min-width: 760px) {
	.mod-two .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mod-three .mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mod-grid img { width: 100%; height: auto; }
.zoom { display: block; cursor: zoom-in; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pull { margin-block: 0; padding-block: clamp(40px, 6vw, 96px); }
.pull p { font-size: clamp(28px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; max-width: 22ch; }
@media (min-width: 1024px) { .pull p { margin-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); } }
.metrics { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px var(--gap); }
.metrics li { display: grid; gap: 6px; border-top: 1px solid var(--ink); padding-top: 16px; color: var(--graphite); }
.metric { font-size: clamp(36px, 4vw, 60px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.next-project { position: relative; display: block; overflow: hidden; margin-top: clamp(48px, 6vw, 96px); background: var(--card, #111214); color: #f2f3f4; text-decoration: none; }
.next-media { position: absolute; inset: 0; }
.next-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform 1.2s var(--ease), opacity var(--t-base); }
.next-project:hover .next-media img { transform: scale(1.04); opacity: .55; }
.next-text { position: relative; display: grid; gap: 16px; padding-block: clamp(72px, 12vw, 176px); }
.next-text .label { color: rgba(242, 243, 244, .72); }
.next-text .display-l { display: inline-flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.next-text .i { width: .7em; height: .7em; transition: transform var(--t-base) var(--ease); }
.next-project:hover .next-text .i { transform: translateX(8px); }
.locked { display: grid; gap: 24px; max-width: 760px; }
.pass-form { display: grid; gap: 10px; max-width: 480px; }
.pass-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pass-row input { flex: 1 1 220px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--rule); background: var(--sheet); }

/* ------------------------------------------------------------ serviços */
.services { border-top: 1px solid var(--ink); }
.service { display: grid; gap: 16px var(--gap); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header) + 24px); }
.service > div { display: grid; gap: 20px; }
@media (min-width: 1024px) {
	.service { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.service h2 { grid-column: 1 / span 4; }
	.service > div { grid-column: 6 / span 7; }
}
.steps { list-style: none; display: grid; gap: 40px var(--gap); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--band-rule); padding-top: 18px; }
.step-n { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--accent); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--band-muted); font-size: 16px; }

/* --------------------------------------------------------------- sobre */
.about-hero { display: grid; gap: 40px var(--gap); padding-block: clamp(40px, 7vw, 112px) clamp(48px, 6vw, 88px); }
.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-photo { margin: 0; }
.about-photo img, .about-photo .photo-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 1024px) {
	.about-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.about-text { grid-column: 1 / span 7; }
	.about-photo { grid-column: 9 / span 4; position: sticky; top: calc(var(--header) + 32px); align-self: start; }
	.about-hero .facts { grid-column: 1 / span 7; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.timeline { list-style: none; border-top: 1px solid var(--ink); }
.timeline li { display: grid; gap: 6px 24px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 150px minmax(0, 1fr); } }
.t-period { font: 400 13px/1.6 var(--f-mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 20px; }
.t-company { font-weight: 500; }
.timeline .muted { margin-top: 6px; max-width: 60ch; }
.cols { display: grid; gap: 48px var(--gap); }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols > div { display: grid; gap: 20px; align-content: start; }
.list-lg { list-style: none; border-top: 1px solid var(--rule); }
.list-lg li { padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

/* ------------------------------------------------------------ insights */
.posts { display: grid; gap: 56px var(--gap); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-lead { grid-column: 1 / -1; }
	.post-lead .post-link { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.post-lead .post-media { grid-column: 1 / span 7; }
	.post-lead .post-body { grid-column: 9 / span 4; }
	.post-lead .post-title { font-size: clamp(28px, 2.8vw, 40px); }
}
.post-link { display: grid; gap: 18px var(--gap); text-decoration: none; }
.post-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-link:hover .post-media img { transform: scale(1.03); }
.post-body { display: grid; gap: 10px; }
.post-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.post-link:hover .post-title { text-decoration: underline; text-decoration-thickness: 1.5px; }
.post-excerpt { color: var(--graphite); }
.article-head { display: grid; gap: 22px; padding-block: clamp(48px, 8vw, 120px) clamp(32px, 4vw, 56px); max-width: calc(980px + 2 * var(--margin)); }
.article-cover { margin-block: 0 clamp(40px, 5vw, 72px); }
.article-cover img { width: 100%; }
.article-body { margin-inline: auto; max-width: 68ch; padding-bottom: clamp(56px, 7vw, 104px); }

/* Conteúdo do editor (artigos, páginas, apps). */
.entry { display: block; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.8em; letter-spacing: -0.025em; }
.entry h3 { font-size: 22px; margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--accent); font-size: 1.2em; font-style: italic; font-family: var(--f-voice); }
.entry img { height: auto; }
.entry figure { margin: 1.8em 0; }
.entry figcaption { font: 400 12px/1.5 var(--f-mono); color: var(--graphite); margin-top: 8px; }
.entry a { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.entry code { font-family: var(--f-mono); font-size: .88em; background: var(--soft); padding: .1em .35em; }
.entry pre { overflow-x: auto; padding: 18px; background: var(--soft); font-family: var(--f-mono); font-size: 14px; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }

/* ------------------------------------------------------------ contacto */
.contact { display: grid; gap: 48px var(--gap); padding-block: clamp(48px, 8vw, 120px) var(--section); }
.contact-head { display: grid; gap: 22px; }
@media (min-width: 1024px) {
	.contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.contact-head { grid-column: 1 / -1; }
	.form { grid-column: 1 / span 7; }
	.contact-aside { grid-column: 9 / span 4; }
}
.form { display: grid; gap: 28px var(--gap); }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 400 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 10px 0;
	border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0; background: transparent;
	font-size: 18px; transition: border-color var(--t-fast);
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.field select option { background: var(--sheet); color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field.check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; }
.field.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); }
.field.check label { text-transform: none; letter-spacing: 0; font: 400 15px/1.5 var(--f-display); color: var(--graphite); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 15px; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.contact-aside { display: grid; gap: 28px; align-content: start; }
.ca-item { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-list { list-style: none; display: grid; gap: 6px; }
.link-list a { text-decoration: none; font-weight: 500; }
.link-list a:hover { text-decoration: underline; }
.ext { color: var(--graphite); }

.big-mail { font-size: clamp(22px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.big-mail:hover { background-size: 100% 2px; }
.contact-aside .big-mail { font-size: clamp(20px, 2vw, 26px); }

/* -------------------------------------------------------------- rodapé */
.site-footer { border-top: 1px solid var(--ink); }
.footer-cta { display: grid; gap: 28px; padding-block: var(--section); }
.footer-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-grid { display: grid; gap: 32px var(--gap); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--margin)) 1px no-repeat; font-size: 15px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 2fr 2fr 4fr; } }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-mark { width: 44px; height: 44px; }
.footer-list { list-style: none; display: grid; gap: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-meta .lang { padding: 0; }
.footer-meta a { text-decoration: none; }

/* ---------------------------------------------------------- 404, página */
.nf .actions { margin-top: 8px; }
.page-simple { padding-bottom: var(--section); }
.page-simple .entry { max-width: 72ch; }

/* ------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; background: rgba(10, 11, 13, .94); color: #f2f3f4; padding: max(16px, env(safe-area-inset-top, 0px)) 8px max(16px, env(safe-area-inset-bottom, 0px)); }
.lb img { max-height: 86vh; width: auto; margin-inline: auto; object-fit: contain; }
.lb .icon-btn { color: #f2f3f4; border-color: rgba(242, 243, 244, .3); }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; }
.lb-count { position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); font: 400 12px/1 var(--f-mono); letter-spacing: .08em; }

/* ------------------------------------------------------------ construção */
.route-construction { min-height: 100svh; }
.uc { display: grid; min-height: 100svh; background: var(--paper); }
.uc-photo { background: #111214; display: grid; place-items: center; min-height: 40vh; overflow: hidden; }
.uc-photo img { width: 100%; height: 100%; object-fit: cover; }
.uc-mono { width: 28%; color: #f2f3f4; }
.uc-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(32px, 6vw, 96px) var(--margin) calc(clamp(32px, 6vw, 96px) + env(safe-area-inset-bottom, 0px)); }
.uc-contacts { display: grid; gap: 14px; justify-items: start; padding-top: 20px; border-top: 1px solid var(--rule); }
.uc-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.uc-social a { text-decoration: none; font-weight: 500; }
@media (min-width: 900px) { .uc { grid-template-columns: 5fr 7fr; } .uc-photo { min-height: 100svh; } }

/* ------------------------------------------------------- revelação suave */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.site-header, .site-footer, .rail, .next-project, .filters { display: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
