/* ==========================================================================
   AVIVA V3 — design system e portfólio
   Tema: tinta escura + creme + dourado (documentacao/DESIGN_SYSTEM_AVIVA.md)
   Tudo em CSS puro: sem build, sem dependência.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg: #08090c;
  --bg-2: #0b0d12;
  --paper: #10131a;
  --paper-2: #161a23;
  --ink: #f1ede2;
  --dim: #a29c8d;
  --dim-2: #6f6a5e;

  --gold: #d9a94a;
  --gold-soft: #f0c777;
  --gold-deep: #a67c2c;

  --line: rgba(241, 237, 226, 0.1);
  --line-2: rgba(241, 237, 226, 0.18);
  --gold-line: rgba(217, 169, 74, 0.3);

  --cream: #f6f2e7;
  --cream-2: #eee7d6;
  --cream-ink: #14130f;
  --cream-dim: #5d5749;

  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-2: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grão sutil sobre todo o site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #0a0a08; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--cream-ink);
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(var(--wrap), calc(100% - 72px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------ tipografia -- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
h2.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2.title em { font-style: italic; color: var(--gold); }
h3.sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lead {
  color: var(--dim);
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.72;
  max-width: 56ch;
}
.muted { color: var(--dim); }
.micro {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--dim-2);
}

/* --------------------------------------------------------------- botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a08;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
  box-shadow: 0 18px 40px -18px rgba(217, 169, 74, 0.65);
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover {
  border-color: var(--gold-line);
  background: rgba(217, 169, 74, 0.07);
  box-shadow: none;
  color: var(--gold-soft);
}
.btn.small { min-height: 42px; padding: 10px 18px; font-size: 12.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s, gap 0.3s;
}
.link-arrow:hover { border-color: var(--gold-line); gap: 12px; }

/* --------------------------------------------------------------- header --- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled {
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", var(--sans);
  font-size: 23px;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1;
}
.wordmark .mark { width: 27px; height: 27px; flex: none; display: block; color: var(--ink); }
.wordmark small {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
}

.masthead nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  padding: 8px 0;
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s, background 0.3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  padding: clamp(120px, 15vh, 170px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -280px;
  top: -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 74, 0.17), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 62%, transparent);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 3; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.02em;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-badge i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 169, 74, 0.16);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
}

.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: sobe-linha 1.15s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes sobe-linha { to { transform: translateY(0); } }

.hero .lead { margin-bottom: 34px; animation: entra 1s var(--ease) 0.5s both; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: entra 1s var(--ease) 0.65s both;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--dim-2);
  animation: entra 1s var(--ease) 0.8s both;
}
.hero-note .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217, 169, 74, 0.14);
  color: var(--gold);
  font-size: 9px;
  flex: none;
}
@keyframes entra {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* pilha de telas */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.04;
  z-index: 2;
}
.hero-visual .glow {
  position: absolute;
  inset: 12% -8% 4% 6%;
  background: radial-gradient(circle at 60% 40%, rgba(217, 169, 74, 0.22), transparent 66%);
  filter: blur(26px);
  animation: pulso 9s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.frame {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(241, 237, 226, 0.14);
  background: #0d1016;
  box-shadow: 0 50px 90px -50px #000, 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.frame .bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(241, 237, 226, 0.09);
}
.frame .bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(241, 237, 226, 0.2);
}
.frame img { width: 100%; height: auto; }

.hero-visual .f1 {
  position: absolute;
  top: 2%;
  left: 0;
  width: 76%;
  transform: rotate(-4deg);
  animation: flutua-1 12s ease-in-out infinite;
}
.hero-visual .f2 {
  position: absolute;
  right: -2%;
  bottom: 8%;
  width: 66%;
  transform: rotate(3.5deg);
  animation: flutua-2 14s ease-in-out infinite;
}
.hero-visual .f3 {
  position: absolute;
  left: 12%;
  bottom: 0;
  width: 42%;
  transform: rotate(-1deg);
  animation: flutua-1 16s ease-in-out infinite reverse;
}
@keyframes flutua-1 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-14px); }
}
@keyframes flutua-2 {
  0%, 100% { transform: rotate(3.5deg) translateY(0); }
  50% { transform: rotate(3.5deg) translateY(12px); }
}

