@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fcfcfb;
  --warm-gray: #ddd8d3;
  --ink: #060604;
  --heading: #474747;
  --ochre: #c19b6b;
  --red: #8a1818;
  --accent-line: #a84242;
  --page-pad: clamp(2rem, 5.6vw, 4.8rem);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .7rem;
  left: .7rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.4rem, 3vw, 3rem);
  color: white;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(252, 252, 251, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(6, 6, 4, .12);
  backdrop-filter: blur(12px);
}
.site-header__brand {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav a {
  position: relative;
  padding: 1.35rem 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .95rem;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after { right: 0; }
.menu-toggle { display: none; }

section[id], footer[id] { scroll-margin-top: 64px; }

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote { margin-top: 0; }

.fold {
  position: relative;
  width: 100%;
  min-height: max(100svh, 690px);
  overflow: hidden;
}

.section-shell {
  width: 100%;
  max-width: 1366px;
  min-height: inherit;
  margin: 0 auto;
  padding: 2.6rem var(--page-pad);
  position: relative;
  z-index: 2;
}

h2 {
  color: var(--heading);
  font-size: clamp(2rem, 3.25vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.hero {
  min-height: max(100svh, 700px);
  background: url("imagens/1-Hero (primeira dobra).webp") center center / cover no-repeat;
  color: white;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 10, .7) 0%, rgba(8, 9, 10, .55) 50%, rgba(8, 9, 10, .28) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1366px;
  margin: 0 auto;
  padding: 4.8rem var(--page-pad);
}

.eyebrow {
  margin-bottom: clamp(4.5rem, 13vh, 8.5rem);
  font-size: clamp(.72rem, 1.15vw, .98rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.15rem, 3.9vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.project {
  display: grid;
  grid-template-columns: 35.5% 64.5%;
  background: var(--warm-gray);
}

.project__image {
  min-height: inherit;
  background: url("imagens/2-Nosso projeto (segunda dobra).webp") center 26% / cover no-repeat;
}

.project__copy {
  align-self: center;
  max-width: 850px;
  padding: 3rem clamp(2.4rem, 5vw, 5.8rem);
}

.project__copy h2 { margin-bottom: 2.6rem; }
.project__copy p {
  margin-bottom: 2rem;
  font-size: clamp(.95rem, 1.28vw, 1.08rem);
  line-height: 1.38;
  text-align: justify;
}

.researchers { background: var(--paper); }
.researchers h2 { margin: 0 0 clamp(2rem, 5vh, 2.8rem); }

.researchers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vh, 2.1rem) clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.researcher {
  display: grid;
  grid-template-columns: clamp(138px, 11vw, 154px) 1fr;
  gap: clamp(1.15rem, 2vw, 1.7rem);
  min-width: 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(138, 24, 24, .32);
  text-align: left;
}
.researcher img {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.researcher h3 {
  margin-bottom: .65rem;
  font-size: clamp(.9rem, 1.08vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
}
.researcher h3 span {
  display: block;
  margin-bottom: .15rem;
  color: var(--red);
  font-size: .68rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
/* Link para Currículo Lattes dos pesquisadores */
.researcher__name {
  position: relative;
  color: var(--red);
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transform-origin: left center;
  transition: transform .24s ease, color .24s ease;
}

.researcher__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.22rem;
  width: 100%;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}

.researcher__name:hover,
.researcher__name:focus-visible {
  color: var(--red);
  transform: scale(1.035);
}

.researcher__name:hover::after,
.researcher__name:focus-visible::after {
  transform: scaleX(1);
}

.researcher__name:focus-visible {
  outline: 2px solid rgba(138, 24, 24, .45);
  outline-offset: 5px;
  border-radius: 2px;
}

.researcher p {
  margin: 0;
  font-size: clamp(.78rem, .88vw, .84rem);
  line-height: 1.5;
}

.ornamented::before,
.ornamented::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 230px;
  height: 190px;
  opacity: .55;
  background:
    radial-gradient(ellipse at 55% 44%, transparent 36%, var(--accent-line) 37%, transparent 38%),
    radial-gradient(ellipse at 42% 57%, transparent 46%, var(--accent-line) 47%, transparent 48%),
    radial-gradient(ellipse at 66% 62%, transparent 55%, var(--accent-line) 56%, transparent 57%);
}
.ornamented::before { right: -105px; top: -50px; transform: rotate(18deg); }
.ornamented::after { left: -125px; bottom: -60px; transform: rotate(-18deg); }

.characters { background: var(--warm-gray); }
.characters__layout {
  display: block;
}
.characters h2 { width: 62%; margin: .15rem 0 2.2rem; max-width: 720px; }
.characters__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.characters__column { display: grid; gap: 1rem; }
.character {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.35rem;
  align-items: center;
  min-height: 126px;
  padding: .2rem 0 1rem;
  border-bottom: 1px solid rgba(6, 6, 4, .18);
}
.character img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.character h3 { margin-bottom: .38rem; font-size: 1.08rem; line-height: 1.2; }
.character p { margin: 0; font-size: .9rem; line-height: 1.46; }

.facts { background: var(--paper); }
.facts h2 { margin-bottom: 1.7rem; }
.facts__grid {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) 1.45fr;
  grid-template-rows: auto auto;
  gap: clamp(1.7rem, 3.5vw, 3.7rem) clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.facts__image img { width: 100%; border: 8px solid #403a2e; }
.fact { font-size: clamp(.76rem, 1.08vw, .95rem); line-height: 1.34; text-align: justify; }
.fact h3 { margin-bottom: .35rem; font-size: 1rem; line-height: 1.22; text-align: center; }
.fact p { margin-bottom: .65rem; }
.fact--lead { text-align: center; }
.attribution { font-weight: 700; text-align: center; text-transform: none; }

.ideas { background: var(--paper); }
.ideas__layout {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(3rem, 7vw, 7.2rem);
  align-items: center;
}
.ideas h2 { margin-bottom: 1.6rem; }
.ideas__visual > p, .ideas__copy > p { font-size: clamp(.83rem, 1.18vw, 1.02rem); line-height: 1.35; text-align: justify; }
.ideas__visual img { width: 100%; margin: 2rem 0 1rem; }
.ideas blockquote { margin: 0; font-size: .8rem; line-height: 1.3; }
.ideas__copy h3 { margin: 1.5rem 0 1.2rem; color: var(--heading); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 400; letter-spacing: -.04em; }

.literature { background: var(--ochre); }
.literature__layout {
  display: grid;
  grid-template-columns: minmax(330px, 43%) 1fr;
  grid-template-rows: auto 1fr;
  gap: 1.5rem clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 0;
}
.literature h2 { grid-column: 1 / -1; margin: 0; text-align: center; color: #3f3f3f; }
.literature__poster { align-self: end; max-height: calc(max(100svh, 690px) - 105px); width: 100%; object-fit: contain; object-position: left bottom; }
.literature__copy { align-self: start; margin-top: 5rem; text-align: center; font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.35; }
.shell-art {
  position: absolute;
  right: -1.5%;
  bottom: -12%;
  width: min(42vw, 520px);
  height: auto;
  transform: rotate(-23deg);
  filter: sepia(.08) saturate(.8) drop-shadow(0 18px 25px rgba(59, 41, 24, .2));
  pointer-events: none;
}

.journey { background: var(--warm-gray); }
.journey .section-shell { padding-top: 2rem; padding-bottom: 2rem; }
.journey h2 { margin: 0 0 2rem; }
.journey__grid {
  width: min(1000px, 90%);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}
.journey figure { margin: 0; text-align: center; }
.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.journey img { width: 100%; aspect-ratio: 1.25; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.gallery-trigger:hover img,
.gallery-trigger:focus-visible img { transform: scale(1.018); filter: contrast(1.03); }
.gallery-trigger:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.journey figcaption { margin-top: .55rem; font-size: .74rem; font-weight: 600; line-height: 1.2; }

.footer { background: var(--red); color: white; }
.footer__layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 9rem;
  padding-top: 4.6rem;
  padding-bottom: 4rem;
}
.footer h2 { grid-column: 1; grid-row: 1; color: white; margin: 0; font-size: clamp(2.5rem, 4vw, 3.6rem); }
.footer__contact { grid-column: 1; grid-row: 2 / 4; align-self: center; display: flex; flex-direction: column; align-items: flex-start; font-size: .82rem; }
.contact-button { margin-bottom: 2rem; padding: .7rem 1.35rem; border: 1px solid rgba(255,255,255,.8); text-decoration: none; text-transform: uppercase; font-size: .67rem; letter-spacing: .03em; }
.contact-button:hover, .contact-button:focus-visible { background: white; color: var(--red); }
.footer h3 { margin: 0 0 .2rem; font-size: 1rem; }
.footer__contact > a:not(.contact-button) { text-decoration: none; line-height: 1.4; }
.footer blockquote { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.45; text-align: justify; }
.footer__institutions { grid-column: 2; grid-row: 3; align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.footer__institutions p { margin: .4rem 0 0; max-width: 190px; font-size: .75rem; line-height: 1.25; }

dialog {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}
dialog::backdrop { background: rgba(20, 16, 13, .76); backdrop-filter: blur(5px); }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: .7rem;
  right: .8rem;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: rgba(252, 252, 251, .9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox {
  width: min(1100px, calc(100% - 2rem));
  overflow: visible;
  color: white;
  background: transparent;
  box-shadow: none;
}
.lightbox .dialog-close { top: -1rem; right: 0; color: white; background: rgba(0, 0, 0, .45); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figure img { width: 100%; max-height: calc(100svh - 7rem); object-fit: contain; }
.lightbox figcaption { margin: .8rem auto 0; font-size: .85rem; font-weight: 600; }
.lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 60px;
  border: 1px solid rgba(255,255,255,.6);
  color: white;
  background: rgba(0,0,0,.36);
  font-size: 2.2rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: .6rem; }
.lightbox__nav--next { right: .6rem; }
.lightbox__nav:hover,
.lightbox__nav:focus-visible { background: rgba(0,0,0,.68); }

.reveal, .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.is-visible { opacity: 1; transform: none; }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .1s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .15s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .2s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .25s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .3s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .35s; }

@media (max-width: 1050px) {
  .fold { min-height: auto; }
  .section-shell { min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
  .hero { min-height: 760px; }
  .project { min-height: 780px; }
  .researchers__grid { gap: 2rem 2.6rem; }
  .researcher { grid-template-columns: 112px 1fr; gap: 1rem; }
  .researcher img { width: 112px; }
  .researcher h3 { min-height: auto; }
  .researcher p { font-size: .72rem; }
  .characters h2 { max-width: 600px; }
  .characters__columns { gap: 2.5rem; }
  .facts__grid { grid-template-columns: .85fr 1.15fr; }
  .literature__poster { max-height: 650px; }
  .footer { min-height: 700px; }
}

@media (max-width: 760px) {
  :root { --page-pad: 1.4rem; }
  h2 { font-size: 2.15rem; }
  .site-header { min-height: 58px; padding: 0 1.15rem; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 58px 0 auto;
    display: grid;
    gap: 0;
    padding: .8rem 1.2rem 1.3rem;
    color: var(--ink);
    background: rgba(252, 252, 251, .98);
    box-shadow: 0 18px 34px rgba(0,0,0,.12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(6,6,4,.1); font-size: .76rem; }
  .site-nav a::after { display: none; }
  .hero { min-height: 690px; background-position: 54% center; }
  .hero__shade { background: rgba(8, 9, 10, .58); }
  .hero__content { padding-top: 4.6rem; }
  .eyebrow { margin-bottom: 7.5rem; font-size: .68rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.75rem); }
  .project { display: block; }
  .project__image { min-height: 470px; background-position: center 23%; }
  .project__copy { padding: 2.7rem var(--page-pad) 3.5rem; }
  .project__copy h2 { margin-bottom: 1.8rem; }
  .project__copy p { font-size: .94rem; line-height: 1.55; text-align: left; }
  .researchers__grid { grid-template-columns: 1fr; gap: 0; }
  .researchers h2 { margin-bottom: 2rem; }
  .researcher { grid-template-columns: 100px 1fr; gap: 1rem; padding: 1.2rem 0; }
  .researcher img { width: 100px; }
  .researcher h3 { font-size: .9rem; }
  .researcher p { font-size: .78rem; line-height: 1.5; }
  .characters__columns { grid-template-columns: 1fr; gap: 1.45rem; }
  .characters h2 { width: 100%; }
  .character { grid-template-columns: 86px 1fr; gap: 1rem; min-height: auto; }
  .character img { width: 86px; height: 86px; }
  .character h3 { font-size: .95rem; }
  .character p { font-size: .8rem; line-height: 1.45; }
  .facts__grid, .ideas__layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .facts__image { width: min(100%, 430px); margin: 0 auto; }
  .fact { font-size: .9rem; line-height: 1.55; text-align: left; }
  .fact--lead, .fact h3 { text-align: left; }
  .ideas__layout { gap: 2.5rem; }
  .ideas__visual > p, .ideas__copy > p { font-size: .92rem; line-height: 1.55; text-align: left; }
  .literature__layout { display: flex; flex-direction: column; padding-bottom: 0; }
  .literature h2 { order: 0; }
  .literature__copy { order: 1; margin: 1rem 0; padding: 0 .5rem; }
  .literature__poster { order: 2; width: min(88%, 500px); align-self: flex-start; max-height: none; }
  .shell-art { width: 255px; height: auto; right: -18%; bottom: -2%; }
  .journey .section-shell { padding-right: 0; }
  .journey__grid {
    display: flex;
    width: 100%;
    gap: 1rem;
    padding: 0 1.4rem 1.1rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
  }
  .journey__grid figure { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; }
  .journey figcaption { font-size: .7rem; }
  .footer__layout { display: flex; flex-direction: column; gap: 3rem; padding-top: 3.8rem; }
  .footer__contact { order: 2; }
  .footer blockquote { order: 1; }
  .footer__institutions { order: 3; gap: 1.5rem; }
  .footer { min-height: auto; }
  .lightbox { width: calc(100% - 1rem); }
  .lightbox__nav { width: 42px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {

  .researcher__name,
  .researcher__name::after { transition: none; }
  .researcher__name:hover,
  .researcher__name:focus-visible { transform: none; }
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
}
