/* =========================================================
   Tokens
   ========================================================= */
:root {
  --bg: #060609;
  --text: #edecf3;
  /* Cores sólidas para garantir contraste AA mesmo sobre o vidro mais claro */
  --muted: #c3c1cf;  /* texto secundário: descrições */
  --faint: #a3a1b1;  /* rótulos e legendas */

  --glass-1: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.02);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-hi: rgba(255, 255, 255, 0.2);

  --accent: #f3d250;
  --accent-ink: #15130a;
  --violet: #7a5cff;
  --indigo: #4a4cff;

  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --f-sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -0.03em;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
html.lb-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

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

/* Placeholder visível: some quando o texto real entra */
.ph {
  outline: 1px dashed rgba(243, 210, 80, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
  background: rgba(243, 210, 80, 0.06);
}

/* =========================================================
   Luz ambiente
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb-1 {
  width: 70vmax; height: 70vmax;
  left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.28) 0%, rgba(122, 92, 255, 0.08) 38%, transparent 68%);
  animation: drift1 38s ease-in-out infinite alternate;
}
.orb-2 {
  width: 60vmax; height: 60vmax;
  right: -22vmax; top: 20vh;
  background: radial-gradient(circle, rgba(74, 76, 255, 0.24) 0%, rgba(74, 76, 255, 0.07) 40%, transparent 68%);
  animation: drift2 46s ease-in-out infinite alternate;
}
.orb-3 {
  width: 55vmax; height: 55vmax;
  left: 15vw; bottom: -35vmax;
  background: radial-gradient(circle, rgba(150, 90, 255, 0.16) 0%, rgba(150, 90, 255, 0.05) 40%, transparent 68%);
  animation: drift3 52s ease-in-out infinite alternate;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate(10vw, 12vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(0.94); } }
@keyframes drift3 { to { transform: translate(-8vw, -10vh) scale(1.1); } }

/* =========================================================
   Vidro
   ========================================================= */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 60px -32px rgba(0, 0, 0, 0.7);
}
/* reflexo no topo */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

/* brilho que segue o mouse */
.interactive,
.tile.is-ready,
.metric {
  --mx: 50%;
  --my: 0%;
}
.interactive,
.tile.is-ready,
.metric { background-image:
  radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 60%),
  linear-gradient(180deg, var(--glass-1), var(--glass-2)); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-scrolled .header-bar {
  background: linear-gradient(180deg, rgba(20, 18, 32, 0.6), rgba(14, 13, 22, 0.5));
  border-color: var(--stroke);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.brand {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--text); }
.nav .nav-cta {
  margin-left: 8px;
  color: var(--text);
  border: 1px solid var(--stroke-hi);
  background: rgba(255, 255, 255, 0.04);
}
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 120px;
}
.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 14px;
}
.hero-name {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em; /* nome grande: um pouco mais fechado que o token */
  max-width: 10ch;
}
.hero-pos {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}
.hero-prova {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 15px;
  color: var(--faint);
}
.hero-cards {
  margin-top: clamp(48px, 8vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-cards[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.hero-cards[data-count="1"] { grid-template-columns: 1fr; max-width: 420px; }

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 172px;
  padding: 28px;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.hero-card:hover,
.hero-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(160, 140, 255, 0.18),
    0 36px 70px -34px rgba(90, 70, 230, 0.6);
}
.hc-title {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: var(--display-track);
}
.hc-desc { margin-top: 10px; min-height: 3em; font-size: 15px; line-height: 1.5; color: var(--muted); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
}
.scroll-line {
  position: relative;
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.scroll-line span {
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot { to { top: 110%; } }

/* =========================================================
   Seções
   ========================================================= */
.section { position: relative; padding: clamp(96px, 13vw, 160px) 0 0; }
.section-contato { padding-bottom: clamp(96px, 12vw, 140px); }

.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-title {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(42px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: var(--display-track);
}
.sec-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}
.sec-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.meta-main { font-size: 18px; font-weight: 500; color: var(--text); }
.meta-sub { font-size: 15px; color: var(--faint); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start; /* empilhados: cada card com a altura do próprio conteúdo */
}
.case-grid .panel-text { max-width: 68ch; }
.panel { padding: clamp(24px, 3vw, 36px); }
.panel-label, .sub-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 16px;
}
.sub-label {
  margin: clamp(48px, 6vw, 72px) 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sub-label::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.panel-text { color: var(--muted); font-size: 16px; }
.panel-text + .panel-text { margin-top: 14px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps li { padding: 0; }
.steps h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border-radius: var(--radius-sm);
  min-height: 170px;
}
.metric-val {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(243, 210, 80, 0.18);
  word-break: break-word;
}
.metric-val .ph { font-family: var(--f-sans); font-size: 0.42em; letter-spacing: 0; }
.metric-label { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--text); }
.metric-det { font-size: 14px; color: var(--faint); margin-top: 2px; }

/* =========================================================
   Grid justificado (respeita 9:16 e 16:9 na mesma linha)
   ========================================================= */
.jgrid {
  --row: 340px;
  --gap: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.jgrid-posts { --row: 440px; }
.tile-wrap {
  flex-grow: var(--ar);
  flex-shrink: 1;
  flex-basis: calc(var(--ar) * var(--row));
  min-width: 0;
  max-width: calc(var(--ar) * var(--row) * 1.2); /* a última linha não cresce muito além da altura das outras */
}
.tile-wrap[hidden] { display: none; }
/* largura calculada pelo JS (layoutGrid em main.js) */
.jgrid.is-js .tile-wrap { flex: none; max-width: none; }
.tile {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: default;
}
.tile.is-ready { cursor: pointer; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: saturate(0.92);
}
.tile.is-ready:hover img { transform: scale(1.035); filter: saturate(1.05); }
.tile::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%, transparent 55%, rgba(6, 6, 9, 0.75) 100%);
}
.tile-ph {
  position: absolute;
  inset: 10px;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed rgba(243, 210, 80, 0.35);
  border-radius: 10px;
  color: rgba(243, 210, 80, 0.8);
  font-size: 13px;
}
.tile-ph small { color: var(--faint); }
.tile-btn {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.tile-btn svg { width: 20px; height: 20px; margin-left: 2px; }
.tile.is-ready:hover .tile-btn {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tile-cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.3;
}
.tile-cap em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--stroke-hi); }
.chip.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
#videoGrid { transition: opacity 0.18s ease, transform 0.18s ease; }
#videoGrid.is-switching { opacity: 0; transform: translateY(6px); }

/* =========================================================
   Sobre
   ========================================================= */
.sobre {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
}
.sobre-foto {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}
.sobre-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(243, 210, 80, 0.85);
}
.foto-ph small { color: var(--faint); }
.sobre-foto.has-img .foto-ph { display: none; }
.sobre-txt { padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) 0; }
.sobre-txt .sec-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 22px; }

