@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0b0b0b;
  --paper: #f5f2ec;
  --muted: #6f6a62;
  --line: rgba(11, 11, 11, 0.10);
  --white: #ffffff;
  --violet: #8b7cd8;
  --rose: #f4a6e8;
  --mint: #4ee88a;
  --sun: #ffd23f;
  --bluex: #5a8dff;
  --card: rgba(255, 255, 255, .72);
  --ease: cubic-bezier(.2, .85, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 3% 17%, rgba(139, 124, 216, .16), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(78, 232, 138, .18), transparent 32rem),
    radial-gradient(circle at 70% 72%, rgba(244, 166, 232, .16), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  font-weight: 500;
}

::selection { background: var(--ink); color: var(--paper); }

/* Redução geral do peso anterior: melhora a home e as páginas internas sem reescrever todos os cases. */
.font-black { font-weight: 760 !important; }
.font-extrabold { font-weight: 680 !important; }
.font-bold { font-weight: 650 !important; }
.font-semibold { font-weight: 560 !important; }

strong, b { font-weight: 700; }

.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .027;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.container-page {
  width: min(1190px, calc(100% - 32px));
  margin-inline: auto;
}

.text-balance { text-wrap: balance; }

.home-hero-title {
  letter-spacing: -0.075em;
  line-height: .88;
  font-weight: 760;
}

.hero-title {
  letter-spacing: -0.070em;
  line-height: .90;
  font-weight: 740;
}

.display-tight {
  letter-spacing: -0.055em;
  line-height: .94;
  font-weight: 730;
}

.section-title {
  letter-spacing: -0.060em;
  line-height: .96;
  font-weight: 735;
}

.btn-quiet {
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn-quiet:hover { transform: translateY(-2px); }

.nav-pill {
  border: 1px solid var(--line);
  background: rgba(245, 242, 236, .72);
  backdrop-filter: blur(14px);
}

.blob {
  position: absolute;
  border-radius: 42% 58% 66% 34% / 36% 32% 68% 64%;
  filter: saturate(1.06);
  animation: morph 11s ease-in-out infinite alternate;
  pointer-events: none;
}

.soft-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-hero-grid {
  background-image:
    linear-gradient(rgba(11,11,11,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-lab-board {
  min-height: 410px;
  transform-style: preserve-3d;
}

.hero-float-card {
  position: absolute;
  border-radius: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(11,11,11,.12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  overflow: hidden;
}

.hero-float-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.015) !important;
  box-shadow: 0 36px 90px rgba(11,11,11,.16);
}

.hero-float-card.card-a {
  left: 3%;
  top: 2%;
  width: 56%;
  height: 190px;
  background: #050505;
  color: white;
  transform: rotate(-7deg);
}

.hero-float-card.card-b {
  right: 1%;
  top: 10%;
  width: 44%;
  height: 240px;
  background: var(--mint);
  transform: rotate(7deg);
}

.hero-float-card.card-c {
  left: 13%;
  bottom: 2%;
  width: 43%;
  height: 210px;
  background: white;
  transform: rotate(5deg);
}

.hero-float-card.card-d {
  right: 8%;
  bottom: 5%;
  width: 42%;
  height: 170px;
  background: var(--sun);
  transform: rotate(-5deg);
}

.hero-mini-browser {
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(139,124,216,.8), transparent 7rem),
    linear-gradient(135deg, #111, #303030);
  height: 100%;
}

.card-glow { position: relative; isolation: isolate; }

.card-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,0), rgba(11,11,11,.10));
  opacity: .75;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .68s var(--ease), transform .68s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee-track {
  display: inline-flex;
  gap: 1rem;
  animation: marquee 24s linear infinite;
  will-change: transform;
}

/* Projetos: carousel inspirado na lógica visual do Google Labs */
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  color: rgba(11,11,11,.70);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.filter-btn:hover { transform: translateY(-2px); border-color: rgba(11,11,11,.22); }

.filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.labs-carousel-shell {
  position: relative;
  margin-inline: calc((100vw - min(1190px, calc(100vw - 32px))) / -2);
  /* padding-inline: calc((100vw - min(1190px, calc(100vw - 32px))) / 2); */
  overflow: hidden;
}

.labs-carousel-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem 0 3.4rem;
  scrollbar-width: none;
}

