/* Arca Game Studio — landing Immersive Learning (site temporário) */
  :root {
    --gold: #EDB341;      /* faixa dourada da apresentação */
    --signal: #FFBF00;    /* ponto final, linhas de destaque */
    --ink: #000;
    --muted: #55524d;
    --paper: #fbfaf7;
    --ease-out: cubic-bezier(.2, .7, .1, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  h1, h2, h3, p, figure { margin: 0; }
  img { display: block; }

  /* ---------- HERO ---------- */
  .hero {
    --band-h: clamp(112px, 18vh, 180px);
    position: relative;
    display: flex;
    min-height: max(560px, 100vh);
    min-height: max(560px, 100svh);
    overflow: hidden;
    isolation: isolate;
    background: var(--paper) url("../images/bg1.webp") right center / cover no-repeat;
  }
  @supports (height: 1svh) {
    .hero { --band-h: clamp(112px, 18svh, 180px); }
  }

  /* véu branco à esquerda: garante leitura do texto em qualquer proporção de tela */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 58%);
  }

  /* faixa dourada: largura total, até o fim da tela */
  .hero__band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: var(--band-h);
    background: var(--gold);
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 88px);
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: center;
    max-width: min(46vw, 760px);
    padding-top: 56px;
    padding-bottom: var(--band-h);
  }

  .hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(20px, 3.2vh, 36px);
    font-size: clamp(.68rem, .9vw, .82rem);
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .hero__eyebrow::after {
    content: "";
    width: clamp(40px, 5vw, 84px);
    height: 2px;
    background: var(--signal);
  }

  .hero__title {
    font-size: clamp(2.5rem, min(6vw, 10.5vh), 6.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .line {
    display: block;
    overflow: hidden;
    padding: .06em 0 .16em;
    margin: -.06em 0 -.16em;
  }
  .line > span { display: inline-block; }
  .dot { color: var(--signal); }

  .hero__lead {
    max-width: 33ch;
    margin-top: clamp(20px, 3.4vh, 40px);
    font-size: clamp(1.05rem, 1.65vw, 1.6rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -.01em;
    color: var(--muted);
  }

  .btn {
    display: inline-block;
    margin-top: clamp(24px, 4vh, 48px);
    padding: 1.05em 1.9em;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font: 600 clamp(.9rem, 1.05vw, 1.02rem)/1 'Sora', system-ui, sans-serif;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
  }
  .btn:hover { background: var(--gold); color: var(--ink); }
  .btn:active { transform: translateY(1px); }
  .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

  /* profissionais: recorte na altura da coxa, ancorado no fim da tela, à frente da faixa */
  .hero__visual {
    position: absolute;
    right: max(2vw, calc((100vw - 1680px) / 2));
    bottom: 0;
    z-index: 2;
    width: min(48vw, 92vh, 900px);
    width: min(48vw, 92svh, 900px);
  }
  .hero__visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(60, 38, 0, .2));
  }

  .hero__brand {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: end;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 40px);
    height: var(--band-h);
  }
  .hero__brand img {
    width: clamp(170px, 18vw, 290px);
    height: auto;
  }
  .hero__tagline {
    font-size: clamp(.78rem, 1.05vw, 1.02rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
  }
  .hero__tagline strong { font-weight: 700; }

  /* ---------- Tablet e mobile: profissionais "saem" de trás da faixa ---------- */
  @media (max-width: 860px) {
    .hero { --band-h: 112px; }
    .hero::before {
      background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 62%);
    }
    .hero__band { z-index: 2; }
    .hero__inner {
      position: relative;
      grid-template-rows: auto 1fr;
    }
    .hero__copy {
      max-width: none;
      padding: 52px 0 0;
      align-self: start;
    }
    .hero__title { font-size: clamp(2.5rem, 10.5vw, 5.25rem); }
    .hero__visual {
      position: relative;
      right: auto;
      bottom: auto;
      z-index: 1;
      grid-area: 2 / 1;
      align-self: end;
      justify-self: center;
      width: auto;
    }
    .hero__visual img {
      width: auto;
      max-width: none;
      height: clamp(300px, 44vh, 640px);
      height: clamp(300px, 44svh, 640px);
    }
    .hero__brand { grid-area: 2 / 1; z-index: 3; }
    .hero__brand img { width: clamp(150px, 42vw, 220px); }
    .hero__tagline { font-size: clamp(.72rem, 3.1vw, .9rem); }
  }

  @media (max-width: 560px) {
    .hero__brand {
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 10px;
    }
    .hero__brand img { width: clamp(140px, 38vw, 180px); }
    .hero__tagline { font-size: clamp(.72rem, 3.2vw, .85rem); }
  }

  /* ---------- Entrada da página: uma única sequência ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .line > span {
      transform: translateY(108%);
      animation: rise .95s var(--ease-out) forwards;
      animation-delay: calc(.2s + var(--i) * .1s);
    }
    .hero__band {
      transform: scaleX(0);
      transform-origin: left center;
      animation: band .9s cubic-bezier(.7, 0, .2, 1) .05s forwards;
    }
    .hero__visual img {
      opacity: 0;
      transform: translateX(56px);
      animation: enter 1.05s var(--ease-out) .5s forwards;
    }
    .hero__eyebrow, .hero__lead, .hero__stack, .hero .btn, .hero__brand {
      opacity: 0;
      animation: fade .8s ease forwards;
    }
    .hero__eyebrow { animation-delay: .15s; }
    .hero__lead    { animation-delay: .65s; }
    .hero__stack   { animation-delay: .72s; }
    .hero .btn     { animation-delay: .85s; }
    .hero__brand   { animation-delay: .7s; }
    .btn:active    { transition: none; }
  }
  @keyframes rise  { to { transform: none; } }
  @keyframes band  { to { transform: none; } }
  @keyframes enter { to { opacity: 1; transform: none; } }
  @keyframes fade  { to { opacity: 1; } }

  /* ---------- SESSÃO 2: O PROBLEMA ---------- */
  .problem {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: #fff;
  }

  .problem { --muted: #e6e3dd; }   /* cinza claro para textos secundários sobre a foto escura */
  .problem__copy { text-shadow: 0 1px 18px rgba(0, 0, 0, .55), 0 0 3px rgba(0, 0, 0, .35); }

  .problem__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    /* altura da sessão = altura do texto + uma folga pequena */
    padding: clamp(40px, 6vh, 64px) clamp(20px, 5vw, 88px);
  }
  .problem__copy { max-width: min(48vw, 700px); }

  .problem__title {
    font-size: clamp(2.25rem, min(5vw, 9vh), 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .problem__title > span { display: block; }

  .problem__lead {
    margin-top: clamp(16px, 2.6vh, 28px);
    font-size: clamp(1.15rem, 1.9vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--muted);
  }
  .problem__lead strong { font-weight: 700; color: #fff; }

  /* a sequência é o gesto do slide: assistir → responder → esquecer */
  .seq {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: clamp(24px, 4.4vh, 44px) 0 0;
    padding: 0;
    list-style: none;
    font-size: clamp(1.15rem, 2.1vw, 2rem);
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .seq li { display: flex; align-items: center; gap: 14px; }
  .seq svg { width: 1.5em; height: auto; flex: none; }
  .seq li:last-child { opacity: .62; }   /* o que foi esquecido */

  .formats {
    margin: clamp(20px, 3.4vh, 36px) 0 0;
    padding: 2px 0 2px 18px;
    border-left: 6px solid var(--signal);
    list-style: none;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--muted);
  }

  .problem__payoff {
    margin-top: clamp(20px, 3.4vh, 36px);
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -.015em;
  }

  /* foto de fundo com paralaxe: a imagem é maior que a caixa e desliza dentro dela */
  .problem__media {
    --parallax: clamp(60px, 12vw, 190px);   /* quanto a foto desliza dentro da sessão */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 1920px);   /* em telas ultrawide a foto não estica além disso */
    z-index: 0;
    overflow: hidden;
  }
  .problem__media img {
    position: absolute;
    left: 0;
    width: 100%;
    top: calc(var(--parallax) * -1);
    height: calc(100% + var(--parallax) * 2);
    object-fit: cover;
    object-position: 64% 32%;
    filter: grayscale(1) contrast(1.05);   /* preto e branco: cara de arquivo, de passado */
    will-change: transform;
  }
  /* véu preto suave só atrás do texto: a foto continua aparecendo */
  .problem__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(0, 0, 0, .72) 0%,
      rgba(0, 0, 0, .55) 28%,
      rgba(0, 0, 0, .24) 46%,
      rgba(0, 0, 0, 0) 62%);
  }
  /* em telas mais largas que a foto, a borda esquerda dissolve no fundo */
  @media (min-width: 1921px) {
    .problem__media {
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
      mask-image: linear-gradient(90deg, transparent 0, #000 14%);
    }
  }

  @media (max-width: 860px) {
    .problem { display: block; }
    .problem__inner { padding: 44px clamp(20px, 5vw, 88px) 32px; }
    .problem__copy { max-width: none; }
    .problem__title { font-size: clamp(2.25rem, 9.5vw, 4.5rem); }
    .problem__lead { font-size: clamp(1.15rem, 3vw, 1.6rem); }
    .seq { font-size: clamp(1.15rem, 3.4vw, 1.8rem); }
    .formats { font-size: clamp(1rem, 2.4vw, 1.2rem); }
    .problem__payoff { font-size: clamp(1.1rem, 2.8vw, 1.4rem); }
    /* no celular a foto vem abaixo do texto, com o mesmo paralaxe */
    .problem__media {
      --parallax: 44px;
      position: relative;
      inset: auto;
      width: 100%;
      aspect-ratio: 16 / 11;
      -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
      mask-image: linear-gradient(180deg, transparent 0, #000 24%);
    }
    .problem__media::after { display: none; }
    .problem__media img { object-position: 76% 38%; }
  }

  @media (max-width: 560px) {
    .seq { flex-wrap: nowrap; gap: 8px; font-size: clamp(.95rem, 4.4vw, 1.2rem); }
    .seq li { gap: 8px; }
    .seq svg { width: 1.1em; }
  }

  /* Único momento animado da sessão: a sequência se revela e "esquecer" some */
  @media (prefers-reduced-motion: no-preference) {
    .seq.is-armed li { opacity: 0; }
    .seq.is-playing li {
      animation: seq-in .6s var(--ease-out) forwards;
      animation-delay: calc(var(--i) * .55s);
    }
    .seq.is-playing li:last-child { animation-name: seq-forget; animation-duration: 2.2s; }
  }
  @keyframes seq-in     { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes seq-forget { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; transform: none; } 100% { opacity: .62; transform: none; } }

  /* ---------- SESSÃO 3: COMO FUNCIONA ---------- */
  .how {
    background: var(--gold);
    color: var(--ink);
    text-align: center;
  }
  .how__inner {
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(48px, 8vh, 88px) clamp(20px, 5vw, 88px);
  }

  .how__title {
    font-size: clamp(2.5rem, min(6vw, 10.5vh), 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .how__title > span { display: block; }
  .how__title .soft { font-weight: 300; }   /* fazer é firme; assistir é leve */
  .how .dot { color: #fff; }                /* o ponto amarelo some no fundo dourado */

  .pillars {
    --disc: clamp(68px, 6.2vw, 96px);
    --gap: clamp(28px, 5vw, 88px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    max-width: 1240px;
    margin: clamp(32px, 6vh, 60px) auto 0;
    padding: 0;
    list-style: none;
  }
  .pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pillar__icon {
    display: grid;
    place-items: center;
    width: var(--disc);
    height: var(--disc);
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
  }
  .pillar__icon svg { width: 58%; height: 58%; }
  .pillar h3 {
    margin: clamp(14px, 2.4vh, 22px) 0 8px;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.03em;
  }
  .pillar p {
    max-width: 22ch;
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(0, 0, 0, .82);
    text-wrap: balance;
  }
  /* seta entre os pilares, como a sequência da sessão anterior */
  .pillar:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--disc) / 2 - 7px);
    left: calc(100% + var(--gap) / 2 - 22px);
    width: 44px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h32M28 1.5 34 6l-6 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .how__payoff {
    margin-top: clamp(32px, 6vh, 60px);
    font-size: clamp(1.25rem, 2.4vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -.02em;
  }
  .how__payoff span, .how__title > span { display: block; text-wrap: balance; }
  .how__payoff strong { font-weight: 700; }

  @media (max-width: 760px) {
    .how__title { font-size: clamp(2.1rem, 9vw, 4.5rem); }
    .pillars { --disc: 60px; grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .pillar {
      display: grid;
      grid-template-columns: var(--disc) minmax(0, 1fr);
      column-gap: 18px;
      align-items: center;
      text-align: left;
    }
    .pillar__icon { grid-row: 1 / span 2; }
    .pillar h3 { margin: 0 0 4px; align-self: end; }
    .pillar p { max-width: none; align-self: start; }
    .pillar:not(:last-child)::after { display: none; }
  }

  /* ---------- Entrada dos textos: sobem e aparecem ao chegar na sessão ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
  }

  /* ---------- SESSÃO 4: PROJETOS E CLIENTES ---------- */
  .work {
    --r: clamp(14px, 1.6vw, 24px);   /* cantos arredondados em todas as imagens */
    background: var(--paper);
    color: var(--ink);
  }
  .work__inner {
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
  }

  .work__title {
    font-size: clamp(2.25rem, min(5.4vw, 9.5vh), 5.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .work__title > span { display: block; }

  /* o Cyber Game é o de maior alcance: ocupa a coluna larga; os outros dois empilham ao lado */
  .cases {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(28px, 5vh, 56px);
  }
  .cases__col {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
  }
  .cases__col--main { justify-content: space-between; }

  .case { margin: 0; }
  .case img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r);
    background: #e9e6e0;
  }
  .case dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 18px;
    margin: 14px 0 0;
    font-size: clamp(.95rem, 1.1vw, 1.05rem);
    line-height: 1.35;
  }
  .case dt { color: var(--muted); }
  .case dd { margin: 0; font-weight: 600; }

  .claims {
    margin: 0;
    padding: 2px 0 2px 20px;
    border-left: 6px solid var(--signal);
    list-style: none;
    font-size: clamp(1.2rem, 1.9vw, 1.8rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.02em;
  }
  .claims li + li { margin-top: .6em; }
  .claims strong { font-weight: 700; }

  .photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(32px, 6vh, 64px);
  }
  .photo { margin: 0; }
  .photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r);
    background: #e9e6e0;
  }

  /* tablet: Cyber Game em destaque na largura toda, os outros dois lado a lado */
  @media (max-width: 860px) {
    .work__title { font-size: clamp(2.25rem, 10vw, 4.5rem); }
    .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cases__col { display: contents; }
    .case--cyber { order: 1; grid-column: 1 / -1; }
    .case--fiocruz { order: 2; }
    .case--saude { order: 3; }
    .claims { order: 4; grid-column: 1 / -1; }
  }
  /* celular: tudo em uma coluna */
  @media (max-width: 560px) {
    .cases, .photos { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- SESSÃO 5A: A INSPIRAÇÃO ---------- */
  .spark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: #fff;
    text-align: center;
  }
  .spark__media {
    --parallax: clamp(48px, 9vw, 140px);
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .spark__media img {
    position: absolute;
    left: 0;
    width: 100%;
    top: calc(var(--parallax) * -1);
    height: calc(100% + var(--parallax) * 2);
    object-fit: cover;
    filter: grayscale(1);
    will-change: transform;
  }
  .spark__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .74));
  }
  .spark__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
    text-shadow: 0 1px 18px rgba(0, 0, 0, .5);
  }
  .spark__title {
    font-size: clamp(2.25rem, min(5.4vw, 9.5vh), 5.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .spark__title > span { display: block; }
  .spark__lead {
    max-width: 30ch;
    margin: clamp(16px, 3vh, 28px) auto 0;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.015em;
  }
  .spark__stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(28px, 7vw, 120px);
    margin: clamp(28px, 5vh, 56px) 0 0;
    padding: 0;
    list-style: none;
  }
  .spark__stats li + li {
    padding-left: clamp(28px, 7vw, 120px);
    border-left: 1px solid rgba(255, 255, 255, .35);
  }
  .stat__n {
    display: block;
    font-size: clamp(3.6rem, 12vw, 10.5rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.05em;
    color: var(--signal);
  }
  .stat__l {
    display: block;
    max-width: 16ch;
    margin: 10px auto 0;
    font-size: clamp(.95rem, 1.5vw, 1.35rem);
    line-height: 1.25;
  }
  .spark__finding {
    max-width: 42ch;
    margin: clamp(28px, 5vh, 52px) auto 0;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 300;
    line-height: 1.4;
    color: #e6e3dd;
  }
  .spark__close {
    max-width: 30ch;
    margin: clamp(14px, 2.4vh, 24px) auto 0;
    font-size: clamp(1.3rem, 2.5vw, 2.2rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -.02em;
  }
  .spark__close strong { font-weight: 700; }
  .spark__sources {
    margin-top: clamp(24px, 4vh, 40px);
    font-size: .8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
    text-shadow: none;
  }
  .spark__sources a { color: inherit; text-underline-offset: 3px; }
  .spark__sources a:hover { color: #fff; }
  .spark__sources a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

  /* ---------- SESSÃO 5B: OPERAÇÃO COZINHA ---------- */
  .kitchen {
    --r: clamp(14px, 1.6vw, 24px);
    background: var(--paper);
    color: var(--ink);
  }
  .kitchen__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: center;
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
  }
  .kitchen__logo {
    display: block;
    width: clamp(220px, 26vw, 380px);
    height: auto;
    margin-left: -6px;
  }
  .kitchen__title {
    margin-top: clamp(16px, 3vh, 28px);
    font-size: clamp(1.9rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .kitchen__lead {
    max-width: 46ch;
    margin-top: clamp(14px, 2.4vh, 22px);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    color: var(--muted);
  }
  .kitchen__intro {
    margin-top: clamp(20px, 3.4vh, 32px);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 600;
  }
  .kitchen__list {
    margin: 12px 0 0;
    padding: 2px 0 2px 18px;
    border-left: 6px solid var(--signal);
    list-style: none;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.45;
    color: var(--muted);
  }
  .kitchen__list li + li { margin-top: .35em; }

  .kitchen__scene { margin: 0; }
  .kitchen__scene img,
  .kitchen__screens img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r);
    background: #e9e6e0;
  }
  .kitchen__screens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
    margin-top: clamp(14px, 2vw, 28px);
  }
  .kitchen__screens figure { margin: 0; }
  .kitchen__screens img { border-radius: calc(var(--r) * .7); }
  .kitchen__screens figcaption {
    margin-top: 10px;
    font-size: clamp(.85rem, 1vw, .95rem);
    line-height: 1.4;
    color: var(--muted);
  }

  @media (max-width: 860px) {
    .kitchen__inner { grid-template-columns: minmax(0, 1fr); }
    .spark__title { font-size: clamp(2.25rem, 10vw, 4.5rem); }
  }
  @media (max-width: 560px) {
    .spark__stats { gap: 22px; }
    .spark__stats li + li { padding-left: 22px; }
    .kitchen__screens { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- SESSÃO 6: APENAS O COMEÇO (ÁREAS DE ATUAÇÃO) ---------- */
  .areas {
    --r: clamp(16px, 2vw, 28px);
    background: #000;
    color: #fff;
  }
  .areas__inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 110px);
    align-items: center;
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
  }
  .areas__title {
    font-size: clamp(2.25rem, min(4.8vw, 9vh), 5.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .areas__title > span { display: block; }
  @media (min-width: 861px) { .areas__title > span { white-space: nowrap; } }
  .areas__lead {
    max-width: 34ch;
    margin-top: clamp(14px, 2.6vh, 26px);
    font-size: clamp(1.15rem, 1.9vw, 1.7rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: #e6e3dd;
  }
  .areas__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;              /* lê descendo: 3 à esquerda, 3 à direita */
    gap: 0 clamp(20px, 3vw, 48px);
    margin: clamp(26px, 5vh, 48px) 0 0;
    padding: 0;
    list-style: none;
  }
  .areas__list li {
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, .28);
  }
  .areas__list strong {
    display: block;
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -.01em;
  }
  .areas__list span {
    display: block;
    margin-top: 2px;
    font-size: clamp(.92rem, 1.15vw, 1.05rem);
    line-height: 1.35;
    color: #c9c5bd;
  }
  .areas__close {
    max-width: 34ch;
    margin-top: clamp(20px, 4vh, 36px);
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.015em;
  }
  .areas__close strong { font-weight: 700; }

  /* ---------- SESSÃO 7: CONTATO ---------- */
  .finale {
    background: var(--gold);
    color: var(--ink);
  }
  .finale__inner {
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
  }
  .finale__title {
    font-size: clamp(2.25rem, min(5.4vw, 9.5vh), 5.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
  }
  .finale__title > span { display: block; }
  .finale .dot { color: #fff; }

  .audiences {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
    margin: clamp(32px, 6vh, 64px) 0 0;
    padding: 0;
    list-style: none;
  }
  .audiences li {
    padding-top: 16px;
    border-top: 5px solid var(--ink);
  }
  .audiences h3 {
    font-size: clamp(1.25rem, 1.9vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -.03em;
  }
  .audiences p {
    margin-top: 6px;
    max-width: 22ch;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.4;
    color: rgba(0, 0, 0, .82);
  }

  .finale__close {
    max-width: 36ch;
    margin-top: clamp(32px, 6vh, 60px);
    font-size: clamp(1.4rem, 2.6vw, 2.4rem);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -.025em;
  }
  .finale__close strong { font-weight: 700; }

  .finale__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px clamp(20px, 3vw, 40px);
    margin-top: clamp(28px, 5vh, 52px);
  }
  .finale .btn { margin-top: 0; padding: 1.15em 2.1em; font-size: clamp(1rem, 1.25vw, 1.2rem); }
  .finale .btn:hover { background: #fff; color: var(--ink); }
  .finale__mail {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 600;
    color: var(--ink);
    text-underline-offset: 4px;
  }
  .finale__mail:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

  /* ---------- Rodapé ---------- */
  .site-footer {
    background: #000;
    color: #fff;
  }
  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    max-width: 1500px;
    margin-inline: auto;
    padding: clamp(28px, 5vh, 44px) clamp(20px, 5vw, 88px);
  }
  .site-footer img { width: clamp(150px, 14vw, 200px); height: auto; }
  .site-footer__tagline { font-size: clamp(.9rem, 1.1vw, 1.05rem); }
  .site-footer__tagline strong { font-weight: 700; }
  .site-footer small { font-size: .82rem; color: rgba(255, 255, 255, .62); }

  @media (max-width: 860px) {
    .areas__inner { grid-template-columns: minmax(0, 1fr); }
    .areas__title { font-size: clamp(2.25rem, 10vw, 4.5rem); }
    .finale__title { font-size: clamp(2.25rem, 8.4vw, 4.5rem); }
    .areas__art { max-width: 520px; margin-inline: auto; width: 100%; }
    .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  }
  @media (max-width: 560px) {
    .areas__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
    .audiences { grid-template-columns: minmax(0, 1fr); }
    .audiences p { max-width: none; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
  }

  /* ---------- Ajustes finais de texto ---------- */
  .how__kicker {
    margin-bottom: clamp(10px, 2vh, 18px);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 400;
    letter-spacing: -.01em;
  }
  .spark__kicker {
    margin-bottom: clamp(10px, 2vh, 18px);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 400;
    letter-spacing: -.01em;
    color: #e6e3dd;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: clamp(16px, 2.8vh, 26px) 0 0;
    padding: 0;
    list-style: none;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .55em 1em;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: clamp(.85rem, 1vw, .95rem);
    font-weight: 600;
    line-height: 1;
  }
  .chip--stage { background: var(--signal); border-color: var(--signal); }
  .chip--stage::before {
    content: "";
    width: .5em;
    height: .5em;
    border-radius: 50%;
    background: var(--ink);
  }

  .finale__invite {
    max-width: 24ch;
    margin-top: clamp(28px, 5vh, 48px);
    font-size: clamp(1.4rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  .finale__invite::before {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    margin-bottom: 18px;
    background: var(--ink);
  }
  .finale__invite strong { font-weight: 700; }
  .finale__cta { margin-top: clamp(20px, 3.6vh, 36px); }

  .site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    margin: 0;
  }
  .site-footer__place { display: inline-flex; align-items: center; gap: 8px; }
  .site-footer .flag { width: 22px; height: auto; flex: none; border-radius: 2px; }

  /* arte das áreas: PNG transparente direto sobre o preto; as pontas das linhas se dissolvem */
  .areas__art { aspect-ratio: 977 / 1322; }
  .areas__art img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 3.4%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 3.4%);
    mask-composite: intersect;
  }

/* ---------- Seletor de idioma ---------- */
.lang {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
}
.lang button {
  padding: .6em .85em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 .78rem/1 'Sora', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang button:hover { background: rgba(255, 255, 255, .16); }
.lang button[aria-pressed="true"] { background: var(--signal); color: #000; }
.lang button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Chinês (zh-Hans): fontes do sistema, sem espaçamento negativo ---------- */
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] .btn {
  font-family: 'Sora', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif;
}
html[lang="zh-Hans"] * { letter-spacing: normal !important; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { line-height: 1.14; }
html[lang="zh-Hans"] .hero__eyebrow { text-transform: none; }

/* quebras de linha mais equilibradas no chinês e no inglês */
html[lang="zh-Hans"] p,
html[lang="zh-Hans"] figcaption { text-wrap: balance; }
.nb { display: inline-block; }
html[lang="en"] .finale__invite { max-width: 34ch; }

/* ---------- Hero: linha objetiva de produto ---------- */
.hero__stack {
  max-width: 40ch;
  margin-top: clamp(14px, 2.4vh, 22px);
  padding-left: 14px;
  border-left: 4px solid var(--signal);
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.hero__stack + .btn { margin-top: clamp(20px, 3.4vh, 36px); }

/* ---------- SESSÃO: O QUE A ARCA DESENVOLVE ---------- */
.product {
  --r: clamp(16px, 2vw, 28px);
  background: #000;
  color: #fff;
}
.product__inner {
  max-width: 1500px;
  margin-inline: auto;
  padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 88px);
}
.product__kicker {
  margin-bottom: clamp(10px, 2vh, 18px);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: -.01em;
  color: #e6e3dd;
}
.product__title {
  font-size: clamp(2.25rem, min(5.4vw, 9.5vh), 5.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.product__title > span { display: block; }
.product__lead {
  max-width: 58ch;
  margin-top: clamp(16px, 3vh, 28px);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: #e6e3dd;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 4fr) auto minmax(0, 8fr);
  gap: clamp(16px, 2.4vw, 40px);
  align-items: stretch;
  margin-top: clamp(28px, 5vh, 56px);
}
.stack__label {
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  font-weight: 600;
}
.stack__engine {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--r);
  background: var(--gold);
  color: #000;
}
.stack__name {
  font-size: clamp(1.9rem, 3.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.stack__desc {
  margin-top: .7em;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.4;
  color: rgba(0, 0, 0, .85);
}
.stack__arrow {
  align-self: center;
  width: clamp(32px, 4vw, 64px);
  height: auto;
  color: var(--signal);
}
.stack__where { display: flex; flex-direction: column; gap: 14px; }
.stack__targets {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.target {
  padding: clamp(16px, 1.8vw, 26px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r);
}
.target svg { width: clamp(34px, 3.4vw, 48px); height: auto; color: var(--signal); }
.target h3 {
  margin-top: 14px;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.target p {
  margin-top: 4px;
  font-size: clamp(.92rem, 1.15vw, 1.05rem);
  line-height: 1.4;
  color: #c9c5bd;
}

@media (max-width: 860px) {
  .product__title { font-size: clamp(2.25rem, 9vw, 4.5rem); }
  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack__arrow { transform: rotate(90deg); margin-block: -4px; }
}
@media (max-width: 460px) {
  .stack__targets { grid-template-columns: minmax(0, 1fr); }
}

/* telas baixas: a hero ganha um pouco de altura em vez de apertar o texto contra a faixa dourada */
@media (min-width: 861px) {
  .hero { min-height: max(660px, 100vh); min-height: max(660px, 100svh); }
}

/* ---------- Linha de tecnologias (sem hierarquia entre elas) ---------- */
.techline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(22px, 4vh, 40px);
}
.techline p { font-size: clamp(.95rem, 1.2vw, 1.1rem); color: #e6e3dd; }
.techline__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.techline__list li {
  padding: .55em 1em;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-size: clamp(.85rem, 1vw, .95rem);
  font-weight: 600;
  line-height: 1;
}

/* ---------- Vídeo do Cyber Game: capa + botão de play ---------- */
.case__media { position: relative; }
.case video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  background: #000;
}
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--signal);
  color: #000;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.play svg { width: 42%; height: 42%; margin-left: 6%; }
.play:hover { transform: translate(-50%, -50%) scale(1.07); background: #fff; }
.play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 6px #000; }
.play[hidden] { display: none; }
