/* ==========================================================================
   Events Team — Grupo ICOM · experiência imersiva
   Base: layout comum, legível sem JS e com "reduzir movimento".
   .imm: modo imersivo (cenas fixas, controladas pela linha do tempo em
   js/imersao.js).
   ========================================================================== */

:root {
  --blue-950: #001a2b;
  --blue-900: #003456;
  --gold: #c2b067;
  --gold-logo: #d6ad58;
  --gold-light: #e6d79a;
  --gold-on-light: #75682f;
  --cream: #efe9dc;
  --blue-700: #195181;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);

  --font-display: 'NORD', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --logo-w: clamp(260px, 54vw, 820px);
}

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

html { font-size: 16px; background: var(--blue-950); }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--blue-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.nowrap { white-space: nowrap; }
.hl { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ------------------------------------------------------- Tipografia comum */
.roles__title,
.ev__title,
.mani__quote {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* SplitText: palavras nunca quebram no meio */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform, opacity; }

/* ================================================================== TOPBAR */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--gutter);
}

.topbar__brand img { width: auto; height: 20px; }

.topbar__nav { display: flex; gap: 32px; }

.topbar__nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
}

.topbar__nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================== LAYOUT COMUM (sem JS / reduzir movimento) ===== */
html:not(.imm) .topbar { position: absolute; }
html:not(.imm) #gl,
html:not(.imm) .intro-line,
html:not(.imm) .progress,
html:not(.imm) .sound,
html:not(.imm) .hero__cue,
html:not(.imm) .team__curtain,
html:not(.imm) .hero__shine,
html:not(.imm) #scroll-spacer,
html:not(.imm) #stage-blur,
html:not(.imm) .stage-dom { display: none; }

html:not(.imm) .scene {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  max-width: 1120px;
  margin: 0 auto;
}

html:not(.imm) .hero { text-align: center; padding-top: 140px; }
html:not(.imm) .hero__logo { width: var(--logo-w); margin: 0 auto 24px; }
html:not(.imm) .hero__claim { display: block; }
html:not(.imm) .team__photo { margin-bottom: 40px; }
html:not(.imm) .team__tilt img { border-radius: 12px; }
html:not(.imm) .team__copy > * + * { margin-top: 20px; }
html:not(.imm) .team__copy { margin-bottom: 32px; }
html:not(.imm) .final { padding: 64px var(--gutter); text-align: center; }
html:not(.imm) .final__logo { width: 220px; margin: 0 auto 16px; }

/* ================================================================== PALCO */
.imm body { overscroll-behavior: none; }

.imm .stage-dom,
.imm #gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.imm .stage-dom { z-index: 0; overflow: hidden; background: var(--blue-950); }
.imm #gl { z-index: 1; pointer-events: none; }

.imm .stage-dom video,
.imm .stage-dom img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
}

.imm .exp {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.imm .scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.imm .hero { visibility: visible; }

.imm .topbar { visibility: hidden; opacity: 0; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 21;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}

.intro-line {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(60vw, 720px);
  height: 1px;
  margin-left: calc(min(60vw, 720px) / -2);
  background: linear-gradient(90deg, transparent, var(--gold-logo), transparent);
  transform: scaleX(0);
  pointer-events: none;
}

/* Botão de som */
.sound {
  position: fixed;
  right: var(--gutter);
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--white);
  font: 600 11px var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.sound__bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }

.sound__bars i {
  width: 2px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0.2);
}

