/* ============================================================
   CADERNO DE OBRA — DIÁRIO DE OBRA
   Sistema: papel de canteiro + verde de prancheta
   ============================================================ */

:root {
  --paper: hsl(38 40% 97%);
  --paper-deep: hsl(38 32% 93%);
  --surface: #ffffff;
  --ink: hsl(0 0% 3.6%);
  --ink-2: hsl(0 0% 45.1%);
  --line: hsl(0 0% 89.8%);
  --green: #1e5c41;
  --green-deep: #14402d;
  --green-grad-a: #166448;
  --green-grad-b: #1e7f5c;
  --red: hsl(0 84.2% 60.2%);
  --grid-ink: rgba(30, 92, 65, 0.07);

  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --serif: "Fraunces", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--green); color: var(--paper); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--green-deep);
  color: var(--paper);
  display: grid; place-items: center;
}
.preloader__inner { width: min(420px, 78vw); }
.preloader__label {
  font-size: 0.6875rem; letter-spacing: 0.22em;
  color: rgba(247, 244, 237, 0.6);
}
.preloader__count {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 300; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.preloader__pct { font-size: 0.4em; opacity: 0.5; margin-left: 0.1em; }
.preloader__bar {
  height: 3px; background: rgba(247, 244, 237, 0.15);
  border-radius: 2px; overflow: hidden; margin-top: 1rem;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-grad-a), #7dd3ae);
}
.preloader__meta {
  display: flex; justify-content: space-between;
  margin-top: 1.25rem; font-size: 0.625rem; letter-spacing: 0.18em;
  color: rgba(247, 244, 237, 0.45);
}

