:root {
  --white: #ffffff;
  --paper: #f6f9fc;
  --paper-blue: #edf5fb;
  --ink: #142336;
  --navy: #062153;
  --blue: #073f8c;
  --blue-mid: #0874c9;
  --cyan: #16a9e1;
  --cyan-soft: #d8f1fb;
  --muted: #5d7086;
  --line: rgba(6, 33, 83, .16);
  --line-blue: rgba(8, 116, 201, .24);
  --serif: "Space Grotesk", Arial, sans-serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --header-h: 80px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(4, 35, 73, .1);
  --ease: cubic-bezier(.2, .72, .2, 1);
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--cyan-soft);
  color: var(--navy);
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(22, 169, 225, .6);
  outline-offset: 3px;
}

.container {
  width: min(1280px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: .7rem 1rem;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.reading-progress {
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  will-change: width;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.header-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-lockup {
  width: 174px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.25vw, 1.4rem);
}

.nav a {
  position: relative;
  color: #40556d;
  font-size: .73rem;
  font-weight: 600;
  transition: color .2s ease;
}

.nav > a:not(.nav-social):not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.55rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.nav > a:hover,
.nav > a.active { color: var(--blue); }

.nav > a:hover::after,
.nav > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.nav-social svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.nav-cta {
  padding: .68rem .95rem;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-cta:hover {
  border-color: var(--cyan);
  background: var(--blue-mid);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease;
}

body.header-scrolled .site-header {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 32px rgba(5, 36, 77, .08);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 14%, rgba(22, 169, 225, .14), transparent 27%),
    radial-gradient(circle at 9% 88%, rgba(8, 116, 201, .08), transparent 30%),
    linear-gradient(135deg, #f9fcfe, #edf6fc);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -34%;
  right: -12%;
  width: min(720px, 58vw);
  aspect-ratio: 1;
  border: 2px solid rgba(8, 116, 201, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(22, 169, 225, .035),
    0 0 0 144px rgba(6, 33, 83, .025);
}

.hero::after {
  content: "texto";
  position: absolute;
  z-index: -1;
  right: -.04em;
  bottom: -.19em;
  color: rgba(6, 33, 83, .035);
  font-family: var(--serif);
  font-size: clamp(9rem, 22vw, 23rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.08em;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-content {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem);
  padding-block: clamp(4rem, 8vh, 7rem);
}

.hero-text {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 1.3rem;
  color: var(--blue-mid);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  display: none;
}

h1,
h2,
h3,
p { overflow-wrap: break-word; }

h1,
h2,
h3 { margin-top: 0; }

h1,
h2 { font-family: var(--serif); }

h1 {
  max-width: 10.5ch;
  margin-bottom: 1.6rem;
  color: var(--navy);
  font-size: clamp(3.8rem, 6.35vw, 6.8rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.06em;
}

h1 span {
  display: block;
  animation: heroTextIn .85s var(--ease) both;
}

h1 span:nth-child(2) { animation-delay: .1s; }
h1 span:nth-child(3) { animation-delay: .2s; }

h1 em {
  position: relative;
  color: var(--blue-mid);
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.02em;
  left: .02em;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn .75s .75s var(--ease) forwards;
}

.hero-copy {
  max-width: 58ch;
  margin: 0;
  color: #50657b;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.75;
  animation: fadeUp .7s .3s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  animation: fadeUp .7s .42s var(--ease) both;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 63, 140, .2);
}

.btn-primary:hover {
  border-color: var(--blue-mid);
  background: var(--blue-mid);
  box-shadow: 0 16px 34px rgba(8, 116, 201, .24);
}

.btn-ghost { background: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: var(--white); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: clamp(2.8rem, 5vh, 4.5rem) 0 0;
  border-top: 1px solid var(--line);
  animation: fadeUp .7s .54s var(--ease) both;
}

.hero-facts div { padding: 1rem .8rem 0 0; }

.hero-facts div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: #7890a4;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: .25rem 0 0;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}

.hero-archive {
  position: relative;
  min-height: min(650px, 70vh);
}

.hero-archive::before {
  content: "";
  position: absolute;
  top: 2%;
  right: 3%;
  width: 72%;
  height: 76%;
  border: 1px solid rgba(8, 116, 201, .2);
  border-radius: 120px 12px 120px 12px;
  transform: translate(22px, -18px);
}

.hero-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfeaf2;
  box-shadow: 0 26px 65px rgba(4, 35, 73, .18);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.02);
  transition: filter .45s ease, transform .75s var(--ease);
}

.hero-frame:hover img {
  filter: saturate(1);
  transform: scale(1.025);
}

.hero-frame-main {
  z-index: 2;
  top: 8%;
  right: 0;
  width: 82%;
  height: 72%;
}

.hero-frame-main::after {
  content: "GETEXTO · ACERVO";
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .55rem .75rem;
  border-radius: 6px 0 0;
  background: rgba(6, 33, 83, .9);
  color: #fff;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .06em;
}

.hero-frame-detail {
  z-index: 4;
  bottom: 3%;
  left: 0;
  width: 39%;
  aspect-ratio: 1 / 1.1;
  border: 7px solid #f1f7fb;
}

.hero-word-card {
  position: absolute;
  z-index: 5;
  right: 1%;
  bottom: 5%;
  width: 49%;
  padding: 1.2rem 1.3rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  box-shadow: 0 20px 45px rgba(5, 43, 95, .22);
  animation: wordCardFloat 5s ease-in-out infinite;
}

.hero-word-card span {
  color: #9ddff7;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-word-card strong {
  display: block;
  margin: .15rem 0 .25rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}

.hero-word-card p {
  margin: 0;
  color: #c6e8f6;
  font-size: .62rem;
}

.hero-archive-caption {
  display: none;
}

.hero-archive-mark {
  position: absolute;
  z-index: 6;
  top: -2%;
  left: 3%;
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: clamp(6rem, 10vw, 10rem);
  line-height: 1;
  text-shadow: 0 10px 28px rgba(8, 116, 201, .16);
}

/* Research topics */
.research-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: var(--navy);
  color: #fff;
}

.research-ticker-track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: ticker 38s linear infinite;
}

.research-ticker-group {
  box-sizing: border-box;
  min-width: 100vw;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  padding: 1rem 2rem 1rem 0;
}

.research-ticker span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
}

