/* ============================================
   DIEGO KAMUI — Digital Partner
   Identidade: Archivo + Dark + Orange/Coral
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,700;0,900;1,700&family=Share+Tech+Mono&display=swap');

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #0d0d0d;
  --black-mid:  #161616;
  --black-soft: #1e1e1e;
  --white:      #ffffff;
  --gray:       #888888;
  --gray-light: #cccccc;

  --orange:     #f5a020;
  --coral:      #e84050;
  --gradient:   linear-gradient(135deg, #e84050 0%, #f07030 50%, #f5a020 100%);

  --font:      'Archivo', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --section-pad: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ============ GRAIN / TEXTURA ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  background-repeat: repeat;
}

/* ============ CURSOR ============ */
.cursor {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 107, 0, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-follower.hover {
  width: 52px;
  height: 52px;
  border-color: var(--orange);
}

/* ============ GRADIENT LINE ============ */
.grad-line {
  height: 1px;
  background: var(--gradient);
  width: 100%;
  box-shadow: 0 0 8px 1px rgba(245, 160, 32, 0.25), 0 0 2px 0px rgba(245, 160, 32, 0.4);
}

.grad-line--short {
  width: 48px;
  height: 2px;
  box-shadow: 0 0 6px 1px rgba(245, 160, 32, 0.3);
}

/* ============ NAVBAR ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 160, 32, 0.18);
  box-shadow: 0 1px 0 0 rgba(245, 160, 32, 0.06);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 24px;
  transition: all 0.3s;
}


/* ============ HERO ============ */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#canvas-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#canvas-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.38;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
}

/* Botão do hero começa invisível — GSAP anima na entrada */
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(16px);
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-headline em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gradient);
  margin-bottom: 24px;
  opacity: 0;
  position: relative;
  box-shadow: 0 0 6px 1px rgba(245, 160, 32, 0.3);
}

.hero-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: var(--orange);
  box-shadow: 0 0 6px 2px rgba(245, 160, 32, 0.5);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 400;
  color: var(--gray-light);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gradient);
  text-decoration: none;
  padding: 16px 36px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  position: relative;
}


.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--gradient);
  animation: scrollPulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px 1px rgba(245, 160, 32, 0.2);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleX(1); box-shadow: 0 0 4px 1px rgba(245,160,32,0.2); }
  50% { opacity: 0.3; transform: scaleX(0.4); box-shadow: 0 0 2px 0px rgba(245,160,32,0.1); }
}

/* ============ SECTIONS ============ */
section {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  position: relative;
}

.section-border {
  border-top: 1px solid rgba(245, 160, 32, 0.12);
}

.container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
}

.p-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 72px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#portfolio .section-label { margin-bottom: 20px; }

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--orange);
  text-shadow: 0 0 6px rgba(245, 160, 32, 0.7), 0 0 12px rgba(245, 160, 32, 0.3);
  flex-shrink: 0;
}

.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
  box-shadow: 0 0 4px 0px rgba(245, 160, 32, 0.4);
}

/* ============ MARQUEE ============ */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-flicker {
  0%,  96%         { opacity: 1; }
  97%              { opacity: 0.4; }
  97.5%            { opacity: 1; }
  98.2%            { opacity: 0.15; }
  98.6%            { opacity: 1; }
  99%              { opacity: 0.6; }
  100%             { opacity: 1; }
}

.marquee-section {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px dashed rgba(245, 160, 32, 0.2);
  border-bottom: 1px dashed rgba(245, 160, 32, 0.2);
  background: var(--black-mid);
  position: relative;
  animation: marquee-flicker 8s ease-in-out infinite;
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  flex-shrink: 0;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-inner span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.marquee-inner .m-dot {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0;
  font-size: 0.5rem;
}

/* ============ STATEMENT ============ */
#statement {
  overflow: hidden;
  position: relative;
  padding-top: clamp(100px, 12vw, 160px);
  padding-bottom: clamp(200px, 24vw, 340px);
}

#statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/section2-bg.png') center center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Fade preto na saída — elimina a linha dura entre sections */
#statement::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 2;
}

#statement .ghost-number,
#statement .container {
  position: relative;
  z-index: 1;
}

