/* =========================================================================
   Complexmind — sistema de diseño
   Minimalista, editorial, científico. Acento granate #822633.
   Tipografías: Spectral (display) · Montserrat (cuerpo) · Verdana (datos)
   ========================================================================= */

:root {
  /* Color */
  --paper:        #ffffff;
  --surface:      #f5f5f3;   /* off-white frío para secciones alternas */
  --surface-2:    #efefec;
  --ink:          #16171b;   /* casi negro, ligeramente frío */
  --ink-soft:     #34363c;
  --muted:        #6a6c72;   /* texto secundario */
  --line:         #e6e6e2;   /* filetes finos */
  --line-strong:  #d6d6d1;
  --garnet:       #822633;   /* acento */
  --garnet-deep:  #7c1326;   /* hover / activo */
  --garnet-tint:  rgba(157, 29, 49, 0.06);

  /* Tipografía */
  --heading: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-display: "Krona One", sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  Verdana, Geneva, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Métrica */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 2px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
::selection { background: var(--garnet); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--pad-top-half { padding-top: clamp(28px, 4.5vw, 58px); }
.section--pad-bottom-half { padding-bottom: clamp(28px, 4.5vw, 58px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

/* Filete superior granate de marca */
.brandbar { height: 3px; background: var(--garnet); }

/* ---------- Eyebrow (etiqueta mono con nodo) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--garnet);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--garnet);
  flex: none;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 140px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 120px; width: auto; display: block; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand__name b { color: var(--garnet); font-weight: 600; }
.uja-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.uja-logo { height: 120px; width: auto; display: block; }
.footer-logo { height: 210px; width: auto; display: block; }

.nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  flex: 1 1 auto;
  padding-inline: clamp(24px, 3vw, 64px);
}
.nav a {
  font-size: 14.5px; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--garnet); transition: right 0.28s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.nav a[aria-current="page"] { color: var(--garnet); }
.nav a[aria-current="page"]::after { right: 0; }

/* Selector de idioma */
.nav .nav__lang {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav .nav__lang::after { display: none; }
.nav .nav__lang:hover, .nav .nav__lang:focus-visible { border-color: var(--garnet); color: var(--garnet); }

.nav-toggle {
  display: none; border: 1px solid var(--line-strong); background: var(--paper);
  width: 42px; height: 38px; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1, .hero h2 { font-family: var(--heading-display); }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 400;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--garnet); }
.hero h2 em { font-style: normal; color: var(--garnet); }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__art { position: relative; min-height: 240px; }
.hero__art svg { width: 100%; height: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid var(--garnet); color: #fff; background: var(--garnet);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--garnet-deep); border-color: var(--garnet-deep); }
.btn--ghost { background: transparent; color: var(--garnet); }
.btn--ghost:hover { background: var(--garnet-tint); }
.btn--quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--quiet:hover { border-color: var(--ink); background: transparent; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Texto de cabecera de sección ---------- */
.section__head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 0.5rem; }
.section__head p { color: var(--muted); font-size: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); }

/* ---------- Líneas de investigación ---------- */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.line {
  background: var(--paper); padding: 30px clamp(22px, 3vw, 34px);
  transition: background 0.25s var(--ease);
}
.line:hover { background: var(--surface); }
.line__no { font-family: var(--mono); font-size: 12px; color: var(--garnet); letter-spacing: 0.1em; }
.line__img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 4px; margin: 14px 0 0; }
.line h3 { font-size: 21px; margin: 12px 0 8px; }
.line p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Líneas de investigación: 3 por fila y descripción justificada */
.lines[data-render="lines"] { grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 0; }
.lines[data-render="lines"] .line { display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.lines[data-render="lines"] .line__media {
  height: 170px; margin-top: 14px;
  border-radius: 4px; overflow: hidden; background: var(--surface);
}
.lines[data-render="lines"] .line__img { height: 100%; max-height: none; margin: 0; }
.lines[data-render="lines"] .line h3 {
  text-align: center;
  background: var(--garnet-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 12px 0 12px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lines[data-render="lines"] .line p { text-align: justify; }
.lines[data-render="lines-home"] .line h3 { text-align: center; }
@media (max-width: 900px) {
  .lines[data-render="lines"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .lines[data-render="lines"] { grid-template-columns: 1fr; }
}

/* ---------- Proyectos (activos / finalizados) ---------- */
.projects { display: grid; gap: clamp(22px, 3vw, 34px); }
.projects--compact { grid-template-columns: repeat(2, 1fr); }
.projects--compact .project__title { font-size: clamp(16px, 1.6vw, 19px); padding: 10px 16px; margin-bottom: 16px; }
.projects--compact .project__meta { margin-bottom: 0; }
.projects--compact .project__row { grid-template-columns: 180px 1fr; }
@media (max-width: 820px) {
  .projects--compact { grid-template-columns: 1fr; }
}
.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.project__title {
  display: inline-block;
  background: var(--garnet);
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.project__meta { display: grid; gap: 8px; margin-bottom: 16px; }
.project__row { display: grid; grid-template-columns: 210px 1fr; gap: 10px; align-items: baseline; font-size: 15.5px; }
.project__row .lbl {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--garnet);
}
.project__row a:hover { color: var(--garnet); }
.project__text { color: var(--ink-soft); margin: 0; text-align: justify; }
@media (max-width: 620px) {
  .project__row,
  .projects--compact .project__row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Rejilla de equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(22px, 3vw, 38px); }
.member-card { display: block; transition: transform 0.25s var(--ease); }
.member-card:hover { transform: translateY(-3px); }
.member-card__photo {
  aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; position: relative; margin-bottom: 14px;
}
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.4s var(--ease); }
.member-card:hover .member-card__photo img { filter: grayscale(0); }
.member-card__photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 38px; color: var(--line-strong);
}
.member-card h3 { font-size: 19px; margin-bottom: 2px; }
.member-card .role { font-family: var(--mono); font-size: 12px; color: var(--garnet); letter-spacing: 0.06em; text-transform: uppercase; }
.member-card__photo::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--garnet);
  transition: width 0.3s var(--ease);
}
.member-card:hover .member-card__photo::after { width: 100%; }

/* ---------- Ficha de miembro ---------- */
.member { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.member__aside { position: sticky; top: 92px; }
.member__photo { aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: var(--line-strong); }
.member__links { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.member__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s var(--ease);
}
.member__links a:hover { color: var(--garnet); }
.member__links a .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }
.member h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin-bottom: 6px; }
.member .role { font-family: var(--mono); font-size: 13px; color: var(--garnet); letter-spacing: 0.08em; text-transform: uppercase; }
.member__bio { margin-top: 26px; max-width: 64ch; font-size: 17.5px; text-align: justify; }
.member__bio p { margin-bottom: 1.2em; }
.member__bio h2 { font-size: 22px; margin: 1.8em 0 0.6em; }

/* ---------- Publicaciones ---------- */
.pub-intro { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); margin-bottom: clamp(34px, 5vw, 56px); }
.pub-intro p { flex: 1; margin: 0; color: var(--muted); font-size: 18px; }
.open-science-logo { height: 160px; width: auto; flex-shrink: 0; margin-left: clamp(20px, 4vw, 48px); }
.text--accent { color: var(--garnet); }
.text--accent a { color: inherit; }
.pub-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border-block: 1px solid var(--line); padding-block: 14px; margin-bottom: 8px;
}
.pub-status { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.pub-status b { color: var(--garnet); font-weight: 500; }
.pub-search {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  padding: 9px 13px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); min-width: 230px;
}
.pub-search:focus-visible { outline: 2px solid var(--garnet); outline-offset: 1px; border-color: var(--garnet); }

