/* ==========================================================================
   JM Stands — estilos globais
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #1d252b;
  --paper: #f4f5f3;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #ecefed;
  --muted: #667178;
  --line: #d7dcda;
  --accent: #8b653a;
  --accent-hover: #714e2d;
  --accent-soft: #eee6da;
  --accent-contrast: #ffffff;
  --dark: #11191e;
  --strong: #11191e;
  --strong-surface: #182228;
  --strong-text: #f5f7f5;
  --strong-muted: #a9b1b4;
  --strong-line: #334047;
  --danger: #b94a3d;
  --danger-soft: #f8e7e3;
  --shadow: 0 18px 55px rgba(24, 34, 40, .12);
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --display: 'Space Grotesk', sans-serif;
  --body: 'Manrope', sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2ef;
  --paper: #0e1418;
  --white: #141c21;
  --surface: #141c21;
  --surface-alt: #1a242a;
  --muted: #9aa5aa;
  --line: #2a353b;
  --accent: #c4a06a;
  --accent-hover: #d5b47e;
  --accent-soft: #28251f;
  --accent-contrast: #10171b;
  --dark: #0b1013;
  --strong: #0b1013;
  --strong-surface: #121a1f;
  --strong-text: #f2f5f3;
  --strong-muted: #9ba5aa;
  --strong-line: #29343a;
  --danger: #ef8c7e;
  --danger-soft: #321d1c;
  --shadow: 0 22px 65px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: min(100%, var(--max)); margin: auto;
  /* respeita o notch do iPhone na horizontal (viewport-fit=cover) */
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.055em; line-height: .92; }
.muted { color: var(--muted); }
.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #111; padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header ------------------------------------------------------------------ */
header { position: fixed; z-index: 50; inset: 0 0 auto; color: #fff; transition: .3s; }
header.scrolled { background: rgba(17, 17, 17, .94); backdrop-filter: blur(14px); }
header .inner { height: 82px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brandmark { font: 700 27px/1 var(--display); letter-spacing: -.08em; }
.brandmark i { color: var(--accent); font-style: normal; }
.brand small {
  margin-left: 12px; padding-left: 12px; border-left: 1px solid #ffffff44;
  color: #bbb; font-size: 10px; line-height: 1.25; text-transform: uppercase; letter-spacing: .1em;
}
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.menu { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* Language selector remains available at every screen size. */
.language-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 12px; }
.language-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.language-control select { min-height: 44px; max-width: 124px; padding: 8px; border: 1px solid #ffffff66; border-radius: 3px; background: #111; color: #fff; cursor: pointer; font-size: 12px; }
.notfound .language-control { justify-content: center; margin-top: 24px; }
@media (min-width: 901px) and (max-width: 1200px) {
  header .inner { gap: 16px; }
  .nav { gap: 14px; }
  #header .inner > .btn { display: none; }
  #header .menu { display: block; }
}
@media (max-width: 560px) {
  #header .inner, .legal-top .inner { gap: 12px; }
  .legal-top .brand small { display: none; }
  .legal-top .back { max-width: 110px; }
}
@media (max-width: 400px) {
  #header .brand small { display: none; }
}

/* Botões ------------------------------------------------------------------ */
.btn {
  min-height: 48px; padding: 0 22px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s;
}
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { transform: translateY(-2px); }
.btn-outline { border-color: currentColor; background: transparent; }

/* Hero -------------------------------------------------------------------- */
.hero { height: min(960px, 100svh); min-height: 720px; background: #151515; color: #fff; position: relative; overflow: hidden; }
.hero-media, .hero-media > div, .hero-media > img { position: absolute; inset: 0; }
.hero-media img, .placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.22) 65%), linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%);
}
.hero .content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 7vw, 92px);
}
.hero h1 { font-size: clamp(56px, 9vw, 132px); max-width: 10ch; margin: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; align-items: end; }
.hero-copy { max-width: 610px; color: #d6d6d3; font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; gap: 10px; justify-content: flex-end; }
.scroll {
  position: absolute; z-index: 3; right: var(--pad); bottom: 28px;
  font-size: 10px; letter-spacing: .15em; color: #aaa; writing-mode: vertical-rl;
}

/* Placeholder de imagem (some quando a foto real é configurada) ----------- */
.placeholder {
  background: radial-gradient(circle at 75% 30%, #52524c 0, transparent 26%), linear-gradient(125deg, #111 12%, #292925 52%, #111 100%);
  position: relative; overflow: hidden;
}
.placeholder:before {
  content: ''; position: absolute; width: 56%; height: 54%; right: 6%; bottom: 9%;
  border: 1px solid #ffffff30; background: linear-gradient(135deg, #ffffff16, #0000);
  box-shadow: -60px -30px 0 #e9ff3f18;
}
.placeholder:after {
  content: 'INSIRA AQUI UMA FOTO REAL DO STAND'; position: absolute; right: 9%; bottom: 13%;
  font: 600 11px var(--body); letter-spacing: .18em; color: #ffffff77;
}

/* Faixa de confiança ------------------------------------------------------ */
.trust { background: var(--accent); padding: 18px 0; }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; }
.trust span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.trust b { font-family: var(--display); font-size: 18px; }

/* Seções ------------------------------------------------------------------ */
section { padding: clamp(80px, 10vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; margin-bottom: clamp(44px, 6vw, 86px); }
.section-head h2 { font-size: clamp(48px, 7vw, 102px); margin: 0; max-width: 9ch; }
.section-head .intro { font-size: clamp(18px, 1.8vw, 24px); max-width: 680px; align-self: end; margin: 0; color: #4d4a45; }

/* Projetos ---------------------------------------------------------------- */
.projects { background: #0e0e0e; color: #fff; }
.projects .section-head .intro { color: #aaa; }
.project { display: grid; grid-template-columns: 1.45fr .55fr; border-top: 1px solid #333; padding: 34px 0 70px; gap: 34px; }
.project-media { height: clamp(400px, 55vw, 760px); overflow: hidden; background: #222; }
.project-media img, .project-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.project:hover .project-media img, .project:hover .project-media .placeholder { transform: scale(1.015); }
.project-info { display: flex; flex-direction: column; justify-content: space-between; }
.project-no { color: var(--accent); font: 600 13px var(--display); }
.project-info h3 { font: 600 clamp(30px, 4vw, 58px)/.98 var(--display); letter-spacing: -.045em; margin: 20px 0; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid #333; padding-top: 18px; color: #aaa; font-size: 12px; }
.meta b { display: block; color: #fff; margin-top: 3px; font-size: 14px; }
.project-link {
  margin-top: 30px; display: inline-flex; text-decoration: none; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid #777; padding-bottom: 6px; align-self: flex-start;
}
.project-link:hover { color: var(--accent); border-color: var(--accent); }

/* Números ----------------------------------------------------------------- */
.numbers { background: var(--paper); }
.number-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.number { padding: 42px 20px 42px 0; border-right: 1px solid var(--line); }
.number:not(:first-child) { padding-left: 28px; }
.number:last-child { border: 0; }
.number strong { font: 600 clamp(42px, 6vw, 84px)/1 var(--display); letter-spacing: -.06em; display: block; }
.number span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Serviços ---------------------------------------------------------------- */
.services { background: #fff; }
.service { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); padding: 34px 0; }
.service .num { font: 600 14px var(--display); }
.service h3 { font: 600 clamp(28px, 3vw, 44px)/1 var(--display); letter-spacing: -.04em; margin: 0; }
.service p { max-width: 580px; margin: 0; color: var(--muted); }

/* Processo ---------------------------------------------------------------- */
.process { background: var(--accent); }
.process .section-head .intro { color: #333; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #111; border-bottom: 1px solid #111; }
.step { padding: 30px 24px 38px 0; border-right: 1px solid #111; }
.step:not(:first-child) { padding-left: 24px; }
.step:last-child { border: 0; }
.step b { font: 600 48px/1 var(--display); display: block; margin-bottom: 48px; }
.step h3 { font: 600 20px/1.1 var(--display); margin: 0 0 12px; }
.step p { font-size: 13px; margin: 0; color: #393933; }

/* Estrutura --------------------------------------------------------------- */
.structure { background: #151515; color: #fff; }
.structure-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; }
.structure-main { height: 720px; overflow: hidden; }
.structure-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.structure-side > div { overflow: hidden; }
.structure img, .structure .placeholder { width: 100%; height: 100%; object-fit: cover; }
.structure-copy { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.structure-copy h2 { font-size: clamp(46px, 6vw, 86px); margin: 0; }
.structure-copy p { font-size: 18px; color: #aaa; max-width: 580px; margin: 0; }

/* Clientes ---------------------------------------------------------------- */
.clients { background: #fff; }
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.client {
  height: 130px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; font: 600 18px var(--display); color: #aaa; text-align: center; padding: 15px;
}
.client:nth-child(5n) { border-right: 0; }
.client img { max-height: 60px; max-width: 80%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.client:hover img { filter: none; opacity: 1; }

/* FAQ --------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-grid h2 { font-size: clamp(48px, 6vw, 82px); margin: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 42px 24px 0; font: 600 19px var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; position: absolute; right: 4px; font-size: 25px; }
.faq details[open] summary:after { content: '−'; }
.faq details p { color: var(--muted); margin: 0; padding: 0 50px 26px 0; }

/* CTA --------------------------------------------------------------------- */
.cta { background: #111; color: #fff; padding: clamp(90px, 12vw, 170px) 0; }
.cta h2 { font-size: clamp(58px, 9vw, 128px); margin: 0; max-width: 11ch; }
.cta h2 em { color: var(--accent); font-style: normal; }
.cta-row { margin-top: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-row p { color: #aaa; font-size: 18px; max-width: 540px; }
.cta .btn { min-height: 62px; padding-inline: 34px; font-size: 15px; }

/* Footer ------------------------------------------------------------------ */
footer { background: #111; color: #aaa; border-top: 1px solid #333; padding: 50px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; text-decoration: none; margin: 7px 0; }
.footer-grid .brandmark { color: #fff; }
.foot-end { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover, .footer-grid a:hover { color: var(--accent); }
/* Fundador */
.founder { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #2c2c2c; max-width: 580px; }
.founder-mark {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--accent); color: #111;
  display: grid; place-items: center; font: 700 18px var(--display); letter-spacing: -.06em;
}
.founder b { display: block; color: #fff; font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.founder div span { color: #999; font-size: 14px; }

/* Dados oficiais da empresa (confiança) */
.company { display: grid; gap: 4px; margin-top: 22px; font-size: 13px; }
.company b { color: #fff; font-weight: 600; }
.verified-badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  padding: 5px 12px 5px 6px; border: 1px solid #3a3a2a; border-radius: 999px; background: #1b1c12;
  color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.verified-badge i, .q-trust i {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #111;
  display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; flex: none;
}
.footer-grid .address { line-height: 1.5; }
.footer-grid .address u { text-underline-offset: 3px; font-size: 12px; }
.q-trust { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border: 1px solid #2c2c2c; background: #151515; font-size: 12px; color: #999; }
.q-trust i { margin-top: 1px; }

.social { display: flex; gap: 10px; margin-top: 24px; }
.social:empty { display: none; }
.footer-grid .social a {
  width: 44px; height: 44px; margin: 0; border: 1px solid #333; border-radius: 50%;
  display: grid; place-items: center; color: #fff; transition: .2s;
}
.footer-grid .social a:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wa {
  position: fixed; right: calc(22px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 800;
  box-shadow: 0 12px 35px #0004;
}
.wa svg { width: 30px; height: 30px; fill: currentColor; }

/* Modal de orçamento (assistente em etapas) -------------------------------- */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; background: #111; color: #fff; z-index: 100; display: none; overflow: auto; overscroll-behavior: contain; }
.modal.open { display: block; animation: q-in .35s ease; }
@keyframes q-in { from { opacity: 0; } }
.q-top { position: sticky; top: 0; z-index: 3; background: rgba(17, 17, 17, .96); backdrop-filter: blur(12px); padding-top: env(safe-area-inset-top); }
.modal-top { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.modal-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.modal-close:hover { color: var(--accent); }
.q-progress { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.q-progress button {
  background: none; border: 0; color: #666; cursor: pointer; padding: 8px 12px;
  display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600;
}
.q-progress b { font: 600 12px var(--display); }
.q-progress .done button { color: #aaa; }
.q-progress .on button { color: #fff; }
.q-progress .on b { color: var(--accent); }
.q-progress button:hover { color: #fff; }
.q-progress button:disabled { cursor: default; }
.q-progress li:not(.done) button:disabled:hover { color: #666; }
.q-bar { height: 2px; background: #262626; }
.q-bar i { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.form-shell { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vh, 72px) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.q-panel { padding: 0; animation: q-step .4s ease; }
.q-measure input { -moz-appearance: textfield; }
.q-measure input::-webkit-inner-spin-button, .q-measure input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@keyframes q-step { from { opacity: 0; transform: translateY(14px); } }
.q-panel h3 { font-size: clamp(40px, 6.5vw, 74px); margin: 14px 0 14px; outline: 0; }
.q-panel .eyebrow { color: #888; }
.q-lead { color: #aaa; font-size: clamp(16px, 1.6vw, 18px); max-width: 640px; margin: 0 0 8px; }
.q-group { margin-top: 38px; }
.q-group-first { margin-top: 28px; }
.q-label { margin: 0 0 14px; font: 600 18px var(--display); letter-spacing: -.01em; }
.q-label small { display: block; margin-top: 4px; font: 400 13px var(--body); color: #888; letter-spacing: 0; }
.q-ref { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 8px 8px 14px; border: 1px solid #333; font-size: 13px; color: #aaa; }
.q-ref b { color: #fff; }
.q-ref button { background: none; border: 0; color: #888; font-size: 18px; cursor: pointer; width: 28px; height: 28px; }
.q-path-hint {
  margin: 14px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: #1b1c12;
  color: #bbb; font-size: 14px; line-height: 1.5;
}
.q-path-hint b { color: #fff; }

/* Chips (escolha rápida) */
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { position: relative; cursor: pointer; }
.q-chip input, .q-card input { position: absolute; opacity: 0; pointer-events: none; }
.q-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid #3a3a3a; border-radius: 999px; font-size: 14px; color: #ddd; transition: .18s;
}
.q-chip:hover span { border-color: #777; color: #fff; }
.q-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 700; }
.q-chip input[type="checkbox"]:checked + span:before { content: '✓'; margin-right: 8px; }
.q-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cartões (escolhas com descrição) */
.q-cards { display: grid; gap: 10px; }
.q-cards.two { grid-template-columns: repeat(2, 1fr); }
.q-cards.three { grid-template-columns: repeat(3, 1fr); }
.q-cards.types { grid-template-columns: repeat(6, 1fr); }
.q-card {
  position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid #333; background: #161616; transition: .2s;
}
.q-card:hover { border-color: #666; }
.q-card strong { font: 600 17px/1.15 var(--display); }
.q-card small { color: #888; font-size: 13px; line-height: 1.4; }
.q-card:has(input:checked) { border-color: var(--accent); background: #1b1c12; box-shadow: inset 0 0 0 1px var(--accent); }
.q-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.q-card:has(input:checked):after {
  content: '✓'; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #111; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.q-type { align-items: center; text-align: center; padding: 18px 10px; }
.q-type svg { width: 56px; height: 56px; margin-bottom: 6px; }
.q-type svg rect { fill: #2b2b2b; stroke: #777; stroke-width: 1; }
.q-type svg rect.wall { fill: #4a4a4a; stroke: none; }
.q-type svg .line { fill: none; stroke: #999; stroke-width: 2; stroke-linecap: round; }
.q-type:has(input:checked) svg rect:not(.wall) { fill: var(--accent); stroke: var(--accent); }
.q-type:has(input:checked) svg .line { stroke: var(--accent); }
.q-channel svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; margin-bottom: 8px; }
.q-channel:has(input:checked) svg { stroke: var(--accent); }

/* Metragem por medidas */
.q-measure { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.q-measure .field { width: 140px; }
.q-x { font: 600 24px var(--display); color: #666; padding-bottom: 14px; }
.q-area { font: 600 clamp(30px, 4vw, 42px)/1 var(--display); letter-spacing: -.04em; color: var(--accent); padding-bottom: 8px; margin-left: 8px; }
#qOutro { margin-top: 14px; }

/* Anexos */
.q-drop {
  position: relative; margin-top: 30px; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: clamp(34px, 6vw, 56px) 20px; border: 1.5px dashed #444; background: #151515; cursor: pointer; transition: .2s;
}
.q-drop:hover, .q-drop.over { border-color: var(--accent); background: #1b1c12; }
.q-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.q-drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.q-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.q-drop strong { font: 600 18px var(--display); }
.q-drop u { text-decoration-color: var(--accent); text-underline-offset: 4px; }
.q-drop small { color: #888; }
.q-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.q-files:empty { display: none; }
.q-file { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #2c2c2c; background: #161616; min-width: 0; animation: q-step .3s ease; }
.q-thumb { position: relative; width: 52px; height: 52px; flex: none; background: #232323; display: grid; place-items: center; overflow: hidden; }
.q-thumb img, .q-thumb video { width: 100%; height: 100%; object-fit: cover; }
.q-thumb span { font: 700 11px var(--display); color: var(--accent); letter-spacing: .05em; }
.q-play { position: absolute; font-style: normal; font-size: 12px; color: #fff; text-shadow: 0 1px 4px #000; }
.q-meta { min-width: 0; flex: 1; display: grid; }
.q-meta b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-meta small { color: #777; font-size: 12px; }
.q-file button { background: none; border: 0; color: #777; font-size: 20px; width: 36px; height: 36px; cursor: pointer; flex: none; }
.q-file button:hover { color: #fff; }
.q-hint { color: #999; font-size: 13px; margin: 12px 0 0; }
.q-hint.warn { color: #ffb4a2; }
.q-hint a { color: #fff; }
#f-links { margin-top: 0; }
.q-panel > .field.full { margin-top: 30px; }

/* Revisão, erros e navegação */
.q-review { margin-top: 34px; border-top: 1px solid #2c2c2c; border-bottom: 1px solid #2c2c2c; }
.q-review summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font: 600 16px var(--display); position: relative; }
.q-review summary::-webkit-details-marker { display: none; }
.q-review summary:after { content: '+'; position: absolute; right: 4px; font-size: 22px; line-height: 1; }
.q-review[open] summary:after { content: '−'; }
.q-review h4 { margin: 8px 0 6px; font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.q-review dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 14px; }
.q-review dt { color: #888; }
.q-review dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.q-error { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #7a3a2e; background: #2a1511; color: #ffcfc4; font-size: 14px; }
.q-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.q-upload { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.q-upload-track { height: 8px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; }
.q-upload-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.q-upload p { margin: 9px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.q-fallback { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.q-fallback p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.q-fallback .btn { min-height: 44px; margin: 4px 6px 0 0; padding: 10px 14px; }
.q-nav {
  position: sticky; bottom: 0; z-index: 2; margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #111 28%);
}
.q-step-error { flex: 1 0 100%; margin: 0; padding: 11px 14px; border: 1px solid #a9503e; background: #2a1511; color: #ffd3c9; font-size: 14px; }
.q-invalid.field input, .q-invalid.field select, .q-invalid.field textarea, .q-invalid.q-drop { border-color: #e96f56; box-shadow: 0 0 0 1px #e96f56; }
.q-invalid.q-group > .q-label { color: #ffb3a3; }
.q-invalid.consent { color: #ffb3a3; }
.q-nav .btn { min-height: 54px; padding-inline: 26px; font-size: 14px; }
.q-nav .btn-outline { color: #fff; border-color: #444; }
.q-nav .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.q-nav .btn-accent { min-width: 220px; }

/* Tela final */
.q-done { padding-bottom: 12vh; }
.q-protocol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin-top: 24px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.q-protocol span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.q-protocol strong { min-width: 0; font: 600 clamp(18px, 3vw, 23px)/1.2 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.q-protocol button { border: 0; padding: 7px 0 7px 12px; background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; }
.q-check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #111; display: grid; place-items: center; font-size: 28px; font-weight: 800; animation: q-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes q-pop { from { transform: scale(.3); opacity: 0; } }
.q-done-files { margin-top: 26px; padding: 20px; border: 1px solid #3a3a2a; background: #1b1c12; }
.q-done-files p { margin: 0 0 4px; }
.q-done-files b { font: 600 20px var(--display); }
.q-done-files b span { font: 400 15px var(--body); color: #ddd; }
.q-done-files .btn { margin-top: 12px; }
.q-done-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.q-done-actions .btn-outline { color: #fff; border-color: #444; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #aaa; }
.field label span { color: #777; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: #1a1a1a; color: #fff; border: 1px solid #3a3a3a;
  min-height: 56px; padding: 13px 15px; border-radius: 0; font-size: 16px; transition: border-color .2s;
}
.field select { appearance: none; cursor: pointer; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 25px, calc(100% - 14px) 25px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #666; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
.field input:disabled { cursor: not-allowed; opacity: .58; }
.field-status { min-height: 18px; color: #777; font-size: 12px; line-height: 1.4; }
.q-date-control { position: relative; }
.q-date-control .q-date-text { padding-right: 58px; }
.q-calendar-button {
  position: absolute; z-index: 1; top: 1px; right: 1px; width: 54px; height: 54px; display: grid; place-items: center;
  border: 0; border-left: 1px solid #333; background: #1a1a1a; color: var(--accent); cursor: pointer;
}
.q-calendar-button:hover { background: #222; }
.q-calendar-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.q-calendar-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-date-picker {
  position: absolute; top: 1px; right: 1px; width: 54px !important; min-height: 54px !important; padding: 0 !important;
  opacity: 0; pointer-events: none;
}
.field textarea { height: 120px; resize: vertical; }
.note { font-size: 11px; color: #777; margin-top: 12px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #aaa; cursor: pointer; margin-top: 24px; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent a { color: #fff; }

/* Aviso de cookies -------------------------------------------------------- */
.cookie {
  position: fixed; inset: auto 0 0; z-index: 90; background: #1a1a1a; color: #ddd;
  border-top: 1px solid #333; box-shadow: 0 -12px 40px #0006;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 14px;
  max-height: 100svh; overflow: auto;
}
.cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.cookie p { margin: 0; max-width: 760px; }
.cookie a { color: #fff; }
.cookie-prefs { grid-column: 1 / -1; display: grid; gap: 12px; border-top: 1px solid #333; padding-top: 16px; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie-prefs input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.cookie-prefs b { color: #fff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { min-height: 44px; padding: 0 18px; }
.cookie .btn-outline { color: #fff; }
body.cookie-open .wa { display: none; }

/* Política de privacidade ------------------------------------------------- */
.legal-top { background: #111; color: #fff; padding-top: env(safe-area-inset-top); }
.legal-top .inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-top .brand { margin: 0; }
.legal-top .back { font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-top .back:hover { color: var(--accent); }
.legal { padding: clamp(50px, 8vw, 100px) 0; background: #fff; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(44px, 7vw, 84px); margin: 12px 0 10px; }
.legal h2 { font: 600 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.03em; margin: 52px 0 14px; }
.legal p, .legal li { color: #3f3c37; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.legal th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal .table-scroll { overflow-x: auto; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .btn { margin-top: 8px; }

/* Animação de entrada ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Link na bio (links.html) ------------------------------------------------ */
body.bio {
  min-height: 100svh; background: var(--paper); color: var(--ink);
  background-image: radial-gradient(circle at 50% -15%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%);
}
.bio-shell {
  position: relative; width: min(100%, 520px); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(58px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}
.bio-head { position: static; display: grid; justify-items: center; text-align: center; }
.bio-avatar { width: 82px; height: 82px; display: grid; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 24px; background: var(--strong); box-shadow: var(--shadow); overflow: hidden; }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: invert(1); mix-blend-mode: screen; }
.bio-head h1 { margin: 18px 0 4px; font: 600 27px/1.15 var(--display); letter-spacing: -.04em; }
.bio-head > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.bio-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.bio-status i { width: 7px; height: 7px; border-radius: 50%; background: #36a66a; box-shadow: 0 0 0 4px color-mix(in srgb, #36a66a 14%, transparent); }
.bio-share { position: absolute; z-index: 2; top: max(18px, env(safe-area-inset-top)); left: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 6%, transparent); }
.bio-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bio-share:hover, .bio-share.copied { border-color: var(--accent); color: var(--accent); }
.bio-links { display: grid; gap: 10px; margin-top: 30px; }
.bio-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 13px;
  min-height: 72px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; animation: q-step .42s ease backwards;
}
.bio-link:nth-child(2) { animation-delay: .04s; }
.bio-link:nth-child(3) { animation-delay: .08s; }
.bio-link:nth-child(4) { animation-delay: .12s; }
.bio-link-copy { display: grid; gap: 3px; min-width: 0; }
.bio-link b { font: 600 16px/1.2 var(--display); letter-spacing: -.02em; }
.bio-link small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bio-link-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-alt); color: var(--accent); }
.bio-link-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bio-link-arrow { color: var(--muted); font-size: 19px; transition: transform .2s ease, color .2s ease; }
.bio-link:hover { border-color: color-mix(in srgb, var(--accent) 68%, var(--line)); transform: translateY(-2px); box-shadow: 0 13px 34px color-mix(in srgb, var(--ink) 8%, transparent); }
.bio-link:hover .bio-link-arrow { color: var(--accent); transform: translateX(2px); }
.bio-link-primary { min-height: 78px; border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); box-shadow: 0 15px 36px color-mix(in srgb, var(--accent) 22%, transparent); }
.bio-link-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.bio-link-primary .bio-link-icon { background: color-mix(in srgb, var(--accent-contrast) 14%, transparent); color: var(--accent-contrast); }
.bio-link-primary small, .bio-link-primary .bio-link-arrow { color: color-mix(in srgb, var(--accent-contrast) 75%, transparent); }
.bio-social { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.bio-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); transition: .2s ease; }
.bio-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.bio-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bio-foot { margin-top: auto; padding: 34px 0 0; border: 0; background: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 11px; text-align: center; }
.bio-foot a { color: inherit; text-decoration: none; }
.bio-foot a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .bio-shell { padding: calc(54px + env(safe-area-inset-top)) 15px calc(20px + env(safe-area-inset-bottom)); }
  .bio-share { left: 15px; }
  .bio-avatar { width: 76px; height: 76px; border-radius: 22px; }
  .bio-links { margin-top: 26px; }
  .bio-link { min-height: 70px; padding: 11px 13px; }
}

/* Página 404 -------------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; place-items: center; background: #111; color: #fff; text-align: center; padding: var(--pad); }
.notfound h1 { font-size: clamp(80px, 18vw, 220px); margin: 0; }
.notfound h1 em { color: var(--accent); font-style: normal; }
.notfound p { color: #aaa; margin: 10px 0 34px; }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav, header .inner > .btn { display: none; }
  .menu { display: block; }
  .hero { min-height: 760px; }
  .hero-bottom, .section-head, .project, .structure-copy, .faq-grid { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .section-head { gap: 24px; }
  .project { gap: 24px; }
  .project-media { height: 62vw; min-height: 360px; }
  .number-grid { grid-template-columns: 1fr 1fr; }
  .number:nth-child(2) { border-right: 0; }
  .service { grid-template-columns: 55px 1fr; }
  .service p { grid-column: 2; }
  .process-grid { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) {
    padding: 24px 0; border-right: 0; border-bottom: 1px solid #111;
    display: grid; grid-template-columns: 70px 1fr; gap: 10px;
  }
  .step b { margin: 0; }
  .step p { grid-column: 2; }
  .structure-grid { grid-template-columns: 1fr; }
  .structure-main { height: 62vw; min-height: 390px; }
  .structure-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: 260px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client:nth-child(5n) { border-right: 1px solid var(--line); }
  .client:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cookie-inner { grid-template-columns: 1fr; }
  .q-cards.types { grid-template-columns: repeat(3, 1fr); }
  .q-progress span { display: none; }
}

@media (max-width: 560px) {
  header .inner { height: 70px; }
  .brand small { display: none; }
  .hero h1 { font-size: 54px; }
  .hero-bottom { margin-top: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .scroll { display: none; }
  .trust .wrap { justify-content: flex-start; }
  .trust span:nth-of-type(n+3) { display: none; }
  .number-grid { grid-template-columns: 1fr; }
  .number, .number:not(:first-child) { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service { grid-template-columns: 38px 1fr; }
  .process-grid { display: block; }
  .structure-main { height: 420px; }
  .structure-side { height: 190px; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .foot-end { display: grid; gap: 8px; }
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1 1 auto; }
  .cookie-actions .btn-accent { flex-basis: 100%; order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-grid .btn { grid-column: auto; }
  .modal-top { height: 64px; gap: 8px; }
  .q-progress { gap: 0; }
  .q-progress button { padding: 8px 7px; }
  .q-cards.three, .q-cards.two { grid-template-columns: 1fr; }
  .q-cards.types { grid-template-columns: repeat(2, 1fr); }
  .q-card { padding: 16px; }
  .q-chip span { padding: 0 14px; font-size: 13px; }
  .q-measure .field { width: calc(50% - 24px); }
  .q-area { width: 100%; margin: 4px 0 0; }
  .q-files { grid-template-columns: 1fr; }
  .q-review dl { grid-template-columns: 1fr; gap: 2px; }
  .q-review dd { margin-bottom: 8px; }
  .q-nav .btn-outline { padding-inline: 18px; }
  .q-nav .btn-accent { min-width: 0; flex: 1; }
  .q-done-actions .btn { flex: 1 1 100%; }
}

/* Legibility and conversion refinements */
html { scroll-padding-top: 90px; }
.display { line-height: 1.04; letter-spacing: -.05em; hyphens: none; overflow-wrap: normal; }
.hero h1 { max-width: 12ch; font-size: clamp(48px, 7.3vw, 108px); text-wrap: balance; }
.hero-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.hero-actions { align-items: center; flex-wrap: wrap; }
.hero-copy { line-height: 1.6; }
.hero:not(:has(.hero-media img)) .hero-media { background: radial-gradient(circle at 82% 34%, #3b3b32, transparent 35%), linear-gradient(135deg, #171715 25%, #303029 100%); }
.hero:not(:has(.hero-media img)) .hero-media .placeholder { display: none; }
.hero:not(:has(.hero-media img)) .hero-media::after { content: 'JM.'; position: absolute; right: 5%; top: 18%; font: 700 clamp(180px, 30vw, 500px)/1 var(--display); letter-spacing: -.12em; color: #ffffff0c; }
.placeholder::after { content: none; }
.section-head { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: clamp(30px, 5vw, 80px); }
.section-head h2 { max-width: 16ch; font-size: clamp(44px, 5.8vw, 78px); text-wrap: balance; }
.section-head .intro { line-height: 1.55; }
.structure-copy h2 { font-size: clamp(44px, 5.5vw, 76px); text-wrap: balance; }
.faq-grid h2 { text-wrap: balance; }
.cta h2 { max-width: 14ch; font-size: clamp(50px, 7vw, 100px); text-wrap: balance; }
.trust .wrap { flex-wrap: wrap; justify-content: center; gap: 12px 28px; overflow: visible; text-align: center; }
.trust span { white-space: normal; }
.project-info, .project-media, .service > *, .section-head > * { min-width: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.solution { border: 1px solid #484840; background: linear-gradient(145deg, #1d1d1b, #101010); padding: clamp(28px, 3vw, 44px); min-height: 340px; display: flex; flex-direction: column; }
.solution span { color: var(--accent); font: 700 12px var(--display); letter-spacing: .08em; }
.solution h3 { font: 600 clamp(28px, 3vw, 42px)/1.1 var(--display); letter-spacing: -.035em; margin: auto 0 20px; text-wrap: balance; }
.solution p { color: #bcbcb8; margin: 0; max-width: 35ch; }
.section-action { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 36px; border-top: 1px solid #444; padding-top: 28px; }
.section-action p { margin: 0; color: #ccc; font-size: 18px; }
.structure.no-photos .structure-grid { display: none; }
.structure.no-photos .structure-copy { margin-top: 0; padding-top: 34px; border-top: 1px solid #444; }
.structure.no-photos .structure-copy p { align-self: end; line-height: 1.65; }
.btn, .project-link, .nav a { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 1100px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions { justify-content: flex-start; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section-head, .structure-copy { grid-template-columns: 1fr; }
  .section-head h2 { max-width: 18ch; }
}
@media (max-width: 650px) {
  .hero { height: auto; min-height: 0; }
  .hero .content { height: auto; min-height: 0; padding-top: 145px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(43px, 11vw, 64px); max-width: 12ch; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-head h2, .structure-copy h2, .faq-grid h2 { font-size: clamp(39px, 9vw, 58px); }
  .section-head .intro { font-size: 17px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution { min-height: 255px; }
  .trust .wrap { gap: 8px 16px; }
  .trust span { font-size: 10px; }
  .trust span:nth-of-type(n+3) { display: inline; }
  .cta h2 { font-size: clamp(43px, 10vw, 66px); }
  .footer-grid a { overflow-wrap: anywhere; }
}

/* Image-led portfolio, shown only for documented JM work */
.portfolio-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: #111; }
.portfolio-preview button { position: relative; display: block; border: 0; padding: 0; height: clamp(180px, 24vw, 350px); overflow: hidden; cursor: pointer; background: #222; color: #fff; text-align: left; }
.portfolio-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-preview button:hover img { transform: scale(1.045); }
.portfolio-preview button::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #000b); pointer-events: none; }
.portfolio-preview span { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 18px; font: 700 15px var(--display); display: flex; justify-content: space-between; gap: 12px; }
.portfolio-preview i { color: var(--accent); font-style: normal; }
.concept-label { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; width: max-content; padding: 8px 10px; border: 1px solid #ffffff52; border-radius: 999px; background: #111c; color: #fff; backdrop-filter: blur(10px); font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.portfolio-preview .concept-label { right: auto; bottom: auto; font: 700 10px/1 var(--body); }
#projectList:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.portfolio-card { min-width: 0; border-bottom: 1px solid #444; padding-bottom: 28px; }
.portfolio-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.portfolio-image { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #202020; color: #fff; cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 10; text-align: left; }
.portfolio-card:first-child:nth-last-child(odd) .portfolio-image { aspect-ratio: 19 / 9; }
.portfolio-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-image:hover img { transform: scale(1.035); }
.portfolio-count { position: absolute; right: 16px; bottom: 16px; background: var(--accent); color: #111; font: 700 12px var(--display); padding: 11px 13px; }
.portfolio-caption { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 23px; }
.portfolio-client { display: inline-block; color: var(--accent); text-transform: uppercase; font: 700 12px var(--display); letter-spacing: .08em; }
.portfolio-caption h3 { font: 600 clamp(25px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.035em; margin: 8px 0; }
.portfolio-caption p { color: #aaa; margin: 0; font-size: 13px; }
.portfolio-caption .project-link { margin: 0; }
.gallery-open { overflow: hidden; }
.gallery-lightbox { position: fixed; z-index: 120; inset: 0; background: #0c0c0cfa; color: #fff; padding: max(72px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) 24px; }
.gallery-close { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); width: 46px; height: 46px; border: 1px solid #777; border-radius: 50%; background: #111; color: #fff; font-size: 29px; cursor: pointer; }
.gallery-stage { height: min(76svh, 900px); display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 16px; align-items: center; }
.gallery-stage img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gallery-stage button { border: 1px solid #777; background: #111; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.gallery-stage button:hover, .gallery-close:hover { color: var(--accent); border-color: var(--accent); }
.gallery-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; max-width: 1100px; margin: 14px auto 0; }
.gallery-footer p { margin: 0; font-size: 14px; }
.gallery-footer span { color: var(--accent); font: 700 13px var(--display); flex: none; }
@media (max-width: 700px) {
  .portfolio-preview { grid-template-columns: 1fr 1fr; }
  .portfolio-preview button { height: 180px; }
  .portfolio-preview button:last-child:nth-child(odd) { display: none; }
  .portfolio-preview span { left: 12px; right: 12px; bottom: 12px; font-size: 12px; }
  .portfolio-preview .concept-label, .concept-label { top: 10px; left: 10px; right: auto; bottom: auto; padding: 7px 9px; font-size: 9px; }
  #projectList:not([hidden]) { grid-template-columns: 1fr; }
  .portfolio-card:first-child:nth-last-child(odd) { grid-column: auto; }
  .portfolio-card:first-child:nth-last-child(odd) .portfolio-image { aspect-ratio: 16 / 10; }
  .gallery-lightbox { padding: 72px 12px 22px; }
  .gallery-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 5px; height: 70svh; }
  .gallery-stage button { width: 36px; height: 36px; font-size: 19px; }
  .gallery-footer { padding-inline: 10px; }
}

/* Logo and flexible hero spacing */
.brand-logo { display: block; width: 92px; height: 58px; flex: none; overflow: hidden; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: invert(1); mix-blend-mode: screen; }
#header { background: linear-gradient(#111e, #1110); }
#header.scrolled { background: rgba(17, 17, 17, .96); }
.hero { height: auto; min-height: min(960px, 100svh); }
.hero .content { height: auto; min-height: min(960px, 100svh); justify-content: flex-start; padding-top: clamp(150px, 16svh, 190px); padding-bottom: clamp(60px, 7vw, 100px); }
.hero:not(:has(.hero-media img)) .hero-media::after { content: none; }
.hero h1 { font-size: clamp(46px, 6.5vw, 102px); }
.hero-bottom { margin-top: clamp(24px, 3vw, 42px); }
.hero-copy { margin: 0; }
.legal-top { position: relative; inset: auto; }

/* Softer edges without losing the architectural feel */
.btn, .language-control select { border-radius: 8px; }
.solution, .q-card, .q-file, .q-ref, .q-done-files { border-radius: 14px; }
.q-chip span, .field input, .field select, .field textarea, .q-drop { border-radius: 9px; }
.portfolio-image, .portfolio-preview button, .structure img, .structure .placeholder { border-radius: 12px; }
.portfolio-count, .gallery-stage button, .gallery-close { border-radius: 8px; }
.cookie { border-radius: 14px 14px 0 0; }

@media (max-width: 1200px) {
  #header .inner { gap: clamp(12px, 2vw, 22px); }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .hero .content { min-height: min(900px, 100svh); padding-top: 146px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(52px, 8vw, 76px); max-width: 13ch; }
}
@media (max-width: 650px) {
  .brand-logo { width: 78px; height: 50px; }
  .hero { min-height: 0; }
  .hero .content { min-height: 0; padding-top: calc(115px + env(safe-area-inset-top)); padding-bottom: 66px; }
  .hero h1 { font-size: clamp(42px, 10.6vw, 63px); max-width: 12ch; }
  .hero-actions { align-items: stretch; }
}

/* ========================================================================== 
   Sistema de cor — premium editorial, com temas claro e escuro
   ========================================================================== */
body, .services, .clients, .legal, .modal, .cookie, .bio, .notfound,
.q-card, .q-chip span, .field input, .field select, .field textarea,
.q-calendar-button, .bio-link, .theme-toggle { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }

/* Controle de tema */
.theme-toggle {
  width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--strong-line); border-radius: 50%;
  background: color-mix(in srgb, var(--strong-surface) 88%, transparent); color: var(--strong-text); cursor: pointer;
  display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle .theme-icon { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s ease, transform .25s ease; }
:root[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(-35deg) scale(.65); }
:root[data-theme="light"] .theme-icon-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(35deg) scale(.65); }
.theme-toggle-floating { position: fixed; z-index: 10; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.modal .theme-toggle { background: transparent; }

/* Acento champagne usado com contenção */
.btn-accent { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-accent:hover { background: var(--accent-hover); }
.skip, .founder-mark, .verified-badge i, .q-trust i, .q-check, .portfolio-count { color: var(--accent-contrast); }
.trust { background: var(--accent-soft); color: var(--ink); border-block: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); }
.process { background: var(--accent-soft); color: var(--ink); }
.process .section-head .intro, .step p { color: var(--muted); }
.process-grid { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.step { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.placeholder:before { box-shadow: -60px -30px 0 color-mix(in srgb, var(--accent) 12%, transparent); }
.verified-badge { border-color: color-mix(in srgb, var(--accent) 42%, var(--strong-line)); background: color-mix(in srgb, var(--accent) 12%, var(--strong-surface)); }

/* Superfícies editoriais */
.section-head .intro { color: var(--muted); }
.services, .clients, .legal { background: var(--surface); }
.numbers, .faq { background: var(--paper); }
.projects, .structure, .cta, footer { background: var(--strong); color: var(--strong-text); }
.projects .section-head .intro, .structure-copy p, .cta-row p, footer, .portfolio-caption p { color: var(--strong-muted); }
.project, .meta, .foot-end, .founder, .section-action, .structure.no-photos .structure-copy, .portfolio-card { border-color: var(--strong-line); }
.meta b, .footer-grid h4, .footer-grid .brandmark, .founder b, .company b { color: var(--strong-text); }
.solution { border-color: var(--strong-line); background: linear-gradient(145deg, var(--strong-surface), var(--strong)); }
.solution p, .section-action p { color: var(--strong-muted); }
.client { color: var(--muted); }

/* Formulário nos dois temas */
.modal { background: var(--paper); color: var(--ink); }
.q-top { background: color-mix(in srgb, var(--strong) 96%, transparent); color: var(--strong-text); border-bottom: 1px solid var(--strong-line); }
.q-progress .on button, .q-progress button:hover, .modal-close { color: var(--strong-text); }
.q-progress .done button { color: var(--strong-muted); }
.q-progress button, .q-progress li:not(.done) button:disabled:hover { color: #6f7a80; }
.q-bar { background: var(--strong-line); }
.q-panel .eyebrow, .q-lead, .q-label small, .q-ref, .q-card small, .q-drop small, .q-review dt, .field label, .consent, .q-hint, .field-status { color: var(--muted); }
.q-ref, .q-card, .q-file, .q-drop, .q-trust, .q-done-files { border-color: var(--line); background: var(--surface); }
.q-ref b, .q-path-hint b, .q-hint a, .consent a { color: var(--ink); }
.q-path-hint, .q-card:has(input:checked), .q-drop:hover, .q-drop.over, .q-done-files { background: var(--accent-soft); }
.q-chip span { border-color: var(--line); color: var(--ink); background: var(--surface); }
.q-chip:hover span { border-color: var(--accent); color: var(--ink); }
.q-chip input:checked + span { color: var(--accent-contrast); }
.q-card:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); }
.q-type svg rect { fill: var(--surface-alt); stroke: var(--muted); }
.q-type svg rect.wall { fill: color-mix(in srgb, var(--muted) 45%, var(--surface-alt)); }
.q-type svg .line { stroke: var(--muted); }
.q-thumb { background: var(--surface-alt); }
.q-review { border-color: var(--line); }
.q-nav { background: linear-gradient(transparent, var(--paper) 28%); }
.q-nav .btn-outline, .q-done-actions .btn-outline { color: var(--ink); border-color: var(--line); }
.q-error, .q-step-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.q-invalid.field input, .q-invalid.field select, .q-invalid.field textarea, .q-invalid.q-drop { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.q-invalid.q-group > .q-label, .q-invalid.consent { color: var(--danger); }
.field label span, .q-meta small, .q-file button, .note { color: var(--muted); }
.field input, .field select, .field textarea, .q-calendar-button { background-color: var(--surface); color: var(--ink); border-color: var(--line); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); }
.q-calendar-button { border-left-color: var(--line); }
.q-calendar-button:hover { background: var(--accent-soft); }

/* Avisos e páginas auxiliares */
.cookie { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.cookie a, .cookie-prefs b { color: var(--ink); }
.cookie-prefs { border-color: var(--line); }
.cookie .btn-outline { color: var(--ink); border-color: var(--line); }
.legal p, .legal li { color: var(--ink); }
.legal-top { background: var(--strong); color: var(--strong-text); }
body.bio { background: var(--paper); color: var(--ink); background-image: radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 54%); }
.bio-avatar { background: var(--strong); border-color: var(--line); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px color-mix(in srgb, var(--accent) 45%, transparent); }
.bio-head p, .bio-link small, .bio-foot { color: var(--muted); }
.bio-link { border-color: var(--line); background: var(--surface); box-shadow: 0 10px 34px color-mix(in srgb, var(--ink) 5%, transparent); }
.bio-link:hover { border-color: var(--accent); }
.bio-link-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); box-shadow: 0 18px 46px color-mix(in srgb, var(--accent) 22%, transparent); }
.bio-link-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.bio-link-primary .bio-link-copy small, .bio-link-primary .bio-link-copy em { color: var(--accent-contrast); }
.bio-link-compact { background: transparent; box-shadow: none; }
.bio-link.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.bio-link.primary small, .bio-link.primary em { color: var(--accent-contrast); opacity: .82; }
.bio-foot a { color: var(--muted); }
.notfound { background: var(--paper); color: var(--ink); }
.notfound p { color: var(--muted); }

/* Elementos que permanecem cinematográficos em ambos os temas */
.hero, .gallery-lightbox { background: var(--strong); color: var(--strong-text); }
.hero-copy, .scroll { color: var(--strong-muted); }
.portfolio-preview { background: var(--strong); }
.gallery-close, .gallery-stage button { background: var(--strong-surface); color: var(--strong-text); border-color: var(--strong-line); }
#header { background: linear-gradient(color-mix(in srgb, var(--strong) 92%, transparent), transparent); color: var(--strong-text); }
#header.scrolled { background: color-mix(in srgb, var(--strong) 96%, transparent); border-bottom: 1px solid var(--strong-line); }
.language-control select { background: var(--strong-surface); color: var(--strong-text); border-color: var(--strong-line); }
.menu { color: var(--strong-text); }

@media (max-width: 650px) {
  .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .theme-toggle-floating { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
  body, .services, .clients, .legal, .modal, .cookie, .bio, .notfound,
  .q-card, .q-chip span, .field input, .field select, .field textarea,
  .q-calendar-button, .bio-link, .theme-toggle, .theme-toggle .theme-icon { transition: none; }
  .bio-link { animation: none; }
  .bio-share, .bio-social a { transition: none; }
}

/* Portfólio: página dedicada (projetos.html) e galeria com miniaturas ------ */
.section-action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.section-action-buttons .btn-outline { color: #fff; }
.nav a[aria-current="page"] { color: var(--accent); }
.portfolio-page { background: #0e0e0e; }
.pf-hero { background: #0e0e0e; color: #fff; padding: clamp(140px, 16vw, 200px) 0 clamp(40px, 5vw, 64px); }
.pf-hero .eyebrow { color: var(--accent); }
.pf-hero h1 { font-size: clamp(50px, 8vw, 116px); margin: 18px 0 0; max-width: 13ch; text-wrap: balance; }
.pf-hero h1 em { color: var(--accent); font-style: normal; }
.pf-hero-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 30px 60px; margin-top: clamp(28px, 4vw, 48px); padding-top: 28px; border-top: 1px solid #333; }
.pf-hero-row p { margin: 0; max-width: 520px; color: #aaa; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
.pf-stats { display: flex; gap: clamp(22px, 4vw, 56px); margin: 0; }
.pf-stats dt { font: 600 clamp(32px, 4vw, 52px)/1 var(--display); letter-spacing: -.05em; }
.pf-stats dd { margin: 8px 0 0; color: #999; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pf-work { background: #0e0e0e; color: #fff; padding: 0 0 clamp(70px, 9vw, 130px); }
.pf-notice { margin: 0 0 26px; padding: 14px 18px; border: 1px solid #ffffff2e; border-left: 3px solid var(--accent); color: #ccc; font-size: 14px; line-height: 1.5; }
.pf-notice b { color: #fff; }
.pf-filters { display: grid; gap: 12px; margin-bottom: 30px; }
.pf-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-filter-row > span { min-width: 92px; color: #888; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pf-filter-row button { min-height: 40px; padding: 8px 16px; border: 1px solid #444; border-radius: 999px; background: transparent; color: #ddd; font: 600 13px var(--body); cursor: pointer; transition: .2s; }
.pf-filter-row button small { margin-left: 4px; color: #888; font-size: 11px; }
.pf-filter-row button:hover { border-color: var(--accent); color: #fff; }
.pf-filter-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #111; }
.pf-filter-row button[aria-pressed="true"] small { color: #111a; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.pf-card { min-width: 0; scroll-margin-top: 110px; }
.pf-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: #202020; color: #fff; cursor: zoom-in; }
.pf-media img, .pf-media .placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pf-media:hover img { transform: scale(1.04); }
.pf-media .portfolio-count { right: 12px; bottom: 12px; padding: 9px 11px; }
.pf-caption { padding-top: 18px; }
.pf-caption h3 { margin: 8px 0 6px; font: 600 clamp(21px, 2vw, 27px)/1.15 var(--display); letter-spacing: -.03em; }
.pf-caption p { margin: 0; color: #999; font-size: 13px; line-height: 1.5; }
.pf-caption .pf-summary { margin-top: 10px; color: #bbb; font-size: 14px; }
.pf-link { display: inline-block; margin-top: 14px; color: var(--accent); font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.pf-link:hover { color: #fff; }
.pf-slot { opacity: .55; }
.pf-slot .pf-media { cursor: default; }
.pf-slot-label { position: absolute; inset: auto 14px 14px; color: #fff9; font: 700 10px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.pf-empty { color: #aaa; text-align: center; padding: 40px 0; }
.pf-brands { background: var(--surface); color: var(--ink); padding: clamp(70px, 9vw, 130px) 0; }
.pf-brands .section-head .intro { color: var(--muted); }
.pf-logo-slot { color: var(--line); letter-spacing: .2em; font-size: 14px; }
.pf-events { background: var(--paper); color: var(--ink); padding: clamp(50px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.pf-event-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.pf-event-list li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font: 600 14px var(--display); }
.gallery-lightbox:has(.gallery-thumbs:not([hidden])) .gallery-stage { height: min(66svh, 800px); }
.gallery-thumbs { display: flex; gap: 8px; max-width: 1100px; margin: 14px auto 0; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: #222; cursor: pointer; opacity: .55; transition: .2s; }
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current] { opacity: 1; }
.gallery-thumbs button[aria-current] { border-color: var(--accent); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-stats { width: 100%; justify-content: space-between; gap: 14px; }
  .pf-filter-row > span { width: 100%; }
  .gallery-thumbs button { width: 64px; }
  .client-grid .pf-logo-slot { font-size: 11px; }
}
.gallery-stage img { grid-column: 2; grid-row: 1; }
.gallery-stage .gallery-prev { grid-column: 1; grid-row: 1; }
.gallery-stage .gallery-next { grid-column: 3; grid-row: 1; }
.gallery-thumbs[hidden] { display: none; }
.gallery-stage { grid-template-rows: minmax(0, 1fr); }
.gallery-stage img { min-height: 0; }
@media (max-width: 700px) {
  .gallery-lightbox:has(.gallery-thumbs:not([hidden])) .gallery-stage { height: 62svh; }
}
