/* ==========================================================================
   tierris.com.br — versão mobile
   --------------------------------------------------------------------------
   Carregado apenas em telas de até 767px:
     <link rel="stylesheet" href="css/mobile.css" media="(max-width: 767px)">
   O desktop nunca lê este arquivo. Aqui a página não só "encolhe":
   composição, ritmo de leitura e interações são pensados para o celular.
   ========================================================================== */

:root {
  --gutter: 20px;
  --section-y: 76px;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  font-size: 16px;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

/* Textura de ruído desligada: imperceptível na tela pequena e custa bateria */
body::before { display: none; }

/* --------------------------------------------------------------------------
   Hero — capa: gráfico em cima, conteúdo embaixo (zona do polegar)
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  align-items: end;
  padding:
    calc(var(--safe-top) + 24px)
    var(--gutter)
    calc(var(--safe-bottom) + 88px);
}

/* O brilho fica no fundo do próprio hero (CSS), contínuo, sem bordas.
   O SVG não recebe opacidade no elemento inteiro nem animações contínuas:
   alguns navegadores móveis (Safari) pintavam a caixa do SVG como um
   retângulo escuro, dividindo o hero ao meio. */
.hero {
  background:
    radial-gradient(85vw 85vw at 66% calc(var(--safe-top) + 30vw),
      rgba(106, 94, 224, .16), rgba(106, 94, 224, 0) 70%),
    var(--bg);
}

.hero__graph {
  top: calc(var(--safe-top) + 2svh);
  right: -22vw;
  width: 108vw;
  max-width: none;
  transform: none;
  opacity: 1;
}

.hero__graph > circle { display: none; }          /* brilho antigo do SVG */
.hero__graph .graph__minor { stroke: #1E2235; }
.hero__graph .graph__major { opacity: .6; }
.hero__graph .graph__nodes { opacity: .7; }

.graph__minor,
.graph__nodes circle { animation: none; }

.hero__tags {
  font-size: .66rem;
  letter-spacing: .16em;
  margin-bottom: 1rem;
}

.hero__name {
  font-size: 23vw;
  letter-spacing: -.05em;
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-size: 1.32rem;
  line-height: 1.28;
  max-width: none;
  margin-bottom: 1rem;
}

.hero__lede { font-size: .95rem; }

/* Só a linha animada; o rótulo "Continue" sai */
.hero__cue { bottom: calc(var(--safe-bottom) + 22px); }
.hero__cue > span:first-child { display: none; }
.hero__cue-line { height: 36px; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.kicker {
  font-size: .66rem;
  gap: .7rem;
  margin-bottom: 1rem;
}
.kicker::before { width: 20px; }

.title {
  font-size: 1.75rem;
  line-height: 1.16;
  margin-bottom: 1.4rem;
}

.subtitle { font-size: 1.4rem; }

.prose { max-width: none; }
.about .prose { font-size: 1em; }

/* --------------------------------------------------------------------------
   Seções com ilustração: a imagem vira faixa de borda a borda no topo
   -------------------------------------------------------------------------- */

.split {
  gap: 28px;
  /* minmax(0, …) impede que as faixas deslizáveis (chips) alarguem a coluna */
  grid-template-columns: minmax(0, 1fr);
}

.split > * { min-width: 0; }

.split__art {
  order: -1;
  margin-inline: calc(var(--gutter) * -1);
}

.split__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tech .split__art img { border-radius: 0; }

/* --------------------------------------------------------------------------
   Histórias — cartões compactos que começam recolhidos
   -------------------------------------------------------------------------- */

.stories {
  margin-top: 48px;
  gap: 16px;
}

.story { padding: 20px; }

.story__art,
.story__stat {
  aspect-ratio: auto;
  height: 148px;
  margin: 0 0 18px;
}

.story__art { object-fit: contain; }
.story__stat span { font-size: 3.4rem; }

.story__label { font-size: .66rem; margin-bottom: .6rem; }
.story__title { font-size: 1.35rem; margin-bottom: .8rem; }
.story__lede { font-size: .98rem; margin-bottom: 1.1rem; }
.story__body { font-size: .94rem; }

.story:not(.is-open) .story__body {
  max-height: 7.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}

.story__more {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  margin-top: .6rem;
  padding: 0;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}

.story__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--mid);
  border-bottom: 1.5px solid var(--mid);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease);
}

