/* ============================================================
   João Elias Design — Personal Portfolio
   Motion Designer & Visual Artist
   VARIANCE: 9 / MOTION: 8 / DENSITY: 3
   ============================================================ */

/* — Tokens — */
:root {
  --black:        #050505;
  --surface:      #0d0d0d;
  --surface-2:    #141414;
  --surface-3:    #1c1c1c;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.13);
  --white:        #f4f4f4;
  --white-muted:  rgba(244,244,244,0.52);
  --white-dim:    rgba(244,244,244,0.26);
  --accent:       #9de600;
  --accent-light: #b5ff00;
  --accent-glow:  rgba(157,230,0,0.22);
  --radius-sm:    6px;
  --radius-md:    12px;
  --font-display: 'Outfit', sans-serif;
  --font-mono:    'Geist Mono', monospace;
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { border: none; background: none; font-family: inherit; cursor: none; }
ul { list-style: none; }
select { -webkit-appearance: none; appearance: none; }
::selection { background: var(--accent); color: var(--black); }

/* — Section label — */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── Cursor ─────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease-out), height .2s var(--ease-out);
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(157,230,0,.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all .25s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--accent-glow);
}
.btn--primary:active { transform: scale(.98); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
}
.nav.scrolled {
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-right: 48px; /* Distância aproximada de 48px da logo para o link Sobre */
}
.nav__wordmark {
  font-family: 'Monda', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white-muted);
  transition: color .2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s, transform .2s, box-shadow .2s;
  justify-self: end; /* Alinha o botão de CTA na extremidade direita do grid */
}
.nav__cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .3s var(--ease-out), opacity .3s, background .3s;
}
.nav__hamburger.open span { background: var(--accent); }
.nav__hamburger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
}
.mobile-menu.open { clip-path: inset(0 0 0% 0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-menu__link {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--white-muted);
  transition: color .2s;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { 
  position: absolute; inset: 0; z-index: 0; overflow: hidden; 
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}
.hero__bg-img-wrap {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  overflow: hidden;
  animation: kenBurns 36s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero__bg-img {
  width: 104%; height: 104%;
  position: absolute;
  top: -2%; left: -2%;
  object-fit: cover;
  object-position: center;
  opacity: .5;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, -1%); }
  100% { transform: scale(1.05) translate(0, 0); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.35) 55%, rgba(5,5,5,.9) 100%);
}
.hero__noise {
  position: absolute; inset: 0; z-index: 1;
  opacity: .04;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: var(--nav-h);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #4ade80;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s var(--ease-out) .2s forwards;
  width: fit-content;
  transition: background .2s, border-color .2s;
}
.hero__eyebrow:hover {
  background: rgba(34,197,94,.2);
  border-color: rgba(34,197,94,.5);
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.8s infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.65); }
}
.hero__headline {
  font-size: clamp(56px, 10.5vw, 128px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.045em;
  margin-bottom: 28px;
  overflow: hidden;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: slideUp .85s var(--ease-out) forwards;
}
.hero__line:nth-child(1) { animation-delay: .3s; }
.hero__line:nth-child(2) { animation-delay: .45s; }
.hero__line:nth-child(3) { animation-delay: .6s; }
.hero__line--stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(157,230,0,.55);
  font-style: italic;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--white-muted);
  max-width: 460px;
  line-height: 1.68;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s var(--ease-out) .75s forwards;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s var(--ease-out) .9s forwards;
}

/* Availability badge */
.hero__available {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: 40px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #4ade80;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) 1.1s forwards;
}
.hero__avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.8s infinite;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 56px; right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white-dim);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.4s forwards;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity:1; }
  50%      { transform: scaleY(.3); opacity:.3; }
}

/* Ticker */
.hero__ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42px;
  background: var(--accent);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
  /* Garante que nenhum gap seja visível */
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}
.hero__ticker-track {
  display: flex;
  width: max-content;          /* largura real do conteúdo */
  gap: 0;                      /* gap controlado via padding nos spans */
  white-space: nowrap;
  will-change: transform;
  animation: ticker 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 600;
}
/* Espaçamento entre items via padding — consistente independente do gap */
.hero__ticker-track span {
  padding: 0 40px;
}
.hero__ticker-track .sep {
  padding: 0;
  opacity: .45;
}
.sep { opacity: .45; }
/* -50%: move exatamente 1 set (metade do total duplicado) */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about {
  padding: 120px 40px;
  border-bottom: 1px solid var(--border);
}
.about__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.about__headline {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  margin-top: 4px;
}
.about__headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157,230,0,.55);
}
.about__right { display: flex; flex-direction: column; gap: 20px; }
.about__text {
  font-size: 16px;
  color: var(--white-muted);
  line-height: 1.7;
}
.about__text strong { color: var(--white); font-weight: 700; }
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(157,230,0,.08);
}

