/* ==========================================================================
   Sogen Tech — Design tokens
   ========================================================================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --green: #b3f728;
  --green-dim: #8fd400;
  --gray: #c9c9c9;
  --gray-dim: #6f6f6f;
  --ink-soft: rgba(255, 255, 255, 0.64);
  --ink-faint: rgba(255, 255, 255, 0.38);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.24);
  --black-soft: rgba(0, 0, 0, 0.6);
  --black-faint: rgba(0, 0, 0, 0.4);

  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1s;

  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 999;
  border-radius: 4px;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Noise texture overlay for premium tactility */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: transparent;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.1s linear;
}

/* Custom cursor (desktop only) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--green);
  transition: opacity 0.2s ease, width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s ease;
}
.has-cursor .cursor-dot,
.has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  background: rgba(179, 247, 40, 0.12);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn svg { transition: transform var(--dur-fast) var(--ease-out); }

.btn-primary {
  background: var(--green);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--white);
}
.btn-primary:hover svg { transform: translate(2px, -2px); }

.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-nav-cta {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
}
.btn-nav-cta:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.btn-form { justify-content: center; width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform var(--dur-med) var(--ease-in-out), background var(--dur-fast), backdrop-filter var(--dur-fast), border-color var(--dur-fast);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.main-nav ul {
  display: flex;
  gap: 2.2rem;
}
.main-nav ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--dur-fast);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  opacity: 0.7;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width var(--dur-fast) var(--ease-out);
}
.main-nav ul a:hover {
  color: var(--white);
}
.main-nav ul a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.menu-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-med) var(--ease-in-out), opacity var(--dur-med), visibility var(--dur-med);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 0.06s);
}
.mobile-menu.is-open li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu ul a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 6rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: min(60vw, 720px);
  height: min(60vw, 720px);
  background: radial-gradient(circle, rgba(179, 247, 40, 0.35) 0%, rgba(179, 247, 40, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(179, 247, 40, 0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(179, 247, 40, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(179, 247, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 247, 40, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 8.6vw, 6.4rem);
  font-weight: 700;
  max-width: 20ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--green);
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.hero.is-loaded .reveal-inner { transform: translateY(0); }
.reveal-line:nth-child(1) .reveal-inner { transition-delay: 0.05s; }
.reveal-line:nth-child(2) .reveal-inner { transition-delay: 0.16s; }
.reveal-line:nth-child(3) .reveal-inner { transition-delay: 0.27s; }

.hero-highlight {
  position: relative;
  display: inline-block;
}
.underline-svg {
  position: absolute;
  left: 0; bottom: -0.12em;
  width: 100%;
  height: 0.25em;
  overflow: visible;
}
.underline-svg path {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 0.8s var(--ease-out) 0.7s;
}
.hero.is-loaded .underline-svg path { stroke-dashoffset: 0; }

.hero-bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-desc {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--hairline-strong);
  overflow: hidden;
}
.scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--green);
  animation: scroll-cue 1.8s var(--ease-in-out) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 640px) {
  .hero-scroll-cue { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--black);
  padding: 1.1rem 0;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span:not(.marquee-sep) {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-sep {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 1rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gray-dim);
  margin-bottom: 1.25rem;
}
.section-tag-num {
  color: var(--green);
  font-weight: 600;
}
.section-tag--light { color: rgba(0, 0, 0, 0.5); }
.section-tag--light .section-tag-num { color: var(--black); }

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
}
.section-title--light { color: var(--black); }
.section-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about {
  background: var(--white);
  color: var(--black);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem 2rem;
}
.about-label { grid-column: 1 / span 12; }
.about-statement {
  grid-column: 1 / span 7;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.text-outline {
  -webkit-text-stroke: 1.5px var(--black);
  color: var(--white);
  font-weight: 700;
}
.about-side {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-self: start;
}
.about-copy {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.68);
  max-width: 40ch;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 1.5rem;
}
.stat {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.stat:last-child { border-bottom: none; padding-bottom: 0; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}
.stat-number::after { content: "+"; color: var(--green-dim); }
.stat-label {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.4;
}

@media (max-width: 880px) {
  .about-statement, .about-side { grid-column: 1 / -1; }
  .about-statement { margin-bottom: 0.5rem; }
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card {
  grid-column: span 3;
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(179, 247, 40, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-card--lg { grid-column: span 4; }
.service-card--accent {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(179, 247, 40, 0.08), transparent 60%);
}
.service-card--accent .service-card-top { margin-bottom: 0; }
.service-card--accent h3 { margin: 0 2rem; }

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 34ch;
  flex-grow: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card--lg, .service-card--accent { grid-column: span 2; }
  .service-card--accent { flex-direction: column; align-items: flex-start; }
  .service-card--accent h3 { margin: 0 0 0.75rem; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card--lg, .service-card--accent { grid-column: 1; min-height: 260px; }
}

/* ==========================================================================
   Portfólio
   ========================================================================== */