.pub-year { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 40px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pub-year:first-of-type { margin-top: 18px; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid; grid-template-columns: 30px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.pub__node { padding-top: 9px; }
.pub__node i { display: block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--garnet); }
.pub:hover .pub__node i { background: var(--garnet); }
.pub__cite { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.pub__cite em { color: var(--ink); }
.pub__cite a { color: var(--garnet); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.pub__cite a:hover { border-color: var(--garnet); }
.pub__meta { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

.notice {
  border: 1px solid var(--line); background: var(--surface);
  border-left: 3px solid var(--garnet); padding: 22px 24px; border-radius: var(--radius);
  font-size: 15.5px; color: var(--ink-soft);
}
.notice code { font-family: var(--mono); font-size: 13px; background: var(--paper); padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; }
.loader { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--garnet); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -1px; margin-right: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tarjetas de divulgación ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 30px); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--garnet); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.card a.card__link { color: var(--garnet); font-family: var(--sans); }
.card p a { color: var(--garnet); }
.card__img { margin: -26px -26px 14px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card__img img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card__img--body { margin: 4px -26px; overflow: hidden; }
.card__img--body img { width: 100%; height: 260px; object-fit: cover; display: block; }
.card--logo p { flex: 0 0 auto; }
.card__img--logo { flex: 1; display: flex; align-items: center; justify-content: center; margin: 4px 0 0; }
.card__img--logo img { height: 240px; object-fit: contain; max-width: 100%; }
.card__embed { margin-top: 4px; }
.card__embed iframe { width: 100%; display: block; border-radius: 6px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); }
.contact-block { margin-bottom: 26px; }
.contact-block .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--garnet); display: block; margin-bottom: 6px; }
.contact-inst-logo { max-width: 360px; height: auto; display: block; }
.contact-block p, .contact-block a { font-size: 17px; margin: 0; }
.contact-block a:hover { color: var(--garnet); }
.contact-social { display: inline-flex; align-items: center; gap: 10px; color: var(--garnet); transition: opacity 0.2s; }
.contact-social:hover { opacity: 0.75; }
.contact-social span { font-size: 18px; font-weight: 500; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.3); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 54px 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand__name { font-size: 22px; }
.site-footer p { color: var(--muted); font-size: 14.5px; max-width: 38ch; }
.footer-col h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--garnet); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.footer-social { display: inline-flex; align-items: center; gap: 6px; color: var(--garnet); transition: opacity 0.2s; margin-top: 8px; }
.footer-social:hover { opacity: 0.72; }

