@font-face { font-family: 'Manrope'; font-weight: 200; font-style: normal; font-display: swap; src: url('../fonts/manrope-200.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/manrope-300.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }

:root {
  --preto-palco: #0B0B0B;
  --branco-foco: #F5F5F5;
  --verde-estrutura: #6E7F5C;
  --bg-canvas: var(--preto-palco);
  --fg: var(--branco-foco);
  --hair: rgba(245, 245, 245, .14);
  --manrope: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--manrope);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--preto-palco);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

.canvas {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-canvas);
  position: relative;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1440px;
  z-index: 1000;
  background: transparent;
  padding: 32px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: difference;
}

.nav.scrolled { padding: 18px 72px; }

.logo,
.logo-always {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img,
.logo-always img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav.scrolled .nav-links {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.on::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── PILL ── */
.pill {
  border: 1px solid rgba(245, 245, 245, .45);
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.pill:hover {
  background: var(--fg);
  color: var(--bg-canvas);
}

/* ── HAMBURGER ── */
.menu-hamburger {
  background: transparent;
  border: 1px solid rgba(245, 245, 245, .3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 2100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
  .menu-hamburger { opacity: 1; visibility: visible; transform: scale(1); }
}

.menu-hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.menu-hamburger.open { border-color: rgba(0, 0, 0, 0.1); mix-blend-mode: normal; }
.menu-hamburger.open span { background: #000; }
.menu-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-hamburger.open span:nth-child(2) { opacity: 0; }
.menu-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── MOBILE OVERLAY ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--branco-foco);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 120px 72px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay.active { opacity: 1; pointer-events: all; }

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.overlay-menu a {
  font-size: 7vw;
  color: #0B0B0B;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 400;
  position: relative;
  width: fit-content;
}

.overlay-menu a::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #0B0B0B;
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-menu a:hover::after { width: 100%; }

.overlay-close {
  position: absolute;
  top: 36px;
  right: 40px;
  background: transparent;
  border: 1px solid rgba(11, 11, 11, .25);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #0B0B0B;
  line-height: 1;
  transition: background .2s, color .2s;
}

.overlay-close:hover { background: #0B0B0B; color: #F5F5F5; }

.overlay-footer {
  margin-top: auto;
  padding-top: 80px;
  color: #0B0B0B;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ── FOOTER ── */
.footer {
  background: var(--branco-foco);
  color: var(--preto-palco);
  padding: 40px 72px 28px;
  filter: brightness(0);
  transition: filter 1.2s ease;
}
.footer.lit { filter: brightness(1); }

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}

.foot-cols { display: flex; gap: 72px; }

.foot-cols a {
  display: block;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--preto-palco);
  text-decoration: none;
  padding: 4px 0;
  font-weight: 500;
}

.foot-cols a { position: relative; width: fit-content; }
.foot-cols a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--preto-palco);
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.foot-cols a:hover::after { width: 100%; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--preto-palco);
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--manrope);
  font-weight: 600;
  cursor: pointer;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.6);
}

.foot-right-wrap { display: flex; align-items: center; gap: 24px; }

.social { display: flex; gap: 10px; }

.social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(11, 11, 11, .4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--preto-palco);
  text-decoration: none;
}

.credit { text-transform: none; letter-spacing: 0; font-size: 13px; }
.credit a { color: inherit; text-decoration: none; }

/* ── RESPONSIVE ── */

/* tablet + mobile: só esconde nav-links e mostra hamburger */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-hamburger { opacity: 1; visibility: visible; transform: scale(1); }
}

/* mobile apenas */
@media (max-width: 640px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 20px 24px; }
  .logo-always img, .logo img { height: 26px; }
  .nav-right .pill { display: none; }
  .mobile-overlay { padding: 88px 24px 48px; }
  .overlay-menu a { font-size: 11vw; }
  .overlay-close { top: 24px; right: 20px; }
  .footer { padding: 40px 24px 28px; }
  .foot-top { flex-direction: column; gap: 32px; }
  .foot-cols { gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-right-wrap { flex-direction: row; align-items: center; gap: 16px; }
  .foot-right { align-self: flex-start; }
}

@media (min-width: 1025px) {
  .overlay-menu a { font-size: min(4.5vw, 7.5vh); }
  .mobile-overlay { padding: min(64px, 7vh) 72px min(56px, 6vh); }
  .overlay-footer { padding-top: min(40px, 4vh); }
}

/* ── Credit link with arrow ── */
.credit-link {
  color: inherit;
  text-decoration: none;
}
.credit-link::after {
  content: '\00a0\00a0↗';
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: -0.15em;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.credit-link:hover::after { max-width: 2em; }

/* ── Animated underline — overlay email ── */
.overlay-footer a {
  color: #0B0B0B;
  text-decoration: none;
  position: relative;
  width: fit-content;
  display: inline-block;
}
.overlay-footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0B0B0B;
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.overlay-footer a:hover::after { width: 100%; }

/* ── Animated underline — CTA email ── */
.cta .mail {
  position: relative;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.cta .mail::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta .mail:hover::after { width: 100%; }

/* ── PROJ MORE GRID ── */
.proj-more-grid { display: flex !important; overflow-x: scroll; overflow-y: visible; gap: 16px; cursor: grab; user-select: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.proj-more-grid::-webkit-scrollbar { display: none; }
.proj-more-grid.is-dragging { cursor: grabbing; }
.proj-more-grid.is-dragging .proj-card { pointer-events: none; transition: none !important; }
.proj-card { flex-shrink: 0; position: relative; border-radius: 10px; overflow: hidden; background: #111; text-decoration: none; display: block; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.proj-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.18) 45%, transparent 68%); }
.proj-card-info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.proj-card-info .sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,245,245,.75); margin-bottom: 5px; }
.proj-card-info h3 { margin: 0; font-size: 18px; font-weight: 400; color: #f5f5f5; line-height: 1.15; }
.proj-card-info .role { margin-top: 5px; font-size: 12px; color: rgba(245,245,245,.62); }

/* ── PROJ GALLERY ── */
.gc-viewport::-webkit-scrollbar { display: none; }
