/* MAEDODEAM — folha de estilo única do site. Mobile first, tema escuro, sem bibliotecas. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0d0d0b;
  --bg-2: #121210;
  --surface: #171715;
  --line: #292824;
  --line-2: #3d3b36;
  --text: #efece4;
  --muted: #a8a498;
  --faint: #858177;
  --accent: #ff5a1f;
  --accent-ink: #0d0d0b;
  --ok: #62d68f;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 85rem;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo", "Arial Narrow", "Roboto Condensed", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
/* Rolagem suave só depois do carregamento (o site.js põe a classe): aplicada desde o início, ela
   interrompe o salto para a âncora na abertura — e o jogo abre privacy.html#<idioma>. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }

main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono, .label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 450;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { color: var(--muted); }
.accent { color: var(--accent); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

/* Seta desenhada (as fontes não têm o caractere →) */
.arrow::after,
.arw,
.seq li + li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  flex: none;
}

.arw { width: .85em; height: .85em; vertical-align: -.08em; margin-inline: .2em; opacity: .7; }

.seq { display: flex; flex-wrap: wrap; align-items: center; gap: .5em .75em; }
.seq li { display: inline-flex; align-items: center; gap: .75em; }
.seq li + li::before { width: .9em; opacity: .55; }

/* ---------- Botões ---------- */

.btn {
  --h: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--h);
  padding: 0 1.25rem;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn.arrow::after { transition: transform .3s var(--ease); }
.btn:hover { border-color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .btn:hover.arrow::after { transform: translateX(4px); } }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--text); border-color: var(--text); }
.btn--big { --h: 4rem; font-size: 1.125rem; padding: 0 1.5rem; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-cursor { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .brand-cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.35rem;
  height: 2px;
  background: var(--accent);
}
.site-nav .nav-cta { color: var(--text); }
.site-nav li:not(.nav-cta-item):not(.nav-play-item) { display: none; }
.site-nav .nav-play { display: inline-flex; align-items: center; gap: .45rem; }
.site-nav .nav-play::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.lang {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--faint);
}
.lang a, .lang span[aria-current] {
  padding: .35rem .2rem;
  text-decoration: none;
}
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: var(--text); }

@media (min-width: 52rem) {
  .site-nav li:not(.nav-cta-item) { display: block; }
}

/* ---------- Seções ---------- */

.section { padding-block: clamp(5rem, 12vw, 10rem); }

.section-head {
  display: grid;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.section-head .label { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; }
.section-head .label span:last-child { color: var(--faint); }
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: .88;
  letter-spacing: -.005em;
  max-width: 14ch;
  text-wrap: balance;
}
.section-intro {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  max-width: 36rem;
}
@media (min-width: 60rem) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head .label { grid-column: 1 / -1; }
  .section-intro { justify-self: end; }
  .section-title--wide { grid-column: 1 / -1; max-width: 24ch; }
}

/* Marcas de canto (detalhe de "prancheta") */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: "";
  position: absolute;
  width: 11px; height: 11px;
  pointer-events: none;
  background:
    linear-gradient(var(--faint), var(--faint)) center / 1px 100% no-repeat,
    linear-gradient(var(--faint), var(--faint)) center / 100% 1px no-repeat;
}
.ticks::before { top: -6px; left: -6px; }
.ticks::after { bottom: -6px; right: -6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 6vw, 4.5rem);
  isolation: isolate;
}
.hero::before {
  /* grade de colunas, bem discreta */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--max) + 2 * var(--gutter)) - 2 * var(--gutter)) / 4) 100%;
  background-position: max(var(--gutter), (100vw - var(--max)) / 2) 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.hero-grid { display: grid; gap: 2.5rem; }
