/* =========================================================
   GREI — Grupo de Redes Elétricas Inteligentes (UFC)
   Tema WordPress — tokens e componentes do handoff hi-fi
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #2F5E4B;
  --color-primary-dark: #1C3A2E;
  --color-primary-darker: #24493A;
  --color-primary-light: #3D6E59;
  --color-primary-lighter: #4A7C68;
  --color-primary-pale: #9BD2B4;

  --tint-a-bg: #EFF4F1;
  --tint-a-border: #D2E1D9;
  --tint-a-text: #3D6E59;
  --tint-a-value: #2A5443;
  --tint-a-strong: #1F4436;

  --tint-b-bg: oklch(0.965 0.035 128);
  --tint-b-border: oklch(0.89 0.07 128);
  --tint-b-text: oklch(0.42 0.12 128);
  --tint-b-text-2: oklch(0.46 0.13 128);
  --tint-b-value: oklch(0.36 0.11 128);
  --tint-b-soft: oklch(0.93 0.05 128);

  --bg: #FFFFFF;
  --bg-white: #ffffff;
  --fg: #101114;
  --fg-muted: rgba(16,17,20,0.62);
  --fg-muted-2: rgba(16,17,20,0.5);
  --fg-muted-3: rgba(16,17,20,0.42);
  --border: rgba(16,17,20,0.10);
  --border-strong: rgba(16,17,20,0.2);

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --font-sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --shadow-card: 0 18px 50px -30px rgba(16,17,20,0.28);
  --wrap-width: 1280px;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.wrap { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; }

.pg-icon { flex-shrink: 0; vertical-align: -2px; margin-right: 5px; opacity: 0.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn-pill-dark { background: var(--fg); color: var(--bg); }
.btn-pill-dark:hover { background: var(--color-primary); color: #fff; }
.btn-pill-outline { background: #fff; border-color: var(--border-strong); color: var(--fg); }
.btn-pill-outline:hover { border-color: var(--fg); color: var(--fg); }
.btn-pill-light { background: var(--bg); color: var(--color-primary-darker); }
.btn-pill-light:hover { background: var(--tint-b-soft); }
.btn-pill-tint { background: var(--fg); color: var(--bg); font-size: 14.5px; padding: 11px 20px; }
.btn-pill-tint:hover { background: var(--color-primary); color: #fff; }
.btn-pill-sm { font-size: 14px; padding: 9px 16px; }

/* ---------- Header (barra flutuante, estilo pill com blur) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 24px;
  transition: padding 220ms ease;
}
.site-header-inner {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 14px 0 24px;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: none;
  transition: box-shadow 220ms ease, height 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.site-header.is-scrolled { padding: 10px 24px; }
.site-header.is-scrolled .site-header-inner {
  height: 78px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header-inner { transition: none; }
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.site-branding img.logo-grei { height: 58px; width: auto; }
.site-branding img.logo-ufc { height: 44px; width: auto; }
.site-branding-divider { width: 1px; height: 42px; background: var(--border-strong); }
.site-branding-text { color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; }
.primary-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.primary-nav a:hover { color: var(--fg); }
.primary-nav a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .primary-nav a::after { transition: none; }
}

/* ---------- Dropdown "Projetos" ---------- */
.nav-item-projects { position: relative; }
.nav-item-chevron { margin-left: 3px; vertical-align: 2px; transition: transform 180ms ease; }
.nav-item-projects:hover .nav-item-chevron,
.nav-item-projects:focus-within .nav-item-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-top: 14px;
  width: 240px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
.nav-item-projects:hover .nav-dropdown,
.nav-item-projects:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-dropdown-list li { margin: 0; }

/* Precisa vencer a especificidade de ".primary-nav a" (que define
   inline-block/nowrap/underline em TODO link do menu), senão o texto
   estoura a largura fixa do painel. */
.primary-nav .nav-dropdown-link,
.mobile-nav .nav-dropdown-link {
  position: static;
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600; color: var(--fg-muted);
  white-space: normal;
  transition: background 150ms ease, color 150ms ease;
}
.primary-nav .nav-dropdown-link::after, .mobile-nav .nav-dropdown-link::after { content: none; }
.nav-dropdown-link span { display: block; font-size: 11px; font-weight: 500; color: var(--fg-muted-2); white-space: normal; }
.nav-dropdown-link:hover, .nav-dropdown-link.is-active { background: var(--tint-a-bg); color: var(--fg); }

.primary-nav .nav-dropdown-viewall, .mobile-nav .nav-dropdown-viewall {
  position: static;
  display: block; width: 100%; box-sizing: border-box;
  margin-top: 6px; padding: 10px 12px 2px; border-bottom: none;
  border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--color-primary);
  text-align: left; white-space: normal;
}
.primary-nav .nav-dropdown-viewall::after, .mobile-nav .nav-dropdown-viewall::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .nav-dropdown-link, .nav-item-chevron { transition: none; }
}
@media (max-width: 780px) {
  .nav-dropdown { display: none; }
}

