:root {
  --bg: #0e0e0d;
  --surface: #181816;
  --surface-hover: #21211e;
  --text: #ebe8e1;
  --muted: #b4b0a7;
  --subtle: #8c887f;
  --line: #2a2926;
  --line-strong: #44433d;

  --serif: 'Gilda Display', 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(72px, 7.5vw, 112px);
  --header: 72px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-y: scroll;
}

/* Transição suave entre páginas (navegadores compatíveis) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Cabeçalho */

.header {
  border-bottom: 1px solid var(--line);
  view-transition-name: header;
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 24px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  margin-right: -0.42em;
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

/* Tipografia */

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 0 0 28px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 4.2vw + 18px, 84px);
  line-height: 1.06;
  max-width: 15ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.12;
  text-wrap: balance;
}

h3 {
  font-size: clamp(22px, 1.75vw, 27px);
  line-height: 1.25;
}

.lead {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin: 28px 0 0;
}

/* Botões */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.button.primary {
  background: var(--surface);
  border-color: var(--subtle);
}

.button.primary:hover {
  background: var(--surface-hover);
  border-color: var(--text);
}

.button.ghost:hover {
  background: var(--surface);
  border-color: var(--subtle);
}

/* Hero */

.hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 8.5vw, 120px);
}

/* Seções */

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* Atuação */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.grid-3 > div {
  padding: 36px 40px 4px 0;
}

.grid-3 > div + div {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.grid-3 .index {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--subtle);
  margin-bottom: 20px;
}

.grid-3 p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 40ch;
}

.list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 42ch;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--subtle);
}

/* O que entregamos */

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.deliverables > div {
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--line);
}

.deliverables > div:not(:nth-child(3n + 1)) {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.deliverables h3 {
  font-size: clamp(20px, 1.5vw, 24px);
}

.deliverables p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 40ch;
}

/* Como trabalhamos */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 32px 32px 4px 0;
}

.steps li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.steps .index {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--subtle);
  margin-bottom: 20px;
}

.steps p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Princípios */

.pillars {
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.pillar-name {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.pillar .num {
  width: 28px;
  flex: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--subtle);
}

.pillar p {
  color: var(--muted);
  margin: 0;
}

/* Encerramento */

.closing {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing h2 {
  font-size: clamp(36px, 4vw, 60px);
}

.closing p {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 44ch;
}

.closing .actions {
  justify-content: center;
  margin-top: 32px;
}

/* Páginas internas */

.page-head {
  padding: clamp(56px, 6.5vw, 96px) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(36px, 3.4vw + 16px, 72px);
}

.page-head .lead {
  margin-top: 24px;
}

.prose {
  max-width: 760px;
  padding: clamp(48px, 5.5vw, 80px) 0 var(--section);
}

.prose h2 {
  font-size: clamp(26px, 2.2vw, 32px);
  margin: 48px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 400;
}

.prose a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.updated {
  font-size: 13px;
  color: var(--subtle);
  margin: 20px 0 0;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
  padding-top: 3px;
}

.facts dd {
  margin: 0;
  color: var(--text);
}

.facts a {
  border-bottom: 1px solid var(--line-strong);
}

/* Rodapé */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 6vw, 80px) 0 32px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .wordmark {
  display: inline-block;
  color: var(--text);
  margin-bottom: 18px;
}

.footer p {
  margin: 0;
}

.footer-brand p {
  max-width: 30ch;
}

.footer-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 0 0 14px;
}

.footer .legal-name {
  color: var(--text);
  font-weight: 400;
}

.footer-grid a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

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

.footer-grid .wordmark {
  border-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* Telas largas: título da seção à esquerda, texto à direita */

@media (min-width: 1024px) {
  .prose {
    max-width: none;
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 48px;
    align-items: start;
  }

  .prose > * {
    grid-column: 2;
    max-width: 68ch;
  }

  .prose > h2,
  .prose > h2 + * {
    margin-top: 56px;
  }

  .prose > h2 {
    grid-column: 1;
    margin-bottom: 0;
    padding-right: 24px;
  }

  .prose > h2:first-child,
  .prose > h2:first-child + * {
    margin-top: 0;
  }

  .prose > .facts {
    max-width: none;
  }

  .prose > .facts:only-child {
    grid-column: 1 / -1;
  }
}

/* Notebook e tablet */

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

@media (max-width: 1023px) {
  .deliverables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deliverables > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  .deliverables > div:nth-child(even) {
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-bottom: 28px;
  }
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .grid-3 > div,
  .grid-3 > div + div {
    padding: 28px 0;
    border-left: 0;
  }

  .grid-3 > div + div {
    border-top: 1px solid var(--line);
  }

  .grid-3 .index {
    margin-bottom: 12px;
  }

  .grid-3 p,
  .list li {
    max-width: 60ch;
  }

  .deliverables,
  .steps {
    grid-template-columns: 1fr;
  }

  .deliverables > div,
  .deliverables > div:nth-child(even),
  .steps li,
  .steps li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .steps .index {
    margin-bottom: 12px;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .pillar p {
    padding-left: 56px;
  }
}

/* Celular */

@media (max-width: 640px) {
  :root {
    --header: 64px;
  }

  body {
    font-size: 15px;
  }

  .wordmark {
    font-size: 13px;
    letter-spacing: 0.34em;
    margin-right: -0.34em;
  }

  .nav {
    gap: 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
  }

  .actions {
    flex-direction: column;
    margin-top: 32px;
  }

  .button {
    width: 100%;
    height: 52px;
  }

  .pillar-name {
    gap: 20px;
  }

  .pillar p {
    padding-left: 48px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

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

  @view-transition {
    navigation: none;
  }
}
