/* ============ XPOSE — design system ============ */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --ink: #f2f2f2;
  --ink-dim: rgba(242, 242, 242, .56);
  --accent: #ff4030;
  --accent-deep: #c61f12;
  --line: rgba(242, 242, 242, .12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 96px);
  --section-gap: clamp(96px, 14vh, 200px);
  --max: 1760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body[data-loading] { overflow: hidden; height: 100dvh; }

::selection { background: var(--accent); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.accent { color: var(--accent); font-style: normal; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path .9s cubic-bezier(.77, 0, .18, 1);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__logo { width: clamp(150px, 22vw, 240px); height: auto; opacity: .95; }
.loader__count {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(40px, 7vw, 88px); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.loader__count::after { content: "%"; font-size: .38em; color: var(--accent); margin-left: 6px; }
.loader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: rgba(242, 242, 242, .08);
}
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--accent); }

/* ============ Grain + cursor ============ */
.grain {
  position: fixed; inset: -100%; z-index: 900; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 950; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    left: 0; top: 0;
  }
  .cursor-ring {
    display: grid; place-items: center; position: fixed; z-index: 949; pointer-events: none;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(242, 242, 242, .35);
    transform: translate(-50%, -50%);
    left: 0; top: 0;
    transition: width .25s, height .25s, background-color .25s, border-color .25s;
    font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
    color: transparent;
  }
  .cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--accent); background: rgba(255, 64, 48, .08); }
  .cursor-ring.is-view { width: 84px; height: 84px; background: var(--accent); border-color: var(--accent); color: #fff; }
  .cursor-ring.is-view::after { content: "ver"; }
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(16px, 2.2vw, 28px) var(--pad);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), background-color .45s;
}
.nav.is-scrolled {
  background: linear-gradient(rgba(10, 10, 11, .88), rgba(10, 10, 11, .6) 70%, transparent);
  backdrop-filter: blur(10px);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: clamp(96px, 9vw, 126px); height: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.nav__links a {
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-dim); position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; letter-spacing: .02em;
  padding: 16px 32px; border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.77, 0, .18, 1);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.btn--primary:hover { color: #fff; border-color: var(--accent); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: #fff; border-color: var(--accent); }
.btn--small { padding: 12px 24px; font-size: 11px; }
.btn--big { padding: 22px 44px; font-size: 15px; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  overflow: clip;
}
#webgl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding-top: 9vh; text-shadow: 0 2px 30px rgba(10, 10, 11, .85); }
.hero__kicker {
  font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: clamp(20px, 3vh, 36px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6.8vw, 118px);
  line-height: 1.02; letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.accent-block {
  color: var(--accent);
  text-shadow: 0 0 80px rgba(255, 64, 48, .45);
}
.hero__sub {
  max-width: 54ch; color: var(--ink-dim);
  font-size: clamp(15px, 1.3vw, 19px);
  margin-top: clamp(24px, 3.5vh, 44px);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(28px, 4.5vh, 52px); }
.hero__foot {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
}
.hero__scrollhint { display: inline-flex; align-items: center; gap: 12px; }
.hero__scrollhint i {
  width: 1px; height: 44px; background: var(--ink-dim); display: inline-block;
  overflow: hidden; position: relative;
}
.hero__scrollhint i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scrolldrop 1.8s cubic-bezier(.77, 0, .18, 1) infinite;
}
@keyframes scrolldrop { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.hero__ig a { transition: color .3s; }
.hero__ig a:hover { color: var(--accent); }

/* ============ Marquee ============ */
.marquee {
  border-block: 1px solid var(--line);
  padding: clamp(16px, 2.4vh, 28px) 0;
  overflow: hidden; white-space: nowrap;
  background: var(--bg);
  position: relative; z-index: 2;
}
.marquee__track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(14px, 1.7vw, 24px); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); padding-right: .5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Section frame ============ */
.section { padding: var(--section-gap) var(--pad) 0; max-width: calc(var(--max) + 2 * 96px); margin: 0 auto; }
.section__head { margin-bottom: clamp(40px, 7vh, 90px); position: relative; }
.section__index {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(13px, 1.2vw, 16px);
  color: var(--accent); letter-spacing: .3em;
}
.section__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 92px); line-height: 1.04; letter-spacing: -.01em;
  margin-top: 14px;
}
.section__title .reveal-line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.section__lead { max-width: 56ch; color: var(--ink-dim); margin-top: 22px; font-size: clamp(14px, 1.2vw, 18px); }