.header-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.lang-select {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-select-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.lang-select-trigger:hover { border-color: var(--fg); }
.lang-select-trigger svg { color: var(--fg-muted-2); transition: transform 160ms ease; }
.lang-select.is-open .lang-select-trigger svg { transform: rotate(180deg); }
.lang-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 50;
}
.lang-select.is-open .lang-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-select-menu li { list-style: none; }
.lang-select-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-size: 13px;
  font-family: var(--font-sans);
}
.lang-select-menu a:hover { background: var(--bg); color: var(--fg); }
.lang-select-menu a.is-active { color: var(--color-primary); font-weight: 600; }
.social-icons { display: flex; align-items: center; gap: 14px; }
.social-icons a { display: flex; color: var(--fg-muted-2); transition: color 160ms ease; }
.social-icons a:hover { color: var(--fg); }

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  flex: none;
}
.mobile-nav-toggle .icon-close { display: none; }
.site-header.is-nav-open .mobile-nav-toggle .icon-burger { display: none; }
.site-header.is-nav-open .mobile-nav-toggle .icon-close { display: block; }
.mobile-nav-panel {
  display: none;
  max-width: var(--wrap-width);
  margin: 10px auto 0;
  background: rgba(251,251,249,0.98);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.site-header.is-nav-open .mobile-nav-panel { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 10px; }
.mobile-nav a { display: block; padding: 14px 16px; border-radius: var(--radius-md); font-size: 16px; color: var(--fg); }
.mobile-nav a:hover { background: var(--bg); color: var(--fg); }
.mobile-nav li + li { border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero-section { position: relative; background: var(--bg); }
.hero-inner {
  padding: 56px 40px 76px;
  position: relative;
}
.hero-grid {
  max-width: var(--wrap-width);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16,17,20,0.66);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: var(--radius-pill);
  background: var(--color-primary);
  animation: grei-pulse 2.4s ease-in-out infinite;
}
.hero-badge-highlight { color: var(--color-primary); font-weight: 700; }
@keyframes grei-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero-title {
  margin: 26px 0 0;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-title em { font-style: normal; color: var(--color-primary); }
.hero-lede {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.hero-link-cta span { transition: transform 200ms ease; }
.hero-link-cta:hover span { transform: translateX(3px); }
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 54px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 31px;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-transform: none;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Hero carousel card */
.hero-video-frame {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Marquee ---------- */
.marquee-section {
  background: var(--bg);
  padding: 38px 0 42px;
}
.marquee-section .eyebrow { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px 22px; text-align: center; }
.marquee-mask { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; overflow: hidden; }
.marquee-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 60px; }
.marquee-group span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-muted-2); }
.marquee-group img { height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(100%); opacity: 0.62; }
@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot { animation: none; }
  .hero-video-frame video { display: none; }
}

/* ---------- Rede Verdes ---------- */
.rede-verdes-section { max-width: var(--wrap-width); margin: 0 auto; padding: 72px 40px 0; }
.rede-verdes-card {
  border: 1px solid var(--color-primary-darker);
  background: linear-gradient(100deg, var(--color-primary), var(--color-primary-darker) 72%);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}
.rede-verdes-logos {
  height: 150px;
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 18px;
}
.rede-verdes-logos img.logo-rv { max-width: 62%; max-height: 78%; object-fit: contain; }
.rede-verdes-logos img.logo-funcap { height: 28px; width: auto; object-fit: contain; flex: none; }
.rede-verdes-divider { width: 1px; height: 40px; background: rgba(16,17,20,0.12); flex: none; }
.rede-verdes-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,247,245,0.7); }
.rede-verdes-badge-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--color-primary-pale); animation: grei-pulse 2.4s ease-in-out infinite; }
.rede-verdes-card h2 { margin: 14px 0 0; font-size: 34px; line-height: 1.08; letter-spacing: -0.032em; font-weight: 600; color: #F4F7F5; }
.rede-verdes-card h2 em { font-style: normal; color: var(--color-primary-pale); }
.rede-verdes-card p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: rgba(244,247,245,0.72); max-width: 62ch; }
.rede-verdes-cta { flex: none; font-size: 15px; font-weight: 500; background: #F4F7F5; color: var(--color-primary-darker); padding: 13px 24px; border-radius: var(--radius-pill); }
.rede-verdes-cta:hover { background: var(--color-primary-pale); color: var(--color-primary-darker); }

/* ---------- Frentes de P&D ---------- */
.research-tracks-section { max-width: var(--wrap-width); margin: 0 auto; padding: 90px 40px 40px; }
.research-tracks-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.research-tracks-header h2 { margin: 0; font-size: 46px; line-height: 1.04; letter-spacing: -0.034em; font-weight: 600; }
.research-tracks-header p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(16,17,20,0.6); }
.research-track-rows { display: flex; flex-direction: column; gap: 64px; margin-top: 56px; }
.research-track-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.research-track-row.is-reverse .research-track-row-media { grid-column: 2; grid-row: 1; }
.research-track-row.is-reverse .research-track-row-text { grid-column: 1; grid-row: 1; }
.research-track-row-media { border-radius: var(--radius-lg); overflow: hidden; }
.research-track-row-media img, .research-track-row-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.research-track-row-media-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--tint-a-bg); }
.research-track-row-media-placeholder.alt { background: var(--tint-b-soft); }

