/* =====================================================================
   BMA Full Acrílico · landing.css  (único CSS da landing page)
   Reúne, na mesma ordem de cascata de antes, o que estava no <style> do
   index.html + fit.css + material.css + custom.css + contato.css + mobile.css,
   sem as regras das seções que não existem mais. Os arquivos antigos continuam
   na pasta só como histórico (não são carregados).
   Ordem: 1 base e seções · desktop (fit) · material · sob medida · contato ·
          celular em pé · vídeos/posters · depoimentos · celular com rolagem nativa.
   ===================================================================== */

/* ===== 1 · BASE, TELAS E SEÇÕES (antes: CSS embutido no index.html) ===== */
@font-face {
    font-family: "Manrope";
    src: url("assets/manrope.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
  }
  :root {
    --bg: #ffffff;
    --tint: #eef3f7;
    --ink: #14212b;
    --fg: #3f5568;
    --icon: #4d6a82;
    --line: #dfe5ea;
    --dark: #0f171e;
    --dark-2: #17232d;
    --on-dark: #e8eef3;
    --on-dark-muted: #9fb2c2;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: clamp(1.25rem, 5vw, 5rem);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  .skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .875rem; transform: translateY(-200%); }
  .skip-link:focus { transform: none; }
  a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

  .wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }

  /* ---------- Telas ---------- */
  .screen {
    position: relative;
    min-height: 100svh;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 6.5rem 4rem;
  }
  .eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--icon);
    margin-bottom: 1.25rem;
  }
  .title {
    font-size: clamp(2rem, 4.6vw, 3.75rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    max-width: 18ch;
  }
  .title b { font-weight: 700; }
  .lead { font-size: 1.0625rem; line-height: 1.6; max-width: 46ch; margin-top: 1.25rem; }

  .btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    font-weight: 600; font-size: .9rem;
    border: 1px solid transparent;
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
  }
  .btn:hover { transform: translateY(-2px); }
  .btn svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .btn-solid { background: #fff; color: var(--ink); }
  .btn-solid:hover { background: var(--tint); }

  /* ---------- Cabeçalho, progresso e navegação por pontos ---------- */
  .header {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    padding: 1rem var(--gutter) 0;
    pointer-events: none;
  }
  .header-shell {
    position: relative; width: min(1200px, 100%); min-height: 4.25rem; margin-inline: auto;
    display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
    padding: .4rem 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
    mix-blend-mode: difference;
  }
  .logo { display: block; width: 3.25rem; flex-shrink: 0; }
  .logo img { width: 100%; height: auto; }
  .primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 1.4vw, 1.25rem); }

  /* Sobre fundo claro (o script marca .on-light), o cabeçalho fica preto */
  .header.on-light:not(.is-open) .header-shell { color: #000; mix-blend-mode: normal; }
  .header.on-light:not(.is-open) .logo img { filter: brightness(0); }
  .header.on-light:not(.is-open) .primary-nav a { color: rgba(0,0,0,.72); }
  .header.on-light:not(.is-open) .primary-nav a::after { background: #000; }
  .header.on-light:not(.is-open) .primary-nav a:hover,
  .header.on-light:not(.is-open) .primary-nav a:focus-visible,
  .header.on-light:not(.is-open) .primary-nav a[aria-current="page"] { color: #000; }

  .header.on-light:not(.is-open) .menu-toggle { color: #000; background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.2); }
  .primary-nav a {
    position: relative; padding: .7rem .15rem;
    font-size: clamp(.62rem, .68vw, .72rem); font-weight: 600; letter-spacing: .015em;
    color: rgba(255,255,255,.72); white-space: nowrap;
    transition: color .25s ease;
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: .25rem; right: .25rem; bottom: .36rem; height: 1px;
    background: #fff; transform: scaleX(0); transform-origin: 100% 50%;
    transition: transform .35s var(--ease);
  }
  .primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: #fff; }
  .primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="page"]::after {
    transform: scaleX(1); transform-origin: 0 50%;
  }
  .menu-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .menu-toggle {
    display: none; width: 2.75rem; height: 2.75rem; padding: 0;
    place-items: center; color: #fff; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16); border-radius: 50%; cursor: pointer;
  }
  .progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
    background: var(--icon); transform-origin: 0 50%; transform: scaleX(0);
  }
  .dots {
    position: fixed; right: clamp(.75rem, 2vw, 1.75rem); top: 50%; z-index: 20;
    transform: translateY(-50%);
    display: grid; gap: .9rem;
    mix-blend-mode: difference; color: #fff;
  }
  .dots a {
    display: block; width: 6px; height: 6px; border-radius: 6px;
    background: currentColor; opacity: .45;
    transition: height .5s var(--ease), opacity .4s;
  }
  .dots a[aria-current="true"] { height: 26px; opacity: 1; }
  .dots a:hover { opacity: 1; }

  /* ---------- 1 · Hero ---------- */
  .hero { color: #fff; background: var(--dark); padding-bottom: 5rem; }
  .hero .bg { position: absolute; inset: 0; overflow: hidden; }
  .hero .bg picture { display: block; width: 100%; height: 100%; }
  .hero .bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .hero .bg::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,.75) 100%),
                linear-gradient(90deg, rgba(10,18,25,.78) 0%, rgba(10,18,25,.35) 55%, rgba(10,18,25,.1) 100%),
                linear-gradient(0deg, rgba(10,18,25,.55), transparent 40%);
  }
  .hero .title { color: #fff; font-size: clamp(2.25rem, 4.4vw, 4.25rem); max-width: 12ch; }
  .hero .eyebrow { color: #cfe0ee; }
  .hero .lead { color: #dbe6ef; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
  /* Layout centralizado: título no topo ao centro, texto curto e botões logo abaixo */
  .screen.hero { justify-content: flex-start; text-align: center; }
  .hero .title, .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero .bg::after {
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,.75) 100%),
                linear-gradient(180deg, rgba(10,18,25,.78) 0%, rgba(10,18,25,.5) 40%, rgba(10,18,25,.15) 75%, rgba(10,18,25,.3) 100%);
  }
  /* Hero com o letreiro em tela cheia: título e texto curto ficam na base, sobre um degradê escuro */
  .hero > .wrap { position: absolute; left: 0; right: 0; bottom: 9rem; margin-inline: auto; }
  .hero .bg img { object-position: 50% 100%; }
  .hero .bg::after {
    background: linear-gradient(0deg, rgba(8,14,20,.94) 0%, rgba(8,14,20,.78) 30%, rgba(8,14,20,0) 58%),
                radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,.6) 100%);
  }
  .hero .title { max-width: none; font-size: clamp(2.5rem, 5vw, 4.5rem); }
  .hero .lead { max-width: 62ch; margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.55; }
  .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
  .line > span { display: block; }
  .scroll-hint {
    position: absolute; left: 50%; bottom: 1.75rem; z-index: 2;
    transform: translateX(-50%);
    display: grid; justify-items: center; gap: .6rem;
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #cfe0ee;
  }
  .scroll-hint i { display: block; width: 1px; height: 2.75rem; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
  .scroll-hint i::after {
    content: ""; position: absolute; inset: 0; background: #fff;
    animation: drip 2.2s var(--ease) infinite;
  }
  @keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

  /* Imagens removidas: apenas modelo de layout */
  .hero .bg, .material .bg { background: linear-gradient(135deg, #1c2a35, #0a1219); }

  /* ---------- Material ---------- */
  .material {
    display: block;
    min-height: 100svh;
    padding: 0;
    overflow: clip;
    background: var(--dark);
    color: #fff;
  }
  .material-stage {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-block: 6rem 3.5rem;
  }
  .material .bg { position: absolute; inset: 0; overflow: hidden; }
  .material .bg img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 50%;
    /* Enquadra a caixa de acrílico: ponto de origem sobre a caixa na foto, deslocado para o lado esquerdo da tela */
    transform-origin: 39.5% 67%;
    transform: translate(-4.5%, -9%) scale(1.8);
  }
  .material .bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,18,25,.15) 0%, rgba(10,18,25,.55) 55%, rgba(10,18,25,.85) 100%),
                linear-gradient(180deg, rgba(10,18,25,.6) 0%, transparent 35%, transparent 70%, rgba(10,18,25,.6) 100%);
  }
  .material .eyebrow { color: #cfe0ee; }
  .material .title { color: #fff; max-width: 20ch; }
  .material .head { text-align: center; margin: 0 auto 2.5rem; }
  .material .title { margin-inline: auto; }
  .material .sub { max-width: 58ch; margin: 1.25rem auto 0; font-size: .95rem; line-height: 1.6; color: #dbe6ef; }
  .mat-viewport { overflow: hidden; }
  .material .wrap { min-width: 0; }
  .mat-grid {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: max-content;
    margin: 0;
  }
  .mat {
    flex: 0 0 clamp(18rem, 31vw, 24rem);
    min-height: 13.5rem;
    padding: 1.15rem 1.25rem 1.25rem;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 1rem;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .mat svg { width: 1.35rem; height: 1.35rem; stroke: #cfe0ee; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .mat h3 { margin-top: .8rem; font-size: 1.05rem; font-weight: 600; color: #fff; }
  .mat p { margin-top: .4rem; font-size: .8125rem; line-height: 1.5; color: #cbd9e4; }
  .mat-note { margin: 1.5rem auto 0; font-size: .72rem; line-height: 1.5; color: #aebfcd; max-width: 70ch; text-align: center; }

  /* ---------- Cartões (Tecnologias e Diferenciais) ---------- */

  .g-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
  .g-card {
    position: relative; overflow: hidden;
    background: var(--bg); border: 1px solid var(--line); border-radius: 1.25rem;
    padding: 1.75rem 1.75rem 2rem;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  }
  .g-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--icon);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
  }
  .g-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,33,43,.12); }
  .g-card:hover::before { transform: scaleX(1); }
  .g-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
  .g-icon { width: 3.25rem; height: 3.25rem; border-radius: .9rem; display: grid; place-items: center; background: var(--tint); transition: background .3s; }
  .g-icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--icon); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
  .g-card:hover .g-icon { background: var(--icon); }
  .g-card:hover .g-icon svg { stroke: #fff; }
  .g-step { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--icon); }
  .g-card h3 { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
  .g-card p { font-size: .95rem; line-height: 1.65; max-width: 30ch; }

  /* ---------- Contato (círculo que se expande do centro) ---------- */
  .contact { color: var(--on-dark); text-align: center; background: var(--bg); }
  .contact::before { content: ""; position: absolute; inset: 0; background: var(--dark); }
  .contact .wrap { display: flex; flex-direction: column; align-items: center; }
  .contact .eyebrow { color: var(--on-dark-muted); }
  .contact .title { color: #fff; max-width: 16ch; font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
  .contact .lead { color: var(--on-dark-muted); margin-inline: auto; }
  .contact .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.5rem; }

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

  .two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
  .copy-text p { font-size: 1rem; line-height: 1.75; max-width: 52ch; }
  .copy-text p + p { margin-top: 1rem; }
  .copy-text .title { margin-bottom: 1.5rem; max-width: 20ch; }
  .fig { margin: 0; border-radius: 1.25rem; overflow: hidden; background: var(--tint); position: relative; }
  .fig img { width: 100%; height: 100%; object-fit: cover; }
  .fig figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .9rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; background: rgba(255,255,255,.88); color: var(--ink); }
  .fig-tall { aspect-ratio: 4 / 5; max-height: 68svh; width: 100%; }
  .fig.about-fig { background: none; display: grid; place-items: center; }
  .fig .about-logo { object-fit: contain; width: min(70%, 22rem); height: auto; padding: 0; filter: brightness(0) invert(1); }

  .note { margin-top: 1.75rem; padding-left: 1rem; border-left: 2px solid var(--line); max-width: 64ch; font-size: .8rem; line-height: 1.6; color: var(--icon); }
  .note strong { display: block; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem; }
  .on-dark .note, .note.on-dark { border-color: rgba(255,255,255,.25); color: var(--on-dark-muted); }
  .head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 3rem; margin-bottom: 2.5rem; }
  .head-row .sub { max-width: 34ch; font-size: .95rem; line-height: 1.7; }

  .about .tag { margin-top: 2rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cfe0ee; }
  .history, .about { position: relative; isolation: isolate; overflow: hidden; background: #0b1218; color: #fff; }
  .photo-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .photo-bg img, .photo-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 22, .9) 0%, rgba(10, 16, 22, .6) 55%, rgba(10, 16, 22, .3) 100%); }
  .history .eyebrow, .about .eyebrow { color: #cfe0ee; }
  .history .title, .about .title { color: #fff; }
  .history .copy-text p, .about .copy-text p { color: var(--on-dark-muted); }
  .history .h-card { color: var(--on-dark-muted); }
  .history .h-card .h-tag { color: #cfe0ee; }
  .history .h-card .h-tag span { color: #fff; }
  .about .h-card { color: var(--on-dark-muted); }
  .about .h-card .h-tag { color: #cfe0ee; }
  .about .h-card .h-tag span { color: #fff; }
  /* Linha do tempo: cada etapa separada por um fio, com o ano em destaque */
  .about-timeline { gap: 0; margin-top: 1.5rem; }
  .about-timeline .h-card { padding: .9rem 0 1rem; border-top: 1px solid rgba(255,255,255,.14); }
  .about-timeline .h-card:first-child { border-top: 0; padding-top: 0; }
  .about-timeline .h-card .h-tag { margin-bottom: .45rem; font-size: .7rem; letter-spacing: .16em; }
  .about-timeline .h-card p:not(.h-tag) { font-size: .88rem; line-height: 1.6; }
  .about .copy-text > .tag { margin-top: 1.25rem; }
  .h-cards { display: grid; gap: 1.25rem; }
  .h-card { position: relative; padding: 0; border-radius: 0; background: none; border: 0; }
  .h-card p { font-size: .98rem; line-height: 1.7; }
  .h-card .h-tag { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--icon); }
  .h-card .h-tag span { color: var(--ink); }

  .tech { background: var(--dark-2); color: var(--on-dark-muted); }
  .tech .eyebrow { color: var(--on-dark-muted); }
  .tech .title { color: var(--on-dark); max-width: 22ch; }

  .custom { background: var(--dark); color: var(--on-dark-muted); }
  .custom .eyebrow { color: var(--on-dark-muted); }
  .custom .title { color: #fff; }
  .custom .copy-text p { color: var(--on-dark-muted); }
  .custom .btn-solid { color: var(--ink); }
  .spec { list-style: none; margin: 0; padding: 0; }
  .spec li { display: flex; gap: 1.25rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 1.2rem; font-weight: 500; color: var(--on-dark); }
  .spec li:first-child { border-top: 1px solid rgba(255,255,255,.16); }
  .spec li small { font-size: .72rem; letter-spacing: .16em; color: #8fb0c9; font-weight: 600; }

  .delivery { background: var(--bg); }
  .g-cards.four { grid-template-columns: repeat(4, 1fr); }
  .g-cards.four .g-card { background: var(--tint); }
  .g-cards.four .g-card p { max-width: none; }

  .tech .sub { color: var(--on-dark-muted); }
  .tech .g-cards.four .g-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); }
  .tech .g-icon { background: rgba(255,255,255,.06); }
  .tech .g-icon svg { stroke: #cfe0ee; }
  .tech .g-step { color: #8fb0c9; }
  .tech .g-card h3 { color: var(--on-dark); }
  .tech .g-card.has-video { isolation: isolate; }
  .tech .g-media { position: absolute; inset: 0; z-index: -1; }
  .tech .g-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .tech .g-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,22,.35) 0%, rgba(10,16,22,.8) 100%); }
  .tech .g-card.has-video p { color: #dbe6ef; }
  .tech .g-card--media { isolation: isolate; }
  .tech .g-card--media::before { z-index: 3; }
  .g-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .g-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .g-card--media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 16, 22, .6) 0%, rgba(10, 16, 22, .88) 100%); }
  .g-card--media > :not(.g-media) { position: relative; z-index: 2; }
  /* Tecnologias: cards maiores, com o título junto da base */
  @media (min-width: 901px) {
    .tech .wrap { width: min(1560px, 100%); }
    .tech .g-cards.four .g-card { display: flex; flex-direction: column; min-height: clamp(300px, 50svh, 470px); padding: 2.25rem 2.25rem 2.5rem; }
    .tech .g-cards.four .g-top { margin-bottom: 0; }
    .tech .g-cards.four .g-card h3 { margin-top: auto; margin-bottom: 0; font-size: clamp(1.4rem, 1.8vw, 1.85rem); }
    .tech .g-cards.four .g-icon { width: 4rem; height: 4rem; }
    .tech .g-cards.four .g-icon svg { width: 2rem; height: 2rem; }
    .tech .g-cards.four .g-step { font-size: .85rem; }
  }

  .reviews { background: var(--tint); }
  .quote { margin: 0; padding: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 1.25rem; display: flex; flex-direction: column; justify-content: flex-start; gap: 1rem; }
  .quote h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
  .quote blockquote { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--fg); }
  .quote figcaption strong { display: block; font-size: .95rem; color: var(--ink); }
  .quote figcaption span { font-size: .8rem; color: var(--icon); }
  .quote .stars { display: block; margin-top: .25rem; font-size: 1.05rem; letter-spacing: .15em; color: #f5a524; }
  .quotes { --q-gap: clamp(1rem, 2vw, 1.5rem); display: flex; gap: var(--q-gap); }

  .quotes .quote { flex: 0 0 calc((100% - 2 * var(--q-gap)) / 3); min-width: 0; }
  .q-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
  .q-nav button { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
  .q-nav button:hover, .q-nav button:focus-visible { background: var(--ink); color: var(--bg); }
  @media (max-width: 900px) { .quotes .quote { flex-basis: 100%; } }
  .rv-brands { display: flex; align-items: center; gap: 1.25rem; }
  .rv-brands img { width: 3.5rem; height: auto; filter: brightness(0); }
  .rv-brands svg { width: 2.5rem; height: 2.5rem; }
  .rv-sep { width: 1px; height: 2.5rem; background: var(--line); }

  .contact .actions { align-items: center; }

  /* ---------- Animações de transição (só sem preferência por menos movimento) ---------- */
  @media (prefers-reduced-motion: no-preference) {
    /* Elementos que entram: ficam escondidos até a tela ficar ativa */
    .js [data-a] {
      opacity: 0;
      transition: opacity .9s var(--ease), transform 1s var(--ease);
      transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms));
    }
    .js [data-a="up"]    { transform: translateY(56px); }
    .js [data-a="left"]  { transform: translateX(-72px); }
    .js [data-a="right"] { transform: translateX(72px); }
    .js [data-a="zoom"]  { transform: scale(.86); }
    .js .is-active [data-a] { opacity: 1; transform: none; }
    /* Ao sair da tela, reseta rápido para animar de novo na volta */
    .js .screen:not(.is-active) [data-a],
    .js .screen:not(.is-active) .line > span { transition-duration: .35s; transition-delay: 0s; }

    /* Títulos revelados linha a linha */
    .js .line > span { transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + var(--d, 0ms)); }
    .js .is-active .line > span { transform: none; }

    /* 1 · Hero: janela de imagem que abre + zoom out */
    .js .hero .bg { clip-path: inset(9% 7% 9% 7% round 28px); transition: clip-path 1.5s var(--ease); }
    .js .hero.is-active .bg { clip-path: inset(0 round 0); }
    .js .hero .bg img { transform: scale(1.25); transition: transform 2.8s var(--ease); }
    .js .hero.is-active .bg img { transform: scale(1); }
    .js .hero:not(.is-active) .bg, .js .hero:not(.is-active) .bg img { transition-duration: .5s; }

    /* Material: câmera aproxima da mesa inteira até o produto */
    .js .material .bg img { transform: translate(0, 0) scale(1); transition: transform 2.6s var(--ease); }
    .js .material.is-active .bg img { transform: translate(-4.5%, -9%) scale(1.8); }
    .js .material:not(.is-active) .bg img { transition-duration: .5s; }
    .js .material .bg::after { opacity: 0; transition: opacity 1.4s var(--ease) .3s; }
    .js .material.is-active .bg::after { opacity: 1; }
    .js .material:not(.is-active) .bg::after { transition-duration: .3s; transition-delay: 0s; }

    /* Contato: círculo escuro cresce a partir do centro */
    .js .contact::before { clip-path: circle(0% at 50% 50%); transition: clip-path 1.4s var(--ease); }
    .js .contact.is-active::before { clip-path: circle(150% at 50% 50%); }
    .js .contact:not(.is-active)::before { transition-duration: .4s; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .scroll-hint i::after { animation: none; }
  }

  /* ---------- Responsivo ---------- */
  @media (max-width: 1180px) {
    .header { padding: .75rem max(1rem, env(safe-area-inset-left)) 0; }
    .header-shell { grid-template-columns: auto auto auto; min-height: 3.8rem; gap: .75rem; padding: .35rem 0; }
    .logo { width: 2.8rem; }
    .menu-toggle { display: grid; }
    .primary-nav {
      position: absolute; top: calc(100% + .55rem); left: 0; right: 0;
      display: grid; grid-template-columns: repeat(2, 1fr); justify-items: stretch; gap: .15rem; padding: .7rem;
      background: rgba(15, 23, 30, .96); border: 1px solid rgba(255,255,255,.14); border-radius: 1.25rem;
      box-shadow: 0 18px 50px rgba(7,14,20,.28);
      -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
      opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
      transition: opacity .25s ease, transform .35s var(--ease), visibility .25s;
    }
    .header.is-open .header-shell { mix-blend-mode: normal; }
    .header.is-open .logo { filter: drop-shadow(0 1px 5px rgba(0,0,0,.8)); }
    .header.is-open .menu-toggle { background: var(--dark); border-color: rgba(255,255,255,.28); }
    .header.is-open .primary-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
    .primary-nav a { padding: .75rem .9rem; border-radius: .8rem; font-size: .8rem; color: #c7d5df; }
    .primary-nav a::after { display: none; }
    .primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
  }

  @media (max-width: 900px) {
    html { scroll-snap-type: y proximity; }

    .material-stage { padding-block: 5.5rem 2.5rem; }
    .material .head { margin-bottom: 1.75rem; }
    .mat-grid { margin: 0; }
    .mat { flex-basis: min(78vw, 21rem); min-height: 12.5rem; }
    .material .bg img { object-position: 30% 50%; }

    .g-cards { grid-template-columns: 1fr; max-width: 28rem; }

  }
  @media (max-width: 640px) {
    .dots { display: none; }

    .primary-nav { grid-template-columns: 1fr; max-height: calc(100svh - 5.5rem); overflow-y: auto; }
  }
  @media (max-width: 900px) {
    .two { grid-template-columns: 1fr; }
    .fig-tall { aspect-ratio: 16 / 10; max-height: none; }

    .g-cards.four { grid-template-columns: 1fr 1fr; max-width: none; }

  }
  @media (max-width: 640px) {
    .g-cards.four { grid-template-columns: 1fr; }
  }
  /* 1 scroll = 1 tela (desktop): o script controla a rolagem, o encaixe nativo sai de cena */
  html.paged { scroll-snap-type: none; scroll-behavior: auto; }

  @media (max-height: 760px) {
    .material-stage { padding-block: 5rem 1.5rem; }
    .material .head { margin-bottom: 1.25rem; }
    .material .eyebrow { margin-bottom: .75rem; }
    .material .title { font-size: clamp(2.25rem, 6vh, 3.5rem); }
    .material .sub { margin-top: .75rem; }
    .mat { min-height: 11rem; }
    .mat-note { margin-top: 1rem; }
  }

  /* ---------- Tela de carregamento ---------- */
  .loader {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; justify-items: center; align-content: center; gap: 2.5rem;
    background: radial-gradient(60% 55% at 50% 12%, rgba(20, 62, 70, .7) 0%, rgba(9, 26, 32, .4) 45%, transparent 78%), #050a0d;
    transition: opacity .7s var(--ease), visibility .7s;
  }
  html:not(.loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
  html.loading, html.loading body { overflow: hidden; }
  .loader img { width: min(15rem, 52vw); height: auto; }
  .loader-bar { width: min(26rem, 70vw); height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
  .loader-bar i { display: block; height: 100%; border-radius: inherit; background: #e8eef3; transform: scaleX(0); transform-origin: left; transition: transform .35s ease-out; }
  @media (prefers-reduced-motion: reduce) { .loader, .loader-bar i { transition: none; } }

/* =====================================================================
   Cada tela cabe inteira na janela (1 gesto de rolagem = 1 tela).
   Só desktop (>= 901px).
   - O tamanho-base do texto acompanha a altura da janela (tudo em rem escala junto).
   - Espaçamentos e imagens foram compactados.
   - landing.js reduz o que ainda sobrar, tela a tela.
   ===================================================================== */
@media (min-width: 901px) {
  html { font-size: clamp(11px, 1.65svh, 16px); }

  .screen { padding-block: 5.25rem 2rem; }

  .screen.hero { padding-bottom: 4.5rem; }

  /* Cabeçalhos de seção mais enxutos */
  .head-row { margin-bottom: 1.5rem; }
  .copy-text .title { margin-bottom: 1rem; }

  .note { margin-top: 1.1rem; }

  /* Material: texto centralizado no topo, cartões logo abaixo */
  .material .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0;
    justify-items: center;
    align-items: start;
  }
  .material .head {
    grid-column: 1; grid-row: 1;
    display: block; margin: 0 auto 2.25rem; text-align: center;
  }
  .material .head .sub { margin: 1.25rem auto 0; max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; }
  .material .title { font-size: clamp(2.5rem, 4.8vw, 4.5rem); }
  .material .mat-viewport { grid-column: 1; grid-row: 2; width: 100%; }
  .material .mat-grid { width: max-content; margin: 0; gap: .75rem; }
  .material .mat-note { grid-column: 1; grid-row: 3; margin: .9rem auto 0; }
  .mat { padding: .9rem 1.05rem 1rem; }
  .mat h3 { margin-top: .6rem; }

  /* Processo, evolução, tecnologia */

  .g-card { padding: 1.35rem 1.4rem 1.5rem; }
  .g-top { margin-bottom: 1rem; }

  /* Figuras altas com teto proporcional à janela */
  .fig-tall { max-height: 60svh; }

  /* Aplicações, personalização, depoimentos, FAQ */

  .spec li { padding: 1rem 0; }
  .quote { padding: 1.5rem; gap: 1.25rem; }

}

/* Uma tela de altura fixa, sem trecho "colado" nem altura extra */
.material { padding: 0 !important; height: auto !important; min-height: 100svh !important; }
.material-stage { position: relative !important; top: auto !important; height: 100svh !important; }
@media (min-width: 901px) {
  .material-stage { padding-block: clamp(4.5rem, 10svh, 6rem) clamp(1rem, 3svh, 2.5rem); }
}
.material .wrap { width: min(1200px, 100%); }

/* Cards enfileirados numa única fileira, todos visíveis e parados */
.material .mat-viewport {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: visible;
}
.material .mat-viewport .mat-grid {
  box-sizing: border-box;
  width: 100%;
  padding-inline: clamp(1.5rem, 2.4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  transform: none;
  animation: none;
}
.material .mat-viewport .mat { margin: 0; min-width: 0; }

/* Entrada e saída sem "piscada": as animações da seção seguem .mat-in (seção visível)
   em vez de .is-active (só a faixa central da janela), que desfazia tudo na saída. */
@media (prefers-reduced-motion: no-preference) {
  .js .material.mat-in [data-a] {
    opacity: 1;
    transform: none;
    transition-duration: .9s, 1s;
    transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms));
  }
  .js .material.mat-in .line > span {
    transform: none;
    transition-duration: 1.1s;
    transition-delay: calc(var(--i, 0) * 120ms + var(--d, 0ms));
  }
  .js .material.mat-in .bg img {
    transform: translate(-4.5%, -9%) scale(1.8);
    transition-duration: 2.6s;
  }
  .js .material.mat-in .bg::after {
    opacity: 1;
    transition-duration: 1.4s;
    transition-delay: .3s;
  }
}

/* Celular: duas colunas, para os cards não ficarem estreitos demais */
@media (max-width: 900px) {
  .material-stage { padding-block: 5.5rem 2rem !important; }
  .material .mat-viewport .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   Sob medida: foto da moldura de acrílico como fundo da seção, com véu
   escuro uniforme para o texto e a lista continuarem legíveis.
   ===================================================================== */
.custom { position: relative; isolation: isolate; overflow: hidden; }
.custom-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.custom-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.custom-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 30, .86) 0%, rgba(15, 23, 30, .72) 55%, rgba(15, 23, 30, .6) 100%);
}

/* =====================================================================
   Tela de contato (#contato): logo + chamada à esquerda, blocos de
   informação à direita e linha legal no rodapé da própria tela.
   Substitui o rodapé grande. Mantém o círculo escuro que se expande
   (definido no index.html em .contact::before).
   ===================================================================== */
.contact { text-align: left; }
.contact .ct-wrap {
  position: relative; z-index: 1;
  width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter);
  flex: 1; display: flex; flex-direction: column;
}
.ct-main {
  flex: 1; display: grid; grid-template-columns: 1.4fr 1fr;
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
}