.labs-carousel-track::-webkit-scrollbar { display: none; }

.lab-project-card {
  flex: 0 0 min(390px, 82vw);
  min-height: 480px;
  scroll-snap-align: center;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
  /* box-shadow: 0 20px 65px rgba(11,11,11,.10); */
  transform: rotate(var(--tilt, 0deg));
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}

.lab-project-card:hover {
  transform: translateY(-12px) rotate(0deg);
  /* box-shadow: 0 34px 92px rgba(11,11,11,.16); */
}

.lab-project-visual {
  position: relative;
  height: 235px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.lab-project-visual::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 1.55rem;
  border: 1px solid rgba(11,11,11,.12);
  background: rgba(255,255,255,.38);
}

.lab-project-visual::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -3rem;
  bottom: -4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.lab-project-card:nth-child(2n) { margin-top: 2.3rem; }
.lab-project-card:nth-child(3n) { margin-top: .9rem; }

.carousel-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.carousel-arrow:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: white;
}

/* Stack: deixa de ser lista simples e vira bloco visual de competência */
.stack-lab {
  position: relative;
  overflow: hidden;
  border-radius: 2.4rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%, rgba(244,166,232,.58), transparent 16rem),
    radial-gradient(circle at 85% 22%, rgba(78,232,138,.55), transparent 16rem),
    #0b0b0b;
  color: white;
}

.stack-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.18));
}

.stack-chip {
  position: relative;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  transition: transform .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease);
}

.stack-chip:hover {
  transform: translateY(-5px) rotate(-.7deg);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}

.stack-orbit {
  position: relative;
  min-height: 410px;
}

.stack-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(250px, 68vw);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  box-shadow: 0 28px 100px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}

.stack-dot {
  position: absolute;
  width: clamp(118px, 24vw, 150px);
}

.stack-dot:nth-child(2) { left: 2%; top: 4%; }
.stack-dot:nth-child(3) { right: 3%; top: 9%; }
.stack-dot:nth-child(4) { left: 4%; bottom: 10%; }
.stack-dot:nth-child(5) { right: 7%; bottom: 8%; }
.stack-dot:nth-child(6) { left: 37%; top: 0; }
.stack-dot:nth-child(7) { left: 35%; bottom: 0; }

