/* ============================================================
   Sintaxe Visual — edição editorial em papel claro
   Movimento contido no hero, tipografia à frente.
   ============================================================ */

:root {
  --bg: #f6f3ec;
  --bg-2: #efeade;
  --panel: #ffffff;
  --line: rgba(32, 29, 22, 0.09);
  --line-2: rgba(32, 29, 22, 0.18);
  --text: #201d16;
  --muted: #716c5f;
  --accent: #a8843a;
  --accent-hover: #b9934a;
  --accent-ink: #1c1a13;
  --accent-soft: rgba(168, 132, 58, 0.14);
  --pine: #3b5a42;
  --shadow: rgba(40, 36, 26, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-tilt],
body.has-cursor input,
body.has-cursor select,
body.has-cursor textarea,
body.has-cursor label {
  cursor: none;
}

section[id],
div[id] {
  scroll-margin-top: 90px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

ul {
  list-style: none;
}

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

/* ---------- utilities ---------- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.period {
  color: var(--accent);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.005em;
  color: var(--pine);
}

/* ---------- atmosphere ---------- */
.grain {
  position: fixed;
  inset: -60%;
  z-index: 140;
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.6s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12.5% { transform: translate(-1.4%, 1%); }
  25% { transform: translate(1%, -1.6%); }
  37.5% { transform: translate(-1%, -1.1%); }
  50% { transform: translate(1.5%, 0.9%); }
  62.5% { transform: translate(-1.5%, 0.5%); }
  75% { transform: translate(0.7%, 1.6%); }
  87.5% { transform: translate(1.1%, -0.9%); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 200;
  transform: translate(-100px, -100px);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  pointer-events: none;
  z-index: 199;
  transform: translate(-100px, -100px);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

body.has-cursor .cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

body.has-cursor .cursor-ring.is-down {
  width: 30px;
  height: 30px;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.pre-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease) forwards;
  animation-delay: 0.15s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.pre-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  animation: pulse 1.6s var(--ease) infinite;
}

.pre-mark svg {
  width: 22px;
  height: 22px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.pre-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.pre-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.pre-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.pre-count {
  position: absolute;
  right: max(4vw, 24px);
  bottom: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 20px 44px;
  font-size: clamp(15px, 1.8vw, 19px);
  margin-top: 52px;
  box-shadow: 0 18px 40px -18px var(--shadow);
}

.btn-cta:hover {
  background: var(--accent-hover);
}

.link-ghost {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.link-arrow {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-top: auto;
  transition: color 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
}

/* ---------- typography ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker span {
  color: var(--accent);
  font-weight: 800;
}

.kicker::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--line-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.2s;
}

.reveal.in .kicker::after {
  transform: scaleX(1);
}

.kicker.center {
  justify-content: center;
}

.kicker.center::after {
  display: none;
}

.section {
  padding: clamp(96px, 11vw, 148px) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(52px, 6vw, 84px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 520px;
}

/* ---------- split line reveal ---------- */
.section-title.split .split-line {
  display: block;
  overflow: hidden;
  padding: 0.03em 0.08em;
  margin-inline: -0.08em;
}

.section-title.split .split-line > span {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.95s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s + 0.1s);
}

.section-title.split .split-line:nth-child(1) { --i: 0; }
.section-title.split .split-line:nth-child(2) { --i: 1; }

.reveal.in .split-line > span {
  transform: translateY(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(4vw, 24px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  padding-block: 15px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--accent);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo-word em {
  font-style: normal;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0 11px;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(246, 243, 236, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu > a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 30px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.mobile-menu > a:not(.btn):hover {
  color: var(--text);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 64px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 29, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 29, 22, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  transform: translateY(var(--py, 0px));
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hb1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(168, 132, 58, 0.2), transparent 65%);
  animation: drift1 16s ease-in-out infinite alternate;
}

.hb2 {
  width: 480px;
  height: 480px;
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(59, 90, 66, 0.16), transparent 65%);
  animation: drift2 20s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate(-80px, 50px) scale(1.12); }
}

@keyframes drift2 {
  to { transform: translate(110px, -60px) scale(1.15); }
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1020px;
}

.hero-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-label-r {
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(42px, 7.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.06em;
  margin-inline: -0.06em;
}

.hero-title .line > span {
  display: inline-block;
}

/* --- gated hero entrance --- */
.hero-label,
.hero-title .line > span,
.hero-sub,
.hero-actions,
.hero-strip {
  opacity: 0;
}

body.ready .hero-title .line > span {
  transform: translateY(112%);
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i, 0) * 0.1s);
}

body.ready .hero-title .line:nth-child(1) > span { --i: 0; }
body.ready .hero-title .line:nth-child(2) > span { --i: 1; }
body.ready .hero-title .line:nth-child(3) > span { --i: 2; }
body.ready .hero-title .line:nth-child(4) > span { --i: 3; }

body.ready .hero-label {
  animation: fade 0.8s var(--ease) forwards;
  animation-delay: 0.2s;
}

body.ready .hero-sub {
  animation: fade 0.9s var(--ease) forwards;
  animation-delay: 0.8s;
}

body.ready .hero-actions {
  animation: fade 0.9s var(--ease) forwards;
  animation-delay: 0.95s;
}

body.ready .hero-strip {
  animation: fade 1s var(--ease) forwards;
  animation-delay: 1.1s;
}

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade {
  to { opacity: 1; }
}

.hero-sub {
  margin-top: 34px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-strip {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strip span {
  flex: 1 1 200px;
  padding: 18px 24px 18px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.hero-strip span:first-child {
  padding-left: 0;
}

.hero-strip span:last-child {
  border-right: none;
}

/* ---------- hero badge (selo giratório) ---------- */
.hero-badge {
  position: absolute;
  right: clamp(24px, 6vw, 92px);
  bottom: clamp(84px, 15vh, 160px);
  width: 132px;
  height: 132px;
  z-index: 4;
  opacity: 0;
}

body.ready .hero-badge {
  animation: fade 1s var(--ease) 1.5s forwards;
}

.hero-badge > svg {
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.badge-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: var(--muted);
}

.badge-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.badge-core svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

body.ready .scroll-cue {
  animation: fade 1s var(--ease) 1.7s forwards;
}

.cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  background: var(--line-2);
  overflow: hidden;
}

.cue-line span {
  position: absolute;
  left: 0;
  top: -45%;
  width: 100%;
  height: 45%;
  background: var(--accent);
  animation: cueDrop 2.2s var(--ease) infinite;
}

@keyframes cueDrop {
  0% { top: -45%; }
  65%, 100% { top: 110%; }
}

.cue-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 19px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: mq 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.mq-group {
  display: flex;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.mq-group i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.78em;
}

@keyframes mq {
  to { transform: translateX(-50%); }
}

/* ---------- services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: start;
}

.card-offset {
  margin-top: 64px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(30px, 3.6vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -34px var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 4px 0 14px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.card-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--accent);
}

/* spotlight segue o mouse */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 132, 58, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* stagger dos itens da lista */
.reveal .card-list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in .card-list li {
  opacity: 1;
  transform: none;
}

.reveal.in .card-list li:nth-child(1) { transition-delay: 0.25s; }
.reveal.in .card-list li:nth-child(2) { transition-delay: 0.35s; }
.reveal.in .card-list li:nth-child(3) { transition-delay: 0.45s; }

/* ---------- processo ---------- */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 3vw, 34px) clamp(8px, 1.5vw, 18px);
  border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step:hover {
  background: var(--panel);
  padding-left: clamp(16px, 2.5vw, 30px);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
  transition: color 0.4s var(--ease);
}

.step:hover .step-num {
  color: var(--accent);
}

.step-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}

.step-body p {
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}

.step-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 15px;
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.step:hover .step-meta {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- portfolio · registro confidencial ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: start;
}

.case-offset {
  margin-top: 96px;
}

.case {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nda {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
}

.nda svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.case-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

.case-visual:hover {
  border-color: var(--line-2);
  box-shadow: 0 36px 70px -42px var(--shadow);
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--wy, 0px))) rotate(-8deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(34px, 6vw, 74px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--line-2);
  color: transparent;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.visual-cap {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-cap::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

/* gráfico abstrato — conversão */
.chart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
  padding: 58px clamp(20px, 3vw, 34px) 26px;
}

.chart-bar {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 132, 58, 0.28);
  transform: scaleY(0);
  transform-origin: bottom;
}

.chart-bar.is-hit {
  background: var(--pine);
  border-color: rgba(59, 90, 66, 0.4);
}

.case.in .chart-bar {
  animation: grow 0.9s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--d, 0) * 0.09s);
}

@keyframes grow {
  to { transform: scaleY(var(--h)); }
}

.chart-badge {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--pine);
}

