/* ==========================================================================
   devluisam — folha de estilos única (home + páginas de projeto)
   Ordem: tokens · base · utilitários · navegação · botões · hero · seções ·
          projetos · serviços · processo · sobre · contato · página de projeto ·
          rodapé · movimento · responsivo
   ========================================================================== */

/* ---------- Fontes (hospedadas no site, licença OFL — ver assets/fonts/) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: optional; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Fontes substitutas com métricas da Geist / Instrument Serif ----------
   Medidas no navegador: evitam que o layout pule quando a fonte web chega. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 450; size-adjust: 101.8%; ascent-override: 99.2%; descent-override: 29.5%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 451 900; size-adjust: 96.5%; ascent-override: 104.7%; descent-override: 31.1%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times New Roman"); font-style: italic; size-adjust: 87%; ascent-override: 113.8%; descent-override: 35.6%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0a;
  --bg-2: #121211;
  --surface: #171715;
  --surface-2: #1d1d1b;
  --line: rgba(237, 236, 232, .09);
  --line-2: rgba(237, 236, 232, .17);
  --text: #edece8;
  --muted: #a6a59e;
  --faint: #85847d;
  --accent: #4ade80;
  --accent-ink: #04140a;
  --accent-soft: rgba(74, 222, 128, .1);
  --accent-line: rgba(74, 222, 128, .32);

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 13vw, 184px);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 72px;

  --z-fab: 40;
  --z-nav: 50;
  --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* grão sutil atrás do conteúdo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: url("../../img/grain.png");
  background-size: 128px;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Utilitários ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); }
.nowrap { white-space: nowrap; }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 24px; }
.rule { height: 1px; background: var(--line-2); transform-origin: left; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; text-transform: none; }

.h-display {
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h-section {
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 54ch; text-wrap: pretty; }

/* palavras com máscara (revelação de texto) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; padding-inline: .02em; margin-inline: -.02em; }
.w > span { display: inline-block; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: transform .5s var(--ease-out);
}
/* fundo em pseudo-elemento: backdrop-filter no próprio header quebraria filhos fixos */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 10, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s ease;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 600 .95rem/1 var(--mono); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 2px; }
.logo b { color: var(--accent); font-weight: 600; }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 999px;
  font-size: .875rem; color: var(--muted);
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-indicator {
  position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px;
  border-radius: 999px; background: rgba(237, 236, 232, .07);
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s ease;
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* seletor de idioma */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang a {
  display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 999px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .06em; color: var(--muted);
  transition: color .25s ease, background-color .3s ease;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform .45s var(--ease-out), opacity .2s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* menu mobile: irmão do header, ocupa a tela */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out), opacity .3s ease, visibility 0s .7s;
}
.menu.is-open { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .7s var(--ease-out), opacity .2s ease, visibility 0s; }
.menu-top { position: fixed; inset: 0 0 auto; height: var(--nav-h); }
.menu-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .7s var(--ease-out);
}
.menu-links a small { font: 500 .75rem/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.menu.is-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.menu-foot { display: grid; gap: 16px; }
.menu-foot .btn { width: 100%; }
.menu-social { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 .8rem/1 var(--mono); color: var(--muted); }
.menu-social a { padding: 10px 0; }

/* ---------- Botões ---------- */
.btn {
  --bh: 52px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 8px 0 24px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-label { display: inline-block; transition: transform .35s var(--ease-out); }
.btn-icon {
  position: relative; overflow: hidden;
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  transition: background-color .3s ease, transform .35s var(--ease-out);
}
.btn-icon svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform .45s var(--ease-out); }
.btn-icon svg + svg { transform: translate(-150%, 150%); }
.btn:hover .btn-icon svg:first-child { transform: translate(150%, -150%); }
.btn:hover .btn-icon svg + svg { transform: none; }
.btn-icon.down svg + svg { transform: translateY(-150%); }
.btn.down:hover .btn-icon svg:first-child { transform: translateY(150%); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary .btn-icon { background: var(--accent-ink); color: var(--accent); }
.btn-primary:hover { background: #6ee7a0; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost .btn-icon { background: rgba(237, 236, 232, .08); }
.btn-ghost:hover { border-color: rgba(237, 236, 232, .4); background: rgba(237, 236, 232, .04); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light .btn-icon { background: var(--bg); color: var(--text); }
.btn-light:hover { background: #fff; }
.btn-sm { --bh: 42px; padding: 0 6px 0 18px; font-size: .875rem; gap: 10px; }
.btn-sm .btn-icon { width: 30px; height: 30px; }
.btn-sm .btn-icon svg { width: 14px; height: 14px; }
.btn-lg { --bh: 64px; padding: 0 10px 0 30px; font-size: 1.05rem; }
.btn-lg .btn-icon { width: 46px; height: 46px; }

/* link de texto com seta */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .25s ease;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.link-arrow.int:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 96px));
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow {
  position: absolute; width: min(70vw, 900px); aspect-ratio: 1; right: -18vw; top: -24vw;
  background: radial-gradient(closest-side, rgba(74, 222, 128, .16), rgba(74, 222, 128, .04) 55%, transparent 72%);
  filter: blur(10px);
}
.hero-bg .cols {
  position: absolute; inset: 0;
  max-width: var(--wrap); margin-inline: auto;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 4) 100%;
  background-position: var(--gutter) 0;
  background-clip: content-box; padding-inline: var(--gutter);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .55;
}
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--text);
  padding: 9px 14px 9px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(237, 236, 232, .03);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.65rem, 8.4vw, 8.6rem);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 .serif {
  color: var(--accent);
  font-size: 1.1em;
  letter-spacing: -.035em;
  padding-right: .06em;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero-foot .lead { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.hero-facts div { padding: 18px 16px 0 0; }
.hero-facts dt { font: 500 .7rem/1 var(--mono); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.hero-facts dd { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; order: -1; }
.hero-facts div { display: flex; flex-direction: column; }

/* faixa de trabalhos */
.strip {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: 20px 24px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.strip:hover .strip-track, .strip.is-paused .strip-track { animation-play-state: paused; }
.strip a {
  position: relative; flex: none; width: clamp(200px, 22vw, 300px); aspect-ratio: 16 / 10;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.strip a:hover img { transform: scale(1.05); }
.strip a span {
  position: absolute; left: 10px; bottom: 10px;
  font: 500 .7rem/1 var(--mono); letter-spacing: .04em;
  padding: 6px 9px; border-radius: 999px; background: rgba(11, 11, 10, .78); color: var(--text);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--ease-out);
}
.strip a:hover span, .strip a:focus-visible span { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.sec-head .lead { justify-self: end; }

/* ---------- Projetos ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .875rem; color: var(--muted);
  transition: color .25s ease, background-color .3s ease, border-color .3s ease, transform .2s var(--ease-out);
}
.filter sup { font: 500 .68rem/1 var(--mono); color: var(--faint); transition: color .25s ease; }
.filter:hover { color: var(--text); border-color: rgba(237, 236, 232, .4); }
.filter:active { transform: scale(.96); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter[aria-pressed="true"] sup { color: rgba(11, 11, 10, .55); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(64px, 8vw, 120px);
  align-items: start;
}
.card { grid-column: span 6; position: relative; }
.card[data-size="lg"] { grid-column: span 7; }
.card[data-size="sm"] { grid-column: span 5; margin-top: clamp(0px, 7vw, 112px); }

.card-media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  transform: translateZ(0);
}
.card[data-size="sm"] .card-media { aspect-ratio: 4 / 3; }
.card[data-size="sm"] .card-media img { object-position: left top; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.1s var(--ease-out), filter .6s ease;
}
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 10, .55));
  opacity: 0; transition: opacity .5s ease;
}
.card-cta {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: .85rem; font-weight: 500; white-space: nowrap;
  pointer-events: none;
  transform: translate(var(--cx, 24px), var(--cy, 24px)) scale(.6);
  opacity: 0;
  transition: opacity .3s ease, transform .5s var(--ease-out);
}
.card-cta svg { width: 14px; height: 14px; }
.card:hover .card-media img { transform: scale(1.045); }
.card:hover .card-media::after { opacity: 1; }
.card:hover .card-cta { opacity: 1; transform: translate(var(--cx, 24px), var(--cy, 24px)) scale(1); }

.card-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 3vw, 36px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(74, 222, 128, .14), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--surface);
  transition: transform 1.1s var(--ease-out);
}
.card-poster b { font: 500 .75rem/1 var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.card-poster code { font-size: clamp(.9rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--text); max-width: 30ch; }
.card:hover .card-poster { transform: scale(1.03); }

.card-body { padding-top: 22px; display: grid; gap: 10px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.card-meta .idx { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); color: var(--muted);
}
.badge.live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.card h3 a { background: linear-gradient(currentColor, currentColor) left 92% / 0 1.5px no-repeat; transition: background-size .5s var(--ease-out); }
.card h3 a:hover { background-size: 100% 1.5px; }
.card p { color: var(--muted); max-width: 52ch; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 4px; }
.card-links a:first-child { color: var(--text); }
.card-links a { color: var(--muted); }
.card-links a:hover { color: var(--text); }

.projects-foot {
  margin-top: clamp(72px, 9vw, 128px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-2);
}
.projects-foot p { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em; max-width: 32ch; }
.projects-foot p span { color: var(--muted); }

/* ---------- Serviços ---------- */
.services { border-top: 1px solid var(--line-2); }
.service {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 32px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line-2);
}
.service::before {
  content: ""; position: absolute; inset: -1px 0; z-index: -1;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.service:hover::before { transform: scaleY(1); }
.service .n { font: 500 .8rem/1 var(--mono); color: var(--accent); }
.service h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; transition: transform .6s var(--ease-out); }
.service:hover h3 { transform: translateX(8px); }
.service p { color: var(--muted); max-width: 46ch; }
.service .link-arrow { margin-top: 12px; color: var(--text); }

/* ---------- Processo ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.process-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); overflow: hidden; }
.process-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { position: relative; padding-top: 40px; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
}
.step .n { font: 500 .75rem/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.step h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 30ch; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.portrait {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1;
  width: 100%; max-width: 400px; justify-self: center;
  background: var(--surface); border: 1px solid var(--line);
}
/* A foto já é um close quadrado: a moldura quadrada mostra ela quase inteira (só 4% de folga para o parallax). */
.portrait img { width: 100%; height: 108%; margin-top: -4%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.05); transition: filter .8s ease; will-change: transform; }
.portrait:hover img { filter: grayscale(0); }
.portrait figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .04em;
  padding: 7px 10px; border-radius: 999px; background: rgba(11, 11, 10, .75);
}
.about-text h2 { margin-bottom: 36px; }
.about-text p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; margin-bottom: 20px; max-width: 62ch; }
.facts { margin-top: 40px; border-top: 1px solid var(--line-2); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact dt { font: 500 .75rem/1.6 var(--mono); color: var(--faint); letter-spacing: .04em; }
.fact dd { text-align: right; font-size: .95rem; }
.stack-wrap { margin-top: 64px; }
.stack-wrap h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; }
.stack-wrap > p { color: var(--muted); margin: 10px 0 28px; max-width: 60ch; font-size: .95rem; }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.stack-grid h4 { font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.stack-grid li { font-size: .9rem; color: var(--muted); padding: 3px 0; }

/* ---------- Contato ---------- */
.contact { overflow: hidden; }
.contact-title {
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 8rem);
  line-height: .92; letter-spacing: -.05em;
  max-width: 13ch; text-wrap: balance;
}
.contact-title .serif { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.contact-grid .lead { margin-bottom: 32px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.channels { border-top: 1px solid var(--line-2); }
.channel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
  transition: padding .45s var(--ease-out);
}
.channel span:first-child { font: 500 .75rem/1 var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.channel span:last-child { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 500; transition: color .25s ease; overflow-wrap: anywhere; text-align: right; }
.channel svg { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease-out); }
.channel:hover { padding-inline: 10px; }
.channel:hover span:last-child { color: var(--accent); }
.channel:hover svg { transform: translate(2px, -2px); }

/* ---------- Página de projeto ---------- */
.p-hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); padding: 8px 0; margin-bottom: clamp(32px, 5vw, 56px); transition: color .25s ease; }
.back svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.back:hover { color: var(--text); }
.back:hover svg { transform: translateX(-3px); }
.p-hero .eyebrow { display: block; line-height: 1.7; margin-bottom: 20px; }
.p-hero h1 { font-size: clamp(2.8rem, 9vw, 9rem); font-weight: 600; letter-spacing: -.055em; line-height: .9; text-wrap: balance; }
.p-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.p-intro .lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 58ch; }
.p-info { border-top: 1px solid var(--line-2); }
.p-info div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-info dt { font: 500 .72rem/1.7 var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.p-info dd { font-size: .95rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.frame-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(237, 236, 232, .14); }
.frame-bar i + i { margin-left: -6px; }
.frame-bar span { margin-inline: auto; transform: translateX(-20px); font: 500 .7rem/1 var(--mono); color: var(--faint); padding: 6px 12px; border-radius: 999px; background: rgba(237, 236, 232, .05); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; }
.frame-media { overflow: hidden; }
.p-cover { margin-top: clamp(48px, 7vw, 96px); }
.p-cover .frame { overflow: hidden; }
.p-cover .frame img { will-change: transform; }
.p-poster { aspect-ratio: 21 / 9; position: relative; }
.p-poster .card-poster { position: absolute; }

.p-section { padding-block: clamp(72px, 9vw, 136px); border-top: 1px solid var(--line); }
.p-section:first-of-type { border-top: 0; }
.p-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 72px; }
.p-cols h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.p-cols h2 + .eyebrow, .p-cols .eyebrow { margin-bottom: 14px; }
.p-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-2); }
.p-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.p-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--accent); }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pills li { font: 500 .78rem/1 var(--mono); padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.gallery figure { grid-column: span 12; }
.gallery figure.half { grid-column: span 6; }
.gallery figure.wide { grid-column: span 8; }
.gallery figure.phone { grid-column: span 4; }
.gallery figcaption { margin-top: 12px; font-size: .85rem; color: var(--faint); }
.phone-frame { border-radius: 34px; overflow: hidden; border: 6px solid var(--surface-2); outline: 1px solid var(--line-2); background: var(--surface); max-width: 360px; margin-inline: auto; }
.phone-frame img { width: 100%; }

.study { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 80px); }
.study-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.study h3 { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.study p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 62ch; }
.study p em { color: var(--text); }
pre.arch {
  font: 400 .8rem/1.75 var(--mono); color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(18px, 3vw, 32px); overflow-x: auto; tab-size: 2;
}
.challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-2); }
.challenges li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.65; }
.challenges strong { display: block; margin-bottom: 6px; font-size: 1.05rem; letter-spacing: -.015em; }
.p-note { font: 400 .8rem/1.6 var(--mono); color: var(--faint); max-width: 80ch; margin-bottom: clamp(32px, 4vw, 48px); }
.p-cols-head { margin-bottom: clamp(40px, 5vw, 72px); }

