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

html {
  scroll-behavior: smooth;
}

/* ── TOKENS ── */
:root {
  --bg: #0e0c0b;
  --bg2: #141210;
  --bg3: #1a1714;
  --orange: #c97b45;
  --orange2: #864d21;
  --white: #f2ede8;
  --off: #a89f96;
  --dim: #5c534c;
  --line: rgba(201, 123, 69, .14);
  --linew: rgba(242, 237, 232, .06);
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Instrument Sans', sans-serif;
  overflow-x: hidden;
}

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

/* ── CUSTOM CURSOR (desktop only) ── */
.custom-cursor {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(201, 123, 69, .8);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
}

/* ── TAG ── */
.tag {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ── REVEAL ── */
[data-r] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
}

[data-r].on {
  opacity: 1;
  transform: none;
}

[data-r="2"] {
  transition-delay: .12s;
}

[data-r="3"] {
  transition-delay: .22s;
}

[data-r="4"] {
  transition-delay: .32s;
}

[data-r="5"] {
  transition-delay: .42s;
}

[data-r="6"] {
  transition-delay: .52s;
}

/* ─────────────────────────────────
   NAV
───────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}

#nav.stuck {
  background: rgba(14, 12, 11, .95);
  backdrop-filter: blur(10px);
  padding: 14px 60px;
  border-color: var(--orange);
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: height .35s;
}

#nav.stuck .nav-logo img {
  height: 34px;
}

.nav-mid {
  display: flex;
  gap: 44px;
}

.nav-mid a {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--off);
  transition: color .25s;
}

.nav-mid a:hover {
  color: var(--white);
}

.nav-hamburger {
  display: none;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: rgba(14, 12, 11, 0.5);
  backdrop-filter: blur(20px);
  z-index: 800;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4rem 1rem;
  overflow: hidden;

  /* Painel some deslizando para fora */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .65s cubic-bezier(.16,1,.3,1), visibility 0s .65s;
}

.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .65s cubic-bezier(.16,1,.3,1), visibility 0s;
}

/* Borda viva sutil indicando a abertura */
.nav-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: var(--orange);
  opacity: .4;
}

.nav-drawer a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--off);
  padding: 10px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;

  /* Estado oculto: cada link some para baixo e com blur leve */
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: color .25s ease, transform .6s cubic-bezier(.16,1,.3,1), opacity .55s ease, filter .55s ease;
}

.nav-drawer a:hover {
  color: var(--white);
}

.nav-drawer.open a {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.nav-drawer.open a:nth-child(1) { transition-delay: .22s; }
.nav-drawer.open a:nth-child(2) { transition-delay: .30s; }
.nav-drawer.open a:nth-child(3) { transition-delay: .38s; }
.nav-drawer.open a:nth-child(4) { transition-delay: .46s; }

.nav-drawer.closing a {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: color .2s ease, transform .35s cubic-bezier(.4,0,1,1), opacity .3s ease, filter .3s ease;
}
.nav-drawer.closing a:nth-child(1) { transition-delay: .16s; }
.nav-drawer.closing a:nth-child(2) { transition-delay: .11s; }
.nav-drawer.closing a:nth-child(3) { transition-delay: .06s; }
.nav-drawer.closing a:nth-child(4) { transition-delay: 0s; }

.nav-socials {
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.nav-drawer.open .nav-socials {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .56s;
}
.nav-drawer.closing .nav-socials {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: 0s;
}

.nav-socials span {
  display: block;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 11px;
}

.nav-socials a {
  margin-right: 5px;
  font-size: 10px;
  letter-spacing: 2px;
  display: inline-flex;
  opacity: .8;
  transform: none;
  filter: none;
  padding: 0;
}

.nav-socials a:hover { opacity: 1; }

.svc-index {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--orange);
  line-height: 1;
  transition: color .25s;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 790;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: end;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 20px 20px;
}

.hero-left,
.hero-right,
.hero-scroll {
  position: relative;
  z-index: 2;
}

.hero-blob {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -250px;
  top: -150px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(201, 123, 69, .22) 0%,
      rgba(201, 123, 69, .12) 25%,
      rgba(201, 123, 69, .05) 45%,
      transparent 75%);
  filter: blur(80px);
  will-change: transform;
}

