/* ── Design tokens (inspired by portrait) ── */
:root {
  --bg: #0d0d0f;
  --bg-alt: #141418;
  --bg-card: rgba(22, 22, 26, 0.72);
  --surface: #1a1a1f;
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --bronze: #b8956a;
  --bronze-light: #d4b896;
  --bronze-dark: #8c6d46;
  --accent: #c5a059;
  --border: rgba(184, 149, 106, 0.2);
  --glow: rgba(197, 160, 89, 0.35);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --nav-h: 72px;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.accent { color: var(--bronze); }

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

body:hover .cursor-glow { opacity: 0.6; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.nav--scrolled {
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--bronze-light);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  color: var(--bronze-light) !important;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: rgba(184, 149, 106, 0.12);
  border-color: var(--bronze) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__stripe {
  position: absolute;
  width: 140%;
  height: 120px;
  transform: rotate(-35deg);
  opacity: 0.12;
  will-change: transform;
}

.hero__stripe--1 {
  top: 15%;
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--bronze-dark), transparent);
}

.hero__stripe--2 {
  top: 45%;
  left: -10%;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(140, 109, 70, 0.5), transparent);
  opacity: 0.18;
}

.hero__stripe--3 {
  bottom: 10%;
  right: -30%;
  background: linear-gradient(90deg, transparent, #2a2520, transparent);
}

.hero__geo--circle {
  position: absolute;
  top: 12%;
  left: 5%;
  width: 280px;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.35;
  will-change: transform;
}

.hero__geo--rect {
  position: absolute;
  bottom: 20%;
  right: 8%;
  width: 200px;
  height: 200px;
  border: 1px solid var(--border);
  transform: rotate(15deg);
  opacity: 0.25;
  will-change: transform;
}

.hero__dots {
  position: absolute;
  top: 30%;
  right: 15%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--bronze) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.4;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: min(1140px, 100%);
  margin-inline: auto;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero__org {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero__desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--bronze), var(--bronze-dark));
  color: #0d0d0f;
  border: none;
  box-shadow: 0 4px 24px rgba(184, 149, 106, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184, 149, 106, 0.45);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--bronze-light);
}

.btn--ghost:hover {
  background: rgba(184, 149, 106, 0.1);
  border-color: var(--bronze);
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bronze-light);
  line-height: 1;
}

.stat__num::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--bronze);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  display: block;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  max-width: 420px;
}

.hero__img {
  width: 100%;
  border-radius: var(--radius);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}

.hero__frame-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
  transition: border-color var(--transition);
}

.hero__scroll:hover { border-color: var(--bronze); }

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--bronze);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ── Sections ── */
.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section--alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.section__subtitle {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.about__text strong {
  color: var(--text);
  font-weight: 600;
}

.testimonial {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--bronze);
  opacity: 0.3;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  color: var(--bronze-light);
}

.testimonial footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--bronze), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 12px var(--glow);
  transform: translateX(-4px);
}

.timeline__item time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.timeline__item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline__org {
  font-size: 0.9rem;
  color: var(--bronze-light);
  margin-bottom: 0.5rem;
}

.timeline__item > p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 149, 106, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bronze-light);
  background: rgba(184, 149, 106, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.card__list {
  margin-top: 0.75rem;
}

.card__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card__list li:last-child { border-bottom: none; }

/* ── Skills ── */
.skills__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--bronze-light);
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skills__tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: default;
}

.skills__tags span:hover {
  color: var(--bronze-light);
  border-color: var(--bronze);
  background: rgba(184, 149, 106, 0.08);
  transform: scale(1.05);
}

/* ── Projects ── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--bronze), var(--bronze-dark));
  transition: height 0.5s ease;
}

.project:hover::before { height: 100%; }

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 149, 106, 0.4);
}

.project__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bronze);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.project h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project__tech {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

.project__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bronze-light);
  transition: color var(--transition);
}

.project__link:hover { color: var(--accent); }

/* ── Contact ── */
.contact {
  background: radial-gradient(ellipse at bottom, rgba(140, 109, 70, 0.08) 0%, transparent 60%);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact__card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__card:hover {
  border-color: var(--bronze);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(184, 149, 106, 0.15);
}

.contact__card--static { cursor: default; }

.contact__card--static:hover {
  transform: none;
  box-shadow: none;
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bronze);
}

.contact__value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__credit {
  color: var(--bronze);
  opacity: 0.7;
}

/* ── Reveal: conteúdo sempre visível; animação só desloca levemente ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--delay { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.visible) {
    transform: translateY(20px);
  }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__frame { max-width: 320px; margin-inline: auto; }

  .grid-2,
  .cards,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 13, 15, 0.97);
    backdrop-filter: blur(16px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) { opacity: 0; }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