.statement-highlight {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ghost-number {
  position: absolute;
  top: -20px;
  right: clamp(24px, 5vw, 80px);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  -webkit-text-stroke: 1px rgba(245, 160, 32, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.statement-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.statement-text em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statement-aside {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.statement-aside p {
  font-size: 0.95rem;
  color: var(--gray-light);
  max-width: 400px;
  font-weight: 400;
}

#portfolio {
  position: relative;
}

#portfolio::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 2;
}

/* ============ PORTFOLIO GRID ============ */
.p-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

/* Row 1 — offset direita */
.p-card:nth-child(1) { grid-column: 5 / 9; }
.p-card:nth-child(2) { grid-column: 9 / 13; }

/* Row 2 — offset esquerda */
.p-card:nth-child(3) { grid-column: 1 / 5; }
.p-card:nth-child(4) { grid-column: 5 / 9; }

/* Row 3 — centro */
.p-card:nth-child(5) { grid-column: 3 / 7; }
.p-card:nth-child(6) { grid-column: 7 / 11; }

/* Row 4 — solo centralizado */
.p-card--solo { grid-column: 5 / 9; }

.p-card {
  background: var(--black-mid);
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}

.p-card:hover {
  background: var(--black-soft);
  border-color: rgba(245, 160, 32, 0.15);
  box-shadow: inset 0 0 0 0 transparent, 0 0 20px rgba(245, 160, 32, 0.04);
}

.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.p-card-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245, 160, 32, 0.55);
  white-space: nowrap;
  padding-top: 4px;
  text-shadow: 0 0 8px rgba(245, 160, 32, 0.2);
}

.p-card-name {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-align: right;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-card-img {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
}

.p-card:hover .p-card-img img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* Cards com logo — fundo branco para multiply funcionar corretamente */
.p-card--logo .p-card-img {
  background: #ffffff;
  isolation: isolate;
  padding: 20px;
}

.p-card--logo .p-card-img img {
  mix-blend-mode: multiply;
  filter: grayscale(15%);
  object-fit: contain;
}

.p-card--logo:hover .p-card-img img {
  mix-blend-mode: multiply;
  filter: grayscale(0%);
}

.p-card-img--ghost {
  background: var(--black-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-card-img--ghost span {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
  text-align: center;
}

.p-card-foot {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}


/* Image follower */
.portfolio-img-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 220px;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -60%) rotate(-2deg);
  transition: opacity 0.3s;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.portfolio-img-follower.active {
  opacity: 1;
}

.portfolio-img-follower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ TESTIMONIALS ============ */
#testimonials {
  position: relative;
  overflow: hidden;
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(260px, 30vw, 420px);
}

/* Fade preto na saída — mesma transição da section 2 */
#testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 2;
}

/* Background com parallax — move via JS */
#testimonials .t-bg {
  position: absolute;
  inset: -20% 0;
  background: url('../img/section-depoimentos.png') center center / cover no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Fade preto entrada e saída */
#testimonials .t-bg::before,
#testimonials .t-bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}
#testimonials .t-bg::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black), transparent);
}
#testimonials .t-bg::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black), transparent);
}

#testimonials .ghost-number,
#testimonials .container {
  position: relative;
  z-index: 1;
}

.t-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-align: center;
  margin-bottom: 72px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 56px 32px;
}

/* Row 1 — 2 depoimentos reais, lado a lado */
.t-item:nth-child(1) { grid-column: 1 / 4; }
.t-item:nth-child(2) { grid-column: 4 / 7; }

/* Row 2 — 3 depoimentos menores */
.t-item:nth-child(3) { grid-column: 1 / 4; }
.t-item:nth-child(4) { grid-column: 4 / 7; }
.t-item:nth-child(5) { grid-column: 2 / 6; }

/* Depoimentos reais — texto menor para caber sem quebrar */
.t-quote--long {
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.t-item {
  padding-top: 20px;
  border-top: 1px solid rgba(245, 160, 32, 0.15);
  position: relative;
}

.t-quote {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--white);
}

.t-author {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-author::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(245, 160, 32, 0.4);
}

/* ============ PORTFOLIO MODAL ============ */
.p-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 80px);
  opacity: 0;
  pointer-events: none;
}

.p-modal.open {
  pointer-events: all;
}

.p-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: none;
  transition: border-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.p-modal-wrap {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-modal-img-wrap {
  position: relative;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}

.p-modal-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.p-modal-img-ghost {
  display: none;
  width: 100%;
  height: 300px;
  background: var(--black-soft);
  align-items: center;
  justify-content: center;
}

.p-modal-img-ghost.visible {
  display: flex;
}

.p-modal-ghost-letter {
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.05em;
}


.p-modal-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(245, 160, 32, 0.55);
  text-shadow: 0 0 8px rgba(245, 160, 32, 0.25);
}

.p-modal-name {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-modal-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-left: auto;
}

/* ============ CTA SECTION ============ */
#cta-section {
  text-align: center;
}

.cta-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 48px;
}