/* ============ HEADER ============ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__bar {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--green);
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); white-space: nowrap;
}
.brand__name em {
  font-style: italic; font-weight: 400; color: var(--green);
}
.site-nav {
  display: flex; gap: 1.75rem; margin-left: auto;
  font-size: 0.9rem; font-weight: 500;
}
.site-nav a { position: relative; padding: 0.35rem 0; color: var(--ink-2); transition: color 0.25s; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.head-progress {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.625rem; letter-spacing: 0.14em; color: var(--ink-2);
}
.head-progress__value {
  color: var(--green); font-weight: 600; min-width: 3ch; text-align: right;
  font-variant-numeric: tabular-nums;
}
.head-progress__track {
  width: 110px; height: 4px; border-radius: 2px;
  background: var(--line); overflow: hidden;
}
.head-progress__track span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-grad-a), var(--green-grad-b));
  border-radius: 2px;
}

.menu-btn {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; padding: 0.5rem; margin-left: auto;
}
.menu-btn span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.menu-btn.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 1rem var(--gutter) 1.5rem; }
.mobile-menu a {
  padding: 0.9rem 0; font-size: 1.15rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* ============ SHARED ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.6875rem; letter-spacing: 0.2em; font-weight: 500;
  color: var(--green);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex: none;
}
.eyebrow--light { color: #9fd8bd; }
.eyebrow--light .eyebrow__dot { background: #9fd8bd; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.015em;
  max-width: 22ch; margin-top: 1rem;
}
.section-title--light { color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 550; line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--green-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--green-deep); }
.btn--paper:hover { background: #fff; }
.btn__arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(72px + clamp(3rem, 7vw, 6rem)) var(--gutter) 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 70% 10%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, black 30%, transparent 78%);
}
.hero__inner {
  position: relative;
  max-width: 1440px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: minmax(0, 5.2fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  flex: 1;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 480; line-height: 1.06; letter-spacing: -0.022em;
  margin: 1.4rem 0 1.5rem;
}
.hero__title .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.hero__title .w > span { display: inline-block; will-change: transform; }
.hero__title em { font-style: italic; color: var(--green); }
.hero__lede {
  color: var(--ink-2); max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero__actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__facts {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.hero__facts dt { font-size: 0.5625rem; letter-spacing: 0.2em; color: var(--ink-2); }
.hero__facts dd { font-size: 0.8125rem; font-weight: 500; margin-top: 0.3rem; }
.status-ok { color: var(--green); }
.status-ok::before { content: "● "; font-size: 0.7em; vertical-align: 0.12em; }

.hero__scene { position: relative; }
.hero__scene-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.8rem, 2vw, 1.6rem);
  box-shadow: 0 24px 60px -30px rgba(20, 64, 45, 0.25);
}
#isoScene { width: 100%; height: auto; }
.hero__scene-tag {
  margin-top: 0.7rem; font-size: 0.5938rem; letter-spacing: 0.16em;
  color: var(--ink-2); text-align: right;
}

.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1rem 0; overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  font-size: 0.75rem; letter-spacing: 0.22em; color: var(--ink-2);
  will-change: transform;
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: var(--section-pad) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.manifesto__text {
  max-width: 1100px; margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 420; line-height: 1.12; letter-spacing: -0.02em;
  text-align: center;
}
.manifesto__text em { font-style: italic; color: var(--green); }
.manifesto__text .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.1em; margin-bottom: -0.1em;
}
.manifesto__text .w > span { display: inline-block; }

/* ============ ETAPAS ============ */
.etapas { position: relative; }
.etapas__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(72px + 2rem) var(--gutter) 3rem;
  overflow: hidden;
}
.etapas__head { max-width: 1440px; margin: 0 auto 3rem; width: 100%; }
.etapas__progress {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; font-size: 0.625rem; letter-spacing: 0.18em; color: var(--ink-2);
}
.etapas__progress-track {
  flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.etapas__progress-track span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-grad-a), var(--green-grad-b));
}
.etapas__track {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2rem);
  width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - 1440px) / 2));
  will-change: transform;
}
.etapa {
  width: clamp(300px, 34vw, 460px); flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  display: flex; flex-direction: column;
  transition: border-color 0.3s;
}
.etapa:hover { border-color: var(--green); }
.etapa__index {
  font-size: 0.625rem; letter-spacing: 0.2em; color: var(--green); font-weight: 500;
}
.etapa__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500;
  letter-spacing: -0.015em; margin: 0.8rem 0 0.7rem;
}
.etapa__desc { color: var(--ink-2); font-size: 0.98rem; }
.etapa__links { list-style: none; margin-top: 1.6rem; }
.etapa__links a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.85rem 0; font-size: 0.93rem; font-weight: 500;
  border-top: 1px solid var(--line);
}
.etapa__links .mono { font-size: 0.625rem; color: var(--green); letter-spacing: 0.1em; }
.etapa__arrow {
  margin-left: auto; color: var(--green);
  transform: translateX(-6px); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.etapa__links a:hover .etapa__arrow { transform: translateX(0); opacity: 1; }
.etapa__meta {
  margin-top: auto; padding-top: 1.4rem;
  font-size: 0.5938rem; letter-spacing: 0.18em; color: var(--ink-2);
}

/* ============ ARTIGOS ============ */
.artigos {
  padding: var(--section-pad) var(--gutter);
  max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto;
}
.artigos__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.featured {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.featured:hover {
  box-shadow: 0 30px 70px -35px rgba(20, 64, 45, 0.35);
  transform: translateY(-4px);
}
.featured__media {
  position: relative; background: var(--paper-deep);
  border-right: 1px solid var(--line);
  min-height: 300px;
  overflow: hidden;
}
.featured__media svg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.7s var(--ease-out); }
.featured:hover .featured__media svg { transform: scale(1.04); }
.featured__badge {
  position: absolute; top: 1.1rem; left: 1.1rem;
  background: var(--green); color: var(--paper);
  font-size: 0.5938rem; letter-spacing: 0.18em;
  padding: 0.45rem 0.8rem; border-radius: 999px;
}
.featured__body { padding: clamp(1.8rem, 3.4vw, 3rem); display: flex; flex-direction: column; }
.featured__tags { display: flex; gap: 1.2rem; font-size: 0.625rem; letter-spacing: 0.18em; color: var(--green); }
.featured__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -0.015em;
  margin: 1rem 0;
}
.featured__excerpt { color: var(--ink-2); font-size: 0.99rem; }
.featured__byline {
  margin-top: auto; padding-top: 1.6rem;
  font-size: 0.5938rem; letter-spacing: 0.16em; color: var(--ink-2);
}

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 24px 50px -28px rgba(20, 64, 45, 0.3);
}
.card__media {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 3 / 2; overflow: hidden;
}
.card__media svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.card:hover .card__media svg { transform: scale(1.06) rotate(-0.5deg); }
.card__tags {
  display: flex; gap: 1rem; padding: 1.1rem 1.3rem 0;
  font-size: 0.5938rem; letter-spacing: 0.18em; color: var(--green);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.22rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  padding: 0.6rem 1.3rem 0;
}
.card__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem 1.2rem; margin-top: auto;
  font-size: 0.625rem; letter-spacing: 0.14em; color: var(--ink-2);
}
.card__arrow {
  color: var(--green); font-size: 1rem;
  transition: transform 0.3s var(--ease-out);
}
.card:hover .card__arrow { transform: translateX(5px); }
.artigos__more { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

/* ============ CUSTOS ============ */
.custos {
  background: var(--green-deep);
  background-image: radial-gradient(90% 70% at 85% 0%, rgba(30, 127, 92, 0.35), transparent 60%);
  color: var(--paper);
  padding: var(--section-pad) var(--gutter);
}
.custos__inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.custos__lede {
  color: rgba(247, 244, 237, 0.72);
  margin: 1.4rem 0 2.2rem; max-width: 50ch;
}
.svg-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 244, 237, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem; margin-bottom: 2.2rem;
}
.svg-chart__head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.5938rem; letter-spacing: 0.16em;
  color: rgba(247, 244, 237, 0.55); margin-bottom: 1rem;
}
.svg-chart__delta { color: #7dd3ae; }
#curvaS { width: 100%; height: auto; }
.svg-chart__legend {
  display: flex; gap: 1.6rem; margin-top: 1rem;
  font-size: 0.5938rem; letter-spacing: 0.16em; color: rgba(247, 244, 237, 0.55);
}
.leg { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 0.5rem; }
.leg--dash { border-top: 2px dashed rgba(247, 244, 237, 0.5); }
.leg--solid { border-top: 2px solid #7dd3ae; }

/* --- Nota fiscal --- */
.custos__nota { position: relative; }
.nota {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px 4px 0 0;
  padding: 2rem 1.8rem 2.4rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.2deg);
  --punch: radial-gradient(circle at 50% 100%, transparent 7px, var(--surface) 7.5px);
}
.nota::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background-image: linear-gradient(45deg, var(--surface) 25%, transparent 25.5%),
    linear-gradient(-45deg, var(--surface) 25%, transparent 25.5%);
  background-size: 16px 16px;
  background-position: 0 0;
}
.nota__punch {
  position: absolute; top: 10px; left: 1.8rem; right: 1.8rem; height: 2px;
  background-image: linear-gradient(90deg, var(--line) 55%, transparent 0);
  background-size: 9px 2px;
}
.nota__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nota__title { font-size: 0.625rem; letter-spacing: 0.14em; font-weight: 600; }
.nota__num { font-size: 0.625rem; letter-spacing: 0.1em; color: var(--ink-2); }
.nota__party { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1.3rem; }
.nota__party .mono { font-size: 0.5625rem; letter-spacing: 0.16em; color: var(--ink-2); }
.nota__party strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 550; }
.nota__rule { border-top: 1px dashed var(--line); margin: 1.2rem 0; }
.nota__items { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.nota__item { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.nota__item-desc { font-size: 0.8rem; font-weight: 550; letter-spacing: 0.02em; display: flex; flex-direction: column; }
.nota__item-desc em { font-style: normal; font-size: 0.625rem; color: var(--ink-2); margin-top: 0.15rem; }
.nota__item-val { font-size: 0.85rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nota__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.nota__total .mono:first-child { font-size: 0.5938rem; letter-spacing: 0.16em; color: var(--ink-2); }
.nota__total strong {
  font-size: 1.5rem; font-weight: 600; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.nota__alloc {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1.3rem; padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 0.5625rem; letter-spacing: 0.12em; color: var(--ink-2);
}
.nota__alloc span:last-child { color: var(--green); font-weight: 600; }
.nota__stamp {
  position: absolute; left: 1.3rem; bottom: 4.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.7rem 1.1rem;
  border: 2.5px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.24em;
  transform: rotate(-8deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.nota__stamp::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid var(--green); border-radius: 5px; opacity: 0.5;
}
.nota__stamp small { font-size: 0.5rem; letter-spacing: 0.2em; font-weight: 500; }
.custos__nota-caption {
  margin-top: 2.2rem; text-align: center;
  font-size: 0.5938rem; letter-spacing: 0.18em;
  color: rgba(247, 244, 237, 0.45);
}

/* ============ NÚMEROS ============ */
.numeros { border-bottom: 1px solid var(--line); }
.numeros__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.numero {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.2rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.8rem;
}
.numero:first-child { border-left: 0; }
.numero__value {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 300; letter-spacing: -0.02em; line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.numero__label { font-size: 0.85rem; color: var(--ink-2); max-width: 24ch; }

/* ============ ASSINAR ============ */
.assinar { padding: var(--section-pad) var(--gutter); }
.assinar__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.assinar__title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 480; line-height: 1.1; letter-spacing: -0.02em;
  margin: 1.2rem 0 1.2rem;
}
.assinar__title em { font-style: italic; color: var(--green); }
.assinar__lede { color: var(--ink-2); max-width: 44ch; margin: 0 auto; }
.assinar__form {
  display: flex; gap: 0.7rem; justify-content: center;
  margin-top: 2.4rem; flex-wrap: wrap;
}
.assinar__input {
  flex: 1 1 300px; max-width: 380px;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem; color: var(--ink);
  transition: border-color 0.25s;
}
.assinar__input:focus { outline: none; border-color: var(--green); }
.assinar__input::placeholder { color: hsl(0 0% 65%); }
.assinar__note {
  margin-top: 1.4rem;
  font-size: 0.5938rem; letter-spacing: 0.2em; color: var(--ink-2);
}
.assinar__note.is-ok { color: var(--green); }
.assinar__note.is-error { color: var(--red); }

/* ============ FOOTER ============ */
.footer {
  background: var(--green-deep); color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  overflow: hidden;
}
.footer__mark {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 420; letter-spacing: -0.03em; line-height: 1;
  white-space: nowrap; text-align: center;
  color: rgba(247, 244, 237, 0.14);
  user-select: none;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.footer__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(247, 244, 237, 0.15);
}
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col-title {
  font-size: 0.5938rem; letter-spacing: 0.22em;
  color: rgba(247, 244, 237, 0.45); margin-bottom: 0.4rem;
}
.footer__col a {
  font-size: 0.95rem; color: rgba(247, 244, 237, 0.85);
  width: fit-content;
  transition: color 0.25s, transform 0.25s var(--ease-out);
}
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__base {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.5938rem; letter-spacing: 0.18em;
  color: rgba(247, 244, 237, 0.45);
}
.footer__base a { color: rgba(247, 244, 237, 0.7); transition: color 0.25s; }
.footer__base a:hover { color: #fff; }

/* ============ REVEAL PRIMITIVES ============ */
.reveal-line { opacity: 0; }
html.no-motion .reveal-line { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .head-progress { display: none; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero__scene, .hero__copy, .custos__copy, .custos__nota, .featured__media, .featured__body { min-width: 0; }
  .hero__scene { max-width: 560px; }
  .custos__inner { grid-template-columns: minmax(0, 1fr); }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured__media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; min-height: 0; }
  .featured__media svg { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-width: 0; }
  .card__media svg, .featured__media svg, #isoScene, #curvaS { width: 100%; height: auto; }
  .numeros__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numero:nth-child(odd) { border-left: 0; }
  .numero { border-top: 1px solid var(--line); }
  .numero:nth-child(-n + 2) { border-top: 0; }

  /* Etapas: fallback vertical */
  .etapas__pin { min-height: 0; padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
  .etapas__track { flex-direction: column; width: auto; padding: 0; }
  .etapa { width: auto; }
  .etapas__progress { display: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nota { transform: rotate(0deg); }
  .nota__stamp {
    left: 50%; right: auto; bottom: 38%;
    transform: translateX(-50%) rotate(-8deg);
    font-size: 0.82rem;
  }
}

/* ============================================================
   ESTRUTURA DE BLOG — hero compacto, ranking, artigo, CTAs
   ============================================================ */

/* ---- nav CTA para a página de venda ---- */
.site-nav__cta {
  color: var(--green) !important;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
  transition: background 0.25s, color 0.25s;
}
.site-nav__cta::after { display: none; }
.site-nav__cta:hover { background: var(--green); color: var(--paper) !important; }

/* ---- hero compacto ---- */
.hero--compact { min-height: 0; }
.hero--compact .hero__inner { padding-bottom: clamp(1rem, 3vw, 2rem); }
.hero--compact .hero__title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.hero--compact .marquee { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---- cards: contagem de leituras ---- */
.card__foot { gap: 0.8rem; }
.card__views { margin-left: auto; color: var(--green); }
.load-error {
  padding: 2rem 0; color: var(--ink-2);
  font-size: 0.6875rem; letter-spacing: 0.14em;
}

/* ---- mais lidos (ranking) ---- */
.ranking {
  padding: var(--section-pad) var(--gutter);
  max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto;
  padding-top: 0;
}
.ranking__list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.rank a {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.rank a:hover { background: var(--surface); }
.rank__pos {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300;
  color: var(--green); flex: none; width: 2ch;
  font-variant-numeric: tabular-nums;
}
.rank__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.rank__tags { font-size: 0.5938rem; letter-spacing: 0.18em; color: var(--green); }
.rank__title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500;
  line-height: 1.25; letter-spacing: -0.01em;
}
.rank__views {
  margin-left: auto; flex: none; text-align: right;
  display: flex; flex-direction: column; gap: 0.15rem;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rank__views small { font-size: 0.5rem; letter-spacing: 0.18em; color: var(--ink-2); }
.rank__arrow {
  flex: none; color: var(--green);
  transform: translateX(-6px); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.rank a:hover .rank__arrow { transform: translateX(0); opacity: 1; }

/* ---- página do artigo ---- */
.artigo-page main { padding-top: 72px; }
.post {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
}
.post__crumb {
  font-size: 0.625rem; letter-spacing: 0.18em; color: var(--ink-2);
}
.post__crumb a { color: var(--green); }
.post__crumb a:hover { text-decoration: underline; }
.post__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 1.1rem 0 1.2rem;
}
.post__meta {
  font-size: 0.625rem; letter-spacing: 0.16em; color: var(--ink-2);
}
.post__cover {
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.post__cover svg { width: 100%; height: auto; display: block; }

.post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

/* corpo do artigo */
.post__body {
  font-size: 1.0938rem; line-height: 1.75; color: var(--ink);
  max-width: 68ch;
}
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 550; line-height: 1.2; letter-spacing: -0.015em;
  margin-top: 2em;
  scroll-margin-top: 96px;
}
.post__body h3 {
  font-size: 1.1rem; font-weight: 600; margin-top: 1.8em;
}
.post__body strong { font-weight: 650; }
.post__body em { font-style: italic; }
.post__body a { color: var(--green); border-bottom: 1px solid currentColor; }
.post__body a.btn { border-bottom: none; }
.post__body a.btn--solid { color: var(--paper); }
.post__body a.btn--ghost { color: var(--ink); }
.post__body a.btn--ghost:hover { color: var(--paper); }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body li + li { margin-top: 0.45em; }
.post__body li::marker { color: var(--green); }
.post__body blockquote {
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.15em; font-style: italic; line-height: 1.5;
  color: var(--green-deep);
}
.post__body blockquote p { margin: 0; }
.post__body code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--paper-deep); border-radius: 4px;
  padding: 0.12em 0.4em;
}

/* CTA no meio do texto */
.midcta {
  border: 1px solid var(--green);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 2.2em 0 !important;
  display: flex; flex-direction: column; gap: 0.8rem;
  align-items: flex-start;
}
.midcta__eyebrow {
  font-size: 0.5625rem; letter-spacing: 0.2em; color: var(--green); font-weight: 500;
}
.midcta__text {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 500; line-height: 1.35;
  margin: 0 !important;
}

/* aside */
.post__aside {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.aside-card {
  background: var(--green-deep); color: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  background-image: radial-gradient(120% 90% at 90% 0%, rgba(30, 127, 92, 0.4), transparent 60%);
}
.aside-card__eyebrow { font-size: 0.5625rem; letter-spacing: 0.2em; color: #9fd8bd; }
.aside-card__title {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 500; line-height: 1.3;
}
.aside-card__text { font-size: 0.85rem; color: rgba(247, 244, 237, 0.7); }
.aside-card .btn { margin-top: 0.4rem; }
.aside-toc {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.aside-toc__title {
  font-size: 0.5625rem; letter-spacing: 0.2em; color: var(--ink-2);
  margin-bottom: 0.8rem; font-weight: 500;
}
.aside-toc ol { list-style: none; counter-reset: toc; }
.aside-toc li { counter-increment: toc; }
.aside-toc a {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.45rem 0; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-2); transition: color 0.2s;
}
.aside-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.5938rem; letter-spacing: 0.1em; color: var(--green);
}
.aside-toc a:hover { color: var(--ink); }

/* CTA de fim de artigo */
.post__endcta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--green-deep); color: var(--paper);
  border-radius: var(--radius);
  background-image: radial-gradient(90% 120% at 85% 0%, rgba(30, 127, 92, 0.4), transparent 60%);
}
.post__endcta-inner {
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  align-items: flex-start;
  max-width: 640px;
}
.post__endcta h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.015em;
}
.post__endcta p { color: rgba(247, 244, 237, 0.72); font-size: 0.98rem; }
.post__endcta .btn { margin-top: 0.5rem; }

/* relacionados */
.post__related { padding: var(--section-pad) 0 0; }
.cards--related { margin-top: 0; }

/* ---- responsivo das novas seções ---- */
@media (max-width: 1000px) {
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .post__aside > * { flex: 1 1 280px; }
}
@media (max-width: 720px) {
  .rank__views { display: none; }
  .rank__arrow { display: none; }
  .site-nav__cta { padding: 0.9rem 0 !important; border: 0; }
}

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