/* ---------- Contenido editorial ---------- */
.prose { max-width: 72ch; }
.prose h3 { font-size: 18px; margin: 2em 0 0.5em; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.7; }
.prose ul { padding-left: 1.4em; margin: 0.5em 0; }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--garnet); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.prose th { text-align: left; padding: 8px 12px; background: var(--surface); color: var(--ink); border-bottom: 2px solid var(--line); }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px var(--gutter);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
  font-size: 14px; line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--garnet); }
.cookie-banner__btn {
  flex-shrink: 0; cursor: pointer;
  background: var(--garnet); color: #fff; border: none;
  padding: 8px 20px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  transition: background 0.2s var(--ease);
}
.cookie-banner__btn:hover { background: var(--garnet-deep); }

.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--garnet); color: #fff;
  padding: 8px 14px; border-radius: var(--radius); z-index: 100; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--garnet); outline-offset: 2px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin-inline: auto; }
  .member { grid-template-columns: 1fr; }
  .member__aside { position: static; max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header__inner { height: 90px; }
  .brand__logo { height: 68px; }
  .uja-logo { height: 68px; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
    gap: 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav__lang { align-self: flex-start; margin-top: 12px; padding: 8px 16px; font-size: 12px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 18px 1fr; gap: 12px; }
  .pub-intro { flex-direction: column; align-items: flex-start; }
  .open-science-logo { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
