/* =========================================================
   Éder Siqueira — Advogado
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --line: rgba(255, 255, 255, .1);
  --text: #ecebe6;
  --muted: #9a9993;
  --accent: #f2d21b;
  --accent-ink: #14130a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Figtree", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

/* grão sutil sobre toda a página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--accent);
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title--xl { font-size: clamp(2.6rem, 8vw, 6rem); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(242, 210, 27, .55); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { padding: 10px 16px; font-size: .8rem; }
.btn--lg { padding: 18px 30px; font-size: 1rem; }

.link-quiet {
  font-size: .9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-quiet:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* o desfoque fica num pseudo-elemento: backdrop-filter no próprio header
   prenderia o menu mobile (position: fixed) dentro dele */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .3s;
}
.header--solido::before { opacity: 1; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .04em;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.menu-aberto .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-aberto .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(56px, 9vh, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero__name {
  position: absolute;
  top: calc(var(--header-h) - 1vw);
  left: 0; right: 0;
  z-index: -2;
  font-family: var(--display);
  font-size: 23.5vw;
  line-height: .95;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  user-select: none;
  animation: nameIn 1.6s var(--ease) both;
}

.hero__photo {
  position: absolute;
  right: 0; bottom: 0;
  z-index: -1;
  width: 74%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 52%), linear-gradient(to top, transparent 0%, #000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000 52%), linear-gradient(to top, transparent 0%, #000 32%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: photoIn 1.4s var(--ease) .15s both;
}

/* escurece o topo para o menu continuar legível sobre a foto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 11, 12, .85), transparent);
  pointer-events: none;
}

.hero__content { position: relative; }
.hero__content > * { animation: rise .9s var(--ease) both; }
.hero__content > :nth-child(1) { animation-delay: .35s; }
.hero__content > :nth-child(2) { animation-delay: .45s; }
.hero__content > :nth-child(3) { animation-delay: .55s; }
.hero__content > :nth-child(4) { animation-delay: .65s; }

.hero__title {
  max-width: 11ch;
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__lead {
  max-width: 40ch;
  margin-top: 22px;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 34px;
}

.seal {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 110px);
  width: 118px; height: 118px;
  display: grid;
  place-items: center;
  animation: rise .9s var(--ease) .8s both;
}
.seal svg {
  position: absolute;
  inset: 0;
  animation: spin 26s linear infinite;
}
.seal text {
  font-family: var(--sans);
  font-size: 9.2px;
  letter-spacing: .2em;
  fill: var(--text);
}
.seal__arrow { font-size: 1.4rem; color: var(--accent); }

/* ---------- Credenciais ---------- */
.creds { border-block: 1px solid var(--line); }
.creds__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 26px;
}
.creds__list li {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .2em;
  color: var(--muted);
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(80px, 12vw, 150px); }

/* Sobre */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.about__figure {
  position: relative;
  margin: 0;
}
.about__figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  z-index: -1;
}
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.9);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  mask-image: linear-gradient(to top, transparent 0%, #000 22%);
}
.about__text .title { margin: 18px 0 28px; }
.about__text > p:not(.eyebrow) { color: var(--muted); max-width: 56ch; }
.about__text > p + p { margin-top: 16px; }

.roles { margin-top: 40px; border-top: 1px solid var(--line); }
.roles li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.roles__k {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.roles__v { font-size: .95rem; }

/* Formação */
.edu { background: var(--bg-2); border-block: 1px solid var(--line); }
.edu__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 96px);
}
.edu__intro .title { margin-top: 18px; }
.edu__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }

.edu__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.edu__list li:first-child { padding-top: 0; }
.edu__degree { display: block; font-size: 1.05rem; font-weight: 500; }
.edu__school { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.edu__mark {
  flex: none;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
  transition: color .35s var(--ease), -webkit-text-stroke-color .35s var(--ease);
}
.edu__list li:hover .edu__mark { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* Pesquisa */
.research__head { text-align: center; }
.research__head .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--accent);
}
.research__head .title { margin-top: 18px; }

.research__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
}
.research__grid li {
  grid-column: span 2;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  background: var(--bg);
  transition: background .3s;
}
.research__grid li:nth-child(n + 4) { grid-column: span 3; }
.research__grid li:hover { background: var(--bg-2); }
.research__n {
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--accent);
}
.research__grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Contato */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--accent);
}
.contact .title { margin-top: 20px; }
.contact__lead { margin: 20px 0 36px; color: var(--muted); }

.contact__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  text-align: left;
}
.contact__list > div { padding: 28px 24px 0 0; }
.contact__list > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.contact__list dt {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list dd { margin-top: 10px; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__list a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact__list a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: .82rem;
  color: var(--muted);
}
.footer .brand { color: var(--text); }

/* ---------- Animações ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js li.reveal:nth-child(2), .js div.reveal:nth-child(2) { transition-delay: .08s; }
.js li.reveal:nth-child(3), .js div.reveal:nth-child(3) { transition-delay: .16s; }
.js li.reveal:nth-child(4) { transition-delay: .24s; }
.js li.reveal:nth-child(5) { transition-delay: .32s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes nameIn { from { opacity: 0; letter-spacing: .06em; } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-size: 1rem; color: var(--text); }
  .menu-aberto .nav { opacity: 1; visibility: visible; }
  .menu-aberto { overflow: hidden; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 270px); }
  .hero__name { top: calc(var(--header-h) + 8px); font-size: 24vw; }
  .hero__photo {
    width: 100%;
    height: 430px;
    top: var(--header-h);
    bottom: auto;
    object-position: 74% 0;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 55%);
    mask-image: linear-gradient(to top, transparent 0%, #000 55%);
  }
  .hero__title { max-width: 12ch; }
  .seal { display: none; }

  .creds__list { justify-content: center; }
  .creds__list li { font-size: 1rem; }

  .about__grid, .edu__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 440px; margin-right: 18px; }
  .edu__intro { position: static; }

  .research__grid { grid-template-columns: 1fr; }
  .research__grid li, .research__grid li:nth-child(n + 4) { grid-column: auto; min-height: 0; }

  .contact__list { grid-template-columns: 1fr; }
  .contact__list > div, .contact__list > div + div {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .roles li { grid-template-columns: 1fr; gap: 6px; }
  .edu__list li { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
}

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