.story.is-open .story__more::after { transform: translateY(2px) rotate(-135deg); }

/* --------------------------------------------------------------------------
   Faixas deslizáveis (chips e facetas): rolam na horizontal, sangram a borda
   -------------------------------------------------------------------------- */

.chips,
.facets {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.chips::-webkit-scrollbar,
.facets::-webkit-scrollbar { display: none; }

/* Chips */
.chips {
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.chips--quiet { margin-top: 1.8rem; }

.chips li {
  flex: none;
  white-space: nowrap;
  font-size: .8rem;
  scroll-snap-align: start;
}

/* Facetas da Tecnologia: carrossel com o próximo cartão aparecendo */
.facets {
  gap: 12px;
  margin-top: 44px;
  background: none;
  border: 0;
  border-radius: 0;
  scroll-snap-type: x mandatory;
}

.facet {
  flex: 0 0 82%;
  scroll-snap-align: start;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facet:hover { background: var(--bg); }
.facet__index { margin-bottom: 1rem; }
.facet__title { font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   Citações
   -------------------------------------------------------------------------- */

.quote {
  margin-top: 56px;
  padding-top: 40px;
}

.quote::before { font-size: 4rem; top: -4px; }

.quote p {
  font-size: 1.32rem;
  line-height: 1.32;
}

/* --------------------------------------------------------------------------
   Conexão
   -------------------------------------------------------------------------- */

.connection__graph {
  width: 260px;
  margin-bottom: 28px;
  overflow: visible;
}

.connection__graph text { font-size: 15px; }

/* --------------------------------------------------------------------------
   Curiosidade — grade compacta de 2 colunas
   -------------------------------------------------------------------------- */

.interests {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 36px;
}

.interests li {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 12px 12px 32px;
  font-size: .84rem;
  border-radius: 12px;
}

.interests li::before {
  left: 13px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
}

.interests li:hover { transform: none; }

.learning {
  gap: 28px;
  margin-top: 64px;
  padding-top: 48px;
}

.now { padding: 20px; }

/* --------------------------------------------------------------------------
   Contato — cartão de largura total, botão grande para o polegar
   -------------------------------------------------------------------------- */

.email {
  width: 100%;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 18px 18px;
  border-radius: var(--radius);
}

.email__link { font-size: 1.2rem; }

.email__copy {
  width: 100%;
  min-height: 48px;
  font-size: .95rem;
}

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

.footer {
  padding: 64px var(--gutter) calc(var(--safe-bottom) + 28px);
}

.footer__name { font-size: 3rem; margin-bottom: 1rem; }
.footer__signature { font-size: 1.02rem; }

.footer__meta {
  flex-direction: column-reverse;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}

.lang__btn {
  min-width: 52px;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Movimento — deslocamentos menores e mais rápidos
   -------------------------------------------------------------------------- */

.js-motion .reveal {
  transform: translateY(14px);
  transition-duration: .7s;
}

.js-motion .reveal.is-visible { transform: none; }

/* --------------------------------------------------------------------------
   Telas muito estreitas (iPhone SE, Androids compactos)
   -------------------------------------------------------------------------- */

@media (max-width: 360px) {
  :root { --gutter: 16px; }

  .hero__name { font-size: 22vw; }
  .hero__headline { font-size: 1.2rem; }
  .title { font-size: 1.55rem; }
  .quote p { font-size: 1.18rem; }
  .interests { grid-template-columns: 1fr; }
  .interests li { min-height: 0; }
  .email__link { font-size: 1.05rem; }
}

/* Telas baixas (celular deitado ou tela curta): gráfico do hero sai do caminho */
@media (max-height: 560px) {
  .hero { align-items: center; padding-bottom: 56px; }
  .hero__graph { display: none; }
  .hero__cue { display: none; }
}