.hero-glass {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      transparent 0%,
      rgba(14, 12, 11, .25) 45%,
      rgba(14, 12, 11, .55) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-left {
  padding: 0 0 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
}

.hero-logo-v {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.hidden {
  opacity: 0;
}

.hero-caret {
  display: inline-block;
  width: 3px;
  height: .9em;
  background: var(--orange);
  margin-left: 6px;
  animation: blink .8s infinite;
}

.hero-caret.hidden {
  opacity: 0;
}

.hero-wordmark {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(90px, 10vw, 180px);
  line-height: .82;
  letter-spacing: -8px;
  white-space: pre-line;
  color: var(--orange);
}

.hero-subline {
  margin-top: 18px;
  min-height: 24px;
  color: var(--white);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.hero-right {
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
}

.hero-pre {
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadein .8s .35s forwards;
}

.hero-pre::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.hero-h {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(48px, 6.5vw, 100px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -3px;
}

.hero-h .l {
  display: block;
  overflow: hidden;
  padding: 2px;
}

.hero-h .l span {
  display: block;
  transform: translateY(110%);
  animation: slideup .9s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d);
}

.hero-h .stroke {
  -webkit-text-stroke: 1.5px var(--orange);
  color: transparent;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  animation: fadein .8s .9s forwards;
}

.hero-desc {
  font-size: 14px;
  color: var(--off);
  line-height: 1.85;
  font-weight: 300;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 80px;
  right: 60px;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadein .8s 1.1s forwards;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 52px;
  background: var(--orange);
}

/* ─────────────────────────────────
   BUTTONS
───────────────────────────────── */
.btn-fill {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--bg);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background .25s;
  display: inline-block;
}

.btn-fill:hover {
  background: var(--orange2);
}

.btn-line {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--dim);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}

.btn-line:hover {
  color: var(--white);
  border-color: var(--white);
}

.btn-border {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 14px 36px;
  cursor: pointer;
  background: none;
  transition: border-color .3s, color .3s, transform .2s, box-shadow .2s;
}

.btn-border:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(201, 123, 69, .1);
}

/* ─────────────────────────────────
   SECTION UTILITY
───────────────────────────────── */
.sec {
  padding: 120px 60px;
}

.sec-head {
  margin-bottom: 72px;
}

.sec-head .tag {
  margin-bottom: 18px;
}

.sec-h {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--white);
}

.sec-h b {
  color: var(--orange);
  font-weight: 900;
}

/* ─────────────────────────────────
   ABOUT — editorial, estilo revista
   Headline grande + manifesto em texto corrido +
   faixa de métricas separadas por linhas finas.
───────────────────────────────── */
#about {
  background: var(--bg);
  padding: 160px 60px;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.about-col-text {
  display: flex;
  flex-direction: column;
}

.about-head {
  margin-bottom: 40px;
}

.about-head .tag {
  margin-bottom: 24px;
}

.about-headline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
}

.about-headline .stroke {
  -webkit-text-stroke: 1.5px var(--orange);
  color: transparent;
}

.about-headline .about-fill {
  color: var(--orange);
}

.about-big {
  font-family: 'Unbounded', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--orange);
}

.about-manifesto {
  max-width: 560px;
  padding-left: 28px;
  border-left: 2px solid var(--orange);
}

.about-manifesto p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--off);
  font-weight: 300;
  letter-spacing: -.2px;
}

.about-manifesto em {
  font-style: italic;
  color: var(--white);
  font-weight: 400;
}

/* ── ELEMENTO GRÁFICO — cubo isométrico com órbitas ──
   Substitui foto: mantém a identidade gráfica em outline
   laranja sobre fundo escuro, com leve flutuação contínua. */
.about-col-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-graphic {
  width: 100%;
  max-width: 380px;
  height: auto;
  overflow: visible;
}

.about-graphic-cube {
  transform-box: fill-box;
  transform-origin: center;
  animation: aboutCubeFloat 7s ease-in-out infinite;
}

@keyframes aboutCubeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

.about-graphic-diamond {
  transform-box: fill-box;
  transform-origin: center;
  animation: aboutDiamondPulse 4s ease-in-out infinite;
}

@keyframes aboutDiamondPulse {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}

.about-graphic-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: aboutOrbitSpin 30s linear infinite;
}

.about-graphic-orbit.orbit-2 {
  animation-direction: reverse;
  animation-duration: 42s;
}

@keyframes aboutOrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.about-graphic-dot {
  animation: aboutDotBlink 3s ease-in-out infinite;
}
.about-graphic-dot.dot-2 { animation-delay: .8s; }
.about-graphic-dot.dot-3 { animation-delay: 1.6s; }

