/* ============================================================
   APqC — Associação dos Pesquisadores Científicos do Estado de SP
   Design System · 2026
   Paleta da marca: gradiente Vermelho #E30B2D → Magenta → Roxo #7B1FA2
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Marca — gradiente da molécula */
  --red:        #E30B2D;
  --red-deep:   #C10826;
  --magenta:    #C0136B;
  --purple:     #7B1FA2;
  --purple-deep:#5E148A;
  --grad:       linear-gradient(100deg, #E30B2D 0%, #C0136B 48%, #7B1FA2 100%);
  --grad-soft:  linear-gradient(100deg, rgba(227,11,45,.10) 0%, rgba(192,19,107,.10) 50%, rgba(123,31,162,.10) 100%);

  /* Neutros */
  --ink:        #26262B;   /* charcoal do logotipo */
  --ink-2:      #3A3A40;
  --body:       #4A4A52;
  --muted:      #7B7B84;
  --paper:      #FFFFFF;
  --surface:    #F7F6F9;
  --surface-2:  #F0EEF4;
  --line:       #E7E4EC;
  --line-soft:  #F0EEF4;
  --dark:       #1C1B22;   /* fundo escuro (footer/hero dark) */
  --dark-2:     #26242E;

  /* Tipografia */
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala */
  --container: 1220px;
  --container-narrow: 860px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(38, 38, 43, .06);
  --shadow:    0 16px 44px -20px rgba(38, 38, 43, .30);
  --shadow-lg: 0 34px 80px -32px rgba(94, 20, 138, .38);
  --shadow-brand: 0 20px 46px -20px rgba(192, 19, 107, .55);

  --header-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; }
img, video { max-width: 100%; }
img { height: auto; }
.prose svg, .prose img { max-width: 100%; }
a { color: var(--magenta); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--purple); }
ul, ol { padding-left: 1.15em; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
strong, b { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 5px; }
::selection { background: rgba(192, 19, 107, .18); color: var(--purple-deep); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding: clamp(60px, 8.5vw, 122px) 0; position: relative; }
.section--surface { background: var(--surface); }
.section--tight { padding: clamp(46px, 6vw, 78px) 0; }
.section--dark { background: var(--dark); color: #D6D3DE; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 24px; height: 3px; background: var(--grad); border-radius: 3px; }
.section--dark .kicker { color: #F0A9C6; }
.kicker--center { justify-content: center; }

/* ---------- Headings scale ---------- */
.display  { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; }
.h1       { font-size: clamp(2.05rem, 4.4vw, 3.3rem); }
.h2       { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.h3       { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.lead     { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--body); line-height: 1.62; }
.muted    { color: var(--muted); }
.center   { text-align: center; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 740px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  box-shadow: var(--shadow-sm); text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--brand { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-brand); }
.btn--brand:hover { box-shadow: 0 26px 54px -22px rgba(192,19,107,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { color: var(--purple); border-color: var(--purple); background: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--purple); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }
.section--dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px -22px rgba(38,38,43,.6);
}
.site-header.is-transparent { background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand__fallback { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); }
.site-header.is-transparent .brand__fallback { color: #fff; }

/* Desktop nav */
.nav { display: flex; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-weight: 500; font-size: 14.5px; color: var(--ink-2);
  padding: 9px 13px; border-radius: 10px; cursor: pointer;
  transition: color .2s, background .2s;
}
.site-header.is-transparent .nav__link { color: rgba(255,255,255,.92); }
.nav__link:hover { color: var(--magenta); background: rgba(123,31,162,.06); }
.site-header.is-transparent .nav__link:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav__item.is-active > .nav__link { color: var(--magenta); }
.site-header.is-transparent .nav__item.is-active > .nav__link { color: #fff; }
.nav__link .chev { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav__item.has-mega:hover .chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 10px);
  min-width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  display: grid; gap: 3px;
}
.mega--wide { min-width: 560px; grid-template-columns: 1fr 1fr; }
.nav__item.has-mega:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px; }
.mega__link {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 13px; border-radius: 12px; color: var(--ink);
  transition: background .18s;
}
.mega__link:hover { background: var(--surface); color: var(--ink); }
.mega__ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; background: var(--grad);
}
.mega__ico svg { width: 20px; height: 20px; }
.mega__t { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mega__d { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.site-header.is-transparent .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.menu-open .site-header .burger span { background: var(--ink); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; padding: 22px 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
}
body.menu-open .mobile-nav { transform: translateX(0); visibility: visible; }
body.menu-open { overflow: hidden; }
.m-group { border-bottom: 1px solid var(--line-soft); }
.m-top {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--ink);
  padding: 16px 2px; text-align: left;
}
.m-top .chev { width: 20px; height: 20px; transition: transform .25s var(--ease); color: var(--muted); }
.m-group.open .m-top .chev { transform: rotate(180deg); }
.m-sub { display: grid; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-group.open .m-sub { max-height: 500px; }
.m-sub a { padding: 11px 2px 11px 16px; color: var(--body); font-size: 15.5px; border-left: 2px solid var(--line); margin-left: 2px; }
.m-sub a:hover { color: var(--magenta); border-color: var(--magenta); }
.mobile-nav .btn { width: 100%; margin-top: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden;
  background: var(--dark); color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero__blob--1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(227,11,45,.9), transparent 68%); top: -220px; right: -120px; }
.hero__blob--2 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(123,31,162,.9), transparent 68%); bottom: -260px; left: -120px; }
.hero__blob--3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(192,19,107,.7), transparent 70%); top: 30%; left: 44%; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero .display { color: #fff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: #fff;
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(227,11,45,.2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; background: linear-gradient(100deg,#fff,#F0A9C6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stat .l { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 8px; }

/* Page hero (interior) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(46px, 7vw, 84px));
  padding-bottom: clamp(40px, 6vw, 68px); overflow: hidden;
  background: var(--dark); color: #fff;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg .hero__blob--1 { width: 480px; height: 480px; opacity: .42; }
.page-hero__bg .hero__blob--2 { width: 440px; height: 440px; opacity: .42; }
.page-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.8); } .breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; background: var(--grad); margin-bottom: 20px; box-shadow: var(--shadow-brand);
}
.card__ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--body); }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: 14.5px; color: var(--magenta); }
.card__link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature card w/ top accent */
.feature { position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature:hover::before { transform: scaleX(1); }

/* News cards */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.news-card__media { aspect-ratio: 16/9; background: var(--grad); position: relative; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.news-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.news-card__excerpt { font-size: 14.5px; color: var(--body); flex: 1; }
.news-card__more { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--purple); display: inline-flex; align-items: center; gap: 6px; }
.news-card__more svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s var(--ease); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }
.news-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(28,27,34,.72); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); backdrop-filter: blur(6px); }

/* Pill / chip */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--magenta); color: var(--magenta); }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }

/* Stat block */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 16px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--ink); }
.stat .n.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Prose (article body) */
.prose { max-width: 760px; font-size: 17.5px; line-height: 1.8; color: var(--body); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-top: 1.6em; }
.prose p { margin-top: 1.1em; }
.prose ul, .prose ol { margin-top: 1.1em; padding-left: 1.3em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--magenta); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(192,19,107,.35); }
.prose blockquote { border-left: 4px solid transparent; border-image: var(--grad) 1; padding: 6px 0 6px 26px; font-family: var(--font-display); font-size: 1.2em; color: var(--ink); font-style: italic; }
.prose .lead-p { font-size: 1.16em; color: var(--ink-2); font-weight: 500; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; }
.prose .wp-block-embed, .prose .wp-block-embed__wrapper { margin: 1.6em 0; }
.prose h2:first-child, .prose h3:first-child, .prose p:first-child { margin-top: 0; }

/* ---------- Toolbar (busca + filtros) ---------- */
.news-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(192,19,107,.1); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.news-count { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.news-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.news-empty svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--line); }

/* ---------- Paginação ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 52px; }
.pagination button { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 11px; font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .18s var(--ease); }
.pagination button:hover:not(:disabled) { border-color: var(--magenta); color: var(--magenta); }
.pagination button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .dots { color: var(--muted); padding: 0 4px; }

/* Split media/content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-right { direction: ltr; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split__media .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); }
.split__badge { position: absolute; bottom: -22px; right: -18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.split__badge .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.split__badge .l { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* List with icons */
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; color: var(--body); }
.check-list .ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); color: var(--magenta); display: grid; place-items: center; margin-top: 2px; }
.check-list .ico svg { width: 15px; height: 15px; }

