/* Mário Fialho — Quatro mundos: página inicial.
   Sem a classe .is-3d (sem JS, sem WebGL, movimento reduzido, modo leitura): documento comum.
   Com .is-3d: as mesmas seções viram estações fixas sobre o campo. */

/* ---------- Modo leitura (padrão) ---------- */
.mf-stations { max-width: 780px; margin: 0 auto; padding: 40px var(--mf-gutter) 40px; }
.station { padding: 56px 0; border-bottom: 1px solid var(--mf-line); }
.station:last-child { border-bottom: 0; }
.world { font: 500 12px/1 var(--mf-mono); letter-spacing: .12em; color: var(--c, var(--mf-mut)); display: inline-flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.world i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--mf-mut)); box-shadow: 0 0 12px var(--c, transparent); }
.mf-stations h1 { font: 600 clamp(48px, 8vw, 104px)/.95 var(--mf-display); letter-spacing: -.045em; margin: 0 0 22px; }
.mf-stations h2 { font: 600 clamp(30px, 4vw, 52px)/1 var(--mf-display); letter-spacing: -.04em; margin: 0 0 18px; }
.station p { color: #c9cfdc; max-width: 46ch; margin: 0 0 22px; font-size: 18px; }
.station .lede { font-size: 21px; color: var(--mf-txt); }
.station .koan { font: 400 clamp(26px, 3.2vw, 42px)/1.12 var(--mf-display); letter-spacing: -.02em; color: var(--mf-txt); margin: 0 0 22px; max-width: none; }
.station .hint { font: 500 12px/1.5 var(--mf-mono); color: var(--mf-mut); letter-spacing: .04em; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.links a { text-decoration: none; font: 500 14px/1 var(--mf-sans); padding: 13px 18px; border-radius: 999px; border: 1px solid var(--mf-line); background: rgba(5,6,10,.35); backdrop-filter: blur(4px); color: var(--mf-txt); }
.links a:first-child { background: var(--mf-txt); color: var(--mf-void); border-color: var(--mf-txt); }

#field { position: fixed; inset: 0; width: 100vw; height: 100vh; display: none; }
.ring, .scrollcue { display: none; }

/* ---------- Modo campo ---------- */
html.is-3d, html.is-3d body { overflow: hidden; height: 100%; }
html.is-3d body { touch-action: none; }
.is-3d #field { display: block; }
.is-3d .mf-header { position: fixed; inset: 0 0 auto 0; background: transparent; border: 0; backdrop-filter: none; pointer-events: none; }
.is-3d .mf-header .mf-top > * { pointer-events: auto; }
.is-3d .mf-footer { display: none; }
.is-3d .mf-stations { position: fixed; inset: 0; max-width: none; padding: 0; margin: 0; pointer-events: none; z-index: 2; }
.is-3d .station { position: absolute; left: clamp(20px, 7vw, 110px); bottom: clamp(110px, 16vh, 180px); max-width: 620px; padding: 0; border: 0; opacity: 0; transform: translateY(18px); visibility: hidden; }
.is-3d.ready .station { transition: opacity .2s ease, transform .3s ease, visibility 0s linear .2s; }
.is-3d .station.on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.is-3d.ready .station.on { transition: opacity .5s ease .22s, transform .8s cubic-bezier(.19,1,.22,1) .22s, visibility 0s linear .2s; }

.is-3d .ring { display: block; position: fixed; right: clamp(18px, 4vw, 44px); bottom: clamp(24px, 5vh, 48px); z-index: 20; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring circle.track { fill: none; stroke: var(--mf-line); }
.ring button { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.ring button::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ring .you { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.ring .lbl { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 500 10px/1.3 var(--mf-mono); color: var(--mf-mut); letter-spacing: .08em; pointer-events: none; }
.is-3d .scrollcue { display: block; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); font: 500 11px/1 var(--mf-mono); letter-spacing: .14em; color: var(--mf-mut); z-index: 20; transition: opacity .6s; }

@media (max-width: 700px) {
	.is-3d .station { left: 20px; right: 20px; bottom: 170px; }
	.is-3d .ring { width: 104px; height: 104px; right: 50%; transform: translateX(50%); bottom: 26px; }
	.is-3d .scrollcue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.station { transition: none !important; }
}