/* waveform abstrata — retenção */
.waveform {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 7px);
  height: 100%;
  padding: 0 24px;
}

.wave {
  width: 4px;
  height: 55%;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 132, 58, 0.3);
  animation: eq 2.4s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * -0.16s);
}

@keyframes eq {
  0%, 100% { transform: scaleY(var(--h)); }
  50% { transform: scaleY(calc(var(--h) * 0.55)); }
}

.clip-tag {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(246, 243, 236, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.clip-tag svg {
  width: 12px;
  height: 12px;
  color: var(--pine);
}

/* corpo do caso */
.case-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
}

.case-line > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.case-line strong {
  font-weight: 600;
  text-align: right;
}

.redact {
  display: inline-block;
  height: 13px;
  width: 130px;
  border-radius: 3px;
  background: var(--text);
  opacity: 0.92;
  position: relative;
  overflow: hidden;
}

.redact.lg {
  width: 190px;
}

.redact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(246, 243, 236, 0.55) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 44px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.metric p {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pine);
}

.metric small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-out {
  font-size: 13px;
  color: var(--muted);
}

.portfolio-note {
  margin-top: clamp(56px, 6vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- contato ---------- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 29, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 29, 22, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 100%, #000, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 85% at 50% 100%, #000, transparent 82%);
}

.contact-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 108%, rgba(168, 132, 58, 0.12), transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-wrap: balance;
}

