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

:root {
  --bg: #F3F1EC;
  --bg-2: #E9E6DF;
  --ink: #0B0B0B;
  --ink-2: #4A4A48;
  --muted: #A19E96;
  /* Goat Gold, a cor da marca (identidade/design-guide.md) */
  --orange: #F8B133;
  --orange-deep: #D8911D;
  --line: rgba(11, 11, 11, 0.14);
  --gutter: 5vw;
  --font-display: 'Unbounded', 'Arial Black', Impact, sans-serif;
  --font-mono: 'Fira Mono', ui-monospace, 'Courier New', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ── HELPERS ─────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.55;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  background: var(--orange);
  color: var(--ink);
  padding: 0.14em 0.42em 0.1em;
  margin-right: 0.65em;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag.dark { background: var(--ink); color: var(--bg); }
.r { opacity: 0; transform: translateY(40px); }
/* texto que so o leitor de tela enxerga (o titulo principal da pagina) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.step-item { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.step-item.on { opacity: 1; transform: none; }
.stage-counter { position: relative; z-index: 3; display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2); letter-spacing: 0.14em; }
.stage-counter b { color: var(--orange-deep); }
.stage-bar { display: block; width: 72px; height: 2px; background: rgba(11, 11, 11, 0.16); }
.stage-bar i { display: block; height: 100%; width: 0%; background: var(--orange); transition: width .3s ease; }

/* ── CURSOR ─────────────────────────────────────── */
#cursor {
  position: fixed; left: 0; top: 0;
  width: 10px; height: 10px;
  background: var(--bg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, border .25s;
  mix-blend-mode: difference;
}
#cursor.big { width: 44px; height: 44px; background: transparent; border: 1px solid var(--bg); }

/* ── 3D CANVAS ──────────────────────────────────── */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.no-gl #gl { display: none; }

/* ── PRELOADER ──────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
}
.loader-top, .loader-bottom { display: flex; justify-content: space-between; color: var(--ink-2); }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.loader-word {
  position: relative;
  align-self: center;
  font-size: clamp(4rem, 23vw, 32rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.loader-word-base { color: transparent; -webkit-text-stroke: 1px rgba(11, 11, 11, 0.35); }
.loader-word-fill { position: absolute; inset: 0; color: var(--ink); clip-path: inset(0 100% 0 0); }
#loaderPct { color: var(--orange-deep); font-weight: 700; }

/* ── NAV ────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem var(--gutter);
  color: var(--bg);
  mix-blend-mode: difference;
  pointer-events: none;
}
#nav > * { pointer-events: auto; }
.nav-logo { font-size: 1rem; letter-spacing: -0.03em; text-decoration: none; color: inherit; }
.nav-center { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav-tick { width: 1px; height: 14px; background: currentColor; }
.nav-x { font-family: var(--font-mono); font-size: 0.9rem; line-height: 1; }
.nav-menu {
  background: none; border: 0; color: inherit; cursor: none;
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
}
.nav-menu .lbl::after { content: 'MENU'; }
.menu-open .nav-menu .lbl::after { content: 'CLOSE'; }
.burger { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .4s, opacity .3s; transform-origin: center; }
.menu-open .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── MENU OVERLAY ───────────────────────────────── */
#menu {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  padding: 16vh var(--gutter) 8vh;
  gap: 4rem;
  align-items: end;
}
.menu-links { list-style: none; display: flex; flex-direction: column; gap: 0.2em; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1.2rem;
  font-size: clamp(2rem, 5.4vw, 5.2rem);
  text-decoration: none; color: var(--bg);
  transition: color .3s;
}
.menu-links a .mono { color: var(--orange); font-size: 0.72rem; }
.menu-links a:hover { color: var(--orange); }
.menu-side { display: flex; flex-direction: column; gap: 0.5rem; color: rgba(243, 241, 236, 0.75); }
.menu-side a { color: var(--bg); text-decoration: none; margin-bottom: 1.6rem; font-size: 0.9rem; }
.menu-side a:hover { color: var(--orange); }
.menu-coords { color: var(--orange); margin-top: 1rem; }

/* ── PALCO (holofote + poça de luz) ─────────────── */
/* Sem z-index aqui de proposito: assim o fundo e o wordmark ficam ABAIXO do
   canvas 3D (z-index 2) e os textos, que tem z-index 3, ficam ACIMA dele.
   Um z-index no palco criaria um contexto e prenderia os textos atras do mascote. */