/* Mockup animado de chat de IA (ilustrativo, não é um chat funcional) */
.ai-chat-mock { display: flex; align-items: center; justify-content: center; padding: 24px; }
.ai-chat-mock-window {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-chat-mock-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  box-shadow: var(--shadow-card);
}
.ai-chat-mock-msg-user {
  align-self: flex-end;
  background: var(--fg);
  color: #fff;
  border-bottom-right-radius: 4px;
  animation: aiChatUser 6s ease-in-out infinite;
}
.ai-chat-mock-msg-ai {
  align-self: flex-start;
  background: #fff;
  color: var(--fg);
  border-bottom-left-radius: 4px;
  animation: aiChatAi 6s ease-in-out infinite;
}
.ai-chat-mock-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: aiChatTyping 6s ease-in-out infinite;
}
.ai-chat-mock-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted-2); animation: aiChatDot 1s ease-in-out infinite; }
.ai-chat-mock-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-mock-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiChatUser {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  8%, 88% { opacity: 1; transform: translateY(0); }
  95% { opacity: 0; }
}
@keyframes aiChatTyping {
  0%, 28%, 100% { opacity: 0; }
  34%, 54% { opacity: 1; }
  60% { opacity: 0; }
}
@keyframes aiChatAi {
  0%, 58%, 100% { opacity: 0; transform: translateY(6px); }
  66%, 88% { opacity: 1; transform: translateY(0); }
  95% { opacity: 0; }
}
@keyframes aiChatDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-mock-msg, .ai-chat-mock-typing { animation: none; opacity: 1; transform: none; }
  .ai-chat-mock-typing { display: none; }
}
.research-track-row-text h3 { margin: 0; font-size: 27px; letter-spacing: -0.028em; font-weight: 600; }
.research-track-row-text p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; color: rgba(16,17,20,0.62); max-width: 48ch; }
.research-track-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted-2); }
.research-track-chips span { border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 11px; }

/* ---------- CTA piloto ---------- */
.pilot-section { max-width: var(--wrap-width); margin: 0 auto; padding: 60px 40px 100px; }
.pilot-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.pilot-card h2 { margin: 18px 0 0; font-size: 40px; line-height: 1.06; letter-spacing: -0.032em; font-weight: 600; }
.pilot-card > div:first-child p { margin: 18px 0 0; font-size: 17.5px; line-height: 1.55; color: rgba(16,17,20,0.6); max-width: 46ch; }
.pilot-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.pilot-steps { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.pilot-step { background: var(--bg); padding: 22px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pilot-step span:first-child { font-size: 16.5px; color: rgba(16,17,20,0.72); }
.pilot-step span:last-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--tint-a-text); white-space: nowrap; }
.pilot-step.is-muted span:last-child { color: rgba(16,17,20,0.45); }