.contact-sub {
  margin-top: 26px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.contact-note {
  margin-top: 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 1px;
}

/* ---------- formulário de contato ---------- */
.contact-form {
  width: 100%;
  max-width: 640px;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.form-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-foot .btn-cta {
  margin-top: 0;
}

.form-note {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-status {
  font-size: 14px;
  font-weight: 600;
}

.form-status.ok {
  color: var(--pine);
}

.form-status.err {
  color: #b3362d;
}

/* honeypot anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(52px, 7vw, 88px) 0 30px;
}

.footer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(34px, 4.5vw, 58px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(52px, 9.5vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text);
}

.footer-word em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(168, 132, 58, 0.9);
  transition: color 0.5s var(--ease);
}

.footer-hero:hover .footer-word em {
  color: var(--accent);
}

.footer-arrow {
  flex: none;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  color: var(--accent);
  padding-bottom: 8px;
  transition: transform 0.5s var(--ease);
}

.footer-hero:hover .footer-arrow {
  transform: translate(10px, -10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-badge,
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 900px) {
  .cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .card-offset,
  .case-offset {
    margin-top: 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-strip span {
    border-right: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .step-meta {
    justify-self: start;
  }

  .footer-hero {
    gap: 18px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor [data-tilt],
  body.has-cursor input,
  body.has-cursor select,
  body.has-cursor textarea,
  body.has-cursor label {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .blob,
  .particles {
    display: none;
  }

  .grain,
  .marquee-track,
  .hero-badge > svg,
  .cue-line span {
    animation: none;
  }

  .reveal,
  .hero-label,
  .hero-title .line > span,
  .hero-sub,
  .hero-actions,
  .hero-strip,
  .hero-badge,
  .scroll-cue {
    opacity: 1;
    transform: none;
  }

  .section-title.split .split-line > span,
  .reveal .card-list li {
    opacity: 1;
    transform: none;
  }

  .kicker::after {
    transform: scaleX(1);
  }

  .preloader {
    display: none;
  }
}