.research-ticker b {
  color: var(--cyan);
  font-size: .68rem;
}

/* Sections */
.section {
  position: relative;
  padding-block: clamp(4.75rem, 7vw, 7.5rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section-surface { background: var(--white); }

.section::before {
  display: none;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section .container::before {
  display: none;
}

#sobre .container::before { content: "01 / APRESENTAÇÃO"; }
#pesquisadores .container::before { content: "02 / EQUIPE"; }
#publicacoes .container::before { content: "03 / PRODUÇÃO"; }
#noticias .container::before { content: "04 / ATUALIZAÇÕES"; }
#videos .container::before { content: "05 / AUDIOVISUAL"; }
#galeria .container::before { content: "06 / REGISTROS"; }

.section-head {
  max-width: 1000px;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-head h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.05em;
}

.section-head h2::after {
  display: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem clamp(3rem, 7vw, 8rem);
}

#sobre .section-head { margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
#sobre .section-head h2 { max-width: 18ch; }

#sobre .intro-block {
  position: relative;
  margin-left: 0;
  counter-reset: paragraph;
}

#sobre .intro-block::before {
  display: none;
}

#sobre .intro-block p {
  position: relative;
  margin: 0;
  padding: 0 0 2rem 2.2rem;
  color: #435970;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.82;
  counter-increment: paragraph;
}

#sobre .intro-block p::before {
  content: "0" counter(paragraph);
  position: absolute;
  top: .18rem;
  left: 0;
  color: var(--blue-mid);
  font-family: var(--mono);
  font-size: .6rem;
}

/* Researchers */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: .75rem .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(4, 35, 73, .045);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease;
}

.card::after {
  content: "";
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: right;
  transition: opacity .3s ease, transform .3s ease;
}

.card:hover {
  z-index: 2;
  border-color: rgba(8, 116, 201, .35);
  box-shadow: 0 20px 42px rgba(4, 35, 73, .12);
  transform: translateY(-7px);
}

.card:hover::after { opacity: 1; transform: scaleX(1); }

.card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper-blue);
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, transparent 65%, rgba(6,33,83,.08));
  pointer-events: none;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.82);
  transition: filter .4s ease, transform .6s var(--ease);
}

.card:hover .card-photo img { filter: saturate(1); transform: scale(1.025); }

.card h3 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.55;
}

#pesquisadores-lista .researcher-bio,
#pesquisadores-lista .card-link { display: none; }

#pesquisadores-lista .researcher-summary {
  display: -webkit-box;
  margin-bottom: 1rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#pesquisadores-lista .researcher-open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding: .5rem .7rem;
  border: 1px solid var(--line-blue);
  border-radius: 5px;
  background: var(--paper-blue);
  color: var(--blue);
  font-size: .66rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

#pesquisadores-lista .researcher-open::after { content: "↗"; }

#pesquisadores-lista .researcher-open:hover {
  border-color: var(--blue-mid);
  background: var(--blue);
  color: #fff;
}

.section-note {
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: .76rem;
}

#pesquisadores .section-note { text-align: right; }
.section-note a { color: var(--blue); border-bottom: 1px solid currentColor; }

/* Researcher modal */
.researcher-modal[hidden] { display: none; }

.researcher-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.researcher-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 45, .72);
  backdrop-filter: blur(10px);
}

.researcher-modal-dialog {
  position: relative;
  width: min(1000px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-columns: minmax(270px, 38%) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0, 20, 50, .32);
}

.researcher-modal-media {
  min-height: 540px;
  background: var(--paper-blue);
}

.researcher-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.researcher-modal-content {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(2.2rem, 5vw, 4.2rem);
}

.researcher-modal-label,
.researcher-modal-counter {
  color: var(--blue-mid);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.researcher-modal-label { margin: 0 0 .7rem; }
.researcher-modal-counter { margin: .65rem 0 0; }

.researcher-modal-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
}

.researcher-modal-bio {
  margin: 1.8rem 0 0;
  color: #50657b;
  font-size: .88rem;
  line-height: 1.75;
}

.researcher-modal-actions,
.researcher-modal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}

.researcher-modal-actions:empty { display: none; }

.researcher-modal-action,
.researcher-modal-nav button,
.researcher-modal-close {
  border: 1px solid var(--line-blue);
  border-radius: 6px;
  background: var(--paper-blue);
  color: var(--blue);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
}

.researcher-modal-action,
.researcher-modal-nav button { padding: .65rem .9rem; }

.researcher-modal-action:hover,
.researcher-modal-nav button:hover { background: var(--blue); color: #fff; }

.researcher-modal-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

body.researcher-modal-open { overflow: hidden; }

/* Publications */
.publication-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.publication-list > article {
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.publication-list .pub-title-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.publication-list .pub-title-highlight::after {
  content: "";
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.publication-list ul { margin: 0; padding: 0; list-style: none; }

.book-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.3rem);
}

.book-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0 0 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-blue);
  box-shadow: 0 14px 30px rgba(4, 35, 73, .12);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}

.book-item:hover .book-cover {
  box-shadow: 0 22px 42px rgba(4, 35, 73, .18);
  transform: translateY(-6px);
}

.book-cover a,
.book-cover img { width: 100%; height: 100%; }
.book-cover img { object-fit: cover; transition: transform .45s var(--ease); }
.book-cover:hover img { transform: scale(1.02); }

.book-info h4 {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.2;
}

.book-info p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.publication-list a { color: var(--blue-mid); }