/* ============ Serviços ============ */
.services { position: relative; }
.services__list { list-style: none; border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service a {
  display: grid;
  grid-template-columns: clamp(40px, 6vw, 90px) 1fr clamp(40px, 4vw, 70px);
  grid-template-areas: "num name arrow" "num desc arrow";
  align-items: center; column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(22px, 3.6vh, 44px) clamp(4px, 1vw, 18px);
  position: relative; transition: padding-left .4s cubic-bezier(.4, 0, .2, 1);
}
.service__num { grid-area: num; font-family: var(--font-display); font-weight: 200; color: var(--ink-dim); font-size: clamp(12px, 1.2vw, 16px); }
.service__name {
  grid-area: name;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 54px); line-height: 1.1;
  transition: color .35s, transform .4s cubic-bezier(.4, 0, .2, 1);
}
.service__desc { grid-area: desc; color: var(--ink-dim); font-size: clamp(13px, 1.05vw, 16px); max-width: 52ch; margin-top: 6px; }
.service__arrow {
  grid-area: arrow; justify-self: end;
  font-size: clamp(20px, 2.4vw, 38px); color: var(--ink-dim);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), color .35s;
}
.service a:hover .service__name { color: var(--accent); transform: translateX(10px); }
.service a:hover .service__arrow { transform: translate(6px, -6px) rotate(-45deg); color: var(--accent); }

/* ============ Portfólio ============ */
.work { max-width: none; padding-inline: 0; }
.work .section__head { padding-inline: var(--pad); max-width: calc(var(--max) + 2 * 96px); margin-inline: auto; }
.work__pin { overflow: hidden; }
@media (min-width: 901px) {
  .work__pin { display: flex; align-items: center; min-height: 88svh; }
}
.work__track {
  display: flex; gap: clamp(20px, 3vw, 48px);
  padding: 10px var(--pad) 30px;
  width: max-content;
  will-change: transform;
}
.card {
  position: relative; flex-shrink: 0;
  width: clamp(300px, 38vw, 640px);
  border-radius: 14px;
}
.card--tall { width: clamp(260px, 26vw, 440px); }
.card__media {
  overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3;
  background: var(--bg-2);
  transform: perspective(900px);
}
.card--tall .card__media { aspect-ratio: 3 / 4; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.25, 1, .3, 1), filter .5s;
  filter: saturate(.92);
  will-change: transform;
}
.card:hover .card__media img { transform: scale(1.07); filter: saturate(1.05); }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.card__meta h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.4vw, 21px); }
.card__meta span { color: var(--ink-dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.card__ext { display: inline-block; color: var(--ink-dim); font-size: .8em; transition: transform .35s, color .35s; }
.card a:hover .card__ext { transform: translate(3px, -3px); color: var(--accent); }
.card a { display: block; }
.card--cta { display: grid; }
.card--cta a {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(24px, 3vw, 48px); aspect-ratio: 4 / 3;
  transition: background-color .4s, border-color .4s;
}
.card--cta__big {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 38px); line-height: 1.15;
}
.card--cta__arrow { font-size: clamp(28px, 3vw, 52px); align-self: flex-end; transition: transform .4s; }
.card--cta a:hover { background: var(--accent); border-color: var(--accent); }
.card--cta a:hover .card--cta__arrow { transform: translate(6px, -6px); }

/* ============ Resultados ============ */
.results__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 4.5vh, 56px) clamp(16px, 2vw, 40px);
  display: flex; flex-direction: column; gap: 10px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 72px); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat strong em { font-style: normal; font-size: .42em; color: var(--accent); font-weight: 400; }
.stat__label { color: var(--ink-dim); font-size: clamp(12px, 1vw, 15px); }

