/* ==========================================================================
   Megora — estilos do site
   Preto profundo + dourado do logo. Uma só ousadia: a montanha do topo.
   ========================================================================== */

/* Fontes hospedadas no próprio site (licença SIL Open Font License) */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #0A0A0B;
  --bg-raise: #111113;
  --bg-card: #141416;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F4F3EF;
  --muted: #A9A69E;
  --dim: #8C8980;
  --gold: #FFC21A;
  --gold-soft: #FFD25A;
  --gold-deep: #F59E0B;
  --gold-line: rgba(255, 194, 26, 0.28);
  --grad: linear-gradient(135deg, #FFE105 0%, #FD8A02 100%);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(84px, 11vw, 140px);
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* céu estrelado: sutil no site inteiro, mais forte só no topo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("../img/estrelas-1.png"), url("../img/estrelas-2.png");
  background-size: 620px 620px, 980px 980px;
  opacity: .34;
}
html.has-modal { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.title {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.08;
  max-width: 18ch;
}
.title em, .hero h1 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 40px; }
.section-head--split .lead { justify-self: end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: #0A0A0B; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--outline-gold { border: 1px solid var(--gold); color: var(--gold); min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn--outline-gold:hover { background: var(--gold); color: #0A0A0B; }
.btn:active { transform: translateY(1px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 14% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.82) 34%, rgba(10,10,11,.35) 50%, rgba(10,10,11,0) 64%),
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 18%, rgba(10,10,11,0) 70%, var(--bg) 100%);
}
.hero-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/estrelas-1.png"), url("../img/estrelas-2.png");
  background-size: 620px 620px, 980px 980px;
  background-position: 40px 10px, 210px 120px;
  opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 36%, transparent 54%);
          mask-image: linear-gradient(90deg, #000 0%, #000 36%, transparent 54%);
}
.hero-inner { position: relative; z-index: 1; flex: 1; display: grid; align-content: center; padding-top: 132px; padding-bottom: 48px; }
.hero-copy { max-width: 760px; }
@media (min-width: 900px) { .hero h1 .l { display: block; } }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-sub { color: #CFCCC4; font-size: clamp(1.06rem, 1.3vw, 1.2rem); max-width: 41ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  position: absolute; z-index: 1; top: 132px; right: var(--gutter);
  max-width: 230px; text-align: left;
  font-size: 0.875rem; color: var(--muted); line-height: 1.5;
  border-left: 1px solid var(--gold-line); padding-left: 16px;
}
.hero-note strong { display: block; color: var(--gold); font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.hero-strip { position: relative; z-index: 1; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,10,11,0), rgba(10,10,11,.6)); }
.hero-strip ul { list-style: none; margin: 0 auto; padding: 22px 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hero-strip li { display: flex; align-items: center; gap: 12px; color: #CFCCC4; font-size: 0.93rem; line-height: 1.3; }
.hero-strip svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* entrance: the only choreographed moment on the page */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-art .beam { transform-box: fill-box; transform-origin: 50% 100%; animation: beam 1.8s .35s var(--ease) both; }
  .hero-photo { animation: dawn 2.2s var(--ease) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes beam { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes dawn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--raise { background: rgba(17, 17, 19, 0.58); border-block: 1px solid var(--line); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 26px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.service:hover { border-color: var(--gold-line); }
.service .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 194, 26, 0.08); color: var(--gold); margin-bottom: 6px; }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.service p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service .text-link { margin-top: 6px; }

/* work */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); overflow: hidden; }
.work-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; background: #1a1a1d; overflow: hidden; cursor: pointer; color: inherit; font: inherit; }
.work-shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; background: #1d1d20; border-bottom: 1px solid var(--line); z-index: 1; }
.work-shot::after { content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: #3a3a3f; box-shadow: 14px 0 0 #3a3a3f, 28px 0 0 #3a3a3f; z-index: 2; }
.work-shot img { position: absolute; top: 26px; left: 0; width: 100%; height: auto; min-height: calc(100% - 26px); object-fit: cover; object-position: top center; transform: translateY(0); transition: transform .9s var(--ease); }
.work-shot.is-tall:hover img, .work-shot.is-tall:focus-visible img { transform: translateY(var(--shift, 0)); transition: transform var(--scroll-time, 4s) cubic-bezier(.45,.05,.4,1); }
.work-peek {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(10,10,11,.86); border: 1px solid var(--gold-line); color: var(--gold);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.work-peek svg { width: 16px; height: 16px; }
.work-shot:hover .work-peek, .work-shot:focus-visible .work-peek { opacity: 1; transform: none; }
@media (hover: none) { .work-peek { opacity: 1; transform: none; } .hint-hover { display: none; } }
@media (hover: hover) { .hint-touch { display: none; } }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 4px; }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.text-link--muted { color: var(--muted); font-weight: 500; }
.text-link--muted:hover { color: var(--text); }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); }
.tag--gold { color: var(--gold); border-color: var(--gold-line); }
.work h3 { font-size: 1.3rem; margin-top: 4px; }
.work p { color: var(--muted); font-size: 0.98rem; flex: 1; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-copy .lead + .lead { margin-top: 16px; }
.about-copy .btn { margin-top: 32px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); }
.person-photo { aspect-ratio: 3 / 4; background: #dcdcdc; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06) brightness(.95); }
.person-body { padding: 20px 22px 22px; }
.person h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.person .role { color: var(--gold); font-size: 0.9rem; font-weight: 500; margin: 4px 0 14px; }
.person .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* process — a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--gold-line), rgba(255,194,26,.08)); }
.step { position: relative; padding-right: 20px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-raise); border: 1px solid var(--gold-line);
  color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  position: relative; margin-bottom: 22px;
}
.step h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* why */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 20px; }
.pillar h3 { font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.pillar p { color: var(--muted); font-size: 0.98rem; max-width: 34ch; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.quote { margin: 0; position: relative; display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 26px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #E6E4DE; flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: .8; color: var(--gold); margin-bottom: 8px; }
.quote footer { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-family: var(--font-display); font-weight: 700; }
.who strong { display: block; font-size: 0.98rem; }
.who span { display: block; color: var(--dim); font-size: 0.85rem; line-height: 1.4; }
.quote .proof { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--dim); }
.quote .proof a { color: var(--gold); text-decoration: none; font-weight: 600; }
.quote .proof a:hover { text-decoration: underline; }
.draft-flag { position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 600; color: var(--gold); border: 1px dashed var(--gold-line); border-radius: 999px; padding: 3px 10px; }
.quotes-note { margin-top: 22px; color: var(--dim); font-size: 0.9rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); }
.plan--focus { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(255,194,26,.06), rgba(255,194,26,0) 40%), var(--bg-card); }
.plan h3 { font-size: 1.35rem; }
.plan .for { color: var(--muted); font-size: 0.96rem; margin: 8px 0 18px; min-height: 3em; }
.plan .time { font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 1rem; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 0.96rem; color: #D6D3CC; line-height: 1.45; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }
.plan .btn { justify-content: center; }
.always { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.always div { font-size: 0.93rem; color: var(--muted); }
.always strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }


/* documentos assinados */
.docs { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.docs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.docs-head h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.docs-head p { color: var(--dim); font-size: .92rem; }
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doc {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s var(--ease);
}
button.doc:hover { border-color: var(--gold-line); }
.doc-thumb { display: block; aspect-ratio: 1400 / 1980; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-body { display: grid; gap: 4px; }
.doc-type { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: .8rem; font-weight: 600; }
.doc-type svg { width: 16px; height: 16px; }
.doc strong { font-size: 1rem; line-height: 1.35; }
.doc-meta { color: var(--dim); font-size: .85rem; }
.doc .text-link { margin-top: 6px; font-size: .9rem; }
.doc--pending { cursor: default; border-style: dashed; opacity: .75; }
.doc-blank { display: grid; align-content: start; gap: 7px; height: 100%; padding: 16px 12px; background: #1b1b1e; }
.doc-blank i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.doc-blank i:first-child { width: 60%; margin-bottom: 6px; }
.doc-blank i:nth-child(3) { width: 85%; }
.doc-blank i:last-child { width: 45%; }

/* janela de visualização */
.viewer {
  width: min(1180px, 100vw - 32px); height: min(840px, 100dvh - 32px);
  max-width: none; max-height: none; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: #0F0F11; color: var(--text); overflow: hidden;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(5, 5, 6, .8); backdrop-filter: blur(4px); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.viewer-meta { color: var(--gold); font-size: .82rem; font-weight: 600; }
.viewer-title { font-size: 1.25rem; letter-spacing: -0.015em; }
.viewer-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.viewer-close:hover { border-color: var(--gold); color: var(--gold); }
.viewer-close svg { width: 20px; height: 20px; }
.viewer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.viewer-stage { position: relative; min-height: 0; padding: 18px; background: #18181B; }
.viewer-frame { height: 100%; overflow: auto; border-radius: 10px; background: #fff; overscroll-behavior: contain; }
.viewer-frame img { width: 100%; height: auto; }
.viewer[data-kind="documento"] .viewer-frame { max-width: 640px; margin-inline: auto; }
.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(10,10,11,.85); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.viewer-arrow:hover { border-color: var(--gold); color: var(--gold); }
.viewer-arrow svg { width: 20px; height: 20px; }
.viewer-arrow--prev { left: 28px; }
.viewer-arrow--next { right: 28px; }
.viewer.is-single .viewer-arrow, .viewer.is-single .viewer-thumbs { display: none; }
.viewer-info { display: flex; flex-direction: column; gap: 24px; padding: 24px; overflow: auto; border-left: 1px solid var(--line); }
.viewer-text h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--gold); }
.viewer-text p { color: #D6D3CC; font-size: .96rem; }
.viewer-text p + h4 { margin-top: 18px; }
.viewer-signed { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--gold) !important; font-weight: 600; }
.viewer-signed svg { width: 18px; height: 18px; flex: none; }
.viewer-small { margin-top: 14px; color: var(--dim) !important; font-size: .86rem !important; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.viewer-thumb { display: grid; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.viewer-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; }
.viewer-thumb[aria-selected="true"] { border-color: var(--gold); color: var(--text); }
.viewer-actions { display: grid; gap: 10px; margin-top: auto; }
.viewer-actions .btn { justify-content: center; }

/* investimento: orçamento personalizado no centro, pacotes nas laterais */
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .title { max-width: 20ch; }
.section-head--center .lead { margin-inline: auto; }
.carousel { --card-w: min(400px, 84vw); position: relative; }
.carousel-track {
  display: flex; gap: 20px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 26px calc(50% - var(--card-w) / 2) 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .plan { flex: 0 0 var(--card-w); scroll-snap-align: center; opacity: .45; transform: scale(.93); transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .4s; }
.carousel .plan.is-active { opacity: 1; transform: none; }
.carousel .plan:not(.is-active) { cursor: pointer; }
.plan--featured {
  border-color: rgba(255, 194, 26, .55);
  background: radial-gradient(120% 55% at 50% 0%, rgba(255,194,26,.16), rgba(255,194,26,0) 62%), var(--bg-card);
  box-shadow: 0 34px 90px -40px rgba(255, 170, 20, .5);
}
.plan-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; height: 28px; padding: 0 12px; margin-bottom: 16px; border-radius: 999px; background: var(--gold); color: #0A0A0B; font-family: var(--font-display); font-size: .78rem; font-weight: 600; }
.plan-badge svg { width: 14px; height: 14px; }
.plan .time { display: flex; align-items: center; gap: 8px; }
.plan .time svg { width: 18px; height: 18px; flex: none; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.carousel-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dot { position: relative; width: 22px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); transform: translate(-50%, -50%); transition: width .3s var(--ease), background-color .3s; }
.carousel-dot[aria-selected="true"]::before { width: 22px; background: var(--gold); }
.pricing .always { margin-top: 48px; }

/* contact */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(60% 60% at 50% 100%, rgba(255,170,20,.14), rgba(255,170,20,0) 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact .title { max-width: 14ch; }
.contact-lines { display: grid; gap: 14px; margin-top: 34px; }
.contact-line { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .2s; }
.contact-line:hover { border-color: var(--gold-line); }
.contact-line svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-line small { display: block; color: var(--dim); font-size: 0.8rem; }
.contact-line span { font-weight: 600; }
.where { margin-top: 22px; color: var(--dim); font-size: 0.92rem; display: flex; gap: 10px; }
.where svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }

.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); }
.form h3 { font-size: 1.2rem; }
.form > p { color: var(--muted); font-size: 0.95rem; margin-top: -6px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 500; color: #D6D3CC; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: #0E0E10; border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 0.98rem;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,26,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-content: center; width: 100%; }
.form-hint { font-size: 0.82rem; color: var(--dim); text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--dim); font-size: 0.92rem; margin-top: 14px; max-width: 30ch; }
.footer-grid h4 { margin: 0 0 14px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--dim); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 0.85rem; }

/* preview switcher (só no rascunho — apagar ao publicar) */
.preview-switch { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20,20,22,.92); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); font-size: 0.8rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.preview-switch span { color: var(--dim); padding: 0 8px 0 10px; }
.preview-switch a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.preview-switch a[aria-current="page"] { background: var(--gold); color: #0A0A0B; }


/* ==========================================================================
   Variação "seções escuras": o topo (montanha + céu estrelado) fica igual.
   Abaixo dele, sem estrelas: blocos sólidos alternados, mais sóbrios.
   ========================================================================== */
.tema-escuro body::before { display: none; }
.tema-escuro .section { background: #0A0A0B; }
.tema-escuro .section--raise { background: #121214; border-block: 1px solid rgba(255, 255, 255, 0.07); }
.tema-escuro .site-footer { background: #070708; }
.tema-escuro .section--raise .service,
.tema-escuro .section--raise .work,
.tema-escuro .section--raise .quote,
.tema-escuro .section--raise .doc,
.tema-escuro .section--raise .form,
.tema-escuro .section--raise .contact-line { background: #18181B; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .always { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-note { display: none; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open { background: #0A0A0B; border-bottom-color: var(--line); }
  .site-header.menu-open .nav-links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; background: #0A0A0B; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
  .site-header.menu-open .nav-links .nav-links-cta { display: block; padding-top: 18px; }
  .site-header.menu-open .nav-links .nav-links-cta a { display: flex; justify-content: center; border-bottom: 0; color: #0A0A0B; padding: 0 22px; }
  .site-header.menu-open .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .section-head--split, .about, .contact-grid { grid-template-columns: 1fr; }
  .section-head--split .lead { justify-self: start; }
  .works, .quotes, .plans { grid-template-columns: 1fr; max-width: 560px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: 1fr; max-width: 560px; }
  /* telas menores: texto em cima, montanha inteira logo abaixo (nunca escondida atrás do texto) */
  .hero { min-height: 0; }
  .hero-inner { order: 1; padding-top: 120px; padding-bottom: 0; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 3.7rem); }
  .hero-art, .hero-photo { position: relative; inset: auto; order: 2; height: clamp(320px, 66vw, 560px); margin-top: -12px; }
  .hero-strip { order: 3; }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 12%, rgba(10,10,11,0) 82%, var(--bg) 100%); }
  .hero-photo img { object-position: 57% 10%; }
  .hero-stars {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 62%);
            mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 62%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-inner { padding-top: 108px; }
  .hero-art, .hero-photo { height: clamp(300px, 92vw, 420px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-strip li { font-size: .88rem; }
  .doc { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .carousel-track { gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }
  .services, .people { grid-template-columns: 1fr; }
  .people { max-width: 420px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding-right: 0; }
  .step::before { margin: 0; grid-row: span 2; }
  .always { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .preview-switch span { display: none; }
}
@media (max-width: 760px) {
  .viewer { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .viewer-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer-stage { padding: 10px; }
  .viewer-arrow--prev { left: 16px; }
  .viewer-arrow--next { right: 16px; }
  .viewer-info { max-height: 42dvh; border-left: 0; border-top: 1px solid var(--line); padding: 18px; gap: 16px; }
  .viewer-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .viewer-thumb span { display: none; }
}
@media (max-width: 380px) {
  .brand span { font-size: 1.15rem; }
  .hero h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