.sound[aria-pressed='true'] .sound__bars i { animation: bars 900ms ease-in-out infinite alternate; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(2) { animation-delay: -250ms; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(3) { animation-delay: -500ms; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(4) { animation-delay: -700ms; }

@keyframes bars {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

/* =================================================================== HERO */
.hero__title { font: inherit; }

.imm .hero__inner {
  position: absolute;
  inset: 0;
}

.imm .hero__logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo-w);
  margin-left: calc(var(--logo-w) / -2);
  aspect-ratio: 1077 / 196;
  transform-origin: 56.2% 50%;
}

.imm .hero__logo { width: 100%; opacity: 0; }

.hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, var(--gold-light) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 120% 0;
  /* a imagem da máscara é definida em js/imersao.js */
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.7vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.hero__claim strong { font-weight: 900; color: var(--gold); }

.imm .hero__claim {
  position: absolute;
  top: calc(50% + var(--logo-w) * 0.09 + clamp(22px, 4vh, 44px));
  left: var(--gutter);
  right: var(--gutter);
  text-shadow: 0 2px 24px rgba(0, 14, 28, 0.7);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0;
}

.hero__cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.hero__cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: cue 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* =================================================================== TEAM */
.team__title {
  font: inherit;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  margin: 18px 0 22px;
}

.team__t2 { color: var(--gold); }
html:not(.imm) .team__t1,
html:not(.imm) .team__t2,
html:not(.imm) .team__t3 { display: block; }

.team__lead {
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.team__tilt img {
  width: 100%;
  height: 100%;
  /* recorte panorâmico na equipe: tira a parede de cima e o palco de baixo */
  object-fit: cover;
  object-position: 50% 36%;
  aspect-ratio: 16 / 9;
}

/* Pôster: o nome de ponta a ponta, a foto sangrando no canto inferior direito */
.imm .team {
  --t2-size: min(10.7vw, 21vh);
  --t2-top: 108px;
  --photo-top: calc(var(--t2-top) + var(--t2-size) + 14px);
  --photo-gap: clamp(24px, 4.5vh, 48px);
  /* foto 16:9 dentro da área livre, afastada das bordas */
  --photo-w: min(58vw, calc((100vh - var(--photo-top) - var(--photo-gap)) * 16 / 9));
  color: var(--blue-950);
}

.team__curtain { position: absolute; inset: 0; display: flex; }

.team__curtain i {
  flex: 1 1 0;
  margin-right: -1px;
  background: var(--cream);
}

.imm .team .eyebrow {
  position: absolute;
  top: 76px;
  right: var(--gutter);
  color: var(--gold-on-light);
}

.imm .team .eyebrow::before { background: var(--gold-on-light); }

.imm .team__title { position: static; margin: 0; font-size: inherit; }

.imm .team__t1,
.imm .team__t3 {
  position: absolute;
  left: var(--gutter);
  font-size: clamp(1.05rem, 2.1vw, 2rem);
  line-height: 1;
}

.imm .team__t1 { top: 72px; }
.imm .team__t3 { top: var(--photo-top); }

.imm .team__t2 {
  position: absolute;
  top: var(--t2-top);
  left: calc(var(--gutter) - 0.08em); /* compensa o respiro lateral da fonte */
  right: var(--gutter);
  overflow: hidden;
  font-size: var(--t2-size);
  line-height: 1;
  white-space: nowrap;
  color: var(--blue-950);
}

/* Texto logo abaixo de "da ICOM", na coluna livre ao lado da foto */
.imm .team__lead {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--photo-top) + clamp(2.4rem, 3.6vw, 3.6rem));
  width: min(calc(100vw - var(--photo-w) - var(--gutter) * 3), 460px);
  font-size: clamp(0.92rem, 1.1vw, 1.1rem);
  line-height: 1.65;
}

.imm .team__photo {
  position: absolute;
  top: var(--photo-top);
  right: var(--gutter);
  width: var(--photo-w);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.imm .team__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 60%;
}

.team__strip { position: absolute; inset: 0; overflow: hidden; }

/* ========================================== FOLHA QUE SOBE SOBRE O PÔSTER */
.flow { position: relative; z-index: 5; overflow-x: clip; }
/* Enquanto a abertura carrega, o #scroll-spacer ainda tem altura 0 e a .flow
   ficaria no topo, por cima do hero. A frase do hero também espera, porque a
   abertura é que faz ela entrar. O JS marca .imm-ready quando está tudo pronto. */
.imm:not(.imm-ready) .flow,
.imm:not(.imm-ready) .hero__claim { visibility: hidden; }

/* Topo e som sempre legíveis: a cor se inverte conforme o fundo */
.imm .topbar,
.imm .sound { mix-blend-mode: difference; }

/* Com a página rolando: menu com fundo próprio, some ao descer e volta ao subir */
.imm .topbar { transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), background 250ms ease; }
.in-flow .topbar {
  mix-blend-mode: normal;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(0, 26, 43, 0.92);
}
.nav-hidden .topbar { transform: translateY(-100%); }
.in-flow.on-gold .topbar { background: var(--gold); }