/* ---------- Projetos: header de seção + filtros ---------- */
.section-header { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 40px 32px; }
.section-header-inner { max-width: var(--wrap-width); margin: 0 auto; }
.section-header h1 { margin: 10px 0 0; font-size: 38px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.section-header p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: rgba(16,17,20,0.6); max-width: 60ch; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; }
.filter-chips a { border-radius: var(--radius-pill); padding: 9px 16px; border: 1px solid var(--border-strong); color: var(--fg); }
.filter-chips a:hover { border-color: var(--fg); color: var(--fg); }
.filter-chips a.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Projetos grid & card ---------- */
.projects-list { max-width: var(--wrap-width); margin: 0 auto; padding-top: 12px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.project-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.project-row:hover { border-color: rgba(16,17,20,0.3); box-shadow: var(--shadow-card); }
.project-row-media {
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.tint-a .project-row-media { background-color: var(--tint-a-bg); }
.tint-b .project-row-media { background-color: var(--tint-b-bg); }
.project-row-media.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(28,58,46,0.08) 35%, rgba(16,17,20,0.72) 100%);
}
.project-row-metric { position: relative; z-index: 1; }
.project-row-metric .metric-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.project-row-metric .metric-value { margin-top: 6px; font-size: 30px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.tint-a .project-row-media:not(.has-media) .metric-label { color: var(--tint-a-text); }
.tint-a .project-row-media:not(.has-media) .metric-value { color: var(--tint-a-value); }
.tint-b .project-row-media:not(.has-media) .metric-label { color: var(--tint-b-text); }
.tint-b .project-row-media:not(.has-media) .metric-value { color: var(--tint-b-value); }
.project-row-media.has-media .metric-label { color: rgba(255,255,255,0.78); }
.project-row-media.has-media .metric-value { color: #fff; }
.project-row-body { padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.project-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-row-top .eyebrow { color: var(--fg-muted-2); }
.project-row-body h3 { margin: 10px 0 0; font-size: 23px; letter-spacing: -0.026em; font-weight: 600; color: var(--fg); }
.project-row-body p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(16,17,20,0.6); max-width: 62ch; }
.project-row-funding { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted-3); }
.status-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-badge.is-ongoing { color: var(--color-primary); border-color: var(--tint-a-border); background: var(--tint-a-bg); }
.status-badge.is-wrapping-up { color: #9A6B12; border-color: #EBD9AE; background: #FBF3E1; }
.status-badge.is-closed { color: var(--fg-muted); border-color: var(--border-strong); background: var(--bg); }
.project-row-arrow {
  flex: none;
  align-self: center;
  margin-right: 26px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted-2);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.project-row:hover .project-row-arrow { border-color: var(--color-primary); color: var(--color-primary); background: var(--tint-a-bg); }
.project-single-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Cards em destaque na home */
.highlight-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.highlight-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 26px; transition: border-color 160ms ease; display: block; }
.highlight-card:hover { border-color: rgba(16,17,20,0.3); }
.highlight-card .metric-value { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; font-size: 46px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.highlight-card h3 { margin: 18px 0 0; font-size: 23px; letter-spacing: -0.028em; font-weight: 600; }
.highlight-card p { margin: 9px 0 0; font-size: 15.5px; line-height: 1.5; color: rgba(16,17,20,0.62); }
.tint-a .highlight-card .eyebrow, .highlight-card.tint-a .eyebrow { color: var(--tint-a-text); }
.tint-a .metric-value { color: var(--tint-a-value); }
.tint-b .metric-value { color: var(--tint-b-value); }
.highlight-card.tint-b .eyebrow { color: var(--tint-b-text-2); }

/* ---------- Single projeto ---------- */
.project-single-header { background: #fff; border-bottom: 1px solid var(--border); padding: 36px 40px 56px; }
.project-single-header-inner { max-width: var(--wrap-width); margin: 0 auto; }
.back-link { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); }
.back-link:hover { color: var(--fg); }
.project-single-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: end; margin-top: 40px; }
.project-single-top h1 { margin: 18px 0 0; font-size: 62px; line-height: 0.97; letter-spacing: -0.038em; font-weight: 600; }
.project-single-top .lede { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: rgba(16,17,20,0.64); max-width: 48ch; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.meta-grid > div { background: var(--bg); padding: 20px 22px; }
.meta-grid .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted-2); }
.meta-grid .value { margin-top: 7px; font-size: 16px; }

.kpi-strip { max-width: var(--wrap-width); margin: 0 auto; padding: 44px 40px 0; }
.kpi-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.kpi-strip-grid > div { background: #fff; padding: 26px; }
.kpi-strip-grid .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted-2); }
.kpi-strip-grid .value { margin-top: 10px; font-size: 34px; letter-spacing: -0.035em; font-weight: 600; color: var(--tint-a-value); }

.project-gallery { max-width: var(--wrap-width); margin: 0 auto; padding: 40px 40px 0; }
.project-gallery-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.project-gallery-item { flex: 0 0 auto; width: 280px; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; box-shadow: var(--shadow-card); }
.project-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.project-gallery-item:hover img { transform: scale(1.04); }

