/* =========================================================
   CARDOSO — portfólio
   Preto/grafite + vermelho profundo, rubi e pontos de luz.
   Uma família: Inter Tight.
   ========================================================= */

:root {
  --bg: #070203;
  --ink: #f6eeee;
  --ink-2: #d9c9ca;
  --muted: #b3a1a3;          /* 7.9:1 sobre --bg */
  --line: rgba(255, 235, 235, .1);
  --line-2: rgba(255, 235, 235, .18);

  --wine: #3a050b;
  --ruby: #9d0d1b;
  --red: #e11d2e;
  --glow: #ff3a48;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 14px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); overflow-x: clip; background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { top: 1rem; }
#app { outline: none; }

/* ---------------- Fundo global: UMA imagem contínua ----------------
   assets/bg/fundo.png no body (wrapper maior): atravessa Hero → Projetos
   → Serviços e continua atrás da região do footer, para que os cantos
   arredondados do rodapé recortem sobre o fundo vermelho — como o
   contraste claro/escuro da referência. Sem repetição. */
html { background: #070001; }
body {
  background: #070001 url("../assets/bg/fundo.png") top center / 100% 100% no-repeat;
}
@media (max-width: 860px) {
  body { background-size: cover; }
}

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* rastro de tinta do cursor (reinterpretação em rubi/crimson):
   canvas fixo, pointer-events none, só existe com mouse */
.inkfx {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 80; opacity: .8;
}
@media (hover: none), (pointer: coarse) { .inkfx { display: none; } }

/* ---------------- Navegação ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad);
  transition: background-color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 2, 3, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__brand { display: inline-flex; align-items: center; line-height: 0; }
.nav__brand img {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 4px 18px rgba(225, 29, 46, .35));
  transition: transform .4s var(--ease), filter .4s;
}
.nav__brand:hover img { transform: translateY(-1px); filter: drop-shadow(0 6px 22px rgba(225, 29, 46, .5)); }
.nav__links { display: flex; gap: 2rem; margin-left: auto; font-size: .92rem; color: var(--ink-2); }
.nav__links a { position: relative; padding: .4rem 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: .7rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2);
  transition: background-color .35s, border-color .35s, color .35s;
}
.nav__cta:hover { background: #fff; color: #120305; border-color: #fff; }
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .nav { gap: 1rem; }
  .nav__brand img { height: 36px; }
  .nav__links { gap: 1.2rem; font-size: .88rem; }
  .nav__links a:nth-child(2) { display: none; }
  .nav__cta { display: none; }
}

/* ---------------- Hero (usa o fundo global; sem cena separada) ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 2rem) var(--pad) clamp(1.4rem, 4vh, 2.4rem);
}

.hero__center { width: 100%; max-width: var(--max); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: 4vh; }
.hero__kicker { font-size: .82rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); margin-bottom: clamp(1rem, 3vh, 1.8rem); }
.hero__name { width: 100%; display: flex; justify-content: center; line-height: .82; font-weight: 800; letter-spacing: -.05em; filter: drop-shadow(0 0 30px rgba(200, 18, 35, .3)) drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.fit { display: block; width: max-content; flex: none; white-space: nowrap; font-size: var(--fs, 17vw); padding-bottom: .04em; }

/* CARDOSO: branco dominante com luz vermelha subindo da base
   (~65-70% branco, 30-35% inferiores em rubi/crimson/vinho).
   Faixa de luz lenta por cima: travessia ~5.2s + pausa (9.5s, 55%). */
@property --shine { syntax: '<percentage>'; inherits: false; initial-value: 115%; }
.hero__name .fit {
  --shine: 115%;
  opacity: 1; transform: none; filter: none;
  background-image:
    linear-gradient(100deg, transparent 0 42%, rgba(60, 5, 12, .35) 46.5%, #ffffff 49.2%, #ffe6e9 50%, #ffc9ce 50.8%, rgba(60, 5, 12, .35) 53.5%, transparent 58% 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #f6eaec 60%, #e7b4b8 70%, #c72a39 81%, #a20d1c 90%, #650710 100%);
  background-size: 280% 100%, 100% 100%;
  background-position: var(--shine) 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9.5s cubic-bezier(.55, .05, .25, 1) 1.6s infinite;
}
@keyframes shine { 0% { --shine: 115%; } 55%, 100% { --shine: -15%; } }

.hero__line { margin-top: clamp(1.2rem, 3.5vh, 2rem); font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink-2); }
.hero__foot { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.hero__services { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: .92rem; color: var(--ink-2); }
.hero__services li { position: relative; }
.hero__services li + li::before { content: ""; position: absolute; left: -1.05rem; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--glow); }
.hero__down { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; white-space: nowrap; }
.hero__down span { display: inline-block; transition: transform .4s var(--ease); }
.hero__down:hover span { transform: translateY(4px); }
@media (max-width: 760px) {
  .hero__kicker { font-size: .7rem; letter-spacing: .22em; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__services { gap: .3rem 1.4rem; font-size: .88rem; }
  .hero__services li + li::before { display: none; }
}

/* entrada dos textos de apoio do hero */
.js [data-in] { opacity: 0; transform: translateY(18px); }
.js.is-ready [data-in] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }

/* ---------------- Seções ---------------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--pad) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.sec-title { font-size: clamp(2.4rem, 5.6vw, 5.2rem); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
.sec-note { color: var(--muted); max-width: 36ch; }

.js [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------------- Card de projeto ---------------- */
.card { display: block; position: relative; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: #120507;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .6s var(--ease);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(8, 2, 3, .35)); opacity: 0; transition: opacity .6s; }
.card__go {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #120305; font-size: 1.1rem;
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.card__name { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.card__type { color: var(--muted); font-size: .92rem; text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media { box-shadow: 0 40px 90px -40px rgba(225, 29, 46, .55), 0 0 0 1px rgba(255, 90, 100, .35); }
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__media::after { opacity: 1; }
  .card:hover .card__go { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .card__meta { flex-direction: column; gap: .15rem; }
  .card__type { text-align: left; }
}

/* ---------------- Categorias (pastas) ---------------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); }
@media (max-width: 1100px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.folder { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4.2; text-align: left; isolation: isolate; perspective: 1100px; }
.folder__back {
  position: absolute; left: 0; right: 0; bottom: 0; top: 18%; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 240, 240, .09), rgba(255, 240, 240, .03));
  border: 1px solid var(--line); z-index: -2;
}
.folder__back::before {
  content: ""; position: absolute; left: 7%; top: -7%; width: 34%; height: 7%; border-radius: 10px 10px 0 0;
  background: rgba(255, 240, 240, .07); border: 1px solid var(--line); border-bottom: 0;
}
.folder__screens { position: absolute; left: 14%; right: 14%; top: 4%; aspect-ratio: 16 / 10; z-index: -1; }
.folder__screen {
  position: absolute; inset: 0; overflow: hidden; border-radius: 9px; background: #120507;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 100%;
  transform: translate3d(var(--x0), var(--y0), 0) rotate(var(--r0)) scale(var(--s0));
  transition: transform .9s var(--ease);
}
.folder__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.folder__screen:nth-child(1) { --x0: -16%; --y0: 8%; --r0: -5deg; --s0: .94; --x1: -30%; --y1: -6%; --r1: -9deg; --s1: .97; }
.folder__screen:nth-child(2) { --x0: 16%; --y0: 8%; --r0: 5deg; --s0: .94; --x1: 30%; --y1: -6%; --r1: 9deg; --s1: .97; }
.folder__screen:nth-child(3) { --x0: 0%; --y0: 0%; --r0: 0deg; --s0: 1; --x1: 0%; --y1: -12%; --r1: 0deg; --s1: 1.02; }
.folder__front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%; border-radius: 18px; padding: clamp(1rem, 1.6vw, 1.4rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(170deg, rgba(40, 10, 14, .84), rgba(16, 4, 6, .92));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform-origin: 50% 100%; transition: transform .8s var(--ease), border-color .5s;
}
.folder__name { font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.folder__count { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.folder__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.folder::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -8%; height: 30%; z-index: -3; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 29, 46, .55), transparent); opacity: 0; transition: opacity .6s;
}
.folder:focus-visible .folder__screen { transform: translate3d(var(--x1), var(--y1), 0) rotate(var(--r1)) scale(var(--s1)); }
@media (hover: hover) and (pointer: fine) {
  .folder:hover .folder__screen { transform: translate3d(var(--x1), var(--y1), 0) rotate(var(--r1)) scale(var(--s1)); }
  .folder:hover .folder__front { transform: rotateX(10deg); border-color: rgba(255, 90, 100, .35); }
  .folder:hover .folder__arrow { background: #fff; color: #120305; transform: rotate(-45deg); }
  .folder:hover::after { opacity: 1; }
}
@media (max-width: 760px) {
  .shelf { gap: .8rem; }
  .folder { aspect-ratio: 4 / 4.3; }
  .folder__screens { left: 10%; right: 10%; }
  .folder__front { height: 50%; border-radius: 14px; padding: .8rem; }
  .folder__back { border-radius: 14px; }
  .folder__name { font-size: 1.02rem; }
  .folder__count { font-size: .8rem; }
  .folder__arrow { width: 28px; height: 28px; font-size: .8rem; }
}

/* ---------------- Serviços ---------------- */
.services { padding-bottom: clamp(5rem, 11vw, 9rem); }
.services__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.services__lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 40ch; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; transform: translateY(5rem); }
.svc { padding: clamp(1.6rem, 2.4vw, 2.2rem); border-radius: 18px; background: rgba(12, 5, 8, .72); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .5s, background-color .5s, box-shadow .5s var(--ease), transform .5s var(--ease); }
.svc h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.svc li { padding: .55rem 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.svc li:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { border-color: rgba(255, 80, 95, .3); background: rgba(20, 6, 10, .8); box-shadow: 0 24px 60px -30px rgba(225, 29, 46, .35); transform: translateY(-4px); }
}
@media (max-width: 860px) {
  .services__head { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; transform: translateY(3rem); }
}

/* Janela de projetos sobre a home */
html.modal-open { overflow: hidden; }
.folder { color: inherit; font: inherit; }
.portfolio-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .57); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: modal-backdrop-in .4s ease both;
}
.portfolio-modal__panel {
  width: min(90vw, 1250px); height: 86svh; max-height: 100%;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-color: rgba(225, 29, 46, .5) rgba(255, 255, 255, .04);
  color: var(--ink); background: rgba(10, 3, 6, .965);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 22px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .68), 0 0 85px rgba(100, 0, 15, .14);
  animation: modal-panel-in .43s var(--ease) both;
}
.portfolio-modal__panel:focus { outline: none; }
.portfolio-modal__toolbar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center;
  min-height: 74px; gap: 1rem; padding: .8rem clamp(1.2rem, 3vw, 2.7rem);
  border-bottom: 1px solid var(--line); background: rgba(10, 3, 6, .96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.portfolio-modal__context { color: var(--muted); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }
.portfolio-modal__back { padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; transition: background .25s, color .25s; }
.portfolio-modal__back:hover { background: #fff; color: #120305; }
.portfolio-modal__close {
  margin-left: auto; flex: none; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  color: #fff; font-size: 2rem; font-weight: 300; line-height: 1;
  transition: background .25s, border-color .25s, transform .25s;
}
.portfolio-modal__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.portfolio-modal__content { padding: clamp(1.5rem, 3vw, 2.8rem); }
.portfolio-modal__content.is-swapping { animation: modal-content-in .25s ease both; }
.modal-category__head { display: flex; align-items: end; flex-wrap: wrap; gap: .4rem 1.5rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line-2); }
.modal-category__eyebrow { flex-basis: 100%; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.modal-category__title { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1; font-weight: 700; letter-spacing: -.055em; }
.modal-category__title:focus, .proj__title:focus { outline: none; }
.modal-category__count { padding-bottom: .35rem; color: var(--ink-2); white-space: nowrap; }
.modal-category__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.8rem, 3vw, 3rem) clamp(1.2rem, 2.4vw, 2.5rem); }
.modal-category__grid .card { min-width: 0; }
.modal-category__grid .card__media { aspect-ratio: 16 / 10; }
.portfolio-case { min-width: 0; }
.proj__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 2rem 3rem; align-items: start; margin-bottom: clamp(1.7rem, 3vw, 2.7rem); }
.proj__cat { color: var(--muted); margin-bottom: .65rem; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.proj__title { font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: .98; font-weight: 700; letter-spacing: -.055em; overflow-wrap: anywhere; }
.proj__type { margin-top: .8rem; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.proj__status { display: inline-block; margin-top: 1rem; padding: .3rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; }
.proj__side { display: grid; gap: 1.2rem; }
.proj__text { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.17rem); line-height: 1.5; }
.proj__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.proj__meta dt { color: var(--muted); }
.proj__meta dd { color: var(--ink-2); overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; padding: .95rem 1.5rem; border-radius: 999px; background: #fff; color: #120305; font-weight: 600; transition: transform .4s var(--ease), box-shadow .4s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(225, 29, 46, .6); }
.shot { overflow: hidden; border-radius: var(--radius); background: #120507; box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proj__hero { aspect-ratio: 16 / 9; margin-bottom: 1.5rem; }
.proj__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.7rem); }
.proj__gallery .shot { aspect-ratio: 16 / 10; }
.proj__sub { margin: 1.8rem 0 1rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; }
.variants figcaption { padding-top: .7rem; color: var(--ink-2); }
@keyframes modal-backdrop-in { from { opacity: 0; } }
@keyframes modal-panel-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes modal-content-in { from { opacity: .3; transform: translateY(8px); } }
@media (max-width: 760px) {
  .portfolio-modal { padding: 0; }
  .portfolio-modal__panel { width: 94vw; height: 92svh; border-radius: 16px; }
  .portfolio-modal__toolbar { min-height: 62px; padding: .55rem 1rem; }
  .portfolio-modal__close { width: 42px; height: 42px; }
  .portfolio-modal__content { padding: 1.3rem; }
  .modal-category__grid, .proj__gallery { grid-template-columns: 1fr; }
  .modal-category__title { font-size: clamp(2.4rem, 10vw, 3.7rem); }
  .proj__head { grid-template-columns: 1fr; gap: 1.4rem; }
  .proj__title { font-size: clamp(2.5rem, 10vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-modal, .portfolio-modal__panel, .portfolio-modal__content.is-swapping { animation: none; }
}

/* ---------------- Rodapé: simples, integrado ao fundo ----------------
   Sem painel, sem cantos, sem glass. O fundo.png segue até o final;
   um fade suave (vinho → quase preto) só melhora a leitura. */
.footer { --content-offset: 2.75rem; --base-compensation: 2rem; --bottom-compensation: .75rem; position: relative; isolation: isolate; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 5, 9, .5) 45%, rgba(5, 2, 4, .88) 100%);
}
.footer__inner { max-width: var(--max); margin: 0 auto; padding: calc(clamp(3.5rem, 7vw, 5rem) + var(--content-offset)) var(--pad) calc(1.4rem + env(safe-area-inset-bottom) - var(--bottom-compensation)); }
.footer__cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; transform: translateY(1.5rem); }
.footer__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
.footer__sub { margin-top: 1rem; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; }
.footer .btn { border: 2px solid #fff; white-space: nowrap; }
.footer .btn:hover, .footer .btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.footer__row { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: clamp(2.4rem, 5vw, 3.4rem); text-align: center; }
.footer__brand { display: inline-flex; line-height: 0; }
.footer__brand img { height: 64px; width: auto; filter: drop-shadow(0 4px 18px rgba(225, 29, 46, .3)); transition: transform .4s var(--ease), filter .4s; }
.footer__brand:hover img { transform: translateY(-2px); filter: drop-shadow(0 6px 24px rgba(225, 29, 46, .45)); }
.footer__contacts { display: flex; align-items: center; justify-content: center; gap: 0 1.1rem; flex-wrap: wrap; }
.footer__contacts:empty { display: none; }
.footer__contacts li { display: flex; align-items: center; }
.footer__contacts li + li::before { content: "·"; color: var(--muted); margin-right: 1.1rem; }
.footer__contacts a { color: var(--ink-2); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .3s; padding-bottom: 2px; }
.footer__contacts a:hover { color: #fff; background-size: 100% 1px; }
.footer__base { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; margin-top: calc(clamp(2rem, 4vw, 2.8rem) - var(--base-compensation)); padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--muted); font-size: .85rem; }
/* entrada do CTA: só fade + subida curta */
.footer [data-reveal] { transform: translateY(15px); filter: none; }
@media (max-width: 820px) {
  .footer { --content-offset: 1.5rem; --base-compensation: 1rem; --bottom-compensation: .5rem; }
  .footer__cta { transform: translateY(1rem); }
  .footer__contacts { flex-direction: column; gap: .7rem; }
  .footer__contacts li + li::before { display: none; }
  .footer__brand img { height: 54px; }
}

/* ---------------- Movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__name .fit { animation: none; --shine: 0%; }
  .inkfx { display: none; }
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-in] { opacity: 1; transform: none; filter: none; }


}
