/* =========================================================
   ORBE — estúdio de sistemas e sites
   Paleta estritamente neutra: papel, tinta e cinzas.
   ========================================================= */

:root {
  --paper:   #f2f0ed;
  --paper-2: #e8e5e0;
  --ink:     #0e0e0d;
  --ink-2:   #1a1a19;
  --grey-1:  #6f6c66;
  --grey-2:  #a3a09a;
  --line:    rgba(14, 14, 13, .14);
  --line-on-dark: rgba(242, 240, 237, .16);

  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- tipografia utilitária ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-bottom: 28px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -.02em;
}

/* máscara de linha usada nos títulos animados */
.line { display: block; overflow: hidden; }
.line > span { display: block; will-change: transform; }

/* ---------- cursor customizado ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
  display: grid;
  place-items: center;
}
.cursor__label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  white-space: nowrap;
}
@media (hover: none), (max-width: 860px) { .cursor { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--pad);
}
.loader__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}
.loader__word {
  font-family: var(--serif);
  font-size: clamp(40px, 9vw, 120px);
  line-height: 1;
}
.loader__count {
  font-size: clamp(40px, 9vw, 120px);
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}
.loader__count i { font-style: normal; }
.loader__bar {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: calc(var(--pad) - 10px);
  height: 1px;
  background: var(--line-on-dark);
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--paper);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: var(--paper);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -.01em;
}
.nav__logo sup { font-size: .45em; vertical-align: super; }
.nav__menu { display: flex; gap: 28px; font-size: 14px; }
.nav__menu a { position: relative; padding-bottom: 2px; }
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: .02em;
  will-change: transform;
}
@media (max-width: 860px) { .nav__menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(36px, 7vh, 90px);
}
.hero__meta {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-1);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-top: auto;
}
.hero__meta span:last-child { margin-left: auto; }
.hero__clock { font-variant-numeric: tabular-nums; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 11.5vw, 190px);
  line-height: .92;
  letter-spacing: -.03em;
}
.hero__title em { font-style: italic; color: var(--grey-1); }

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__desc {
  max-width: 46ch;
  color: var(--grey-1);
  font-size: clamp(15px, 1.15vw, 18px);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__scroll svg { width: 16px; height: 16px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 46px);
  letter-spacing: -.01em;
}
.marquee__track i { color: var(--grey-2); font-style: normal; }

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(90px, 16vh, 190px) var(--pad);
  max-width: 1180px;
}
.manifesto__text {
  font-size: clamp(22px, 3.1vw, 44px);
  line-height: 1.24;
  letter-spacing: -.02em;
}
.word { display: inline-block; will-change: opacity, transform; }

/* ---------- serviços ---------- */
.services {
  position: relative;
  padding: 0 var(--pad) clamp(80px, 12vh, 150px);
}
.services__head { margin-bottom: 48px; }

.services__list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3.2vh, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: calc(var(--pad) * -1); right: calc(var(--pad) * -1);
  top: 0; bottom: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease);
  z-index: 0;
}
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service:hover { color: var(--paper); }
.service > * { position: relative; z-index: 1; }
.service__num { font-size: 12px; letter-spacing: .08em; color: var(--grey-2); }
.service__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.02em;
}
.service__desc { color: var(--grey-1); font-size: 15px; max-width: 42ch; transition: color .5s var(--ease); }
.service:hover .service__desc { color: var(--grey-2); }
@media (max-width: 860px) {
  .service { grid-template-columns: 44px 1fr; }
  .service__desc { grid-column: 2; }
}

/* preview que segue o cursor */
.services__preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 210px;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
}
.preview__card {
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  opacity: 0;
  overflow: hidden;
}
.preview__card span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-1);
}
.preview__card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .services__preview { display: none; } }

/* ---------- trabalhos ---------- */
.works {
  background: var(--ink);
  color: var(--paper);
}
.works__pin {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 60px);
  overflow: hidden;
  padding: var(--pad) 0;
}
.works__head { padding: 0 var(--pad); }
.works__head .tag { color: var(--grey-2); margin-bottom: 14px; }
.works__track {
  display: flex;
  gap: clamp(20px, 3vw, 52px);
  padding: 0 var(--pad);
  will-change: transform;
}
.work { flex: 0 0 auto; width: clamp(260px, 30vw, 440px); }
.work__img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #171716;
  border: 1px solid var(--line-on-dark);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.work__img span {
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 96px);
  color: rgba(242, 240, 237, .1);
}
.work__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a2a28 0%, #131312 100%);
  transform: scale(1.18);
  transition: transform 1s var(--ease);
}
.work:hover .work__fill { transform: scale(1); }
.work__info { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.work__info h3 { font-weight: 500; font-size: 17px; }
.work__info p { font-size: 13px; color: var(--grey-2); text-align: right; }

.works__progress {
  margin: 0 var(--pad);
  height: 1px;
  background: var(--line-on-dark);
}
.works__progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--paper);
}

/* ---------- processo ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(90px, 15vh, 180px) var(--pad);
  align-items: start;
}
.process__sticky { position: sticky; top: 18vh; }
.process__note { margin-top: 24px; color: var(--grey-1); max-width: 34ch; font-size: 15px; }
.process__steps { display: flex; flex-direction: column; }
.step {
  border-top: 1px solid var(--line);
  padding: clamp(26px, 4vh, 46px) 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step span { font-size: 12px; letter-spacing: .08em; color: var(--grey-2); padding-top: 6px; }
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  margin-bottom: 10px;
}
.step p { color: var(--grey-1); font-size: 15px; max-width: 46ch; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
}

/* ---------- números ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(34px, 6vh, 66px) var(--pad);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; font-size: 13px; color: var(--grey-1); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- depoimento ---------- */
.quote {
  padding: clamp(90px, 16vh, 190px) var(--pad);
  max-width: 1100px;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 60px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.quote footer { margin-top: 32px; font-size: 13px; color: var(--grey-1); }

/* ---------- cta ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 18vh, 210px) var(--pad);
  text-align: center;
}
.cta .tag { color: var(--grey-2); }
.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 11vw, 180px);
  line-height: .94;
  letter-spacing: -.03em;
}
.cta__mail {
  display: inline-block;
  margin-top: clamp(34px, 6vh, 66px);
  border: 1px solid var(--line-on-dark);
  border-radius: 200px;
  padding: 18px 44px;
  font-size: clamp(15px, 1.5vw, 20px);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.cta__mail span { position: relative; z-index: 1; transition: color .5s var(--ease); }
.cta__mail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.cta__mail:hover::before { transform: translateY(0); }
.cta__mail:hover span { color: var(--ink); }
.cta__note { margin-top: 28px; color: var(--grey-2); font-size: 14px; }

/* ---------- rodapé ---------- */
.foot {
  background: var(--ink);
  color: var(--grey-2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px var(--pad) 44px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
}
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__col:last-child { text-align: right; }
.foot__col:nth-child(2) { flex-direction: row; gap: 22px; justify-content: center; }
.foot a:hover { color: var(--paper); }
@media (max-width: 860px) {
  .foot { grid-template-columns: 1fr; }
  .foot__col:last-child { text-align: left; }
  .foot__col:nth-child(2) { justify-content: flex-start; }
}

/* ---------- acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}