/* no celular, a frase e os botões vêm logo depois do título */
.hero-lead { order: 2; }
.hero-actions { order: 3; }
.bench { order: 4; }
.hero-index { order: 5; }
.pipeline { order: 6; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
}
.hero-meta .label:first-child { color: var(--text); }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.01em;
  /* cabe a linha mais longa (--chars letras) na largura disponível */
  font-size: min(calc((100vw - 2 * var(--gutter)) / (var(--chars, 7) * .5)), 13.5rem);
  margin-left: -.04em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .dot { color: var(--accent); }

/* atalho para o jogo: no celular logo abaixo do título; no computador no topo da coluna da direita */
.hero-side { display: contents; }
.hero-play { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0; }
.hero-play-btn { gap: 1rem; border-color: var(--text); }
.hero-play-btn::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-right: -.25rem;
}
.hero-play-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero-play-btn:hover::before { background: var(--accent-ink); }
.hero-play-note { color: var(--muted); font-size: .8125rem; }

.hero-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.hero-index li {
  padding: .9rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
}
.hero-index li:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-index li:nth-child(even) { padding-left: 1rem; }
.hero-index .mono { color: var(--faint); display: block; margin-bottom: .35rem; }
.hero-index strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.hero-index span:last-child { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: .3rem; }

.hero-lead {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.3;
  max-width: 30ch;
  text-wrap: pretty;
}
.hero-lead strong { font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn { flex: 1 1 15rem; }

/* Cartão "na bancada" */
.bench {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  text-decoration: none;
  transition: border-color .25s var(--ease);
}
.bench:hover { border-color: var(--line-2); }
.bench picture { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.bench img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform .6s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .bench:hover img { transform: scale(1.05); } }
.bench-label { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.bench-label > span { display: inline-flex; align-items: center; gap: .5rem; }
.bench-label .bench-num { color: var(--faint); display: none; }
@media (min-width: 64rem) { .bench-label .bench-num { display: inline; } }
.bench-name { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1.2; margin-top: .35rem; }
.bench-meta { display: block; color: var(--muted); font-size: .875rem; margin-top: .15rem; }

.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
  flex: none;
}
.led--accent { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.led--off { background: transparent; border: 1px solid var(--faint); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .led--pulse { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; opacity: .55; } }

/* Esteira IDEIA → SOFTWARE → PRODUTO */
.pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  color: var(--faint);
}
.pipeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-2);
}
.pipeline::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px; height: 7px;
  background: var(--accent);
}
.pipeline li { position: relative; }
.pipeline li::before {
  content: "";
  position: absolute;
  top: calc(-1.25rem - 4px);
  left: 0;
  width: 1px; height: 9px;
  background: var(--faint);
}
.pipeline li:last-child { color: var(--text); }
.pipeline li:last-child::before { left: auto; right: 0; }
.pipeline li:nth-child(2)::before { left: 50%; }
.pipeline li:nth-child(2) { text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .pipeline::after { animation: travel 7s var(--ease) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline::after { left: calc(100% - 7px); }
}
@keyframes travel {
  0%, 8% { left: 0; }
  42%, 52% { left: calc(50% - 3px); }
  86%, 100% { left: calc(100% - 7px); }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1.5rem;
    row-gap: 3rem;
  }
  .hero-grid > * { order: 0; }
  .hero-meta { grid-column: 1 / -1; }
  .hero-title { grid-column: 1 / -1; grid-row: 2; font-size: min(calc((100vw - 2 * var(--gutter)) / (var(--chars, 7) * .5) * .62), 13.5rem, 27vh); }
  .hero-side {
    grid-column: 9 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
  }
  .hero-play { flex-direction: column; align-items: stretch; gap: .6rem; padding-top: .4rem; }
  .hero-play-note { text-align: right; }
  .bench {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: .9rem .9rem 1.1rem;
    margin-bottom: .6rem;
  }
  .bench picture { aspect-ratio: 16 / 9; order: 2; }
  .bench > span { order: 1; display: contents; }
  .bench-label { order: 1; justify-content: space-between; }
  .bench-text { order: 3; }
  .hero-index { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .hero-index li { padding: 1.1rem 1.25rem 1.25rem; border-right: 1px solid var(--line); }
  .hero-index li:first-child { padding-left: 0; }
  .hero-index li:last-child { border-right: 0; }
  .hero-index li:nth-child(even) { padding-left: 1.25rem; }
  .hero-lead { grid-column: 1 / 7; }
  .hero-actions { grid-column: 7 / -1; align-self: end; justify-content: flex-end; }
  .pipeline { grid-column: 1 / -1; }
}
@media (min-width: 64rem) and (min-height: 50rem) {
  .hero-title { font-size: min(calc((100vw - 2 * var(--gutter)) / (var(--chars, 7) * .5) * .62), 13.5rem); }
}

/* ---------- Manifesto ---------- */

.manifesto { border-block: 1px solid var(--line); background: var(--bg-2); }
.manifesto-inner { display: grid; gap: 2.5rem; padding-block: clamp(4rem, 9vw, 7rem); }
.manifesto-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7.2vw, 6.25rem);
  line-height: .9;
  text-wrap: balance;
}
.manifesto-title span { color: var(--faint); }
.manifesto-text { color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 34rem; }