.case-hero-grid {
  background-image:
    linear-gradient(rgba(11,11,11,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.case-hero-grid h1 { font-weight: 720 !important; }
.case-hero-grid p { font-weight: 520 !important; }

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes morph {
  0% {
    border-radius: 42% 58% 66% 34% / 36% 32% 68% 64%;
    transform: rotate(0deg) scale(1);
  }
  100% {
    border-radius: 62% 38% 42% 58% / 56% 62% 38% 44%;
    transform: rotate(8deg) scale(1.04);
  }
}

@media (max-width: 900px) {
  .hero-lab-board { min-height: 520px; }
  .hero-float-card.card-a { left: 0; width: 74%; }
  .hero-float-card.card-b { right: 0; top: 22%; width: 61%; }
  .hero-float-card.card-c { left: 2%; bottom: 8%; width: 60%; }
  .hero-float-card.card-d { right: 0; bottom: 0; width: 58%; }
  .lab-project-card:nth-child(n) { margin-top: 0; transform: none; }
}

@media (max-width: 768px) {
  .home-hero-title,
  .hero-title,
  .display-tight,
  .section-title {
    letter-spacing: -0.052em;
    line-height: .96;
  }

  .labs-carousel-shell {
    margin-inline: 0;
    padding-inline: 0;
  }

  .stack-orbit {
    display: grid;
    min-height: initial;
    gap: .75rem;
  }

  .stack-core,
  .stack-dot {
    position: relative;
    inset: auto !important;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }

  .stack-core { border-radius: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ===== PORTFOLIO V3 REFINEMENTS ===== */
:root {
  --ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-padding-top: 92px; }
body {
  font-weight: 400;
  text-rendering: geometricPrecision;
}

.home-hero-title,
.section-title {
  font-weight: 700 !important;
  letter-spacing: -.072em;
  line-height: .92;
}

.home-hero-title {
  max-width: 980px;
}

.home-hero-v3 {
  min-height: calc(100svh - 80px);
  display: grid;
  align-items: center;
}

.home-hero-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(11,11,11,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}

.hero-clean-board {
  position: relative;
  min-height: 560px;
}

.hero-browser-card {
  position: absolute;
  inset: 4% 6% 10% 2%;
  border-radius: 2.4rem;
  border: 1px solid rgba(11,11,11,.12);
  background:
    radial-gradient(circle at 82% 12%, rgba(78,232,138,.55), transparent 32%),
    radial-gradient(circle at 24% 86%, rgba(139,124,216,.52), transparent 34%),
    #0b0b0b;
  color: #fff;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  box-shadow: 0 34px 110px rgba(11,11,11,.16);
  transform: rotate(-2deg);
}

.hero-browser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .55;
}

.hero-browser-card > * { position: relative; z-index: 1; }
.hero-browser-card .flex span {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.hero-browser-card .flex span:nth-child(2) { opacity: .48; }
.hero-browser-card .flex span:nth-child(3) { opacity: .24; }
.hero-browser-card small {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.48);
  font-weight: 600;
}
.hero-browser-card h2 {
  max-width: 570px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 700;
}
.hero-browser-card p {
  margin-top: 1.35rem;
  max-width: 480px;
  color: rgba(255,255,255,.68);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
}

.hero-flow-list {
  position: absolute;
  left: clamp(1.4rem, 4vw, 3rem);
  right: clamp(1.4rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 4vw, 3rem);
  display: grid;
  gap: .75rem;
}
.hero-flow-list div {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
  padding: .75rem .9rem;
}
.hero-flow-list strong {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: .78rem;
}
.hero-flow-list span {
  color: rgba(255,255,255,.74);
  font-weight: 600;
  font-size: .95rem;
}

.hero-note-card {
  position: absolute;
  z-index: 3;
  width: min(250px, 44vw);
  border-radius: 1.6rem;
  border: 1px solid rgba(11,11,11,.10);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 22px 70px rgba(11,11,11,.13);
}
.hero-note-card span {
  display: block;
  margin-bottom: .8rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(11,11,11,.42);
  font-weight: 700;
}
.hero-note-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero-note-a {
  top: 4%;
  right: 0;
  background: #FFD23F;
  transform: rotate(5deg);
}
.hero-note-b {
  right: 8%;
  bottom: 3%;
  background: #F4A6E8;
  transform: rotate(-4deg);
}

.service-v3-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(11,11,11,.10);
  background: rgba(255,255,255,.72);
  padding: 1.75rem;
  transition: transform .32s var(--ease), background .32s var(--ease), border-color .32s var(--ease);
}
.service-v3-card::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  right: -5rem;
  top: -5rem;
  background: color-mix(in srgb, var(--card-color, #8B7CD8), transparent 16%);
  opacity: .14;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
}
.service-v3-card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: rgba(11,11,11,.18);
}
.service-v3-card:hover::after {
  transform: scale(1.18);
  opacity: .22;
}
.service-v3-card:nth-child(1) { --card-color: #8B7CD8; }
.service-v3-card:nth-child(2) { --card-color: #4EE88A; }
.service-v3-card:nth-child(3) { --card-color: #FFD23F; }
.service-v3-card:nth-child(4) { --card-color: #F4A6E8; }
.service-v3-icon {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin-bottom: 3.2rem;
}
.service-v3-card small {
  display: block;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(11,11,11,.40);
  font-weight: 700;
}
.service-v3-card h3 {
  margin-bottom: 1rem;
  font-size: 1.62rem;
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 700;
}
.service-v3-card p {
  color: rgba(11,11,11,.62);
  font-weight: 500;
  line-height: 1.58;
}

.stack-v3-lab {
  position: relative;
  overflow: hidden;
  border-radius: 2.6rem;
  border: 1px solid rgba(255,255,255,.12);
  background: #080808;
  color: white;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: 0 40px 110px rgba(11,11,11,.18);
}
.stack-v3-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(139,124,216,.48), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(78,232,138,.34), transparent 30%),
    radial-gradient(circle at 72% 92%, rgba(244,166,232,.25), transparent 26%);
  opacity: .85;
}
.stack-v3-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 55% 45%, black 0%, transparent 76%);
}
.stack-v3-proof {
  display: grid;
  gap: .85rem;
}
.stack-v3-proof div {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.08);
  padding: 1rem;
  backdrop-filter: blur(18px);
}
.stack-v3-proof strong {
  display: block;
  margin-bottom: .25rem;
  font-size: 1rem;
  font-weight: 700;
}
.stack-v3-proof span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 500;
}
.stack-v3-panel {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 2.2rem;
  background: rgba(255,255,255,.08);
  padding: clamp(1rem, 3vw, 1.45rem);
  backdrop-filter: blur(22px);
}
.stack-v3-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .7rem .7rem 1.2rem;
}
.stack-v3-topline span {
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}
.stack-v3-topline strong {
  font-size: 1rem;
  font-weight: 700;
}
.stack-v3-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .9rem;
}
.stack-v3-item {
  grid-column: span 3;
  min-height: 220px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.55rem;
  background: rgba(255,255,255,.09);
  padding: 1.15rem;
  transition: transform .32s var(--ease), background .32s var(--ease), border-color .32s var(--ease);
}
.stack-v3-item:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
}
.stack-v3-item.is-large {
  grid-column: span 6;
  min-height: 250px;
  background:
    radial-gradient(circle at 88% 18%, rgba(90,141,255,.52), transparent 34%),
    rgba(255,255,255,.10);
}
.stack-v3-item.is-accent {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,210,63,.55), transparent 34%),
    rgba(255,255,255,.10);
}
.stack-v3-item small {
  display: block;
  margin-bottom: 2.2rem;
  color: rgba(255,255,255,.42);
  font-weight: 700;
}
.stack-v3-item h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
}
.stack-v3-item p {
  max-width: 34rem;
  color: rgba(255,255,255,.62);
  font-weight: 500;
  line-height: 1.48;
}
.stack-v3-item div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.25rem;
}
.stack-v3-item div span {
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  padding: .48rem .7rem;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 700;
}

