/* Poppins — fonte da marca gui. morais (arquivos locais, licença OFL) */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

/* ==========================================================================
   gui. morais - portfólio
   Índice: 1 tokens · 2 base · 3 utilitários · 4 header · 5 intro/transições
   6 hero · 7 faixa · 8 serviços · 9 cases · 10 galeria · 11 sobre
   12 contato/rodapé · 13 lightbox · 14 cursor · 15 página de projetos
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
	--ink: #16101E;
	--off: #F2EDE4;
	--red: #831111;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1320px;
	--gutter: clamp(20px, 4.5vw, 64px);
	--header-h: 76px;
	--radius: 22px;
	--radius-sm: 14px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-io: cubic-bezier(.77, 0, .18, 1);
}

/* Versão black (padrão) */
:root,
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #120D19;
	--bg-2: #16101E;
	--surface: #1D1626;
	--surface-2: #251C30;
	--fg: #F2EDE4;
	--muted: rgba(242, 237, 228, .64);
	--faint: rgba(242, 237, 228, .38);
	--line: rgba(242, 237, 228, .12);
	--line-strong: rgba(242, 237, 228, .24);
	--hot: #E0322A;              /* vermelho de luz, derivado do #831111 */
	--glow: rgba(214, 38, 30, .55);
	--glow-soft: rgba(131, 17, 17, .42);
	--btn-fg: #F2EDE4;
	--header-bg: rgba(18, 13, 25, .62);
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
	--pattern-opacity: .05;
}

/* Versão white */
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #F2EDE4;
	--bg-2: #EAE3D7;
	--surface: #FAF7F1;
	--surface-2: #FFFFFF;
	--fg: #16101E;
	--muted: rgba(22, 16, 30, .68);
	--faint: rgba(22, 16, 30, .42);
	--line: rgba(22, 16, 30, .12);
	--line-strong: rgba(22, 16, 30, .26);
	--hot: #A51512;
	--glow: rgba(165, 21, 18, .30);
	--glow-soft: rgba(131, 17, 17, .16);
	--btn-fg: #F2EDE4;
	--header-bg: rgba(242, 237, 228, .72);
	--shadow: 0 30px 70px -34px rgba(22, 16, 30, .45);
	--pattern-opacity: .06;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-weight: 300;
	font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}
html.is-loading, html.is-loading body, html.menu-open body, html.lb-open body { overflow: hidden; }

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--off); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; border-radius: 6px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }

/* 3. UTILITÁRIOS ------------------------------------------------------------ */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 16px 2px var(--glow); }

.title { font-size: clamp(2.3rem, 5.6vw, 5rem); }
.hot { color: var(--hot); }
.lead { color: var(--muted); max-width: 54ch; font-size: clamp(1rem, .96rem + .3vw, 1.2rem); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); }
.section-head--split { grid-template-columns: 1fr auto; align-items: center; }
.section-head--split > .section-head { margin-bottom: 0; }

/* palavras mascaradas (animação de título) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.wi { display: inline-block; will-change: transform; }

/* botões */
.btn {
	--pad: 17px 28px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: var(--pad); border-radius: 999px; font-weight: 500; font-size: .98rem; line-height: 1; letter-spacing: -.005em;
	isolation: isolate; overflow: hidden; white-space: nowrap;
	transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease-io); }
.btn:hover::before { transform: translateY(0); }

