:root {
  --bg: #0e100f;
  --bg-2: #151816;
  --ink: #efe9df;
  --ink-2: #b9b3a8;
  --muted: #7d8079;
  --sage: #8fa397;
  --sage-d: #6c7c71;
  --wood: #c8a27a;
  --line: rgba(239, 233, 223, 0.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* grão sutil */
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--serif); font-weight: 300; color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, min(5.4vw, 7.2vh), 4.6rem); }
h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}
.tag::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage); margin-bottom: 28px; }

/* ---------- Botões ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--sage); border-color: var(--sage); color: #0e100f; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(239,233,223,0.06); color: var(--ink); border-color: var(--ink-2); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 0.85rem; }
.btn-lg { --h: 62px; padding: 0 34px; font-size: 1rem; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { width: 84px; height: 84px; overflow: visible; }
.lp { fill: var(--ink); opacity: 0; transform-box: fill-box; animation: join 1s var(--ease) forwards; }
.lp1 { --from: translate(0, -22px); animation-delay: 0.1s; }
.lp2 { --from: translate(-22px, 0); animation-delay: 0.3s; }
.lp3 { --from: translate(0, 22px); animation-delay: 0.5s; }
.lp4 { --from: scale(0); fill: var(--wood); transform-origin: center; animation-delay: 0.95s; }
@keyframes join { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
.loader-text { font-size: 1.15rem; opacity: 0; animation: join 1s 0.8s var(--ease) forwards; --from: translateY(8px); }
.loader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--sage); transition: width 0.4s var(--ease); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.is-scrolled { background: rgba(14, 16, 15, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
/* Assinatura: CAETANOS — EVOLUTION */
.wm { display: grid; line-height: 1; }
.wm b { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.32em; }
.wm i { font-style: normal; font-size: 0.5rem; letter-spacing: 0.6em; margin-top: 6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.wm i::before { content: ''; width: 14px; height: 1px; background: currentColor; }
.loader-text { display: grid; justify-items: center; }
.loader-text i::after { content: ''; width: 14px; height: 1px; background: currentColor; }
.nav-links { display: flex; gap: 34px; font-size: 0.88rem; color: var(--ink-2); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--sage); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(88px, 15vh, 120px) var(--gutter) clamp(80px, 13vh, 120px);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 75% 30%, rgba(108,124,113,0.22), transparent 60%),
    radial-gradient(60% 50% at 10% 90%, rgba(200,162,122,0.10), transparent 60%),
    var(--bg);
}
.hero-bg { position: absolute; inset: -6% 0; overflow: hidden; will-change: transform; }
.hero-bg::before { /* foto de capa com zoom lento ao entrar */
  content: ''; position: absolute; inset: 0;
  background: url('../img/Capa-01.jpeg') center 40% / cover no-repeat;
  transform: scale(1.12);
  transition: transform 3.2s var(--ease);
}
.is-ready .hero-bg::before { transform: scale(1.02); }
.hero-bg::after { /* escurece à esquerda para o texto e funde com a próxima seção */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,16,15,0.94) 0%, rgba(14,16,15,0.8) 38%, rgba(14,16,15,0.4) 68%, rgba(14,16,15,0.18) 100%),
    linear-gradient(180deg, rgba(14,16,15,0.55) 0%, transparent 22%, transparent 70%, var(--bg) 96%);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-title { font-size: clamp(2.6rem, min(9.4vw, 12.5vh), 8.6rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: clamp(18px, 4vh, 36px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.is-ready .hero-title .line > span { transform: none; }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-sub { max-width: 540px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); margin-bottom: clamp(22px, 5vh, 40px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: clamp(14px, 4vh, 34px); transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--sage), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Revelações ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.45s; }
.hero .hero-cta.reveal { transition-delay: 0.6s; }

/* ---------- Manifesto ---------- */
.manifesto { min-height: 160vh; padding: 0 var(--gutter); }
.manifesto-text {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  max-width: 1180px; margin: 0 auto;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, min(4.6vw, 6.6vh), 4rem); line-height: 1.15; letter-spacing: -0.02em;
}
.manifesto-text > span { display: inline; }
.manifesto-text .w { opacity: 0.14; transition: opacity 0.4s, color 0.4s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hl.on { color: var(--sage); font-style: italic; }

/* ---------- Palcos 3D ---------- */
.stage { position: relative; height: 640vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(14,16,15,0.85)); }
.stage-head { position: absolute; top: clamp(72px, 13vh, 96px); left: var(--gutter); pointer-events: none; }
.stage-head h2 { font-size: clamp(1.7rem, min(4vw, 6vh), 3.4rem); }
.stage-card {
  position: absolute; left: var(--gutter); bottom: clamp(18px, 7vh, 64px);
  width: min(400px, calc(100% - 2 * var(--gutter)));
  padding: clamp(16px, 3.4vh, 26px) 28px clamp(18px, 3.6vh, 28px);
  background: rgba(14, 16, 15, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.stage-count { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stage-count b { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--sage); }
.stage-count span { color: var(--muted); font-size: 0.9rem; }
.stage-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.stage-card p { color: var(--ink-2); font-size: 0.97rem; }
.stage-card .swap { animation: swap 0.7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.stage-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sage), var(--wood)); transform-origin: left; transform: scaleX(0); }
.stage-dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stage-dots li { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-2); opacity: 0.5; transition: all 0.5s var(--ease); }
.stage-dots li.on { background: var(--sage); border-color: var(--sage); opacity: 1; transform: scale(1.3); }

