:root {
  --paper:      #f3efe7;
  --paper-2:    #ece7dc;
  --card:       #faf7f2;
  --ink:        #1c1916;
  --ink-soft:   #5c554b;
  --line:       #d8d0c0;
  --accent:     #b8451f;
  --accent-2:   #2f5d50;
  --topbar-bg:  rgba(243,239,231,.9);
  --ink-faint:  #766b5c;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  /* ── escala de espaçamento (base 8 px) ──────────────────────
     --s-1   8   micro: gaps de label, ícone+texto
     --s-2  16   compacto: spec, eyebrow gaps
     --s-3  24   padrão: cards, parágrafos, placeholders
     --s-4  32   médio: h2→texto, botão margin-top
     --s-5  40   texto → imagem  (regra fixa)
     --s-6  48   grids do hero e b-split
     --s-7  64   seções mobile, footer
     --s-8  80   hero padding-bottom, bloco tablet
     --s-9  96   seções desktop: hero, footer, cases
     --s-10 120  blocos de case study desktop
     ─────────────────────────────────────────────────────────── */
  --s-1:   8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  40px;
  --s-6:  48px;
  --s-7:  64px;
  --s-8:  80px;
  --s-9:  96px;
  --s-10: 120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* ─── layout ─── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .wrap { padding: 0 22px; } }

/* ─── topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; justify-content: space-between;
  align-items: center; height: 52px;
}
.topbar a, .topbar .crumb {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
  text-decoration: none;
  transition: color .5s cubic-bezier(.16,1,.3,1);
}
.topbar a:hover { color: var(--accent); }
.topbar .crumb { color: var(--ink-soft); }
.progress-bar {
  position: absolute; bottom: -1px; left: 0;
  height: 2px; background: var(--accent);
  width: 0%; transition: width .1s linear;
}

/* ─── hero ─── */
.hero { padding: var(--s-9) 0 var(--s-8); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6); align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--s-3);
  opacity: 0; animation: fadeIn .6s .2s forwards;
}
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: 80px;
  line-height: .94; letter-spacing: -.03em;
  overflow: hidden;
  padding-bottom: 0.15em;
}
@media (max-width: 900px) { h1 { font-size: 64px; } }
@media (max-width: 768px) { h1 { font-size: 52px; } }
.h1-line {
  display: block; opacity: 0;
  transform: translateY(105%);
  animation: slideUp .85s cubic-bezier(.16,1,.3,1) forwards;
}
.h1-line:nth-child(1) { animation-delay: .3s; }
.h1-line:nth-child(2) { animation-delay: .46s; }

.hero-right { opacity: 0; animation: fadeIn .8s .75s forwards; }
.hero-summary {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft); margin-bottom: var(--s-3);
}
.hero-summary b { color: var(--ink); font-weight: 600; }

/* imagem entre hero e Seção 01 */
.hero-img-strip {
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
.hero-mockup-full {
  display: block;
  width: 100%; max-width: 820px;
  margin: 0 auto;
  height: auto;
  opacity: 0; animation: fadeIn 1s .2s forwards;
}
@media (max-width: 900px) { .hero-mockup-full { max-width: 100%; } }

/* ─── spec boxes ─── */
.spec {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.spec-3 { grid-template-columns: repeat(3, 1fr); }
.spec > div {
  background: var(--paper-2);
  padding: var(--s-2); border-radius: 6px;
}
.spec .s-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: var(--s-1);
}
.spec .s-val { font-size: 13px; color: var(--ink-soft); }

/* ─── b-split ─── */
.b-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6); align-items: start;
}
.b-split .img-slot,
.b-split .img-slot img { border-radius: 8px; }
@media (max-width: 768px) { .b-split { grid-template-columns: 1fr !important; } }

/* ─── blocks ─── */
.block { padding: var(--s-10) 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: none; }
@media (max-width: 768px) { .block { padding: var(--s-8) 0; } }
.block-grid { display: grid; grid-template-columns: 1fr; }
.block-body { max-width: 62ch; }

/* ─── section eyebrow ─── */
.block-grid > div:first-child {
  display: flex; align-items: center;
  gap: var(--s-1); margin-bottom: var(--s-2);
}
.stage-num {
  order: 1;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--accent);
}
.stage-num::after { content: "──"; margin-left: var(--s-1); color: var(--ink-faint); }
.stage {
  order: 2;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}

/* ─── tipografia de bloco ─── */
h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: 32px;
  line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.body-text {
  font-size: 16px; color: var(--ink-soft);
  margin-bottom: var(--s-3); line-height: 1.72;
  font-weight: 400;
  text-wrap: pretty;
}
.body-text b { color: var(--ink); font-weight: 500; }

.sub-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: 18px;
  line-height: 1.3; letter-spacing: -.01em;
  color: var(--ink); margin: var(--s-5) 0 var(--s-1);
}
h2 + .sub-h { margin-top: 0; }

.keypoint {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500; font-size: 21px;
  line-height: 1.35; color: var(--ink);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  border-left: 3px solid var(--accent);
  margin: var(--s-5) 0; letter-spacing: -.01em;
}

/* ─── image slots ─── */
.img-slot {
  width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center;
  justify-content: center; position: relative;
  aspect-ratio: 16/9;
}
.img-slot img    { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.img-slot iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* texto → imagem: sempre var(--s-5) = 40px */
.full-slot { grid-column: 1 / -1; margin-top: var(--s-5); }


/* ─── idea grid / cards ─── */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.idea-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .idea-grid, .idea-grid-2 { grid-template-columns: 1fr !important; } }
.c-card {
  padding: var(--s-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.c-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--ink-faint);
  margin-bottom: var(--s-2);
}
.c-card .sub-h { margin-top: var(--s-2); }
.c-card .sub-h:first-child { margin-top: 0; }
.c-card .body-text { font-size: 14px; margin-bottom: 0; }
.prob-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-1);
}
.prob-list li {
  list-style: none;
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}


/* ─── reveal animations ─── */
[data-reveal] { will-change: opacity, transform; }
[data-reveal="up"] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal="up"].in { opacity: 1; transform: none; }
[data-reveal="fade"] { opacity: 0; transition: opacity .9s ease; }
[data-reveal="fade"].in { opacity: 1; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }

@keyframes slideUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn  { to { opacity: 1; } }

/* ─── mobile 430px ─── */
@media (max-width: 430px) {
  .hero { padding: var(--s-7) 0 var(--s-5); }
  .block { padding: var(--s-7) 0; }
  h1 { font-size: 44px; }
  .spec, .spec-3 { grid-template-columns: 1fr; }
}

/* ─── language switcher ─── */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--ink-faint); text-decoration: none;
  transition: color .3s;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.lang-switch span { color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .h1-line { opacity: 1 !important; transform: none !important; }
}