.thesis-list,
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.thesis-item,
.article-item {
  min-width: 0;
  margin: 0;
  padding: clamp(1.3rem, 2.4vw, 2.1rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  transition: background .25s ease;
}

.thesis-item:hover,
.article-item:hover { background: var(--white); }

.thesis-item h4,
.article-item h4 {
  margin: 0 0 .65rem;
  color: var(--blue-mid);
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.thesis-title,
.article-full {
  margin: 0 0 .7rem;
  color: #344b63;
  font-size: .88rem;
  line-height: 1.65;
}

.thesis-meta,
.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.55;
}

.article-full a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.thesis-item > a,
.article-item .article-action {
  display: inline-flex;
  margin-top: .9rem;
  padding-bottom: .13rem;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 700;
}

/* News */
.news-portal { display: grid; gap: 1rem; }

.news-portal.news-banner-mode {
  position: relative;
  display: block;
  min-height: 600px;
}

.news-portal.news-banner-mode .news-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .5s var(--ease);
}

.news-portal.news-banner-mode .news-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.news-carousel {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #03132d;
}

.news-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.news-slide.is-active { opacity: 1; }

.news-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-card-wide .news-slide img { object-fit: cover; }

.news-content {
  align-self: center;
  max-height: 650px;
  overflow-y: auto;
  padding: clamp(2.3rem, 5vw, 5rem);
}

.news-content time {
  display: block;
  margin-bottom: 1.1rem;
  color: #8edcf6;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.news-content h3 {
  margin: 0 0 1.3rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.news-content p {
  margin: 0 0 .7rem;
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  line-height: 1.7;
}

.news-link {
  display: inline-flex;
  margin-top: .9rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid currentColor;
  color: #9fe5fb;
  font-size: .68rem;
  font-weight: 700;
}

.news-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(6,33,83,.72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.news-control.prev { left: 1rem; }
.news-control.next { right: 1rem; }

.news-dots {
  position: absolute;
  z-index: 3;
  bottom: 1rem;
  left: 50%;
  display: flex;
  gap: .35rem;
  transform: translateX(-50%);
}

.news-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  cursor: pointer;
}

.news-dot.is-active { background: #fff; }
.news-carousel.single-slide .news-control,
.news-carousel.single-slide .news-dots { display: none; }

.news-banner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.news-banner-control {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-blue);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.news-banner-control:hover { background: var(--blue); color: #fff; }

.news-banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.news-banner-dot {
  width: 17px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7,63,140,.2);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.news-banner-dot.is-active { width: 38px; background: var(--blue-mid); }
.news-expand-btn { display: none; }

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(4,35,73,.05);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease;
}

.video-card::before {
  content: "▶";
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6,33,83,.88);
  color: #fff;
  font-size: .66rem;
  transition: background .25s ease, transform .3s var(--ease);
}

.video-card:hover {
  border-color: var(--line-blue);
  box-shadow: 0 20px 42px rgba(4,35,73,.12);
  transform: translateY(-6px);
}

.video-card:hover::before { background: var(--cyan); transform: scale(1.08); }

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.82);
  transition: filter .3s ease, transform .5s var(--ease);
}

.video-card:hover img { filter: saturate(1); transform: scale(1.02); }

.video-card span {
  display: block;
  padding: 1rem 1rem .35rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.video-card p {
  margin: 0;
  padding: 0 1rem 1.1rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.55;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery figure {
  position: relative;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(4,35,73,.1);
}

.gallery figure:nth-child(7n + 1),
.gallery figure:nth-child(7n + 5) { grid-column: span 8; }

.gallery figure::after {
  content: "+ ampliar";
  position: absolute;
  z-index: 3;
  top: .8rem;
  right: .8rem;
  padding: .38rem .52rem;
  border-radius: 4px;
  background: rgba(6,33,83,.84);
  color: #fff;
  font-size: .57rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .25s ease, transform .25s ease;
}

.gallery figure:hover::after { opacity: 1; transform: none; }

.gallery img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  filter: saturate(.82);
  transition: filter .35s ease, transform .65s var(--ease);
}

.gallery figure:nth-child(7n + 1) img,
.gallery figure:nth-child(7n + 5) img { height: 430px; }

.gallery figure:hover img { filter: saturate(1); transform: scale(1.025); }

.gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(3,20,45,.92));
  color: #fff;
  font-size: .68rem;
  line-height: 1.45;
  transform: translateY(calc(100% - 3.7rem));
  transition: transform .4s var(--ease);
}

.gallery figure:hover figcaption { transform: none; }

/* Gallery modal */
.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3,20,45,.88);
  backdrop-filter: blur(14px);
}

.gallery-lightbox-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 35px 100px rgba(0,20,50,.45);
}

.gallery-lightbox img {
  width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  background: #03132d;
}

.gallery-lightbox p {
  margin: 0;
  padding: 1rem 4.5rem 1rem 1rem;
  color: #4e6378;
  font-size: .74rem;
}

.gallery-lightbox-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(6,33,83,.84);
  color: #fff;
  cursor: pointer;
}

/* Contact */
.contact-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(22,169,225,.3), transparent 28%),
    linear-gradient(125deg, var(--navy), #084788);
  color: #fff;
}

.contact-band::before {
  content: "“";
  position: absolute;
  right: 4vw;
  bottom: -19vw;
  color: rgba(255,255,255,.06);
  font-family: Georgia, serif;
  font-size: clamp(22rem, 48vw, 50rem);
  line-height: 1;
  pointer-events: none;
}

.contact-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: end;
  gap: 3rem;
}