.portfolio { background: #0a0a0a; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--hairline-strong); }

.portfolio-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  background-size: 220% 220%;
  animation: gradient-shift 9s ease infinite;
}
.portfolio-media--1 { background-image: linear-gradient(135deg, #0e1400, #b3f728 45%, #0a0a0a 100%); }
.portfolio-media--2 { background-image: linear-gradient(135deg, #0a0a0a, #2a2a2a 40%, #b3f728 130%); }
.portfolio-media--3 { background-image: linear-gradient(135deg, #b3f728, #0a0a0a 55%, #3a3a3a 100%); }
.portfolio-media--4 { background-image: linear-gradient(135deg, #1a1f00, #6f8f00 50%, #b3f728 140%); }
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
.portfolio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--green);
  border: 1px solid rgba(179, 247, 40, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.portfolio-badge svg { transition: transform var(--dur-fast) var(--ease-out); }
.portfolio-card:hover .portfolio-badge svg { transform: translate(2px, -2px); }
.portfolio-info {
  padding: 1.25rem 1.4rem 1.5rem;
}
.portfolio-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-dim);
  margin-bottom: 0.5rem;
}
.portfolio-info h3 {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.portfolio-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.portfolio-cta {
  margin-top: 3rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.portfolio-cta a {
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}
.portfolio-cta a:hover { border-color: var(--green); }

@media (max-width: 820px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Diferenciais — bold inverted block
   ========================================================================== */
.diferenciais {
  background: var(--green);
  color: var(--black);
}
.diferenciais .section-sub { color: rgba(0,0,0,0.6); }

.diff-list {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.diff-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: padding-left var(--dur-fast) var(--ease-out);
}
.diff-item:hover {
  padding-left: 1rem;
}
.diff-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.55;
}
.diff-body h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  margin-bottom: 0.5rem;
}
.diff-body p {
  color: rgba(0, 0, 0, 0.68);
  max-width: 52ch;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .diff-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ==========================================================================
   Contato
   ========================================================================== */
.contact { background: var(--black); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.contact-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 2.75rem;
}
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.contact-list-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-dim);
  text-transform: uppercase;
}
.contact-list a {
  font-size: 1.15rem;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.contact-list a:hover { color: var(--green); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-dim);
}
.form-row input,
.form-row select,
.form-row textarea {
  border-bottom: 1px solid var(--hairline-strong);
  padding: 0.65rem 0.1rem;
  font-size: 1rem;
  color: var(--white);
  transition: border-color var(--dur-fast);
  resize: vertical;
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23c9c9c9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
}
.form-row select option { background: var(--black); color: var(--white); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-faint); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #ff5c5c;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--green);
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  position: relative;
}
.footer-top { margin-bottom: 3rem; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--ink-faint); font-size: 0.95rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul, .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav a, .footer-contact a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color var(--dur-fast);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--green); }

.back-to-top {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.back-to-top:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 1.5rem var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .back-to-top { position: static; margin-top: 1rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll reveal (JS-controlled)
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children within grids automatically via inline nth-child delay set in JS if needed */
.services-grid .reveal-up:nth-child(1) { --delay: 0s; }
.services-grid .reveal-up:nth-child(2) { --delay: 0.06s; }
.services-grid .reveal-up:nth-child(3) { --delay: 0.12s; }
.services-grid .reveal-up:nth-child(4) { --delay: 0.18s; }
.services-grid .reveal-up:nth-child(5) { --delay: 0.24s; }

.portfolio-grid .reveal-up:nth-child(1) { --delay: 0s; }
.portfolio-grid .reveal-up:nth-child(2) { --delay: 0.08s; }
.portfolio-grid .reveal-up:nth-child(3) { --delay: 0.16s; }
.portfolio-grid .reveal-up:nth-child(4) { --delay: 0.24s; }

.diff-list .reveal-up:nth-child(1) { --delay: 0s; }
.diff-list .reveal-up:nth-child(2) { --delay: 0.05s; }
.diff-list .reveal-up:nth-child(3) { --delay: 0.1s; }
.diff-list .reveal-up:nth-child(4) { --delay: 0.15s; }
.diff-list .reveal-up:nth-child(5) { --delay: 0.2s; }

.about-stats .reveal-up:nth-child(1) { --delay: 0s; }
.about-stats .reveal-up:nth-child(2) { --delay: 0.08s; }
.about-stats .reveal-up:nth-child(3) { --delay: 0.16s; }

/* ==========================================================================
   Responsive: header / nav breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 480px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