.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(80% 120% at 100% 100%, rgba(74, 222, 128, .18), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; max-width: 16ch; text-wrap: balance; }
.cta-band h2 .serif { color: var(--accent); }
.cta-band p { color: var(--muted); margin-top: 16px; max-width: 48ch; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-top: clamp(72px, 9vw, 136px); }
.pager a { display: grid; gap: 12px; padding: clamp(28px, 4vw, 48px) 0; transition: background-color .4s ease; }
.pager a + a { border-left: 1px solid var(--line-2); padding-left: clamp(20px, 3vw, 40px); text-align: right; justify-items: end; }
.pager small { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.pager small svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.pager a:first-child:hover small svg { transform: translateX(-4px); }
.pager a + a:hover small svg { transform: translateX(4px); }
.pager strong { font-size: clamp(1.5rem, 3.6vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; transition: color .3s ease; }
.pager a:hover strong { color: var(--accent); }
.pager span { color: var(--faint); font-size: .9rem; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px calc(32px + env(safe-area-inset-bottom)); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: .85rem; color: var(--faint); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { padding: 8px 0; transition: color .25s ease; }
.footer nav a:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; transition: color .25s ease; }
.to-top:hover { color: var(--text); }
.to-top svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* WhatsApp flutuante */
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: .875rem; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .35s ease, transform .5s var(--ease-out), background-color .25s ease;
}
.fab svg { width: 22px; height: 22px; color: #128c4b; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #fff; }
.fab:active { transform: scale(.96); }

/* 404 */
.nf { min-height: 100svh; display: grid; align-content: center; padding-top: var(--nav-h); }
.nf h1 { font-size: clamp(5rem, 22vw, 18rem); font-weight: 600; letter-spacing: -.07em; line-height: .85; }
.nf p { margin: 24px 0 36px; }

/* ---------- Movimento ---------- */
/* Entrada do hero em CSS puro: o conteúdo nasce no HTML, sem esperar o JS. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-words .w > span { transform: translateY(108%); animation: word-in 1.1s var(--ease-out) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
  .fade-in { opacity: .01; transform: translateY(16px); animation: fade-in 1s var(--ease-out) forwards; animation-delay: var(--d, .6s); }

  /* revelação ao rolar: só esconde depois que o JS confirmou que o item está abaixo da dobra */
  .is-pending { opacity: 0; transform: translateY(40px); }
  .is-pending.is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
  .card.is-pending { opacity: 1; transform: none; }
  .card.is-pending .card-media { clip-path: inset(18% 0 0 0 round var(--r-lg)); }
  .card.is-pending .card-media img, .card.is-pending .card-poster { transform: scale(1.18); }
  .card.is-pending .card-body { opacity: 0; transform: translateY(24px); }
  .card.is-pending.is-in .card-media { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1.3s var(--ease-out); }
  .card.is-pending.is-in .card-media img, .card.is-pending.is-in .card-poster { transform: scale(1); transition: transform 1.6s var(--ease-out); }
  .card.is-pending.is-in .card-body { opacity: 1; transform: none; transition: opacity .9s ease .15s, transform 1.1s var(--ease-out) .15s; }
  .rule.is-pending { opacity: 1; transform: scaleX(0); }
  .rule.is-pending.is-in { transform: scaleX(1); transition: transform 1.4s var(--ease-in-out); }

  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
  ::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
}
@keyframes word-in { to { transform: none; } }
@keyframes fade-in { to { opacity: 1; transform: none; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip-track { animation: none; }
  .strip { overflow-x: auto; mask-image: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenges { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: block; }
  .hero-foot, .sec-head, .contact-grid, .p-intro, .p-cols, .study-pair, .about { grid-template-columns: 1fr; }
  .sec-head .lead { justify-self: start; }
  .grid { row-gap: 56px; }
  .card, .card[data-size] { grid-column: span 12; margin-top: 0; }
  .card[data-size="sm"] .card-media img { object-position: top center; }
  .card[data-size="sm"] .card-media { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process-line { display: none; }
  .service { grid-template-columns: 48px minmax(0, 1fr); }
  .service p, .service .service-more { grid-column: 2; }
  .portrait { position: relative; top: 0; max-width: 420px; aspect-ratio: 1; }
  .gallery figure.half, .gallery figure.wide { grid-column: span 12; }
  .gallery figure.phone { grid-column: span 12; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-actions .btn, .contact-actions .btn, .p-actions .btn { width: 100%; justify-content: space-between; }
  .btn { white-space: normal; text-align: left; line-height: 1.2; }
  .btn-lg { font-size: 1rem; }
  .hero-facts dd { font-size: 1.9rem; }
  .p-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; text-align: left; justify-items: start; }
  .p-info div { grid-template-columns: 100px minmax(0, 1fr); }
  .frame-bar span { display: none; }
  .fab { padding: 0; width: 52px; justify-content: center; }
  .fab .fab-label { display: none; }
  .channel span:last-child { font-size: .95rem; }
}
@media (hover: none) {
  .card-cta { display: none; }
  .service:hover h3 { transform: none; }
}