.stage-sec { position: relative; }
.stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stage-beam {
  position: absolute; left: 50%; top: -6%;
  width: 62vmin; height: 92%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 246, 228, 0.85), rgba(255, 240, 210, 0.35) 45%, rgba(255, 236, 200, 0) 88%);
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%);
  filter: blur(14px);
  opacity: 0.85;
}
.stage-beam.orange { background: linear-gradient(to bottom, rgba(255, 186, 104, 0.5), rgba(245, 160, 58, 0.18) 48%, rgba(245, 160, 58, 0) 90%); opacity: 1; }
.stage-pool {
  position: absolute; left: 50%; bottom: 4%;
  width: 84vmin; height: 24vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 238, 0.95), rgba(255, 244, 222, 0.45) 42%, rgba(243, 241, 236, 0) 72%);
  filter: blur(6px);
}
.stage-pool.orange { background: radial-gradient(ellipse at center, rgba(255, 190, 110, 0.62), rgba(245, 160, 58, 0.28) 42%, rgba(245, 160, 58, 0) 72%); }
.stage-block.light .stage-steps { padding: 1rem 0; }
.stage-fallback, .hero-fallback { display: none; }
.no-gl .stage-fallback, .no-gl .hero-fallback { display: block; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero-word {
  position: absolute; top: 9vh; left: 0; right: 0;
  z-index: 1;
  text-align: center;
  line-height: 0.78;
  white-space: nowrap;
  pointer-events: none;
}
.hero-word span { display: inline-block; font-size: 100px; letter-spacing: -0.03em; }
.hero-line { position: absolute; left: 0; right: 0; top: 46vh; height: 1px; background: rgba(11, 11, 11, 0.35); z-index: 1; }
.hero-radar {
  position: absolute; left: 50%; bottom: 6vh;
  width: min(72vw, 960px);
  transform: translateX(-50%);
  color: rgba(11, 11, 11, 0.28);
  z-index: 1;
  pointer-events: none;
}
.hero-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-hud > * { pointer-events: auto; }
.blurb { position: absolute; max-width: 300px; line-height: 1.65; color: var(--ink-2); }
.b1 { right: var(--gutter); top: 57%; }
.b2 { left: var(--gutter); top: 70%; }
.b3 { right: var(--gutter); top: 82%; text-align: right; }
.hero-meta { position: absolute; left: var(--gutter); bottom: 1.8rem; display: flex; gap: 2.4rem; color: var(--ink-2); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 1.8rem; display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.hero .stage-counter { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); }
.scroll-cue::before { content: ''; width: 8px; height: 8px; background: var(--orange); }
.hero-fallback {
  position: absolute; left: 50%; bottom: 4%;
  transform: translateX(-50%);
  width: min(42vh, 68vw);
  z-index: 2;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 42%, transparent 78%);
}

/* ── POSITIONING ────────────────────────────────── */
.position { background: var(--bg); position: relative; z-index: 3; min-height: 92svh; padding: 13vh var(--gutter) 6vh; overflow: hidden; }
.pos-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, 1fr); row-gap: 2rem; }
.pos-title { grid-column: 1 / span 8; grid-row: 1; font-size: clamp(2.2rem, 5.8vw, 7rem); color: var(--muted); line-height: 0.92; }
.pos-title span { display: block; }
.pos-meta { grid-column: 9 / span 2; grid-row: 1; color: var(--ink-2); padding-top: 0.5rem; }
.pos-meta .dash { display: block; width: 24px; height: 5px; background: var(--orange); margin-bottom: 1rem; }
.pos-coords { grid-column: 11 / span 2; grid-row: 1; text-align: right; color: var(--orange-deep); padding-top: 0.5rem; }
.pos-tier { grid-column: 5 / span 8; grid-row: 2; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2rem; margin-top: -3vw; }
.arrow-label { color: var(--orange-deep); white-space: nowrap; padding-bottom: 2.4vw; }
.arrow-label i { font-style: normal; color: var(--orange); }
.tier-block {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  padding: 0.3em 0.4em 0.18em 0.5em;
  font-size: clamp(2.2rem, 5.6vw, 6.6rem);
  line-height: 0.86;
  display: flex; flex-direction: column; align-items: flex-end;
  white-space: nowrap;
}
.tier-block::before { content: ''; position: absolute; left: -12px; top: -12px; width: 10px; height: 10px; border: 1px solid var(--ink); }
.tier-top { font-size: 0.5em; color: rgba(11, 11, 11, 0.72); }
.tier-main em { font-style: normal; color: #7A4405; }
.pos-floor {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54vh; z-index: 1;
  color: rgba(11, 11, 11, 0.2);
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(245, 160, 58, 0.32), transparent 65%);
  pointer-events: none;
}
.pos-floor svg { width: 100%; height: 100%; display: block; }
.pos-arrow { position: absolute; left: 50%; top: 4%; width: 1px; height: 30%; background: var(--orange); }
.pos-arrow::after { content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); border: 7px solid transparent; border-top: 12px solid var(--orange); border-bottom: 0; }
.pos-copy { position: relative; z-index: 3; max-width: 460px; margin-top: 8vh; color: var(--ink-2); line-height: 1.65; font-size: 0.95rem; }