.swatches { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.8s var(--ease), opacity 0.6s, margin 0.6s; }
.swatches.is-on { max-height: 160px; opacity: 1; margin-top: 20px; }
.swatch-label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(239,233,223,0.05); border: 1px solid var(--line);
  color: var(--ink-2); font: 500 0.78rem var(--sans); cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.swatch i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.swatch:hover { color: var(--ink); border-color: var(--ink-2); }
.swatch.is-active { color: var(--ink); border-color: var(--sage); background: rgba(143,163,151,0.12); }

/* ---------- Ambientes (rolagem horizontal) ---------- */
.rooms { position: relative; height: 340vh; }
.rooms-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 4vh, 48px); padding: 76px 0 clamp(16px, 3vh, 32px); }
.rooms-head { padding: 0 var(--gutter); }
.rooms-head .tag { margin-bottom: clamp(10px, 2.4vh, 22px); }
.rooms-track { display: flex; gap: 24px; padding: 0 var(--gutter); will-change: transform; }
.room {
  flex: 0 0 auto;
  width: clamp(270px, 30vw, 400px);
  padding: 16px 16px 26px;
  border-radius: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.room:hover { transform: translateY(-8px); border-color: rgba(143,163,151,0.5); }
.room-art { position: relative; height: clamp(120px, 27vh, 330px); border-radius: 14px; overflow: hidden; margin-bottom: clamp(12px, 2.4vh, 22px); background: var(--a); }
.room-n { display: block; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--sage); margin: 0 6px 8px; }
.room h3 { font-size: clamp(1.3rem, 3vh, 1.7rem); margin: 0 6px clamp(6px, 1.2vh, 10px); }
.room p { color: var(--ink-2); font-size: 0.93rem; margin: 0 6px; }
.rooms-progress { margin: 0 var(--gutter); height: 1px; background: var(--line); }
.rooms-progress span { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }

/* Fotos dos ambientes */
.room-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.92); }
.room:hover .room-art img { transform: scale(1.06); filter: saturate(1.05); }

/* ---------- Processo ---------- */
.process { padding: clamp(100px, 16vh, 180px) 0; }
.process h2 { margin-bottom: 72px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.steps-line { position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.steps-line span { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }
.step { position: relative; padding-top: 70px; }
.step-n { position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--sage-d); font-size: 0.8rem; color: var(--sage); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 0.93rem; }
.step:nth-child(3) { transition-delay: 0.08s; }
.step:nth-child(4) { transition-delay: 0.16s; }
.step:nth-child(5) { transition-delay: 0.24s; }
.step:nth-child(6) { transition-delay: 0.32s; }

/* ---------- Diferenciais ---------- */
.values { padding: 0 0 clamp(100px, 16vh, 180px); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; padding: 0; }
.value { background: var(--bg); padding: 40px 32px; transition: background 0.5s; }
.value:hover { background: var(--bg-2); }
.value svg { width: 40px; height: 40px; fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 26px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- Contato ---------- */
.contact { position: relative; padding: clamp(120px, 20vh, 220px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.contact-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(108,124,113,0.28), transparent); pointer-events: none; }
.contact-inner { position: relative; display: grid; justify-items: center; }
.contact-title { font-size: clamp(2.2rem, min(6.4vw, 9vh), 5.6rem); margin-bottom: 26px; }
.contact p { color: var(--ink-2); max-width: 520px; margin-bottom: 40px; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 42px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer .brand { color: var(--ink); }
.footer-small { font-size: 0.8rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line span { transform-origin: top; transform: scaleY(0); }
  .step { padding: 4px 0 0 76px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav .btn-sm { padding: 0 14px; font-size: 0.78rem; }
  .brand span { display: none; }
  .hero { align-items: flex-end; padding-bottom: 130px; }
  .hero-bg::before { background-position: 30% 40%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(14,16,15,0.5) 0%, rgba(14,16,15,0.55) 25%, rgba(14,16,15,0.9) 58%, var(--bg) 100%); }
  .stage-head { top: 82px; }
  .stage-card { bottom: 22px; padding: 18px 20px 20px; border-radius: 16px; }
  .stage-card h3 { font-size: 1.3rem; }
  .stage-card p { font-size: 0.88rem; }
  .stage-count b { font-size: 1.8rem; }
  .stage-dots { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .room { width: 78vw; }
  .rooms-sticky { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-title .line > span { transition: none; opacity: 1; transform: none; }
}