/* -------------------------------------------------------------- marquee --- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 17px 0;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.014);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: desliza 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.65;
}
@keyframes desliza { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- seções --- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section.tight { padding: clamp(50px, 6vw, 80px) 0; }
.section--line { border-top: 1px solid var(--line); }

.head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.head .lead { padding-bottom: 6px; }

/* números */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 90px);
}
.stats > div {
  background: var(--bg);
  padding: 26px 22px 24px;
}
.stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stats b i { font-style: normal; color: var(--gold); font-size: 0.6em; vertical-align: super; }
.stats span {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim-2);
}

/* -------------------------------------------------------------- catálogo -- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a08;
}
.chip .n { opacity: 0.55; font-size: 10.5px; margin-left: 5px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}
.p-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease), opacity 0.45s,
    box-shadow 0.6s var(--ease);
  transform-style: preserve-3d;
}
.p-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -50px rgba(217, 169, 74, 0.55);
}
.p-card.is-hidden { display: none; }

.p-card {
  padding: 10px;
}
.p-card .shot {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0c0e13;
  border-radius: 14px;
}
.p-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease), filter 0.6s;
  filter: saturate(0.92) brightness(0.94);
}
.p-card:hover .shot img {
  transform: scale(1.045);
  filter: saturate(1.02) brightness(1);
}
.p-card .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 12, 0.55));
  pointer-events: none;
}
.p-card .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.7);
  border: 1px solid rgba(241, 237, 226, 0.16);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.p-card .body {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
}
.p-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-card h3 svg { flex: none; color: var(--gold); transition: transform 0.45s var(--ease); }
.p-card:hover h3 svg { transform: translate(3px, -3px); }
.p-card p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  min-height: 44px;
}
.p-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.p-card .meta .demo-link {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p-card .meta .demo-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* card em destaque (grade larga) */
.p-card.wide { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; }
.p-card.wide .shot { aspect-ratio: auto; height: 100%; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.p-card.wide .body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.p-card.wide h3 { font-size: clamp(26px, 2.6vw, 34px); }
.p-card.wide p { font-size: 14.5px; min-height: 0; max-width: 44ch; }
.p-card.wide .features { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.p-card.wide .features span {
  font-size: 11px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--dim);
}

/* -------------------------------------------------------------- destaque --- */
.feature {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(60px, 8vw, 110px); }
.feature.rev .feature-shot { order: 2; }
.feature-shot { position: relative; }
.feature-shot .frame { transform: none; transition: transform 0.8s var(--ease); }
.feature-shot:hover .frame { transform: translateY(-6px); }
.feature-shot .price-tag {
  position: absolute;
  right: -10px;
  bottom: -16px;
  z-index: 3;
  background: var(--cream);
  color: var(--cream-ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 20px 40px -24px #000;
}
.feature-shot .price-tag b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-top: 3px;
}
.feature-copy .eyebrow { margin-bottom: 18px; }
.feature-copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.feature-copy h3 em { font-style: italic; color: var(--gold); }
.feature-copy p { color: var(--dim); font-size: 15px; max-width: 46ch; }
.feature-list { margin: 24px 0 26px; display: grid; gap: 10px; }
.feature-list li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--dim);
}
.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ------------------------------------------------------------- biblioteca -- */
.lib-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lib-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.5s, transform 0.6s var(--ease), background 0.5s;
}
.lib-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 74, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 0.6s;
}
.lib-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-5px);
  background: var(--paper-2);
}
.lib-card:hover::before { opacity: 1; }
.lib-card .num {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.lib-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.025em;
  margin: 60px 0 10px;
}
.lib-card p { color: var(--dim); font-size: 13.5px; }
.lib-card .go {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}