/* ── MARQUEE ────────────────────────────────────── */
.marquee { position: relative; z-index: 3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.85rem 0; overflow: hidden; color: var(--ink-2); background: var(--bg); }
.marquee-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track i { display: block; width: 7px; height: 7px; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── NUMBERS — galeria horizontal ───────────── */
.numbers {
  position: relative; z-index: 3;
  height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
  background: var(--bg);
}
.dots-defs { position: absolute; width: 0; height: 0; }

.numbers-head {
  position: absolute; left: 50%; top: 12vh;
  transform: translateX(-50%);
  display: flex; align-items: center;
  color: var(--ink-2);
  z-index: 5;
  text-align: center;
}
.numbers-arrow { position: absolute; left: 50%; top: -9vh; width: 1px; height: 7vh; background: var(--orange); }
.numbers-arrow::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 11px solid var(--orange); border-bottom: 0;
}

.gallery { width: 100%; overflow: hidden; padding: 7vh 0; }
.track {
  position: relative;
  display: flex; align-items: center;
  gap: 5vw;
  padding: 0 calc(var(--gutter) + 2vw);
  width: max-content;
  will-change: transform;
}
.track-line { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }

.card { position: relative; flex: 0 0 auto; width: clamp(300px, 30vw, 460px); display: flex; flex-direction: column; }
.card.up { transform: translateY(-5vh); }
.card.down { transform: translateY(5vh); }
.card-title { font-size: clamp(1.2rem, 1.9vw, 2.05rem); margin-bottom: 0.5rem; letter-spacing: -0.025em; }
.card-label { display: block; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.18em; margin-bottom: 0.8rem; }
.card-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(155deg, var(--bg-2) 0%, #DCD8CE 55%, #CFCABF 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.card-box > svg { width: 100%; height: 100%; display: block; }
.card::before { content: ''; position: absolute; left: -9px; top: 2.9em; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--bg); z-index: 2; }
.card.is-front .card-box { border-color: rgba(11, 11, 11, 0.4); }

.mono-svg text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; fill: var(--ink); paint-order: stroke; stroke: var(--bg-2); stroke-width: 3px; stroke-linejoin: round; }
.mono-svg text.axis { fill: var(--ink-2); font-size: 11px; }
.mono-svg text.small { font-size: 11px; }
.mono-svg text.onfill { font-size: 10px; font-weight: 700; stroke: none; }
.mono-svg text.light { fill: var(--bg); }

.card-num {
  position: relative;
  align-self: flex-end;
  margin: -0.2em -0.4rem 0 0;
  font-size: clamp(3.2rem, 5.8vw, 7rem);
  line-height: 0.78;
  display: flex; flex-direction: column; align-items: flex-end;
  z-index: 3;
  text-shadow: 0 4px 22px rgba(243, 241, 236, 0.95);
}
.card-num small { font-size: 0.6rem; margin-bottom: 0.6rem; color: var(--ink-2); letter-spacing: 0.14em; }
.card-num em { font-style: normal; color: var(--orange); font-size: 0.66em; position: relative; top: -0.3em; }

.card-box.box-team { padding: 0; }
.halftone { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: grayscale(1) contrast(1.06); }
.box-team::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(11, 11, 11, 0.32) 0 1px, transparent 1.8px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
.box-labels span {
  position: absolute; display: flex; align-items: center; gap: 0.45em;
  background: var(--ink); color: var(--bg);
  padding: 0.2em 0.45em; font-size: 0.58rem;
}
.box-labels i { width: 6px; height: 6px; background: var(--orange); display: block; }