.loop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.loop li { background: var(--bg-2); padding: 1.1rem 1rem 1.25rem; }
.loop .mono { color: var(--accent); }
.loop strong {
  display: block;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 1;
  margin: .6rem 0 .4rem;
}
.loop span:last-child { color: var(--muted); font-size: .9375rem; }

@media (min-width: 64rem) {
  .manifesto-inner { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .manifesto-title { grid-column: 1 / 10; }
  .manifesto-text { grid-column: 1 / 6; }
  .loop { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Projetos ---------- */

.projects { display: grid; gap: clamp(6rem, 12vw, 10rem); }

.project-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.project-num { color: var(--accent); }
.project-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .86;
  letter-spacing: -.015em;
}
.project-aka { display: block; margin-top: .75rem; color: var(--faint); text-transform: none; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: .3rem .55rem;
  line-height: 1.2;
}
@media (min-width: 60rem) {
  .project-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 3rem; }
  .project-head .label { grid-column: 1 / -1; }
  .project-head .tags { max-width: 26rem; justify-content: flex-end; }
}

/* Galeria */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gallery figure:first-child { grid-column: 1 / -1; }
.shot { position: relative; }
.shot picture {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .shot:hover img { transform: scale(1.02); } }
.shot figcaption {
  display: flex;
  gap: .75rem;
  padding-top: .65rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}
.shot figcaption .mono { color: var(--faint); white-space: nowrap; font-size: .6875rem; padding-top: .15rem; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 1rem 1rem; }
  .gallery figure:first-child { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; }
  .gallery figure:first-child picture { aspect-ratio: auto; flex: 1; min-height: 0; }
}

/* Texto + ficha técnica */
.project-body {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.pitch {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.22;
  font-weight: 500;
  text-wrap: pretty;
  max-width: 28ch;
}
.pitch q { quotes: "“" "”"; }
.project-copy p + p { margin-top: 1rem; }
.project-copy p:not(.pitch) { color: var(--muted); max-width: 36rem; margin-top: 1.25rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9375rem; }
.project-links a { color: var(--muted); }
.project-links a:hover { color: var(--text); }
.project-links .soon, .project-cta .soon { color: var(--faint); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; }

.spec {
  border-top: 1px solid var(--line-2);
  font-size: .9375rem;
}
.spec div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: .2rem; }
.spec dd { color: var(--text); }
.spec .status dd { display: flex; align-items: center; gap: .6rem; }

