/* ==========================================================================
   SEÇÕES ESCURAS DEPOIS DO PÔSTER (carregado depois de imersao.css)
   Painel em estilo dashboard: fundo azul profundo com luzes desfocadas que
   se movem devagar, e widgets de vidro fosco por cima (referência: widgets
   do macOS / visionOS).
   ========================================================================== */
:root {
  --glass-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.07) 100%);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(28px) saturate(170%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 8, 18, 0.45);
  --glass-radius: 28px;
  --ink-dim: rgba(255, 255, 255, 0.62);
}

/* ------------------------------------------------------------- Fundo */
.nums,
.roles,
.ev,
.crew {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(25, 81, 129, 0.22), transparent 70%),
    var(--blue-950);
}

/* Luzes desfocadas: dão o que o vidro "desfocar" */
.nums::before,
.nums::after,
.ev::before,
.ev::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orb 22s ease-in-out infinite alternate;
}

.nums::before,
.ev::before {
  top: 8%;
  right: -8%;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(214, 173, 88, 0.55), rgba(194, 176, 103, 0) 70%);
}

.nums::after,
.ev::after {
  bottom: -10%;
  left: -10%;
  width: min(55vw, 820px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31, 93, 147, 0.75), rgba(25, 81, 129, 0) 70%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.nums > *,
.ev > * { position: relative; z-index: 1; }

@keyframes orb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 4vh) scale(1.12); }
  100% { transform: translate(4vw, -5vh) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .nums::before, .nums::after, .ev::before, .ev::after { animation: none; }
}

/* ---------------------------------------------------- Números: cabeçalho */
.nums__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 16px clamp(24px, 4vw, 72px);
  padding-top: clamp(48px, 8vh, 96px);
}

.nums__head .eyebrow { grid-column: 1 / -1; }

.nums__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.2vw, 4.4rem);
}

.nums__title .wd { overflow: hidden; }

.nums__lead {
  max-width: 44ch;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.nums__grid { padding-top: clamp(32px, 5vh, 56px); }

/* ------------------------------------------------------ Widgets de vidro */
.stat,
.event-card,
.imm .event-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--white);
  overflow: hidden;
}

/* reflexo de luz no topo do vidro */
.stat::after,
.event-card .event-card__body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 55%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}

.stat {
  justify-content: flex-start;
  gap: 0;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 400ms ease;
}

@media (hover: hover) {
  .stat:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); }
}

/* cabeçalho do widget: ícone, rótulo e etiqueta */
.stat__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--blue-950);
  background: linear-gradient(145deg, var(--gold-light), var(--gold-logo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(214, 173, 88, 0.35);
}

.stat--c .stat__icon { color: var(--white); background: linear-gradient(145deg, #3d84c4, var(--blue-700)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px rgba(31, 93, 147, 0.45); }

.stat__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat__label {
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  font-weight: 600;
  color: var(--ink-dim);
}

.stat__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.stat__chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5fd38d;
  box-shadow: 0 0 0 3px rgba(95, 211, 141, 0.2);
}

.nums .stat .stat__num {
  position: relative;
  margin-top: auto;
  padding-top: clamp(28px, 5vh, 64px);
  background: linear-gradient(180deg, #ffffff 20%, var(--gold-light) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__note {
  position: relative;
  display: block;
  max-width: 36ch;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-dim);
}

.stat__deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.stat--a .stat__num { font-size: 30cqw; }
.stat--d .stat__num { font-size: 22cqw; }

/* Desenhos de cada widget */
.deco-rings { right: 0; bottom: 0; width: 70%; max-width: 340px; }
.deco-rings circle { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }

.deco-bars { right: clamp(20px, 2vw, 32px); bottom: clamp(20px, 2vw, 32px); width: 24%; max-width: 220px; }
.deco-bars rect { fill: rgba(255, 255, 255, 0.14); transform-box: fill-box; transform-origin: 50% 100%; }
.deco-bars rect:last-child { fill: var(--gold); }

.deco-dots {
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
  mask-image: linear-gradient(90deg, transparent, #000 75%);
}
.deco-dots circle { fill: rgba(255, 255, 255, 0.14); }

.deco-ring {
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(20px, 2vw, 32px);
  width: 22cqw;
  transform: rotate(-90deg);
}
.deco-ring circle { fill: none; stroke-width: 8; }
.deco-ring__track { stroke: rgba(255, 255, 255, 0.1); }
.deco-ring__bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(214, 173, 88, 0.6));
}

/* ------------------------------------------------------------ Eventos */
.ev__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 16px);
  counter-reset: ev;
}

