/* ==========================================================================
   LUDARIS STUDIO — design system
   Escrito a mao, sem framework. Nenhuma build step, nenhum runtime.

   Direcao: editorial e cinematografico. Tipografia display gigante (Anton)
   sobreposta a arte dos jogos, grid assimetrico numerado, laranja como
   acento cortante sobre quase-preto, e um segundo acento ciano para dar
   tensao. A arte dos jogos e que carrega a cor — a interface fica sobria
   de proposito para nao competir com ela.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Superficies — quase preto com um viés azul, para a arte parecer mais quente */
  --ink:        #04070C;
  --ink-2:      #070C13;
  --surface:    #0B1119;
  --surface-2:  #101823;
  --line:       rgba(255, 255, 255, .10);
  --line-soft:  rgba(255, 255, 255, .06);

  /* Texto */
  --fg:         #F2F5F8;
  /* Os alphas abaixo sao os menores que ainda passam em WCAG AA (4.5:1)
     compostos sobre --ink. .38 ficava em 3.2:1 e reprovava — a hierarquia
     agora vem de tamanho e peso, nao de opacidade. */
  --fg-muted:   rgba(242, 245, 248, .62);  /* ~7.2:1 */
  --fg-faint:   rgba(242, 245, 248, .54);  /* ~5.6:1 */

  /* Acentos */
  --orange:     #FF7A18;
  --orange-lo:  #C85200;
  --cyan:       #35E6D2;
  --orange-glow: rgba(255, 122, 24, .22);
  --cyan-glow:   rgba(53, 230, 210, .14);

  /* Tipografia */
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Ritmo */
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1320px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Movimento */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* compensa o header fixo quando um #ancora recebe foco */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* SVG sem width/height cai no padrao de 300x150. Como os icones sao inline
   e nem todo componente define tamanho, o default aqui e "do tamanho do
   texto". Regras de componente (.btn svg, .pillar svg...) tem especificidade
   maior e continuam mandando. */
svg {
  display: inline-block;
  vertical-align: -0.14em;
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Acessibilidade
   -------------------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--orange);
  color: #150800;
  font-weight: 800;
  border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Textura de fundo
   Grao + dois halos. O grao e um SVG inline, entao nao custa requisicao.
   -------------------------------------------------------------------------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-fx::before {
  /* halos */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58vw 46vw at 78% -6%, var(--orange-glow), transparent 62%),
    radial-gradient(46vw 40vw at 4% 34%, var(--cyan-glow), transparent 60%);
}

.bg-fx::after {
  /* grao */
  content: '';
  position: absolute;
  inset: -50%;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* tudo que nao e fundo fica acima da textura */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Tipografia
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.015em;
  /* Anton ja e condensada; um leve aperto extra deixa o bloco mais solido */
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-muted);
  max-width: 56ch;
}

/* Cabecalho de secao: numero grande + titulo, estilo editorial */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.section-head__num {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 92px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
}

.section-head__title {
  font-size: clamp(30px, 5.2vw, 64px);
}

.section-head__aside {
  grid-column: 2;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   7. Botoes
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--orange);
  color: #180800;
}
.btn--primary:hover { background: #FF8C38; }

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
}

.btn--lg { padding: 17px 30px; font-size: 15px; }

/* Forge — o portal de ferramentas/marketplace e outro produto, entao usa o
   acento ciano para nao competir com o CTA laranja do site de jogos. */
.btn--forge {
  border-color: rgba(53, 230, 210, .34);
  background: rgba(53, 230, 210, .08);
  color: var(--cyan);
  padding-inline: 18px;
}
.btn--forge:hover {
  border-color: rgba(53, 230, 210, .65);
  background: rgba(53, 230, 210, .15);
}
.btn--forge svg:first-child { width: 15px; height: 15px; }
.btn--forge svg:last-child { width: 13px; height: 13px; opacity: .75; }

.mobile-nav__forge { color: var(--cyan); }
.mobile-nav__forge svg { width: 20px; height: 20px; display: inline; vertical-align: -2px; }

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