/* --------------------------------------------------------------- serviços -- */
.section--paper {
  background: var(--cream);
  color: var(--cream-ink);
  --line: rgba(20, 19, 15, 0.12);
  --line-2: rgba(20, 19, 15, 0.2);
  --dim: var(--cream-dim);
  --dim-2: #8b8474;
  --ink: var(--cream-ink);
  --gold: #9a6f18;
  --gold-soft: #7c5810;
}
.section--paper .eyebrow { color: #9a6f18; }
.section--paper h2.title em { color: #9a6f18; }
.section--paper .btn {
  background: var(--cream-ink);
  color: var(--cream);
}
.section--paper .btn:hover { background: #2a271f; box-shadow: 0 18px 40px -20px rgba(20, 19, 15, 0.5); }
.section--paper .btn.ghost {
  background: transparent;
  color: var(--cream-ink);
  border-color: rgba(20, 19, 15, 0.24);
}
.section--paper .btn.ghost:hover { background: rgba(20, 19, 15, 0.05); color: var(--cream-ink); }
.section--paper .frame { border-color: rgba(20, 19, 15, 0.14); }

.what {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.what article {
  background: var(--cream);
  padding: 30px 26px 32px;
  position: relative;
  transition: background 0.4s;
}
.what article:hover { background: #fbf8f0; }
.what article > span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a6f18;
  font-weight: 700;
}
.what h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 16px 0 10px;
  line-height: 1.15;
}
.what p { font-size: 13.5px; color: var(--cream-dim); }
.what .from {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 19, 15, 0.12);
  font-size: 12px;
  color: #6c6553;
}
.what ul { margin-top: 16px; display: grid; gap: 7px; }
.what li { font-size: 12.5px; color: #5d5749; display: flex; gap: 8px; }
.what li::before { content: "—"; color: #9a6f18; }

/* passos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: passo;
  position: relative;
  margin-top: 8px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 1px;
  background: rgba(20, 19, 15, 0.16);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  height: 1px;
  width: var(--linha, 0%);
  background: #9a6f18;
  transition: width 1.6s var(--ease);
}
.steps.is-in::after { width: 75%; }
.step { position: relative; padding-top: 56px; }
.step .dot {
  position: absolute;
  top: 12px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid #9a6f18;
}
.step .dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #9a6f18;
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.steps.is-in .step .dot::after { transform: scale(1); }
.step b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a6f18;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.step p { font-size: 13px; color: var(--cream-dim); }

/* ------------------------------------------------------------------ FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-soft); }
.faq summary .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq summary .plus::before { width: 10px; height: 1px; }
.faq summary .plus::after { width: 1px; height: 10px; }
.faq details[open] summary .plus { transform: rotate(90deg); border-color: var(--gold-line); }
.faq details[open] summary .plus::after { opacity: 0; }
.faq details p {
  padding: 0 40px 24px 0;
  max-width: 78ch;
  color: var(--dim);
  font-size: 14.5px;
}

/* ------------------------------------------------------------------ CTA --- */
.cta {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 780px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(217, 169, 74, 0.16), transparent 66%);
  filter: blur(18px);
}
.cta .display { margin-bottom: 22px; }
.cta .lead { margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-contact {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  font-size: 13px;
  color: var(--dim-2);
}
.cta-contact a { color: var(--dim); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.cta-contact a:hover { color: var(--gold); border-color: var(--gold-line); }

/* ---------------------------------------------------------------- footer -- */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 34px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer li a, .footer address a {
  font-size: 13.5px;
  color: var(--dim);
  transition: color 0.25s;
}
.footer li a:hover, .footer address a:hover { color: var(--gold); }
.footer address { font-style: normal; display: grid; gap: 10px; }
.footer .about { max-width: 34ch; color: var(--dim); font-size: 13.5px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--dim-2);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ menu --- */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 9, 12, 0.97);
  backdrop-filter: blur(20px);
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
body.nav-open .nav-panel { opacity: 1; visibility: visible; }
.nav-panel a {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 42px);
  letter-spacing: -0.03em;
  padding: 8px 0;
  color: var(--ink);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s, color 0.3s;
}
body.nav-open .nav-panel a { transform: none; opacity: 1; }
body.nav-open .nav-panel a:nth-child(2) { transition-delay: 0.04s; }
body.nav-open .nav-panel a:nth-child(3) { transition-delay: 0.08s; }
body.nav-open .nav-panel a:nth-child(4) { transition-delay: 0.12s; }
body.nav-open .nav-panel a:nth-child(5) { transition-delay: 0.16s; }
.nav-panel a:hover { color: var(--gold); }
.nav-panel .panel-foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--dim-2);
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------ animações ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-in { transform: none; }

/* ------------------------------------------------------------- biblioteca -- */
.lib-hero {
  padding: clamp(120px, 16vh, 170px) 0 clamp(30px, 5vw, 50px);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.lib-hero::before {
  content: "";
  position: absolute;
  right: -220px;
  top: -260px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 74, 0.14), transparent 64%);
}
.lib-hero .eyebrow { margin-bottom: 20px; }
.lib-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.lib-hero h1 em { font-style: italic; color: var(--gold); }
.lib-hero p { margin-top: 18px; color: var(--dim); max-width: 62ch; }
.lib-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim-2);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.lib-back:hover { color: var(--gold); }