@keyframes aboutDotBlink {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}

#services {
  background: var(--bg2);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 50px 0;
}

.svc-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 320px;

  padding: 32px;

  background: rgba(255, 255, 255, .02);

  border: 1px solid var(--linew);

  transition:
    transform .35s,
    border-color .35s,
    background .35s;
}

.svc-card:hover {
  transform: translateY(-8px);

  border-color: rgba(201, 123, 69, .45);

  background:
    linear-gradient(180deg,
      rgba(201, 123, 69, .08),
      transparent);
}

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 24px;
}

.svc-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 2px;
}

.svc-arrow {
  font-size: 20px;
  color: var(--orange);

  opacity: .4;

  transition:
    transform .3s,
    opacity .3s;
}

.svc-top i {
  color: var(--orange);
}

.svc-title {
  font-family: 'Unbounded', sans-serif;

  font-size: 26px;
  line-height: 1.1;

  margin-bottom: 20px;
}

.svc-desc {
  color: var(--dim);

  font-size: 14px;
  line-height: 1.8;

  margin-bottom: auto;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.svc-tag {
  transition:
    color .3s,
    border-color .3s,
    background .3s;
}

.svc-card:hover .svc-tag {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(201, 123, 69, .08);
}

.svc-card:hover .svc-desc {
  color: var(--white);
}

.svc-tag {
  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1px;

  padding: 6px 10px;

  border: 1px solid var(--linew);

  color: var(--dim);
}

/* ─────────────────────────────────
   NUMBERS
───────────────────────────────── */
#numbers {
  border-top: 1px solid var(--linew);
  border-bottom: 1px solid var(--linew);
  background: var(--bg);
}

.num-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.num-cell {
  padding: 72px 52px;
  border-right: 1px solid var(--linew);
}

.num-cell:last-child {
  border-right: none;
}

.num-val {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--orange);
  margin-bottom: 12px;
}

.num-lbl {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
}

/* ─────────────────────────────────
   PROCESS
───────────────────────────────── */
#process {
  background: var(--bg2);
  padding: 120px 60px;
}

.proc-grid {
  display: flex;
  flex-direction: column;
  margin-top: 72px;
  border-top: 1px solid var(--linew);
}

.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 40px;
  padding: 44px 8px;
  border-bottom: 1px solid var(--linew);
  background: transparent;
  transition: padding-left .4s cubic-bezier(.16,1,.3,1), background .35s ease;
  overflow: hidden;
}

/* Linha vertical que cresce verticalmente no hover, atrás do número */
.pstep::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--orange);
  transition: height .5s cubic-bezier(.16,1,.3,1);
}

.pstep:hover {
  background: rgba(201, 123, 69, .03);
  padding-left: 28px;
}

.pstep:hover::before {
  height: 100%;
}

.pstep-n {
  font-family: 'Unbounded', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--orange);
  transition: -webkit-text-stroke-color .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
  margin-bottom: 0;
}

.pstep:hover .pstep-n {
  -webkit-text-stroke-color: var(--orange);
  transform: translateX(4px);
}

.pstep-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.pstep-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.2;
  transition: color .35s ease;
}

.pstep:hover .pstep-title {
  color: var(--orange2);
}

.pstep-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.85;
  max-width: 520px;
  transition: color .35s ease;
}

.pstep:hover .pstep-desc {
  color: var(--off);
}

/* Seta sutil que aparece à direita no hover, reforçando direção */
.pstep-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translate(8px, -50%);
  width: 18px;
  height: 18px;
  opacity: 0;
  color: var(--orange);
  transition: opacity .35s ease, transform .4s cubic-bezier(.16,1,.3,1);
}

.pstep:hover .pstep-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ─────────────────────────────────
   PORTFOLIO
───────────────────────────────── */
#portfolio {
  background: var(--bg);
  padding: 120px 60px 0;
}

.port-head {
  margin-bottom: 56px;
}

.port-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 2px;
  justify-content: center;
}

.pf {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 24px;
  background: var(--bg2);
  color: var(--dim);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
}

.pf:hover {
  color: var(--off);
  border-top-color: var(--orange);
}

.pf.active {
  background: var(--orange);
  color: var(--bg);
  border-color: var(--orange);
}

.pf.active:hover {
  background: var(--orange2);
  border-color: var(--orange2);
}

.port-desktop {
  display: grid;
}