.numbers-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 4vh;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  z-index: 5; pointer-events: none;
}
.numbers-foot p { max-width: 340px; line-height: 1.7; color: var(--ink-2); }
.numbers-foot .right { text-align: right; }
.gallery-count { color: var(--ink-2); letter-spacing: 0.16em; align-self: center; }
.gallery-count b { color: var(--orange-deep); }

/* ── DIVISIONS ──────────────────────────────────── */
/* sem z-index: o palco escuro precisa ficar ABAIXO do canvas 3D */
.divisions { position: relative; }
.panel.bw { background: var(--bg); }
.panel.orange { background: #F4DDC0; }
.div-head { position: relative; z-index: 3; background: var(--bg); padding: 9vh var(--gutter) 3vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; color: var(--ink-2); }
.div-head h2 { font-size: clamp(2.4rem, 5.2vw, 5.6rem); color: var(--ink); text-align: right; line-height: 0.92; }
.panel {
  position: relative;
  z-index: 3;
  min-height: 84svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: 8vh var(--gutter);
  border-top: 1px solid var(--line);
}
.panel.v-right .panel-text { grid-column: 1; }
.panel.v-right .panel-visual { grid-column: 2; }
.panel.v-left .panel-text { grid-column: 2; }
.panel.v-left .panel-visual { grid-column: 1; grid-row: 1; }
.panel-text { max-width: 560px; }
.panel-idx { display: inline-block; color: var(--orange-deep); border: 1px solid currentColor; padding: 0.15em 0.55em; margin-bottom: 2rem; }
.panel h3 { font-size: clamp(2rem, 4vw, 4.4rem); margin-bottom: 1.6rem; }
.panel h3 .thin { color: var(--muted); }
.panel.orange h3 .thin { color: var(--orange-deep); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tags li { border: 1px solid var(--line); padding: 0.32em 0.75em; background: rgba(255, 255, 255, 0.35); }
.panel.orange .tags li { border-color: rgba(224, 138, 30, 0.5); }
.panel p { color: var(--ink-2); line-height: 1.65; font-size: 0.98rem; max-width: 470px; }
.panel-visual { position: relative; min-height: 44vh; display: flex; align-items: center; justify-content: center; }

/* Cartões de dados */
.data-card {
  position: relative;
  width: min(100%, 520px);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--bg);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.data-card::before { content: ''; position: absolute; left: -9px; top: -9px; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--orange); }
.data-card-head, .data-card-foot { display: flex; justify-content: space-between; font-size: 0.62rem; color: rgba(243, 241, 236, 0.7); }
.live i { display: inline-block; width: 6px; height: 6px; background: var(--orange); margin-right: 0.45em; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.data-card table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.64rem; }
.data-card td { padding: 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.data-card td.bar { width: 52%; padding: 0 1rem; }
.data-card .bar i { display: block; height: 6px; width: var(--w); background: repeating-linear-gradient(90deg, var(--bg) 0 3px, transparent 3px 6px); }
.data-card td:last-child { text-align: right; color: var(--orange); }
.line-chart { width: 100%; height: auto; display: block; margin: 1.6rem 0 0.8rem; }
.chart-legend { display: flex; gap: 1.4rem; font-size: 0.6rem; color: rgba(243, 241, 236, 0.7); margin-bottom: 1.4rem; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; background: rgba(243, 241, 236, 0.45); margin-right: 0.45em; }
.chart-legend i.o { background: var(--orange); }
.build-rows { margin: 1.4rem 0; font-size: 0.64rem; }
.build-rows div { display: flex; justify-content: space-between; padding: 0.7rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.build-rows em { font-style: normal; color: rgba(243, 241, 236, 0.6); }
.build-rows em.ok { color: var(--orange); }
.devices svg { width: 100%; height: auto; display: block; margin-bottom: 1.2rem; }
.img-card { padding: 0; width: min(100%, 420px); aspect-ratio: 4 / 5; overflow: hidden; }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.img-card .grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 32px 32px; }
.img-card .data-card-head { position: absolute; top: 1rem; left: 1rem; right: 1rem; }
.img-card .data-card-foot { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; }


/* ── GOATAPP: palco central ─────────────────────── */
.stage-block {
  position: relative;
  height: 100svh;
  padding: 11vh var(--gutter) 6vh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.stage-block.dark { background: var(--ink); color: var(--bg); }
.stage-block.light { border-top: 1px solid var(--line); }
.stage-block.dark .stage-counter { color: rgba(243, 241, 236, 0.5); }
.stage-block.dark .stage-counter b { color: var(--orange); }
.stage-block.dark .stage-bar { background: rgba(243, 241, 236, 0.18); }
.stage-steps { position: relative; z-index: 3; align-self: flex-end; width: min(42vw, 460px); min-height: 7.5rem; }
.stage-steps .step-item { position: absolute; inset: 0; line-height: 1.75; text-align: right; }
.stage-block.dark .stage-steps .step-item { color: rgba(243, 241, 236, 0.86); }
.stage-block.light .stage-steps .step-item { color: var(--ink-2); }
.stage-block.dark .panel-idx { color: var(--orange); }
.stage-head { position: relative; z-index: 3; max-width: 52%; }
.stage-head h3 { font-size: clamp(2.2rem, 4.6vw, 5.2rem); }
.stage-block.dark .stage-head .thin { color: var(--orange); }
.stage-block.light .stage-head .thin { color: var(--muted); }
.stage-tags { position: relative; z-index: 3; margin: 1.4rem 0 0; justify-content: flex-start; max-width: 460px; }
.stage-block.dark .tags li { border-color: rgba(245, 160, 58, 0.45); background: rgba(245, 160, 58, 0.08); color: var(--bg); }
.stage-fallback { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: min(42vh, 62vw); z-index: 2; }

/* ── TEAM ───────────────────────────────────────── */
.team {
  position: relative; z-index: 3;
  min-height: 90svh;
  padding: 12vh var(--gutter) 0;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.team-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 78% 55%, rgba(245, 160, 58, 0.5), transparent 66%),
    radial-gradient(ellipse 40% 40% at 12% 75%, rgba(224, 138, 30, 0.22), transparent 70%);
}
.team-head { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.team-head h2 { display: flex; align-items: flex-start; gap: 3vw; font-size: clamp(2rem, 4.4vw, 5.2rem); line-height: 0.95; }
.team-num { position: relative; font-size: 2.1em; line-height: 0.8; }
.team-num em { position: absolute; top: -0.15em; right: -0.5em; font-style: normal; font-size: 0.6em; color: var(--orange); transform: rotate(14deg); }
.team-title { padding-top: 0.3em; color: #D9D6CF; }
.team-tag { text-align: right; color: var(--orange); line-height: 1.7; }
.team-tag .tag { margin: 0 0 0 0.65em; }
.team-stage { position: relative; margin-top: -2vh; }
.team-img { width: 100%; display: block; filter: blur(22px); transform: scale(1.06); will-change: filter, transform; }
.team-rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── CASES ──────────────────────────────────────── */
.cases { background: var(--bg); position: relative; z-index: 3; padding: 12vh var(--gutter) 9vh; }
.cases-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 4rem; color: var(--ink-2); }
.cases-head h2 { font-size: clamp(2.4rem, 5.6vw, 6.4rem); color: var(--ink); grid-column: 1; }
.cases-head p { max-width: 340px; justify-self: end; text-align: right; line-height: 1.75; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case { background: var(--bg); padding: 2rem 1.6rem; min-height: 300px; display: flex; flex-direction: column; gap: 1.6rem; transition: background .3s; }
.case:hover { background: var(--bg-2); }
.case-id { color: var(--orange-deep); }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem 1.5rem; }
.case dt { color: var(--ink-2); }
.case dd { text-align: right; }
.case .soon { color: var(--orange-deep); }

/* ── CONTACT ────────────────────────────────────── */
.contact { background: var(--bg); position: relative; z-index: 3; padding: 13vh var(--gutter) 10vh; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(3rem, 9.5vw, 12rem); line-height: 0.84; display: flex; flex-direction: column; }
.contact h2 span:nth-child(2) { padding-left: 10vw; }
.contact h2 em { font-style: normal; color: var(--orange); }
.contact-actions { display: flex; gap: 1rem; margin-top: 4rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--ink); color: var(--bg);
  padding: 1.1rem 1.8rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.btn i { width: 8px; height: 8px; background: var(--orange); transition: background .3s; }
.btn:hover { background: var(--orange); color: var(--ink); }
.btn:hover i { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); outline: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.ghost:hover i { background: var(--orange); }
.contact-note { margin-top: 3rem; color: var(--ink-2); }

/* ── FOOTER ─────────────────────────────────────── */
footer { position: relative; z-index: 3; padding: 2.4rem var(--gutter) 2rem; border-top: 1px solid var(--line); background: var(--bg); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot-logo { font-size: 1.1rem; }
.foot-logo small { font-size: 0.5em; margin-left: 0.35em; color: var(--orange-deep); vertical-align: 0.65em; }
.foot-links a, .foot-social a { color: var(--ink-2); text-decoration: none; margin-left: 1.6rem; }
.foot-links a:hover, .foot-social a:hover { color: var(--ink); }
.foot-bottom { margin-top: 2rem; color: var(--muted); font-size: 0.62rem; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { height: 100svh; min-height: 100svh; padding-bottom: 0; }
  .hero-word { top: 12vh; }
  .hero-line { display: none; }
  .hero-radar { bottom: auto; top: 30vh; width: 94vw; }
  .hero-hud {
    position: absolute; inset: auto 0 0 0;
    display: flex; flex-direction: column; gap: 0.55rem;
    padding: 3.2rem var(--gutter) 3.4rem;
    background: linear-gradient(to top, var(--bg) 0, var(--bg) 62%, rgba(243, 241, 236, 0) 100%);
  }
  .blurb, .hero-meta, .scroll-cue { position: static; text-align: left; max-width: 100%; }
  .blurb { font-size: 0.62rem; line-height: 1.55; }
  .hero-meta { flex-direction: column; gap: 0.15rem; font-size: 0.58rem; }
  .hero .stage-counter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem; transform: none; }
  .hero .stage-bar { flex: 1; }
  .hero .scroll-cue { display: none; }
  .hero-fallback { top: 24vh; bottom: auto; }
  .stage-beam { width: 88vmin; }
  /* a poça precisa cair sob os pés do mascote, senão ele parece no ar */
  .stage-pool { width: 92vmin; height: 26vmin; bottom: 17%; }
  .pos-title { grid-column: 1 / -1; }
  .pos-meta { grid-column: 1 / span 6; grid-row: 2; }
  .pos-coords { grid-column: 7 / -1; grid-row: 2; }
  .pos-tier { grid-column: 1 / -1; grid-row: 3; margin-top: 0; justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .arrow-label { padding-bottom: 0; }
  .position { padding-bottom: 46vh; min-height: auto; }
  .pos-floor { height: 44vh; }
  /* A galeria também trava no celular e anda um card por rolada, então aqui
     ela NÃO pode ser um rolador horizontal nativo: os dois brigariam. */
  .numbers { height: 100svh; display: flex; align-items: center; padding: 0; }
  .numbers-head { top: 9vh; text-align: center; }
  .numbers-arrow { top: -6vh; height: 5vh; }
  .gallery { overflow: hidden; padding: 4vh 0; }
  .track { gap: 6vw; padding: 0 13vw; }
  .track-line { display: none; }
  .card { width: 74vw; max-width: 340px; }
  .card.up { transform: translateY(-2vh); }
  .card.down { transform: translateY(2vh); }
  .card-title { font-size: 1.4rem; }
  .card-label { font-size: 0.55rem; }
  .card-num { font-size: 3rem; }
  .numbers-foot { bottom: 3vh; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .numbers-foot p { max-width: 100%; font-size: 0.6rem; }
  .numbers-foot .right { text-align: left; }
  .gallery-count { align-self: flex-start; }
  .div-head { flex-direction: column; align-items: flex-start; }
  .div-head h2 { text-align: left; font-size: clamp(2.2rem, 13vw, 3.4rem); }
  .panel { grid-template-columns: 1fr; min-height: auto; padding: 6vh var(--gutter) 10vh; gap: 2rem; }
  .panel.v-right .panel-text, .panel.v-left .panel-text { grid-column: 1; grid-row: 2; }
  .panel.v-right .panel-visual, .panel.v-left .panel-visual { grid-column: 1; grid-row: 1; }
  .panel-visual { min-height: 42vh; }
  .stage-block { height: 100svh; min-height: 100svh; padding: 13vh var(--gutter) 3.4rem; }
  .stage-head { max-width: 100%; }
  .stage-head h3 { font-size: clamp(2rem, 11vw, 3rem); }
  .stage-tags { justify-content: flex-start; gap: 0.35rem; margin-top: 1rem; }
  .stage-tags li { font-size: 0.58rem; padding: 0.3em 0.6em; }
  .stage-steps {
    position: absolute; left: 0; right: 0; bottom: 0;
    width: auto; align-self: auto; min-height: 5.6rem;
    padding: 3.2rem var(--gutter) 3.2rem;
  }
  .stage-block.dark .stage-steps { background: linear-gradient(to top, var(--ink) 0, var(--ink) 60%, rgba(11, 11, 11, 0) 100%); }
  .stage-block.light .stage-steps { background: linear-gradient(to top, var(--bg) 0, var(--bg) 60%, rgba(243, 241, 236, 0) 100%); }
  .stage-steps .step-item { position: absolute; inset: auto var(--gutter) 3.2rem var(--gutter); text-align: left; font-size: 0.64rem; line-height: 1.6; }
  .stage-block .stage-counter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem; }
  .stage-block .stage-bar { flex: 1; }
  .stage-fallback { bottom: auto; top: 26vh; }
  .team-head { flex-direction: column; }
  .team-tag { text-align: left; }
  .team-tag .tag { margin: 0 0.65em 0 0; }
  .cases-head { grid-template-columns: 1fr; }
  .cases-head p { justify-self: start; text-align: left; }
  .menu-inner { grid-template-columns: 1fr; align-items: start; padding-top: 14vh; }
  .contact h2 span:nth-child(2) { padding-left: 0; }
  .contact { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
  .contact-actions { margin-top: 2.5rem; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  body { cursor: auto; }
  #cursor { display: none; }
  .nav-menu { cursor: pointer; }
  .mono { font-size: 0.66rem; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot-links a, .foot-social a { margin: 0 1.4rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .live i { animation: none; }
}

/* ── APPS: tira de ícones no palco do GoatApp ───── */
.icon-strip { position: relative; z-index: 3; margin-top: 1.6rem; max-width: 460px; }
.icon-strip-label { display: block; color: rgba(243, 241, 236, 0.55); margin-bottom: 0.7rem; font-size: 0.62rem; }
.icon-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.icon-row li { line-height: 0; }
.icon-row img {
  width: 44px; height: 44px; display: block;
  border: 1px solid rgba(243, 241, 236, 0.18);
  transition: transform .25s, border-color .25s;
}
.icon-row img:hover { transform: translateY(-3px); border-color: var(--orange); }
.stage-block.light .icon-strip-label { color: var(--muted); }
.stage-block.light .icon-row img { border-color: var(--line); }

/* ── APPS: card dos nossos aplicativos ──────────── */
.app-card { width: min(100%, 520px); }
.app-row { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.app-row:first-of-type { border-top: 0; padding-top: 1rem; }
.app-id { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.app-icon { width: 56px; height: 56px; display: block; border: 1px solid rgba(255, 255, 255, 0.14); }
.app-id strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.app-id .mono { color: rgba(243, 241, 236, 0.55); font-size: 0.58rem; }
.app-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.app-shots img {
  width: 100%; height: 190px; display: block;
  object-fit: cover; object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── maleta de volta no palco de afiliados ──────── */
.briefcase {
  position: absolute; left: 4vw; bottom: 16vh;
  width: min(22vw, 260px);
  z-index: 3;
  filter: drop-shadow(0 26px 34px rgba(11, 11, 11, 0.26));
  pointer-events: none;
  animation: flutua 6s ease-in-out infinite;
}
@keyframes flutua {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}

@media (max-width: 900px) {
  .icon-strip { margin-top: 1rem; max-width: 100%; }
  /* uma linha so: quebrando em duas ela encostava no mascote */
  .icon-row {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .icon-row::-webkit-scrollbar { display: none; }
  .icon-row li { flex: 0 0 auto; }
  .icon-row img { width: 38px; height: 38px; }
  .app-card { width: 100%; }
  .app-icon { width: 46px; height: 46px; }
  .app-shots img { height: 150px; }
  .briefcase { display: none; }   /* sem espaço no celular: colidia com o título */
}
@media (prefers-reduced-motion: reduce) { .briefcase { animation: none; } }
