/* Ubiratã Brunelli — identidade digital
   Conceito: estúdio noturno. Preto profundo, grafite, prata cromada; azul elétrico só como luz de recorte.
   Layout: mobile primeiro, faixas de largura total com conteúdo numa coluna de leitura de até 1180px. */
:root {
  --bg: #050607;
  --bg-2: #0b0d10;
  --panel: #101318;
  --panel-2: #161a20;
  --line: rgba(196, 206, 222, .12);
  --line-strong: rgba(196, 206, 222, .24);
  --fg: #eef1f5;
  --muted: #9ba3ae;
  --faint: #6c737d;
  --silver: #c9ced6;
  --accent: #3b8cff;
  --accent-glow: rgba(59, 140, 255, .28);
  --chrome: linear-gradient(176deg, #fbfcfd 0%, #d2d7de 30%, #7f8691 52%, #e3e7ec 70%, #a3a9b2 100%);
  --chrome-edge: linear-gradient(135deg, rgba(255,255,255,.55), rgba(140,148,160,.18) 40%, rgba(255,255,255,.4) 60%, rgba(120,128,140,.15));

  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-label: "Syncopate", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.6rem + 3.4vw, 3.75rem);
  --step-4: clamp(3rem, 2rem + 6vw, 6.25rem);

  --radius: 2px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.band { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.band--alt { background: var(--bg-2); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.02; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-label); font-weight: 700; font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--silver);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chrome-text {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lede { color: var(--muted); font-size: var(--step-1); max-width: 58ch; line-height: 1.6; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 760px; }
.section-head p { color: var(--muted); max-width: 60ch; }
.note { font-size: var(--step--1); color: var(--faint); }

/* ---------- Botões ---------- */
.btn {
  --b: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-family: var(--f-label); font-weight: 700; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--b); background: transparent; color: var(--fg);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--silver); }