.btn--primary { background: var(--red); color: var(--btn-fg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 14px 44px -12px var(--glow); }
.btn--primary::before { background: var(--hot); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 18px 60px -10px var(--glow); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn--lg { --pad: 22px 36px; font-size: 1.08rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--hot); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* logo (cores seguem o tema: selo claro no black, selo escuro no white) */
.l-selo, .l-word { fill: var(--fg); }
.l-gui { fill: var(--bg); }
.l-dot { fill: var(--red); }
:root[data-theme="light"] .l-gui { fill: var(--off); }
.l-selo, .l-word, .l-gui { transition: fill .5s var(--ease); }

/* estados de entrada: só escondem quando o JS de animação está ativo */
.anim [data-hero], .anim [data-hero-title] { opacity: 0; }
.anim.lite [data-hero-title] { opacity: 1; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.anim [data-reveal] { opacity: 0; transform: translateY(34px); }
.anim [data-reveal="scale"] { transform: scale(.94); }
.anim [data-reveal="left"] { transform: translateX(-40px); }

/* 4. HEADER ---------------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: transform .5s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-stuck { background: var(--header-bg); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand .logo-svg { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__link { position: relative; font-weight: 400; font-size: .94rem; color: var(--muted); padding: 8px 0; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--hot); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--fg); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__tools { display: flex; align-items: center; gap: 10px; }
.header .btn { --pad: 13px 22px; font-size: .9rem; }

.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .3s, background-color .3s, transform .5s var(--ease); }
.theme-toggle:hover { border-color: var(--fg); transform: rotate(40deg); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .35s, transform .5s var(--ease); }
.theme-toggle .i-moon { opacity: 0; transform: scale(.4) rotate(-90deg); }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: scale(.4) rotate(90deg); }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.brand .logo-svg { height: 34px; }
	.menu-btn { display: block; }
	.header__cta { display: none; }
	.nav {
		position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
		padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--bg);
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); visibility: hidden;
		transition: clip-path .7s var(--ease-io), visibility 0s .7s;
	}
	.menu-open .nav { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
	.nav__link { font-size: clamp(2.2rem, 11vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; color: var(--fg); line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s; }
	.nav__link::after { display: none; }
	.menu-open .nav__link { opacity: 1; transform: none; }
	.menu-open .nav__link:nth-child(1) { transition-delay: .18s; }
	.menu-open .nav__link:nth-child(2) { transition-delay: .24s; }
	.menu-open .nav__link:nth-child(3) { transition-delay: .30s; }
	.menu-open .nav__link:nth-child(4) { transition-delay: .36s; }
	.menu-open .header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
}

/* 5. INTRO E TRANSIÇÃO DE PÁGINA ------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: none; place-items: center; }
.is-loading .intro { display: grid; }
.intro__glow { position: absolute; width: min(90vw, 760px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, var(--glow-soft) 34%, transparent 66%); filter: blur(30px); animation: pulse 2.4s ease-in-out infinite; }
.intro .selo-svg { position: relative; width: clamp(120px, 22vw, 190px); animation: introPop .9s var(--ease) both; }
.has-webgl .intro .selo-svg { display: none; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes introPop { from { transform: scale(.2) rotate(-24deg); opacity: 0; } }

.wipe { position: fixed; inset: 0; z-index: 300; background: #000; pointer-events: none; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); display: grid; place-items: center; }
.wipe .selo-svg { width: 96px; opacity: 0; }
.wipe .l-selo { fill: #fff; } .wipe .l-gui { fill: #000; } .wipe .l-dot { fill: #000; }
.is-entering .wipe { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.is-entering .wipe .selo-svg { opacity: 1; }

/* slot do selo 3D (canvas WebGL) */
.selo-slot { position: absolute; inset: 0 0 auto 0; height: 100svh; pointer-events: none; z-index: 1; }
.selo-slot--fill { height: 100%; }
.selo-slot.is-intro { position: fixed; z-index: 210; }
.selo-slot canvas { width: 100%; height: 100%; }
.selo-fallback { position: absolute; right: 9%; top: 50%; width: min(34vw, 380px); transform: translateY(-50%) rotate(-8deg); filter: drop-shadow(0 30px 60px var(--glow)); }
.has-webgl .selo-fallback { display: none; }
@media (max-width: 900px) { .selo-fallback { right: 50%; top: 27%; width: 44vw; transform: translate(50%, -50%) rotate(-8deg); } }

/* 6. HERO ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.is-loading .hero { overflow: visible; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__light { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .58; }
.hl-1 { stroke: #650c20; } .hl-2 { stroke: #ad3045; } .hl-3 { stroke: #d48a91; stroke-opacity: .65; }
:root[data-theme="light"] .hero__light { opacity: .4; }
.hero__bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); }

.hero__in { position: relative; z-index: 2; padding-block: clamp(28px, 5vh, 60px); }
/* computador: menos respiro antes de "Projetos em destaque" (o topo continua com a altura da tela) */
@media (min-width: 901px) { #projetos.section { padding-top: clamp(32px, 3.4vw, 56px); } }
.hero__copy { max-width: 860px; display: grid; gap: clamp(24px, 3.6vh, 40px); justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
.hero__sub { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

@media (max-width: 900px) {
	.hero { justify-content: flex-end; }
	.hero__in { padding-top: 45svh; padding-bottom: 40px; }
	.hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 720px) {
	/* celular: texto centralizado */
	.hero__copy { justify-items: center; text-align: center; margin-inline: auto; }
	.hero__title { margin-inline: auto; }
	.hero__actions { width: 100%; justify-content: center; }
	.page-home .selo-fallback { width: 56vw; top: 26%; }
}

/* 7. FAIXA (MARQUEE) -------------------------------------------------------- */
.band { position: relative; z-index: 3; padding-block: clamp(30px, 5vw, 70px); overflow: hidden; }
.band__row { display: flex; width: max-content; will-change: transform; }
.band__row + .band__row { margin-top: 10px; }
.band__set { display: flex; align-items: center; flex: none; }
.band__item { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); font-weight: 700; font-size: clamp(2.2rem, 6.4vw, 5.6rem); letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.band__item .selo-svg { width: .78em; flex: none; transform: rotate(-8deg); }
.band__row--alt .band__item { color: transparent; -webkit-text-stroke: 1px var(--line-strong); font-size: clamp(1.5rem, 3.6vw, 3rem); }
.band__row--alt .band__item i { width: .34em; height: .34em; border-radius: 50%; background: var(--hot); box-shadow: 0 0 18px 2px var(--glow); }

/* 8. SERVIÇOS -------------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.card {
	--mx: 50%; --my: 0%;
	position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 440px;
	padding: clamp(26px, 2.6vw, 40px); border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); overflow: hidden; isolation: isolate; transform-style: preserve-3d;
	transition: border-color .4s, box-shadow .4s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx) var(--my), var(--glow-soft), transparent 62%); opacity: 0; transition: opacity .5s; }
.card::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), var(--hot), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .5s; }
.card:hover { box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__num { font-weight: 500; font-size: .74rem; letter-spacing: .22em; color: var(--faint); }
.card__icon { width: 74px; height: 74px; margin-top: auto; transform: translateZ(40px); }
.card__icon * { transition: transform .7s var(--ease); transform-box: fill-box; transform-origin: center; }
.card h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); transform: translateZ(30px); }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-weight: 400; font-size: .78rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ic-a, .ic-b { fill: var(--fg); } .ic-r { fill: var(--hot); }
.card:hover .ic-a { transform: translate(-5px, -5px) rotate(-8deg); }
.card:hover .ic-b { transform: translate(5px, 5px) rotate(8deg); }
.card:hover .ic-r { transform: scale(1.35); }

@media (max-width: 980px) { .services__grid { grid-template-columns: 1fr; } .card { min-height: 0; } .card__icon { margin-top: 12px; } }

/* 9. CASES (cartões empilhados) -------------------------------------------- */
.cases__stack { display: grid; gap: 26px; }
.case {
	--accent: var(--hot);
	position: sticky; top: calc(var(--header-h) + 18px);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: stretch;
	min-height: min(74vh, 660px); border-radius: clamp(22px, 2.4vw, 34px); overflow: hidden; isolation: isolate;
	background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .55);
	transform-origin: 50% 0; will-change: transform;
}
.case:nth-child(2) { top: calc(var(--header-h) + 30px); }
.case:nth-child(3) { top: calc(var(--header-h) + 42px); }
.case:nth-child(4) { top: calc(var(--header-h) + 54px); }
.case::before { content: ""; position: absolute; z-index: -1; right: -12%; top: 50%; width: 76%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 64%); opacity: .34; filter: blur(30px); }
:root[data-theme="light"] .case::before { opacity: .26; }
.case::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
.case--orla { --accent: #D9973F; }
.case--unifamec { --accent: #2F6BE6; }
.case--urban { --accent: #F58A1F; }
.case--ccsi { --accent: #2A56B8; }

.case__info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: clamp(26px, 3.6vw, 60px); }
.case__meta { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.case__meta b { font-weight: 500; color: var(--accent); }
.case__title { font-size: clamp(2.1rem, 4.4vw, 4.1rem); }
.case__desc { color: var(--muted); max-width: 46ch; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { font-size: .78rem; font-weight: 400; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); }
.case__badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .84rem; padding: 9px 15px 9px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.case__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px var(--accent); }

.fan { position: relative; min-height: 340px; perspective: 1500px; }
.fan__item { position: absolute; left: 50%; top: 50%; width: 43%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .75); background: var(--surface-2); transition: transform .9s var(--ease); will-change: transform; }
.fan__item img { width: 100%; height: 100%; object-fit: cover; }
.fan.is-ready { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fan.is-dragging { cursor: grabbing; }
.fan__item img { -webkit-user-drag: none; pointer-events: none; }
.fan__item[data-pos="0"], .fan__item[data-pos="2"] { cursor: pointer; z-index: 1; }
.fan__item[data-pos="0"], .fan__item:nth-child(1):not([data-pos]) { transform: translate(-108%, -47%) rotateY(26deg) rotateZ(-5deg) scale(.84); }
.fan__item[data-pos="1"], .fan__item:nth-child(2):not([data-pos]) { transform: translate(-50%, -50%) translateZ(60px); z-index: 2; }
.fan__item[data-pos="2"], .fan__item:nth-child(3):not([data-pos]) { transform: translate(8%, -47%) rotateY(-26deg) rotateZ(5deg) scale(.84); }
.case:hover .fan__item[data-pos="0"] { transform: translate(-122%, -50%) rotateY(14deg) rotateZ(-8deg) scale(.88); }
.case:hover .fan__item[data-pos="1"] { transform: translate(-50%, -52%) translateZ(110px); }
.case:hover .fan__item[data-pos="2"] { transform: translate(22%, -50%) rotateY(-14deg) rotateZ(8deg) scale(.88); }

@media (max-width: 980px) {
	.case { grid-template-columns: 1fr; position: relative; top: auto !important; min-height: 0; }
	.case__title { margin-top: 0; }
	.fan { order: -1; min-height: 0; height: 78vw; max-height: 430px; }
	.fan__item { width: 40%; }
	.case::before { right: -10%; top: 22%; width: 120%; }
}

/* 10. GALERIA --------------------------------------------------------------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.tab { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: .9rem; color: var(--muted); transition: color .3s; }
.tab[aria-selected="true"] { color: var(--btn-fg); }
.tabs__pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--red); box-shadow: 0 8px 30px -8px var(--glow); transition: transform .5s var(--ease), width .5s var(--ease); }

.panel[hidden] { display: none; }
.is-collapsed .g:nth-child(n+9) { display: none; }
.g--post { aspect-ratio: 4 / 5; }
.g--post img { height: 100%; object-fit: cover; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g { position: relative; display: block; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; isolation: isolate; }
a.g { cursor: pointer; }
.g img { width: 100%; transition: transform .9s var(--ease), filter .5s; }
.g::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--line) inset; pointer-events: none; transition: box-shadow .4s; }
.g:hover img { transform: scale(1.045); }
.g--light { background: #F4F0E9; } .g--dark { background: #17121F; }
.gallery__logos { margin-top: clamp(56px, 7vw, 100px); }
.gallery__sub { font-size: clamp(1.5rem, 2.6vw, 2.2rem); padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.gallery__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
@media (max-width: 720px) { .logos { grid-template-columns: 1fr 1fr; gap: 10px; } .section-head--split { grid-template-columns: 1fr; } }

/* 11. SOBRE ----------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(36px, 8vw, 130px); align-items: center; }
.about__copy { display: grid; gap: 26px; justify-items: start; max-width: 660px; }
.about__kicker { font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hot); line-height: 1.4; margin-bottom: 6px; }
.about__copy p { font-size: clamp(1.05rem, 1rem + .45vw, 1.32rem); line-height: 1.6; color: var(--muted); }
.about__cta { margin-top: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; border-color: var(--red); }
.about__photo { width: min(34vw, 430px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid color-mix(in srgb, var(--red) 55%, var(--line-strong)); box-shadow: 0 0 90px -20px var(--glow); }
:root[data-theme="light"] .about__photo { box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__photo { width: min(78vw, 380px); order: -1; } }

/* 12. CONTATO E RODAPÉ ------------------------------------------------------ */
.contact { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 11vw, 160px); border-top: 1px solid var(--line); }
.contact__glow { position: absolute; z-index: -1; left: calc(max(var(--gutter), (100% - var(--wrap)) / 2) + (min(100% - var(--gutter) * 2, var(--wrap)) - 40px) / 3.2); top: 50%; width: min(110vw, 1200px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, var(--glow-soft) 36%, transparent 66%); filter: blur(30px); opacity: .7; }
:root[data-theme="light"] .contact__glow { display: none; }
.contact__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 40px; align-items: center; min-height: clamp(150px, 16vw, 240px); }
.contact__kicker { font-weight: 500; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.contact__links a { display: inline-flex; align-items: center; gap: 14px; font-weight: 400; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); transition: color .3s; }
.contact__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.contact__links a:hover { color: var(--hot); }
.contact__links a:hover .contact__icon { background: var(--red); border-color: var(--red); color: var(--off); transform: scale(1.1); }
.ico { width: 17px; height: 17px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico--instagram { --ico: url("../assets/instagram.svg"); }
.ico--behance { --ico: url("../assets/iconmonstr-behance-1.svg"); }
.ico--linkedin { --ico: url("../assets/linkedin.svg"); }
.ico--whatsapp { --ico: url("../assets/whatsapp.svg"); }
.contact__logo { position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: calc((min(100% - var(--gutter) * 2, var(--wrap)) - 40px) / 1.6); z-index: 1; display: grid; place-items: center; pointer-events: none; }
.contact__logo-in { width: min(100%, 600px); }
.contact__logo-in .logo-svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
	.contact { padding-top: 60vw; }
	.contact__in { grid-template-columns: 1fr; min-height: 0; }
	.contact__in > span { display: none; }
	.contact__glow { left: 50%; top: 30vw; width: 120vw; }
	.contact__logo { left: 0; width: 100%; bottom: auto; height: 60vw; }
	.contact__logo-in { width: 80%; }
}

.footer { border-top: 1px solid var(--line); padding-block: 34px; font-size: .86rem; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.footer .logo-svg { height: 34px; width: auto; }
.footer__top { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--fg); }
.footer__top svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.footer__top:hover svg { transform: translateY(-4px); }

/* 13. LIGHTBOX -------------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(10, 7, 14, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.lb__stage { max-width: min(92vw, 1500px); max-height: 86vh; display: grid; place-items: center; }
.lb__img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 14px; box-shadow: 0 40px 120px -30px #000; transform: scale(.94); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.lb__img.is-light { background: #F4F0E9; } .lb__img.is-dark { background: #17121F; }
.lb.is-ready .lb__img { transform: none; opacity: 1; }
.lb__btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(242, 237, 228, .28); color: #F2EDE4; display: grid; place-items: center; background: rgba(22, 16, 30, .5); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.lb__btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__close { top: 20px; right: 20px; } .lb__prev { left: 20px; top: 50%; margin-top: -27px; } .lb__next { right: 20px; top: 50%; margin-top: -27px; }
.lb__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-weight: 500; font-size: .76rem; letter-spacing: .2em; color: rgba(242, 237, 228, .7); }
@media (max-width: 720px) { .lb__prev, .lb__next { top: auto; bottom: 14px; margin: 0; } .lb__prev { left: 14px; } .lb__next { right: 14px; } .lb__stage, .lb__img { max-height: 74vh; } }

/* 14. LUZ DO MOUSE (mesmo efeito do site antigo) ---------------------------- */
.blob { position: fixed; left: 0; top: 0; z-index: 90; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: screen; will-change: transform;
	background:
		radial-gradient(circle, rgba(170, 24, 24, .5) 0%, rgba(131, 17, 17, .22) 38%, transparent 70%);
	-webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 42%, transparent 72%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 42%, transparent 72%); }
.blob.is-on { opacity: .5; }
:root[data-theme="light"] .blob { mix-blend-mode: multiply; }
:root[data-theme="light"] .blob.is-on { opacity: .18; }
.progress { position: fixed; left: 0; top: 0; z-index: 110; height: 2px; width: 100%; background: var(--hot); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 14px var(--glow); }

/* 15. PÁGINA DE PROJETOS ---------------------------------------------------- */
.phero { position: relative; overflow: hidden; min-height: 78svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 clamp(40px, 6vw, 80px); }
@media (min-width: 721px) { .phero { align-items: center; padding-block: calc(var(--header-h) + 24px); } }
.phero .selo-slot { height: 100%; }
/* celular: selo em SVG, pequeno, ao lado da primeira linha do título (sem 3D nesta página) */
@media (max-width: 720px) {
	.phero { padding-top: calc(var(--header-h) + 56px) !important; }
	.phero .selo-fallback { display: block !important; top: auto; left: auto; right: var(--gutter); bottom: calc(clamp(40px, 6vw, 80px) + 2.8rem * .92 + 6px); width: 19vw; max-width: 84px; transform: rotate(-8deg); filter: drop-shadow(0 18px 36px var(--glow)); }
	.phero .selo-slot canvas { display: none; }
}
.phero__title { font-size: clamp(2.8rem, 7.2vw, 6.6rem); line-height: .92; letter-spacing: -.045em; }
.phero__copy { position: relative; z-index: 2; display: grid; gap: 24px; justify-items: start; max-width: 900px; }

.pnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-block: 1px solid var(--line); transition: top .5s var(--ease); }
.header-hidden .pnav { top: 0; }
.pnav__in { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.pnav__in::-webkit-scrollbar { display: none; }
.pnav a { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 400; font-size: .88rem; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.pnav a span { font-weight: 500; font-size: .7rem; letter-spacing: .14em; color: var(--faint); transition: color .3s; }
.pnav a:hover { color: var(--fg); border-color: var(--line-strong); }
.pnav a.is-active { background: var(--red); border-color: var(--red); color: var(--btn-fg); }
.pnav a.is-active span { color: rgba(242, 237, 228, .7); }

.project { position: relative; padding-block: clamp(70px, 9vw, 140px); border-bottom: 1px solid var(--line); --accent: var(--hot); isolation: isolate; overflow: hidden; }
.project::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -4%; width: min(80vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: .16; filter: blur(40px); pointer-events: none; }
.project__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.project__num { font-weight: 700; font-size: clamp(5rem, 15vw, 13rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); display: block; margin-bottom: 18px; }
.project__title { font-size: clamp(2.4rem, 5.6vw, 5rem); }
.project__title--long { font-size: clamp(1.5rem, 3vw, 2.9rem); line-height: 1.05; }
.project__desc { display: grid; gap: 16px; color: var(--muted); }
.project__desc strong { font-weight: 500; color: var(--fg); }
.sub { margin-top: clamp(44px, 6vw, 84px); }
.sub__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.sub__head h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.sub__head p { color: var(--muted); font-size: .92rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: start; }
.grid--2 { --cols: 2; } .grid--3 { --cols: 3; } .grid--4 { --cols: 4; } .grid--5 { --cols: 5; }
.grid .g--wide { grid-column: span 2; }
.g--tile { aspect-ratio: 1; border-radius: var(--radius); background: radial-gradient(circle at 72% 28%, rgba(131, 17, 17, .3), transparent 62%), #110B11; }
.g--tile::after { box-shadow: 0 0 0 1px rgba(131, 17, 17, .4) inset; }
.g--tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.g--orla-l { background: #F7EFE4; } .g--orla-d { background: #3D2B23; }
.g--orla-l::after, .g--orla-d::after { box-shadow: none; }
/* mosaico da Orla: o bloco grande define a altura; os dois pequenos dividem essa altura por igual */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento .g--tile { aspect-ratio: auto; height: 100%; }
.bento .bento__big { grid-column: span 4; grid-row: span 2; aspect-ratio: 3 / 2; height: auto; }
.bento .bento__sm { grid-column: span 2; }
.bento .bento__half { grid-column: span 3; aspect-ratio: 3 / 2; height: auto; }
.bento__big img { padding: 5% 6%; }
@media (max-width: 720px) { .bento { gap: 10px; } .bento .bento__big { grid-column: span 6; grid-row: auto; } .bento .bento__sm { grid-column: span 3; aspect-ratio: 3 / 2; height: auto; } .bento .bento__half { grid-column: span 6; } }
/* mosaicos de aplicações: blocos de proporções diferentes que fecham num retângulo */
.g--cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic { display: grid; gap: 14px; }
.mosaic .g { height: 100%; min-height: 0; }
.mosaic--orla { grid-template-columns: 3fr 4fr 4fr; }
.mosaic--orla .m-sq { grid-row: span 2; aspect-ratio: 1; height: auto; }
.mosaic--urban { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic--urban .m-tall { grid-row: span 3; }
.mosaic--urban .m-wide { aspect-ratio: 3 / 2; height: auto; }
@media (max-width: 720px) {
	.mosaic { gap: 10px; grid-template-columns: 1fr 1fr !important; }
	.mosaic .m-wide { grid-column: span 2; aspect-ratio: 3 / 2; height: auto; }
	.mosaic .m-sq, .mosaic .m-tall { grid-row: auto; aspect-ratio: 3 / 4; height: auto; }
	.mosaic--urban .m-wide { order: 2; }
}
.g video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.g--video { cursor: default; }
.cars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 50px) clamp(16px, 2.4vw, 40px); margin-top: clamp(36px, 5vw, 64px); }
.car__stage { position: relative; aspect-ratio: 4 / 5; margin-inline: 14%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.car.is-drag .car__stage { cursor: grabbing; }
.car__slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transform: scale(.82); cursor: inherit; transition: transform .6s var(--ease), opacity .5s var(--ease), visibility 0s .6s; }
.car__slide img { pointer-events: none; }
.car__slide.is-prev, .car__slide.is-next { opacity: .42; visibility: visible; z-index: 1; transition: transform .6s var(--ease), opacity .5s var(--ease), visibility 0s; }
.car__slide.is-prev { transform: translateX(-19%) scale(.88); }
.car__slide.is-next { transform: translateX(19%) scale(.88); }
.car__slide.is-active { opacity: 1; visibility: visible; transform: none; z-index: 2; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .6s var(--ease), opacity .5s var(--ease), visibility 0s; }
.car__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; font-weight: 500; font-size: .82rem; letter-spacing: .12em; color: var(--muted); }
.car__btn { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); transition: background-color .3s, border-color .3s, color .3s; }
.car__btn:hover { background: var(--red); border-color: var(--red); color: var(--off); }
.car__hint { margin-top: 14px; text-align: center; font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.cars--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
@media (max-width: 1000px) { .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cars { grid-template-columns: 1fr; } .car__stage { margin-inline: 14%; } }
@media (max-width: 1000px) { .grid--4, .grid--5 { --cols: 3; } .project__head { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid, .grid--3, .grid--4, .grid--5 { --cols: 2; gap: 10px; } .grid--2 { --cols: 1; } .grid .g--wide { grid-column: span 2; } .phero { min-height: 0; padding-top: 74vw; } }

/* Movimento reduzido: tudo visível, sem animação contínua */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.case { position: relative; top: auto !important; }
}