.port-mobile {
  display: none;
}

.port-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.port-item {
  border: 2px solid var(--linew);
  position: relative;
  overflow: visible;
  aspect-ratio: 4/5;
  transition: opacity .4s, transform .4s;
  cursor: pointer;
}

.port-item:hover {
  border-top: 1px solid var(--orange);
}

.port-item.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.port-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.port-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}

.port-item:hover .port-bg img {
  transform: scale(1.08);
}

.port-item:hover .port-ghost {
  color: rgba(201, 123, 69, .06);
}

.port-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  background: linear-gradient(to top, rgba(14, 12, 11, 0.815) 75% ,transparent);
  transform: translateY(6px);
  opacity: 0;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  overflow: visible;
}

.port-item:hover .port-info {
  transform: none;
  opacity: 1;
}

.port-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
  grid-column: 1;
}

.port-name {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 4px;
  grid-column: 1;
}

.port-sub {
  font-size: 12px;
  color: var(--off);
  grid-column: 1;
}

.btn-redirect {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
  flex-shrink: 0;
  font-size: 18px;
  position: relative;
}

.btn-redirect:hover {
  background: var(--orange);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-redirect::after {
  content: 'Visitar';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  padding: 8px 12px;
  background: var(--orange);
  border-radius: 8px;
  color: var(--bg);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 30px rgba(201, 123, 69, .15);
  z-index: 10;
}

.btn-redirect::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: 9;
}

.btn-redirect:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-redirect:hover::before {
  opacity: 1;
}

.port-more {
  padding: 48px 60px;
  display: flex;
  justify-content: center;
}

.portpage {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 120px 60px;
  justify-content:center;
  align-items:center;
}

.port-warning {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 50px 0;
  font-size: 16px;
  color: var(--dim);
  letter-spacing: 1.5px;

  border: 1px solid var(--linew);
  border-radius: 12px;
  padding: 48px 60px;
  max-width: 500px
}

/* ─────────────────────────────────
   TESTIMONIALS
───────────────────────────────── */
#testi {
  background: var(--bg2);
  padding: 120px 60px;
}

/* Desktop grid / Mobile carousel toggle */
.testi-desktop {
  display: grid;
}

.testi-mobile {
  display: none;
}

.testi-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--linew);
  margin-top: 72px;
}

.tcard {
  background: var(--bg2);
  padding: 44px 40px;
  border-top: 2px solid transparent;
  transition: border-color .3s, background .3s;
}

.tcard:hover {
  background: var(--bg3);
  border-color: var(--orange);
}

.tcard-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}

.tstar {
  width: 12px;
  height: 12px;
  background: var(--orange);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tcard-text {
  font-size: 13px;
  color: var(--off);
  line-height: 1.95;
  font-style: italic;
  margin-bottom: 36px;
  font-weight: 300;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tcard-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}

.tcard-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -.2px;
}

.tcard-role {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─────────────────────────────────
   CONTACT
───────────────────────────────── */
#contact {
  background: var(--bg);
  padding: 120px 60px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-l .tag {
  margin-bottom: 20px;
}

.contact-h {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.contact-h b {
  color: var(--orange);
}

.contact-desc {
  font-size: 14px;
  color: var(--off);
  line-height: 1.85;
  font-weight: 300;
  max-width: 360px;
}

.contact-links {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s;
}

.c-link::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width .3s;
  flex-shrink: 0;
}

.c-link:hover {
  color: var(--orange);
}

.c-link:hover::before {
  width: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ff.error input,
.ff.error textarea,
.ff.error select{
    border-color:#ff5d5d;
}

.ff.error{
    position:relative;
}

.ff small{
    display:block;
    margin-top:8px;
    color:#ff5d5d;
    font-size:11px;
    letter-spacing:.5px;
}

.ff input,
.ff textarea,
.ff select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid transparent;
  padding: 18px 20px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: var(--white);
  outline: none;
  transition: border-color .25s;
  resize: none;
}

.ff input::placeholder,
.ff textarea::placeholder {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ff select {
  color: var(--dim);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: var(--bg2);
  border: 1px solid transparent;

  box-shadow: none;
  outline: none;
}

.ff select option {
  background: var(--bg2);
  color: var(--white);
}

.ff input:focus,
.ff textarea:focus,
.ff select:focus {
  border-color: var(--orange);
}

.form-send {
  width: 100%;
  padding: 20px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .25s;
  margin-top: 2px;
}

.form-send:hover {
  background: var(--orange2);
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--linew);
  padding: 30px 60px 20px;
  overflow: hidden;
}

.foot-inner {
  position: relative;
  z-index: 1;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--linew);
}