.contact-wrap .eyebrow { color: #9fe6fb; }
.contact-wrap .eyebrow::before { background: #9fe6fb; }

.contact-wrap h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}

.contact-text { margin: 1rem 0 0; color: #b7d5e8; font-size: .78rem; }

.contact-actions {
  display: grid;
  border-top: 1px solid rgba(255,255,255,.25);
}

.contact-email-alt {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem .25rem;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: clamp(.76rem, 1vw, .95rem);
  font-weight: 600;
  transition: padding-left .3s var(--ease), background .2s ease;
}

.contact-email-alt:hover { padding-left: .7rem; background: rgba(255,255,255,.08); }

.contact-email-alt svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.site-footer {
  padding: clamp(4rem, 7vw, 6.5rem) 0 0;
  border-top: 1px solid #d9e6ef;
  background: #f8fbfd;
  color: #52697e;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(160px, .65fr) minmax(230px, .8fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.footer-identity {
  max-width: 430px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
}

.footer-brand-lockup {
  width: min(245px, 100%);
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-brand-lockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-identity > p {
  max-width: 39ch;
  margin: 1.5rem 0 0;
  color: #5e7488;
  font-size: .76rem;
  line-height: 1.75;
}

.footer-column h2 {
  margin: .15rem 0 1.35rem;
  color: var(--blue-mid);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: .8rem;
}

.footer-nav a,
.footer-academic p,
.footer-contact-link {
  margin: 0;
  color: #435a70;
  font-size: .72rem;
  line-height: 1.55;
}

.footer-nav a {
  width: fit-content;
  transition: color .2s ease, transform .2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--blue);
  transform: translateX(4px);
}

.footer-academic {
  display: grid;
  align-content: start;
  gap: .35rem;
}

.footer-academic h2 {
  margin-bottom: 1rem;
}

.footer-contact-link {
  width: fit-content;
  margin-top: 1.2rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--blue-mid);
  color: var(--navy);
  font-weight: 700;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 92px;
  border-top: 1px solid rgba(6, 33, 83, .14);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.footer-copyright {
  margin: 0;
  color: #718497;
}

.visit-counter {
  justify-self: center;
  display: grid;
  gap: .18rem;
  text-align: center;
}

.visit-counter-label,
.visit-counter-note { color: #7a8da0; }
.visit-counter strong { color: var(--blue-mid); }

.dev-seal {
  justify-self: end;
  margin: 0;
  color: #718497;
  text-align: right;
}

.dev-seal strong {
  color: var(--navy);
  font-weight: 700;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes underlineIn { to { transform: scaleX(1); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1180px) {
  .container { width: min(calc(100% - 48px), 1120px); }
  .nav { gap: .75rem; }
  .nav a { font-size: .68rem; }
  .nav-social span { display: none; }
  .hero-content { grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr); gap: 3rem; }
  .hero-archive { min-height: 570px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .container { width: calc(100% - 34px); }
  .brand-lockup { width: 148px; max-height: 45px; }

  .menu-toggle { z-index: 2; display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    max-height: calc(100svh - var(--header-h));
    display: grid;
    align-content: start;
    gap: 0;
    overflow-y: auto;
    padding: .8rem 17px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .3s var(--ease);
  }

  .nav.open { opacity: 1; pointer-events: auto; transform: none; }

  .nav a {
    padding: .82rem .25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
  }

  .nav > a::after { display: none; }
  .nav-social span { display: inline; }
  .nav-cta { margin-top: .7rem; justify-content: center; font-family: var(--sans) !important; font-size: .76rem !important; }

  .hero { min-height: auto; }
  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4.8rem 5.5rem;
  }

  h1 { font-size: clamp(3.7rem, 12.5vw, 6rem); }
  .hero-facts { margin-top: 3.2rem; }
  .hero-archive { width: min(600px, 96%); min-height: 560px; margin: 0 auto; }

  .section::before,
  .section .container::before { display: none; }
  .section-head h2 { font-size: clamp(3rem, 10vw, 5.1rem); }

  #sobre .intro-block { margin-left: 0; padding-top: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thesis-list,
  .article-list { grid-template-columns: 1fr; }

  .news-portal.news-banner-mode { min-height: auto !important; }
  .news-portal.news-banner-mode .news-card { position: relative; inset: auto; display: none; }
  .news-portal.news-banner-mode .news-card.is-active { display: grid; }
  .news-card { grid-template-columns: 1fr; min-height: 0; }
  .news-carousel { min-height: 0; aspect-ratio: 4 / 3; }
  .news-content { max-height: none; padding: 2rem; }
  .news-content p { display: none; }
  .news-card.is-expanded .news-content p { display: block; }
  .news-expand-btn {
    display: inline-flex;
    margin-top: .8rem;
    padding: 0 0 .18rem;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #9fe5fb;
    font-size: .68rem;
    font-weight: 700;
  }

  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure,
  .gallery figure:nth-child(7n + 1),
  .gallery figure:nth-child(7n + 5) { grid-column: span 6; }
  .gallery img,
  .gallery figure:nth-child(7n + 1) img,
  .gallery figure:nth-child(7n + 5) img { height: 330px; }
  .gallery figcaption { transform: none; }

  .contact-wrap { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { max-width: 640px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; padding-block: 1.5rem; }
  .visit-counter { justify-self: end; text-align: right; }
  .dev-seal { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .brand-lockup { width: 140px; }
  .hero-content { padding-block: 4rem 4.6rem; }
  h1 { font-size: clamp(3.15rem, 14.5vw, 4.35rem); }
  .hero-copy { font-size: .93rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .hero-facts div + div { padding-left: 0; border-left: 0; }

  .hero-archive { min-height: 430px; }
  .hero-archive::before { border-radius: 70px 8px 70px 8px; }
  .hero-frame-main { width: 87%; height: 70%; }
  .hero-frame-detail { width: 43%; border-width: 6px; }
  .hero-word-card { width: 53%; padding: 1rem; }
  .hero-word-card strong { font-size: 2.2rem; }
  .hero-word-card p { font-size: .52rem; }
  .hero-archive-mark { font-size: 6.5rem; }

  .section { padding-block: 5rem; }
  .section-head { margin-bottom: 2.7rem; }
  .section-head h2 { font-size: clamp(2.75rem, 12.6vw, 4.15rem); }
  #sobre .intro-block p { padding-left: 2rem; font-size: .96rem; }

  .cards { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .card { padding: .55rem .55rem .75rem; }
  .card h3 { font-size: 1.02rem; }
  .card p { font-size: .66rem; }
  #pesquisadores-lista .researcher-summary { -webkit-line-clamp: 3; }

  .researcher-modal { padding: .6rem; place-items: start center; overflow-y: auto; }
  .researcher-modal-dialog { grid-template-columns: 1fr; max-height: none; }
  .researcher-modal-media { min-height: 290px; max-height: 360px; }
  .researcher-modal-content { padding: 1.5rem; }
  .researcher-modal-title { font-size: 2.25rem; }

  .book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .publication-list .pub-title-highlight { font-size: 2.2rem; }
  .thesis-title,
  .article-full { font-size: .84rem; }

  .news-content { padding: 1.5rem; }
  .news-content h3 { font-size: 1.9rem; }
  .news-banner-dots { max-width: 64%; }
  .news-banner-dot { width: 10px; }
  .news-banner-dot.is-active { width: 25px; }

  .video-grid { grid-template-columns: 1fr; }
  .gallery { gap: .65rem; }
  .gallery figure,
  .gallery figure:nth-child(7n + 1),
  .gallery figure:nth-child(7n + 5) { grid-column: 1 / -1; }
  .gallery img,
  .gallery figure:nth-child(7n + 1) img,
  .gallery figure:nth-child(7n + 5) img { height: 350px; }

  .contact-wrap h2 { font-size: clamp(2.9rem, 13vw, 4.8rem); }
  .contact-email-alt { font-size: .68rem; overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; gap: 2.6rem; }
  .footer-identity { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr; gap: 1.15rem; padding-block: 1.6rem; }
  .visit-counter { justify-self: start; text-align: left; }
  .dev-seal { grid-column: auto; justify-self: start; text-align: left; }
}

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

/* Final alignment and editorial refinements */
h1,
.section-head h2,
.news-content h3,
.card h3,
.video-card span {
  text-wrap: balance;
  hyphens: none;
}

h1 span {
  max-width: 100%;
  white-space: nowrap;
}

.hero-text,
.hero-archive,
.news-content,
.book-item,
.card,
.video-card {
  min-width: 0;
}

.hero-copy,
#sobre .intro-block p,
.news-content p,
.video-card p {
  text-wrap: pretty;
}

.cards,
.book-list,
.video-grid {
  align-items: stretch;
}

.book-info h4 {
  min-height: 3.6em;
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-card p {
  margin-top: auto;
}

/* News: cleaner hierarchy, consistent framing and controls */
.news-portal.news-banner-mode {
  min-height: 620px;
}

.news-card {
  grid-template-columns: minmax(340px, 46%) minmax(0, 1fr);
  min-height: 590px;
  border: 1px solid rgba(7, 63, 140, .18);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(4, 35, 73, .12);
}

.news-carousel {
  min-height: 590px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 241, 251, .9), rgba(237, 245, 251, .96));
}

.news-slide {
  padding: clamp(1rem, 2.2vw, 2rem);
}

.news-slide img {
  border-radius: 7px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(4, 35, 73, .12));
}

.news-card-wide .news-slide img {
  object-fit: contain;
}

.news-content {
  position: relative;
  max-height: none;
  padding: clamp(2.5rem, 4.5vw, 4.5rem);
  background: var(--white);
}

.news-content::before {
  content: "Em destaque";
  display: block;
  width: fit-content;
  margin-bottom: 1.4rem;
  padding: .35rem .55rem;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: var(--paper-blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.news-content time {
  display: inline-flex;
  margin-bottom: .9rem;
  color: var(--blue-mid);
  font-size: .61rem;
}

.news-content h3 {
  max-width: 19ch;
  margin-bottom: 1.2rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 2.65vw, 3.15rem);
  line-height: 1.06;
}

.news-content p {
  max-width: 68ch;
  color: #536b81;
  font-size: .78rem;
  line-height: 1.72;
}

.news-content p:nth-of-type(n + 2) {
  display: none;
}

.news-card.is-expanded .news-content p {
  display: block;
}

.news-link {
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .58rem .75rem;
  border: 1px solid var(--line-blue);
  border-radius: 5px;
  background: var(--paper-blue);
  color: var(--blue);
  font-size: .65rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.news-link::after {
  content: "↗";
}

.news-link:hover,
.news-link:focus-visible {
  background: var(--blue);
  color: #fff;
}

.news-expand-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 1rem 0 0 .55rem;
  padding: .58rem .75rem;
  border: 1px solid var(--line-blue);
  border-radius: 5px;
  background: transparent;
  color: var(--blue);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.news-expand-btn:hover,
.news-expand-btn:focus-visible {
  border-color: var(--blue-mid);
  background: var(--paper-blue);
}

.news-banner-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  justify-content: initial;
  gap: .8rem;
  margin-top: 1.25rem;
  padding: 0 .2rem;
}

.news-banner-status {
  min-width: 4.8rem;
  align-self: center;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-align: center;
}

.news-banner-dots {
  justify-content: flex-start;
  gap: .35rem;
  overflow: hidden;
}

.news-banner-dot {
  width: clamp(8px, 1.2vw, 16px);
  flex: 0 1 16px;
}

.news-banner-dot.is-active {
  width: clamp(20px, 3vw, 38px);
  flex-basis: 38px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  h1 {
    font-size: clamp(3.5rem, 6vw, 5.2rem);
  }

  .news-card {
    grid-template-columns: minmax(320px, 43%) minmax(0, 1fr);
  }

  .news-content {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .book-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Unified editorial cards and semantic ambient motion */
main {
  position: relative;
  isolation: isolate;
  background: #f4f8fc;
}

main::before,
main::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: var(--header-h) 0 0;
  pointer-events: none;
}

main::before {
  inset: calc(var(--header-h) - 15vh) -12vw -18vh;
  background:
    radial-gradient(circle at 14% 22%, rgba(22, 169, 225, .14), transparent 23%),
    radial-gradient(circle at 82% 34%, rgba(7, 63, 140, .11), transparent 25%),
    radial-gradient(circle at 52% 82%, rgba(8, 116, 201, .09), transparent 28%);
  filter: blur(12px);
  animation: semantic-ambient 22s ease-in-out infinite alternate;
}

main::after {
  background-image:
    radial-gradient(circle, rgba(8, 116, 201, .22) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent 49.5%, rgba(8, 116, 201, .055) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(8, 116, 201, .055) 50%, transparent 50.5%);
  background-position: 0 0;
  background-size: 84px 84px;
  opacity: .42;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  animation: semantic-grid 34s linear infinite;
}

main > * {
  position: relative;
  z-index: 1;
}

.section {
  overflow: clip;
  background: rgba(246, 249, 252, .9);
}

.section-surface {
  background: rgba(255, 255, 255, .91);
}

.section::before {
  content: "“";
  display: block;
  position: absolute;
  top: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1rem, 5vw, 6rem);
  color: rgba(8, 116, 201, .045);
  font-family: Georgia, serif;
  font-size: clamp(9rem, 18vw, 20rem);
  line-height: .7;
  pointer-events: none;
  animation: semantic-quote 12s ease-in-out infinite alternate;
}

.section::after {
  content: "texto  ·  discurso  ·  sentidos  ·  linguagem";
  position: absolute;
  right: 3vw;
  bottom: 1.25rem;
  color: rgba(7, 63, 140, .1);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: semantic-words 16s ease-in-out infinite alternate;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  background-size: 200% 100%;
  animation: heading-accent 4s linear infinite;
}

:where(.card, .book-item, .thesis-item, .article-item, .news-card, .video-card, .gallery-stage) {
  --card-x: 50%;
  --card-y: 50%;
  border: 1px solid rgba(8, 116, 201, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 12px 32px rgba(4, 35, 73, .065);
}

:where(.card, .book-item, .thesis-item, .article-item, .video-card) {
  background-color: rgba(255, 255, 255, .94);
  background-image: radial-gradient(
    circle at var(--card-x) var(--card-y),
    rgba(22, 169, 225, .105),
    transparent 34%
  );
  transition:
    transform .38s var(--ease),
    border-color .3s ease,
    box-shadow .38s ease,
    background-color .3s ease;
}

:where(.card, .book-item, .thesis-item, .article-item, .video-card):hover {
  z-index: 2;
  border-color: rgba(22, 169, 225, .72);
  background-color: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 22px 48px rgba(4, 35, 73, .13),
    0 0 0 3px rgba(22, 169, 225, .055);
  transform: translateY(-6px);
}

.book-item {
  padding: .7rem .7rem 1rem;
  border-radius: 12px;
}

.book-item:hover .book-cover {
  box-shadow: 0 16px 34px rgba(4, 35, 73, .14);
  transform: none;
}

.book-info {
  padding-inline: .18rem;
}

.thesis-list,
.article-list {
  gap: .85rem;
  border: 0;
}

.thesis-item,
.article-item {
  overflow: hidden;
  border-radius: 11px;
}

.news-card,
.gallery-stage {
  border-color: rgba(8, 116, 201, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 24px 64px rgba(4, 35, 73, .115),
    0 0 0 4px rgba(8, 116, 201, .025);
  transition: border-color .35s ease, box-shadow .35s ease;
}

.news-card:hover,
.gallery-stage:hover {
  border-color: rgba(22, 169, 225, .62);
  box-shadow:
    inset 0 1px 0 #fff,
    0 28px 72px rgba(4, 35, 73, .15),
    0 0 0 4px rgba(22, 169, 225, .05);
}

#galeria .gallery-thumb,
#galeria .gallery-thumb:nth-child(n) {
  border-width: 1px;
  border-color: rgba(8, 116, 201, .28);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 18px rgba(4, 35, 73, .07);
}

#galeria .gallery-thumb:hover,
#galeria .gallery-thumb:focus-visible,
#galeria .gallery-thumb.is-active {
  border-color: var(--cyan);
  box-shadow: 0 10px 24px rgba(4, 35, 73, .13), 0 0 0 3px rgba(22, 169, 225, .08);
}

@keyframes semantic-ambient {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

@keyframes semantic-grid {
  to { background-position: 84px 42px; }
}

@keyframes semantic-quote {
  from { transform: translate3d(0, 0, 0) rotate(-2deg); }
  to { transform: translate3d(-18px, 14px, 0) rotate(2deg); }
}

@keyframes semantic-words {
  from { transform: translateX(0); opacity: .55; }
  to { transform: translateX(-28px); opacity: 1; }
}

@keyframes heading-accent {
  to { background-position: -200% 0; }
}

@media (max-width: 620px) {
  main::after {
    background-size: 64px 64px;
    opacity: .3;
  }

  .section::before {
    right: -1rem;
    font-size: 10rem;
  }

  .section::after {
    right: 1rem;
    font-size: .47rem;
    letter-spacing: .14em;
  }

  .book-item {
    padding: .55rem .55rem .8rem;
  }

  .thesis-list,
  .article-list {
    gap: .65rem;
  }
}

@media (max-width: 900px) {
  .news-portal.news-banner-mode {
    min-height: auto;
  }

  .news-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 12px;
  }

  .news-carousel {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 4 / 3;
  }

  .news-slide {
    padding: .85rem;
  }

  .news-content {
    padding: 1.6rem;
  }

  .news-content::before {
    margin-bottom: 1.05rem;
  }

  .news-content h3 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.08;
  }

  .news-content p {
    font-size: .76rem;
  }

  .news-content p:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-card.is-expanded .news-content p {
    display: block;
  }

  .news-content .news-link {
    width: fit-content;
    margin-top: .75rem;
  }

  .news-expand-btn {
    display: flex;
    width: fit-content;
    margin: .8rem 0 0;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    line-height: 1.2;
  }

  .news-content .news-link + .news-expand-btn {
    display: flex;
  }

  .news-banner-controls {
    grid-template-columns: auto auto 1fr auto;
    gap: .55rem;
  }

  .news-banner-status {
    min-width: 3.8rem;
    font-size: .56rem;
  }
}

@media (max-width: 620px) {
  .news-content {
    padding: 1.35rem;
  }

  .news-content h3 {
    font-size: clamp(1.42rem, 6.4vw, 1.7rem);
  }

  .news-banner-controls {
    grid-template-columns: auto 1fr auto;
  }

  .news-banner-status {
    grid-column: 2;
    grid-row: 1;
  }

  .news-banner-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .news-banner-control:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .news-banner-control:last-child {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.7rem;
  }

  .section-head h2 {
    font-size: 2.55rem;
  }

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

/* Compact researcher profiles: the complete card always fits in the viewport */
.researcher-modal {
  padding: 1.25rem;
}

.researcher-modal-dialog {
  width: min(1040px, calc(100% - 1rem));
  height: min(660px, calc(100svh - 2.5rem));
  max-height: none;
  grid-template-columns: minmax(250px, 36%) minmax(0, 1fr);
}

.researcher-modal-media {
  min-height: 0;
  height: 100%;
}

.researcher-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
}

.researcher-modal-label {
  margin-bottom: .45rem;
}

.researcher-modal-title {
  max-width: 16ch;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: .98;
}

.researcher-modal-counter {
  margin-top: .45rem;
}

.researcher-modal-bio {
  display: -webkit-box;
  margin-top: 1.15rem;
  overflow: hidden;
  color: #50657b;
  font-size: .8rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
}

.researcher-modal-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.researcher-modal-nav {
  margin-top: .7rem;
}

.researcher-modal-action,
.researcher-modal-nav button {
  padding: .55rem .8rem;
}

@media (max-height: 760px) and (min-width: 701px) {
  .researcher-modal-dialog {
    height: calc(100svh - 2rem);
  }

  .researcher-modal-content {
    padding: 1.5rem 2rem;
  }

  .researcher-modal-title {
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  }

  .researcher-modal-bio {
    margin-top: .8rem;
    font-size: .75rem;
    line-height: 1.48;
    -webkit-line-clamp: 10;
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .researcher-modal-dialog {
    height: min(620px, calc(100svh - 2rem));
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
  }

  .researcher-modal-content {
    max-height: none;
    padding: 1.5rem;
  }

  .researcher-modal-media {
    min-height: 0;
    max-height: none;
  }

  .researcher-modal-title {
    font-size: 2.2rem;
  }

  .researcher-modal-bio {
    -webkit-line-clamp: 9;
  }
}

@media (max-width: 700px) {
  .researcher-modal {
    place-items: center;
    padding: .5rem;
    overflow: hidden;
  }

  .researcher-modal-dialog {
    width: 100%;
    height: auto;
    max-height: calc(100svh - 1rem);
    grid-template-columns: 1fr;
    grid-template-rows: clamp(220px, 40svh, 340px) auto;
    margin: 0;
  }

  .researcher-modal-media {
    min-height: 0;
    max-height: none;
    background: linear-gradient(145deg, #eaf4fb 0%, #d6e9f6 100%);
  }

  .researcher-modal-media img {
    object-fit: contain;
    object-position: center;
  }

  .researcher-modal-content {
    height: auto;
    max-height: none;
    padding: 1rem 1.1rem;
  }

  .researcher-modal-title {
    max-width: 18ch;
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .researcher-modal-bio {
    margin-top: .65rem;
    font-size: .7rem;
    line-height: 1.42;
    -webkit-line-clamp: 6;
  }

  .researcher-modal-actions {
    padding-top: .65rem;
  }

  .researcher-modal-nav {
    margin-top: .5rem;
  }

  .researcher-modal-action,
  .researcher-modal-nav button {
    padding: .45rem .65rem;
    font-size: .64rem;
  }

  .researcher-modal-close {
    top: .65rem;
    right: .65rem;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 700px) and (max-height: 680px) {
  .researcher-modal-dialog {
    grid-template-rows: clamp(150px, 30svh, 190px) auto;
  }

  .researcher-modal-content {
    padding: .8rem 1rem;
  }

  .researcher-modal-bio {
    -webkit-line-clamp: 4;
  }
}

/* Editorial gallery: one featured record and a compact collection rail */
.gallery-lead {
  max-width: 620px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(.84rem, 1.25vw, 1rem);
  line-height: 1.7;
}

.gallery.gallery-enhanced {
  display: block;
}

.gallery-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, .72fr);
  height: clamp(470px, 49vw, 610px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(5, 57, 111, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(4, 35, 73, .12);
}

.gallery-stage-view {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071a36;
  cursor: zoom-in;
}

.gallery-stage-view img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #071a36;
  filter: none;
  transition: transform .6s var(--ease), opacity .25s ease;
}

.gallery-stage-view:hover img {
  transform: scale(1.012);
}

.gallery-stage-expand {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: .62rem .8rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 6px;
  background: rgba(3, 20, 45, .78);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gallery-stage-info {
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 3.4vw, 3.4rem);
  border-left: 1px solid var(--line);
}

.gallery-stage-info > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-stage-kicker,
.gallery-stage-counter {
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-stage-counter {
  color: #6d87a3;
}

.gallery-stage-title {
  display: -webkit-box;
  margin: clamp(2rem, 4vw, 4rem) 0 0;
  overflow: hidden;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 600;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.gallery-stage-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.65;
}

.gallery-stage-controls {
  display: flex;
  gap: .55rem;
  margin-top: auto;
  padding-top: 2rem;
}

.gallery-stage-controls button {
  min-height: 42px;
  padding: .7rem .85rem;
  border: 1px solid #b8d8ef;
  border-radius: 6px;
  background: #f4f9fd;
  color: #074f94;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.gallery-stage-controls button:hover,
.gallery-stage-controls button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(112px, 12vw, 154px);
  gap: .7rem;
  margin-top: 1rem;
  padding: .15rem .1rem .65rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #8abede #e3eef6;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

#galeria .gallery-thumb,
#galeria .gallery-thumb:nth-child(n) {
  position: relative;
  width: auto;
  height: 92px;
  grid-column: auto;
  margin: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #dceaf4;
  box-shadow: none;
  cursor: pointer;
  opacity: .68;
  scroll-snap-align: center;
  transition: border-color .22s ease, opacity .22s ease, transform .22s ease;
}

#galeria .gallery-thumb::after {
  content: attr(data-gallery-number);
  position: absolute;
  z-index: 2;
  top: auto;
  right: .38rem;
  bottom: .36rem;
  padding: .25rem .32rem;
  border-radius: 3px;
  background: rgba(3, 20, 45, .78);
  color: #fff;
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 700;
  opacity: 1;
  transform: none;
}

#galeria .gallery-thumb:hover,
#galeria .gallery-thumb:focus-visible,
#galeria .gallery-thumb.is-active {
  border-color: var(--cyan);
  opacity: 1;
  transform: translateY(-2px);
  outline: none;
}

#galeria .gallery-thumb img,
#galeria .gallery-thumb:nth-child(n) img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.88);
  transform: none;
}

#galeria .gallery-thumb.is-active img,
#galeria .gallery-thumb:hover img {
  filter: saturate(1);
  transform: none;
}

#galeria .gallery-thumb figcaption {
  display: none;
}

.gallery-lightbox-inner {
  width: min(1120px, 100%);
  max-width: none;
  max-height: 90svh;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #071a36;
}

.gallery-lightbox-inner > img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: min(74svh, 760px);
  max-height: none;
  object-fit: contain;
}

.gallery-lightbox-nav {
  align-self: center;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.gallery-lightbox-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
}

.gallery-lightbox-caption {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 4.5rem 1rem 1.25rem;
  background: #fff;
}

.gallery-lightbox-caption span {
  padding-top: .08rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.gallery-lightbox-caption p {
  padding: 0;
}

@media (max-width: 900px) {
  .gallery-stage {
    height: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gallery-stage-view {
    aspect-ratio: 16 / 10;
  }

  .gallery-stage-info {
    padding: 1.5rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-stage-title {
    margin-top: 1.2rem;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    -webkit-line-clamp: 3;
  }

  .gallery-stage-note {
    max-width: 620px;
  }

  .gallery-stage-controls {
    margin-top: 1.3rem;
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .gallery-lead {
    margin-top: .8rem;
    font-size: .78rem;
  }

  .gallery-stage {
    border-radius: 12px;
  }

  .gallery-stage-view {
    aspect-ratio: 4 / 3;
  }

  .gallery-stage-expand {
    right: .75rem;
    bottom: .75rem;
    padding: .48rem .58rem;
    font-size: .54rem;
  }

  .gallery-stage-info {
    padding: 1.15rem;
  }

  .gallery-stage-title {
    font-size: 1.28rem;
  }

  .gallery-stage-note {
    display: none;
  }

  .gallery-stage-controls {
    margin-top: 1rem;
  }

  .gallery-stage-controls button {
    min-height: 39px;
    padding: .58rem .7rem;
    font-size: .62rem;
  }

  .gallery-strip {
    grid-auto-columns: 92px;
    gap: .5rem;
    margin-top: .7rem;
  }

  #galeria .gallery-thumb,
  #galeria .gallery-thumb:nth-child(n) {
    height: 68px;
    border-radius: 6px;
  }

  .gallery-lightbox {
    padding: .6rem;
  }

  .gallery-lightbox-inner {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .gallery-lightbox-inner > img {
    height: min(68svh, 620px);
  }

  .gallery-lightbox-nav {
    width: 34px;
    height: 48px;
  }

  .gallery-lightbox-caption {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .8rem 3.5rem .8rem .9rem;
  }
}

/* CMS refinements: single actions, compact news reading and balanced contact */
.article-item > .article-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.news-portal.news-banner-mode.is-reading {
  min-height: 0 !important;
}

.news-portal.news-banner-mode.is-reading .news-card.is-active {
  position: relative;
  inset: auto;
}

.news-card.is-expanded .news-content {
  align-self: start;
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
}

.news-card.is-expanded {
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
  min-height: 540px;
}

.news-card.is-expanded .news-carousel {
  min-height: 540px;
}

.news-card.is-expanded .news-content::before {
  margin-bottom: .75rem;
}

.news-card.is-expanded .news-content h3 {
  max-width: 28ch;
  margin-bottom: .8rem;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.02;
}

.news-card.is-expanded .news-body {
  columns: 2;
  column-gap: clamp(1rem, 2vw, 1.7rem);
  column-rule: 1px solid var(--line);
}

.news-card.is-expanded .news-body p {
  break-inside: avoid;
  margin-bottom: .5rem;
  font-size: .7rem;
  line-height: 1.52;
}

.contact-wrap h2 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 3.8vw, 4.35rem);
  line-height: .94;
  letter-spacing: -.045em;
}

@media (max-width: 900px) {
  .news-card.is-expanded {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .news-card.is-expanded .news-carousel {
    min-height: 0;
  }

  .news-card.is-expanded .news-body {
    columns: 1;
    column-rule: 0;
  }

  .news-card.is-expanded .news-content h3 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .contact-wrap h2 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 9vw, 3.6rem);
  }
}