.cta-headline em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ FOOTER ============ */
footer {
  padding: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(245, 160, 32, 0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-copy {
  text-align: center;
}

.footer-links {
  justify-self: end;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.05em;
}

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

.footer-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============ RESPONSIVE ============ */

/* --- TABLET (até 900px) --- */
@media (max-width: 900px) {

  /* Nav — menu horizontal compacto */
  .nav-menu { gap: 20px; }
  .nav-link  { display: none; } /* só mantém o CTA */

  /* Hero */
  .hero-headline { font-size: clamp(2.4rem, 8vw, 4rem); }

  /* Portfolio — 2 colunas */
  .p-card:nth-child(1),
  .p-card:nth-child(2),
  .p-card:nth-child(3),
  .p-card:nth-child(4),
  .p-card:nth-child(5),
  .p-card:nth-child(6),
  .p-card--solo { grid-column: span 6; }

  /* Depoimentos — 2 colunas */
  .t-item:nth-child(1) { grid-column: 1 / 4; }
  .t-item:nth-child(2) { grid-column: 4 / 7; }
  .t-item:nth-child(3) { grid-column: 1 / 4; }
  .t-item:nth-child(4) { grid-column: 4 / 7; }
  .t-item:nth-child(5) { grid-column: 1 / 7; }
}

/* --- MOBILE (até 600px) --- */
@media (max-width: 600px) {

  /* Desabilita cursor customizado */
  body { cursor: auto; }
  .cursor, .cursor-follower, .portfolio-img-follower { display: none; }

  /* Grain mais sutil */
  body::before { opacity: 0.018; }

  /* Nav */
  nav { padding: 16px clamp(16px, 5vw, 24px); }
  .nav-menu { gap: 16px; }
  .nav-link  { display: none; }
  .nav-cta   { padding: 8px 16px; font-size: 0.65rem; }

  /* Hero */
  #hero { align-items: flex-end; padding-bottom: 80px; }
  .hero-content { padding: 0 20px; }
  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    margin-bottom: 20px;
  }
  /* Remove quebras forçadas no mobile — texto flui naturalmente */
  .hero-headline br { display: none; }
  .hero-sub { font-size: 0.85rem; margin-bottom: 32px; }
  .hero-scroll { left: 20px; }
  .hero-divider::after { display: none; }

  /* Statement */
  #statement {
    padding-top: 80px;
    padding-bottom: 160px;
  }
  .statement-text { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* Portfolio — 1 coluna */
  .p-card:nth-child(1),
  .p-card:nth-child(2),
  .p-card:nth-child(3),
  .p-card:nth-child(4),
  .p-card:nth-child(5),
  .p-card:nth-child(6),
  .p-card--solo { grid-column: 1 / -1; }
  .p-card-img { min-height: 220px; }

  /* Depoimentos — 1 coluna */
  #testimonials {
    padding-top: 60px;
    padding-bottom: 180px;
  }
  .t-grid { grid-template-columns: 1fr; gap: 36px 0; }
  .t-item:nth-child(1),
  .t-item:nth-child(2),
  .t-item:nth-child(3),
  .t-item:nth-child(4),
  .t-item:nth-child(5) { grid-column: 1 / -1; }
  .t-item { padding-top: 20px; }
  .t-headline { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 48px; }
  .p-headline  { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 48px; }

  /* CTA */
  #cta-section { text-align: center; }
  .cta-headline { font-size: clamp(2rem, 9vw, 3rem); }

  /* Modal */
  .p-modal { padding: 16px; }
  .p-modal-wrap { gap: 16px; }
  .p-modal-info { flex-direction: column; gap: 4px; }
  .p-modal-close { top: 16px; right: 16px; }

  /* Footer */
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer-logo-img { display: block; margin: 0 auto; }
  .footer-links { justify-self: center; gap: 20px; }
}

/* ============ HAMBURGER & MOBILE MENU ============ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

/* Estado aberto — vira X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-logo {
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.05s;
}

.mobile-menu.open .mobile-menu-logo {
  opacity: 1;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-nav {
  display: contents;
}

.mobile-menu-link {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.2s, opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.19s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.26s; }

.mobile-menu-link:hover,
.mobile-menu-link--active { color: var(--white); }

.mobile-menu-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(245, 160, 32, 0.4);
  background: linear-gradient(135deg, rgba(232,64,80,0.1), rgba(245,160,32,0.1));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, border-color 0.2s;
}

.mobile-menu.open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-cta:hover { border-color: var(--orange); }

@media (max-width: 600px) {
  .nav-hamburger { display: flex; }
  .nav-menu { display: none; }
}

/* ============ HOVER & INTERACTIONS ============ */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(255, 107, 0, 0.30),
    0 4px 16px rgba(245, 160, 32, 0.20);
}

.p-modal-info {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-left: 16px;
  border-left: 2px solid rgba(245, 160, 32, 0.25);
}

.hero-eyebrow::before {
  content: '◆ ';
  font-size: 0.4em;
  color: var(--orange);
  text-shadow: 0 0 8px rgba(245, 160, 32, 0.6);
  vertical-align: middle;
}

.nav-cta:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.p-card:hover .p-card-foot {
  color: rgba(245, 160, 32, 0.8);
}

/* Mobile: grain pode ser reduzido para performance */
@media (max-width: 600px) {
  body::before {
    opacity: 0.018;
  }

  .t-item {
    padding-top: 16px;
  }

  .hero-divider::after {
    display: none;
  }
}