.project-body-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 64px 40px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.project-body h2 { margin: 48px 0 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.project-body > h2:first-child { margin-top: 0; }
.project-body p { margin: 14px 0 0; font-size: 18px; line-height: 1.65; color: rgba(16,17,20,0.72); }
.highlights-list { display: grid; gap: 12px; margin-top: 28px; }
.highlights-list div { border-left: 2px solid var(--color-primary); padding: 4px 0 4px 18px; font-size: 17px; line-height: 1.55; color: rgba(16,17,20,0.72); }
.milestones-list { display: grid; gap: 1px; background: var(--border); margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.milestones-list div { background: #fff; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; }
.milestones-list .texto { font-size: 16.5px; }
.milestones-list .status { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); white-space: nowrap; }
.milestones-list .status.is-andamento { color: var(--tint-a-text); }
.project-publications-list { display: grid; gap: 18px; margin-top: 20px; }
.project-publications-list .titulo { font-size: 17px; font-weight: 500; }
.project-publications-list .meta { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); }

.project-sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.sidebar-logo-box { border-radius: var(--radius-md); padding: 22px; background: var(--tint-b-soft); display: flex; align-items: center; justify-content: center; }
.sidebar-logo-box img { height: 64px; width: auto; filter: hue-rotate(-58deg) saturate(1.4) brightness(1.08); }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #fff; }
.sidebar-box .eyebrow { color: var(--fg-muted-2); }
.sidebar-box-list { display: grid; gap: 10px; margin-top: 14px; font-size: 16px; color: rgba(16,17,20,0.75); }
.sidebar-box-list a { color: var(--color-primary); }
.sidebar-cta { border-radius: var(--radius-md); padding: 24px; background: var(--tint-a-bg); border: 1px solid var(--tint-a-border); }
.sidebar-cta p { font-size: 17.5px; line-height: 1.45; color: var(--tint-a-strong); margin: 0; }

/* ---------- Equipe do projeto (single) ---------- */
.team-section { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px 96px; }
.team-section h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 24px; }
.team-avatar { width: 64px; height: 64px; border-radius: var(--radius-pill); overflow: hidden; background: var(--tint-a-bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 17px; color: var(--tint-a-value); margin-bottom: 14px; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.team-role { margin-top: 6px; font-size: 14px; color: rgba(16,17,20,0.6); }
.team-link { margin-top: 10px; display: inline-block; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); }

/* ---------- Equipe (página) ---------- */
.team-page-header { max-width: var(--wrap-width); margin: 0 auto; padding: 48px 40px 8px; text-align: center; }
.team-page-header h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.faculty-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 52px 40px 40px; }
.faculty-grid .eyebrow { margin-bottom: 22px; display: block; }
.faculty-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.faculty-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lattes-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg-muted-2);
  opacity: 0.6;
  transition: opacity 160ms ease, border-color 160ms ease, color 160ms ease;
}
.lattes-badge:hover { opacity: 1; border-color: var(--color-primary); color: var(--color-primary); }
.faculty-avatar {
  width: 88px; height: 88px; border-radius: var(--radius-pill);
  background: var(--tint-a-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 24px; color: var(--tint-a-value);
  overflow: hidden;
  flex: none;
}
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; }
.faculty-avatar.tint-b { background: var(--tint-b-soft); color: var(--tint-b-value); }
.name-row { display: flex; align-items: center; gap: 7px; }
.flag { font-size: 15px; line-height: 1; }
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.area-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  width: fit-content;
}
.activity { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--fg-muted-2); font-style: italic; }

.faculty-card .nome { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.faculty-card .name-row { margin-top: 18px; justify-content: center; }
.faculty-card .cargo { margin-top: 6px; font-size: 15px; color: rgba(16,17,20,0.6); }
.faculty-card .affiliation { margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--fg-muted-2); }
.faculty-card .area-tags { justify-content: center; }
.faculty-card .links { margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); display: flex; gap: 4px; }

.postgrad-section { max-width: var(--wrap-width); margin: 0 auto; padding: 32px 40px 40px; }
.postgrad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.postgrad-card { position: relative; display: flex; align-items: center; gap: 13px; border-radius: 16px; background: #fff; padding: 16px 18px; }
.postgrad-avatar {
  flex: none;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: var(--tint-b-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--tint-b-value);
  overflow: hidden;
}
.postgrad-avatar img { width: 100%; height: 100%; object-fit: cover; }
.postgrad-info { min-width: 0; }
.postgrad-info .nome { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.postgrad-info .linha { margin-top: 4px; font-size: 14px; color: rgba(16,17,20,0.6); }
.postgrad-info .projeto { margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); }

.openings-cta { max-width: var(--wrap-width); margin: 0 auto; padding: 24px 40px 96px; }
.openings-cta-inner {
  border: 1px solid var(--tint-a-border);
  background: var(--tint-a-bg);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.openings-cta-inner h2 { margin: 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; color: var(--tint-a-strong); }
.openings-cta-inner p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: #3B6656; max-width: 54ch; }

/* ---------- Publicações ---------- */
.publications-wrap, .products-wrap { padding: 52px 40px 96px; }
.products-wrap .projects-list { padding: 0; max-width: none; }
.publications-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.publication-row {
  background: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--fg);
  transition: background-color 140ms ease;
}
a.publication-row:hover { background: var(--bg); color: var(--fg); }
.publication-row-date { flex: none; width: 68px; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--fg-muted); }
.publication-row-main { min-width: 0; flex: 1; }
.publication-row-title { font-size: 16px; font-weight: 500; line-height: 1.4; }
.publication-row-meta { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--fg-muted-2); }
.publication-row-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tint-a-text);
  background: var(--tint-a-bg);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.publication-row-meta span:not(.publication-row-type) { font-family: var(--font-mono); }
