:root {
  color-scheme: light;

  /* Cores tiradas do logotipo */
  --red: #c61f12;
  --red-deep: #a3180c;
  --red-on-dark: #f0604c;
  --cream: #fdf7ec;

  --paper: #f5f0e7;
  --ink: #17130f;
  --ink-soft: #5c544b;
  --line: #17130f1f;
  --line-strong: #17130f38;

  --dark-text: #ece4d8;
  --dark-soft: #a99f93;
  --dark-line: #fdf7ec29;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 5vw, 3rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--red); color: var(--cream); }

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

main:focus { outline: none; }

.frame {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Tipografia base */

h1, h2, h3 {
  font-weight: 500;
  text-wrap: balance;
}

h1 em, h2 em, .statement__text em {
  font-family: var(--serif);
  font-size: 1.07em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 em, h2 em { color: var(--red); }

h1 {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.125rem, 4.6vw, 4.125rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.4375rem;
  height: 0.4375rem;
  flex: none;
  background: var(--red);
  content: "";
}

/* Botões e links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 100vmax;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { background: var(--red); }

.button--small {
  min-height: 2.5rem;
  padding: 0 1.05rem;
  font-size: 0.875rem;
}

.button__arrow { display: inline-block; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.text-link:hover { text-decoration-color: currentColor; }

.text-link--quiet { color: var(--ink-soft); }
.text-link--quiet:hover { color: var(--ink); }

/* Cabeçalho */

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #f5f0e7d9;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img { border-radius: 0.3125rem; }

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(3.5rem, 8vw, 7rem);
  scroll-margin-top: var(--header-h);
}

.hero__lead {
  max-width: 40ch;
  margin-top: 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
}

.hero__mark {
  justify-self: end;
  width: 100%;
  max-width: 30rem;
}

/* Marcas de corte, como numa prova de impressão */
.crop {
  --m: 1.25rem;
  --len: 0.75rem;
  --c: var(--line-strong);
  position: relative;
  padding: var(--m);
  background:
    linear-gradient(var(--c), var(--c)) 0 var(--m) / var(--len) 1px,
    linear-gradient(var(--c), var(--c)) var(--m) 0 / 1px var(--len),
    linear-gradient(var(--c), var(--c)) 100% var(--m) / var(--len) 1px,
    linear-gradient(var(--c), var(--c)) calc(100% - var(--m)) 0 / 1px var(--len),
    linear-gradient(var(--c), var(--c)) 0 calc(100% - var(--m)) / var(--len) 1px,
    linear-gradient(var(--c), var(--c)) var(--m) 100% / 1px var(--len),
    linear-gradient(var(--c), var(--c)) 100% calc(100% - var(--m)) / var(--len) 1px,
    linear-gradient(var(--c), var(--c)) calc(100% - var(--m)) 100% / 1px var(--len);
  background-repeat: no-repeat;
}

.crop img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 1.75rem 3.5rem -2rem #5a14094d;
}

.hero__meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__meta dt {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta dd {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

/* Seções */

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 17ch; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
}

.section-head__aside {
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Serviços */

.services {
  padding-block: clamp(5rem, 11vw, 9.5rem);
  scroll-margin-top: var(--header-h);
}

.service-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: baseline;
  gap: 1rem 2rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.service__index, .step__index {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.service__index { color: var(--ink-soft); }

.service__body p {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 100vmax;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Processo */

.process {
  padding-block: clamp(5rem, 11vw, 9.5rem);
  background: var(--ink);
  color: var(--dark-text);
  scroll-margin-top: var(--header-h);
}

.process .eyebrow { color: var(--dark-soft); }
.process h2 { color: var(--cream); }
.process h2 em { color: var(--red-on-dark); }
.process .section-head__aside { color: var(--dark-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
}

.step__index {
  display: block;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--dark-soft);
}

.step h3 {
  color: var(--cream);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
}

.step p {
  max-width: 34ch;
  margin-top: 0.75rem;
  color: var(--dark-soft);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Visão */

.statement { padding-block: clamp(5rem, 12vw, 10rem); }

.statement__text {
  max-width: 27ch;
  font-size: clamp(1.75rem, 3.7vw, 3.375rem);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.statement__text em { color: var(--red); }

.statement__note {
  display: flex;
  gap: 0.875rem;
  max-width: 54ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.statement__note::before {
  width: 0.4375rem;
  height: 0.4375rem;
  flex: none;
  margin-top: 0.6em;
  background: var(--red);
  content: "";
}

/* Contato */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--red);
  color: var(--cream);
  scroll-margin-top: var(--header-h);
}

/* Grão leve, como no logotipo */
.contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.1;
}

.contact :focus-visible { outline-color: var(--cream); }

.eyebrow--light { color: #fdf7ecd1; }
.eyebrow--light::before { background: var(--cream); }

.contact h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 8.4vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact h2 em { color: inherit; }

.contact__lead {
  max-width: 42ch;
  margin-top: 1.75rem;
  color: #fdf7ece0;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: 0.375rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__arrow {
  display: inline-block;
  font-family: var(--sans);
}

/* Rodapé */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}

.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { border-radius: 0.25rem; }

.site-footer__note {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer .text-link { margin-left: auto; font-size: 0.875rem; }

/* Responsivo */

@media (max-width: 64rem) {
  .service { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .service__body { grid-column: 2; }
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__mark {
    justify-self: start;
    max-width: min(22rem, 80%);
    margin-top: 3rem;
  }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step__index { margin-bottom: 1.25rem; }
}

@media (max-width: 40rem) {
  :root { --header-h: 3.75rem; }
  .site-nav { display: none; }
  .site-header .button { margin-left: auto; }
  .hero__meta { grid-template-columns: minmax(0, 1fr); gap: 1.125rem; }
  .service { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem 0.75rem; }
  .site-footer .text-link { margin-left: 0; }
  .site-footer__note { display: none; }
  .site-footer { justify-content: space-between; }
}

/* Movimento */

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

  .button, .site-nav a, .text-link {
    transition: background-color 180ms ease, color 180ms ease, text-decoration-color 180ms ease;
  }

  .button__arrow, .contact__arrow { transition: transform 220ms var(--ease); }
  .button:hover .button__arrow { transform: translateX(3px); }
  .contact__mail:hover .contact__arrow { transform: translate(3px, -3px); }

  .contact__mail { transition: background-size 320ms var(--ease); }
  .contact__mail:hover { background-size: 0 2px; background-position: 100% 100%; }

  .hero__copy > *, .hero__mark, .hero__meta {
    animation: rise 900ms var(--ease) both;
  }

  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__copy > :nth-child(4) { animation-delay: 200ms; }
  .hero__mark { animation-delay: 120ms; }
  .hero__meta { animation-delay: 320ms; }

  .has-reveal .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  }

  .has-reveal .reveal.is-visible { opacity: 1; transform: none; }

  .has-reveal .service:nth-child(2), .has-reveal .step:nth-child(2) { transition-delay: 80ms; }
  .has-reveal .service:nth-child(3), .has-reveal .step:nth-child(3) { transition-delay: 160ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}
