/* ==========================================================================
   FOLIO HOUSE — estilos
   Paleta: ivory, quase-preto, cinza quente + um único acento (tijolo).
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-2: #F5F4F1;
  --paper-3: #ECEAE5;
  --ink: #161513;
  --ink-2: #3B3833;
  --muted: #6A645B;
  --line: rgba(22, 21, 19, .14);
  --line-strong: rgba(22, 21, 19, .5);
  --accent: #B2472B;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1520px;
  --section: clamp(80px, 10vw, 160px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; transition: top .3s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.h1, .h2, .h3, .hero__title, .position__title, .dark__title, .final__title, .statement__big, .closer__big {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(3.4rem, 9vw, 9.5rem); line-height: .88; }
.h2 { font-size: clamp(2.4rem, 4.8vw, 5.2rem); line-height: .96; }
.h3 { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; }
h1 em, h2 em, h3 em, p em { font-style: italic; }
.big { font-size: clamp(1.25rem, 1.75vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; }
.lead { font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.35; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }

/* Section label — hairline index */
.label {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  margin-bottom: clamp(36px, 5vw, 80px);
}
.label span:nth-child(2) { text-align: center; }
.label span:last-child { text-align: right; color: var(--muted); }
.label--dark { border-color: rgba(244, 240, 232, .4); }
.label--dark span:last-child { color: #ADA597; }

.section { padding: var(--section) 0 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.btn:hover { background: var(--accent); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding: 6px 0;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
}
.link:not(.link--inline)::before { content: "→"; order: 2; transition: transform .5s var(--ease-out); }
.link:hover::before { transform: translateX(4px); }
.link--inline { font-size: inherit; padding: 0; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: .42em;
  font-weight: 600; font-size: 14px; letter-spacing: .2em;
}
.logo__mark {
  display: inline-block; width: .78em; height: 1em;
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: 1em 1em 0 0;
  transform: translateY(-.04em);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; }
.nav__links a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, 4px) scale(0); transition: transform .4s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: translate(-50%, 4px) scale(1); }
.nav__toggle { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 901px) { .menu { display: none !important; } }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.8rem, 12vw, 4.5rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line);
  transform: translateY(16px); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
}
.menu__links a small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.menu__foot p { font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Split words (hero) */
.w { display: inline-block; overflow: clip; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; vertical-align: top; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 45ms + .1s); }
.is-split .w > span { transform: none; }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { padding: calc(var(--nav-h) + clamp(24px, 3.4vw, 56px)) 0 0; }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.hero__copy { grid-column: 1 / span 6; }
.hero__title {
  font-size: clamp(3rem, 6.4vw, 8.4rem);
  line-height: .92;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.hero__title em { letter-spacing: -0.02em; }
.hl-chip {
  position: relative; display: inline-block; vertical-align: middle;
  width: 1.9em; height: .78em; margin: -.1em .04em 0;
  border-radius: 999px; overflow: hidden; background: var(--paper-3);
  transform: translateY(-.06em);
}
.hl-chip > span { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hl-chip > span.is-on { opacity: 1; }
.hl-chip > span::before, .hl-chip > span::after { content: ""; position: absolute; }
.chip-a { background: #F0EEDF; }
.chip-a::before { left: 16%; top: 24%; width: 44%; height: 52%; border-radius: 99px; background: #1F2A22; }
.chip-a::after { right: 14%; top: 50%; height: 34%; aspect-ratio: 1; border-radius: 50%; background: #F3D88A; transform: translateY(-50%); }
.chip-b { background: #F8D8E6; }
.chip-b::before { left: 14%; top: 24%; width: 46%; height: 52%; border-radius: 99px; background: #161513; }
.chip-b::after { right: 14%; top: 50%; height: 34%; aspect-ratio: 1; border-radius: 50%; background: #E83E8C; transform: translateY(-50%); }
.chip-c { background: #DDE6F1; }
.chip-c::before { left: 50%; top: 50%; height: 72%; aspect-ratio: 1; border-radius: 50%; background: #1F3558; transform: translate(-50%, -50%); }
.chip-c::after { left: 50%; top: 50%; height: 24%; aspect-ratio: 1; border-radius: 50%; background: #F1D9B5; transform: translate(-50%, -50%); }

.hero__intro .lead { max-width: 32ch; margin-bottom: 32px; }
.hero__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.stage { grid-column: 7 / -1; position: relative; aspect-ratio: 1 / .94; }
.stage__item { position: absolute; margin: 0; will-change: transform; }
.stage__item figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage__a { left: 0; top: 20%; width: 84%; z-index: 2; }
.stage__b { right: 0; top: 0; width: 58%; z-index: 1; }
.stage__b figcaption { display: none; }
.stage__c { right: 1%; bottom: 2%; width: 25%; z-index: 3; }
.stage__c figcaption { text-align: right; }

/* ==========================================================================
   MOCKS — mini-sites construídos em HTML/CSS (escalam com container queries)
   ========================================================================== */
.mock {
  --u: 1cqi;
  container-type: inline-size;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22,21,19,.06), 0 40px 80px -40px rgba(22,21,19,.35);
  isolation: isolate;
}
.mock__bar {
  height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #F7F5F1; border-bottom: 1px solid rgba(0,0,0,.06);
}
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #D8D3CA; }
.mock__bar span {
  margin: 0 auto; transform: translateX(-14px);
  font-size: 10px; color: #8C867C; letter-spacing: .02em;
  background: #EEEAE3; padding: 2px 14px; border-radius: 99px;
}
.mock__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--m-bg); color: var(--m-ink); }
.mock--wide .mock__screen { aspect-ratio: 21 / 9; }
.mock__page img { display: block; width: 100%; height: auto; }
.mock__page { container-type: inline-size; transition: transform 2.4s var(--ease-out); will-change: transform; }

.mock--phone { border-radius: 14% / 6.5%; padding: 3.5%; background: #151412; box-shadow: 0 40px 80px -30px rgba(22,21,19,.45); }
.mock--phone .mock__screen { aspect-ratio: 9 / 19; border-radius: 11% / 5.2%; }
.mock--phone .mock__screen::before {
  content: ""; position: absolute; z-index: 3; top: 1.6%; left: 50%; width: 30%; height: 2.6%;
  transform: translateX(-50%); border-radius: 99px; background: #151412;
}
.mock--phone .mock__page { --u: 1cqi; }

/* Shared mini-site primitives (u = 1% da largura do site) */
.m { font-family: var(--m-font, var(--sans)); background: var(--m-bg); color: var(--m-ink); min-height: 100cqh; }
.mock__screen { container-type: size; }
.m-nav { display: flex; align-items: center; gap: 3cqi; padding: 2.4cqi 4cqi; font-size: 1.2cqi; }
.m-logo { font-family: var(--m-hfont, var(--serif)); font-size: 2cqi; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.m-links { display: flex; gap: 2.4cqi; margin-left: auto; }
.m-links i { display: block; width: 4.5cqi; height: .55cqi; border-radius: 1cqi; background: currentColor; opacity: .28; }
.m-btn { display: inline-block; font-size: 1.1cqi; padding: .9cqi 1.8cqi; border-radius: 10cqi; border: 1px solid currentColor; white-space: nowrap; line-height: 1.2; }
.m-btn--solid { background: var(--m-ink); color: var(--m-bg); border-color: var(--m-ink); }
.m-eyebrow { display: block; font-size: 1.05cqi; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 2cqi; }
.m-h { font-family: var(--m-hfont, var(--serif)); font-weight: 400; line-height: .98; letter-spacing: -.02em; }
.m-lines { display: grid; gap: .9cqi; margin: 2.6cqi 0 3cqi; }
.m-lines i { display: block; height: .6cqi; border-radius: 1cqi; background: currentColor; opacity: .16; }
.m-sec { padding: 5cqi 4cqi; }
.m-rule { border-top: 1px solid currentColor; opacity: .18; }

/* Generic — demo */
.m--generic { --m-bg: #FBF9F5; --m-ink: #161513; --m-soft: #E9E3D8; }
.m--generic .m-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4cqi; padding: 4cqi 4cqi 5cqi; align-items: center; }
.m--generic .m-h { font-size: 5.6cqi; }
.m--generic .m-img { aspect-ratio: .85; background: var(--m-soft); border-radius: 1cqi; position: relative; overflow: hidden; }
.m--generic .m-img::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 64%; border-radius: 50% 50% 0 0; background: #D5CCBD; }
.m--generic .m-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqi; padding: 3cqi 4cqi; border-top: 1px solid var(--line); font-size: 1.3cqi; }
.m--generic .m-cols b { display: block; font-weight: 600; margin-bottom: .8cqi; }
.m--generic .m-cols span { opacity: .55; }

/* Phone layouts (u relative to phone width) */
.mock--phone .m-nav { padding: 12cqi 6cqi 4cqi; font-size: 3.4cqi; }
.mock--phone .m-logo { font-size: 5cqi; }
.mock--phone .m-burger { margin-left: auto; width: 6cqi; display: grid; gap: 1.4cqi; }
.mock--phone .m-burger i { display: block; height: 1px; background: currentColor; }
.mock--phone .m-sec { padding: 6cqi; }
.mock--phone .m-h { font-size: 15cqi; }
.mock--phone .m-eyebrow { font-size: 3cqi; }
.mock--phone .m-btn { font-size: 3.6cqi; padding: 3cqi 5cqi; }
.mock--phone .m-lines { gap: 2.4cqi; margin: 6cqi 0; }
.mock--phone .m-lines i { height: 1.6cqi; }

/* ==========================================================================
   02 O ENDEREÇO
   ========================================================================== */
.address__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(56px, 8vw, 120px); }
.address__head .h2 { grid-column: 1 / span 8; }
.address__intro { grid-column: 9 / -1; display: grid; gap: 16px; }
.address__intro p:last-child { color: var(--muted); }

/* Demo */
.demo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(32px, 4vw, 56px) 0; }
.demo__controls { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--paper-2); margin-bottom: clamp(32px, 4vw, 56px); position: relative; }
.demo__tab { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .4s, background .4s var(--ease); }
.demo__tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.demo__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.demo__col { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 32px; align-items: end; }
.demo__col--site { grid-template-columns: 1fr; gap: 16px; }
.demo__kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.demo__kicker em { font-style: normal; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transition: background .5s; }
.dot--live { background: var(--accent); box-shadow: 0 0 0 0 rgba(178,71,43,.4); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(178,71,43,.35); } 70% { box-shadow: 0 0 0 10px rgba(178,71,43,0); } 100% { box-shadow: 0 0 0 0 rgba(178,71,43,0); } }
[data-state="tomorrow"] .demo__col:first-child .dot { background: #BDB6AA; }

.profile { container-type: inline-size; border-radius: 14% / 6.5%; padding: 3.5%; background: #151412; box-shadow: 0 40px 80px -30px rgba(22,21,19,.45); }
.profile__screen { position: relative; aspect-ratio: 9 / 18; border-radius: 11% / 5.4%; background: #fff; overflow: hidden; color: #222; padding: 12cqi 5cqi 0; font-size: 4cqi; }
.profile__screen > *:not(.profile__off) { transition: filter .8s var(--ease), opacity .8s var(--ease); }
.profile__top { display: flex; justify-content: space-between; font-weight: 600; font-size: 4.4cqi; margin-bottom: 5cqi; }
.profile__dots { letter-spacing: .1em; }
.profile__head { display: flex; align-items: center; gap: 5cqi; margin-bottom: 4cqi; }
.profile__avatar { width: 22cqi; aspect-ratio: 1; border-radius: 50%; background: var(--paper-3); box-shadow: 0 0 0 1.2cqi #fff, 0 0 0 1.6cqi #ddd; flex: none; }
.profile__stats { display: grid; grid-template-columns: repeat(3, auto); grid-auto-flow: column; grid-template-rows: auto auto; gap: 0 4cqi; text-align: center; font-size: 3.6cqi; }
.profile__stats b { font-size: 4.4cqi; }
.profile__stats small { font-size: 3cqi; opacity: .6; }
.profile__bio { display: grid; gap: 1.8cqi; margin-bottom: 4cqi; }
.profile__bio b { font-size: 3.8cqi; }
.profile__bio i { display: block; height: 1.6cqi; width: 80%; border-radius: 1cqi; background: #E4E1DC; }
.profile__hl { display: flex; gap: 3.6cqi; margin-bottom: 4cqi; }
.profile__hl i { width: 13cqi; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ddd; background: #F2EFEA; }
.profile__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqi; margin: 0 -5cqi; }
.profile__grid i { aspect-ratio: 1; background: #D9D1C4; }
.profile__grid i:nth-child(2n) { background: #C8BBA8; }
.profile__grid i:nth-child(3n) { background: #E8E2D8; }
.profile__grid i:nth-child(5) { background: #9C8B75; }
.profile__off {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqi;
  text-align: center; padding: 10cqi; background: rgba(250,249,246,.8);
  opacity: 0; transition: opacity .8s var(--ease);
}
.profile__x { width: 20cqi; aspect-ratio: 1; border-radius: 50%; border: 1px solid #222; display: grid; place-items: center; font-size: 12cqi; line-height: 1; font-weight: 300; }
.profile__off b { font-size: 5.2cqi; }
.profile__off small { font-size: 3.8cqi; opacity: .6; line-height: 1.35; }
[data-state="tomorrow"] .profile__screen > *:not(.profile__off) { filter: grayscale(1) blur(3px); opacity: .45; }
[data-state="tomorrow"] .profile__off { opacity: 1; }

.demo__list { display: grid; gap: 10px; font-size: 15px; }
.demo__list li { display: flex; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.demo__list li span { width: 16px; color: var(--muted); }
.demo__list--off li { color: var(--muted); }
.demo__list--off li.demo__ask { color: var(--ink); font-family: var(--serif); font-size: 1.7rem; line-height: 1; border: 0; padding-top: 6px; }
.demo__note { font-size: 15px; color: var(--muted); }
[data-when] { transition: opacity .5s var(--ease); }
[data-state="today"] [data-when="tomorrow"], [data-state="tomorrow"] [data-when="today"] { display: none; }
.demo__col:first-child > .demo__list { grid-column: 2; grid-row: 2; }
.demo__caption { margin-top: clamp(32px, 4vw, 56px); max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.45; }
.demo__caption b { color: var(--ink); font-weight: 500; }

/* Statement */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(56px, 7vw, 104px) 0; align-items: end; }
.statement__big { grid-column: 1 / span 8; font-size: clamp(2.8rem, 5.6vw, 6.2rem); line-height: .94; letter-spacing: -.03em; }
.statement__big em { color: var(--accent); }
.statement__side { grid-column: 9 / -1; display: grid; gap: 20px; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.compare__col { padding: clamp(28px, 3vw, 44px) clamp(0px, 3vw, 48px) clamp(28px, 3vw, 44px) 0; }
.compare__col--plus { padding-left: clamp(24px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
.compare__head { margin-bottom: 28px; }
.compare__head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; }
.compare__head p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: clamp(15px, 1.1vw, 17px); }
.compare__col:first-child li { color: var(--muted); }
.compare__col:first-child li::before { content: "—"; color: var(--muted); }
.compare__col--plus li::before { content: "+"; color: var(--accent); font-weight: 500; }

/* Notes */

.closer { padding: clamp(24px, 4vw, 56px) 0 0; }
.closer__big { font-size: clamp(2.2rem, 5vw, 5.6rem); line-height: 1; letter-spacing: -.025em; max-width: 20ch; }
.closer__big em { display: block; color: var(--muted); }

/* ==========================================================================
   03 POSICIONAMENTO
   ========================================================================== */
.position__title { font-size: clamp(2.8rem, 7vw, 7.8rem); line-height: .92; letter-spacing: -.03em; max-width: 17ch; }
.position__title span { color: var(--muted); font-style: italic; }
.position__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 96px); }
.position__body .big { grid-column: 5 / span 5; }
.position__body p:last-child { grid-column: 10 / -1; color: var(--ink-2); font-size: 15.5px; }

/* ==========================================================================
   04 PROJETOS
   ========================================================================== */
.work__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(64px, 8vw, 128px); }
.work__head .h1 { grid-column: 1 / span 8; }
.work__disclaimer { grid-column: 9 / -1; color: var(--muted); font-size: 15px; max-width: 38ch; }

.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; row-gap: clamp(96px, 11vw, 180px); }
.piece { min-width: 0; }
.piece__media { display: block; width: 100%; text-align: left; border-radius: 12px; }
.piece__media .mock { transition: transform 1.2s var(--ease-out), box-shadow 1.2s var(--ease-out); }
.piece__media:hover .mock { transform: scale(1.012); box-shadow: 0 0 0 1px rgba(22,21,19,.06), 0 60px 100px -50px rgba(22,21,19,.45); }
.piece__media:hover .mock__page { transform: translateY(-34%); }
.mock--phone .mock__page, .piece__media:hover .mock--phone .mock__page { transform: none; }
.mock--phone .mock__page img { height: 100%; object-fit: cover; object-position: top; }
.mock--phone .mock__page { height: 100%; }
.piece__media--panel { background: #F8E3EC; aspect-ratio: 4 / 4.6; display: grid; place-items: center; overflow: hidden; border-radius: 12px; }
.piece__media--panel:hover .mock:not(.mock--phone) .mock__page { transform: translateY(-34%); }

.piece__meta { display: grid; gap: 6px; align-content: start; }
.piece__n { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.piece__n em { font-style: normal; border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.piece__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
.piece__seg { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.piece__desc { color: var(--ink-2); font-size: 15.5px; max-width: 36ch; margin-bottom: 14px; }

.piece--1 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.piece--1 .piece__media { grid-column: 1 / span 9; }
.piece--1 .piece__meta { grid-column: 10 / -1; align-self: end; }
.piece--2 { grid-column: 2 / span 5; }
.piece--3 { grid-column: 8 / -1; margin-top: clamp(40px, 9vw, 150px); }
.duo { position: relative; width: 86%; aspect-ratio: 1 / .94; }
.duo > div { position: absolute; }
.duo > div:first-child { left: 0; top: 6%; width: 100%; z-index: 1; }
.duo > div:last-child { right: -3%; bottom: 0; width: 34%; z-index: 2; }

/* ==========================================================================
   05 PARA QUEM
   ========================================================================== */
.who__title { max-width: 14ch; margin-bottom: clamp(32px, 4vw, 56px); }
.who__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.who__row { display: grid; gap: 12px; align-content: start; padding: 24px 0 8px; border-top: 1px solid var(--line-strong); }
.who__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.who__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.8vw, 4rem); line-height: 1; letter-spacing: -.025em; }
.who__desc { color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }

/* ==========================================================================
   06 SERVIÇOS
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.services__title { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); max-width: 10ch; }
.services__list { grid-column: 7 / -1; }
.service {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px;
  padding: 24px 0 26px; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__n { font-size: 12px; letter-spacing: .1em; color: var(--muted); padding-top: 14px; }
.service__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.8vw, 3.8rem); line-height: 1; letter-spacing: -.02em; transition: transform .8s var(--ease-out); }
.service__desc { grid-column: 2; color: var(--ink-2); max-width: 44ch; margin-top: 8px; }
.service__tag { grid-column: 2; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ==========================================================================
   07 PROCESSO
   ========================================================================== */
.process__title { max-width: 12ch; margin-bottom: clamp(56px, 7vw, 112px); }
.steps { --p: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; padding-top: 44px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.steps::after { background: var(--ink); transform: scaleX(var(--p)); transform-origin: left; transition: transform .2s linear; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; top: -49px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transition: background .4s; }
.step.is-past::before { background: var(--ink); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.step p { color: var(--ink-2); font-size: 15.5px; max-width: 26ch; }

/* ==========================================================================
   08 DIFERENCIAL (dark)
   ========================================================================== */
.dark { margin-top: var(--section); background: var(--ink); color: var(--paper); padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 13vw, 200px); }
.dark__title { font-size: clamp(3rem, 7.4vw, 8rem); line-height: .88; letter-spacing: -.035em; max-width: 12ch; }
.dark__title em { color: #C9C1B4; }
.dark__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 112px); }
.dark__body .big { grid-column: 5 / span 5; }
.dark__body p:last-child { grid-column: 10 / -1; color: #ADA597; font-size: 15.5px; }

/* ==========================================================================
   09 INVESTIMENTO
   ========================================================================== */
.invest__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.invest__grid .h2 { grid-column: 1 / span 6; max-width: 11ch; }
.invest__body { grid-column: 8 / -1; display: grid; gap: 36px; align-content: start; justify-items: start; }
.invest__factors { width: 100%; border-top: 1px solid var(--line); }
.invest__factors div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.invest__factors dt { font-weight: 500; }
.invest__factors dd { color: var(--muted); }
.invest__price { display: grid; gap: 4px; }
.invest__price small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.invest__price strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }

/* ==========================================================================
   10 FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq__side { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.accordion { grid-column: 7 / -1; border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; letter-spacing: -.01em;
  transition: color .3s;
}
.qa button:hover { color: var(--ink-2); }
.qa__i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .4s, border-color .4s, transform .6s var(--ease-out); }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease-out), background .4s; }
.qa__i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa button:hover .qa__i { border-color: var(--ink); }
.qa button[aria-expanded="true"] .qa__i { background: var(--ink); border-color: var(--ink); }
.qa button[aria-expanded="true"] .qa__i::before, .qa button[aria-expanded="true"] .qa__i::after { background: var(--paper); transform: translate(-50%, -50%) rotate(180deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease-out), visibility 0s .6s; }
.qa__panel > div { overflow: hidden; }
.qa__panel p { padding: 0 60px 28px 0; color: var(--ink-2); max-width: 58ch; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }

/* ==========================================================================
   11 CTA FINAL
   ========================================================================== */
.final { padding: var(--section) 0 clamp(96px, 12vw, 180px); }
.final__title { font-size: clamp(2.8rem, 6.4vw, 7.2rem); line-height: .9; letter-spacing: -.035em; max-width: 14ch; }
.final__title em { color: var(--accent); }
.final__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-top: clamp(48px, 6vw, 96px); }
.final__row .big { grid-column: 1 / span 5; max-width: 30ch; }
.final__btn {
  grid-column: 8 / -1; justify-self: end;
  display: inline-flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.02em;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
}
.final__circle {
  width: clamp(64px, 6vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: clamp(20px, 1.8vw, 28px);
  transition: background .5s var(--ease), transform .8s var(--ease-out);
}
.final__btn:hover .final__circle { background: var(--accent); transform: rotate(-45deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 120px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.footer__phrase { grid-column: 1 / span 6; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; max-width: 14ch; }
.footer__phrase em { color: #C9C1B4; }
.footer__nav { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer__nav:nth-child(2) { grid-column: 8 / span 2; }
.footer__nav:nth-child(3) { grid-column: 10 / -1; }
.footer__nav .eyebrow { color: #8F887C; margin-bottom: 8px; }
.footer__nav a { width: fit-content; position: relative; color: #D9D2C6; transition: color .3s; }
.footer__nav a:hover { color: var(--paper); }
.footer__word {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: clamp(3rem, 10.5vw, 13rem); letter-spacing: -.02em; line-height: 1;
  margin: clamp(40px, 5vw, 72px) 0 clamp(20px, 2.4vw, 32px);
  color: var(--paper);
}
.footer__word .logo__mark { width: .6em; height: .74em; border-width: .045em; transform: none; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(244,240,232,.18); font-size: 13px; color: #8F887C; }

html.is-locked { overflow: hidden; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .demo__grid { grid-template-columns: 1fr; }
  .demo__col { grid-template-columns: minmax(200px, 260px) 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
    position: relative; z-index: 60;
  }
  .nav__toggle i { display: block; width: 16px; height: 1px; background: var(--ink); transition: transform .5s var(--ease-out); }
  .nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { z-index: 60; }
  .nav.menu-open { background: var(--paper); border-color: transparent; transform: none; }

  .label { grid-template-columns: auto 1fr; }
  .label span:nth-child(2) { text-align: right; }
  .hide-sm { display: none; }

  /* Hero: tipografia e CTA primeiro, composição logo abaixo */
  .hero__grid { display: block; }
  .hero__title { font-size: clamp(2.9rem, 13.2vw, 6.4rem); margin-bottom: 24px; }
  .hero__intro .lead { max-width: 34ch; font-size: 1.15rem; margin-bottom: 28px; }
  .stage { width: calc(100% + var(--gutter)); aspect-ratio: 1 / 1.04; margin-top: 56px; }
  .stage__a { width: 90%; top: 4%; }
  .stage__b { display: none; }
  .stage__c { width: 34%; right: calc(var(--gutter) + 1%); bottom: 0; }

  .address__head, .statement, .position__body, .work__head, .services__grid, .invest__grid, .faq__grid, .dark__body, .final__row, .footer__top { display: block; }
  .address__intro { margin-top: 28px; }
  .statement__side, .position__body p:last-child, .dark__body p:last-child { margin-top: 24px; max-width: 46ch; }
  .position__body .big, .dark__body .big { max-width: 30ch; }
  .work__disclaimer { margin-top: 24px; }

  .compare { grid-template-columns: 1fr; }
  .compare__col { padding-right: 0; }
  .compare__col--plus { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); }
  .compare__col--plus { background: var(--paper-2); margin: 0 calc(var(--gutter) * -1); padding: 32px var(--gutter); }

  /* Projetos: ritmo alternado em vez de pilha uniforme */
  .works { display: flex; flex-direction: column; gap: 0; }
  .piece { display: block; margin-bottom: 88px; }
  .piece__meta { margin-top: 24px; }
  .piece--1 { display: block; }
  .piece--1 .piece__media { width: calc(100% + var(--gutter)); }
  .piece--2 { width: 88%; margin-left: auto; }
  .piece--3 { width: 92%; }
  .piece--3 { margin-top: 0; }
  .piece__meta--row { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .piece__meta--row .link { justify-self: start; }
  .piece__meta--row > * { grid-column: auto !important; }
  .stage__a figcaption { display: none; }
  .mock--wide .mock__screen { aspect-ratio: 4 / 3; }

  .who__list { grid-template-columns: 1fr; }
  .who__row { margin-bottom: 16px; }

  .services__title { position: static; margin-bottom: 40px; max-width: none; }
  
  .steps { grid-template-columns: 1fr; padding: 0 0 0 36px; gap: 40px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  .step::before { top: 8px; left: -36px; }

  .invest__body { margin-top: 40px; }
  .faq__side { position: static; margin-bottom: 40px; }
  .qa__panel p { padding-right: 0; }

  .final__btn { margin-top: 48px; }
  .footer__nav { margin-top: 40px; }
  .footer__top { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__phrase { grid-column: 1 / -1; }
  .footer__nav:nth-child(2), .footer__nav:nth-child(3) { grid-column: auto; }

}

@media (max-width: 600px) {
  .demo__col { grid-template-columns: 1fr 1fr; gap: 20px; }
  .demo__col--site { grid-template-columns: 1fr; }
  .demo__col:first-child > .demo__list { font-size: 14px; }
  .demo__list--off li.demo__ask { font-size: 1.4rem; }
  :root { --section: 64px; }
  .statement { padding: 48px 0; }
  .steps { gap: 28px; }
  .btn { height: 52px; }
  .hero__ctas { gap: 20px; }
  .final__btn { font-size: 2.4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .w > span { opacity: 1; transform: none; }
}

/* ---------- Barra de WhatsApp (celular) ---------- */
.wabar { display: none; }
@media (max-width: 900px) {
  .wabar {
    position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 22px; border-radius: 999px;
    background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500;
    box-shadow: 0 12px 32px -12px rgba(22, 21, 19, .55);
    transform: translateY(160%); visibility: hidden; transition: transform .7s var(--ease-out), visibility 0s .7s;
  }
  .wabar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .footer { padding-bottom: 96px; }
  .footer__nav a, .footer__bottom a, .link, .logo { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__nav { gap: 0; }
  .hero__ctas .link { min-height: 48px; }
}

main:focus { outline: none; }