/* Institute grid */
.inst-group { margin-top: 44px; }
.inst-group:first-child { margin-top: 0; }
.inst-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.inst-group__badge { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-brand); }
.inst-group__badge svg { width: 22px; height: 22px; }
.inst-group__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.inst-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all .22s var(--ease); }
.inst-item:hover { border-color: var(--magenta); box-shadow: var(--shadow-sm); transform: translateX(3px); color: var(--ink); }
.inst-item span { font-weight: 500; font-size: 15px; color: var(--ink-2); }
.inst-item svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; transition: color .2s, transform .2s; }
.inst-item:hover svg { color: var(--magenta); transform: translateX(2px); }
.inst-note { margin-top: 18px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); border-left: 3px solid var(--magenta); }

/* People / directoria */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.person__role { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.person__role--muted { background: var(--surface-2); color: var(--ink-2); }
.person__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.person__inst { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Timeline (diretorias anteriores) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--purple)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--magenta); box-shadow: 0 0 0 4px rgba(192,19,107,.12); }
.tl-item__year { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-item:last-child { border-bottom: 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; background: transparent; border: 0; cursor: pointer; padding: 22px 26px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); transition: background .2s; }
.acc-head:hover { background: var(--surface); }
.acc-head .chev { width: 22px; height: 22px; color: var(--magenta); flex-shrink: 0; transition: transform .28s var(--ease); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-item.open .acc-body { max-height: 1600px; }
.acc-body__inner { padding: 0 26px 26px; }

/* Medal / honoree table */
.honor-year { margin-top: 36px; }
.honor-year:first-child { margin-top: 0; }
.honor-year__label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.honor-year__num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.honor-year__line { flex: 1; height: 1px; background: var(--line); }
.honor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.honor { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.honor .medal-ico { flex-shrink: 0; color: var(--magenta); }
.honor .medal-ico svg { width: 18px; height: 18px; }
.honor__name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.honor__note { font-size: 12.5px; color: var(--muted); }
.honor-none { padding: 13px 18px; font-size: 14px; color: var(--muted); font-style: italic; }

/* Founders columns */
.founders-cols { columns: 3; column-gap: 40px; }
.founders-cols li { break-inside: avoid; margin-bottom: 9px; font-size: 14.5px; color: var(--ink-2); padding-left: 4px; }
.founders-cols li::marker { color: var(--magenta); font-size: .85em; }

/* Video cards */
.video-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--dark); position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card__play span { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: var(--shadow-brand); transition: transform .25s var(--ease); }
.video-card:hover .video-card__play span { transform: scale(1.1); }
.video-card__play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band .hero__blob--1 { width: 400px; height: 400px; top: -160px; right: -80px; }
.cta-band .hero__blob--2 { width: 380px; height: 380px; bottom: -180px; left: -80px; }
.cta-band__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 14px; }
.cta-band .hero__actions { justify-content: center; }

/* Contact cards */
.contact-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card__ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); color: var(--magenta); display: grid; place-items: center; }
.contact-card__ico svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 15px; margin-bottom: 5px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--body); }
.contact-card a:hover { color: var(--magenta); }

/* Doc / download rows */
.doc-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all .22s var(--ease); }
.doc-row:hover { border-color: var(--magenta); box-shadow: var(--shadow-sm); }
.doc-row__ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: var(--grad-soft); color: var(--magenta); display: grid; place-items: center; }
.doc-row__ico svg { width: 22px; height: 22px; }
.doc-row__body { flex: 1; }
.doc-row__title { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.doc-row__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.doc-row__cta { flex-shrink: 0; color: var(--magenta); }
.doc-row__cta svg { width: 20px; height: 20px; }

/* Logo marquee */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-chip { flex-shrink: 0; height: 84px; min-width: 150px; padding: 0 26px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.logo-chip span { font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Quote / poem */
.poem { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); font-family: var(--font-display); font-size: 1.12rem; line-height: 2; color: var(--ink-2); text-align: center; position: relative; }
.poem__author { display: block; margin-top: 20px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--magenta); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: #B7B3C2; padding: clamp(56px, 7vw, 88px) 0 34px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 42px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14.5px; color: #9C98A8; max-width: 340px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #D6D3DE; border: 1px solid rgba(255,255,255,.09); transition: all .22s var(--ease); }
.footer-social a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: #9C98A8; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { list-style: none; font-size: 14px; color: #9C98A8; line-height: 1.55; }
.footer-contact strong { display: block; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-contact a { color: #9C98A8; } .footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7C7889; }
.footer-bottom a { color: #9C98A8; } .footer-bottom a:hover { color: #fff; }

/* ---------- To-top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow-brand); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .logo-track { animation: none; } * { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__badge { right: 16px; bottom: 16px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .founders-cols { columns: 2; }
  .hero__stats { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .founders-cols { columns: 1; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
}