/* Esquerda: logo, título, botão */
.ct-logo { display: block; width: clamp(4rem, 7vw, 5.5rem); height: auto; margin: 0 0 1.75rem -.5rem; }
.contact .ct-title { max-width: none; font-size: clamp(2rem, 3.4vw, 2.9rem); margin-inline: 0; }
.contact .ct-title b { font-weight: 700; color: #fff; }
.contact .actions { justify-content: flex-start; margin-top: 2rem; }

/* Direita: blocos separados por linhas finas */
.ct-info { display: grid; }
.ct-block { padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.ct-block h3 {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-bottom: 1rem;
}
.ct-row { display: flex; align-items: flex-start; gap: .85rem; font-size: 1rem; line-height: 1.5; color: var(--on-dark); margin: 0; }
.ct-row + .ct-row { margin-top: .75rem; }
.ct-row svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-top: .2rem; stroke: var(--on-dark-muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-row circle[r=".6"] { fill: var(--on-dark-muted); }
a.ct-row { transition: color .3s; }
a.ct-row:hover, a.ct-row:focus-visible { color: #fff; }

/* Linha legal no pé da tela */
.ct-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .75rem; color: var(--on-dark-muted);
}

@media (min-width: 901px) {
  .screen.contact { padding-bottom: 1.5rem; }
  .ct-block { padding-block: 1.1rem; }
}

@media (max-width: 900px) {
  .ct-main { grid-template-columns: 1fr; align-content: center; gap: 1.5rem; }
  .ct-logo { width: 3.25rem; margin-bottom: 1rem; }
  .contact .ct-title { max-width: 18ch; font-size: clamp(1.6rem, 7.2vw, 2.4rem); }
  .contact .actions { margin-top: 1.25rem; }
  .ct-block { padding-block: .8rem; }
  .ct-block h3 { margin-bottom: .55rem; }
  .ct-row { font-size: .9rem; }
  .ct-row + .ct-row { margin-top: .45rem; }
  .ct-foot { font-size: .68rem; padding-top: .8rem; }
}

/* Paginação por script (só acima de 900px, ex.: tablet/notebook com toque): o gesto
   vertical é tratado por landing.js; o navegador só mantém o gesto horizontal e o pinch.
   O cabeçalho fica de fora para o menu aberto continuar rolando. No celular (até 900px)
   a rolagem é nativa, com scroll-snap (ver o fim deste arquivo). */
html.paged main,
html.paged .logo,
html.paged .menu-toggle { touch-action: pan-x pinch-zoom; }

/* =====================================================================
   Celular na vertical: cada tela cabe inteira na janela e títulos/textos ficam menores.
   Só vale até 900px em retrato; o desktop (bloco fit acima) não é afetado.
   - O tamanho-base do texto acompanha a altura da janela (tudo em rem escala junto).
   - landing.js reduz o que ainda sobrar, tela a tela (rede de segurança).
   ===================================================================== */
@media (max-width: 900px) and (orientation: portrait) {
  html { font-size: clamp(13px, 2.1svh, 16px); }

  .screen { padding-block: 4.6rem 1.25rem; }
  .screen.hero { padding-bottom: 3.75rem; }

  /* ---------- Tipografia geral ---------- */
  .screen .eyebrow { font-size: .66rem; letter-spacing: .14em; margin-bottom: .7rem; }
  .screen .title { font-size: clamp(1.45rem, 6.3vw, 2.3rem); line-height: 1.1; }
  .screen .lead { font-size: .88rem; line-height: 1.5; margin-top: .8rem; }
  .screen .sub { font-size: .82rem; line-height: 1.55; }
  .copy-text .title { margin-bottom: .6rem; }
  .copy-text p { font-size: .85rem; line-height: 1.55; }
  .copy-text p + p { margin-top: .6rem; }
  .btn { padding: .75rem 1.3rem; font-size: .82rem; }

  .note { margin-top: 1rem; font-size: .72rem; line-height: 1.5; }
  .two { gap: 1.1rem; }
  .head-row { margin-bottom: 1rem; gap: .6rem 1rem; }
  .head-row .sub { max-width: none; }

  /* ---------- 1 · Hero ---------- */
  .screen.hero .title { font-size: clamp(1.85rem, 8.6vw, 3rem); }
  .hero .actions { margin-top: 1.4rem; gap: .6rem; }
  .scroll-hint { bottom: 1rem; font-size: .6rem; }
  .scroll-hint i { height: 2rem; }

  /* ---------- Nossa história ---------- */
  .h-cards { gap: .8rem; }
  .h-card { padding: 0; border-radius: 0; }
  .h-card p { font-size: .84rem; line-height: 1.55; }
  .h-card .h-tag { margin-bottom: .5rem; font-size: .66rem; }

  /* ---------- Quem somos ---------- */
  .about .fig-tall {
    aspect-ratio: auto; height: 20svh; max-height: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  }
  .about .fig .about-logo { width: auto; height: min(6.5rem, 12svh); padding: 0; }
  .about .fig figcaption { position: static; padding: 0; background: none; font-size: .64rem; }
  .about .tag { margin-top: 1rem; font-size: .68rem; }

  /* ---------- Material (carrossel) ---------- */
  .material-stage { padding-block: 4.6rem 1.25rem !important; }
  .material .head { margin-bottom: 1rem; }
  .material .sub { margin-top: .6rem; }
  .mat { flex-basis: min(68vw, 16rem); min-height: 0; padding: .85rem .95rem .95rem; border-radius: .9rem; }
  .mat h3 { margin-top: .5rem; font-size: .95rem; }
  .mat p { margin-top: .3rem; font-size: .76rem; line-height: 1.45; }
  .mat-note { margin-top: .85rem; font-size: .62rem; line-height: 1.45; }

  /* ---------- Diferenciais (4 cartões em linhas compactas) ---------- */
  .g-cards.four { grid-template-columns: 1fr; gap: .6rem; max-width: none; }
  .g-cards.four .g-card {
    display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .85rem; align-items: center;
    padding: .8rem .95rem; border-radius: 1rem;
  }
  .g-cards.four .g-top { grid-row: 1 / span 2; margin: 0; display: block; }
  .g-cards.four .g-step { display: none; }
  .g-cards.four .g-icon { width: 2.6rem; height: 2.6rem; border-radius: .75rem; }
  .g-cards.four .g-icon svg { width: 1.3rem; height: 1.3rem; }
  .g-cards.four .g-card h3 { grid-column: 2; font-size: .92rem; margin-bottom: .15rem; }
  .g-cards.four .g-card p { grid-column: 2; font-size: .78rem; line-height: 1.5; }

  /* ---------- Sob medida ---------- */
  .spec li { padding: .7rem 0; gap: .9rem; font-size: .95rem; }
  .spec li small { font-size: .62rem; }

  /* ---------- Depoimentos ---------- */
  .quotes { gap: .6rem; }
  .quote { padding: .85rem 1rem; gap: .35rem; border-radius: 1rem; }
  .quote figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
  .quote figcaption strong { font-size: .82rem; }
  .quote .stars { margin-top: 0; font-size: .85rem; }
  .quote h3 { font-size: .92rem; }
  .quote blockquote { font-size: .78rem; line-height: 1.5; }

  /* ---------- Contato ---------- */
  .contact .title { font-size: clamp(1.75rem, 8vw, 2.6rem); }
  .contact .actions { margin-top: 1.5rem; }
}

/* Textos: versão completa no desktop (.d-only), resumida no celular (.m-only) */
.m-only { display: none; }
@media (max-width: 900px) {
  .d-only { display: none; }
  .m-only { display: inline; }
}

/* Entradas de cada tela mais curtas: o conteúdo aparece junto com o dedo */
@media (max-width: 900px) {
  :root { --stag: 45ms; --dscale: .3; --ent-o: .5s; --ent-t: .55s; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js [data-a] {
    transition-duration: var(--ent-o), var(--ent-t);
    transition-delay: calc(var(--i, 0) * var(--stag) + var(--d, 0ms) * var(--dscale));
  }
  .js .screen:not(.is-active) [data-a],
  .js .screen:not(.is-active) .line > span { transition-duration: .2s; transition-delay: 0s; }
  .js [data-a="up"]    { transform: translateY(28px); }
  .js [data-a="left"]  { transform: translateX(-36px); }
  .js [data-a="right"] { transform: translateX(36px); }
  .js .line > span { transition-duration: .6s; transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms) * var(--dscale)); }
  .js .is-active [data-a] { transform: none; }
  .js .hero .bg { transition-duration: .9s; }
  .js .hero .bg img { transition-duration: 1.6s; }
  .js .material .bg img { transition-duration: 1.4s; }

}

/* Cards de imagem: a foto é o card; título e texto curto ficam sobre ela */

/* =====================================================================
   VÍDEOS E POSTERS
   O poster (.webp) aparece primeiro; o vídeo só ganha src quando a tela está
   perto e só toca enquanto está visível (landing.js). Ao começar a tocar
   (.is-playing) ele aparece por cima do poster.
   ===================================================================== */
.photo-bg picture, .g-media picture { position: absolute; inset: 0; display: block; }
.photo-bg img, .g-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photo-bg video, .g-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.photo-bg video.is-playing, .g-media video.is-playing { opacity: 1; }

/* =====================================================================
   DEPOIMENTOS: carrossel por rolagem nativa (arraste com o dedo ou use as setas)
   ===================================================================== */
.quotes-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.quotes-viewport::-webkit-scrollbar { display: none; }
.quotes-viewport:focus-visible { outline: 2px solid var(--icon); outline-offset: 4px; border-radius: 1rem; }
.quotes .quote { scroll-snap-align: start; }

/* O traço animado do "Role" só se move enquanto o hero está na tela */
.js .screen:not(.is-active) .scroll-hint i::after { animation-play-state: paused; }

/* =====================================================================
   CELULAR (até 900px): 1 gesto de rolagem = 1 tela, com o encaixe NATIVO do
   navegador (scroll-snap) em telas de toque (pointer: coarse). É bem mais leve e
   fluido do que controlar a rolagem por JavaScript a cada movimento do dedo.
   Janelas estreitas de computador (mouse) seguem com a paginação por roda do landing.js.
   - Cada tela tem a altura da janela visível (dvh): sem sobra da tela seguinte
     aparecendo quando a barra de endereço some.
   - scroll-snap-stop: always -> um gesto nunca pula duas telas.
   - Efeitos caros (blur de fundo, mix-blend-mode, clip-path animado) ficam de fora.
   ===================================================================== */
:root { --vh: 100svh; }
@media (max-width: 900px) and (pointer: coarse) {
  html { scroll-snap-type: y mandatory; scroll-behavior: auto; overscroll-behavior-y: contain; }
  .screen { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (max-width: 900px) {
  @supports (height: 100dvh) { :root { --vh: 100dvh; } }

  .screen { min-height: var(--vh); }
  .material { min-height: var(--vh) !important; }
  .material-stage { height: var(--vh) !important; }

  /* Cabeçalho e menu sem blend nem blur */
  .header-shell { mix-blend-mode: normal; }
  .dots { display: none; }
  .primary-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 23, 30, .98); }
  .mat { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 20, 27, .58); }

  /* Toque não tem "passar o mouse": evita o card ficar levantado depois do toque */
  .g-card:hover { transform: none; box-shadow: none; }
  .g-card:hover::before { transform: scaleX(0); }
  .g-card:hover .g-icon { background: var(--tint); }
  .g-card:hover .g-icon svg { stroke: var(--icon); }
  .tech .g-card:hover .g-icon { background: rgba(255, 255, 255, .06); }
  .tech .g-card:hover .g-icon svg { stroke: #cfe0ee; }
  .btn:hover { transform: none; }

  /* Tecnologias: 4 blocos de vídeo em grade 2×2 que preenchem a tela */
  .tech > .wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .tech .head-row { flex: none; }
  .tech .g-cards.four { flex: 1; min-height: 0; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: .65rem; }
  .tech .g-cards.four .g-card { display: flex; flex-direction: column; padding: .85rem; border-radius: 1rem; }
  .tech .g-cards.four .g-top { display: flex; margin: 0; }
  .tech .g-cards.four .g-step { display: block; font-size: .7rem; }
  .tech .g-cards.four .g-icon { width: 2.4rem; height: 2.4rem; }
  .tech .g-cards.four .g-card h3 { margin: auto 0 0; font-size: 1.05rem; }
}

/* Celular: entradas sem efeitos de tela cheia (mais leve para a GPU) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .hero .bg { clip-path: none; transition: none; }
  .js .hero .bg img, .js .hero.is-active .bg img { transform: none; transition: none; }
  .js .material .bg img, .js .material.mat-in .bg img { transform: translate(-4.5%, -9%) scale(1.8); transition: none; }
  .js .material .bg::after, .js .material.mat-in .bg::after { opacity: 1; transition: none; }
  .js .contact::before, .js .contact.is-active::before { clip-path: none; transition: none; }
}