.publication-row-arrow {
  flex: none;
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted-2);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
a.publication-row:hover .publication-row-arrow { border-color: var(--color-primary); color: var(--color-primary); background: var(--tint-a-bg); }
.publications-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; font-family: var(--font-mono); font-size: 13px; }
.publications-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}
a.page-numbers:hover { border-color: var(--fg); color: var(--fg); }
.publications-pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.publications-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Notícias ---------- */
/* ---------- Notícia principal + "Leia também" (estilo portal de notícias) ---------- */
.news-featured { padding: 40px 40px 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.news-master-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.news-master-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.news-master-thumb { aspect-ratio: 16 / 8.5; overflow: hidden; }
.news-master-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 320ms ease; }
.news-master-card:hover .news-master-thumb img { transform: scale(1.03); }
.news-master-thumb-placeholder { background: var(--tint-a-bg); }
.news-master-body { padding: 28px; }
.news-master-category {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tint-a-text); background: var(--tint-a-bg); border-radius: var(--radius-pill); padding: 4px 10px; margin-bottom: 12px;
}
.news-master-body h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
.news-master-body p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.news-master-body .news-card-meta { margin-top: 18px; }

.news-reading {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  padding: 20px; display: flex; flex-direction: column;
}
.news-reading-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted-2); padding-bottom: 14px; border-bottom: 2px solid var(--fg); margin-bottom: 4px; }
.news-reading-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.news-reading-list li { border-bottom: 1px solid var(--border); }
.news-reading-list li:last-child { border-bottom: none; }
.news-reading-list a {
  display: block; padding: 14px 10px; margin: 0 -10px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, padding-left 150ms ease;
}
.news-reading-list a:hover { background: var(--tint-a-bg); border-left-color: var(--color-primary); padding-left: 14px; }
.news-reading-category { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tint-a-text); margin-bottom: 5px; }
.news-reading-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.news-reading-date { display: flex; align-items: center; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted-2); }

.news-more-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted-2); margin-bottom: 20px; padding-top: 44px; border-top: 1px solid var(--border); }

.news-wrap { padding: 40px 40px 96px; }
.news-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.news-date-filters { display: flex; gap: 10px; }
.news-select {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  cursor: pointer;
}
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: border-color 160ms ease; }
.news-card:hover { border-color: var(--border-strong); }
.news-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-thumb-placeholder { background: var(--tint-a-bg); }
.news-card-body { padding: 22px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.news-card-category { color: var(--tint-a-text); background: var(--tint-a-bg); border-radius: var(--radius-pill); padding: 3px 9px; }
.news-card-date { color: var(--fg-muted-2); }
.news-card-author { color: var(--fg-muted-2); }
.news-card-body h3 { margin: 14px 0 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; color: var(--fg); line-height: 1.3; }
.news-card-body p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(16,17,20,0.6); }

/* ---------- Artigo (single post) ---------- */
.single-post .section-header-inner .post-card-meta { margin-top: 16px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-muted-2); }
.single-post .section-header h1 { margin-top: 14px; }
.entry-thumb { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }

.suggested-news { max-width: 760px; padding-top: 8px; padding-bottom: 64px; }
.suggested-news .eyebrow { margin-bottom: 18px; }
.suggested-news-card { max-width: 340px; }
.entry-content-wrap { max-width: 760px; padding-top: 44px; padding-bottom: 30px; }
.entry-content p { margin: 18px 0 0; font-size: 18px; line-height: 1.7; color: rgba(16,17,20,0.75); }
.entry-content p:first-child { margin-top: 0; }
.entry-content h2 { margin: 40px 0 0; font-size: 26px; letter-spacing: -0.025em; font-weight: 600; }
.entry-content img { max-width: 100%; border-radius: var(--radius-md); margin-top: 20px; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Infraestrutura ---------- */
.section-header .infrastructure-intro { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: rgba(16,17,20,0.65); max-width: 70ch; }
.section-header .infrastructure-intro p { margin: 10px 0 0; }
.section-header .infrastructure-intro p:first-child { margin-top: 0; }
.laboratory-block { padding: 52px 0; }
.laboratory-block + .laboratory-block { border-top: 1px solid var(--border); }
.laboratory-block-header { margin-bottom: 28px; }
.laboratory-block-header h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.laboratory-block-header p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-muted); max-width: 65ch; }
.laboratory-block-group { margin-top: 32px; }
.laboratory-block-group:first-of-type { margin-top: 0; }
.laboratory-block-group h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-muted-2); }
.laboratory-empty { color: var(--fg-muted-2); font-size: 14.5px; }
.infrastructure-photos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.infrastructure-photo-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.infrastructure-photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.infrastructure-photo-card figcaption { padding: 14px 16px; font-size: 14.5px; color: var(--fg-muted); }
.infrastructure-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.infrastructure-list-row { background: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.infrastructure-list-row .nome { font-size: 16.5px; font-weight: 500; }
.infrastructure-list-row .especificacao { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted-2); text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 68px 40px 36px; }
.site-footer-inner { max-width: var(--wrap-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(16,17,20,0.55); max-width: 36ch; }
.footer-rede-verdes { display: flex; align-items: center; gap: 12px; margin-top: 22px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; width: fit-content; }
.footer-rede-verdes img { height: 34px; width: auto; object-fit: contain; }
.footer-rede-verdes span { font-size: 14px; line-height: 1.35; color: rgba(16,17,20,0.6); }
.footer-rede-verdes strong { color: var(--fg); }
.footer-col { display: grid; gap: 11px; font-size: 15px; color: rgba(16,17,20,0.6); }
.footer-col .eyebrow { color: rgba(16,17,20,0.4); }
.footer-col a { color: rgba(16,17,20,0.6); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted-3);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .research-tracks-header { grid-template-columns: 1fr; gap: 24px; }
  .research-track-row, .research-track-row.is-reverse { grid-template-columns: 1fr; gap: 24px; }
  .research-track-row.is-reverse .research-track-row-media, .research-track-row.is-reverse .research-track-row-text { grid-column: 1; }
  .pilot-card { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-cards, .team-grid, .postgrad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .project-body-grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .rede-verdes-card { grid-template-columns: 1fr; text-align: left; }
  .project-single-top { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .wrap, .site-header-inner, .hero-grid, .marquee-section .eyebrow,
  .rede-verdes-section, .research-tracks-section, .pilot-section,
  .projects-list, .highlight-grid, .section-header-inner,
  .project-single-header-inner, .kpi-strip, .project-gallery, .project-body-grid,
  .faculty-grid, .postgrad-section, .openings-cta, .site-footer-inner, .team-section,
  .infrastructure-photos-section, .infrastructure-list-section, .publications-wrap, .news-wrap, .news-featured, .entry-content-wrap, .team-page-header, .products-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .primary-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .social-icons { gap: 10px; }
  .site-branding img.logo-ufc { display: none; }
  .site-branding-divider { display: none; }
  .site-header { padding: 12px 16px; }
  .site-header-inner { height: 68px; border-radius: var(--radius-lg); gap: 16px; }
  .site-branding img.logo-grei { height: 42px; }
  .highlight-grid, .faculty-cards, .team-grid, .postgrad-grid { grid-template-columns: 1fr; }
  .infrastructure-photos-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-master-body h2 { font-size: 24px; }
  .project-row { grid-template-columns: 1fr; }
  .project-row-media { min-height: 150px; }
  .project-row-arrow { display: none; }
  .news-filters { flex-direction: column; align-items: flex-start; }
  .kpi-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-title { font-size: clamp(30px, 8vw, 44px); }
  .hero-video-frame { min-height: 260px; }
  .publication-row { flex-wrap: wrap; gap: 8px 14px; }
  .publication-row-date { width: auto; order: 2; }
  .publication-row-main { order: 1; flex-basis: 100%; }
  .publication-row-arrow { order: 3; }
  .infrastructure-list-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .infrastructure-list-row .especificacao { text-align: left; }
}

/* ---------- Página de projeto estilo "loja de jogo" (VRSL e afins) ---------- */
.vrsl-game-page { background: #10161c; color: rgba(255,255,255,0.86); }

.vgp-hero {
  position: relative;
  padding: 40px 40px 44px;
  background: var(--vgp-hero-img, none) center/cover no-repeat, #0c1116;
  overflow: hidden;
}
.vgp-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,16,0.78) 0%, rgba(8,12,16,0.94) 65%, #10161c 100%);
}
.vgp-hero-inner { position: relative; max-width: var(--wrap-width); margin: 0 auto; }
.vgp-back-link { display: inline-block; color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.vgp-back-link:hover { color: #fff; }

.vgp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vgp-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
}
.vgp-tag-status { background: rgba(155,210,180,0.16); border-color: rgba(155,210,180,0.32); color: #9BD2B4; }

.vgp-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; color: #fff; max-width: 820px; }
.vgp-lede { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.68); max-width: 640px; margin: 0 0 28px; }

.vgp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.vgp-btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-primary-light); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(74,124,104,0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vgp-btn-download:hover { background: var(--color-primary-lighter); transform: translateY(-1px); }
.vgp-btn-download-icon { font-size: 16px; }
.vgp-btn-secondary {
  display: inline-flex; align-items: center;
  padding: 14px 22px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.85);
  text-decoration: none; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease;
}
.vgp-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.vgp-stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 640px; }
.vgp-stat { display: flex; flex-direction: column; gap: 4px; }
.vgp-stat strong { font-size: 22px; font-weight: 800; color: #fff; }
.vgp-stat span { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; }

.vgp-gallery { max-width: var(--wrap-width); margin: 0 auto; padding: 28px 40px 0; }
.vgp-gallery-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.vgp-gallery-item { flex: 0 0 auto; width: 260px; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.vgp-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.vgp-gallery-item:hover img { transform: scale(1.04); }

.vgp-body { max-width: var(--wrap-width); margin: 0 auto; padding: 48px 40px 96px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.34fr); gap: 56px; align-items: start; }
.vgp-section { margin-bottom: 48px; }
.vgp-section h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.vgp-section p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.7); margin: 0 0 14px; }