/* estado depois do scroll — o JS liga .is-stuck */
.site-header.is-stuck {
  background: rgba(4, 7, 12, .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  /* Grid 1fr auto 1fr: a nav fica no centro exato independente da largura
     da marca e das acoes. Com flex/space-between ela desloca conforme os
     lados mudam de tamanho (foi o bug do site antigo). */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  transition: min-height .3s var(--ease);
}
.site-header.is-stuck .header-inner { min-height: 66px; }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  transition: transform .3s var(--ease);
}
.brand:hover img { transform: rotate(-6deg) scale(1.04); }

.brand__name {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.main-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] { color: var(--fg); background: rgba(255, 255, 255, .09); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Alternador de idioma */
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang a {
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--fg-faint);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang a:hover { color: var(--fg); }
.lang a[aria-current='true'] { background: var(--orange); color: #180800; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Painel mobile */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 7, 12, .96);
  backdrop-filter: blur(14px);
}
.mobile-nav[data-open='true'] { display: block; }
.mobile-nav ul { padding: 14px 0 22px; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   9. Hero
   Grid assimetrico: o bloco de texto ocupa 7 colunas e avanca por cima da
   arte, que sangra ate a borda direita da tela.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 190px);
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}

/* Hero de coluna unica: sem card de destaque, a tipografia carrega sozinha.
   Composicao editorial: titulo gigante em cima, e embaixo uma linha com o
   texto de apoio a esquerda e os CTAs alinhados a direita — assim o lado
   direito nao fica vazio e o CTA continua acima da dobra. */
.hero__grid { display: block; }

.hero__title {
  font-size: clamp(46px, 8.4vw, 124px);
  max-width: 13ch;
  margin-bottom: clamp(26px, 3.5vw, 44px);
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(28px, 4vw, 48px);
}
/* a ultima palavra recebe o acento */
.hero__title .accent {
  color: var(--orange);
  display: inline-block;
}

.hero__lede { margin: 0; font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tres pilares abaixo do CTA — agora ocupam a largura toda do hero */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  padding: 20px 18px;
  background: var(--ink-2);
}
.pillar svg { width: 22px; height: 22px; color: var(--orange); margin-bottom: 13px; }
.pillar h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 13.5px; color: var(--fg-faint); line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   10. Marquee
   Faixa rolante entre secoes. Duplicamos a lista no HTML para o loop
   nao ter costura visivel.
   -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline: 22px;
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-faint);
  white-space: nowrap;
}
.marquee__item span { color: var(--orange); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   11. Projetos — grid escalonado e numerado
   -------------------------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

/* o primeiro card ocupa a largura toda e vira uma faixa horizontal */
.project--wide { grid-column: 1 / -1; }

.project {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.project:hover {
  border-color: rgba(255, 122, 24, .5);
  transform: translateY(-4px);
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.project--wide .project__media { aspect-ratio: 21 / 8; }
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .5s var(--ease);
  filter: saturate(.92);
}
.project:hover .project__media img { transform: scale(1.06); filter: saturate(1.08); }
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 7, 12, .92) 2%, rgba(4, 7, 12, .1) 52%);
}

.project__num {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 2;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .3);
}

.project__status {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 7, 12, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.project__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
}
.project__status--dev { color: #FFD8B8; }
.project__status--dev::before {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, .2);
}
.project__status--out { color: #B9F5EC; }
.project__status--out::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 230, 210, .18); }

.project__body {
  position: relative;
  padding: 20px clamp(18px, 2vw, 26px) 24px;
}
.project__title {
  font-family: var(--display);
  font-size: clamp(23px, 2.6vw, 34px);
  text-transform: uppercase;
  line-height: .96;
  margin-bottom: 9px;
}
.project--wide .project__title { font-size: clamp(28px, 4vw, 52px); }
.project__desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project--wide .project__desc { -webkit-line-clamp: 3; max-width: 62ch; }

.project__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}
.project__more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.project:hover .project__more svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   12. Devlogs
   -------------------------------------------------------------------------- */