@media (min-width: 60rem) {
  .project-body { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .project-copy { grid-column: 1 / 7; }
  .spec { grid-column: 8 / -1; align-self: start; }
}

/* DataBairro: telas reais do app (iguais nos dois idiomas), diferenciais, link e aviso */
.gallery--app { grid-template-columns: 1fr; }
.gallery--app .shot picture { aspect-ratio: 736 / 470; background: #fbfbfb; }
@media (min-width: 48rem) {
  .gallery--app { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery--app figure:first-child { grid-column: auto; grid-row: auto; display: block; }
  .gallery--app figure:first-child picture { aspect-ratio: 736 / 470; }
}
@media (min-width: 60rem) {
  .gallery--app { grid-template-columns: repeat(3, 1fr); }
}
.points { display: grid; gap: .85rem; max-width: 36rem; margin-top: 1.75rem; }
.points li { position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: 1px; background: var(--accent); }
.points strong { color: var(--text); font-weight: 600; }
.project-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.project-copy .project-cta { margin-top: 2rem; }
.project-copy p.fine { font-size: .8125rem; color: var(--faint); margin-top: 1rem; }

/* DataBairro: mapa da arquitetura */
.sysmap { min-width: 0; }
.sysmap-frame {
  border: 1px solid var(--line-2);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--faint) 35%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-color: var(--bg-2);
  padding: 1rem;
  display: grid;
  gap: .9rem;
  font-size: .875rem;
}
.sysmap-bar { display: flex; justify-content: space-between; gap: 1rem; color: var(--faint); border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.sysmap-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sysmap-apps li, .sysmap-api, .sysmap-svc li {
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--surface);
  padding: .6rem .7rem;
  line-height: 1.3;
}
.sysmap-apps li { text-align: center; }
/* ligações entre as camadas */
.sysmap-apps li::after, .sysmap-api::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: calc(.9rem + 1px);
  background: var(--line-2);
}
.sysmap-api:last-child::after { display: none; }
.sysmap-api { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.sysmap-api .mono { color: var(--accent); min-width: 2.5rem; }
.sysmap-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.sysmap-svc li { background: transparent; border-style: dashed; color: var(--muted); }
.sysmap figcaption { margin-top: .75rem; color: var(--muted); font-size: .875rem; display: flex; gap: .75rem; }
.sysmap figcaption .mono { color: var(--faint); white-space: nowrap; font-size: .6875rem; padding-top: .15rem; }
@media (min-width: 40rem) {
  .sysmap-frame { padding: 1.25rem; }
  .sysmap-svc { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .sysmap.is-in .sysmap-svc li { animation: scan 3.6s linear infinite; animation-delay: calc(var(--i) * .9s); }
}
@keyframes scan {
  0%, 24% { border-color: var(--text); color: var(--text); }
  25%, 100% { border-color: var(--line-2); color: var(--muted); }
}
@media (min-width: 60rem) {
  .project--saas .project-body { grid-template-rows: auto 1fr; }
  .project--saas .project-copy { grid-column: 1 / 6; grid-row: 1 / 3; align-self: start; position: sticky; top: 6rem; }
  .project--saas .sysmap { grid-column: 7 / -1; grid-row: 1; }
  .project--saas .spec { grid-column: 7 / -1; grid-row: 2; margin-top: 1rem; }
}

/* Slot 03 */
.project--next .slot {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px dashed var(--line-2);
}
.slot-q {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: .8;
  color: var(--faint);
}
.slot-q .brand-cursor { color: var(--accent); }
.slot h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 700; }
.slot p { color: var(--muted); max-width: 34rem; margin-top: .75rem; }
.slot .btn { justify-self: start; margin-top: .5rem; }
@media (min-width: 60rem) {
  .project--next .slot { grid-template-columns: 5fr 7fr; align-items: center; column-gap: 3rem; }
}

/* ---------- Construindo agora ---------- */

.now { background: var(--bg-2); border-block: 1px solid var(--line); }

.board { border: 1px solid var(--line-2); background: var(--bg); }
.board-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--faint);
}
.board-bar span:first-child { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.board-cols { display: none; }
.board-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .9rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: 0; }
.board-row .led { margin-top: .55rem; }
.board-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.board-type, .board-next, .stages { grid-column: 2; }
.board-type { color: var(--muted); font-size: .9375rem; }
.board-next { color: var(--muted); font-size: .9375rem; }
.board-next a { color: var(--text); }
.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: .6rem 0 .4rem;
}
.stages span {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: .45rem;
  border-top: 3px solid var(--line-2);
}
.stages .done { border-top-color: var(--muted); color: var(--muted); }
.stages .now { border-top-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .stages .now { animation: glow 2.4s ease-in-out infinite; }
}
@keyframes glow { 50% { border-top-color: color-mix(in srgb, var(--accent) 45%, transparent); } }
.board-row--next .board-name { color: var(--muted); }
.board-foot {
  gap: .5rem .75rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line-2);
  color: var(--faint);
}