.vgp-feature-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.vgp-feature-list li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,0.78); }
.vgp-feature-list li::before { content: "✓"; position: absolute; left: 0; color: #9BD2B4; font-weight: 700; }

.vgp-requirements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.vgp-requirements-col { background: #151c23; padding: 22px 24px; }
.vgp-requirements-col.is-recommended { background: #161f1a; }
.vgp-requirements-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #9BD2B4; margin-bottom: 14px; }
.vgp-requirements-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vgp-requirements-col li { font-size: 14.5px; color: rgba(255,255,255,0.75); padding-left: 16px; position: relative; }
.vgp-requirements-col li::before { content: "–"; position: absolute; left: 0; color: rgba(255,255,255,0.35); }
.vgp-muted { color: rgba(255,255,255,0.35) !important; }

.vgp-controls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.vgp-control-row { display: flex; align-items: center; gap: 12px; background: #151c23; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 10px 14px; }
.vgp-key { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #10161c; background: #9BD2B4; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.vgp-action { font-size: 14px; color: rgba(255,255,255,0.75); }

.vgp-publications-list { display: grid; gap: 14px; }
.vgp-pub-title { font-size: 15px; font-weight: 600; color: #fff; }
.vgp-pub-meta { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.vgp-pub-meta a { color: #9BD2B4; }

.vgp-sidebar { display: grid; gap: 20px; position: sticky; top: 24px; }
.vgp-sidebar-box { background: #151c23; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 20px; }
.vgp-sidebar-eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.vgp-awards-list { display: grid; gap: 10px; }
.vgp-award { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.vgp-credits-list { display: grid; gap: 8px; }
.vgp-credits-list a, .vgp-credits-list span { font-size: 14px; color: rgba(255,255,255,0.78); text-decoration: none; }
.vgp-credits-list a:hover { color: #9BD2B4; }
.vgp-credit-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vgp-credit-row small { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.vgp-sidebar-cta p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0 0 14px; }
.vgp-sidebar-cta .vgp-btn-secondary { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .vgp-body { grid-template-columns: 1fr; }
  .vgp-sidebar { position: static; }
}
@media (max-width: 780px) {
  .vgp-hero, .vgp-gallery, .vgp-body { padding-left: 20px; padding-right: 20px; }
  .vgp-requirements-grid { grid-template-columns: 1fr; }
}

.vgp-gallery-item { cursor: zoom-in; }

.vgp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,9,12,0.92);
  padding: 40px;
  opacity: 0; transition: opacity 0.18s ease;
}
.vgp-lightbox.is-open { display: flex; opacity: 1; }
body.vgp-lightbox-locked { overflow: hidden; }
.vgp-lightbox-img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: var(--radius-md); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.vgp-lightbox-close, .vgp-lightbox-prev, .vgp-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff;
  border-radius: var(--radius-pill); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vgp-lightbox-close:hover, .vgp-lightbox-prev:hover, .vgp-lightbox-next:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.vgp-lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.vgp-lightbox-prev, .vgp-lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.vgp-lightbox-prev { left: 24px; }
.vgp-lightbox-next { right: 24px; }
@media (max-width: 780px) {
  .vgp-lightbox { padding: 16px; }
  .vgp-lightbox-prev, .vgp-lightbox-next { width: 40px; height: 40px; }
  .vgp-lightbox-prev { left: 10px; }
  .vgp-lightbox-next { right: 10px; }
  .vgp-lightbox-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vgp-lightbox { transition: none; }
}