/* Leitura mais leve em páginas internas/cases geradas anteriormente. */
.case-hero-title,
.case-page h1,
.case-page h2,
main h1,
main h2 {
  font-weight: 700;
}
.case-page p,
.case-page li,
.case-page span,
main p {
  font-weight: 400;
}

@media (max-width: 1023px) {
  .home-hero-v3 { min-height: auto; }
  .hero-clean-board {
    min-height: 640px;
  }
  .hero-browser-card {
    inset: 0 0 7rem 0;
    transform: rotate(0deg);
  }
  .hero-note-a { top: auto; right: auto; left: 1rem; bottom: 3.4rem; }
  .hero-note-b { right: 1rem; bottom: 0; }
}

@media (max-width: 640px) {
  .home-hero-title,
  .section-title {
    letter-spacing: -.058em;
    line-height: .95;
  }
  .hero-clean-board { min-height: 700px; }
  .hero-browser-card h2 { font-size: 3rem; }
  .hero-flow-list {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }
  .hero-browser-card {
    position: relative;
    inset: auto;
    min-height: 560px;
  }
  .hero-note-card {
    position: relative;
    width: 100%;
    margin-top: .9rem;
    transform: none;
  }
  .stack-v3-grid { grid-template-columns: 1fr; }
  .stack-v3-item,
  .stack-v3-item.is-large { grid-column: auto; }
  .stack-v3-topline { align-items: flex-start; flex-direction: column; }
}
/* ===== END PORTFOLIO V3 REFINEMENTS ===== */