/* Sobre o dourado a inversão fica fraca: usa o azul da marca */
.on-gold .topbar,
.on-gold .sound { mix-blend-mode: normal; }
.on-gold .topbar__nav a,
.on-gold .sound { color: var(--blue-950); }
.on-gold .topbar__brand img { filter: brightness(0); }
.on-gold .sound__bars i { background: var(--blue-950); }

/* ================================================================ NÚMEROS */
.nums {
  padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(48px, 6vw, 96px);
  background: var(--blue-950);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 12, 24, 0.35);
}

.nums__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 18px);
  padding-top: clamp(48px, 7vh, 72px);
}

.stat {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 7vh, 96px);
  min-height: clamp(220px, 38vh, 400px);
  padding: clamp(18px, 2vw, 30px);
  border-radius: 14px;
  overflow: hidden;
}

.stat__label {
  max-width: 26ch;
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}

.stat--a { grid-column: span 4; background: var(--blue-900); }
.stat--a .stat__num { font-size: 33cqw; color: var(--gold); }

.stat--b { grid-column: span 8; background: var(--gold); color: var(--blue-950); }
.stat--b .stat__num { font-size: 20.5cqw; }

.stat--c { grid-column: span 7; background: var(--cream); color: var(--blue-950); }
.stat--c .stat__num { font-size: 20.5cqw; }

.stat--d { grid-column: span 5; border: 1px solid rgba(194, 176, 103, 0.55); }
.stat--d .stat__num { font-size: 27cqw; color: var(--gold); }

/* ================================================================== ROLES */
.roles {
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(48px, 6vw, 96px);
  background: var(--blue-950);
}

.roles__title {
  max-width: 13em;
  margin-bottom: clamp(28px, 5vh, 56px);
  font-size: clamp(2rem, 5.6vw, 6rem);
}

.roles__title .wd { overflow: hidden; }

.roles__stack { display: flex; flex-direction: column; gap: 14px; }

.role__card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.6vw, 40px);
  border-radius: 18px;
  transform-origin: 50% 0%;
  overflow: hidden;
}

.role__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.role__index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  letter-spacing: 0.08em;
}

.role__title {
  overflow: hidden;
  padding-top: 0.14em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: min(5.2vw, 11vh);
  line-height: 1.2;
  text-transform: uppercase;
}

.role__desc {
  max-width: 40ch;
  margin-top: 12px;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.role__media {
  flex: 0 0 auto;
  width: min(28vw, 400px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue-950);
}

.role__media video { width: 100%; height: 100%; object-fit: cover; }

.role--1 .role__card { background: var(--blue-700); }
.role--1 .role__index { color: var(--gold-light); }

.role--2 .role__card { background: var(--blue-900); box-shadow: inset 0 0 0 1px rgba(194, 176, 103, 0.45); }
.role--2 .role__index { color: var(--gold); }

.role--3 .role__card { background: var(--gold); color: var(--blue-950); }

.role--4 .role__card { background: var(--cream); color: var(--blue-950); }

.imm .role {
  position: sticky;
  top: calc(72px + var(--i) * 12px);
}

.imm .role__card { height: calc(100vh - 150px); }

.imm .role__media { width: auto; height: 100%; max-width: 30vw; }

/* ================================================================ EVENTOS */
.ev {
  padding: clamp(40px, 6vw, 96px) 0 clamp(64px, 8vw, 128px);
  background: var(--blue-950);
  overflow-x: clip;
}

.ev__marquee { margin-bottom: clamp(36px, 6vw, 88px); overflow: hidden; }

.ev__track {
  width: max-content;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 12rem);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(194, 176, 103, 0.65);
}

.ev__track b { font-weight: 900; color: var(--gold); -webkit-text-stroke: 0; }

.ev__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  padding: 0 var(--gutter);
}

.ev__head { align-self: start; }
.imm .ev__head { position: sticky; top: 104px; }

.ev__title { margin: 18px 0 20px; font-size: clamp(1.9rem, 3.8vw, 4rem); }
.ev__title .wd { overflow: hidden; }