.lib-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lib-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 26px 28px;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.lib-item:hover { border-color: var(--gold-line); transform: translateY(-3px); background: var(--paper-2); }
.lib-item small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.lib-item b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  display: block;
}
.lib-item span { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim-2); }

.lib-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lib-app {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.lib-app:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.lib-app img { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.lib-app .cap { padding: 16px 18px 18px; }
.lib-app b { font-size: 14px; display: block; letter-spacing: -0.01em; }
.lib-app small { display: block; margin-top: 5px; font-size: 11px; color: var(--dim-2); letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- briefing -- */
.brief {
  padding: clamp(110px, 14vh, 150px) 0 90px;
}
.brief-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.brief-aside { position: sticky; top: 110px; }
.brief-aside h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 18px 0 18px;
}
.brief-aside h1 em { font-style: italic; color: var(--gold); }
.brief-aside p { color: var(--dim); font-size: 14.5px; max-width: 40ch; }
.brief-steps { margin-top: 30px; display: grid; gap: 14px; }
.brief-steps li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}
.brief-steps b {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
}

.form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: clamp(22px, 3vw, 34px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  background: rgba(8, 9, 12, 0.5);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a29c8d' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8, 9, 12, 0.75);
}
.field textarea { min-height: 108px; resize: vertical; }
.field ::placeholder { color: #5c574c; }
.form .btn { width: 100%; margin-top: 6px; }
.form-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--dim-2);
  text-align: center;
  line-height: 1.6;
}
.form-status {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gold-soft);
  text-align: center;
  min-height: 18px;
}

/* ------------------------------------------------------------ responsivo -- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; aspect-ratio: 1 / 0.92; }
  .head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev .feature-shot { order: 0; }
  .feature-shot .price-tag { right: 12px; bottom: -14px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .p-card.wide { grid-column: span 2; grid-template-columns: 1fr; }
  .p-card.wide .shot { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16/10; }
  .lib-cards, .what, .lib-list, .lib-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px 26px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 34px; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .masthead nav { display: none; }
  .nav-toggle { display: grid; }
  .masthead .wrap { min-height: 66px; }
  .wordmark { font-size: 22px; }
  .wordmark small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 108px; }
  .browser, .frame { box-shadow: 0 24px 60px -34px #000; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 40px); }
  .catalog-grid, .lib-cards, .what, .lib-list, .lib-grid-3, .stats, .steps, .form-row, .footer-grid {
    grid-template-columns: 1fr;
  }
  .p-card.wide { grid-column: span 1; }
  .p-card.wide .body { padding: 22px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .hero-visual .f3 { display: none; }
  .section { padding: 62px 0; }
  .marquee-track span { font-size: 16px; }
  .what article { padding: 24px 22px 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* acessibilidade: nada de movimento para quem pediu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* impressão sóbria do briefing */
@media print {
  .masthead, .nav-panel, .progress, .footer, .cta, .hero-visual, body::after { display: none !important; }
  body { background: #fff; color: #111; }
  .section--paper { background: #fff; }
}

/* ---------------------------------------------- landing pages curadas ----- */
.is-hidden { display: none !important; }

.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pg-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pg-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -45px rgba(217, 169, 74, 0.5);
}
.pg-card .shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0c0e13;
  border-bottom: 1px solid var(--line);
}
.pg-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease);
}
.pg-card:hover .shot img { transform: scale(1.035); }
.pg-card .tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(241, 237, 226, 0.16);
  backdrop-filter: blur(6px);
}
.pg-card {
  padding: 8px;
}
.pg-card .shot {
  border-radius: 12px;
  overflow: hidden;
}
.pg-card .cap {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-card small {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.pg-card b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-card .go {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim-2);
  transition: color 0.3s;
}
.pg-card:hover .go { color: var(--gold); }

@media (max-width: 1080px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .pg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pg-grid { grid-template-columns: 1fr; } }