.devlogs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.devlog {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.devlog:hover { border-color: rgba(53, 230, 210, .45); transform: translateY(-4px); }

.devlog__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.devlog__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.devlog:hover .devlog__media img { transform: scale(1.05); }

.devlog__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.devlog__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.devlog__kind { color: var(--cyan); }
.devlog__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 9px;
}
.devlog__excerpt {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   13. Estudio (sobre)
   -------------------------------------------------------------------------- */

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.values { display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 24px clamp(18px, 2vw, 26px); background: var(--ink-2); }
.value__num {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--orange);
}
.value h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   14. Contato
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--fg);
  font-size: 15px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 245, 248, .3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 148px; }

.form-note { font-size: 12.5px; color: var(--fg-faint); margin-top: 12px; }

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-status[data-state='ok'] {
  display: block;
  background: rgba(53, 230, 210, .12);
  border: 1px solid rgba(53, 230, 210, .35);
  color: #B9F5EC;
}
.form-status[data-state='error'] {
  display: block;
  background: rgba(255, 122, 24, .12);
  border: 1px solid rgba(255, 122, 24, .35);
  color: #FFD8B8;
}

.contact-links { display: grid; gap: 10px; margin-top: 26px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact-link:hover { border-color: rgba(255, 122, 24, .45); transform: translateX(3px); }
.contact-link svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* --------------------------------------------------------------------------
   15. Rodape
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding-block: clamp(46px, 6vw, 74px) 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 44px;
}
.footer__word {
  font-family: var(--display);
  font-size: clamp(52px, 11vw, 148px);
  line-height: .84;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
}
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer__cols h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.footer__cols li { margin-bottom: 9px; }
.footer__cols a { font-size: 14.5px; color: var(--fg-muted); transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--orange); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   16. Paginas internas (jogo / devlog)
   -------------------------------------------------------------------------- */

.page-hero { padding-top: clamp(120px, 15vh, 170px); padding-bottom: clamp(30px, 4vw, 50px); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--fg-faint);
}
.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--orange); }

.page-title { font-size: clamp(38px, 7.5vw, 100px); margin-bottom: 20px; }

.page-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(30px, 4vw, 48px);
  background: var(--surface-2);
}
.page-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.prose { font-size: 16.5px; line-height: 1.78; color: rgba(242, 245, 248, .84); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 1.7em; color: var(--fg); }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 1.5em; color: var(--fg); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  color: var(--fg-muted);
  font-style: italic;
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  position: sticky;
  top: 100px;
}
.aside-card h2 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 16px;
}
.aside-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.aside-row:last-of-type { border-bottom: 0; }
.aside-row dt { color: var(--fg-faint); }
.aside-row dd { margin: 0; font-weight: 600; text-align: right; }

/* --------------------------------------------------------------------------
   17. Reveal no scroll
   O JS liga .is-in quando o elemento entra na viewport.
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* escalonamento dentro de um grid */
.reveal[data-delay='1'] { transition-delay: .07s; }
.reveal[data-delay='2'] { transition-delay: .14s; }
.reveal[data-delay='3'] { transition-delay: .21s; }
.reveal[data-delay='4'] { transition-delay: .28s; }

/* Se o JS nao rodar, nada pode ficar invisivel. O .no-js sai no <html>
   e o proprio JS o remove — entao sem JS tudo aparece normalmente. */
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .studio__grid,
  .contact__grid,
  .article__grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .devlogs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
}

/* Entre 860 e 1150 o header fica apertado com nav + Forge + idioma + CTA.
   O CTA sai primeiro: "Jogos" ja esta no menu, o Forge nao esta em lugar nenhum. */
@media (max-width: 1150px) {
  .header-actions .btn--primary { display: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto; }
  .projects { grid-template-columns: 1fr; }
  .project--wide .project__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero__title { max-width: none; }
}

@media (max-width: 620px) {
  .devlogs { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__aside { grid-column: 1; }
  .brand__tag { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   19. Preferencias do usuario
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media (prefers-contrast: more) {
  :root {
    --fg-muted: rgba(242, 245, 248, .85);
    --fg-faint: rgba(242, 245, 248, .7);
    --line: rgba(255, 255, 255, .3);
  }
  .bg-fx::after { display: none; }
}

@media print {
  .site-header, .bg-fx, .marquee, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