.ev__lead {
  max-width: 42ch;
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.ev__count {
  margin-top: clamp(20px, 5vh, 52px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.ev__count span { font-weight: 900; font-size: clamp(2.6rem, 5vw, 5rem); color: var(--gold); }

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: clamp(120px, 20vh, 190px);
  padding: 24px 0;
  border-top: 1px solid rgba(194, 176, 103, 0.35);
}

.event-card:last-child { border-bottom: 1px solid rgba(194, 176, 103, 0.35); }

.event-card__logo img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.event-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.event-card__desc {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.event-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.event-card__tags li {
  padding: 4px 12px;
  border: 1px solid rgba(194, 176, 103, 0.55);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A linha na altura de leitura ganha destaque */
.imm .event-card__logo { opacity: 0.5; transition: opacity 300ms ease; }
.imm .event-card.is-active .event-card__logo { opacity: 1; }
.imm .event-card.is-active .event-card__name { color: var(--gold); }

/* ============================================================== MANIFESTO */
.mani { background: var(--gold); color: var(--blue-950); }

.mani__sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 3vh, 30px);
  padding: clamp(64px, 9vh, 96px) var(--gutter);
}

.imm .mani { height: 280vh; }
.imm .mani__sticky { position: sticky; top: 0; height: 100vh; }

.mani .eyebrow { color: var(--blue-950); }
.mani .eyebrow::before { background: var(--blue-950); }

.mani__quote { font-size: min(6vw, 11vh); line-height: 1.04; }

.mani__punch { display: block; margin-top: 0.22em; }

.mani__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.mani__text {
  max-width: 60ch;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
}

.mani__sign {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ================================================================== FINAL */
.imm .final { height: 200vh; }

.imm .final__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.imm .final__logo { width: var(--logo-w); max-width: none; opacity: 0; }

.final__legal {
  font-size: clamp(0.66rem, 1.1vw, 0.76rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.imm .final__legal {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  text-align: center;
}

/* =============================================================== CELULAR */
@media (max-width: 899px) {
  /* Celular: nome, foto de ponta a ponta e texto embaixo */
  .imm .team { --t2-top: 74px; --t2-size: min(10vw, 8vh); --photo-top: calc(var(--t2-top) + var(--t2-size) + 36px); }
  .imm .team .eyebrow { top: 54px; font-size: 10px; letter-spacing: 0.22em; }
  .imm .team .eyebrow::before { width: 18px; }
  .imm .team__t1 { top: 52px; }
  .imm .team__t3 { top: calc(var(--t2-top) + var(--t2-size) + 8px); }
  .imm .team__photo {
    top: var(--photo-top);
    right: 0;
    bottom: auto;
    width: 100vw;
    height: min(75vw, 42vh);
    aspect-ratio: auto;
  }
  /* mais alta no celular: mostra a equipe inteira, sem a parede de cima */
  .team__tilt img { object-position: 50% 50%; aspect-ratio: auto; }
  .imm .team__lead {
    top: calc(var(--photo-top) + min(75vw, 42vh) + 20px);
    bottom: auto;
    right: var(--gutter);
    width: auto;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .stat--a, .stat--d { grid-column: span 5; }
  .stat--b, .stat--c { grid-column: span 7; }
  .ev__layout { grid-template-columns: minmax(0, 1fr); }
  .imm .ev__head { position: static; }
  .ev__count { display: none; }
  .mani__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mani__quote { font-size: min(8.4vw, 7.2vh); }
}

@media (max-width: 767px) {
  .topbar__nav { display: none; }
  .topbar { justify-content: center; padding: 16px var(--gutter); }
  .imm .sound { bottom: 12px; }

  /* Números em coluna: cada bloco inteiro, um abaixo do outro */
  .stat { grid-column: 1 / -1 !important; min-height: 150px; gap: 24px; }
  .stat--a .stat__num, .stat--d .stat__num, .stat--b .stat__num, .stat--c .stat__num { font-size: 19cqw; }

  /* Cartão: texto em cima, vídeo embaixo */
  .role__card { flex-direction: column; }
  .role__title { font-size: min(8vw, 6vh); }
  .role__media { width: auto; aspect-ratio: 2 / 3; height: 40vh; align-self: flex-start; }
  .imm .role__media { height: auto; flex: 1 1 0; min-height: 0; max-width: none; }

  .event-card { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; }
  .event-card__logo img { max-height: 56px; }
  .event-card__name { font-size: 1rem; }
}

/* Celular baixo */
@media (max-width: 899px) and (max-height: 700px) {
  .imm .team__lead { font-size: 0.8rem; line-height: 1.45; }
}

/* ============================================================== GALERIA 3D
   .g3d: as seções deixam de ser páginas e seus textos flutuam no espaço.
   Sem WebGL com textura, valem os layouts de página acima. */
.g3d .flow {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.g3d .nums,
.g3d .nums__grid,
.g3d .roles,
.g3d .roles__stack,
.g3d .ev,
.g3d .ev__layout,
.g3d .ev__list,
.g3d .mani,
.g3d .role__card,
.g3d .role__text { display: contents; }

.g3d .ev__marquee,
.g3d .ev__count,
.g3d .role__media { display: none; }

/* os vídeos continuam vivos, servindo de textura para os planos 3D */
.g3d .role video {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.g3d .role__media { display: block; position: fixed; width: 1px; height: 1px; opacity: 0; }

.g3d .anchor {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  will-change: transform, opacity;
  text-shadow: 0 2px 26px rgba(0, 14, 28, 0.85), 0 0 2px rgba(0, 14, 28, 0.5);
}

/* Números */
.g3d .stat {
  container-type: normal;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0;
  text-align: center;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--white);
}

.g3d .stat__label { display: block; margin-top: 10px; max-width: 30ch; font-size: clamp(1rem, 1.5vw, 1.5rem); }
.g3d .stat__num { display: block; font-size: min(13vw, 25vh) !important; color: var(--gold); }

/* O que fazemos */
.g3d .roles__title { margin: 0; max-width: 15em; text-align: center; font-size: min(6vw, 13vh); }
.g3d .role { display: block; width: min(52vw, 900px); top: 0; }
.g3d .role, .g3d .role__card { color: var(--white); }
.g3d .role__index { display: block; margin-bottom: 8px; color: var(--gold) !important; }
.g3d .role__title { font-size: min(5.2vw, 11vh); }
.g3d .role__desc { margin-top: 8px; font-size: clamp(1rem, 1.5vw, 1.45rem); }

/* Eventos */
.g3d .ev__head { width: min(78vw, 1100px); text-align: center; }
.g3d .ev__title { margin: 16px auto 18px; font-size: min(5.4vw, 12vh); }
.g3d .ev__lead { margin: 0 auto; max-width: 54ch; color: var(--white); }

.g3d .event-card {
  display: block;
  width: min(400px, 80vw);
  min-height: 0;
  padding: clamp(20px, 2vw, 30px);
  background: rgba(0, 38, 62, 0.94);
  border: 1px solid rgba(194, 176, 103, 0.6);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 8, 18, 0.55);
  text-shadow: none;
}

.g3d .event-card:last-child { border-bottom: 1px solid rgba(194, 176, 103, 0.6); }
.g3d .event-card__logo { margin-bottom: 18px; opacity: 1; }
.g3d .event-card__name { font-size: clamp(1rem, 1.4vw, 1.3rem); color: var(--white); }

/* Manifesto */
.g3d .mani__sticky {
  width: min(88vw, 1500px);
  height: auto;
  padding: 0;
  color: var(--white);
  background: none;
}

.g3d .mani .eyebrow { color: var(--gold); }
.g3d .mani .eyebrow::before { background: var(--gold); }
.g3d .mani__punch { color: var(--gold); }
.g3d .mani__text { color: var(--white); }
.g3d .mani__sign { color: var(--gold); }

/* Final */
.g3d .final { position: absolute; inset: 0; height: 100%; }
.g3d .final__sticky { position: absolute; inset: 0; height: 100%; }

@media (max-width: 899px) {
  .g3d .stat { width: 84vw; text-align: center; }
  .g3d .stat__num { font-size: min(19vw, 18vh) !important; }
  .g3d .stat__label { margin-inline: auto; }
  .g3d .roles__title { width: 84vw; font-size: 9vw; }
  .g3d .role { width: 84vw; text-align: center; }
  .g3d .role__title { font-size: 8vw; }
  .g3d .role__desc { margin-inline: auto; font-size: 0.95rem; }
  .g3d .ev__title { font-size: 8vw; }
  .g3d .ev__head { width: 86vw; }
  .g3d .mani__quote { font-size: min(8.2vw, 6.4vh); }
  .g3d .mani__text { font-size: 0.92rem; }
}