@media (min-width: 60rem) {
  .board-cols, .board-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(12rem, 1.3fr) minmax(10rem, 1fr) minmax(16rem, 1.4fr) minmax(12rem, 1.1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
  }
  .board-cols { color: var(--faint); border-bottom: 1px solid var(--line); padding-block: .6rem; }
  .board-cols span:first-child { grid-column: 2; }
  .board-row .led { margin-top: 0; }
  .board-type, .board-next, .stages { grid-column: auto; }
  .stages { margin: 0; }
}

/* ---------- Fliperama (chamada para /play) ---------- */

.arcade {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  border-block: 1px solid var(--line);
}
.arcade-marquee {
  display: flex;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  color: color-mix(in srgb, var(--accent-ink) 22%, var(--accent));
  user-select: none;
}
.arcade-marquee span { flex: none; padding-right: .3em; }
@media (prefers-reduced-motion: no-preference) {
  .arcade-marquee span { animation: marquee 38s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
.arcade-inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
}
.arcade .label { color: var(--accent-ink); opacity: .75; }
.arcade-title {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .86;
  margin: .6rem 0 1rem;
}
.arcade-text { max-width: 34rem; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); font-weight: 500; }
.arcade-actions { display: grid; gap: .9rem; align-content: end; justify-items: start; }
.arcade-btn {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--text);
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--accent-ink) 35%, var(--accent));
}
.arcade-btn:hover { background: var(--text); border-color: var(--text); color: var(--accent-ink); }
.arcade-meta { opacity: .75; }
@media (min-width: 60rem) {
  .arcade-inner { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .arcade-copy { grid-column: 1 / 8; }
  .arcade-actions { grid-column: 9 / -1; }
}

/* ---------- Sobre ---------- */

.about-grid { display: grid; gap: 3.5rem; }
.about-copy p { color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 36rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p:first-child { color: var(--text); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.3; }
.about-copy .small-on-purpose {
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 2rem;
}
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 2.25rem; }
.signature strong { font-weight: 700; }
.signature .label { color: var(--faint); }

.facts { border-top: 1px solid var(--line-2); }
.facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0 .9rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 66%;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: .9;
}
.facts dd { text-align: right; color: var(--muted); font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; max-width: 12rem; }
.facts div:last-child dt { color: var(--accent); }
.facts .count { font-variant-numeric: tabular-nums; }

@media (min-width: 60rem) {
  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .about-copy { grid-column: 1 / 7; }
  .facts { grid-column: 8 / -1; align-self: start; }
}

/* ---------- Contato ---------- */