/* ══════════════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════════════ */
.skills-section {
  padding: 120px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.skills-section__header {
  max-width: 1400px;
  margin: 0 auto 64px;
}
.skills-section__headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .94;
}
.skills-section__headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157,230,0,.55);
}
.skills-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}
.skill-card {
  background: var(--surface-2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.skill-card:hover::after { transform: scaleX(1); }
.skill-card:hover { background: var(--surface-3); }
.skill-card--large {
  grid-row: span 2;
  padding: 52px 44px;
}
.skill-card__icon { flex-shrink: 0; }
.skill-card__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.skill-card__desc {
  font-size: 13px;
  color: var(--white-muted);
  line-height: 1.65;
  flex: 1;
}
.skill-card__bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.skill-card__fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) .2s;
}
.skill-card.visible .skill-card__fill { transform: scaleX(1); }
.skill-card__level {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   WORK / PROJETOS
══════════════════════════════════════════════════════════ */
.work {
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
}
.work__headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .94;
}
.work__headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157,230,0,.55);
}
.work__sub {
  font-size: 14px;
  color: var(--white-muted);
  max-width: 220px;
  line-height: 1.6;
  text-align: right;
}

.projects { display: flex; flex-direction: column; gap: 2px; }

.project {
  background: var(--surface-2);
  overflow: hidden;
}
.project__img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}
.project--featured .project__img-wrap { height: 520px; }
.projects__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.projects__duo .project__img-wrap { height: 360px; }

.project__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
}
#proj-1 .project__img {
  object-position: center 17%; /* Sobe o enquadramento no PC em 3cm (ajustado de 5%) */
}
.project:hover .project__img { 
  transform: scale(1.04); 
  filter: grayscale(0%);
}

.project__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.project:hover .project__overlay { opacity: 1; }

.project__view-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-spring);
  transform: translateY(8px);
}
.project:hover .project__view-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  transform: translateY(0);
}

.project__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 28px;
  gap: 16px;
}
.project__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.project__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.project__year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-dim);
  letter-spacing: .1em;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials {
  background: var(--surface);
  padding: 120px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.testimonials__headline {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 64px;
}
.testimonials__track {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  min-height: 190px;
}
.testimonial {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial__text {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.58;
  font-style: italic;
  color: var(--white);
}
.testimonial__author { display: flex; flex-direction: column; gap: 4px; }
.testimonial__name   { font-size: 14px; font-weight: 700; }
.testimonial__role   { font-size: 12px; color: var(--white-muted); letter-spacing: .03em; }
.testimonials__nav   { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.testimonials__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background .3s, transform .3s;
}
.testimonials__dot.active { background: var(--accent); transform: scale(1.3); }

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact {
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.contact__headline {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 44px;
}
.contact__headline em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157,230,0,.55);
}
.contact__channels { display: flex; flex-direction: column; gap: 12px; }
.contact__channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--white-muted);
  transition: color .2s;
  width: fit-content;
  position: relative;
}
.contact__channel::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.contact__channel:hover { color: var(--white); }
.contact__channel:hover::after { transform: scaleX(1); }
.contact__channel svg { flex-shrink: 0; }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.form__input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form__input::placeholder { color: var(--white-dim); }
.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157,230,0,.14);
}
.form__select option { background: var(--surface-2); }
.form__textarea { resize: none; }
.form__note {
  font-size: 12px;
  color: var(--white-dim);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  margin-top: -6px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 40px 28px;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.footer__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Monda', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 14px;
}
.footer__copy { font-size: 13px; color: var(--white-muted); line-height: 1.6; }
.footer__nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__nav a { font-size: 13px; color: var(--white-muted); transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--white-dim);
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS & REVEALS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp  { to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { to { opacity:1; transform:translateY(0); } }

[data-reveal], .skill-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].visible, .skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid  { grid-template-columns: 1fr 1fr; }
  .skill-card--large { grid-row: span 1; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .nav__logo    { margin-right: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav          { display: flex; justify-content: space-between; padding: 0 24px; }
  .nav.scrolled {
    background: rgba(5,5,5,.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__logo    { margin-right: 0; justify-self: auto; } /* Restaura layout flex original no mobile */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }

  .hero__content      { padding: 0 24px; padding-top: var(--nav-h); }
  .hero__available    { top: calc(var(--nav-h) + 16px); right: 24px; }
  .hero__scroll-hint  { display: none; }
  .hero__actions      { flex-direction: column; }
  .btn                { justify-content: center; }

  .about       { padding: 80px 24px; }
  .skills-section { padding: 80px 24px; }
  .skills-grid { grid-template-columns: 1fr; }

  .work        { padding: 80px 24px; }
  .work__header { flex-direction: column; align-items: flex-start; }
  .work__sub   { text-align: left; max-width: 100%; }
  .project--featured .project__img-wrap { height: 260px; }
  #proj-1 .project__img {
    object-position: center 90%; /* Sobe mais 20% no mobile */
  }
  .projects__duo { grid-template-columns: 1fr; }
  .projects__duo .project__img-wrap { height: 260px; }

  .testimonials { padding: 80px 24px; }
  .testimonials__track { min-height: 240px; }

  .contact     { padding: 80px 24px; }
  .form__row   { grid-template-columns: 1fr; }

  .footer      { padding: 48px 24px 24px; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__bg-img-wrap { animation: none; }
  .hero__bg-img { transform: none !important; }
  .form__input { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 52px; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], .skill-card { opacity:1; transform:none; }
  .hero__ticker-track { animation: none; }
}
