/* ==========================================================
   Euforia Design · estilos do site
   ========================================================== */
:root {
  --bg: #0e0e0e;
  --bg-2: #141414;
  --surface: #171717;
  --line: #262626;
  --line-2: #343434;
  --text: #f3f3f3;
  --muted: #9b9b9b;
  --dim: #6b6b6b;
  --radius: 22px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* grão sutil sobre a página */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .06; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin: 0 0 22px;
}
.h-xl { font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; font-weight: 400; letter-spacing: -.025em; margin: 0; }
.h-lg { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.06; font-weight: 400; letter-spacing: -.02em; margin: 0; }
.h-md { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; font-weight: 400; margin: 0; }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--muted); max-width: 46ch; margin: 24px 0 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 15px; font-weight: 400;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--text); color: #000; border-color: var(--text); }
.btn--solid { background: var(--text); color: #000; border-color: var(--text); }
.btn--solid:hover { background: transparent; color: var(--text); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.pill {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--text);
}

/* ---------- navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14,14,14,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; flex-direction: column; line-height: .82; font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.logo span:last-child { margin-left: .02em; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .25s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links .btn { padding: 11px 20px; font-size: 14px; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 18px var(--gutter) 30px; background: rgba(14,14,14,.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav__links a:not(.btn) { font-size: 26px; color: var(--text); padding: 6px 0; }
  .nav__links .btn { margin-top: 14px; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(14,14,14,.97); }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; isolation: isolate;
}
.hero__glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, rgba(255,255,255,.10) 0%, rgba(255,255,255,.065) 20%, rgba(255,255,255,.035) 42%, rgba(255,255,255,.014) 66%, rgba(255,255,255,.004) 85%, rgba(255,255,255,0) 100%);
  pointer-events: none; will-change: transform;
}
.hero__glow--static { left: auto; right: -25vmax; top: auto; bottom: -35vmax; transform: none; width: 80vmax; height: 80vmax; opacity: .7; }
.hero__word {
  font-size: clamp(88px, 23.5vw, 400px);
  line-height: .8; font-weight: 500; letter-spacing: -.055em;
  margin: 0 0 0 -.04em; white-space: nowrap; user-select: none;
  display: flex;
}
.hero__word .ch { display: inline-block; will-change: transform, filter; }
.hero__bottom {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  padding: 36px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(20px, 3vw, 40px);
}
.hero__tag { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.12; font-weight: 400; letter-spacing: -.015em; margin: 0; }
.hero__tag em { font-style: normal; color: var(--muted); }
.hero__side { display: flex; align-items: center; gap: 28px; }
.hero__scroll { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero__scroll i { display: block; width: 1px; height: 38px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--text); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.hero__top { position: absolute; top: 120px; left: 0; right: 0; }
.hero__rot { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__rot b { font-weight: 400; color: var(--text); display: inline-block; min-width: 12ch; transition: opacity .4s, filter .4s, transform .4s var(--ease); }
.hero__rot b.out { opacity: 0; filter: blur(8px); transform: translateX(14px); }
.hero__rot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

@media (max-width: 720px) {
  .hero__bottom { grid-template-columns: 1fr; padding-bottom: 30px; }
  .hero__side { justify-content: space-between; }
  .hero__scroll { display: none; }
  .hero__top { top: 108px; }
  .hero__word { font-size: 25vw; }
  .hero { min-height: 84svh; }
}

/* ---------- faixa de serviços (marquee) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(26px, 3.2vw, 48px); font-weight: 400; letter-spacing: -.02em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--muted); }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ==========================================================
   SEÇÕES
   ========================================================== */
.section { padding: clamp(96px, 13vw, 180px) 0; position: relative; }
.section--tight { padding-top: clamp(64px, 8vw, 110px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 84px); flex-wrap: wrap; }
.sec-head .lead { margin-top: 0; }
.sec-num { font-size: 12px; letter-spacing: .3em; color: var(--dim); }

/* manifesto */
.manifesto { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.manifesto__text { font-size: clamp(26px, 3.1vw, 46px); line-height: 1.22; font-weight: 400; letter-spacing: -.015em; margin: 0; }
.manifesto__text .w { opacity: .16; transition: opacity .5s var(--ease); }
.manifesto__text .w.on { opacity: 1; }
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }

/* lista de serviços */
.services { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto; align-items: center;
  gap: 16px; padding: clamp(24px, 2.6vw, 38px) 0; text-align: left;
}
.svc__n { font-size: 13px; letter-spacing: .2em; color: var(--dim); }
.svc__t { font-size: clamp(26px, 3.6vw, 56px); line-height: 1.05; font-weight: 400; letter-spacing: -.02em; transition: transform .5s var(--ease), color .3s; }
.svc__head:hover .svc__t { transform: translateX(14px); }
.svc__plus { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; flex: none; transition: transform .5s var(--ease), background .3s; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.is-open .svc__plus { transform: rotate(45deg); background: var(--text); }
.svc.is-open .svc__plus::before, .svc.is-open .svc__plus::after { background: #000; }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; padding: 0 0 48px 86px; }
.svc__desc { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); margin: 0 0 26px; max-width: 40ch; }
.svc__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { border-left: 1px solid var(--line-2); padding-left: 22px; }
.steps b { display: block; font-weight: 400; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .svc__head { grid-template-columns: 44px 1fr auto; }
  .svc__grid { grid-template-columns: 1fr; padding-left: 0; }
  .svc__plus { width: 42px; height: 42px; }
}

/* três forças */
.forces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.force {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px); min-height: 360px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #191919, #121212); overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.force::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 65%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.force:hover { border-color: var(--line-2); }
.force:hover::before { opacity: 1; }
.force__n { font-size: 13px; letter-spacing: .2em; color: var(--dim); }
.force h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 400; letter-spacing: -.02em; margin: 0 0 14px; }
.force p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .forces { grid-template-columns: 1fr; } .force { min-height: 260px; } }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; position: relative; padding-top: 44px; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; top: 9px; left: 0; height: 1px; width: var(--prog, 0%); background: var(--text); transition: width .2s linear; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; top: -44px; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s; z-index: 1; }
.tl.on::before { background: var(--text); border-color: var(--text); }
.tl small { display: block; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.tl b { display: block; font-weight: 400; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.tl p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; gap: 36px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
  .timeline::after { height: var(--prog, 0%); bottom: auto; }
  .tl::before { top: 2px; left: -44px; }
}

/* ==========================================================
   PORTFÓLIO
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.filters button:hover { color: var(--text); }
.filters button.on { background: var(--text); color: #000; border-color: var(--text); }

.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); }
.card { grid-column: span 6; display: block; }
.card:nth-child(3n+1) { grid-column: span 7; }
.card:nth-child(3n+2) { grid-column: span 5; margin-top: clamp(0px, 10vw, 140px); }
.card:nth-child(3n) { grid-column: 3 / span 8; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.card:nth-child(3n+2) .card__media { aspect-ratio: 4 / 5; }
.card:nth-child(3n) .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .6s; }
.card:hover .card__media img { transform: scale(1.07); }
.card__cta {
  position: absolute; right: 20px; bottom: 20px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--text); color: #000; display: grid; place-items: center; font-size: 22px;
  transform: scale(.4) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.card:hover .card__cta { transform: scale(1) rotate(0); opacity: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.card__title { font-size: clamp(22px, 2vw, 30px); font-weight: 400; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
.card__cat { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.card__sum { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 52ch; }
.card.is-hidden { display: none; }
.work__empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
@media (max-width: 820px) {
  .card, .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .card:nth-child(n) .card__media { aspect-ratio: 4 / 3; }
}

/* placeholder de capa */
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(40px, 7vw, 110px); font-weight: 500; letter-spacing: -.05em; color: rgba(255,255,255,.08); background: radial-gradient(circle at 30% 20%, #232323, #121212 70%); }

/* ==========================================================
   CTA / RODAPÉ
   ========================================================== */
.cta { text-align: left; border-top: 1px solid var(--line); }
.cta__big { font-size: clamp(56px, 12vw, 210px); line-height: .9; font-weight: 400; letter-spacing: -.045em; margin: 0; }
.cta__big a { display: inline-block; transition: color .4s; }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.cta__row .lead { margin: 0; }
.footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 13px; color: var(--dim); }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ==========================================================
   PÁGINA DE PROJETO
   ========================================================== */
.p-hero { padding: 150px 0 0; }
.p-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 48px; transition: color .25s; }
.p-back:hover { color: var(--text); }
.p-title { font-size: clamp(44px, 8vw, 132px); line-height: .95; font-weight: 400; letter-spacing: -.04em; margin: 0; max-width: 14ch; }
.p-meta { display: flex; flex-wrap: wrap; gap: 14px 56px; margin: 48px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-meta div small { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.p-meta div span { font-size: 16px; font-weight: 400; }
.p-cover { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); padding: clamp(72px, 9vw, 140px) 0; }
.p-summary { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.25; font-weight: 400; letter-spacing: -.01em; margin: 0; }
.p-text { color: #d2d2d2; font-size: 19px; line-height: 1.75; }
.p-text p { margin: 0 0 1.2em; }
.p-text strong { color: var(--text); font-weight: 500; }
.p-text h3 { color: var(--text); font-weight: 400; font-size: 24px; margin: 1.6em 0 .6em; }
@media (max-width: 860px) { .p-body { grid-template-columns: 1fr; } }
.gallery { display: grid; align-items: start; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.g-item { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.g-item.full { grid-column: 1 / -1; }
.g-item img, .g-item video { width: 100%; height: auto; }
.g-item.embed { aspect-ratio: 16 / 9; }
.g-item.embed iframe { width: 100%; height: 100%; border: 0; }
.g-item img { cursor: zoom-in; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }
.p-next { display: block; border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 150px); padding: clamp(60px, 8vw, 110px) 0; }
.p-next small { display: block; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.p-next strong { font-size: clamp(40px, 7vw, 110px); line-height: 1; font-weight: 400; letter-spacing: -.04em; transition: transform .6s var(--ease); display: inline-block; }
.p-next:hover strong { transform: translateX(20px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lb.on { display: grid; }
.lb img { max-height: 92vh; width: auto; border-radius: 10px; }

/* ---------- revelação ao rolar ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