.contact { position: relative; padding-bottom: clamp(4rem, 8vw, 6rem); }
.asks { border-top: 1px solid var(--line); }
.asks li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.375rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.asks li .mono { color: var(--faint); font-weight: 450; letter-spacing: .08em; }
.asks li:hover { color: var(--text); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .asks:hover li { color: var(--faint); }
  .asks li:hover { color: var(--text); padding-left: .5rem; }
}
.talk {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: .84;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.talk .dot { color: var(--accent); }
.contact-grid { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.contact-text { color: var(--muted); max-width: 36rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.contact-actions { display: grid; gap: 1rem; align-content: start; }
.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: .5rem .5rem .5rem 1rem;
  min-height: 3.25rem;
}
.email-row a { font-family: var(--mono); font-size: .9375rem; text-decoration: none; overflow-wrap: anywhere; }
.email-row a:hover { color: var(--accent); }
.copy {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: .5rem .75rem;
  cursor: pointer;
  min-width: 5.5rem;
}
.copy:hover { color: var(--text); border-color: var(--text); }
.copy[data-state="done"] { color: var(--ok); border-color: var(--ok); }
.contact-note { color: var(--faint); }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .contact-text { grid-column: 1 / 7; }
  .contact-actions { grid-column: 8 / -1; }
}

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  color: var(--muted);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-grid ul { display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid .label { color: var(--faint); margin-bottom: .75rem; display: block; }
.footer-seq { color: var(--text); }
.footer-tag { margin-top: 1rem; color: var(--faint); max-width: 18rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .8125rem; }
.legal p { overflow-wrap: anywhere; }
.wordmark {
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: .06em;
  font-size: 12.2vw;
  line-height: 1;
  color: var(--surface);
  white-space: nowrap;
  margin: 1.5rem 0 0;
  padding-bottom: .12em;
  user-select: none;
  text-align: center;
}
.wordmark span { color: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 48rem) {
  /* no desktop, a palavra é cortada pela borda de baixo de propósito */
  .wordmark { font-size: 13.4vw; line-height: .78; margin-bottom: -1.6vw; padding-bottom: 0; }
}
@media (min-width: 85rem) {
  .wordmark { font-size: min(13.4vw, 15rem); }
}

/* ---------- Páginas internas (suporte, privacidade, 404) ---------- */

.page { padding-block: clamp(3rem, 8vw, 6rem); }
/* Páginas utilitárias (privacidade, suporte, 404): uma coluna centralizada, largura de leitura.
   Ficam dentro do .wrap largo da landing; sem margin-inline: auto, a coluna encostava à esquerda. */
.page-inner { max-width: 54rem; margin-inline: auto; }
.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: .88;
  margin: 1rem 0 2rem;
}
.page p { margin: 0 0 1rem; color: var(--muted); }
.page h2 { font-size: 1.5rem; line-height: 1.25; margin: 3rem 0 1rem; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 1.25rem; margin: 1.5rem 0; }
.panel p:last-child { margin-bottom: 0; }
.email { font-family: var(--mono); font-size: .95em; overflow-wrap: anywhere; color: var(--text); }
.page a { color: var(--text); }
.page a:hover { color: var(--accent); }

/* Política de privacidade: um bloco por idioma, escolhido pelo "#" do endereço */
.langs { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 1rem 0 2.5rem; font-size: .95rem; }
.langs a { color: var(--muted); }
.policy { overflow-wrap: break-word; color: var(--muted); }
.policy + .policy { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.policy h2 { color: var(--text); margin-top: 0; }
.policy h3 { color: var(--text); margin: 2rem 0 .75rem; font-size: 1.2rem; line-height: 1.3; }
.policy h4 { color: var(--text); margin: 1.5rem 0 .5rem; font-size: 1.05rem; line-height: 1.3; }
.policy ul { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.policy li + li { margin-top: .35rem; }
.policy strong { color: var(--text); }
.meta, .note { color: var(--faint); font-size: .95rem; }
.summary { border: 1px solid var(--line); background: var(--surface); padding: .25rem 1.25rem 1rem; margin-bottom: 1rem; }
.summary h3 { margin-top: 1rem; }
.path { font-weight: 600; color: var(--text); }
code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }

/* ---------- Revelação ao rolar (só com JS e sem redução de movimento) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .skip, .wordmark, .copy, .pipeline { display: none !important; }
  body { background: #fff; color: #000; }
}