.foot-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 20px;
}

.foot-brand p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 220px;
  font-weight: 300;
}

.foot-col-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.foot-col a {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px;
  transition: color .25s;
  letter-spacing: .3px;
}

.foot-col a:hover {
  color: var(--orange);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.foot-copy {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-copy span {
  color: var(--orange);
}

.foot-soc {
  display: flex;
  gap: 28px;
}

.foot-soc a {
  font-size: 25px;
  color: var(--dim);
  transition: color .25s;
}

.foot-soc a:hover {
  color: var(--orange);
}

/* ─────────────────────────────────
   WHATSAPP FAB
───────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 950;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  overflow: visible;

  /* Oculto por padrão — aparece só quando .show é aplicada via JS */
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}

.whatsapp-fab.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.whatsapp-fab.show:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
}

.whatsapp-fab::before {
  content: 'Fale conosco';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--bg2);
  border: 1px solid var(--linew);
  color: var(--white);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.whatsapp-fab.show:hover::before {
  opacity: 1;
}

/* ─────────────────────────────────
   KEYFRAMES
───────────────────────────────── */
@keyframes fadein {
  to {
    opacity: 1;
  }
}

@keyframes slideup {
  to {
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ─────────────────────────────────
   TABLET  769px – 1024px
───────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  #nav {
    padding: 20px 36px;
  }

  #nav.stuck {
    padding: 12px 36px;
  }

  .nav-mid {
    gap: 28px;
  }

  #hero {
    padding: 120px 0 60px;
  }

  .hero-left {
    padding: 0 0 0 36px;
  }

  .hero-right {
    padding: 0 36px;
  }

  .hero-wordmark {
    font-size: clamp(70px, 9vw, 120px);
  }

  #about,
  .contact-wrap {
    gap: 48px;
  }

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

  .testi-grid .tcard:last-child {
    grid-column: 1/-1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .num-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .num-cell {
    padding: 52px 36px;
  }

  .foot-top {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .svc-item {
    grid-template-columns: 50px 1fr 1fr auto;
    gap: 28px;
  }

  .sec,
  #process,
  #testi,
  #contact,
  #about {
    padding-left: 36px;
    padding-right: 36px;
  }

  #portfolio {
    padding-left: 36px;
    padding-right: 36px;
  }

  .port-more {
    padding-left: 36px;
    padding-right: 36px;
  }

  footer {
    padding: 64px 36px 40px;
  }

  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {

  .custom-cursor {
    display: none;
  }

  /* ── NAV ── */
  #btn-header {
    display: none;
  }

  #nav {
    padding: 16px 20px;
  }

  #nav.stuck {
    padding: 12px 20px;
  }

  .nav-mid {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: transform .3s, opacity .3s;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-drawer {
    width: 75%;
    padding: 5rem 1.5rem 2.5rem;
  }

  .nav-drawer a {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .nav-socials a {
    font-size: 10px;
  }

  /* ── HERO ── */
  #hero {
    grid-template-columns: 1fr;
    padding: 110px 20px 60px;
    min-height: 100svh;
  }

  .hero-left {
    padding: 0;
  }

  .hero-right {
    padding: 36px 0 0;
    gap: 28px;
  }

  .hero-wordmark {
    font-size: clamp(72px, 22vw, 110px);
    letter-spacing: -5px;
  }

  .hero-subline {
    font-size: 18px;
    letter-spacing: 1.5px;
    margin-top: 12px;
  }

  .hero-pre {
    font-size: 9px;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .hero-h {
    font-size: clamp(36px, 11vw, 56px);
    letter-spacing: -2px;
  }

  .hero-desc {
    font-size: 13px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-fill {
    width: 100%;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

  /* ── SECTION PADDING ── */
  .sec,
  #process,
  #testi,
  #contact,
  #about {
    padding: 72px 20px;
  }

  #portfolio {
    padding: 72px 20px 0;
  }

  /* ── ABOUT ── */
  #about {
    padding: 80px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-col-graphic {
    order: 2;
  }

  .about-graphic {
    max-width: 260px;
  }

  .about-head {
    margin-bottom: 32px;
  }

  .about-headline {
    font-size: clamp(30px, 9vw, 44px);
    letter-spacing: -1px;
  }

  .about-manifesto {
    padding-left: 18px;
  }

  .about-manifesto p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* ── SERVICES ── */
  #services {
    padding: 80px 24px;
  }

  .svc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 40px;
  }

  .svc-header-right {
    max-width: 100%;
    text-align: left;

    font-size: 13px;
    line-height: 1.8;
  }

  .svc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svc-card {
    min-height: auto;

    padding: 24px;

    border-radius: 12px;
    border-color: rgba(201, 123, 69, .45);

    background:
      linear-gradient(180deg,
        rgba(201, 123, 69, .08),
        transparent);
  }

  .svc-top {
    margin-bottom: 18px;
  }

  .svc-num {
    font-size: 11px;
  }

  .svc-title {
    font-size: 22px;
    line-height: 1.15;

    margin-bottom: 14px;
  }

  .svc-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--off);
    margin-bottom: 20px;
    text-align: justify;
  }

  .svc-tags {
    gap: 6px;
    margin-top: 0;
  }

  .svc-tag {
    font-size: 8px;
    padding: 5px 8px;
    color: var(--orange);
    border-color: var(--orange);
  }

  /* ── NUMBERS ── */
  .num-row {
    grid-template-columns: 1fr 1fr;
  }

  .num-cell {
    padding: 40px 24px;
    border-right: 1px solid var(--linew);
    border-bottom: 1px solid var(--linew);
  }

  .num-cell:nth-child(2),
  .num-cell:nth-child(4) {
    border-right: none;
  }

  .num-cell:nth-child(3),
  .num-cell:nth-child(4) {
    border-bottom: none;
  }

  .num-val {
    font-size: clamp(40px, 12vw, 60px);
  }

  /* ── PROCESS ── */
  .proc-grid {
    margin-top: 40px;
  }

  .pstep {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 32px 8px;
  }

  .pstep:hover {
    padding-left: 8px;
  }

  .pstep-n {
    font-size: 36px;
    -webkit-text-stroke-color: var(--orange);
  }

  .pstep-arrow {
    display: none;
  }

  /* ── PORTFOLIO ── */
  .port-head {
    margin-bottom: 32px;
  }

  .port-more {
    padding: 32px 0;
  }

  .btn-border {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Desktop grid hidden, mobile carousel visible */
  .port-desktop {
    display: none !important;
  }

  .port-mobile {
    display: block;
  }

  .port-carousel {
    overflow: hidden;
    position: relative;
    margin-top: 8px;
  }

  .port-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
  }

  .port-slide {
    min-width: 100%;
    aspect-ratio: 4/3;
    box-sizing: border-box;
    overflow: hidden;
  }

  .port-item {
    height: 350px;
  }

  .port-slide .port-info {
    transform: none;
    opacity: 1;
  }

  .port-slide .port-ghost {
    color: rgba(201, 123, 69, .06);
  }

  .port-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 4px;
  }

  .pdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--linew);
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: background .3s, width .3s;
  }

  .pdot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--orange);
  }

  .btn-redirect {
    background: var(--orange);
    color: var(--bg);
  }

  /* ── TESTIMONIALS ── */
  .testi-desktop {
    display: none !important;
  }

  .testi-mobile {
    display: block;
  }

  .testi-carousel {
    overflow: hidden;
    position: relative;
    margin-top: 40px;
  }

  .testi-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
  }

  .tcard-slide {
    min-width: 100%;
    padding: 32px 20px;
    box-sizing: border-box;
  }

  .testi-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px 0 8px;
  }

  .tdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--linew);
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: background .3s, width .3s;
  }

  .tdot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--orange);
  }

  /* ── CONTACT ── */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-h {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: -1.5px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── FOOTER ── */
  footer {
    padding: 0px 20px 28px;
  }

  .foot-top {
    display: none;
  }

  .foot-brand img {
    height: 72px;
  }

  .foot-brand p {
    max-width: 100%;
  }

  .foot-bottom {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .contentinfo {
    padding: 0 !important;
  }

  /* ── WHATSAPP FAB (mobile: sem tooltip) ── */
  .whatsapp-fab::before {
    display: none;
  }

  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  /* ── SECTION HEADER ── */
  .sec-h {
    font-size: clamp(26px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .sec-head {
    margin-bottom: 40px;
  }
}

/* ── VIEW TRANSITIONS ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fadeout .3s forwards;
}