.btn--chrome {
  border: 0; color: #0a0c0f;
  background: var(--chrome);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -12px rgba(59,140,255,.45);
  overflow: hidden;
}
.btn--chrome::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transition: transform .9s var(--ease);
}
.btn--chrome:hover::after { transform: translateX(120%); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 9.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--silver);
  font-family: var(--f-label); font-weight: 700; font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  padding-block: 8px; border-bottom: 1px solid var(--line-strong);
}
.link-arrow:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(5, 6, 7, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--f-label); font-weight: 700; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.nav-desktop { display: none; gap: 26px; align-items: center; }
.nav-desktop a {
  font-family: var(--f-label); font-weight: 700; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding-block: 6px; position: relative;
}
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-desktop a:hover, .nav-desktop a[aria-current="true"] { color: var(--fg); }
.nav-desktop a.btn { color: #0a0c0f; padding: 0 16px; }
.nav-desktop a.btn::after { display: none; }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong);
  background: rgba(5,6,7,.4); border-radius: var(--radius); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1px; background: var(--fg); position: relative; transition: transform .3s var(--ease), background .3s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(5,6,7,.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
}
.mobile-menu ol { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a.mm-link {
  display: flex; justify-content: space-between; align-items: baseline; padding-block: 14px; text-decoration: none;
  font-family: var(--f-display); font-size: 1.85rem; line-height: 1.1;
}
.mobile-menu a.mm-link small { font-family: var(--f-label); font-size: 9px; letter-spacing: .3em; color: var(--faint); }
.mobile-menu .mm-foot { display: grid; gap: 14px; }
.mobile-menu .mm-foot p { color: var(--muted); font-size: var(--step--1); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) li { animation: mm-in .5s var(--ease) both; }
  .mobile-menu:not([hidden]) li:nth-child(2) { animation-delay: .03s; } .mobile-menu:not([hidden]) li:nth-child(3) { animation-delay: .06s; }
  .mobile-menu:not([hidden]) li:nth-child(4) { animation-delay: .09s; } .mobile-menu:not([hidden]) li:nth-child(5) { animation-delay: .12s; }
  .mobile-menu:not([hidden]) li:nth-child(6) { animation-delay: .15s; } .mobile-menu:not([hidden]) li:nth-child(7) { animation-delay: .18s; }
  .mobile-menu:not([hidden]) li:nth-child(8) { animation-delay: .21s; }
}
@keyframes mm-in { from { transform: translateY(10px); opacity: .2; } to { transform: none; opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.hero-media { position: relative; aspect-ratio: 4 / 5; max-height: 74svh; width: 100%; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 52%, #000 100%),
    radial-gradient(120% 70% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.hero-content { position: relative; z-index: 2; margin-top: -26%; padding-bottom: clamp(56px, 9vw, 96px); display: grid; gap: 22px; }
.hero-logo { width: 104px; height: 104px; filter: drop-shadow(0 0 22px rgba(59,140,255,.25)); }
.hero h1 { font-size: var(--step-4); line-height: .92; letter-spacing: -.02em; }
.hero h1 .line { display: block; }
.hero .tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); color: var(--silver); line-height: 1.2; }
.hero .lede { font-size: var(--step-0); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-meta { display: grid; gap: 0; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.hero-meta div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: baseline; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); min-width: 0; }
.hero-meta dt { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; line-height: 1.05; white-space: nowrap; }
.hero-meta dd { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (min-width: 640px) {
  .hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .hero-meta div { display: block; border-top: 0; padding: 16px 12px 16px 0; }
  .hero-meta div + div { padding-left: 18px; border-left: 1px solid var(--line); }
  .hero-meta dt { font-size: 1.75rem; }
  .hero-meta dd { margin-top: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-in 2.2s var(--ease) both; }
  .hero h1 .chrome-text { background-size: 100% 220%; animation: sheen 2.4s .3s var(--ease) both; }
}
@keyframes hero-in { from { transform: scale(1.08); filter: brightness(.35) saturate(.8); } to { transform: none; filter: none; } }
@keyframes sheen { from { background-position: 0 100%; } to { background-position: 0 0; } }

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: 48px; }
.about-copy { display: grid; gap: 20px; }
.about-copy p { color: #cfd4db; max-width: 62ch; }
.pull {
  margin: 8px 0 0; padding-left: 22px; border-left: 1px solid var(--accent);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.2; color: var(--fg);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.stats div { background: var(--bg); padding: 20px 14px; min-width: 0; }
.stats dt { font-family: var(--f-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1; }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.specialties { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specialties li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.specialties strong { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.specialties span { font-size: 12px; color: var(--faint); text-align: right; }

/* ---------- Portfólio ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); transition: background .25s, box-shadow .25s; }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--silver); background: rgba(255,255,255,.04); }
.chip[aria-pressed="true"]::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chip .count { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.work { margin: 0; min-width: 0; }
.work.is-feature { grid-column: span 2; }
.work-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #15191f 0%, #07080a 100%);
  border: 1px solid var(--line); width: 100%; padding: 0; cursor: default; display: block;
}
.work.is-feature .work-frame { aspect-ratio: 1 / 1; }
@media (max-width: 639px) {
  .work.is-feature ~ .work:last-child:nth-child(even) { grid-column: span 2; }
  .work.is-feature ~ .work:last-child:nth-child(even) .work-frame { aspect-ratio: 1 / 1; }
  .gallery:not(:has(.is-feature)) .work:not(:first-child):last-child:nth-child(odd) { grid-column: span 2; }
  .gallery:not(:has(.is-feature)) .work:not(:first-child):last-child:nth-child(odd) .work-frame { aspect-ratio: 1 / 1; }
}
button.work-frame { cursor: zoom-in; }
.work-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
button.work-frame:hover img { transform: scale(1.04); }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--faint); }
.placeholder::before, .placeholder::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--line-strong); border-style: solid; }
.placeholder::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.placeholder::after { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.placeholder small { display: block; font-family: var(--f-label); font-weight: 700; font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.placeholder span { font-size: 12px; }
.work figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; font-size: 12px; color: var(--muted); }
.work.is-feature .work-frame img { object-position: 50% 42%; }
.work figcaption b { font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work figcaption span { white-space: nowrap; color: var(--faint); }
.gallery-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-top: 32px; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.94); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox .lb-top { display: flex; justify-content: flex-end; }
.lightbox img { max-height: 100%; max-width: 100%; margin: auto; object-fit: contain; }
.lightbox .lb-cap { text-align: center; color: var(--muted); font-size: 13px; padding-top: 12px; }

/* ---------- Simulador ---------- */
.sim { display: grid; gap: 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 4px; gap: 4px; }
.tab {
  min-height: 46px; border: 0; background: transparent; border-radius: 1px; cursor: pointer; color: var(--muted);
  font-family: var(--f-label); font-weight: 700; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
}
.tab[aria-selected="true"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sim-stage { display: grid; gap: 14px; min-width: 0; width: 100%; max-width: 560px; }
.canvas-wrap {
  position: relative; width: 100%; aspect-ratio: 4 / 5; background: #07080a; border: 1px solid var(--line);
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
.canvas-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.canvas-wrap canvas:active { cursor: grabbing; }
.canvas-wrap .corner-tag {
  position: absolute; left: 12px; top: 12px; font-family: var(--f-label); font-weight: 700; font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--silver); background: rgba(5,6,7,.7); padding: 6px 9px; border: 1px solid var(--line); pointer-events: none;
}
.empty-photo {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(100% 80% at 50% 30%, #12161c, #060708);
}
.empty-photo div { display: grid; gap: 14px; justify-items: center; max-width: 280px; }
.empty-photo p { color: var(--muted); font-size: 14px; }
.sim-hint { font-size: 12.5px; color: var(--faint); }
.sim-panel { display: grid; gap: 22px; align-content: start; min-width: 0; }
.field-label { font-family: var(--f-label); font-weight: 700; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--silver); display: block; margin-bottom: 10px; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; }
.uploads { display: grid; gap: 10px; }
.upload {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer;
  background: rgba(255,255,255,.015); transition: border-color .25s, background .25s;
}
.upload:hover, .upload:focus-within { border-color: var(--silver); background: rgba(255,255,255,.03); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload .n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; color: var(--silver); }
.upload b { display: block; font-weight: 600; font-size: 14px; }
.upload small { display: block; color: var(--faint); font-size: 12px; }
.upload.is-done { border-style: solid; border-color: rgba(59,140,255,.5); }
.upload.is-done .n { border-color: var(--accent); color: var(--fg); background: rgba(59,140,255,.15); }
.sliders { display: grid; gap: 16px; }
.slider { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); font-size: 12px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--silver), var(--line-strong)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--chrome); border: 1px solid #fff; box-shadow: 0 0 0 4px rgba(59,140,255,.18); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #d7dbe1; border: 1px solid #fff; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-actions .btn { flex: 1 1 140px; }
.sim-result { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line-strong); background: var(--panel); }
.sim-result img { width: 100%; border: 1px solid var(--line); }
.sim-result .row { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-result .row .btn { flex: 1 1 160px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--faint); }
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--silver); }

/* ---------- Jogos ---------- */
.games { display: grid; gap: 24px; }
.games-tabs { max-width: 520px; }
.quiz { max-width: 760px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); background: radial-gradient(120% 120% at 100% 0%, rgba(59,140,255,.06), transparent 50%), var(--panel); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-top .field-label { margin: 0; }
.quiz-back { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.quiz-back:hover { color: var(--fg); }
.quiz-bar { height: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--silver), var(--accent)); box-shadow: 0 0 10px var(--accent); transition: width .5s var(--ease); }
.quiz-q { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); margin: 26px 0 22px; outline: none; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; line-height: 1.35;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.quiz-opt .k { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--f-label); font-weight: 700; font-size: 9px; color: var(--silver); }
.quiz-opt:hover { border-color: var(--silver); }
.quiz-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(59,140,255,.08); }
.quiz-opt[aria-pressed="true"] .k { border-color: var(--accent); background: var(--accent); color: #fff; }
.quiz-result { display: grid; gap: 20px; }
.quiz-r-name { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); margin-top: 8px; outline: none; line-height: 1; }
.quiz-r-line { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--silver); margin-top: 8px; }
.quiz-r-text { color: #cfd4db; max-width: 60ch; }
.quiz-meter { display: grid; gap: 8px; }
.quiz-meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.quiz-meter-row b { color: var(--fg); font-variant-numeric: tabular-nums; }
.quiz-meter .quiz-bar { margin-top: 0; height: 3px; }
.quiz-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quiz-result .sim-actions .btn { flex: 1 1 220px; }
.quiz-thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }

.hand { display: grid; gap: 24px; }
.hand-stage { display: grid; gap: 12px; min-width: 0; max-width: 560px; width: 100%; }
.hand-canvas { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #cfa888; }
.hand-canvas canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.hand-result {
  padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: center;
  background: var(--panel); border: 1px solid rgba(59,140,255,.45);
}
.hand-result > .field-label, .hand-result > .sim-actions, .hand-result > .note { grid-column: 1 / -1; margin: 0; }
.hand-result .sim-actions .btn { flex: 1 1 200px; }
.hand-verdict { display: grid; gap: 4px; min-width: 0; }
.hand-result b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.hand-result p { color: var(--muted); font-size: 14px; }
.hand-result .sim-actions { margin-top: 10px; }
.hand-score { font-family: var(--f-display); font-size: clamp(3rem, 2.4rem + 3vw, 4.4rem); line-height: .95; font-variant-numeric: tabular-nums; }
.hand-panel { display: grid; gap: 22px; align-content: start; min-width: 0; }
.hand-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hand-stats div { background: var(--bg); padding: 16px; }
.hand-stats dt { font-size: 12px; color: var(--muted); }
.hand-stats dd { margin: 6px 0 0; font-family: var(--f-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .hand { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
}

/* ---------- Orçamento ---------- */
.quote-grid { display: grid; gap: 40px; }
.form { display: grid; gap: 18px; }
.form .row-2 { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > .legend { font-family: var(--f-label); font-weight: 700; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--silver); }
.field .opt { color: var(--faint); letter-spacing: .1em; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,140,255,.18); }
.field.has-error .input, .field.has-error .textarea { border-color: #e2645c; }
.field .err { font-size: 12.5px; color: #f08a83; min-height: 0; }
.refs-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.refs-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-strong); }
.quote-aside { display: grid; gap: 22px; align-content: start; }
.quote-aside ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.quote-aside li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.quote-aside li b { color: var(--fg); font-weight: 600; display: block; }
.quote-aside .num { font-family: var(--f-display); font-size: 1.4rem; color: var(--silver); line-height: 1; }
.review-box { display: grid; gap: 16px; padding: 22px; border: 1px solid rgba(59,140,255,.45); background: linear-gradient(180deg, rgba(59,140,255,.06), transparent 60%), var(--panel); }
.review-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--f-body); font-size: 14px; color: #d6dbe2; background: var(--bg); border: 1px solid var(--line); padding: 16px; max-height: 320px; overflow: auto; }
.review-box .row { display: flex; flex-wrap: wrap; gap: 10px; }
.review-box .row .btn { flex: 1 1 180px; }

/* ---------- Experiência ---------- */
.exp-grid { display: grid; gap: 28px; }
.exp-photo { margin: 0; min-width: 0; }
.exp-photo picture { display: block; position: relative; overflow: hidden; border: 1px solid var(--line); }
.exp-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.exp-photo picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(5,6,7,.55)); }
.exp-photo figcaption { padding-top: 10px; font-size: 12px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--bg); padding: 28px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.steps .num { font-family: var(--f-display); font-size: 3rem; line-height: .9; }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--muted); font-size: 15px; }
.pillars { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.pillars div { display: flex; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.pillars b { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; min-width: 0; flex: 1; }
.pillars span { color: var(--muted); font-size: 14px; flex: 1.4; }

/* ---------- Avaliações ---------- */
.reviews { display: grid; gap: 14px; }
.review { align-content: space-between; }
.review .stars { color: #e9edf2; text-shadow: 0 0 10px rgba(59,140,255,.35); }
.review.is-feature { background: radial-gradient(120% 140% at 0% 0%, rgba(59,140,255,.09), transparent 55%), var(--panel); border-color: var(--line-strong); }
.review.is-feature blockquote { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.22; }
.review { padding: 24px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; }
.review .stars { color: var(--silver); letter-spacing: .2em; font-size: 14px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.35; }
.review footer { font-size: 13px; color: var(--muted); }
.reviews-empty { border: 1px solid var(--line); padding: clamp(24px, 5vw, 44px); display: grid; gap: 18px; background: radial-gradient(120% 120% at 0% 0%, rgba(59,140,255,.07), transparent 50%), var(--panel); }
.reviews-empty h3 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.reviews-empty p { color: var(--muted); max-width: 56ch; }
.reviews-empty .row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Localização ---------- */
.loc-grid { display: grid; gap: 28px; }
.map-frame::before { content: "Carregando mapa…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.95); }
.map-static { display: block; }
.map-static img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(.92) contrast(.9) brightness(.95); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 7px rgba(59,140,255,.22), 0 0 26px var(--accent); }
.map-credit { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: var(--muted); background: rgba(5,6,7,.75); padding: 4px 8px; border: 1px solid var(--line); }
.map-static:hover .map-credit { color: var(--fg); }
.address-card { display: grid; gap: 20px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); background: var(--panel); align-content: start; }
.address-card address { font-style: normal; font-family: var(--f-display); font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.12; }
.address-card .sub { color: var(--muted); font-size: 14px; }
.address-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.address-card .row .btn { flex: 1 1 150px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 12px; }
.contact-card {
  position: relative; display: grid; gap: 10px; padding: 26px 22px; text-decoration: none; border: 1px solid var(--line); background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease); min-width: 0;
}
.contact-card:hover { border-color: var(--silver); }
.contact-card .k { font-family: var(--f-label); font-weight: 700; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.contact-card .k svg { width: 16px; height: 16px; color: var(--silver); }
.contact-card .v { font-family: var(--f-display); font-size: clamp(1.7rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.contact-card .d { font-size: 13.5px; color: var(--muted); }
.contact-card .go { position: absolute; right: 20px; top: 24px; width: 18px; height: 18px; color: var(--faint); transition: color .3s, transform .3s var(--ease); }
.contact-card:hover .go { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(96px + env(safe-area-inset-bottom, 0px)); background: #000; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 84px; height: 84px; }
.footer-brand p { font-size: 13px; color: var(--muted); }
.footer-brand strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--fg); line-height: 1.1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); /* acima do selo da Netlify */
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 16px; border-radius: 999px; text-decoration: none;
  background: rgba(14,17,21,.92); border: 1px solid var(--line-strong); color: var(--fg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 24px -6px var(--accent-glow);
  transition: transform .35s var(--ease), opacity .35s;
}
.wa-float svg { width: 22px; height: 22px; color: #fff; }
.wa-float span { font-family: var(--f-label); font-weight: 700; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.wa-float::before { content: ""; position: absolute; left: 12px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.wa-float.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: calc(146px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; background: var(--panel-2); border: 1px solid var(--line-strong); padding: 12px 18px; font-size: 13px; max-width: calc(100% - 32px); }

/* Revelação suave ao rolar: parte de um estado visível */
.reveal { transition: transform .9s var(--ease); }
.js .reveal:not(.in) { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { transform: none; } }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .work.is-feature { grid-column: span 2; grid-row: span 2; }
  .work.is-feature .work-frame { aspect-ratio: auto; height: calc(100% - 50px); }
  .work figcaption { flex-direction: row; justify-content: space-between; gap: 10px; }
  /* fecha a última linha da grade: foto sozinha vira faixa larga; dupla, a última ocupa duas colunas */
  .work:not(:first-child):last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .work:not(:first-child):last-child:nth-child(3n+1) .work-frame { aspect-ratio: 2 / 1; }
  .work:last-child:nth-child(3n+2) { grid-column: span 2; }
  .work:last-child:nth-child(3n+2) .work-frame { aspect-ratio: 1.63; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form .row-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-card:last-child { grid-column: span 2; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .review.is-feature { grid-column: span 2; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .hero { min-height: min(900px, 100svh); display: grid; }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: 58%; max-height: none; aspect-ratio: auto; }
  .hero-media img { object-position: 50% 20%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 20%, rgba(0,0,0,0) 48%),
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, #000 100%);
  }
  .hero-content { margin-top: 0; align-self: center; padding-block: calc(var(--header-h) + 64px) 72px; max-width: 1180px; }
  .hero-content > * { max-width: 600px; }
  .hero-logo { width: 128px; height: 128px; }
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
  .sim { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
  .sim .tabs { grid-column: 1 / -1; max-width: 520px; }
  .quote-grid { grid-template-columns: 1.3fr .7fr; gap: 64px; }
  .exp-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: stretch; }
  .exp-grid .steps { grid-template-columns: 1fr 1fr; align-self: stretch; }
  .exp-grid .steps li { padding: 32px 28px; }
  .exp-photo { display: flex; flex-direction: column; }
  .exp-photo picture { flex: 1; }
  .exp-photo img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .loc-grid { grid-template-columns: 1.2fr .8fr; }
  .loc-grid.no-map { grid-template-columns: 1fr; max-width: 760px; }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid .contact-card:last-child { grid-column: auto; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
  .pillars div { flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
}
@media (min-width: 1080px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}