/* =========================================================
   Contato
   ========================================================= */
.cta {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.cta::before {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(122, 92, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 32%);
}
.cta .eyebrow { justify-content: center; }
.cta-title {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: var(--display-track);
  max-width: 14ch;
  margin: 0 auto;
}
.cta .sec-sub { margin: 20px auto 0; max-width: 42ch; }
.cta-btns {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 40px -12px rgba(243, 210, 80, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(243, 210, 80, 0.7); }
.btn-glass {
  border: 1px solid var(--stroke-hi);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.cta-note { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 28px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--faint);
}
.footer a:hover { color: var(--text); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  display: none;
  place-items: center;
}
.lightbox[open] { display: grid; animation: lbIn 0.35s var(--ease); }
.lightbox::backdrop {
  background: rgba(4, 4, 8, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.98); } }
.lb-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.lb-frame iframe, .lb-frame img { display: block; width: 100%; height: 100%; border: 0; }
.lb-frame img { object-fit: contain; }
.lb-vertical { aspect-ratio: 9 / 16; height: min(86vh, calc(92vw * 16 / 9)); }
.lb-horizontal { aspect-ratio: 16 / 9; width: min(92vw, 1280px, calc(82vh * 16 / 9)); }
.lb-quadrado { aspect-ratio: 1; width: min(92vw, 86vh); }
.lb-close {
  position: fixed;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  border: 1px solid var(--stroke-hi);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: background 0.25s, color 0.25s;
}
.lb-close:hover { background: var(--accent); color: var(--accent-ink); }

/* =========================================================
   Entrada
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.hero-card.reveal.is-in { transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), opacity 0.9s var(--ease) var(--d, 0s); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 18px 0; border-top: 1px solid var(--stroke); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .steps li:last-child { padding-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .jgrid { --row: 280px; }
  .jgrid-posts { --row: 320px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-bar { padding: 0 6px 0 20px; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 20, 36, 0.92), rgba(14, 13, 22, 0.9));
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--stroke);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 17px; padding: 14px 16px; border-radius: 14px; color: var(--text); }
  .nav a.is-active { background: rgba(255, 255, 255, 0.06); }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .header.menu-open .header-bar {
    background: linear-gradient(180deg, rgba(20, 18, 32, 0.7), rgba(14, 13, 22, 0.6));
    border-color: var(--stroke);
  }

  .hero-cards { grid-template-columns: 1fr; max-width: none; }
  .hero-cards[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 0; padding: 22px 22px 24px; }
  .hc-title { font-size: 32px; }

  .sobre { grid-template-columns: 1fr; }
  .sobre-foto { max-width: 420px; }
  .sobre-txt { padding: 4px 8px 12px; }
}

@media (max-width: 560px) {
  .hero-cards[data-count="2"] { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .hero { padding-top: 112px; padding-bottom: 64px; align-items: flex-start; }
  .hc-title { font-size: 28px; }
  .hc-desc { min-height: 0; }
  .jgrid { --row: 280px; --gap: 10px; }
  .jgrid-posts { --row: 280px; }
  /* no celular: 2 colunas; vertical ocupa 1, horizontal ocupa a linha toda */
  .jgrid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
  .tile-wrap { max-width: none; }
  .tile-wrap.is-h { grid-column: 1 / -1; }
  .metrics { gap: 10px; }
  .metric { padding: 20px 18px 18px; min-height: 140px; }
  .metric-val { font-size: 34px; }
  .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
}

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