/* Mundo: E.T. de Varginha. Noite de 1996, chuva, fita VHS, dossiê tarjado. */
.world--vg {
  --w-bg: #06081B;
  --w-ink: #E4E9EC;
  --w-accent: #86B6CF;
  --w-accent-2: #BCCFBE;
  --w-display: "Anton", Impact, sans-serif;
  --w-body: Optima, Candara, "Segoe UI", sans-serif;
  --thread: #86B6CF;
  --marker-bg: #06081B;
  --osd: "VT323", "Courier New", monospace;
}
.vg-h2 {
  position: relative; display: inline-block; font-family: var(--w-display); font-weight: 400; text-transform: uppercase;
  color: var(--w-accent); font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; margin: 0 0 40px; padding-bottom: 10px;
}
.vg-h2::after { content: ""; position: absolute; right: 0; bottom: 0; height: 3px; width: 100vw; background: var(--w-accent); }
.vg-h2--small { font-size: clamp(2rem, 5vw, 4rem); }
.vg-h3 { font-family: var(--w-body); text-transform: uppercase; font-weight: 700; font-size: var(--s-1); letter-spacing: .03em; margin: 28px 0 6px; }

/* Abertura: a fita começa a tocar */
.vg-opening .w-opening__background img { filter: saturate(.85) contrast(1.08); }
.vg-opening::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,8,27,.95) 6%, rgba(6,8,27,.15) 55%, rgba(6,8,27,.4)); }
.vg-rain { z-index: 1 !important; }
.vg-scanlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.045) 0 1px, rgba(0,0,0,0) 1px 3px); mix-blend-mode: overlay; }
.vg-scanlines::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; top: -10%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07), transparent); animation: tracking 7s linear infinite; }
@keyframes tracking { to { top: 110%; } }
.vg-osd { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-family: var(--osd); color: #fff; font-size: clamp(1.2rem, 2vw, 1.8rem); text-shadow: 2px 0 rgba(255,40,70,.55), -2px 0 rgba(0,200,255,.55); }
.vg-osd span { position: absolute; }
.vg-osd__play { left: calc(var(--gutter) + var(--rail)); top: 86px; }
.vg-osd__rec { right: var(--gutter); top: 86px; display: flex; align-items: center; gap: 8px; }
.vg-osd__rec i { width: 12px; height: 12px; border-radius: 50%; background: #FF3B30; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vg-osd__time { right: var(--gutter); top: 118px; }
.vg-osd__date { right: var(--gutter); bottom: 5vh; color: #FFB547; text-align: right; }
.vg-opening__text { position: relative; z-index: 4; }
.vg-credits { font-family: var(--osd); font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: .08em; margin: 0 0 10px; }
.vg-credits b { font-weight: 400; }
.vg-title {
  font-family: "Michroma", sans-serif; text-transform: uppercase; font-weight: 400; letter-spacing: .12em; margin: 0;
  font-size: clamp(2.2rem, 7.4vw, 7rem); line-height: 1.05; color: rgba(188,207,190,.16); -webkit-text-stroke: 1.2px #EAF6EF;
  text-shadow: 0 0 18px rgba(188,207,190,.85), 0 0 48px rgba(120,230,170,.35);
}
.vg-genre { font-family: var(--osd); letter-spacing: .1em; text-transform: uppercase; font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin: 14px 0 0; }
.vg-tagline { font-family: var(--w-body); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem); margin: 18px 0 0; }
.vg-bluescreen { position: absolute; inset: 0; z-index: 10; background: #0027C4; display: grid; place-items: center; font-family: var(--osd); color: #fff; font-size: clamp(2rem, 5vw, 4rem); transition: opacity .25s steps(3); }
.vg-bluescreen span { position: absolute; left: 8%; top: 12%; }
.vg-bluescreen .vg-bluescreen__sp { left: auto; right: 8%; }
.vg-opening.is-playing .vg-bluescreen { opacity: 0; pointer-events: none; }
html.reduced-motion .vg-bluescreen { display: none; }

/* Logline */
.vg-logline p { font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.25; max-width: 30ch; margin: 0; }

/* Dossiê */
.vg-instruction { max-width: 60ch; opacity: .8; margin: -12px 0 16px; }
.vg-reveal { margin-bottom: 28px; }
.vg-dossier { position: relative; max-width: 900px; background: #0B1022; border: 1px solid rgba(134,182,207,.25); padding: clamp(24px, 5vw, 56px); font-family: "Courier New", Courier, monospace; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75; cursor: crosshair; }
.vg-dossier__layer p { margin: 0 0 18px; max-width: 62ch; }
.vg-dossier__clean { position: absolute; inset: 0; padding: inherit; pointer-events: none; background: #0E1530;
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx, -400px) var(--my, -400px), #000 0 45%, transparent 100%);
  mask-image: radial-gradient(circle 150px at var(--mx, -400px) var(--my, -400px), #000 0 45%, transparent 100%); }
.vg-dossier.is-all-revealed .vg-dossier__clean { -webkit-mask-image: none; mask-image: none; }
html.reduced-motion .vg-dossier__clean { -webkit-mask-image: none; mask-image: none; }
x-redact { background: #000; color: transparent; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }
.vg-dossier__clean x-redact { background: rgba(232,116,47,.18); color: #FFD9B0; }
.vg-dossier__header { display: flex; flex-wrap: wrap; gap: 8px 22px; text-transform: uppercase; font-size: .85em; letter-spacing: .1em; color: var(--w-accent); border-bottom: 1px dashed rgba(134,182,207,.35); padding-bottom: 12px; margin-bottom: 22px !important; }
.vg-stamp { position: absolute; right: 6%; top: 8%; margin: 0 !important; transform: rotate(-9deg); border: 3px solid #C8332B; color: #C8332B; padding: 4px 14px; font-family: var(--w-display); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.1rem, 2vw, 1.6rem); opacity: .85; }
.vg-dossier__clean .vg-stamp { visibility: hidden; }

/* Cada bloco ocupa ao menos uma tela, com o conteúdo no meio */
.world--vg .w-section { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.world--vg .w-section > .w-wrap { width: 100%; }

/* O fio azul-aço sai da margem e chega ao título quando ele entra na tela */
.vg-h2.w-reveal::after { transform: scaleX(0); transform-origin: left; }
.vg-h2.w-reveal.is-in::after { transform: scaleX(1); transition: transform 1.2s var(--ease) calc(var(--reveal-delay, 0s) + .15s); }

/* Evidências: a fita avança com a rolagem, uma evidência por vez (initTape em world-varginha.js) */
.vg-tape { position: relative; height: calc(100vh + var(--frames, 5) * 75vh); height: calc(100svh + var(--frames, 5) * 75svh); }
.vg-tape__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 96px var(--gutter) 40px calc(var(--gutter) + var(--rail)); }
/* a tela da fita usa toda a largura disponível (o JS mede --screen-w) e fica no centro, com o título alinhado a ela */
.vg-tape__wrap { max-width: none; height: 100%; display: grid; align-content: center; justify-content: center; grid-template-columns: var(--screen-w, 100%); }
.vg-tape__title { justify-self: start; font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: clamp(14px, 2.5vh, 28px); }
.vg-tape__screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
@media (max-aspect-ratio: 4/5) { .vg-tape__screen { aspect-ratio: 3 / 4; } }
.vg-tape__frames { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.vg-tape__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .3s steps(3); }
.vg-tape__frame.is-active { opacity: 1; }
.vg-tape__frame figure { margin: 0; height: 100%; }
.vg-tape__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.12); transform: scale(1.02); }
.vg-tape__frame.is-active img { transform: scale(calc(1.02 + var(--local, 0) * .08)); }
.vg-tape__frame figcaption { position: absolute; z-index: 3; left: 4%; right: 4%; bottom: 9%; font-family: var(--osd); font-size: clamp(1.3rem, 2.4vw, 2.4rem); line-height: 1.1; color: #fff; text-shadow: 2px 0 rgba(255,40,70,.55), -2px 0 rgba(0,200,255,.55); }
.vg-tape__number { color: var(--w-accent); }
.vg-tape__cnt { display: none; }
.vg-tape__osd { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-family: var(--osd); color: #fff; font-size: clamp(1.1rem, 1.9vw, 1.8rem); text-shadow: 2px 0 rgba(255,40,70,.55), -2px 0 rgba(0,200,255,.55); }
.vg-tape__play { position: absolute; left: 4%; top: 6%; }
.vg-tape__counter { position: absolute; right: 4%; top: 6%; }
.vg-tape__track { position: absolute; left: 4%; right: 4%; bottom: 5%; height: 2px; background: rgba(255,255,255,.25); }
.vg-tape__track i { display: block; height: 100%; background: #FFB547; transform-origin: left; transform: scaleX(var(--tape, 0)); }
/* Troca de evidência: a imagem treme e uma faixa de ruído atravessa a tela, como no tracking da fita */
.vg-tape__noise { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(to bottom, transparent 40%, rgba(255,255,255,.45) 46%, rgba(120,140,160,.25) 50%, rgba(255,255,255,.3) 54%, transparent 60%) 0 0 / 100% 240% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255,255,255,.08) 0 1px, transparent 1px 3px); }
.vg-tape.is-tracking .vg-tape__noise { animation: tape-noise .5s steps(6) both; }
.vg-tape.is-tracking .vg-tape__frames { animation: tape-jitter .5s steps(6) both; }
@keyframes tape-noise { from { opacity: 1; background-position: 0 100%, 0 0; } to { opacity: 0; background-position: 0 0, 0 0; } }
@keyframes tape-jitter { 0% { transform: translateX(-10px) skewX(-3deg); } 35% { transform: translateX(7px) skewX(2deg); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
/* Movimento reduzido: as cinco evidências em grade, sem trava */
html.reduced-motion .vg-tape { height: auto; }
html.reduced-motion .vg-tape__stage { position: relative; height: auto; min-height: 100svh; display: grid; align-content: center; padding-top: clamp(96px, 12vw, 170px); padding-bottom: clamp(80px, 10vw, 140px); }
html.reduced-motion .vg-tape__wrap { width: 100%; max-width: 1280px; grid-template-columns: none; justify-content: normal; }
html.reduced-motion .vg-tape__screen { width: 100%; aspect-ratio: auto; background: none; overflow: visible; }
html.reduced-motion .vg-tape__frames { position: static; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
html.reduced-motion .vg-tape__frame { position: static; opacity: 1; }
html.reduced-motion .vg-tape__frame img { height: auto; aspect-ratio: 4 / 3; transform: none; }
html.reduced-motion .vg-tape__frame figcaption { position: static; margin-top: 10px; font-size: 1.35rem; text-shadow: none; }
html.reduced-motion .vg-tape__cnt { display: block; opacity: .7; font-size: 1.1rem; }
html.reduced-motion .vg-tape__osd, html.reduced-motion .vg-tape__noise, html.reduced-motion .vg-tape .vg-scanlines { display: none; }

/* Temas */
.vg-themes { display: grid; gap: 48px; }
@media (min-width: 980px) { .vg-themes { grid-template-columns: 1fr 1fr; } }
.vg-tone { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.vg-tone li { border-left: 2px solid var(--w-accent); padding-left: 14px; }

.vg-next img { filter: brightness(.6) sepia(.2); }
.vg-next__name { display: block; font-family: "Figtree", "Avenir Next", sans-serif; font-weight: 900; color: #F38247; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; letter-spacing: .02em; }

.vg-h2--small::after { width: 100%; }