/* === PORTFOLIO V4.1 - HERO, CASES E STACK === */
:root {
  --ease: cubic-bezier(.2,.8,.2,1);
  --line: rgba(11, 11, 11, .10);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F5F2EC;
  color: #0B0B0B;
}

.container-page {
  width: min(1190px, calc(100vw - 32px));
  margin-inline: auto;
}

.noise {
  background-image:
    linear-gradient(rgba(11,11,11,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.section-title,
.home-hero-title-v41 {
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .96;
}

.home-hero-title-v41 {
  max-width: 760px;
  font-size: clamp(3.25rem, 5vw, 6.25rem);
}

.blob,
.soft-orb {
  position: absolute;
  display: block;
  border-radius: 38% 62% 55% 45% / 44% 35% 65% 56%;
  filter: blur(.2px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.soft-orb { border-radius: 50%; }

@keyframes blobFloat {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(20px,-16px,0) rotate(8deg); }
}

.btn-quiet,
.nav-pill a,
.filter-btn,
.carousel-arrow {
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}

.btn-quiet:hover,
.carousel-arrow:hover { transform: translateY(-2px); }

.nav-pill { border: 1px solid rgba(11,11,11,.10); background: rgba(255,255,255,.38); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-clean-board {
  position: relative;
  min-height: 520px;
}

.hero-browser-card {
  position: absolute;
  inset: 48px 72px 52px 12px;
  min-height: 390px;
  border-radius: 2.4rem;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(78,232,138,.36), transparent 34%),
    radial-gradient(circle at 18% 95%, rgba(139,124,216,.40), transparent 36%),
    linear-gradient(145deg, #060606, #121212 64%, #050505);
  box-shadow: 0 28px 95px rgba(11,11,11,.20);
  transform: rotate(-2.2deg);
}

.hero-browser-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .75;
}

.hero-browser-top {
  position: relative;
  z-index: 2;
  display: flex;
  gap: .65rem;
  padding: 2rem 2rem 0;
}

.hero-browser-top span {
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}

.hero-browser-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem 3rem;
}

.hero-browser-content h2 {
  max-width: 560px;
  font-size: clamp(3.2rem, 5.4vw, 6.8rem);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 700;
}

.hero-flow-list {
  margin-top: 2.2rem;
  display: grid;
  gap: .8rem;
  max-width: 500px;
}

.hero-flow-list span {
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: .9rem 1rem;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.hero-flow-list b {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: .78rem;
}

.hero-note {
  position: absolute;
  z-index: 4;
  max-width: 290px;
  border: 1px solid rgba(11,11,11,.08);
  border-radius: 1.75rem;
  padding: 1.45rem 1.55rem;
  box-shadow: 0 20px 55px rgba(11,11,11,.12);
}

.hero-note span {
  display: block;
  margin-bottom: .75rem;
  color: rgba(11,11,11,.42);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  color: #0B0B0B;
  font-size: 1.45rem;
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 700;
}

.hero-note-a { right: 0; top: 75px; background: #FFD23F; transform: rotate(3deg); }
.hero-note-b { right: 60px; bottom: 30px; background: #F4A6E8; transform: rotate(-2.5deg); }

.service-card-v41 { transition: transform .35s var(--ease), background .35s var(--ease); }
.service-card-v41:hover { transform: translateY(-8px); background: #fff; }

.filter-btn { border: 1px solid rgba(11,11,11,.10); background: rgba(255,255,255,.60); }
.filter-btn.is-active,
.filter-btn:hover { background: #0B0B0B; color: #fff; }

.labs-carousel-shell {
  position: relative;
  margin-inline: calc((100vw - min(1190px, calc(100vw - 32px))) / -2);
  overflow: hidden;
}

.labs-carousel-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem 0 3.4rem;
  scrollbar-width: none;
}

.labs-carousel-track::-webkit-scrollbar { display: none; }

.lab-project-card {
  flex: 0 0 min(390px, 82vw);
  min-height: 480px;
  scroll-snap-align: center;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}

.lab-project-card:hover { transform: translateY(-12px) rotate(0deg); }

.lab-card-visual { position: relative; min-height: 170px; padding: 1.35rem; }
.lab-card-dot { position: absolute; right: 1.35rem; top: 1.35rem; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(255,255,255,.45); }
.lab-card-label { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.42); padding: .5rem .75rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lab-card-body { padding: 1.65rem; }
.lab-card-type { color: rgba(11,11,11,.48); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.lab-card-body h3 { margin-top: .6rem; font-size: 2rem; line-height: .96; letter-spacing: -.055em; font-weight: 700; }
.lab-card-body p:not(.lab-card-type) { margin-top: 1rem; color: rgba(11,11,11,.64); font-weight: 500; line-height: 1.55; }
.lab-card-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.35rem; }
.lab-card-tags span { border: 1px solid rgba(11,11,11,.10); border-radius: 999px; padding: .4rem .65rem; font-size: .75rem; font-weight: 700; color: rgba(11,11,11,.58); }
.lab-card-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.lab-card-actions a { border-radius: 999px; background: #0B0B0B; color: white; padding: .75rem 1rem; font-size: .85rem; font-weight: 800; }
.lab-card-actions a + a { background: transparent; color: #0B0B0B; border: 1px solid rgba(11,11,11,.12); }

.carousel-arrow {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11,11,11,.12);
  background: rgba(255,255,255,.72);
  font-weight: 800;
}

.stack-v41 { box-shadow: 0 30px 90px rgba(11,11,11,.18); }
.stack-v41::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; opacity: .7; }
.stack-v41-glow { position: absolute; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(45px); opacity: .5; }
.stack-v41-glow-a { right: -8rem; top: -9rem; background: #4EE88A; }
.stack-v41-glow-b { left: 20%; bottom: -12rem; background: #8B7CD8; }
.stack-metric-v41 { border: 1px solid rgba(255,255,255,.10); border-radius: 1.35rem; background: rgba(255,255,255,.09); padding: 1.15rem; backdrop-filter: blur(20px); }
.stack-metric-v41 strong { display: block; font-size: 1.4rem; line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.stack-metric-v41 span { display: block; margin-top: .45rem; color: rgba(255,255,255,.58); font-size: .86rem; font-weight: 600; }
.stack-map-v41 { display: grid; gap: 1rem; }
.stack-line-card { border: 1px solid rgba(255,255,255,.12); border-radius: 1.8rem; background: rgba(255,255,255,.10); padding: 1.6rem; backdrop-filter: blur(22px); }
.stack-line-card span, .stack-grid-v41 span { display: block; margin-bottom: .7rem; color: rgba(255,255,255,.44); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.stack-line-card strong { display: block; max-width: 620px; font-size: clamp(2rem, 3vw, 3.5rem); line-height: .92; letter-spacing: -.06em; font-weight: 700; }
.stack-line-card small, .stack-grid-v41 small { display: block; margin-top: .75rem; color: rgba(255,255,255,.56); font-weight: 600; }
.stack-grid-v41 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack-grid-v41 article { min-height: 170px; border: 1px solid rgba(255,255,255,.12); border-radius: 1.6rem; background: rgba(255,255,255,.08); padding: 1.35rem; backdrop-filter: blur(18px); }
.stack-grid-v41 strong { display: block; font-size: 1.45rem; line-height: 1; letter-spacing: -.045em; font-weight: 700; }

.case-screenshot-section { padding: 4rem 0; }
.case-preview-wrap { border-radius: 2.4rem; overflow: hidden; border: 1px solid rgba(11,11,11,.10); background: #fff; box-shadow: 0 28px 85px rgba(11,11,11,.10); }
.case-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(11,11,11,.08); padding: 1rem 1.25rem; background: rgba(255,255,255,.78); }
.case-preview-dots { display: flex; gap: .45rem; }
.case-preview-dots span { width: .72rem; height: .72rem; border-radius: 999px; background: rgba(11,11,11,.18); }
.case-preview-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; background: rgba(11,11,11,.05); padding: .55rem 1rem; color: rgba(11,11,11,.52); font-size: .82rem; font-weight: 700; }
.case-preview-wrap img { display: block; width: 100%; height: auto; background: #f2f0ea; }
.case-preview-empty { display: none; padding: 4rem 1.5rem; text-align: center; color: rgba(11,11,11,.50); font-weight: 700; }
.case-preview-wrap.is-empty .case-preview-empty { display: block; }

.case-related-projects { overflow: hidden; }
.case-related-shell { margin-inline: calc((100vw - min(1190px, calc(100vw - 32px))) / -2); overflow: hidden; }
.case-related-track { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 1.5rem 0 2.4rem; scrollbar-width: none; }
.case-related-track::-webkit-scrollbar { display: none; }
.case-related-card { flex: 0 0 min(330px, 80vw); scroll-snap-align: center; overflow: hidden; border-radius: 2rem; border: 1px solid rgba(11,11,11,.10); background: #fff; }
.case-related-visual { min-height: 130px; position: relative; }
.case-related-visual span { position: absolute; right: 1.2rem; top: 1.2rem; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(255,255,255,.45); }
.case-related-body { padding: 1.35rem; }
.case-related-body p { color: rgba(11,11,11,.46); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.case-related-body h3 { margin-top: .6rem; font-size: 1.7rem; line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.case-related-body a { display: inline-flex; margin-top: 1.2rem; border-radius: 999px; background: #0B0B0B; color: #fff; padding: .75rem 1rem; font-size: .84rem; font-weight: 800; }

@media (max-width: 1024px) {
  .hero-clean-board { min-height: 460px; }
  .hero-browser-card { inset: 22px 34px 44px 0; }
  .hero-note-a { right: 0; top: 42px; }
  .hero-note-b { right: 24px; bottom: 18px; }
}

@media (max-width: 768px) {
  .home-hero-title-v41 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-clean-board { min-height: 500px; }
  .hero-browser-card { inset: 25px 0 75px 0; transform: rotate(0deg); }
  .hero-browser-content { padding: 3rem 1.6rem 2rem; }
  .hero-browser-content h2 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-note { max-width: 230px; }
  .hero-note-a { right: .5rem; top: 0; }
  .hero-note-b { left: .5rem; right: auto; bottom: .5rem; }
  .stack-grid-v41 { grid-template-columns: 1fr; }
}
/* === FIM PORTFOLIO V4.1 === */


/* === PORTFOLIO V4.2 FIXES START === */
:root {
  --paper: #F5F2EC;
  --ink: #0B0B0B;
  --line: rgba(11, 11, 11, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }

body.noise {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(11,11,11,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,11,.045) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(78,232,138,.16), transparent 34%),
    radial-gradient(circle at 58% 83%, rgba(244,166,232,.12), transparent 30%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  background-attachment: fixed;
}

.home-hero-v42 {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-eyebrow-v42 {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(11,11,11,.12);
  background: rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 0 1.35rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(11,11,11,.68);
  backdrop-filter: blur(12px);
}

.home-hero-title-v42 {
  max-width: 820px;
  font-size: clamp(3.25rem, 4.75vw, 5.25rem);
  line-height: .94;
  font-weight: 800;
  letter-spacing: -.075em;
}

.hero-clean-showcase-v42 {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-device-v42 {
  position: relative;
  width: min(560px, 100%);
  min-height: 420px;
  border-radius: 2.35rem;
  padding: 3.25rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(78,232,138,.35), transparent 38%),
    radial-gradient(circle at 25% 100%, rgba(139,124,216,.38), transparent 42%),
    linear-gradient(135deg, #090909, #171717 62%, #061409);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 36px 105px rgba(11,11,11,.22);
  transform: rotate(-1.8deg);
}

.hero-device-v42::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-device-v42 > * { position: relative; z-index: 2; }
.hero-device-v42 .mb-10 span { display: block; width: 14px; height: 14px; border-radius: 999px; background: rgba(255,255,255,.38); }
.hero-device-v42 .mb-10 span:nth-child(2) { background: rgba(255,255,255,.23); }
.hero-device-v42 .mb-10 span:nth-child(3) { background: rgba(255,255,255,.16); }

.hero-device-v42 h2 {
  margin-top: 1rem;
  max-width: 440px;
  font-size: clamp(2.6rem, 3.2vw, 3.5rem);
  line-height: .92;
  font-weight: 800;
  letter-spacing: -.07em;
}

.hero-step-v42 {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(420px, 100%);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  padding: .85rem 1rem;
  backdrop-filter: blur(16px);
}

.hero-step-v42 strong {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: .82rem;
}

.hero-step-v42 span {
  font-weight: 800;
  color: rgba(255,255,255,.76);
}

.hero-note-v42 {
  position: absolute;
  z-index: 4;
  width: min(280px, 56vw);
  border-radius: 1.65rem;
  border: 1px solid rgba(11,11,11,.08);
  padding: 1.45rem 1.55rem;
  box-shadow: 0 26px 72px rgba(11,11,11,.12);
}

.hero-note-v42 span {
  display: block;
  margin-bottom: .75rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(11,11,11,.42);
}

.hero-note-v42 strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero-note-seo-v42 {
  top: -0.5rem;
  right: 1rem;
  background: #FFD23F;
  transform: rotate(3deg);
}

.hero-note-performance-v42 {
  right: -2.5rem;
  bottom: 7.25rem;
  background: #F4A6E8;
  transform: rotate(-2deg);
}

.home-hero-v42 + .border-y { margin-top: 0; }

.service-card-v42 {
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), background .32s var(--ease);
}

.service-card-v42:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(11,11,11,.09);
  background: #fff;
}

.case-screenshot-frame,
.case-screenshot-placeholder {
  border-radius: 2.4rem;
  border: 1px solid rgba(11,11,11,.10);
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.case-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.case-screenshot-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem;
  color: rgba(11,11,11,.52);
}

@media (max-width: 1023px) {
  .home-hero-v42 { min-height: auto; }
  .hero-clean-showcase-v42 { min-height: 470px; place-items: start center; }
  .hero-device-v42 { transform: none; min-height: 390px; padding: 2.2rem; }
  .hero-note-seo-v42 { top: auto; right: auto; left: 1rem; bottom: 5rem; }
  .hero-note-performance-v42 { right: 1rem; bottom: .5rem; }
}

@media (max-width: 640px) {
  body.noise { background-size: 26px 26px, 26px 26px, auto, auto; }
  .home-hero-title-v42 { font-size: clamp(3rem, 15vw, 4.35rem); letter-spacing: -.065em; }
  .hero-clean-showcase-v42 { min-height: auto; margin-top: 1rem; }
  .hero-device-v42 { min-height: auto; padding: 1.6rem; border-radius: 1.75rem; }
  .hero-device-v42 h2 { font-size: 2.4rem; }
  .hero-note-v42 { position: relative; left: auto; right: auto; bottom: auto; top: auto; width: 100%; margin-top: .85rem; transform: none; }
}
/* === PORTFOLIO V4.2 FIXES END === */

[data-labs-track].is-filter-centered {
  justify-content: center !important;
}

@media (max-width: 768px) {
  [data-labs-track].is-filter-centered {
    justify-content: flex-start !important;
  }
}