.results__proof {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 8vh, 96px); align-items: start;
}
.proof {
  border-radius: 14px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
}
.proof img { width: 100%; }
.proof figcaption { padding: 14px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); border-top: 1px solid var(--line); }
.results__note { margin-top: clamp(32px, 5vh, 60px); color: var(--ink-dim); max-width: 60ch; }

/* ============ Sobre ============ */
.about__manifesto {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 3vw, 50px); line-height: 1.35;
  max-width: 26ch;
}
.about__manifesto .w { opacity: .14; display: inline-block; }
.about__founders-kicker {
  margin-top: clamp(48px, 8vh, 110px);
  font-size: clamp(11px, 1vw, 14px); letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-dim);
}
.about__founders {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(20px, 3vh, 36px); align-items: start;
}
.founder { position: relative; border-radius: 14px; overflow: hidden; will-change: transform; }
.founder img { width: 100%; height: clamp(340px, 46vh, 540px); object-fit: cover; object-position: center 30%; display: block; filter: grayscale(.15); transition: filter .5s, transform .8s cubic-bezier(.25,1,.3,1); }
.founder:hover img { filter: grayscale(0); transform: scale(1.04); }
.founder figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: clamp(16px, 2vw, 26px) clamp(14px, 2vw, 26px) clamp(14px, 1.8vw, 22px);
  background: linear-gradient(transparent, rgba(10,10,11,.85));
}
.founder figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.05; }
.founder figcaption span { color: var(--accent); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* ============ Contato ============ */
.contact { text-align: center; padding-bottom: var(--section-gap); }
.contact__kicker { color: var(--ink-dim); letter-spacing: .3em; text-transform: uppercase; font-size: clamp(11px, 1vw, 14px); margin-bottom: clamp(24px, 4vh, 48px); }
.contact__giant { display: block; }
.contact__line {
  display: block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 9.4vw, 170px); line-height: 1.02; letter-spacing: -.015em;
  transition: -webkit-text-stroke .3s, color .3s;
}
.contact__line--accent { color: var(--accent); text-shadow: 0 0 110px rgba(255, 64, 48, .4); }
.contact__giant:hover .contact__line:first-child { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: clamp(36px, 6vh, 72px); }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vh, 48px) var(--pad);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); flex-wrap: wrap;
}
.footer__nav { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.footer__nav a { font-size: 13px; color: var(--ink-dim); transition: color .3s; }
.footer__nav a:hover { color: var(--ink); }
.footer__copy { width: 100%; color: var(--ink-dim); font-size: 12px; }
@media (min-width: 900px) { .footer__copy { width: auto; margin-left: auto; } }

/* ============ Mobile menu ============ */
.menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8vh;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s cubic-bezier(.77, 0, .18, 1);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 10px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 54px); line-height: 1.2;
  display: flex; align-items: baseline; gap: 16px;
}
.menu__links a em { font-style: normal; font-size: 13px; font-weight: 200; color: var(--accent); }
.menu__ig { color: var(--ink-dim); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }

/* ============ Responsivo ============ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 7px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer; z-index: 801;
  }
  .nav__burger span { width: 30px; height: 2px; background: var(--ink); transition: transform .4s, opacity .4s; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .hero__title { font-size: clamp(40px, 11.5vw, 72px); }
  .hero__foot { justify-content: center; }
  .hero__ig { display: none; }

  .service a {
    grid-template-columns: 1fr clamp(32px, 8vw, 48px);
    grid-template-areas: "num arrow" "name arrow" "desc arrow";
    row-gap: 4px;
  }
  .service__num { margin-bottom: 2px; }

  /* portfólio vira pilha vertical */
  .work__track { flex-direction: column; width: auto; padding-bottom: 0; }
  .card, .card--tall { width: 100%; }
  .card--tall .card__media { aspect-ratio: 4 / 5; }

  .results__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .results__proof { grid-template-columns: 1fr; }

  .about__manifesto { max-width: none; }
}

/* ultrawide / 4K: trava escala e centraliza */
@media (min-width: 2200px) {
  :root { --pad: 120px; }
  body { font-size: 18px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .hero__title .line > span, .reveal-up { transform: none !important; opacity: 1 !important; }
}