.event-card,
.imm .event-card {
  counter-increment: ev;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 28px;
  min-height: clamp(200px, 27vh, 260px);
  padding: clamp(20px, 2vw, 30px);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 400ms ease, box-shadow 500ms ease;
}

.event-card:last-child { border-bottom: 1px solid var(--glass-border); }

/* número do card no canto, como etiqueta */
.event-card::after {
  content: counter(ev, decimal-leading-zero);
  position: absolute;
  top: clamp(18px, 1.8vw, 26px);
  right: clamp(18px, 1.8vw, 26px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

/* luz dourada que acende no hover */
.event-card::before {
  content: '';
  position: absolute;
  z-index: -2;
  right: -20%;
  bottom: -50%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 88, 0.35), transparent 65%);
  opacity: 0.35;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:first-child {
  grid-column: 1 / -1;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(61, 132, 196, 0.28), transparent 60%),
    var(--glass-bg);
}

.event-card__logo,
.imm .event-card__logo {
  display: flex;
  align-items: center;
  height: 72px;
  padding-right: 56px;
  opacity: 1;
}

.event-card__logo img { max-height: 64px; }

.event-card__name,
.imm .event-card.is-active .event-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
}

/* seta no nome */
.event-card__name::after {
  content: '';
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.event-card__desc { color: var(--ink-dim); }

.event-card__tags li {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) {
  .event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow), 0 30px 70px rgba(0, 8, 18, 0.35);
  }
  .event-card:hover::before { opacity: 1; transform: scale(1.2); }
  .event-card:hover .event-card__name::after { transform: rotate(45deg); background-color: rgba(214, 173, 88, 0.35); }
}

/* ------------------------------------------------- O time: fotos da equipe */
.crew {
  padding: clamp(48px, 7vw, 112px) var(--gutter) clamp(64px, 8vw, 128px);
}

/* uma luz dourada atrás da foto do pulo */
.crew::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: 4%;
  width: min(46vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 88, 0.4), rgba(194, 176, 103, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
}

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

.crew__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 16px clamp(24px, 4vw, 72px);
}

.crew__head .eyebrow { grid-column: 1 / -1; }

.crew__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.2vw, 4.4rem);
}

.crew__title .wd { overflow: hidden; }

.crew__lead {
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* pose (em pé) à esquerda, pulo (deitado) à direita, alinhados pela base */
.crew__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(12px, 1.4vw, 20px);
  padding-top: clamp(40px, 6vh, 72px);
}

.crew__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  background: var(--blue-900);
  box-shadow: var(--glass-shadow);
}

.crew__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* enquadramentos: cortam sobras de teto/chão e o telão da lateral */
.crew__shot--pose .crew__frame { aspect-ratio: 5 / 6; }
.crew__shot--pose img { object-position: 53% 50%; }

.crew__shot--jump .crew__frame { aspect-ratio: 4 / 3; }
.crew__shot--jump img { object-position: 50% 61%; }

/* escurece a base da foto para o selo ler bem */
.crew__frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 12, 24, 0.6), transparent);
  pointer-events: none;
}

.crew__chip {
  position: absolute;
  z-index: 1;
  left: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 26, 43, 0.35);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.crew__chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.crew__shot--jump .crew__chip::before {
  background: var(--gold-logo);
  box-shadow: 0 0 0 3px rgba(214, 173, 88, 0.3);
}

/* -------------------------------------------------------------- Telas */
@media (max-width: 899px) {
  .nums__head,
  .crew__head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root { --glass-radius: 22px; }
  .stat { min-height: 200px; }
  .stat .stat__num { font-size: 19cqw; }
  .deco-ring { width: 20cqw; }
  .ev__list { grid-template-columns: minmax(0, 1fr); }
  .crew__grid { grid-template-columns: minmax(0, 1fr); }
  .event-card,
  .imm .event-card { min-height: 0; gap: 16px; }
  .event-card__logo,
  .imm .event-card__logo { height: 56px; }
}
